You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/vendors.82182a56.async.js

951 lines
4.6 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+6XX":function(R,L,r){var y=r("y1pI");function f(x){return y(this.__data__,x)>-1}R.exports=f},"+BJd":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("6MrE"),A=r.n(x)},"+QRC":function(R,L,r){"use strict";var y=r("E9nw"),f={"text/plain":"Text","text/html":"Url",default:"Text"},x="Copy to clipboard: #{key}, Enter";function A(p){var d=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,d)}function m(p,d){var u,a,i,t,s,e,l=!1;d||(d={}),u=d.debug||!1;try{i=y(),t=document.createRange(),s=document.getSelection(),e=document.createElement("span"),e.textContent=p,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(o){if(o.stopPropagation(),d.format)if(o.preventDefault(),typeof o.clipboardData=="undefined"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var c=f[d.format]||f.default;window.clipboardData.setData(c,p)}else o.clipboardData.clearData(),o.clipboardData.setData(d.format,p);d.onCopy&&(o.preventDefault(),d.onCopy(o.clipboardData))}),document.body.appendChild(e),t.selectNodeContents(e),s.addRange(t);var n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");l=!0}catch(o){u&&console.error("unable to copy using execCommand: ",o),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(d.format||"text",p),d.onCopy&&d.onCopy(window.clipboardData),l=!0}catch(c){u&&console.error("unable to copy using clipboardData: ",c),u&&console.error("falling back to prompt"),a=A("message"in d?d.message:x),window.prompt(a,p)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(t):s.removeAllRanges()),e&&document.body.removeChild(e),i()}return l}R.exports=m},"+TT/":function(R,L,r){var y=r("bYtY"),f=r("mFDi"),x=r("OELB"),A=x.parsePercent,m=r("7aKB"),p=y.each,d=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function a(v,b,S,E,C){var _=0,T=0;E==null&&(E=Infinity),C==null&&(C=Infinity);var w=0;b.eachChild(function(O,I){var k=O.position,M=O.getBoundingRect(),U=b.childAt(I+1),P=U&&U.getBoundingRect(),X,F;if(v==="horizontal"){var j=M.width+(P?-P.x+M.x:0);X=_+j,X>E||O.newline?(_=0,X=j,T+=w+S,w=M.height):w=Math.max(w,M.height)}else{var K=M.height+(P?-P.y+M.y:0);F=T+K,F>C||O.newline?(_+=w+S,T=0,F=K,w=M.width):w=Math.max(w,M.width)}if(O.newline)return;k[0]=_,k[1]=T,v==="horizontal"?_=X+S:T=F+S})}var i=a,t=y.curry(a,"vertical"),s=y.curry(a,"horizontal");function e(v,b,S){var E=b.width,C=b.height,_=A(v.x,E),T=A(v.y,C),w=A(v.x2,E),O=A(v.y2,C);return(isNaN(_)||isNaN(parseFloat(v.x)))&&(_=0),(isNaN(w)||isNaN(parseFloat(v.x2)))&&(w=E),(isNaN(T)||isNaN(parseFloat(v.y)))&&(T=0),(isNaN(O)||isNaN(parseFloat(v.y2)))&&(O=C),S=m.normalizeCssArray(S||0),{width:Math.max(w-_-S[1]-S[3],0),height:Math.max(O-T-S[0]-S[2],0)}}function l(v,b,S){S=m.normalizeCssArray(S||0);var E=b.width,C=b.height,_=A(v.left,E),T=A(v.top,C),w=A(v.right,E),O=A(v.bottom,C),I=A(v.width,E),k=A(v.height,C),M=S[2]+S[0],U=S[1]+S[3],P=v.aspect;isNaN(I)&&(I=E-w-U-_),isNaN(k)&&(k=C-O-M-T),P!=null&&(isNaN(I)&&isNaN(k)&&(P>E/C?I=E*.8:k=C*.8),isNaN(I)&&(I=P*k),isNaN(k)&&(k=I/P)),isNaN(_)&&(_=E-w-I-U),isNaN(T)&&(T=C-O-k-M);switch(v.left||v.right){case"center":_=E/2-I/2-S[3];break;case"right":_=E-I-U;break}switch(v.top||v.bottom){case"middle":case"center":T=C/2-k/2-S[0];break;case"bottom":T=C-k-M;break}_=_||0,T=T||0,isNaN(I)&&(I=E-U-_-(w||0)),isNaN(k)&&(k=C-M-T-(O||0));var X=new f(_+S[3],T+S[0],I,k);return X.margin=S,X}function n(v,b,S,E,C){var _=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],w=C&&C.boundingMode||"all";if(!_&&!T)return;var O;if(w==="raw")O=v.type==="group"?new f(0,0,+b.width||0,+b.height||0):v.getBoundingRect();else if(O=v.getBoundingRect(),v.needLocalTransform()){var I=v.getLocalTransform();O=O.clone(),O.applyTransform(I)}b=l(y.defaults({width:O.width,height:O.height},b),S,E);var k=v.position,M=_?b.x-O.x:0,U=T?b.y-O.y:0;v.attr("position",w==="raw"?[M,U]:[k[0]+M,k[1]+U])}function o(v,b){return v[u[b][0]]!=null||v[u[b][1]]!=null&&v[u[b][2]]!=null}function c(v,b,S){!y.isObject(S)&&(S={});var E=S.ignoreSize;!y.isArray(E)&&(E=[E,E]);var C=T(u[0],0),_=T(u[1],1);I(u[0],v,C),I(u[1],v,_);function T(k,M){var U={},P=0,X={},F=0,j=2;if(p(k,function(V){X[V]=v[V]}),p(k,function(V){w(b,V)&&(U[V]=X[V]=b[V]),O(U,V)&&P++,O(X,V)&&F++}),E[M])return O(b,k[1])?X[k[2]]=null:O(b,k[2])&&(X[k[1]]=null),X;if(F===j||!P)return X;if(P>=j)return U;for(var K=0;K<k.length;K++){var z=k[K];if(!w(U,z)&&w(v,z)){U[z]=v[z];break}}return U}function w(k,M){return k.hasOwnProperty(M)}function O(k,M){return k[M]!=null&&k[M]!=="auto"}function I(k,M,U){p(k,function(P){M[P]=U[P]})}}function h(v){return g({},v)}function g(v,b){return b&&v&&p(d,function(S){b.hasOwnProperty(S)&&(v[S]=b[S])}),v}L.LOCATION_PARAMS=d,L.HV_NAMES=u,L.box=i,L.vbox=t,L.hbox=s,L.getAvailableSize=e,L.getLayoutRect=l,L.positionElement=n,L.sizeCalculable=o,L.mergeLayoutParam=c,L.getLayoutParams=h,L.copyLayoutParams=g},"+eQT":function(R,L,r){"use strict";var y=r("wd/R"),f=r.n(y),x=r("Kwbf"),A={getNow:function(){return f()()},getWeekDay:function(Er){var qr=Er.clone().locale("en_US");return qr.weekday()+qr.localeData().firstDayOfWeek()},getYear:function(Er){return Er.year()},getMonth:function(Er){return Er.month()},getDate:function(Er){return Er.date()},getHour:function(Er){return Er.hour()},getMinute:function(Er){return Er.minute()},getSecond:function(Er){return Er.second()},addYear:function(Er,qr){var Gr=Er.clone();return Gr.add(qr,"year")},addMonth:function(Er,qr){var Gr=Er.clone();return Gr.add(qr,"month")},addDate:function(Er,qr){var Gr=Er.clone();return Gr.add(qr,"day")},setYear:function(Er,qr){var Gr=Er.clone();return Gr.year(qr)},setMonth:function(Er,qr){var Gr=Er.clone();return Gr.month(qr)},setDate:function(Er,qr){var Gr=Er.clone();return Gr.date(qr)},setHour:function(Er,qr){var Gr=Er.clone();return Gr.hour(qr)},setMinute:function(Er,qr){var Gr=Er.clone();return Gr.minute(qr)},setSecond:function(Er,qr){var Gr=Er.clone();return Gr.second(qr)},isAfter:function(Er,qr){return Er.isAfter(qr)},isValidate:function(Er){return Er.isValid()},locale:{getWeekFirstDay:function(Er){var qr=f()().locale(Er);return qr.localeData().firstDayOfWeek()},getWeek:function(Er,qr){var Gr=qr.clone(),Qn=Gr.locale(Er);return Qn.week()},getShortWeekDays:function(Er){var qr=f()().locale(Er);return qr.localeData().weekdaysMin()},getShortMonths:function(Er){var qr=f()().locale(Er);return qr.localeData().monthsShort()},format:function(Er,qr,Gr){var Qn=qr.clone(),un=Qn.locale(Er);return un.format(Gr)},parse:function(Er,qr,Gr){for(var Qn=[],un=0;un<Gr.length;un+=1){var zr=Gr[un],ni=qr;if(zr.includes("wo")||zr.includes("Wo")){zr=zr.replace(/wo/g,"w").replace(/Wo/g,"W");var rn=zr.match(/[-YyMmDdHhSsWwGg]+/g),Kn=ni.match(/[-\d]+/g);rn&&Kn?(zr=rn.join(""),ni=Kn.join("")):Qn.push(zr.replace(/o/g,""))}var li=f()(ni,zr,Er,!0);if(li.isValid())return li}for(var ci=0;ci<Qn.length;ci+=1){var si=f()(qr,Qn[ci],Er,!1);if(si.isValid())return Object(x.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),si}return null}}},m=A,p=r("pVnL"),d=r.n(p),u=r("q1tI"),a=r.n(u),i=r("2/Rp");function t(vt){return u.createElement(i.a,d()({size:"small",type:"primary"},vt))}var s=r("mr32");function e(vt){return u.createElement(s.a,d()({color:"blue"},vt))}var l=r("lSNA"),n=r.n(l),o=r("lwsE"),c=r.n(o),h=r("W8MJ"),g=r.n(h),v=r("7W2i"),b=r.n(v),S=r("LQ03"),E=r.n(S),C=r("TSYQ"),_=r.n(C),T=r("qD15"),w=r.n(T),O=r("LHiK"),I=r.n(O),k=r("f0uV"),M=r.n(k),U=r("1OyB"),P=r("vuIU"),X=r("Ji7U"),F=r("LK+K"),j=r("rePB"),K=r("VTBJ"),z=r("ODXe"),V=r("6cGi"),Q=r("U8pU"),G=r("4IlW"),ee=u.createContext({}),se=ee,ye={visibility:"hidden"};function he(vt){var Er=vt.prefixCls,qr=vt.prevIcon,Gr=qr===void 0?"\u2039":qr,Qn=vt.nextIcon,un=Qn===void 0?"\u203A":Qn,zr=vt.superPrevIcon,ni=zr===void 0?"\xAB":zr,rn=vt.superNextIcon,Kn=rn===void 0?"\xBB":rn,li=vt.onSuperPrev,ci=vt.onSuperNext,si=vt.onPrev,Ci=vt.onNext,mi=vt.children,yi=u.useContext(se),Ni=yi.hideNextBtn,ia=yi.hidePrevBtn;return u.createElement("div",{className:Er},li&&u.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Er,"-super-prev-btn"),style:ia?ye:{}},ni),si&&u.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Er,"-prev-btn"),style:ia?ye:{}},Gr),u.createElement("div",{className:"".concat(Er,"-view")},mi),Ci&&u.createElement("button",{type:"button",onClick:Ci,tabIndex:-1,className:"".concat(Er,"-next-btn"),style:Ni?ye:{}},un),ci&&u.createElement("button",{type:"button",onClick:ci,tabIndex:-1,className:"".concat(Er,"-super-next-btn"),style:Ni?ye:{}},Kn))}var ke=he;function Pe(vt){var Er=u.useContext(se),qr=Er.hideHeader;if(qr)return null;var Gr=vt.prefixCls,Qn=vt.generateConfig,un=vt.locale,zr=vt.value,ni=vt.format,rn="".concat(Gr,"-header");return u.createElement(ke,{prefixCls:rn},zr?Qn.locale.format(un.locale,zr,ni):"\xA0")}var Ue=Pe,$e=r("YrtM"),Ge=r("KQm4"),ht=new Map;function Fe(vt,Er,qr){if(ht.get(vt)&&cancelAnimationFrame(ht.get(vt)),qr<=0){ht.set(vt,requestAnimationFrame(function(){vt.scrollTop=Er}));return}var Gr=Er-vt.scrollTop,Qn=Gr/qr*10;ht.set(vt,requestAnimationFrame(function(){vt.scrollTop+=Qn,vt.scrollTop!==Er&&Fe(vt,Er,qr-10)}))}function oe(vt,Er){var qr=Er.onLeftRight,Gr=Er.onCtrlLeftRight,Qn=Er.onUpDown,un=Er.onPageUpDown,zr=Er.onEnter,ni=vt.which,rn=vt.ctrlKey,Kn=vt.metaKey;switch(ni){case G.a.LEFT:if(rn||Kn){if(Gr)return Gr(-1),!0}else if(qr)return qr(-1),!0;break;case G.a.RIGHT:if(rn||Kn){if(Gr)return Gr(1),!0}else if(qr)return qr(1),!0;break;case G.a.UP:if(Qn)return Qn(-1),!0;break;case G.a.DOWN:if(Qn)return Qn(1),!0;break;case G.a.PAGE_UP:if(un)return un(-1),!0;break;case G.a.PAGE_DOWN:if(un)return un(1),!0;break;case G.a.ENTER:if(zr)return zr(),!0;break}return!1}function rt(vt,Er,qr,Gr){var Qn=vt;if(!Qn)switch(Er){case"time":Qn=Gr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Qn="gggg-wo";break;case"month":Qn="YYYY-MM";break;case"quarter":Qn="YYYY-[Q]Q";break;case"year":Qn="YYYY";break;default:Qn=qr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Qn}function fe(vt,Er){var qr=vt==="time"?8:10;return Math.max(qr,Er.length)+2}var J=null,Y=new Set;function $(vt){return!J&&typeof window!="undefined"&&window.addEventListener&&(J=function(qr){Object(Ge.a)(Y).forEach(function(Gr){Gr(qr)})},window.addEventListener("mousedown",J)),Y.add(vt),function(){Y.delete(vt),Y.size===0&&(window.removeEventListener("mousedown",J),J=null)}}var de=function(Er){return Er==="month"||Er==="date"?"year":Er},we=function(Er){return Er==="date"?"month":Er},Ce=function(Er){return Er==="month"||Er==="date"?"quarter":Er},Se=function(Er){return Er==="date"?"week":Er},le={year:de,month:we,quarter:Ce,week:Se,time:null,date:null};function pe(vt,Er){return vt.some(function(qr){return qr&&qr.contains(Er)})}function _e(vt){var Er=vt.prefixCls,qr=vt.units,Gr=vt.onSelect,Qn=vt.value,un=vt.active,zr=vt.hideDisabledOptions,ni="".concat(Er,"-cell"),rn=u.useContext(se),Kn=rn.open,li=u.useRef(null),ci=u.useRef(new Map);return u.useLayoutEffect(function(){var si=ci.current.get(Qn);si&&Kn!==!1&&Fe(li.current,si.offsetTop,120)},[Qn]),u.useLayoutEffect(function(){if(Kn){var si=ci.current.get(Qn);si&&Fe(li.current,si.offsetTop,0)}},[Kn]),u.createElement("ul",{className:_()("".concat(Er,"-column"),Object(j.a)({},"".concat(Er,"-column-active"),un)),ref:li,style:{position:"relative"}},qr.map(function(si){var Ci;return zr&&si.disabled?null:u.createElement("li",{key:si.value,ref:function(yi){ci.current.set(si.value,yi)},className:_()(ni,(Ci={},Object(j.a)(Ci,"".concat(ni,"-disabled"),si.disabled),Object(j.a)(Ci,"".concat(ni,"-selected"),Qn===si.value),Ci)),onClick:function(){if(si.disabled)return;Gr(si.value)}},u.createElement("div",{className:"".concat(ni,"-inner")},si.label))}))}var tt=_e;function gt(vt,Er){for(var qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Gr=String(vt);Gr.length<Er;)Gr="".concat(qr).concat(vt);return Gr}var ct=function(){for(var Er=arguments.length,qr=new Array(Er),Gr=0;Gr<Er;Gr++)qr[Gr]=arguments[Gr];return qr};function je(vt){return vt==null?[]:Array.isArray(vt)?vt:[vt]}function Zt(vt){var Er={};return Object.keys(vt).forEach(function(qr){(qr.substr(0,5)==="data-"||qr.substr(0,5)==="aria-"||qr==="role"||qr==="name")&&qr.substr(0,7)!=="data-__"&&(Er[qr]=vt[qr])}),Er}function ut(vt,Er){return vt?vt[Er]:null}function Ht(vt,Er,qr){var Gr=[ut(vt,0),ut(vt,1)];return Gr[qr]=typeof Er=="function"?Er(Gr[qr]):Er,!Gr[0]&&!Gr[1]?null:Gr}function dr(vt,Er,qr,Gr,Qn){var un=vt.setHour(Er,qr);return un=vt.setMinute(un,Gr),un=vt.setSecond(un,Qn),un}function Vt(vt,Er,qr,Gr,Qn,un){var zr=Math.floor(vt/Gr)*Gr;if(zr<vt)return[zr,60-Qn,60-un];var ni=Math.floor(Er/Qn)*Qn;if(ni<Er)return[zr,ni,60-un];var rn=Math.floor(qr/un)*un;return[zr,ni,rn]}function Mt(vt,Er){if(vt.length!==Er.length)return!0;for(var qr=0;qr<vt.length;qr+=1)if(vt[qr].disabled!==Er[qr].disabled)return!0;return!1}function Gt(vt,Er,qr,Gr){for(var Qn=[],un=vt;un<=Er;un+=qr)Qn.push({label:gt(un,2),value:un,disabled:(Gr||[]).includes(un)});return Qn}function Ve(vt){var Er=vt.generateConfig,qr=vt.prefixCls,Gr=vt.operationRef,Qn=vt.activeColumnIndex,un=vt.value,zr=vt.showHour,ni=vt.showMinute,rn=vt.showSecond,Kn=vt.use12Hours,li=vt.hourStep,ci=li===void 0?1:li,si=vt.minuteStep,Ci=si===void 0?1:si,mi=vt.secondStep,yi=mi===void 0?1:mi,Ni=vt.disabledHours,ia=vt.disabledMinutes,Ki=vt.disabledSeconds,fa=vt.hideDisabledOptions,Ya=vt.onSelect,xa=[],wa="".concat(qr,"-content"),Da="".concat(qr,"-time-panel"),ja,ko=un?Er.getHour(un):-1,ro=un?Er.getMinute(un):-1,pa=un?Er.getSecond(un):-1,Ea=function(Ao,$a,ss,_s){var Fo=un||Er.getNow(),il=Math.max(0,$a),Eo=Math.max(0,ss),zo=Math.max(0,_s);return Fo=dr(Er,Fo,!Kn||!Ao?il:il+12,Eo,zo),Fo},Fa=Gt(0,23,ci,Ni&&Ni()),Ka=Object($e.a)(function(){return Fa},Fa,Mt);Kn&&(ja=ko>=12,ko%=12);var lo=u.useMemo(function(){if(!Kn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(Ao){var $a=Ao.disabled,ss=Ao.value;if($a)return;ss>=12?co[1]=!1:co[0]=!1}),co},[Kn,Ka]),so=Object(z.a)(lo,2),Co=so[0],Lo=so[1],is=u.useMemo(function(){return Kn?Ka.filter(ja?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var Ao=co.value%12,$a=Ao===0?"12":gt(Ao,2);return Object(K.a)(Object(K.a)({},co),{},{label:$a,value:Ao})}):Ka},[Kn,Ka]),cs=Gt(0,59,Ci,ia&&ia(ko)),Rs=Gt(0,59,yi,Ki&&Ki(ko,ro));Gr.current={onUpDown:function(Ao){var $a=xa[Qn];if($a)for(var ss=$a.units.findIndex(function(Eo){return Eo.value===$a.value}),_s=$a.units.length,Fo=1;Fo<_s;Fo+=1){var il=$a.units[(ss+Ao*Fo+_s)%_s];if(il.disabled!==!0){$a.onSelect(il.value);break}}}};function Ko(co,Ao,$a,ss,_s){co!==!1&&xa.push({node:u.cloneElement(Ao,{prefixCls:Da,value:$a,active:Qn===xa.length,onSelect:_s,units:ss,hideDisabledOptions:fa}),onSelect:_s,value:$a,units:ss})}Ko(zr,u.createElement(tt,{key:"hour"}),ko,is,function(co){Ya(Ea(ja,co,ro,pa),"mouse")}),Ko(ni,u.createElement(tt,{key:"minute"}),ro,cs,function(co){Ya(Ea(ja,ko,co,pa),"mouse")}),Ko(rn,u.createElement(tt,{key:"second"}),pa,Rs,function(co){Ya(Ea(ja,ko,ro,co),"mouse")});var as=-1;return typeof ja=="boolean"&&(as=ja?1:0),Ko(Kn===!0,u.createElement(tt,{key:"12hours"}),as,[{label:"AM",value:0,disabled:Co},{label:"PM",value:1,disabled:Lo}],function(co){Ya(Ea(!!co,ko,ro,pa),"mouse")}),u.createElement("div",{className:wa},xa.map(function(co){var Ao=co.node;return Ao}))}var me=Ve,te=function(Er){return Er.filter(function(qr){return qr!==!1}).length};function Ze(vt){var Er=vt.generateConfig,qr=vt.format,Gr=qr===void 0?"HH:mm:ss":qr,Qn=vt.prefixCls,un=vt.active,zr=vt.operationRef,ni=vt.showHour,rn=vt.showMinute,Kn=vt.showSecond,li=vt.use12Hours,ci=li===void 0?!1:li,si=vt.onSelect,Ci=vt.value,mi="".concat(Qn,"-time-panel"),yi=u.useRef(),Ni=u.useState(-1),ia=Object(z.a)(Ni,2),Ki=ia[0],fa=ia[1],Ya=te([ni,rn,Kn,ci]);return zr.current={onKeyDown:function(wa){return oe(wa,{onLeftRight:function(ja){fa((Ki+ja+Ya)%Ya)},onUpDown:function(ja){Ki===-1?fa(0):yi.current&&yi.current.onUpDown(ja)},onEnter:function(){si(Ci||Er.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},u.createElement("div",{className:_()(mi,Object(j.a)({},"".concat(mi,"-active"),un))},u.createElement(Ue,Object.assign({},vt,{format:Gr,prefixCls:Qn})),u.createElement(me,Object.assign({},vt,{prefixCls:Qn,activeColumnIndex:Ki,operationRef:yi})))}var Xe=Ze,ue=7;function St(vt,Er){return!vt&&!Er?!0:!vt||!Er?!1:void 0}function Qt(vt,Er,qr){var Gr=St(Er,qr);if(typeof Gr=="boolean")return Gr;var Qn=Math.floor(vt.getYear(Er)/10),un=Math.floor(vt.getYear(qr)/10);return Qn===un}function dt(vt,Er,qr){var Gr=St(Er,qr);return typeof Gr=="boolean"?Gr:vt.getYear(Er)===vt.getYear(qr)}function Jt(vt,Er){var qr=Math.floor(vt.getMonth(Er)/3);return qr+1}function $t(vt,Er,qr){var Gr=St(Er,qr);return typeof Gr=="boolean"?Gr:dt(vt,Er,qr)&&Jt(vt,Er)===Jt(vt,qr)}function tn(vt,Er,qr){var Gr=St(Er,qr);return typeof Gr=="boolean"?Gr:dt(vt,Er,qr)&&vt.getMonth(Er)===vt.getMonth(qr)}function kt(vt,Er,qr){var Gr=St(Er,qr);return typeof Gr=="boolean"?Gr:vt.getYear(Er)===vt.getYear(qr)&&vt.getMonth(Er)===vt.getMonth(qr)&&vt.getDate(Er)===vt.getDate(qr)}function tr(vt,Er,qr){var Gr=St(Er,qr);return typeof Gr=="boolean"?Gr:vt.getHour(Er)===vt.getHour(qr)&&vt.getMinute(Er)===vt.getMinute(qr)&&vt.getSecond(Er)===vt.getSecond(qr)}function Bt(vt,Er,qr,Gr){var Qn=St(qr,Gr);return typeof Qn=="boolean"?Qn:vt.locale.getWeek(Er,qr)===vt.locale.getWeek(Er,Gr)}function ft(vt,Er,qr){return kt(vt,Er,qr)&&tr(vt,Er,qr)}function it(vt,Er,qr,Gr){return!Er||!qr||!Gr?!1:!kt(vt,Er,Gr)&&!kt(vt,qr,Gr)&&vt.isAfter(Gr,Er)&&vt.isAfter(qr,Gr)}function Or(vt,Er,qr){var Gr=Er.locale.getWeekFirstDay(vt),Qn=Er.setDate(qr,1),un=Er.getWeekDay(Qn),zr=Er.addDate(Qn,Gr-un);return Er.getMonth(zr)===Er.getMonth(qr)&&Er.getDate(zr)>1&&(zr=Er.addDate(zr,-7)),zr}function an(vt,Er,qr){var Gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Er){case"year":return qr.addYear(vt,Gr*10);case"quarter":case"month":return qr.addYear(vt,Gr);default:return qr.addMonth(vt,Gr)}}var En=u.createContext({}),Bn=En;function vi(vt){var Er=vt.cellPrefixCls,qr=vt.generateConfig,Gr=vt.rangedValue,Qn=vt.hoverRangedValue,un=vt.isInView,zr=vt.isSameCell,ni=vt.offsetCell,rn=vt.today,Kn=vt.value;function li(ci){var si,Ci=ni(ci,-1),mi=ni(ci,1),yi=ut(Gr,0),Ni=ut(Gr,1),ia=ut(Qn,0),Ki=ut(Qn,1),fa=it(qr,ia,Ki,ci);function Ya(ro){return zr(yi,ro)}function xa(ro){return zr(Ni,ro)}var wa=zr(ia,ci),Da=zr(Ki,ci),ja=(fa||Da)&&(!un(Ci)||xa(Ci)),ko=(fa||wa)&&(!un(mi)||Ya(mi));return si={},Object(j.a)(si,"".concat(Er,"-in-view"),un(ci)),Object(j.a)(si,"".concat(Er,"-in-range"),it(qr,yi,Ni,ci)),Object(j.a)(si,"".concat(Er,"-range-start"),Ya(ci)),Object(j.a)(si,"".concat(Er,"-range-end"),xa(ci)),Object(j.a)(si,"".concat(Er,"-range-start-single"),Ya(ci)&&!Ni),Object(j.a)(si,"".concat(Er,"-range-end-single"),xa(ci)&&!yi),Object(j.a)(si,"".concat(Er,"-range-start-near-hover"),Ya(ci)&&(zr(Ci,ia)||it(qr,ia,Ki,Ci))),Object(j.a)(si,"".concat(Er,"-range-end-near-hover"),xa(ci)&&(zr(mi,Ki)||it(qr,ia,Ki,mi))),Object(j.a)(si,"".concat(Er,"-range-hover"),fa),Object(j.a)(si,"".concat(Er,"-range-hover-start"),wa),Object(j.a)(si,"".concat(Er,"-range-hover-end"),Da),Object(j.a)(si,"".concat(Er,"-range-hover-edge-start"),ja),Object(j.a)(si,"".concat(Er,"-range-hover-edge-end"),ko),Object(j.a)(si,"".concat(Er,"-range-hover-edge-start-near-range"),ja&&zr(Ci,Ni)),Object(j.a)(si,"".concat(Er,"-range-hover-edge-end-near-range"),ko&&zr(mi,yi)),Object(j.a)(si,"".concat(Er,"-today"),zr(rn,ci)),Object(j.a)(si,"".concat(Er,"-selected"),zr(Kn,ci)),si}return li}function Ln(vt){for(var Er=vt.prefixCls,qr=vt.disabledDate,Gr=vt.onSelect,Qn=vt.rowNum,un=vt.colNum,zr=vt.prefixColumn,ni=vt.rowClassName,rn=vt.baseDate,Kn=vt.getCellClassName,li=vt.getCellText,ci=vt.getCellNode,si=vt.getCellDate,Ci=vt.titleCell,mi=vt.headerCells,yi=u.useContext(se),Ni=yi.onDateMouseEnter,ia=yi.onDateMouseLeave,Ki="".concat(Er,"-cell"),fa=[],Ya=0;Ya<Qn;Ya+=1){for(var xa=[],wa=void 0,Da=function(ro){var pa=Ya*un+ro,Ea=si(rn,pa),Fa=qr&&qr(Ea);ro===0&&(wa=Ea,zr&&xa.push(zr(wa))),xa.push(u.createElement("td",{key:ro,title:Ci&&Ci(Ea),className:_()(Ki,Object(K.a)(Object(j.a)({},"".concat(Ki,"-disabled"),Fa),Kn(Ea))),onClick:function(){Fa||Gr(Ea)},onMouseEnter:function(){!Fa&&Ni&&Ni(Ea)},onMouseLeave:function(){!Fa&&ia&&ia(Ea)}},ci?ci(Ea):u.createElement("div",{className:"".concat(Ki,"-inner")},li(Ea))))},ja=0;ja<un;ja+=1)Da(ja);fa.push(u.createElement("tr",{key:Ya,className:ni&&ni(wa)},xa))}return u.createElement("div",{className:"".concat(Er,"-body")},u.createElement("table",{className:"".concat(Er,"-content")},mi&&u.createElement("thead",null,u.createElement("tr",null,mi)),u.createElement("tbody",null,fa)))}function Mn(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.prefixColumn,Qn=vt.locale,un=vt.rowCount,zr=vt.viewDate,ni=vt.value,rn=vt.dateRender,Kn=u.useContext(Bn),li=Kn.rangedValue,ci=Kn.hoverRangedValue,si=Or(Qn.locale,qr,zr),Ci="".concat(Er,"-cell"),mi=qr.locale.getWeekFirstDay(Qn.locale),yi=qr.getNow(),Ni=[],ia=Qn.shortWeekDays||(qr.locale.getShortWeekDays?qr.locale.getShortWeekDays(Qn.locale):[]);Gr&&Ni.push(u.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ki=0;Ki<ue;Ki+=1)Ni.push(u.createElement("th",{key:Ki},ia[(Ki+mi)%ue]));var fa=vi({cellPrefixCls:Ci,today:yi,value:ni,generateConfig:qr,rangedValue:Gr?null:li,hoverRangedValue:Gr?null:ci,isSameCell:function(wa,Da){return kt(qr,wa,Da)},isInView:function(wa){return tn(qr,wa,zr)},offsetCell:function(wa,Da){return qr.addDate(wa,Da)}}),Ya=rn?function(xa){return rn(xa,yi)}:void 0;return u.createElement(Ln,Object.assign({},vt,{rowNum:un,colNum:ue,baseDate:si,getCellNode:Ya,getCellText:qr.getDate,getCellClassName:fa,getCellDate:qr.addDate,titleCell:function(wa){return qr.locale.format(Qn.locale,wa,"YYYY-MM-DD")},headerCells:Ni}))}var Xt=Mn;function wt(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.locale,Qn=vt.viewDate,un=vt.onNextMonth,zr=vt.onPrevMonth,ni=vt.onNextYear,rn=vt.onPrevYear,Kn=vt.onYearClick,li=vt.onMonthClick,ci=u.useContext(se),si=ci.hideHeader;if(si)return null;var Ci="".concat(Er,"-header"),mi=Gr.shortMonths||(qr.locale.getShortMonths?qr.locale.getShortMonths(Gr.locale):[]),yi=qr.getMonth(Qn),Ni=u.createElement("button",{type:"button",key:"year",onClick:Kn,tabIndex:-1,className:"".concat(Er,"-year-btn")},qr.locale.format(Gr.locale,Qn,Gr.yearFormat)),ia=u.createElement("button",{type:"button",key:"month",onClick:li,tabIndex:-1,className:"".concat(Er,"-month-btn")},Gr.monthFormat?qr.locale.format(Gr.locale,Qn,Gr.monthFormat):mi[yi]),Ki=Gr.monthBeforeYear?[ia,Ni]:[Ni,ia];return u.createElement(ke,Object.assign({},vt,{prefixCls:Ci,onSuperPrev:rn,onPrev:zr,onNext:un,onSuperNext:ni}),Ki)}var De=wt,Re=6;function Me(vt){var Er=vt.prefixCls,qr=vt.panelName,Gr=qr===void 0?"date":qr,Qn=vt.keyboardConfig,un=vt.active,zr=vt.operationRef,ni=vt.generateConfig,rn=vt.value,Kn=vt.viewDate,li=vt.onViewDateChange,ci=vt.onPanelChange,si=vt.onSelect,Ci="".concat(Er,"-").concat(Gr,"-panel");zr.current={onKeyDown:function(ia){return oe(ia,Object(K.a)({onLeftRight:function(fa){si(ni.addDate(rn||Kn,fa),"key")},onCtrlLeftRight:function(fa){si(ni.addYear(rn||Kn,fa),"key")},onUpDown:function(fa){si(ni.addDate(rn||Kn,fa*ue),"key")},onPageUpDown:function(fa){si(ni.addMonth(rn||Kn,fa),"key")}},Qn))}};var mi=function(ia){var Ki=ni.addYear(Kn,ia);li(Ki),ci(null,Ki)},yi=function(ia){var Ki=ni.addMonth(Kn,ia);li(Ki),ci(null,Ki)};return u.createElement("div",{className:_()(Ci,Object(j.a)({},"".concat(Ci,"-active"),un))},u.createElement(De,Object.assign({},vt,{prefixCls:Er,value:rn,viewDate:Kn,onPrevYear:function(){mi(-1)},onNextYear:function(){mi(1)},onPrevMonth:function(){yi(-1)},onNextMonth:function(){yi(1)},onMonthClick:function(){ci("month",Kn)},onYearClick:function(){ci("year",Kn)}})),u.createElement(Xt,Object.assign({},vt,{onSelect:function(ia){return si(ia,"mouse")},prefixCls:Er,value:rn,viewDate:Kn,rowCount:Re})))}var nt=Me;function yt(vt,Er,qr){if(!qr)return Er;var Gr=Er;return Gr=vt.setHour(Gr,vt.getHour(qr)),Gr=vt.setMinute(Gr,vt.getMinute(qr)),Gr=vt.setSecond(Gr,vt.getSecond(qr)),Gr}var sr=ct("date","time");function Nr(vt){var Er=vt.prefixCls,qr=vt.operationRef,Gr=vt.generateConfig,Qn=vt.value,un=vt.defaultValue,zr=vt.disabledTime,ni=vt.showTime,rn=vt.onSelect,Kn="".concat(Er,"-datetime-panel"),li=u.useState(null),ci=Object(z.a)(li,2),si=ci[0],Ci=ci[1],mi=u.useRef({}),yi=u.useRef({}),Ni=Object(Q.a)(ni)==="object"?Object(K.a)({},ni):{};function ia(xa){var wa=sr.indexOf(si)+xa,Da=sr[wa]||null;return Da}var Ki=function(wa){yi.current.onBlur&&yi.current.onBlur(wa),Ci(null)};qr.current={onKeyDown:function(wa){if(wa.which===G.a.TAB){var Da=ia(wa.shiftKey?-1:1);return Ci(Da),Da&&wa.preventDefault(),!0}if(si){var ja=si==="date"?mi:yi;return ja.current&&ja.current.onKeyDown&&ja.current.onKeyDown(wa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(wa.which)?(Ci("date"),!0):!1},onBlur:Ki,onClose:Ki};var fa=function(wa,Da){var ja=wa;Da==="date"&&!Qn&&Ni.defaultValue?(ja=Gr.setHour(ja,Gr.getHour(Ni.defaultValue)),ja=Gr.setMinute(ja,Gr.getMinute(Ni.defaultValue)),ja=Gr.setSecond(ja,Gr.getSecond(Ni.defaultValue))):Da==="time"&&!Qn&&un&&(ja=Gr.setYear(ja,Gr.getYear(un)),ja=Gr.setMonth(ja,Gr.getMonth(un)),ja=Gr.setDate(ja,Gr.getDate(un))),rn&&rn(ja,"mouse")},Ya=zr?zr(Qn||null):{};return u.createElement("div",{className:_()(Kn,Object(j.a)({},"".concat(Kn,"-active"),si))},u.createElement(nt,Object.assign({},vt,{operationRef:mi,active:si==="date",onSelect:function(wa){fa(yt(Gr,wa,ni&&Object(Q.a)(ni)==="object"?ni.defaultValue:null),"date")}})),u.createElement(Xe,Object.assign({},vt,{format:void 0},Ni,Ya,{defaultValue:void 0,operationRef:yi,active:si==="time",onSelect:function(wa){fa(wa,"time")}})))}var mn=Nr;function Yn(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.locale,Qn=vt.value,un="".concat(Er,"-cell"),zr=function(li){return u.createElement("td",{key:"week",className:_()(un,"".concat(un,"-week"))},qr.locale.getWeek(Gr.locale,li))},ni="".concat(Er,"-week-panel-row"),rn=function(li){return _()(ni,Object(j.a)({},"".concat(ni,"-selected"),Bt(qr,Gr.locale,Qn,li)))};return u.createElement(nt,Object.assign({},vt,{panelName:"week",prefixColumn:zr,rowClassName:rn,keyboardConfig:{onLeftRight:null}}))}var Jn=Yn;function ur(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.locale,Qn=vt.viewDate,un=vt.onNextYear,zr=vt.onPrevYear,ni=vt.onYearClick,rn=u.useContext(se),Kn=rn.hideHeader;if(Kn)return null;var li="".concat(Er,"-header");return u.createElement(ke,Object.assign({},vt,{prefixCls:li,onSuperPrev:zr,onSuperNext:un}),u.createElement("button",{type:"button",onClick:ni,className:"".concat(Er,"-year-btn")},qr.locale.format(Gr.locale,Qn,Gr.yearFormat)))}var Tt=ur,Ct=3,Ar=4;function er(vt){var Er=vt.prefixCls,qr=vt.locale,Gr=vt.value,Qn=vt.viewDate,un=vt.generateConfig,zr=vt.monthCellRender,ni=u.useContext(Bn),rn=ni.rangedValue,Kn=ni.hoverRangedValue,li="".concat(Er,"-cell"),ci=vi({cellPrefixCls:li,value:Gr,generateConfig:un,rangedValue:rn,hoverRangedValue:Kn,isSameCell:function(Ni,ia){return tn(un,Ni,ia)},isInView:function(){return!0},offsetCell:function(Ni,ia){return un.addMonth(Ni,ia)}}),si=qr.shortMonths||(un.locale.getShortMonths?un.locale.getShortMonths(qr.locale):[]),Ci=un.setMonth(Qn,0),mi=zr?function(yi){return zr(yi,qr)}:void 0;return u.createElement(Ln,Object.assign({},vt,{rowNum:Ar,colNum:Ct,baseDate:Ci,getCellNode:mi,getCellText:function(Ni){return qr.monthFormat?un.locale.format(qr.locale,Ni,qr.monthFormat):si[un.getMonth(Ni)]},getCellClassName:ci,getCellDate:un.addMonth,titleCell:function(Ni){return un.locale.format(qr.locale,Ni,"YYYY-MM")}}))}var Ft=er;function ir(vt){var Er=vt.prefixCls,qr=vt.operationRef,Gr=vt.onViewDateChange,Qn=vt.generateConfig,un=vt.value,zr=vt.viewDate,ni=vt.onPanelChange,rn=vt.onSelect,Kn="".concat(Er,"-month-panel");qr.current={onKeyDown:function(si){return oe(si,{onLeftRight:function(mi){rn(Qn.addMonth(un||zr,mi),"key")},onCtrlLeftRight:function(mi){rn(Qn.addYear(un||zr,mi),"key")},onUpDown:function(mi){rn(Qn.addMonth(un||zr,mi*Ct),"key")},onEnter:function(){ni("date",un||zr)}})}};var li=function(si){var Ci=Qn.addYear(zr,si);Gr(Ci),ni(null,Ci)};return u.createElement("div",{className:Kn},u.createElement(Tt,Object.assign({},vt,{prefixCls:Er,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ni("year",zr)}})),u.createElement(Ft,Object.assign({},vt,{prefixCls:Er,onSelect:function(si){rn(si,"mouse"),ni("date",si)}})))}var Pt=ir;function rr(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.locale,Qn=vt.viewDate,un=vt.onNextYear,zr=vt.onPrevYear,ni=vt.onYearClick,rn=u.useContext(se),Kn=rn.hideHeader;if(Kn)return null;var li="".concat(Er,"-header");return u.createElement(ke,Object.assign({},vt,{prefixCls:li,onSuperPrev:zr,onSuperNext:un}),u.createElement("button",{type:"button",onClick:ni,className:"".concat(Er,"-year-btn")},qr.locale.format(Gr.locale,Qn,Gr.yearFormat)))}var Yr=rr,Pr=4,Mr=1;function fn(vt){var Er=vt.prefixCls,qr=vt.locale,Gr=vt.value,Qn=vt.viewDate,un=vt.generateConfig,zr=u.useContext(Bn),ni=zr.rangedValue,rn=zr.hoverRangedValue,Kn="".concat(Er,"-cell"),li=vi({cellPrefixCls:Kn,value:Gr,generateConfig:un,rangedValue:ni,hoverRangedValue:rn,isSameCell:function(Ci,mi){return $t(un,Ci,mi)},isInView:function(){return!0},offsetCell:function(Ci,mi){return un.addMonth(Ci,mi*3)}}),ci=un.setDate(un.setMonth(Qn,0),1);return u.createElement(Ln,Object.assign({},vt,{rowNum:Mr,colNum:Pr,baseDate:ci,getCellText:function(Ci){return un.locale.format(qr.locale,Ci,qr.quarterFormat||"[Q]Q")},getCellClassName:li,getCellDate:function(Ci,mi){return un.addMonth(Ci,mi*3)},titleCell:function(Ci){return un.locale.format(qr.locale,Ci,"YYYY-[Q]Q")}}))}var wn=fn;function ai(vt){var Er=vt.prefixCls,qr=vt.operationRef,Gr=vt.onViewDateChange,Qn=vt.generateConfig,un=vt.value,zr=vt.viewDate,ni=vt.onPanelChange,rn=vt.onSelect,Kn="".concat(Er,"-quarter-panel");qr.current={onKeyDown:function(si){return oe(si,{onLeftRight:function(mi){rn(Qn.addMonth(un||zr,mi*3),"key")},onCtrlLeftRight:function(mi){rn(Qn.addYear(un||zr,mi),"key")},onUpDown:function(mi){rn(Qn.addYear(un||zr,mi),"key")}})}};var li=function(si){var Ci=Qn.addYear(zr,si);Gr(Ci),ni(null,Ci)};return u.createElement("div",{className:Kn},u.createElement(Yr,Object.assign({},vt,{prefixCls:Er,onPrevYear:function(){li(-1)},onNextYear:function(){li(1)},onYearClick:function(){ni("year",zr)}})),u.createElement(wn,Object.assign({},vt,{prefixCls:Er,onSelect:function(si){rn(si,"mouse")}})))}var ri=ai;function gi(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.viewDate,Qn=vt.onPrevDecade,un=vt.onNextDecade,zr=vt.onDecadeClick,ni=u.useContext(se),rn=ni.hideHeader;if(rn)return null;var Kn="".concat(Er,"-header"),li=qr.getYear(Gr),ci=Math.floor(li/He)*He,si=ci+He-1;return u.createElement(ke,Object.assign({},vt,{prefixCls:Kn,onSuperPrev:Qn,onSuperNext:un}),u.createElement("button",{type:"button",onClick:zr,className:"".concat(Er,"-decade-btn")},ci,"-",si))}var Ii=gi,Mi=3,Qi=4;function ot(vt){var Er=vt.prefixCls,qr=vt.value,Gr=vt.viewDate,Qn=vt.locale,un=vt.generateConfig,zr=u.useContext(Bn),ni=zr.rangedValue,rn=zr.hoverRangedValue,Kn="".concat(Er,"-cell"),li=un.getYear(Gr),ci=Math.floor(li/He)*He,si=ci+He-1,Ci=un.setYear(Gr,ci-Math.ceil((Mi*Qi-He)/2)),mi=function(ia){var Ki=un.getYear(ia);return ci<=Ki&&Ki<=si},yi=vi({cellPrefixCls:Kn,value:qr,generateConfig:un,rangedValue:ni,hoverRangedValue:rn,isSameCell:function(ia,Ki){return dt(un,ia,Ki)},isInView:mi,offsetCell:function(ia,Ki){return un.addYear(ia,Ki)}});return u.createElement(Ln,Object.assign({},vt,{rowNum:Qi,colNum:Mi,baseDate:Ci,getCellText:un.getYear,getCellClassName:yi,getCellDate:un.addYear,titleCell:function(ia){return un.locale.format(Qn.locale,ia,"YYYY")}}))}var Ne=ot,He=10;function Ye(vt){var Er=vt.prefixCls,qr=vt.operationRef,Gr=vt.onViewDateChange,Qn=vt.generateConfig,un=vt.value,zr=vt.viewDate,ni=vt.sourceMode,rn=vt.onSelect,Kn=vt.onPanelChange,li="".concat(Er,"-year-panel");qr.current={onKeyDown:function(Ci){return oe(Ci,{onLeftRight:function(yi){rn(Qn.addYear(un||zr,yi),"key")},onCtrlLeftRight:function(yi){rn(Qn.addYear(un||zr,yi*He),"key")},onUpDown:function(yi){rn(Qn.addYear(un||zr,yi*Mi),"key")},onEnter:function(){Kn(ni==="date"?"date":"month",un||zr)}})}};var ci=function(Ci){var mi=Qn.addYear(zr,Ci*10);Gr(mi),Kn(null,mi)};return u.createElement("div",{className:li},u.createElement(Ii,Object.assign({},vt,{prefixCls:Er,onPrevDecade:function(){ci(-1)},onNextDecade:function(){ci(1)},onDecadeClick:function(){Kn("decade",zr)}})),u.createElement(Ne,Object.assign({},vt,{prefixCls:Er,onSelect:function(Ci){Kn(ni==="date"?"date":"month",Ci),rn(Ci,"mouse")}})))}var at=Ye;function qe(vt){var Er=vt.prefixCls,qr=vt.generateConfig,Gr=vt.viewDate,Qn=vt.onPrevDecades,un=vt.onNextDecades,zr=u.useContext(se),ni=zr.hideHeader;if(ni)return null;var rn="".concat(Er,"-header"),Kn=qr.getYear(Gr),li=Math.floor(Kn/dn)*dn,ci=li+dn-1;return u.createElement(ke,Object.assign({},vt,{prefixCls:rn,onSuperPrev:Qn,onSuperNext:un}),li,"-",ci)}var lt=qe,Et=3,At=4;function fr(vt){var Er=Vr-1,qr=vt.prefixCls,Gr=vt.viewDate,Qn=vt.generateConfig,un=vt.disabledDate,zr="".concat(qr,"-cell"),ni=Qn.getYear(Gr),rn=Math.floor(ni/Vr)*Vr,Kn=Math.floor(ni/dn)*dn,li=Kn+dn-1,ci=Qn.setYear(Gr,Kn-Math.ceil((Et*At*Vr-dn)/2)),si=function(mi){var yi,Ni=un&&un(mi),ia=Qn.getYear(mi),Ki=ia+Er;return yi={},Object(j.a)(yi,"".concat(zr,"-disabled"),Ni),Object(j.a)(yi,"".concat(zr,"-in-view"),Kn<=ia&&Ki<=li),Object(j.a)(yi,"".concat(zr,"-selected"),ia===rn),yi};return u.createElement(Ln,Object.assign({},vt,{rowNum:At,colNum:Et,baseDate:ci,getCellText:function(mi){var yi=Qn.getYear(mi);return"".concat(yi,"-").concat(yi+Er)},getCellClassName:si,getCellDate:function(mi,yi){return Qn.addYear(mi,yi*Vr)}}))}var Jr=fr,Vr=10,dn=Vr*10;function gr(vt){var Er=vt.prefixCls,qr=vt.onViewDateChange,Gr=vt.generateConfig,Qn=vt.viewDate,un=vt.operationRef,zr=vt.onSelect,ni=vt.onPanelChange,rn="".concat(Er,"-decade-panel");un.current={onKeyDown:function(si){return oe(si,{onLeftRight:function(mi){zr(Gr.addYear(Qn,mi*Vr),"key")},onCtrlLeftRight:function(mi){zr(Gr.addYear(Qn,mi*dn),"key")},onUpDown:function(mi){zr(Gr.addYear(Qn,mi*Vr*Et),"key")},onEnter:function(){ni("year",Qn)}})}};var Kn=function(si){var Ci=Gr.addYear(Qn,si*dn);qr(Ci),ni(null,Ci)},li=function(si){zr(si,"mouse"),ni("year",si)};return u.createElement("div",{className:rn},u.createElement(lt,Object.assign({},vt,{prefixCls:Er,onPrevDecades:function(){Kn(-1)},onNextDecades:function(){Kn(1)}})),u.createElement(Jr,Object.assign({},vt,{prefixCls:Er,onSelect:li})))}var Wn=gr;function kr(vt,Er,qr){return qr?u.createElement("div",{className:"".concat(vt,"-footer-extra")},qr(Er)):null}function Fn(vt){var Er=vt.prefixCls,qr=vt.rangeList,Gr=qr===void 0?[]:qr,Qn=vt.components,un=Qn===void 0?{}:Qn,zr=vt.needConfirmButton,ni=vt.onNow,rn=vt.onOk,Kn=vt.okDisabled,li=vt.showNow,ci=vt.locale,si,Ci;if(Gr.length){var mi=un.rangeItem||"span";si=u.createElement(u.Fragment,null,Gr.map(function(Ni){var ia=Ni.label,Ki=Ni.onClick,fa=Ni.onMouseEnter,Ya=Ni.onMouseLeave;return u.createElement("li",{key:ia,className:"".concat(Er,"-preset")},u.createElement(mi,{onClick:Ki,onMouseEnter:fa,onMouseLeave:Ya},ia))}))}if(zr){var yi=un.button||"button";ni&&!si&&li!==!1&&(si=u.createElement("li",{className:"".concat(Er,"-now")},u.createElement("a",{className:"".concat(Er,"-now-btn"),onClick:ni},ci.now))),Ci=zr&&u.createElement("li",{className:"".concat(Er,"-ok")},u.createElement(yi,{disabled:Kn,onClick:rn},ci.ok))}return!si&&!Ci?null:u.createElement("ul",{className:"".concat(Er,"-ranges")},si,Ci)}function vn(vt){var Er,qr=vt.prefixCls,Gr=qr===void 0?"rc-picker":qr,Qn=vt.className,un=vt.style,zr=vt.locale,ni=vt.generateConfig,rn=vt.value,Kn=vt.defaultValue,li=vt.pickerValue,ci=vt.defaultPickerValue,si=vt.disabledDate,Ci=vt.mode,mi=vt.picker,yi=mi===void 0?"date":mi,Ni=vt.tabIndex,ia=Ni===void 0?0:Ni,Ki=vt.showNow,fa=vt.showTime,Ya=vt.showToday,xa=vt.renderExtraFooter,wa=vt.hideHeader,Da=vt.onSelect,ja=vt.onChange,ko=vt.onPanelChange,ro=vt.onMouseDown,pa=vt.onPickerValueChange,Ea=vt.onOk,Fa=vt.components,Ka=vt.direction,lo=vt.hourStep,so=lo===void 0?1:lo,Co=vt.minuteStep,Lo=Co===void 0?1:Co,is=vt.secondStep,cs=is===void 0?1:is,Rs=yi==="date"&&!!fa||yi==="time",Ko=24%so===0,as=60%Lo===0,co=60%cs===0,Ao=u.useContext(se),$a=Ao.operationRef,ss=Ao.panelRef,_s=Ao.onSelect,Fo=Ao.hideRanges,il=Ao.defaultOpenValue,Eo=u.useContext(Bn),zo=Eo.inRange,Fs=Eo.panelPosition,ms=Eo.rangedValue,hs=Eo.hoverRangedValue,An=u.useRef({}),Ns=u.useRef(!0),Ll=Object(V.a)(null,{value:rn,defaultValue:Kn,postState:function(Ai){return!Ai&&il&&yi==="time"?il:Ai}}),el=Object(z.a)(Ll,2),Gs=el[0],ds=el[1],ks=Object(V.a)(null,{value:li,defaultValue:ci||Gs,postState:function(Ai){return Ai||ni.getNow()}}),Qs=Object(z.a)(ks,2),tl=Qs[0],xs=Qs[1],Bs=function(Ai){xs(Ai),pa&&pa(Ai)},al=function(Ai){var Yi=le[yi];return Yi?Yi(Ai):Ai},Js=Object(V.a)(function(){return yi==="time"?"time":al("date")},{value:Ci}),Vo=Object(z.a)(Js,2),No=Vo[0],fs=Vo[1];u.useEffect(function(){fs(yi)},[yi]);var Ds=u.useState(function(){return No}),go=Object(z.a)(Ds,2),jt=go[0],or=go[1],In=function(Ai,Yi){var sa=al(Ai||No);or(No),fs(sa),ko&&(No!==sa||ft(ni,tl,tl))&&ko(Yi,sa)},hi=function(Ai,Yi){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(No===yi||sa)&&(ds(Ai),Da&&Da(Ai),_s&&_s(Ai,Yi),ja&&!ft(ni,Ai,Gs)&&ja(Ai))},Nt=function(Ai){return An.current&&An.current.onKeyDown?([G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN,G.a.PAGE_UP,G.a.PAGE_DOWN,G.a.ENTER].includes(Ai.which)&&Ai.preventDefault(),An.current.onKeyDown(Ai)):(Object(x.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ce=function(Ai){An.current&&An.current.onBlur&&An.current.onBlur(Ai)};$a&&Fs!=="right"&&($a.current={onKeyDown:Nt,onClose:function(){An.current&&An.current.onClose&&An.current.onClose()}}),u.useEffect(function(){rn&&!Ns.current&&xs(rn)},[rn]),u.useEffect(function(){Ns.current=!1},[]);var xe,Ie=Object(K.a)(Object(K.a)({},vt),{},{operationRef:An,prefixCls:Gr,viewDate:tl,value:Gs,onViewDateChange:Bs,sourceMode:jt,onPanelChange:In,disabledDate:No!=="decade"?si:void 0});delete Ie.onChange,delete Ie.onSelect;switch(No){case"decade":xe=u.createElement(Wn,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;case"year":xe=u.createElement(at,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;case"month":xe=u.createElement(Pt,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;case"quarter":xe=u.createElement(ri,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;case"week":xe=u.createElement(Jn,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;case"time":delete Ie.showTime,xe=u.createElement(Xe,Object.assign({},Ie,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}));break;default:fa?xe=u.createElement(mn,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}})):xe=u.createElement(nt,Object.assign({},Ie,{onSelect:function(Ai,Yi){Bs(Ai),hi(Ai,Yi)}}))}var Je,Dt,lr=function(){var Ai=ni.getNow(),Yi=Vt(ni.getHour(Ai),ni.getMinute(Ai),ni.getSecond(Ai),Ko?so:1,as?Lo:1,co?cs:1),sa=dr(ni,Ai,Yi[0],Yi[1],Yi[2]);hi(sa,"submit")};Fo||(Je=kr(Gr,No,xa),Dt=Fn({prefixCls:Gr,components:Fa,needConfirmButton:Rs,okDisabled:!Gs||si&&si(Gs),locale:zr,showNow:Ki,onNow:Rs&&lr,onOk:function(){Gs&&(hi(Gs,"submit",!0),Ea&&Ea(Gs))}}));var Xr;if(Ya&&No==="date"&&yi==="date"&&!fa){var hn=ni.getNow(),Nn="".concat(Gr,"-today-btn"),ui=si&&si(hn);Xr=u.createElement("a",{className:_()(Nn,ui&&"".concat(Nn,"-disabled")),"aria-disabled":ui,onClick:function(){ui||hi(hn,"mouse",!0)}},zr.today)}return u.createElement(se.Provider,{value:Object(K.a)(Object(K.a)({},Ao),{},{hideHeader:"hideHeader"in vt?wa:Ao.hideHeader,hidePrevBtn:zo&&Fs==="right",hideNextBtn:zo&&Fs==="left"})},u.createElement("div",{tabIndex:ia,className:_()("".concat(Gr,"-panel"),Qn,(Er={},Object(j.a)(Er,"".concat(Gr,"-panel-has-range"),ms&&ms[0]&&ms[1]),Object(j.a)(Er,"".concat(Gr,"-panel-has-range-hover"),hs&&hs[0]&&hs[1]),Object(j.a)(Er,"".concat(Gr,"-panel-rtl"),Ka==="rtl"),Er)),style:un,onKeyDown:Nt,onBlur:ce,onMouseDown:ro,ref:ss},xe,Je||Dt||Xr?u.createElement("div",{className:"".concat(Gr,"-footer")},Je,Dt,Xr):null))}var $r=vn,ei=r("JX7q"),fi=r("i8i4"),Pi=r.n(fi),Zr=r("l4aY"),Sn=r("m+aA"),Gn=r("c+Xe"),Wt=r("zT1h"),Ot=r("QC+M");function Rt(vt,Er,qr){return qr?vt[0]===Er[0]:vt[0]===Er[0]&&vt[1]===Er[1]}function Ut(vt,Er,qr){var Gr=vt[Er]||{};return Object(K.a)(Object(K.a)({},Gr),qr)}function Kt(vt,Er,qr,Gr){for(var Qn=qr.points,un=Object.keys(vt),zr=0;zr<un.length;zr+=1){var ni=un[zr];if(Rt(vt[ni].points,Qn,Gr))return"".concat(Er,"-placement-").concat(ni)}return""}var Lt=r("Ff2n"),cr=r("xEkU"),vr=r.n(cr),yr=r("9mu1"),Rr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Vn(vt,Er){var qr={};return qr[vt.toLowerCase()]=Er.toLowerCase(),qr["Webkit".concat(vt)]="webkit".concat(Er),qr["Moz".concat(vt)]="moz".concat(Er),qr["ms".concat(vt)]="MS".concat(Er),qr["O".concat(vt)]="o".concat(Er.toLowerCase()),qr}function kn(vt,Er){var qr={animationend:Vn("Animation","AnimationEnd"),transitionend:Vn("Transition","TransitionEnd")};return vt&&("AnimationEvent"in Er||delete qr.animationend.animation,"TransitionEvent"in Er||delete qr.transitionend.transition),qr}var di=kn(Rr,typeof window!="undefined"?window:{}),pn={};if(Rr){var Br=document.createElement("div");pn=Br.style}var _n={};function Xn(vt){if(_n[vt])return _n[vt];var Er=di[vt];if(Er)for(var qr=Object.keys(Er),Gr=qr.length,Qn=0;Qn<Gr;Qn+=1){var un=qr[Qn];if(Object.prototype.hasOwnProperty.call(Er,un)&&un in pn)return _n[vt]=Er[un],_n[vt]}return""}var $n=Xn("animationend"),oi=Xn("transitionend"),Ti=!!($n&&oi);function Ri(vt,Er){if(!vt)return null;if(Object(Q.a)(vt)==="object"){var qr=Er.replace(/-\w/g,function(Gr){return Gr[1].toUpperCase()});return vt[qr]}return"".concat(vt,"-").concat(Er)}var Di="none",oa="appear",ma="enter",aa="leave";function ba(vt){var Er=vt,qr=!!u.forwardRef;Object(Q.a)(vt)==="object"&&(Er=vt.transitionSupport,qr="forwardRef"in vt?vt.forwardRef:qr);function Gr(un){return!!(un.motionName&&Er)}var Qn=function(un){Object(X.a)(ni,un);var zr=Object(F.a)(ni);function ni(){var rn;return Object(U.a)(this,ni),rn=zr.apply(this,arguments),rn.$cacheEle=null,rn.node=null,rn.raf=null,rn.destroyed=!1,rn.deadlineId=null,rn.state={status:Di,statusActive:!1,newStatus:!1,statusStyle:null},rn.onDomUpdate=function(){var Kn=rn.state,li=Kn.status,ci=Kn.newStatus,si=rn.props,Ci=si.onAppearStart,mi=si.onEnterStart,yi=si.onLeaveStart,Ni=si.onAppearActive,ia=si.onEnterActive,Ki=si.onLeaveActive,fa=si.motionAppear,Ya=si.motionEnter,xa=si.motionLeave;if(!Gr(rn.props))return;var wa=rn.getElement();rn.$cacheEle!==wa&&(rn.removeEventListener(rn.$cacheEle),rn.addEventListener(wa),rn.$cacheEle=wa),ci&&li===oa&&fa?rn.updateStatus(Ci,null,null,function(){rn.updateActiveStatus(Ni,oa)}):ci&&li===ma&&Ya?rn.updateStatus(mi,null,null,function(){rn.updateActiveStatus(ia,ma)}):ci&&li===aa&&xa&&rn.updateStatus(yi,null,null,function(){rn.updateActiveStatus(Ki,aa)})},rn.onMotionEnd=function(Kn){if(Kn&&!Kn.deadline&&Kn.target!==rn.getElement())return;var li=rn.state,ci=li.status,si=li.statusActive,Ci=rn.props,mi=Ci.onAppearEnd,yi=Ci.onEnterEnd,Ni=Ci.onLeaveEnd;ci===oa&&si?rn.updateStatus(mi,{status:Di},Kn):ci===ma&&si?rn.updateStatus(yi,{status:Di},Kn):ci===aa&&si&&rn.updateStatus(Ni,{status:Di},Kn)},rn.setNodeRef=function(Kn){var li=rn.props.internalRef;rn.node=Kn,Object(Gn.b)(li,Kn)},rn.getElement=function(){try{return Object(Sn.a)(rn.node||Object(ei.a)(rn))}catch(Kn){return rn.$cacheEle}},rn.addEventListener=function(Kn){if(!Kn)return;Kn.addEventListener(oi,rn.onMotionEnd),Kn.addEventListener($n,rn.onMotionEnd)},rn.removeEventListener=function(Kn){if(!Kn)return;Kn.removeEventListener(oi,rn.onMotionEnd),Kn.removeEventListener($n,rn.onMotionEnd)},rn.updateStatus=function(Kn,li,ci,si){var Ci=Kn?Kn(rn.getElement(),ci):null;if(Ci===!1||rn.destroyed)return;var mi;si&&(mi=function(){rn.nextFrame(si)}),rn.setState(Object(K.a)({statusStyle:Object(Q.a)(Ci)==="object"?Ci:null,newStatus:!1},li),mi)},rn.updateActiveStatus=function(Kn,li){rn.nextFrame(function(){var ci=rn.state.status;if(ci!==li)return;var si=rn.props.motionDeadline;rn.updateStatus(Kn,{statusActive:!0}),si>0&&(rn.deadlineId=setTimeout(function(){rn.onMotionEnd({deadline:!0})},si))})},rn.nextFrame=function(Kn){rn.cancelNextFrame(),rn.raf=vr()(Kn)},rn.cancelNextFrame=function(){rn.raf&&(vr.a.cancel(rn.raf),rn.raf=null)},rn}return Object(P.a)(ni,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Kn,li=this.state,ci=li.status,si=li.statusActive,Ci=li.statusStyle,mi=this.props,yi=mi.children,Ni=mi.motionName,ia=mi.visible,Ki=mi.removeOnLeave,fa=mi.leavedClassName,Ya=mi.eventProps;return yi?ci===Di||!Gr(this.props)?ia?yi(Object(K.a)({},Ya),this.setNodeRef):Ki?null:yi(Object(K.a)(Object(K.a)({},Ya),{},{className:fa}),this.setNodeRef):yi(Object(K.a)(Object(K.a)({},Ya),{},{className:_()(Ri(Ni,ci),(Kn={},Object(j.a)(Kn,Ri(Ni,"".concat(ci,"-active")),si),Object(j.a)(Kn,Ni,typeof Ni=="string"),Kn)),style:Ci}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Kn,li){var ci=li.prevProps,si=li.status;if(!Gr(Kn))return{};var Ci=Kn.visible,mi=Kn.motionAppear,yi=Kn.motionEnter,Ni=Kn.motionLeave,ia=Kn.motionLeaveImmediately,Ki={prevProps:Kn};return(si===oa&&!mi||si===ma&&!yi||si===aa&&!Ni)&&(Ki.status=Di,Ki.statusActive=!1,Ki.newStatus=!1),!ci&&Ci&&mi&&(Ki.status=oa,Ki.statusActive=!1,Ki.newStatus=!0),ci&&!ci.visible&&Ci&&yi&&(Ki.status=ma,Ki.statusActive=!1,Ki.newStatus=!0),(ci&&ci.visible&&!Ci&&Ni||!ci&&ia&&!Ci&&Ni)&&(Ki.status=aa,Ki.statusActive=!1,Ki.newStatus=!0),Ki}}]),ni}(u.Component);return Qn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},qr?u.forwardRef(function(un,zr){return u.createElement(Qn,Object.assign({internalRef:zr},un))}):Qn}var bi=ba(Ti),Rn="add",ji="keep",ha="remove",ta="removed";function ra(vt){var Er;return vt&&Object(Q.a)(vt)==="object"&&"key"in vt?Er=vt:Er={key:vt},Object(K.a)(Object(K.a)({},Er),{},{key:String(Er.key)})}function Ir(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return vt.map(ra)}function Sr(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],qr=[],Gr=0,Qn=Er.length,un=Ir(vt),zr=Ir(Er);un.forEach(function(Kn){for(var li=!1,ci=Gr;ci<Qn;ci+=1){var si=zr[ci];if(si.key===Kn.key){Gr<ci&&(qr=qr.concat(zr.slice(Gr,ci).map(function(Ci){return Object(K.a)(Object(K.a)({},Ci),{},{status:Rn})})),Gr=ci),qr.push(Object(K.a)(Object(K.a)({},si),{},{status:ji})),Gr+=1,li=!0;break}}li||qr.push(Object(K.a)(Object(K.a)({},Kn),{},{status:ha}))}),Gr<Qn&&(qr=qr.concat(zr.slice(Gr).map(function(Kn){return Object(K.a)(Object(K.a)({},Kn),{},{status:Rn})})));var ni={};qr.forEach(function(Kn){var li=Kn.key;ni[li]=(ni[li]||0)+1});var rn=Object.keys(ni).filter(function(Kn){return ni[Kn]>1});return rn.forEach(function(Kn){qr=qr.filter(function(li){var ci=li.key,si=li.status;return ci!==Kn||si!==ha}),qr.forEach(function(li){li.key===Kn&&(li.status=ji)})}),qr}var Tn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pr(vt){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bi,qr=function(Gr){Object(X.a)(un,Gr);var Qn=Object(F.a)(un);function un(){var zr;return Object(U.a)(this,un),zr=Qn.apply(this,arguments),zr.state={keyEntities:[]},zr.removeKey=function(ni){zr.setState(function(rn){var Kn=rn.keyEntities;return{keyEntities:Kn.map(function(li){return li.key!==ni?li:Object(K.a)(Object(K.a)({},li),{},{status:ta})})}})},zr}return Object(P.a)(un,[{key:"render",value:function(){var ni=this,rn=this.state.keyEntities,Kn=this.props,li=Kn.component,ci=Kn.children,si=Object(Lt.a)(Kn,["component","children"]),Ci=li||u.Fragment,mi={};return Tn.forEach(function(yi){mi[yi]=si[yi],delete si[yi]}),delete si.keys,u.createElement(Ci,Object.assign({},si),rn.map(function(yi){var Ni=yi.status,ia=Object(Lt.a)(yi,["status"]),Ki=Ni===Rn||Ni===ji;return u.createElement(Er,Object.assign({},mi,{key:ia.key,visible:Ki,eventProps:ia,onLeaveEnd:function(){mi.onLeaveEnd&&mi.onLeaveEnd.apply(mi,arguments),ni.removeKey(ia.key)}}),ci)}))}}],[{key:"getDerivedStateFromProps",value:function(ni,rn){var Kn=ni.keys,li=rn.keyEntities,ci=Ir(Kn);if(!vt)return{keyEntities:ci.map(function(mi){return Object(K.a)(Object(K.a)({},mi),{},{status:ji})})};var si=Sr(li,ci),Ci=li.length;return{keyEntities:si.filter(function(mi){for(var yi=null,Ni=0;Ni<Ci;Ni+=1){var ia=li[Ni];if(ia.key===mi.key){yi=ia;break}}return!(yi&&yi.status===ta&&mi.status===ha)})}}}]),un}(u.Component);return qr.defaultProps={component:"div"},qr}var Dr=pr(Ti),Wr=bi,ln=function(Er,qr){var Gr=Er.prefixCls,Qn=Er.className,un=Er.style,zr=Er.children,ni=Er.onMouseEnter,rn=Er.onMouseLeave,Kn=Er.onMouseDown,li=Er.onTouchStart,ci=zr;return u.Children.count(zr)>1&&(ci=u.createElement("div",{className:"".concat(Gr,"-content")},zr)),u.createElement("div",{ref:qr,className:Qn,onMouseEnter:ni,onMouseLeave:rn,onMouseDown:Kn,onTouchStart:li,style:un},ci)},Pn=u.forwardRef(ln);Pn.displayName="PopupInner";var _t=Pn;function _r(vt){var Er=vt.prefixCls,qr=vt.motion,Gr=vt.animation,Qn=vt.transitionName;return qr||(Gr?{motionName:"".concat(Er,"-").concat(Gr)}:Qn?{motionName:Qn}:null)}function Lr(vt){return vt&&vt.motionName}var en=function(vt){Object(X.a)(qr,vt);var Er=Object(F.a)(qr);function qr(){var Gr;return Object(U.a)(this,qr),Gr=Er.apply(this,arguments),Gr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Gr.popupRef=a.a.createRef(),Gr.alignRef=a.a.createRef(),Gr.nextFrameState=null,Gr.nextFrameId=null,Gr.onAlign=function(Qn,un){var zr=Gr.state.status,ni=Gr.props,rn=ni.getClassNameFromAlign,Kn=ni.onAlign,li=rn(un);zr==="align"?Gr.setState({alignClassName:li,status:"aligned"},function(){Gr.alignRef.current.forceAlign()}):zr==="aligned"?(Gr.setState({alignClassName:li,status:"afterAlign"}),Kn(Qn,un)):Gr.setState({alignClassName:li})},Gr.onMotionEnd=function(){var Qn=Gr.props.visible;Gr.setState({status:Qn?"AfterMotion":"stable",inMotion:!1})},Gr.setStateOnNextFrame=function(Qn){Gr.cancelFrameState(),Gr.nextFrameState=Object(K.a)(Object(K.a)({},Gr.nextFrameState),Qn),Gr.nextFrameId=vr()(function(){var un=Object(K.a)({},Gr.nextFrameState);Gr.nextFrameState=null,Gr.setState(un)})},Gr.getMotion=function(){return Object(K.a)({},_r(Gr.props))},Gr.getAlignTarget=function(){var Qn=Gr.props,un=Qn.point,zr=Qn.getRootDomNode;return un||zr},Gr.cancelFrameState=function(){vr.a.cancel(Gr.nextFrameId)},Gr.renderPopupElement=function(){var Qn=Gr.state,un=Qn.status,zr=Qn.targetHeight,ni=Qn.targetWidth,rn=Qn.alignClassName,Kn=Gr.props,li=Kn.prefixCls,ci=Kn.className,si=Kn.style,Ci=Kn.stretch,mi=Kn.visible,yi=Kn.align,Ni=Kn.destroyPopupOnHide,ia=Kn.onMouseEnter,Ki=Kn.onMouseLeave,fa=Kn.onMouseDown,Ya=Kn.onTouchStart,xa=Kn.children,wa=_()(li,ci,rn),Da="".concat(li,"-hidden"),ja={};Ci&&(Ci.indexOf("height")!==-1?ja.height=zr:Ci.indexOf("minHeight")!==-1&&(ja.minHeight=zr),Ci.indexOf("width")!==-1?ja.width=ni:Ci.indexOf("minWidth")!==-1&&(ja.minWidth=ni));var ko=Object(K.a)(Object(K.a)(Object(K.a)(Object(K.a)({},ja),Gr.getZIndexStyle()),si),{},{opacity:un==="stable"||!mi?void 0:0,pointerEvents:un==="stable"||!mi?void 0:"none"}),ro=Gr.getMotion(),pa=mi;mi&&un!=="beforeMotion"&&un!=="motion"&&un!=="stable"&&(ro.motionAppear=!1,ro.motionEnter=!1,ro.motionLeave=!1),(un==="afterAlign"||un==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var lo=ro==null?void 0:ro[Ka];ro[Ka]=function(){for(var so=arguments.length,Co=new Array(so),Lo=0;Lo<so;Lo++)Co[Lo]=arguments[Lo];lo==null||lo.apply(void 0,Co),Gr.setState({inMotion:!0})}});var Ea=!mi||un!=="align"&&un!=="aligned"&&un!=="stable",Fa=!0;return un==="stable"&&(Fa=mi),Ni&&!Fa?null:a.a.createElement(Wr,Object.assign({visible:pa},ro,{removeOnLeave:!1,onEnterEnd:Gr.onMotionEnd,onLeaveEnd:Gr.onMotionEnd,leavedClassName:Da}),function(Ka,lo){var so=Ka.style,Co=Ka.className;return a.a.createElement(yr.a,{target:Gr.getAlignTarget(),key:"popup",ref:Gr.alignRef,monitorWindowResize:!0,disabled:Ea,align:yi,onAlign:Gr.onAlign},a.a.createElement(_t,{prefixCls:li,className:_()(wa,Co),ref:Object(Gn.a)(lo,Gr.popupRef),onMouseEnter:ia,onMouseLeave:Ki,onMouseDown:fa,onTouchStart:Ya,style:Object(K.a)(Object(K.a)({},ko),so)},xa))})},Gr.renderMaskElement=function(){var Qn=Gr.props,un=Qn.mask,zr=Qn.maskMotion,ni=Qn.maskTransitionName,rn=Qn.maskAnimation,Kn=Qn.prefixCls,li=Qn.visible;if(!un)return null;var ci={};return zr&&zr.motionName&&(ci=Object(K.a)({motionAppear:!0},_r({motion:zr,prefixCls:Kn,transitionName:ni,animation:rn}))),a.a.createElement(Wr,Object.assign({},ci,{visible:li,removeOnLeave:!0}),function(si){var Ci=si.className;return a.a.createElement("div",{style:Gr.getZIndexStyle(),key:"mask",className:_()("".concat(Kn,"-mask"),Ci)})})},Gr}return Object(P.a)(qr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Qn=this.state.status,un=this.props,zr=un.getRootDomNode,ni=un.visible,rn=un.stretch;if(this.cancelFrameState(),ni&&Qn!=="stable")switch(Qn){case null:{this.setStateOnNextFrame({status:rn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Lr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Kn=["measure","align",null,"beforeMotion","motion"],li=Kn.indexOf(Qn),ci=Kn[li+1];li!==-1&&ci&&this.setStateOnNextFrame({status:ci})}}if(Qn==="measure"){var si=zr();si&&this.setStateOnNextFrame({targetHeight:si.offsetHeight,targetWidth:si.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Qn=this.props.zIndex;return{zIndex:Qn}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Qn,un){var zr=Qn.visible,ni=Object(Lt.a)(Qn,["visible"]),rn=un.prevVisible,Kn=un.status,li=un.inMotion,ci={prevVisible:zr,status:Kn},si=_r(ni);return rn===null&&zr===!1?(ci.status="stable",ci.inMotion=!1):zr!==rn&&(ci.inMotion=!1,zr||Lr(si)&&li?ci.status=null:ci.status="stable",zr&&(ci.alignClassName=null)),ci}}]),qr}(u.Component),bn=en,On=u.createContext(null),yn=On;function qn(){}function Hn(){return""}function pi(){return window.document}var Fi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function wi(vt){var Er=function(qr){Object(X.a)(Qn,qr);var Gr=Object(F.a)(Qn);function Qn(un){var zr;Object(U.a)(this,Qn),zr=Gr.call(this,un),zr.popupRef=a.a.createRef(),zr.triggerRef=a.a.createRef(),zr.onMouseEnter=function(rn){var Kn=zr.props.mouseEnterDelay;zr.fireEvents("onMouseEnter",rn),zr.delaySetPopupVisible(!0,Kn,Kn?null:rn)},zr.onMouseMove=function(rn){zr.fireEvents("onMouseMove",rn),zr.setPoint(rn)},zr.onMouseLeave=function(rn){zr.fireEvents("onMouseLeave",rn),zr.delaySetPopupVisible(!1,zr.props.mouseLeaveDelay)},zr.onPopupMouseEnter=function(){zr.clearDelayTimer()},zr.onPopupMouseLeave=function(rn){if(rn.relatedTarget&&!rn.relatedTarget.setTimeout&&zr.popupRef.current&&zr.popupRef.current.popupRef.current&&Object(Zr.a)(zr.popupRef.current.popupRef.current,rn.relatedTarget))return;zr.delaySetPopupVisible(!1,zr.props.mouseLeaveDelay)},zr.onFocus=function(rn){zr.fireEvents("onFocus",rn),zr.clearDelayTimer(),zr.isFocusToShow()&&(zr.focusTime=Date.now(),zr.delaySetPopupVisible(!0,zr.props.focusDelay))},zr.onMouseDown=function(rn){zr.fireEvents("onMouseDown",rn),zr.preClickTime=Date.now()},zr.onTouchStart=function(rn){zr.fireEvents("onTouchStart",rn),zr.preTouchTime=Date.now()},zr.onBlur=function(rn){zr.fireEvents("onBlur",rn),zr.clearDelayTimer(),zr.isBlurToHide()&&zr.delaySetPopupVisible(!1,zr.props.blurDelay)},zr.onContextMenu=function(rn){rn.preventDefault(),zr.fireEvents("onContextMenu",rn),zr.setPopupVisible(!0,rn)},zr.onContextMenuClose=function(){zr.isContextMenuToShow()&&zr.close()},zr.onClick=function(rn){if(zr.fireEvents("onClick",rn),zr.focusTime){var Kn;if(zr.preClickTime&&zr.preTouchTime?Kn=Math.min(zr.preClickTime,zr.preTouchTime):zr.preClickTime?Kn=zr.preClickTime:zr.preTouchTime&&(Kn=zr.preTouchTime),Math.abs(Kn-zr.focusTime)<20)return;zr.focusTime=0}zr.preClickTime=0,zr.preTouchTime=0,zr.isClickToShow()&&(zr.isClickToHide()||zr.isBlurToHide())&&rn&&rn.preventDefault&&rn.preventDefault();var li=!zr.state.popupVisible;(zr.isClickToHide()&&!li||li&&zr.isClickToShow())&&zr.setPopupVisible(!zr.state.popupVisible,rn)},zr.onPopupMouseDown=function(){if(zr.hasPopupMouseDown=!0,clearTimeout(zr.mouseDownTimeout),zr.mouseDownTimeout=window.setTimeout(function(){zr.hasPopupMouseDown=!1},0),zr.context){var rn;(rn=zr.context).onPopupMouseDown.apply(rn,arguments)}},zr.onDocumentClick=function(rn){if(zr.props.mask&&!zr.props.maskClosable)return;var Kn=rn.target,li=zr.getRootDomNode(),ci=zr.getPopupDomNode();!Object(Zr.a)(li,Kn)&&!Object(Zr.a)(ci,Kn)&&!zr.hasPopupMouseDown&&zr.close()},zr.getRootDomNode=function(){var rn=zr.props.getTriggerDOMNode;if(rn)return rn(zr.triggerRef.current);try{var Kn=Object(Sn.a)(zr.triggerRef.current);if(Kn)return Kn}catch(li){}return Pi.a.findDOMNode(Object(ei.a)(zr))},zr.getPopupClassNameFromAlign=function(rn){var Kn=[],li=zr.props,ci=li.popupPlacement,si=li.builtinPlacements,Ci=li.prefixCls,mi=li.alignPoint,yi=li.getPopupClassNameFromAlign;return ci&&si&&Kn.push(Kt(si,Ci,rn,mi)),yi&&Kn.push(yi(rn)),Kn.join(" ")},zr.getComponent=function(){var rn=zr.props,Kn=rn.prefixCls,li=rn.destroyPopupOnHide,ci=rn.popupClassName,si=rn.onPopupAlign,Ci=rn.popupMotion,mi=rn.popupAnimation,yi=rn.popupTransitionName,Ni=rn.popupStyle,ia=rn.mask,Ki=rn.maskAnimation,fa=rn.maskTransitionName,Ya=rn.maskMotion,xa=rn.zIndex,wa=rn.popup,Da=rn.stretch,ja=rn.alignPoint,ko=zr.state,ro=ko.popupVisible,pa=ko.point,Ea=zr.getPopupAlign(),Fa={};return zr.isMouseEnterToShow()&&(Fa.onMouseEnter=zr.onPopupMouseEnter),zr.isMouseLeaveToHide()&&(Fa.onMouseLeave=zr.onPopupMouseLeave),Fa.onMouseDown=zr.onPopupMouseDown,Fa.onTouchStart=zr.onPopupMouseDown,a.a.createElement(bn,Object.assign({prefixCls:Kn,destroyPopupOnHide:li,visible:ro,point:ja&&pa,className:ci,align:Ea,onAlign:si,animation:mi,getClassNameFromAlign:zr.getPopupClassNameFromAlign},Fa,{stretch:Da,getRootDomNode:zr.getRootDomNode,style:Ni,mask:ia,zIndex:xa,transitionName:yi,maskAnimation:Ki,maskTransitionName:fa,maskMotion:Ya,ref:zr.popupRef,motion:Ci}),typeof wa=="function"?wa():wa)},zr.getContainer=function(){var rn=Object(ei.a)(zr),Kn=rn.props,li=document.createElement("div");li.style.position="absolute",li.style.top="0",li.style.left="0",li.style.width="100%";var ci=Kn.getPopupContainer?Kn.getPopupContainer(zr.getRootDomNode()):Kn.getDocument().body;return ci.appendChild(li),li},zr.setPoint=function(rn){var Kn=zr.props.alignPoint;if(!Kn||!rn)return;zr.setState({point:{pageX:rn.pageX,pageY:rn.pageY}})},zr.handlePortalUpdate=function(){zr.state.prevPopupVisible!==zr.state.popupVisible&&zr.props.afterPopupVisibleChange(zr.state.popupVisible)};var ni;return"popupVisible"in un?ni=!!un.popupVisible:ni=!!un.defaultPopupVisible,zr.state={prevPopupVisible:ni,popupVisible:ni},Fi.forEach(function(rn){zr["fire".concat(rn)]=function(Kn){zr.fireEvents(rn,Kn)}}),zr}return Object(P.a)(Qn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var zr=this.props,ni=this.state;if(ni.popupVisible){var rn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(rn=zr.getDocument(),this.clickOutsideHandler=Object(Wt.a)(rn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(rn=rn||zr.getDocument(),this.touchOutsideHandler=Object(Wt.a)(rn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(rn=rn||zr.getDocument(),this.contextMenuOutsideHandler1=Object(Wt.a)(rn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Wt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var zr=this.props,ni=zr.popupPlacement,rn=zr.popupAlign,Kn=zr.builtinPlacements;return ni&&Kn?Ut(Kn,ni,rn):rn}},{key:"setPopupVisible",value:function(zr,ni){var rn=this.props.alignPoint,Kn=this.state.popupVisible;this.clearDelayTimer(),Kn!==zr&&("popupVisible"in this.props||this.setState({popupVisible:zr,prevPopupVisible:Kn}),this.props.onPopupVisibleChange(zr)),rn&&ni&&this.setPoint(ni)}},{key:"delaySetPopupVisible",value:function(zr,ni,rn){var Kn=this,li=ni*1e3;if(this.clearDelayTimer(),li){var ci=rn?{pageX:rn.pageX,pageY:rn.pageY}:null;this.delayTimer=window.setTimeout(function(){Kn.setPopupVisible(zr,ci),Kn.clearDelayTimer()},li)}else this.setPopupVisible(zr,rn)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(zr){var ni=this.props.children.props,rn=this.props;return ni[zr]&&rn[zr]?this["fire".concat(zr)]:ni[zr]||rn[zr]}},{key:"isClickToShow",value:function(){var zr=this.props,ni=zr.action,rn=zr.showAction;return ni.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var zr=this.props,ni=zr.action,rn=zr.showAction;return ni.indexOf("contextMenu")!==-1||rn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var zr=this.props,ni=zr.action,rn=zr.hideAction;return ni.indexOf("click")!==-1||rn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var zr=this.props,ni=zr.action,rn=zr.showAction;return ni.indexOf("hover")!==-1||rn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var zr=this.props,ni=zr.action,rn=zr.hideAction;return ni.indexOf("hover")!==-1||rn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var zr=this.props,ni=zr.action,rn=zr.showAction;return ni.indexOf("focus")!==-1||rn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var zr=this.props,ni=zr.action,rn=zr.hideAction;return ni.indexOf("focus")!==-1||rn.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(zr,ni){var rn=this.props.children.props[zr];rn&&rn(ni);var Kn=this.props[zr];Kn&&Kn(ni)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var zr=this.state.popupVisible,ni=this.props,rn=ni.children,Kn=ni.forceRender,li=ni.alignPoint,ci=ni.className,si=ni.autoDestroy,Ci=a.a.Children.only(rn),mi={key:"trigger"};this.isContextMenuToShow()?mi.onContextMenu=this.onContextMenu:mi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(mi.onClick=this.onClick,mi.onMouseDown=this.onMouseDown,mi.onTouchStart=this.onTouchStart):(mi.onClick=this.createTwoChains("onClick"),mi.onMouseDown=this.createTwoChains("onMouseDown"),mi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(mi.onMouseEnter=this.onMouseEnter,li&&(mi.onMouseMove=this.onMouseMove)):mi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?mi.onMouseLeave=this.onMouseLeave:mi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(mi.onFocus=this.onFocus,mi.onBlur=this.onBlur):(mi.onFocus=this.createTwoChains("onFocus"),mi.onBlur=this.createTwoChains("onBlur"));var yi=_()(Ci&&Ci.props&&Ci.props.className,ci);yi&&(mi.className=yi);var Ni=Object(K.a)({},mi);Object(Gn.c)(Ci)&&(Ni.ref=Object(Gn.a)(this.triggerRef,Ci.ref));var ia=a.a.cloneElement(Ci,Ni),Ki;return(zr||this.popupRef.current||Kn)&&(Ki=a.a.createElement(vt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!zr&&si&&(Ki=null),a.a.createElement(yn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Ki)}}],[{key:"getDerivedStateFromProps",value:function(zr,ni){var rn=zr.popupVisible,Kn={};return rn!==void 0&&ni.popupVisible!==rn&&(Kn.popupVisible=rn,Kn.prevPopupVisible=ni.popupVisible),Kn}}]),Qn}(a.a.Component);return Er.contextType=yn,Er.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Hn,getDocument:pi,onPopupVisibleChange:qn,afterPopupVisibleChange:qn,onPopupAlign:qn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Er}var Oi=wi(Ot.a),zi={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 ea(vt){var Er,qr=vt.prefixCls,Gr=vt.popupElement,Qn=vt.popupStyle,un=vt.visible,zr=vt.dropdownClassName,ni=vt.dropdownAlign,rn=vt.transitionName,Kn=vt.getPopupContainer,li=vt.children,ci=vt.range,si=vt.popupPlacement,Ci=vt.direction,mi="".concat(qr,"-dropdown"),yi=function(){return si!==void 0?si:Ci==="rtl"?"bottomRight":"bottomLeft"};return u.createElement(Oi,{showAction:[],hideAction:[],popupPlacement:yi(),builtinPlacements:zi,prefixCls:mi,popupTransitionName:rn,popup:Gr,popupAlign:ni,popupVisible:un,popupClassName:_()(zr,(Er={},Object(j.a)(Er,"".concat(mi,"-range"),ci),Object(j.a)(Er,"".concat(mi,"-rtl"),Ci==="rtl"),Er)),popupStyle:Qn,getPopupContainer:Kn},li)}var Gi=ea;function Wi(vt){var Er=vt.open,qr=vt.value,Gr=vt.isClickOutside,Qn=vt.triggerOpen,un=vt.forwardKeyDown,zr=vt.blurToCancel,ni=vt.onSubmit,rn=vt.onCancel,Kn=vt.onFocus,li=vt.onBlur,ci=Object(u.useState)(!1),si=Object(z.a)(ci,2),Ci=si[0],mi=si[1],yi=Object(u.useState)(!1),Ni=Object(z.a)(yi,2),ia=Ni[0],Ki=Ni[1],fa=Object(u.useRef)(!1),Ya=Object(u.useRef)(!1),xa={onMouseDown:function(){mi(!0),Qn(!0)},onKeyDown:function(Da){switch(Da.which){case G.a.ENTER:{Er?ni()!==!1&&mi(!0):Qn(!0),Da.preventDefault();return}case G.a.TAB:{Ci&&Er&&!Da.shiftKey?(mi(!1),Da.preventDefault()):!Ci&&Er&&(!un(Da)&&Da.shiftKey&&(mi(!0),Da.preventDefault()));return}case G.a.ESC:{mi(!0),rn();return}}!Er&&![G.a.SHIFT].includes(Da.which)?Qn(!0):Ci||un(Da)},onFocus:function(Da){mi(!0),Ki(!0),Kn&&Kn(Da)},onBlur:function(Da){if(fa.current||!Gr(document.activeElement)){fa.current=!1;return}zr?setTimeout(function(){Gr(document.activeElement)&&rn()},0):Er&&(Qn(!1),Ya.current&&ni()),Ki(!1),li&&li(Da)}};return Object(u.useEffect)(function(){Ya.current=!1},[Er]),Object(u.useEffect)(function(){Ya.current=!0},[qr]),Object(u.useEffect)(function(){return $(function(wa){var Da=wa.target;Er&&(Gr(Da)?ia||Qn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[xa,{focused:ia,typing:Ci}]}function Hi(vt){var Er=vt.valueTexts,qr=vt.onTextChange,Gr=u.useState(""),Qn=Object(z.a)(Gr,2),un=Qn[0],zr=Qn[1],ni=u.useRef([]);ni.current=Er;function rn(li){zr(li),qr(li)}function Kn(){zr(ni.current[0])}return u.useEffect(function(){Er.every(function(li){return li!==un})&&Kn()},[Er.join("||")]),[un,rn,Kn]}var Ji=r("Gytx"),ca=r.n(Ji);function Ca(vt,Er){var qr=Er.formatList,Gr=Er.generateConfig,Qn=Er.locale;return Object($e.a)(function(){if(!vt)return[[""],""];for(var un="",zr=[],ni=0;ni<qr.length;ni+=1){var rn=qr[ni],Kn=Gr.locale.format(Qn.locale,vt,rn);zr.push(Kn),ni===0&&(un=Kn)}return[zr,un]},[vt,qr],function(un,zr){return un[0]!==zr[0]||!ca()(un[1],zr[1])})}function na(vt,Er){var qr=Er.formatList,Gr=Er.generateConfig,Qn=Er.locale,un=Object(u.useState)(null),zr=Object(z.a)(un,2),ni=zr[0],rn=zr[1],Kn=Object(u.useRef)(null);function li(Ni){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Kn.current),ia){rn(Ni);return}Kn.current=requestAnimationFrame(function(){rn(Ni)})}var ci=Ca(ni,{formatList:qr,generateConfig:Gr,locale:Qn}),si=Object(z.a)(ci,2),Ci=si[1];function mi(Ni){li(Ni)}function yi(){var Ni=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;li(null,Ni)}return Object(u.useEffect)(function(){yi(!0)},[vt]),Object(u.useEffect)(function(){return function(){return cancelAnimationFrame(Kn.current)}},[]),[Ci,mi,yi]}function Pa(vt){var Er,qr=vt.prefixCls,Gr=qr===void 0?"rc-picker":qr,Qn=vt.id,un=vt.tabIndex,zr=vt.style,ni=vt.className,rn=vt.dropdownClassName,Kn=vt.dropdownAlign,li=vt.popupStyle,ci=vt.transitionName,si=vt.generateConfig,Ci=vt.locale,mi=vt.inputReadOnly,yi=vt.allowClear,Ni=vt.autoFocus,ia=vt.showTime,Ki=vt.picker,fa=Ki===void 0?"date":Ki,Ya=vt.format,xa=vt.use12Hours,wa=vt.value,Da=vt.defaultValue,ja=vt.open,ko=vt.defaultOpen,ro=vt.defaultOpenValue,pa=vt.suffixIcon,Ea=vt.clearIcon,Fa=vt.disabled,Ka=vt.disabledDate,lo=vt.placeholder,so=vt.getPopupContainer,Co=vt.pickerRef,Lo=vt.panelRender,is=vt.onChange,cs=vt.onOpenChange,Rs=vt.onFocus,Ko=vt.onBlur,as=vt.onMouseDown,co=vt.onMouseUp,Ao=vt.onMouseEnter,$a=vt.onMouseLeave,ss=vt.onContextMenu,_s=vt.onClick,Fo=vt.direction,il=vt.autoComplete,Eo=il===void 0?"off":il,zo=u.useRef(null),Fs=fa==="date"&&!!ia||fa==="time",ms=je(rt(Ya,fa,ia,xa)),hs=u.useRef(null),An=u.useRef(null),Ns=Object(V.a)(null,{value:wa,defaultValue:Da}),Ll=Object(z.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=u.useState(el),ks=Object(z.a)(ds,2),Qs=ks[0],tl=ks[1],xs=u.useRef(null),Bs=Object(V.a)(!1,{value:ja,defaultValue:ko,postState:function(vo){return Fa?!1:vo},onChange:function(vo){cs&&cs(vo),!vo&&xs.current&&xs.current.onClose&&xs.current.onClose()}}),al=Object(z.a)(Bs,2),Js=al[0],Vo=al[1],No=Ca(Qs,{formatList:ms,generateConfig:si,locale:Ci}),fs=Object(z.a)(No,2),Ds=fs[0],go=fs[1],jt=Hi({valueTexts:Ds,onTextChange:function(vo){var Ms=si.locale.parse(Ci.locale,vo,ms);Ms&&(!Ka||!Ka(Ms))&&tl(Ms)}}),or=Object(z.a)(jt,3),In=or[0],hi=or[1],Nt=or[2],ce=function(vo){tl(vo),Gs(vo),is&&!ft(si,el,vo)&&is(vo,vo?si.locale.format(Ci.locale,vo,ms[0]):"")},xe=function(vo){if(Fa&&vo)return;Vo(vo)},Ie=function(vo){return Js&&xs.current&&xs.current.onKeyDown?xs.current.onKeyDown(vo):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Je=function(){co&&co.apply(void 0,arguments),zo.current&&(zo.current.focus(),xe(!0))},Dt=Wi({blurToCancel:Fs,open:Js,value:In,triggerOpen:xe,forwardKeyDown:Ie,isClickOutside:function(vo){return!pe([hs.current,An.current],vo)},onSubmit:function(){return Ka&&Ka(Qs)?!1:(ce(Qs),xe(!1),Nt(),!0)},onCancel:function(){xe(!1),tl(el),Nt()},onFocus:Rs,onBlur:Ko}),lr=Object(z.a)(Dt,2),Xr=lr[0],hn=lr[1],Nn=hn.focused,ui=hn.typing;u.useEffect(function(){Js||(tl(el),!Ds.length||Ds[0]===""?hi(""):go!==In&&Nt())},[Js,Ds]),u.useEffect(function(){Js||Nt()},[fa]),u.useEffect(function(){tl(el)},[el]),Co&&(Co.current={focus:function(){zo.current&&zo.current.focus()},blur:function(){zo.current&&zo.current.blur()}});var xi=Object(K.a)(Object(K.a)({},vt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ai=u.createElement($r,Object.assign({},xi,{generateConfig:si,className:_()(Object(j.a)({},"".concat(Gr,"-panel-focused"),!ui)),value:Qs,locale:Ci,tabIndex:-1,onChange:tl,direction:Fo}));Lo&&(Ai=Lo(Ai));var Yi=u.createElement("div",{className:"".concat(Gr,"-panel-container"),onMouseDown:function(vo){vo.preventDefault()}},Ai),sa;pa&&(sa=u.createElement("span",{className:"".concat(Gr,"-suffix")},pa));var Ua;yi&&el&&!Fa&&(Ua=u.createElement("span",{onMouseDown:function(vo){vo.preventDefault(),vo.stopPropagation()},onMouseUp:function(vo){vo.preventDefault(),vo.stopPropagation(),ce(null),xe(!1)},className:"".concat(Gr,"-clear")},Ea||u.createElement("span",{className:"".concat(Gr,"-clear-btn")})));var no=function(vo,Ms){(Ms==="submit"||Ms!=="key"&&!Fs)&&(ce(vo),xe(!1))},Wo=Fo==="rtl"?"bottomRight":"bottomLeft",Zo=na(In,{formatList:ms,generateConfig:si,locale:Ci}),Bo=Object(z.a)(Zo,3),Es=Bo[0],As=Bo[1],$o=Bo[2];return u.createElement(se.Provider,{value:{operationRef:xs,hideHeader:fa==="time",panelRef:hs,onSelect:no,open:Js,defaultOpenValue:ro,onDateMouseEnter:As,onDateMouseLeave:$o}},u.createElement(Gi,{visible:Js,popupElement:Yi,popupStyle:li,prefixCls:Gr,dropdownClassName:rn,dropdownAlign:Kn,getPopupContainer:so,transitionName:ci,popupPlacement:Wo,direction:Fo},u.createElement("div",{className:_()(Gr,ni,(Er={},Object(j.a)(Er,"".concat(Gr,"-disabled"),Fa),Object(j.a)(Er,"".concat(Gr,"-focused"),Nn),Object(j.a)(Er,"".concat(Gr,"-rtl"),Fo==="rtl"),Er)),style:zr,onMouseDown:as,onMouseUp:Je,onMouseEnter:Ao,onMouseLeave:$a,onContextMenu:ss,onClick:_s},u.createElement("div",{className:_()("".concat(Gr,"-input"),Object(j.a)({},"".concat(Gr,"-input-placeholder"),!!Es)),ref:An},u.createElement("input",Object.assign({id:Qn,tabIndex:un,disabled:Fa,readOnly:mi||!ui,value:Es||In,onChange:function(vo){hi(vo.target.value)},autoFocus:Ni,placeholder:lo,ref:zo,title:In},Xr,{size:fe(fa,ms[0])},Zt(vt),{autoComplete:Eo})),sa,Ua))))}var La=function(vt){Object(X.a)(qr,vt);var Er=Object(F.a)(qr);function qr(){var Gr;return Object(U.a)(this,qr),Gr=Er.apply(this,arguments),Gr.pickerRef=u.createRef(),Gr.focus=function(){Gr.pickerRef.current&&Gr.pickerRef.current.focus()},Gr.blur=function(){Gr.pickerRef.current&&Gr.pickerRef.current.blur()},Gr}return Object(P.a)(qr,[{key:"render",value:function(){return u.createElement(Pa,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),qr}(u.Component),va=La;function ga(vt,Er,qr){var Gr=vt.picker,Qn=vt.locale,un=vt.selectedValue,zr=vt.disabledDate,ni=vt.disabled,rn=vt.generateConfig,Kn=ut(un,0),li=ut(un,1);function ci(Ni){var ia=rn.getYear(Ni),Ki=rn.locale.getWeek(Qn.locale,Ni);return ia*100+Ki}function si(Ni){var ia=rn.getYear(Ni),Ki=rn.getMonth(Ni);return ia*100+Ki}function Ci(Ni){var ia=rn.getYear(Ni),Ki=Jt(rn,Ni);return ia*10+Ki}var mi=u.useCallback(function(Ni){if(zr&&zr(Ni))return!0;if(ni[1]&&li)return!kt(rn,Ni,li)&&rn.isAfter(Ni,li);if(Er&&li)switch(Gr){case"quarter":return Ci(Ni)>Ci(li);case"month":return si(Ni)>si(li);case"week":return ci(Ni)>ci(li);default:return!kt(rn,Ni,li)&&rn.isAfter(Ni,li)}return!1},[zr,ni[1],li,Er]),yi=u.useCallback(function(Ni){if(zr&&zr(Ni))return!0;if(ni[0]&&Kn)return!kt(rn,Ni,li)&&rn.isAfter(Kn,Ni);if(qr&&Kn)switch(Gr){case"quarter":return Ci(Ni)<Ci(Kn);case"month":return si(Ni)<si(Kn);case"week":return ci(Ni)<ci(Kn);default:return!kt(rn,Ni,Kn)&&rn.isAfter(Kn,Ni)}return!1},[zr,ni[0],Kn,qr]);return[mi,yi]}function Oa(vt,Er,qr,Gr){var Qn=an(vt,qr,Gr,1);function un(zr){return zr(vt,Er)?"same":zr(Qn,Er)?"closing":"far"}switch(qr){case"year":return un(function(zr,ni){return Qt(Gr,zr,ni)});case"quarter":case"month":return un(function(zr,ni){return dt(Gr,zr,ni)});default:return un(function(zr,ni){return tn(Gr,zr,ni)})}}function Aa(vt,Er,qr,Gr){var Qn=ut(vt,0),un=ut(vt,1);if(Er===0)return Qn;if(Qn&&un){var zr=Oa(Qn,un,qr,Gr);switch(zr){case"same":return Qn;case"closing":return Qn;default:return an(un,qr,Gr,-1)}}return Qn}function Xa(vt){var Er=vt.values,qr=vt.picker,Gr=vt.defaultDates,Qn=vt.generateConfig,un=u.useState(function(){return[ut(Gr,0),ut(Gr,1)]}),zr=Object(z.a)(un,2),ni=zr[0],rn=zr[1],Kn=u.useState(null),li=Object(z.a)(Kn,2),ci=li[0],si=li[1],Ci=ut(Er,0),mi=ut(Er,1);function yi(ia){return ni[ia]?ni[ia]:ut(ci,ia)||Aa(Er,ia,qr,Qn)||Ci||mi||Qn.getNow()}function Ni(ia,Ki){if(ia){var fa=Ht(ci,ia,Ki);rn(Ht(ni,null,Ki)||[null,null]);var Ya=(Ki+1)%2;ut(Er,Ya)||(fa=Ht(fa,ia,Ya)),si(fa)}else(Ci||mi)&&si(null)}return[yi,Ni]}function _a(vt,Er){return vt&&vt[0]&&vt[1]&&Er.isAfter(vt[0],vt[1])?[vt[1],vt[0]]:vt}function Va(vt,Er,qr,Gr){return vt||Gr&&Gr[Er]?!0:!!qr[(Er+1)%2]}function Bi(vt){var Er,qr,Gr,Qn=vt.prefixCls,un=Qn===void 0?"rc-picker":Qn,zr=vt.id,ni=vt.style,rn=vt.className,Kn=vt.popupStyle,li=vt.dropdownClassName,ci=vt.transitionName,si=vt.dropdownAlign,Ci=vt.getPopupContainer,mi=vt.generateConfig,yi=vt.locale,Ni=vt.placeholder,ia=vt.autoFocus,Ki=vt.disabled,fa=vt.format,Ya=vt.picker,xa=Ya===void 0?"date":Ya,wa=vt.showTime,Da=vt.use12Hours,ja=vt.separator,ko=ja===void 0?"~":ja,ro=vt.value,pa=vt.defaultValue,Ea=vt.defaultPickerValue,Fa=vt.open,Ka=vt.defaultOpen,lo=vt.disabledDate,so=vt.disabledTime,Co=vt.dateRender,Lo=vt.panelRender,is=vt.ranges,cs=vt.allowEmpty,Rs=vt.allowClear,Ko=vt.suffixIcon,as=vt.clearIcon,co=vt.pickerRef,Ao=vt.inputReadOnly,$a=vt.mode,ss=vt.renderExtraFooter,_s=vt.onChange,Fo=vt.onOpenChange,il=vt.onPanelChange,Eo=vt.onCalendarChange,zo=vt.onFocus,Fs=vt.onBlur,ms=vt.onOk,hs=vt.components,An=vt.order,Ns=vt.direction,Ll=vt.activePickerIndex,el=vt.autoComplete,Gs=el===void 0?"off":el,ds=xa==="date"&&!!wa||xa==="time",ks=Object(u.useRef)({}),Qs=Object(u.useRef)(null),tl=Object(u.useRef)(null),xs=Object(u.useRef)(null),Bs=Object(u.useRef)(null),al=Object(u.useRef)(null),Js=Object(u.useRef)(null),Vo=Object(u.useRef)(null),No=je(rt(fa,xa,wa,Da)),fs=Object(V.a)(0,{value:Ll}),Ds=Object(z.a)(fs,2),go=Ds[0],jt=Ds[1],or=Object(u.useRef)(null),In=u.useMemo(function(){return Array.isArray(Ki)?Ki:[Ki||!1,Ki||!1]},[Ki]),hi=Object(V.a)(null,{value:ro,defaultValue:pa,postState:function(ve){return xa==="time"&&!An?ve:_a(ve,mi)}}),Nt=Object(z.a)(hi,2),ce=Nt[0],xe=Nt[1],Ie=Xa({values:ce,picker:xa,defaultDates:Ea,generateConfig:mi}),Je=Object(z.a)(Ie,2),Dt=Je[0],lr=Je[1],Xr=Object(V.a)(ce,{postState:function(ve){var Te=ve;if(In[0]&&In[1])return Te;for(var ze=0;ze<2;ze+=1)In[ze]&&!ut(Te,ze)&&!ut(cs,ze)&&(Te=Ht(Te,mi.getNow(),ze));return Te}}),hn=Object(z.a)(Xr,2),Nn=hn[0],ui=hn[1],xi=Object(V.a)([xa,xa],{value:$a}),Ai=Object(z.a)(xi,2),Yi=Ai[0],sa=Ai[1];Object(u.useEffect)(function(){sa([xa,xa])},[xa]);var Ua=function(ve,Te){sa(ve),il&&il(Te,ve)},no=ga({picker:xa,selectedValue:Nn,locale:yi,disabled:In,disabledDate:lo,generateConfig:mi},ks.current[1],ks.current[0]),Wo=Object(z.a)(no,2),Zo=Wo[0],Bo=Wo[1],Es=Object(V.a)(!1,{value:Fa,defaultValue:Ka,postState:function(ve){return In[go]?!1:ve},onChange:function(ve){Fo&&Fo(ve),!ve&&or.current&&or.current.onClose&&or.current.onClose()}}),As=Object(z.a)(Es,2),$o=As[0],Do=As[1],vo=$o&&go===0,Ms=$o&&go===1,rl=Object(u.useState)(0),gs=Object(z.a)(rl,2),Ra=gs[0],dl=gs[1];Object(u.useEffect)(function(){!$o&&Qs.current&&dl(Qs.current.offsetWidth)},[$o]);var fl=u.useRef();function Us(re,ve){if(re)clearTimeout(fl.current),ks.current[ve]=!0,jt(ve),Do(re),$o||lr(null,ve);else if(go===ve){Do(re);var Te=ks.current;fl.current=setTimeout(function(){Te===ks.current&&(ks.current={})})}}function Os(re){Us(!0,re),setTimeout(function(){var ve=[Js,Vo][re];ve.current&&ve.current.focus()},0)}function Xs(re,ve){var Te=re,ze=ut(Te,0),st=ut(Te,1);ze&&st&&mi.isAfter(ze,st)&&(xa==="week"&&!Bt(mi,yi.locale,ze,st)||xa==="quarter"&&!$t(mi,ze,st)||xa!=="week"&&xa!=="quarter"&&xa!=="time"&&!kt(mi,ze,st)?(ve===0?(Te=[ze,null],st=null):(ze=null,Te=[null,st]),ks.current=Object(j.a)({},ve,!0)):(xa!=="time"||An!==!1)&&(Te=_a(Te,mi))),ui(Te);var mt=Te&&Te[0]?mi.locale.format(yi.locale,Te[0],No[0]):"",Yt=Te&&Te[1]?mi.locale.format(yi.locale,Te[1],No[0]):"";if(Eo){var Tr={range:ve===0?"start":"end"};Eo(Te,[mt,Yt],Tr)}var wr=Va(ze,0,In,cs),jr=Va(st,1,In,cs),Qr=Te===null||wr&&jr;Qr&&(xe(Te),_s&&(!ft(mi,ut(ce,0),ze)||!ft(mi,ut(ce,1),st))&&_s(Te,[mt,Yt]));var Cn=null;ve===0&&!In[1]?Cn=1:ve===1&&!In[0]&&(Cn=0),Cn!==null&&Cn!==go&&(!ks.current[Cn]||!ut(Te,Cn))&&ut(Te,ve)?Os(Cn):Us(!1,ve)}var Ql=function(ve){return $o&&or.current&&or.current.onKeyDown?or.current.onKeyDown(ve):(Object(x.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ul={formatList:No,generateConfig:mi,locale:yi},wl=Ca(ut(Nn,0),Ul),Ts=Object(z.a)(wl,2),Ws=Ts[0],Tl=Ts[1],pl=Ca(ut(Nn,1),Ul),jo=Object(z.a)(pl,2),yo=jo[0],qo=jo[1],ps=function(ve,Te){var ze=mi.locale.parse(yi.locale,ve,No),st=Te===0?Zo:Bo;ze&&!st(ze)&&(ui(Ht(Nn,ze,Te)),lr(ze,Te))},Is=Hi({valueTexts:Ws,onTextChange:function(ve){return ps(ve,0)}}),es=Object(z.a)(Is,3),Ls=es[0],Ps=es[1],ml=es[2],Rl=Hi({valueTexts:yo,onTextChange:function(ve){return ps(ve,1)}}),_l=Object(z.a)(Rl,3),Bl=_l[0],jl=_l[1],kl=_l[2],Xl=Object(u.useState)(null),ol=Object(z.a)(Xl,2),Ys=ol[0],sl=ol[1],nl=Object(u.useState)(null),xl=Object(z.a)(nl,2),Ml=xl[0],Wl=xl[1],au=na(Ls,{formatList:No,generateConfig:mi,locale:yi}),Nl=Object(z.a)(au,3),$l=Nl[0],tu=Nl[1],Iu=Nl[2],pu=na(Bl,{formatList:No,generateConfig:mi,locale:yi}),mu=Object(z.a)(pu,3),gu=mu[0],ql=mu[1],Cl=mu[2],ll=function(ve){Wl(Ht(Nn,ve,go)),go===0?tu(ve):ql(ve)},Hl=function(){Wl(Ht(Nn,null,go)),go===0?Iu():Cl()},Sl=function(ve,Te){return{blurToCancel:ds,forwardKeyDown:Ql,onBlur:Fs,isClickOutside:function(st){return!pe([tl.current,xs.current,Bs.current],st)},onFocus:function(st){jt(ve),zo&&zo(st)},triggerOpen:function(st){Us(st,ve)},onSubmit:function(){Xs(Nn,ve),Te()},onCancel:function(){Us(!1,ve),ui(ce),Te()}}},Su=Wi(Object(K.a)(Object(K.a)({},Sl(0,ml)),{},{open:vo,value:Ls})),vu=Object(z.a)(Su,2),Au=vu[0],Ol=vu[1],cu=Ol.focused,du=Ol.typing,Lu=Wi(Object(K.a)(Object(K.a)({},Sl(1,kl)),{},{open:Ms,value:Bl})),zl=Object(z.a)(Lu,2),ru=zl[0],ou=zl[1],su=ou.focused,Jl=ou.typing,Du=function(ve){!$o&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&(In[0]?In[1]||Os(1):Os(0))},Ru=function(ve){$o&&(cu||su)&&!Js.current.contains(ve.target)&&!Vo.current.contains(ve.target)&&ve.preventDefault()},Zl=ce&&ce[0]?mi.locale.format(yi.locale,ce[0],"YYYYMMDDHHmmss"):"",yu=ce&&ce[1]?mi.locale.format(yi.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(u.useEffect)(function(){$o||(ui(ce),!Ws.length||Ws[0]===""?Ps(""):Tl!==Ls&&ml(),!yo.length||yo[0]===""?jl(""):qo!==Bl&&kl())},[$o,Ws,yo]),Object(u.useEffect)(function(){ui(ce)},[Zl,yu]),co&&(co.current={focus:function(){Js.current&&Js.current.focus()},blur:function(){Js.current&&Js.current.blur(),Vo.current&&Vo.current.blur()}});var xu=Object.keys(is||{}),bu=xu.map(function(re){var ve=is[re],Te=typeof ve=="function"?ve():ve;return{label:re,onClick:function(){Xs(Te,null),Us(!1,go)},onMouseEnter:function(){sl(Te)},onMouseLeave:function(){sl(null)}}});function hl(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=null;$o&&Ml&&Ml[0]&&Ml[1]&&mi.isAfter(Ml[1],Ml[0])&&(Te=Ml);var ze=wa;if(wa&&Object(Q.a)(wa)==="object"&&wa.defaultValue){var st=wa.defaultValue;ze=Object(K.a)(Object(K.a)({},wa),{},{defaultValue:ut(st,go)||void 0})}var mt=null;return Co&&(mt=function(Tr,wr){return Co(Tr,wr,{range:go?"end":"start"})}),u.createElement(Bn.Provider,{value:{inRange:!0,panelPosition:re,rangedValue:Ys||Nn,hoverRangedValue:Te}},u.createElement($r,Object.assign({},vt,ve,{dateRender:mt,showTime:ze,mode:Yi[go],generateConfig:mi,style:void 0,direction:Ns,disabledDate:go===0?Zo:Bo,disabledTime:function(Tr){return so?so(Tr,go===0?"start":"end"):!1},className:_()(Object(j.a)({},"".concat(un,"-panel-focused"),go===0?!du:!Jl)),value:ut(Nn,go),locale:yi,tabIndex:-1,onPanelChange:function(Tr,wr){Ua(Ht(Yi,wr,go),Ht(Nn,Tr,go));var jr=Tr;re==="right"&&Yi[go]===wr&&(jr=an(jr,wr,mi,-1)),lr(jr,go)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Dl=0,nu=0;go&&xs.current&&al.current&&tl.current&&(Dl=xs.current.offsetWidth+al.current.offsetWidth,tl.current.offsetWidth&&Dl>tl.current.offsetWidth&&(nu=Dl));var Nu=Ns==="rtl"?{right:Dl}:{left:Dl};function hu(){var re,ve=kr(un,Yi[go],ss),Te=Fn({prefixCls:un,components:hs,needConfirmButton:ds,okDisabled:!ut(Nn,go)||lo&&lo(Nn[go]),locale:yi,rangeList:bu,onOk:function(){ut(Nn,go)&&(Xs(Nn,go),ms&&ms(Nn))}});if(xa!=="time"&&!wa){var ze=Dt(go),st=an(ze,xa,mi),mt=Yi[go],Yt=mt===xa,Tr=hl(Yt?"left":!1,{pickerValue:ze,onPickerValueChange:function(Cn){lr(Cn,go)}}),wr=hl("right",{pickerValue:st,onPickerValueChange:function(Cn){lr(an(Cn,xa,mi,-1),go)}});Ns==="rtl"?re=u.createElement(u.Fragment,null,wr,Yt&&Tr):re=u.createElement(u.Fragment,null,Tr,Yt&&wr)}else re=hl();var jr=u.createElement(u.Fragment,null,u.createElement("div",{className:"".concat(un,"-panels")},re),(ve||Te)&&u.createElement("div",{className:"".concat(un,"-footer")},ve,Te));return Lo&&(jr=Lo(jr)),u.createElement("div",{className:"".concat(un,"-panel-container"),style:{marginLeft:nu},ref:tl,onMouseDown:function(Cn){Cn.preventDefault()}},jr)}var fu=u.createElement("div",{className:_()("".concat(un,"-range-wrapper"),"".concat(un,"-").concat(xa,"-range-wrapper")),style:{minWidth:Ra}},u.createElement("div",{className:"".concat(un,"-range-arrow"),style:Nu}),hu()),iu;Ko&&(iu=u.createElement("span",{className:"".concat(un,"-suffix")},Ko));var Ae;Rs&&(ut(ce,0)&&!In[0]||ut(ce,1)&&!In[1])&&(Ae=u.createElement("span",{onMouseDown:function(ve){ve.preventDefault(),ve.stopPropagation()},onMouseUp:function(ve){ve.preventDefault(),ve.stopPropagation();var Te=ce;In[0]||(Te=Ht(Te,null,0)),In[1]||(Te=Ht(Te,null,1)),Xs(Te,null),Us(!1,go)},className:"".concat(un,"-clear")},as||u.createElement("span",{className:"".concat(un,"-clear-btn")})));var q={size:fe(xa,No[0])},N=0,W=0;xs.current&&Bs.current&&al.current&&(go===0?W=xs.current.offsetWidth:(N=Dl,W=Bs.current.offsetWidth));var H=Ns==="rtl"?{right:N}:{left:N},Z=function(ve,Te){var ze=Ht(Nn,ve,go);Te==="submit"||Te!=="key"&&!ds?(Xs(ze,go),go===0?Iu():Cl()):ui(ze)};return u.createElement(se.Provider,{value:{operationRef:or,hideHeader:xa==="time",onDateMouseEnter:ll,onDateMouseLeave:Hl,hideRanges:!0,onSelect:Z,open:$o}},u.createElement(Gi,{visible:$o,popupElement:fu,popupStyle:Kn,prefixCls:un,dropdownClassName:li,dropdownAlign:si,getPopupContainer:Ci,transitionName:ci,range:!0,direction:Ns},u.createElement("div",Object.assign({ref:Qs,className:_()(un,"".concat(un,"-range"),rn,(Er={},Object(j.a)(Er,"".concat(un,"-disabled"),In[0]&&In[1]),Object(j.a)(Er,"".concat(un,"-focused"),go===0?cu:su),Object(j.a)(Er,"".concat(un,"-rtl"),Ns==="rtl"),Er)),style:ni,onClick:Du,onMouseDown:Ru},Zt(vt)),u.createElement("div",{className:_()("".concat(un,"-input"),(qr={},Object(j.a)(qr,"".concat(un,"-input-active"),go===0),Object(j.a)(qr,"".concat(un,"-input-placeholder"),!!$l),qr)),ref:xs},u.createElement("input",Object.assign({id:zr,disabled:In[0],readOnly:Ao||!du,value:$l||Ls,onChange:function(ve){Ps(ve.target.value)},autoFocus:ia,placeholder:ut(Ni,0)||"",ref:Js},Au,q,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(un,"-range-separator"),ref:al},ko),u.createElement("div",{className:_()("".concat(un,"-input"),(Gr={},Object(j.a)(Gr,"".concat(un,"-input-active"),go===1),Object(j.a)(Gr,"".concat(un,"-input-placeholder"),!!gu),Gr)),ref:Bs},u.createElement("input",Object.assign({disabled:In[1],readOnly:Ao||!Jl,value:gu||Bl,onChange:function(ve){jl(ve.target.value)},placeholder:ut(Ni,1)||"",ref:Vo},ru,q,{autoComplete:Gs}))),u.createElement("div",{className:"".concat(un,"-active-bar"),style:Object(K.a)(Object(K.a)({},H),{},{width:W,position:"absolute"})}),iu,Ae)))}var io=function(vt){Object(X.a)(qr,vt);var Er=Object(F.a)(qr);function qr(){var Gr;return Object(U.a)(this,qr),Gr=Er.apply(this,arguments),Gr.pickerRef=u.createRef(),Gr.focus=function(){Gr.pickerRef.current&&Gr.pickerRef.current.focus()},Gr.blur=function(){Gr.pickerRef.current&&Gr.pickerRef.current.blur()},Gr}return Object(P.a)(qr,[{key:"render",value:function(){return u.createElement(Bi,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),qr}(u.Component),oo=io,Qo=va,mo=r("61s2");function To(vt,Er,qr){return qr!==void 0?qr:vt==="year"&&Er.lang.yearPlaceholder?Er.lang.yearPlaceholder:vt==="quarter"&&Er.lang.quarterPlaceholder?Er.lang.quarterPlaceholder:vt==="month"&&Er.lang.monthPlaceholder?Er.lang.monthPlaceholder:vt==="week"&&Er.lang.weekPlaceholder?Er.lang.weekPlaceholder:vt==="time"&&Er.timePickerLocale.placeholder?Er.timePickerLocale.placeholder:Er.lang.placeholder}function ao(vt,Er,qr){return qr!==void 0?qr:vt==="year"&&Er.lang.yearPlaceholder?Er.lang.rangeYearPlaceholder:vt==="month"&&Er.lang.monthPlaceholder?Er.lang.rangeMonthPlaceholder:vt==="week"&&Er.lang.weekPlaceholder?Er.lang.rangeWeekPlaceholder:vt==="time"&&Er.timePickerLocale.placeholder?Er.timePickerLocale.rangePlaceholder:Er.lang.rangePlaceholder}var So=r("uaoM"),bo=r("H84U"),to=r("YMnH"),Jo=r("3Nzz"),Uo=function(vt,Er){var qr={};for(var Gr in vt)Object.prototype.hasOwnProperty.call(vt,Gr)&&Er.indexOf(Gr)<0&&(qr[Gr]=vt[Gr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Gr=Object.getOwnPropertySymbols(vt);Qn<Gr.length;Qn++)Er.indexOf(Gr[Qn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Gr[Qn])&&(qr[Gr[Qn]]=vt[Gr[Qn]]);return qr};function wo(vt){function Er(rn,Kn){var li=function(ci){b()(Ci,ci);var si=E()(Ci);function Ci(mi){var yi;return c()(this,Ci),yi=si.call(this,mi),yi.pickerRef=u.createRef(),yi.focus=function(){yi.pickerRef.current&&yi.pickerRef.current.focus()},yi.blur=function(){yi.pickerRef.current&&yi.pickerRef.current.blur()},yi.getDefaultLocale=function(){var Ni=yi.props.locale,ia=d()(d()({},mo.a),Ni);return ia.lang=d()(d()({},ia.lang),(Ni||{}).lang),ia},yi.renderPicker=function(Ni){var ia=yi.context,Ki=ia.getPrefixCls,fa=ia.direction,Ya=ia.getPopupContainer,xa=yi.props,wa=xa.prefixCls,Da=xa.getPopupContainer,ja=xa.className,ko=xa.size,ro=xa.bordered,pa=ro===void 0?!0:ro,Ea=xa.placeholder,Fa=Uo(xa,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=yi.props,lo=Ka.format,so=Ka.showTime,Co=Ki("picker",wa),Lo={showToday:!0},is={};rn&&(is.picker=rn);var cs=rn||yi.props.picker;return is=d()(d()(d()({},is),so?rs(d()({format:lo,picker:cs},so)):{}),cs==="time"?rs(d()(d()({format:lo},yi.props),{picker:cs})):{}),u.createElement(Jo.b.Consumer,null,function(Rs){var Ko,as=ko||Rs;return u.createElement(Qo,d()({ref:yi.pickerRef,placeholder:To(cs,Ni,Ea),suffixIcon:cs==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},Lo,Fa,is,{locale:Ni.lang,className:_()(ja,(Ko={},n()(Ko,"".concat(Co,"-").concat(as),as),n()(Ko,"".concat(Co,"-borderless"),!pa),Ko)),prefixCls:Co,getPopupContainer:Da||Ya,generateConfig:vt,prevIcon:u.createElement("span",{className:"".concat(Co,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(Co,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(Co,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(Co,"-super-next-icon")}),components:os,direction:fa}))})},Object(So.a)(rn!=="quarter",Kn,"DatePicker.".concat(Kn," is legacy usage. Please use DatePicker[picker='").concat(rn,"'] directly.")),yi}return g()(Ci,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ci}(u.Component);return li.contextType=bo.b,Kn&&(li.displayName=Kn),li}var qr=Er(),Gr=Er("week","WeekPicker"),Qn=Er("month","MonthPicker"),un=Er("year","YearPicker"),zr=Er("time","TimePicker"),ni=Er("quarter","QuarterPicker");return{DatePicker:qr,WeekPicker:Gr,MonthPicker:Qn,YearPicker:un,TimePicker:zr,QuarterPicker:ni}}var ts=r("W1kz"),Ia=r.n(ts),Oo=function(vt,Er){var qr={};for(var Gr in vt)Object.prototype.hasOwnProperty.call(vt,Gr)&&Er.indexOf(Gr)<0&&(qr[Gr]=vt[Gr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qn=0,Gr=Object.getOwnPropertySymbols(vt);Qn<Gr.length;Qn++)Er.indexOf(Gr[Qn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Gr[Qn])&&(qr[Gr[Qn]]=vt[Gr[Qn]]);return qr};function Io(vt){var Er=function(qr){b()(Qn,qr);var Gr=E()(Qn);function Qn(){var un;return c()(this,Qn),un=Gr.apply(this,arguments),un.pickerRef=u.createRef(),un.focus=function(){un.pickerRef.current&&un.pickerRef.current.focus()},un.blur=function(){un.pickerRef.current&&un.pickerRef.current.blur()},un.getDefaultLocale=function(){var zr=un.props.locale,ni=d()(d()({},mo.a),zr);return ni.lang=d()(d()({},ni.lang),(zr||{}).lang),ni},un.renderPicker=function(zr){var ni=un.context,rn=ni.getPrefixCls,Kn=ni.direction,li=ni.getPopupContainer,ci=un.props,si=ci.prefixCls,Ci=ci.getPopupContainer,mi=ci.className,yi=ci.size,Ni=ci.bordered,ia=Ni===void 0?!0:Ni,Ki=ci.placeholder,fa=Oo(ci,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ya=un.props,xa=Ya.format,wa=Ya.showTime,Da=Ya.picker,ja=rn("picker",si),ko={};return ko=d()(d()(d()({},ko),wa?rs(d()({format:xa,picker:Da},wa)):{}),Da==="time"?rs(d()(d()({format:xa},un.props),{picker:Da})):{}),u.createElement(Jo.b.Consumer,null,function(ro){var pa,Ea=yi||ro;return u.createElement(oo,d()({separator:u.createElement("span",{"aria-label":"to",className:"".concat(ja,"-separator")},u.createElement(Ia.a,null)),ref:un.pickerRef,placeholder:ao(Da,zr,Ki),suffixIcon:Da==="time"?u.createElement(I.a,null):u.createElement(w.a,null),clearIcon:u.createElement(M.a,null),allowClear:!0,transitionName:"slide-up"},fa,ko,{className:_()(mi,(pa={},n()(pa,"".concat(ja,"-").concat(Ea),Ea),n()(pa,"".concat(ja,"-borderless"),!ia),pa)),locale:zr.lang,prefixCls:ja,getPopupContainer:Ci||li,generateConfig:vt,prevIcon:u.createElement("span",{className:"".concat(ja,"-prev-icon")}),nextIcon:u.createElement("span",{className:"".concat(ja,"-next-icon")}),superPrevIcon:u.createElement("span",{className:"".concat(ja,"-super-prev-icon")}),superNextIcon:u.createElement("span",{className:"".concat(ja,"-super-next-icon")}),components:os,direction:Kn}))})},un}return g()(Qn,[{key:"render",value:function(){return u.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Qn}(u.Component);return Er.contextType=bo.b,Er}var os={button:t,rangeItem:e};function xo(vt){return vt?Array.isArray(vt)?vt:[vt]:[]}function rs(vt){var Er=vt.format,qr=vt.picker,Gr=vt.showHour,Qn=vt.showMinute,un=vt.showSecond,zr=vt.use12Hours,ni=xo(Er)[0],rn=d()({},vt);return ni&&(!ni.includes("s")&&un===void 0&&(rn.showSecond=!1),!ni.includes("m")&&Qn===void 0&&(rn.showMinute=!1),!ni.includes("H")&&!ni.includes("h")&&Gr===void 0&&(rn.showHour=!1),(ni.includes("a")||ni.includes("A"))&&zr===void 0&&(rn.use12Hours=!0)),qr==="time"?rn:{showTime:rn}}function Ho(vt){var Er=wo(vt),qr=Er.DatePicker,Gr=Er.WeekPicker,Qn=Er.MonthPicker,un=Er.YearPicker,zr=Er.TimePicker,ni=Er.QuarterPicker,rn=Io(vt),Kn=qr;return Kn.WeekPicker=Gr,Kn.MonthPicker=Qn,Kn.YearPicker=un,Kn.RangePicker=rn,Kn.TimePicker=zr,Kn.QuarterPicker=ni,Kn}var _o=Ho,uo=_o(m),Ha=L.a=uo},"+lIL":function(R,L,r){var y=r("ProS");r("/ry/"),r("3OrL");var f=r("L5E0"),x=r("7Phj");y.registerVisual(f),y.registerLayout(x)},"+nKL":function(R,L,r){"use strict";var y=r("wx14"),f=r("VTBJ"),x=r("U8pU"),A=r("ODXe"),m=r("rePB"),p=r("Ff2n"),d=r("q1tI"),u=r("i8i4"),a=r("TSYQ"),i=r.n(a),t=r("t23M"),s=d.forwardRef(function(rt,fe){var J=rt.height,Y=rt.offsetY,$=rt.offsetX,de=rt.children,we=rt.prefixCls,Ce=rt.onInnerResize,Se=rt.innerProps,le=rt.rtl,pe=rt.extra,_e={},tt={display:"flex",flexDirection:"column"};if(Y!==void 0){var gt;_e={height:J,position:"relative",overflow:"hidden"},tt=Object(f.a)(Object(f.a)({},tt),{},(gt={transform:"translateY(".concat(Y,"px)")},Object(m.a)(gt,le?"marginRight":"marginLeft",-$),Object(m.a)(gt,"position","absolute"),Object(m.a)(gt,"left",0),Object(m.a)(gt,"right",0),Object(m.a)(gt,"top",0),gt))}return d.createElement("div",{style:_e},d.createElement(t.a,{onResize:function(je){var Zt=je.offsetHeight;Zt&&Ce&&Ce()}},d.createElement("div",Object(y.a)({style:tt,className:i()(Object(m.a)({},"".concat(we,"-holder-inner"),we)),ref:fe},Se),de,pe)))});s.displayName="Filler";var e=s,l=r("wgJM");function n(rt,fe){var J="touches"in rt?rt.touches[0]:rt;return J[fe?"pageX":"pageY"]}var o=d.forwardRef(function(rt,fe){var J,Y=rt.prefixCls,$=rt.rtl,de=rt.scrollOffset,we=rt.scrollRange,Ce=rt.onStartMove,Se=rt.onStopMove,le=rt.onScroll,pe=rt.horizontal,_e=rt.spinSize,tt=rt.containerSize,gt=rt.style,ct=rt.thumbStyle,je=d.useState(!1),Zt=Object(A.a)(je,2),ut=Zt[0],Ht=Zt[1],dr=d.useState(null),Vt=Object(A.a)(dr,2),Mt=Vt[0],Gt=Vt[1],Ve=d.useState(null),me=Object(A.a)(Ve,2),te=me[0],Ze=me[1],Xe=!$,ue=d.useRef(),St=d.useRef(),Qt=d.useState(!1),dt=Object(A.a)(Qt,2),Jt=dt[0],$t=dt[1],tn=d.useRef(),kt=function(){clearTimeout(tn.current),$t(!0),tn.current=setTimeout(function(){$t(!1)},3e3)},tr=we-tt||0,Bt=tt-_e||0,ft=tr>0,it=d.useMemo(function(){if(de===0||tr===0)return 0;var wt=de/tr;return wt*Bt},[de,tr,Bt]),Or=function(De){De.stopPropagation(),De.preventDefault()},an=d.useRef({top:it,dragging:ut,pageY:Mt,startTop:te});an.current={top:it,dragging:ut,pageY:Mt,startTop:te};var En=function(De){Ht(!0),Gt(n(De,pe)),Ze(an.current.top),Ce(),De.stopPropagation(),De.preventDefault()};d.useEffect(function(){var wt=function(nt){nt.preventDefault()},De=ue.current,Re=St.current;return De.addEventListener("touchstart",wt),Re.addEventListener("touchstart",En),function(){De.removeEventListener("touchstart",wt),Re.removeEventListener("touchstart",En)}},[]);var Bn=d.useRef();Bn.current=tr;var vi=d.useRef();vi.current=Bt,d.useEffect(function(){if(ut){var wt,De=function(nt){var yt=an.current,sr=yt.dragging,Nr=yt.pageY,mn=yt.startTop;if(l.a.cancel(wt),sr){var Yn=n(nt,pe)-Nr,Jn=mn;!Xe&&pe?Jn-=Yn:Jn+=Yn;var ur=Bn.current,Tt=vi.current,Ct=Tt?Jn/Tt:0,Ar=Math.ceil(Ct*ur);Ar=Math.max(Ar,0),Ar=Math.min(Ar,ur),wt=Object(l.a)(function(){le(Ar,pe)})}},Re=function(){Ht(!1),Se()};return window.addEventListener("mousemove",De),window.addEventListener("touchmove",De),window.addEventListener("mouseup",Re),window.addEventListener("touchend",Re),function(){window.removeEventListener("mousemove",De),window.removeEventListener("touchmove",De),window.removeEventListener("mouseup",Re),window.removeEventListener("touchend",Re),l.a.cancel(wt)}}},[ut]),d.useEffect(function(){kt()},[de]),d.useImperativeHandle(fe,function(){return{delayHidden:kt}});var Ln="".concat(Y,"-scrollbar"),Mn={position:"absolute",visibility:Jt&&ft?null:"hidden"},Xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return pe?(Mn.height=8,Mn.left=0,Mn.right=0,Mn.bottom=0,Xt.height="100%",Xt.width=_e,Xe?Xt.left=it:Xt.right=it):(Mn.width=8,Mn.top=0,Mn.bottom=0,Xe?Mn.right=0:Mn.left=0,Xt.width="100%",Xt.height=_e,Xt.top=it),d.createElement("div",{ref:ue,className:i()(Ln,(J={},Object(m.a)(J,"".concat(Ln,"-horizontal"),pe),Object(m.a)(J,"".concat(Ln,"-vertical"),!pe),Object(m.a)(J,"".concat(Ln,"-visible"),Jt),J)),style:Object(f.a)(Object(f.a)({},Mn),gt),onMouseDown:Or,onMouseMove:kt},d.createElement("div",{ref:St,className:i()("".concat(Ln,"-thumb"),Object(m.a)({},"".concat(Ln,"-thumb-moving"),ut)),style:Object(f.a)(Object(f.a)({},Xt),ct),onMouseDown:En}))}),c=o;function h(rt){var fe=rt.children,J=rt.setRef,Y=d.useCallback(function($){J($)},[]);return d.cloneElement(fe,{ref:Y})}function g(rt,fe,J,Y,$,de,we){var Ce=we.getKey;return rt.slice(fe,J+1).map(function(Se,le){var pe=fe+le,_e=de(Se,pe,{style:{width:Y}}),tt=Ce(Se);return d.createElement(h,{key:tt,setRef:function(ct){return $(Se,ct)}},_e)})}var v=r("m+aA"),b=r("1OyB"),S=r("vuIU"),E=function(){function rt(){Object(b.a)(this,rt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(S.a)(rt,[{key:"set",value:function(J,Y){this.maps[J]=Y,this.id+=1}},{key:"get",value:function(J){return this.maps[J]}}]),rt}(),C=E;function _(rt,fe,J){var Y=d.useState(0),$=Object(A.a)(Y,2),de=$[0],we=$[1],Ce=Object(d.useRef)(new Map),Se=Object(d.useRef)(new C),le=Object(d.useRef)();function pe(){l.a.cancel(le.current)}function _e(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;pe();var ct=function(){Ce.current.forEach(function(Zt,ut){if(Zt&&Zt.offsetParent){var Ht=Object(v.a)(Zt),dr=Ht.offsetHeight;Se.current.get(ut)!==dr&&Se.current.set(ut,Ht.offsetHeight)}}),we(function(Zt){return Zt+1})};gt?ct():le.current=Object(l.a)(ct)}function tt(gt,ct){var je=rt(gt),Zt=Ce.current.get(je);ct?(Ce.current.set(je,ct),_e()):Ce.current.delete(je),!Zt!==!ct&&(ct?fe==null||fe(gt):J==null||J(gt))}return Object(d.useEffect)(function(){return pe},[]),[tt,_e,Se.current,de]}var T=r("TNol"),w=r("mBDr"),O=r("6cGi"),I=r("c+Xe"),k=r("ub+h"),M=r("bG1m"),U=r("Kwbf"),P=10;function X(rt,fe,J,Y,$,de,we,Ce){var Se=d.useRef(),le=d.useState(null),pe=Object(A.a)(le,2),_e=pe[0],tt=pe[1];return Object(T.a)(function(){if(_e&&_e.times<P){if(!rt.current){tt(function(kt){return Object(f.a)({},kt)});return}de();var gt=_e.targetAlign,ct=_e.originAlign,je=_e.index,Zt=_e.offset,ut=rt.current.clientHeight,Ht=!1,dr=gt,Vt=null;if(ut){for(var Mt=gt||ct,Gt=0,Ve=0,me=0,te=Math.min(fe.length-1,je),Ze=0;Ze<=te;Ze+=1){var Xe=$(fe[Ze]);Ve=Gt;var ue=J.get(Xe);me=Ve+(ue===void 0?Y:ue),Gt=me}for(var St=Mt==="top"?Zt:ut-Zt,Qt=te;Qt>=0;Qt-=1){var dt=$(fe[Qt]),Jt=J.get(dt);if(Jt===void 0){Ht=!0;break}if(St-=Jt,St<=0)break}switch(Mt){case"top":Vt=Ve-Zt;break;case"bottom":Vt=me-ut+Zt;break;default:{var $t=rt.current.scrollTop,tn=$t+ut;Ve<$t?dr="top":me>tn&&(dr="bottom")}}Vt!==null&&we(Vt),Vt!==_e.lastTop&&(Ht=!0)}Ht&&tt(function(kt){return Object(f.a)(Object(f.a)({},kt),{},{times:kt.times+1,targetAlign:dr,lastTop:Vt})})}},[_e,rt.current]),function(gt){if(gt==null){Ce();return}if(l.a.cancel(Se.current),typeof gt=="number")we(gt);else if(gt&&Object(x.a)(gt)==="object"){var ct,je=gt.align;"index"in gt?ct=gt.index:ct=fe.findIndex(function(Ht){return $(Ht)===gt.key});var Zt=gt.offset,ut=Zt===void 0?0:Zt;tt({times:0,index:ct,offset:ut,originAlign:je})}}}function F(rt,fe,J,Y){var $=J-rt,de=fe-J,we=Math.min($,de)*2;if(Y<=we){var Ce=Math.floor(Y/2);return Y%2?J+Ce+1:J-Ce}return $>de?J-(Y-de):J+(Y-$)}function j(rt,fe,J){var Y=rt.length,$=fe.length,de,we;if(Y===0&&$===0)return null;Y<$?(de=rt,we=fe):(de=fe,we=rt);var Ce={__EMPTY_ITEM__:!0};function Se(ct){return ct!==void 0?J(ct):Ce}for(var le=null,pe=Math.abs(Y-$)!==1,_e=0;_e<we.length;_e+=1){var tt=Se(de[_e]),gt=Se(we[_e]);if(tt!==gt){le=_e,pe=pe||tt!==Se(we[_e+1]);break}}return le===null?null:{index:le,multiple:pe}}function K(rt,fe,J){var Y=d.useState(rt),$=Object(A.a)(Y,2),de=$[0],we=$[1],Ce=d.useState(null),Se=Object(A.a)(Ce,2),le=Se[0],pe=Se[1];return d.useEffect(function(){var _e=j(de||[],rt||[],fe);(_e==null?void 0:_e.index)!==void 0&&(J==null||J(_e.index),pe(rt[_e.index])),we(rt)},[rt]),[le]}var z=(typeof navigator=="undefined"?"undefined":Object(x.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=z,Q=function(rt,fe){var J=Object(d.useRef)(!1),Y=Object(d.useRef)(null);function $(){clearTimeout(Y.current),J.current=!0,Y.current=setTimeout(function(){J.current=!1},50)}var de=Object(d.useRef)({top:rt,bottom:fe});return de.current.top=rt,de.current.bottom=fe,function(we){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Se=we<0&&de.current.top||we>0&&de.current.bottom;return Ce&&Se?(clearTimeout(Y.current),J.current=!1):(!Se||J.current)&&$(),!J.current&&Se}};function G(rt,fe,J,Y,$){var de=Object(d.useRef)(0),we=Object(d.useRef)(null),Ce=Object(d.useRef)(null),Se=Object(d.useRef)(!1),le=Q(fe,J);function pe(Zt,ut){if(l.a.cancel(we.current),de.current+=ut,Ce.current=ut,le(ut))return;V||Zt.preventDefault(),we.current=Object(l.a)(function(){var Ht=Se.current?10:1;$(de.current*Ht),de.current=0})}function _e(Zt,ut){$(ut,!0),V||Zt.preventDefault()}var tt=Object(d.useRef)(null),gt=Object(d.useRef)(null);function ct(Zt){if(!rt)return;l.a.cancel(gt.current),gt.current=Object(l.a)(function(){tt.current=null},2);var ut=Zt.deltaX,Ht=Zt.deltaY,dr=Zt.shiftKey,Vt=ut,Mt=Ht;(tt.current==="sx"||!tt.current&&(dr||!1)&&Ht&&!ut)&&(Vt=Ht,Mt=0,tt.current="sx");var Gt=Math.abs(Vt),Ve=Math.abs(Mt);tt.current===null&&(tt.current=Y&&Gt>Ve?"x":"y"),tt.current==="y"?pe(Zt,Mt):_e(Zt,Vt)}function je(Zt){if(!rt)return;Se.current=Zt.detail===Ce.current}return[ct,je]}var ee=14/15;function se(rt,fe,J){var Y=Object(d.useRef)(!1),$=Object(d.useRef)(0),de=Object(d.useRef)(null),we=Object(d.useRef)(null),Ce,Se=function(tt){if(Y.current){var gt=Math.ceil(tt.touches[0].pageY),ct=$.current-gt;$.current=gt,J(ct)&&tt.preventDefault(),clearInterval(we.current),we.current=setInterval(function(){ct*=ee,(!J(ct,!0)||Math.abs(ct)<=.1)&&clearInterval(we.current)},16)}},le=function(){Y.current=!1,Ce()},pe=function(tt){Ce(),tt.touches.length===1&&!Y.current&&(Y.current=!0,$.current=Math.ceil(tt.touches[0].pageY),de.current=tt.target,de.current.addEventListener("touchmove",Se),de.current.addEventListener("touchend",le))};Ce=function(){de.current&&(de.current.removeEventListener("touchmove",Se),de.current.removeEventListener("touchend",le))},Object(T.a)(function(){return rt&&fe.current.addEventListener("touchstart",pe),function(){var _e;(_e=fe.current)===null||_e===void 0||_e.removeEventListener("touchstart",pe),Ce(),clearInterval(we.current)}},[rt])}var ye=20;function he(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,J=rt/fe*100;return isNaN(J)&&(J=0),J=Math.max(J,ye),J=Math.min(J,rt/2),Math.floor(J)}function ke(rt,fe,J,Y){var $=d.useMemo(function(){return[new Map,[]]},[rt,J.id,Y]),de=Object(A.a)($,2),we=de[0],Ce=de[1],Se=function(pe){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe,tt=we.get(pe),gt=we.get(_e);if(tt===void 0||gt===void 0)for(var ct=rt.length,je=Ce.length;je<ct;je+=1){var Zt,ut=rt[je],Ht=fe(ut);we.set(Ht,je);var dr=(Zt=J.get(Ht))!==null&&Zt!==void 0?Zt:Y;if(Ce[je]=(Ce[je-1]||0)+dr,Ht===pe&&(tt=je),Ht===_e&&(gt=je),tt!==void 0&&gt!==void 0)break}return{top:Ce[tt-1]||0,bottom:Ce[gt]}};return Se}var Pe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ue=[],$e={overflowY:"auto",overflowAnchor:"none"};function Ge(rt,fe){var J=rt.prefixCls,Y=J===void 0?"rc-virtual-list":J,$=rt.className,de=rt.height,we=rt.itemHeight,Ce=rt.fullHeight,Se=Ce===void 0?!0:Ce,le=rt.style,pe=rt.data,_e=rt.children,tt=rt.itemKey,gt=rt.virtual,ct=rt.direction,je=rt.scrollWidth,Zt=rt.component,ut=Zt===void 0?"div":Zt,Ht=rt.onScroll,dr=rt.onVirtualScroll,Vt=rt.onVisibleChange,Mt=rt.innerProps,Gt=rt.extraRender,Ve=rt.styles,me=Object(p.a)(rt,Pe),te=!!(gt!==!1&&de&&we),Ze=te&&pe&&(we*pe.length>de||!!je),Xe=ct==="rtl",ue=i()(Y,Object(m.a)({},"".concat(Y,"-rtl"),Xe),$),St=pe||Ue,Qt=Object(d.useRef)(),dt=Object(d.useRef)(),Jt=Object(d.useState)(0),$t=Object(A.a)(Jt,2),tn=$t[0],kt=$t[1],tr=Object(d.useState)(0),Bt=Object(A.a)(tr,2),ft=Bt[0],it=Bt[1],Or=Object(d.useState)(!1),an=Object(A.a)(Or,2),En=an[0],Bn=an[1],vi=function(){Bn(!0)},Ln=function(){Bn(!1)},Mn=d.useCallback(function(ei){return typeof tt=="function"?tt(ei):ei==null?void 0:ei[tt]},[tt]),Xt={getKey:Mn};function wt(ei){kt(function(fi){var Pi;typeof ei=="function"?Pi=ei(fi):Pi=ei;var Zr=Ii(Pi);return Qt.current.scrollTop=Zr,Zr})}var De=Object(d.useRef)({start:0,end:St.length}),Re=Object(d.useRef)(),Me=K(St,Mn),nt=Object(A.a)(Me,1),yt=nt[0];Re.current=yt;var sr=_(Mn,null,null),Nr=Object(A.a)(sr,4),mn=Nr[0],Yn=Nr[1],Jn=Nr[2],ur=Nr[3],Tt=d.useMemo(function(){if(!te)return{scrollHeight:void 0,start:0,end:St.length-1,offset:void 0};if(!Ze){var ei;return{scrollHeight:((ei=dt.current)===null||ei===void 0?void 0:ei.offsetHeight)||0,start:0,end:St.length-1,offset:void 0}}for(var fi=0,Pi,Zr,Sn,Gn=St.length,Wt=0;Wt<Gn;Wt+=1){var Ot=St[Wt],Rt=Mn(Ot),Ut=Jn.get(Rt),Kt=fi+(Ut===void 0?we:Ut);Kt>=tn&&Pi===void 0&&(Pi=Wt,Zr=fi),Kt>tn+de&&Sn===void 0&&(Sn=Wt),fi=Kt}return Pi===void 0&&(Pi=0,Zr=0,Sn=Math.ceil(de/we)),Sn===void 0&&(Sn=St.length-1),Sn=Math.min(Sn+1,St.length-1),{scrollHeight:fi,start:Pi,end:Sn,offset:Zr}},[Ze,te,tn,St,ur,de]),Ct=Tt.scrollHeight,Ar=Tt.start,er=Tt.end,Ft=Tt.offset;De.current.start=Ar,De.current.end=er;var ir=d.useState({width:0,height:de}),Pt=Object(A.a)(ir,2),rr=Pt[0],Yr=Pt[1],Pr=function(fi){Yr({width:fi.width||fi.offsetWidth,height:fi.height||fi.offsetHeight})},Mr=Object(d.useRef)(),fn=Object(d.useRef)(),wn=d.useMemo(function(){return he(rr.width,je)},[rr.width,je]),ai=d.useMemo(function(){return he(rr.height,Ct)},[rr.height,Ct]),ri=Ct-de,gi=Object(d.useRef)(ri);gi.current=ri;function Ii(ei){var fi=ei;return Number.isNaN(gi.current)||(fi=Math.min(fi,gi.current)),fi=Math.max(fi,0),fi}var Mi=tn<=0,Qi=tn>=ri,ot=Q(Mi,Qi),Ne=function(){return{x:Xe?-ft:ft,y:tn}},He=Object(d.useRef)(Ne()),Ye=Object(w.a)(function(){if(dr){var ei=Ne();(He.current.x!==ei.x||He.current.y!==ei.y)&&(dr(ei),He.current=ei)}});function at(ei,fi){var Pi=ei;fi?(Object(u.flushSync)(function(){it(Pi)}),Ye()):wt(Pi)}function qe(ei){var fi=ei.currentTarget.scrollTop;fi!==tn&&wt(fi),Ht==null||Ht(ei),Ye()}var lt=function(fi){var Pi=fi,Zr=je-rr.width;return Pi=Math.max(Pi,0),Pi=Math.min(Pi,Zr),Pi},Et=Object(w.a)(function(ei,fi){fi?(Object(u.flushSync)(function(){it(function(Pi){var Zr=Pi+(Xe?-ei:ei);return lt(Zr)})}),Ye()):wt(function(Pi){var Zr=Pi+ei;return Zr})}),At=G(te,Mi,Qi,!!je,Et),fr=Object(A.a)(At,2),Jr=fr[0],Vr=fr[1];se(te,Qt,function(ei,fi){return ot(ei,fi)?!1:(Jr({preventDefault:function(){},deltaY:ei}),!0)}),Object(T.a)(function(){function ei(Pi){te&&Pi.preventDefault()}var fi=Qt.current;return fi.addEventListener("wheel",Jr),fi.addEventListener("DOMMouseScroll",Vr),fi.addEventListener("MozMousePixelScroll",ei),function(){fi.removeEventListener("wheel",Jr),fi.removeEventListener("DOMMouseScroll",Vr),fi.removeEventListener("MozMousePixelScroll",ei)}},[te]),Object(T.a)(function(){je&&it(function(ei){return lt(ei)})},[rr.width,je]);var dn=function(){var fi,Pi;(fi=Mr.current)===null||fi===void 0||fi.delayHidden(),(Pi=fn.current)===null||Pi===void 0||Pi.delayHidden()},gr=X(Qt,St,Jn,we,Mn,function(){return Yn(!0)},wt,dn);d.useImperativeHandle(fe,function(){return{getScrollInfo:Ne,scrollTo:function(fi){function Pi(Zr){return Zr&&Object(x.a)(Zr)==="object"&&("left"in Zr||"top"in Zr)}Pi(fi)?(fi.left!==void 0&&it(lt(fi.left)),gr(fi.top)):gr(fi)}}}),Object(T.a)(function(){if(Vt){var ei=St.slice(Ar,er+1);Vt(ei,St)}},[Ar,er,St]);var Wn=ke(St,Mn,Jn,we),kr=Gt==null?void 0:Gt({start:Ar,end:er,virtual:Ze,offsetX:ft,offsetY:Ft,rtl:Xe,getSize:Wn}),Fn=g(St,Ar,er,je,mn,_e,Xt),vn=null;de&&(vn=Object(f.a)(Object(m.a)({},Se?"height":"maxHeight",de),$e),te&&(vn.overflowY="hidden",je&&(vn.overflowX="hidden"),En&&(vn.pointerEvents="none")));var $r={};return Xe&&($r.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(f.a)(Object(f.a)({},le),{},{position:"relative"}),className:ue},$r,me),d.createElement(t.a,{onResize:Pr},d.createElement(ut,{className:"".concat(Y,"-holder"),style:vn,ref:Qt,onScroll:qe,onMouseEnter:dn},d.createElement(e,{prefixCls:Y,height:Ct,offsetX:ft,offsetY:Ft,scrollWidth:je,onInnerResize:Yn,ref:dt,innerProps:Mt,rtl:Xe,extra:kr},Fn))),Ze&&Ct>de&&d.createElement(c,{ref:Mr,prefixCls:Y,scrollOffset:tn,scrollRange:Ct,rtl:Xe,onScroll:at,onStartMove:vi,onStopMove:Ln,spinSize:ai,containerSize:rr.height,style:Ve==null?void 0:Ve.verticalScrollBar,thumbStyle:Ve==null?void 0:Ve.verticalScrollBarThumb}),Ze&&je&&d.createElement(c,{ref:fn,prefixCls:Y,scrollOffset:ft,scrollRange:je,rtl:Xe,onScroll:at,onStartMove:vi,onStopMove:Ln,spinSize:wn,containerSize:rr.width,horizontal:!0,style:Ve==null?void 0:Ve.horizontalScrollBar,thumbStyle:Ve==null?void 0:Ve.horizontalScrollBarThumb}))}var ht=d.forwardRef(Ge);ht.displayName="List";var Fe=ht,oe=L.a=Fe},"+rIm":function(R,L,r){var y=r("bYtY"),f=y.retrieve,x=y.defaults,A=y.extend,m=y.each,p=r("7aKB"),d=r("IwbS"),u=r("Qxkt"),a=r("OELB"),i=a.isRadianAroundZero,t=a.remRadian,s=r("oVpE"),e=s.createSymbol,l=r("Fofx"),n=r("QBsz"),o=n.applyTransform,c=r("aX7z"),h=c.shouldShowAllLabels,g=Math.PI,v=function(F,j){this.opt=j,this.axisModel=F,x(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var K=new d.Group({position:j.position.slice(),rotation:j.rotation});K.updateTransform(),this._transform=K.transform,this._dumbGroup=K};v.prototype={constructor:v,hasBuilder:function(F){return!!b[F]},add:function(F){b[F].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var F=this.opt,j=this.axisModel;if(!j.get("axisLine.show"))return;var K=this.axisModel.axis.getExtent(),z=this._transform,V=[K[0],0],Q=[K[1],0];z&&(o(V,V,z),o(Q,Q,z));var G=A({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new d.Line({anid:"line",subPixelOptimize:!0,shape:{x1:V[0],y1:V[1],x2:Q[0],y2:Q[1]},style:G,strokeContainThreshold:F.strokeContainThreshold||5,silent:!0,z2:1}));var ee=j.get("axisLine.symbol"),se=j.get("axisLine.symbolSize"),ye=j.get("axisLine.symbolOffset")||0;if(typeof ye=="number"&&(ye=[ye,ye]),ee!=null){typeof ee=="string"&&(ee=[ee,ee]),(typeof se=="string"||typeof se=="number")&&(se=[se,se]);var he=se[0],ke=se[1];m([{rotate:F.rotation+Math.PI/2,offset:ye[0],r:0},{rotate:F.rotation-Math.PI/2,offset:ye[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(Pe,Ue){if(ee[Ue]!=="none"&&ee[Ue]!=null){var $e=e(ee[Ue],-he/2,-ke/2,he,ke,G.stroke,!0),Ge=Pe.r+Pe.offset,ht=[V[0]+Ge*Math.cos(F.rotation),V[1]-Ge*Math.sin(F.rotation)];$e.attr({rotation:Pe.rotate,position:ht,silent:!0,z2:11}),this.group.add($e)}},this)}},axisTickLabel:function(){var F=this.axisModel,j=this.opt,K=M(this,F,j),z=P(this,F,j);T(F,z,K),U(this,F,j)},axisName:function(){var F=this.opt,j=this.axisModel,K=f(F.axisName,j.get("name"));if(!K)return;var z=j.get("nameLocation"),V=F.nameDirection,Q=j.getModel("nameTextStyle"),G=j.get("nameGap")||0,ee=this.axisModel.axis.getExtent(),se=ee[0]>ee[1]?-1:1,ye=[z==="start"?ee[0]-se*G:z==="end"?ee[1]+se*G:(ee[0]+ee[1])/2,I(z)?F.labelOffset+V*G:0],he,ke=j.get("nameRotate");ke!=null&&(ke=ke*g/180);var Pe;I(z)?he=E(F.rotation,ke!=null?ke:F.rotation,V):(he=C(F,z,ke||0,ee),Pe=F.axisNameAvailableWidth,Pe!=null&&(Pe=Math.abs(Pe/Math.sin(he.rotation)),!isFinite(Pe)&&(Pe=null)));var Ue=Q.getFont(),$e=j.get("nameTruncate",!0)||{},Ge=$e.ellipsis,ht=f(F.nameTruncateMaxWidth,$e.maxWidth,Pe),Fe=Ge!=null&&ht!=null?p.truncateText(K,ht,Ue,Ge,{minChar:2,placeholder:$e.placeholder}):K,oe=j.get("tooltip",!0),rt=j.mainType,fe={componentType:rt,name:K,$vars:["name"]};fe[rt+"Index"]=j.componentIndex;var J=new d.Text({anid:"name",__fullText:K,__truncatedText:Fe,position:ye,rotation:he.rotation,silent:_(j),z2:1,tooltip:oe&&oe.show?A({content:K,formatter:function(){return K},formatterParams:fe},oe):null});d.setTextStyle(J.style,Q,{text:Fe,textFont:Ue,textFill:Q.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||he.textAlign,textVerticalAlign:Q.get("verticalAlign")||he.textVerticalAlign}),j.get("triggerEvent")&&(J.eventData=S(j),J.eventData.targetType="axisName",J.eventData.name=K),this._dumbGroup.add(J),J.updateTransform(),this.group.add(J),J.decomposeTransform()}},S=v.makeAxisEventDataBase=function(F){var j={componentType:F.mainType,componentIndex:F.componentIndex};return j[F.mainType+"Index"]=F.componentIndex,j},E=v.innerTextLayout=function(F,j,K){var z=t(j-F),V,Q;return i(z)?(Q=K>0?"top":"bottom",V="center"):i(z-g)?(Q=K>0?"bottom":"top",V="center"):(Q="middle",z>0&&z<g?V=K>0?"right":"left":V=K>0?"left":"right"),{rotation:z,textAlign:V,textVerticalAlign:Q}};function C(F,j,K,z){var V=t(K-F.rotation),Q,G,ee=z[0]>z[1],se=j==="start"&&!ee||j!=="start"&&ee;return i(V-g/2)?(G=se?"bottom":"top",Q="center"):i(V-g*1.5)?(G=se?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=se?"left":"right":Q=se?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var _=v.isLabelSilent=function(F){var j=F.get("tooltip");return F.get("silent")||!(F.get("triggerEvent")||j&&j.show)};function T(F,j,K){if(h(F.axis))return;var z=F.get("axisLabel.showMinLabel"),V=F.get("axisLabel.showMaxLabel");j=j||[],K=K||[];var Q=j[0],G=j[1],ee=j[j.length-1],se=j[j.length-2],ye=K[0],he=K[1],ke=K[K.length-1],Pe=K[K.length-2];z===!1?(w(Q),w(ye)):O(Q,G)&&(z?(w(G),w(he)):(w(Q),w(ye))),V===!1?(w(ee),w(ke)):O(se,ee)&&(V?(w(se),w(Pe)):(w(ee),w(ke)))}function w(F){F&&(F.ignore=!0)}function O(F,j,K){var z=F&&F.getBoundingRect().clone(),V=j&&j.getBoundingRect().clone();if(!z||!V)return;var Q=l.identity([]);return l.rotate(Q,Q,-F.rotation),z.applyTransform(l.mul([],Q,F.getLocalTransform())),V.applyTransform(l.mul([],Q,j.getLocalTransform())),z.intersect(V)}function I(F){return F==="middle"||F==="center"}function k(F,j,K,z,V){for(var Q=[],G=[],ee=[],se=0;se<F.length;se++){var ye=F[se].coord;G[0]=ye,G[1]=0,ee[0]=ye,ee[1]=K,j&&(o(G,G,j),o(ee,ee,j));var he=new d.Line({anid:V+"_"+F[se].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:ee[0],y2:ee[1]},style:z,z2:2,silent:!0});Q.push(he)}return Q}function M(F,j,K){var z=j.axis,V=j.getModel("axisTick");if(!V.get("show")||z.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=K.tickDirection*V.get("length"),ee=z.getTicksCoords(),se=k(ee,F._transform,G,x(Q.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),ye=0;ye<se.length;ye++)F.group.add(se[ye]);return se}function U(F,j,K){var z=j.axis,V=j.getModel("minorTick");if(!V.get("show")||z.scale.isBlank())return;var Q=z.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),ee=K.tickDirection*V.get("length"),se=x(G.getLineStyle(),x(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),ye=0;ye<Q.length;ye++)for(var he=k(Q[ye],F._transform,ee,se,"minorticks_"+ye),ke=0;ke<he.length;ke++)F.group.add(he[ke])}function P(F,j,K){var z=j.axis,V=f(K.axisLabelShow,j.get("axisLabel.show"));if(!V||z.scale.isBlank())return;var Q=j.getModel("axisLabel"),G=Q.get("margin"),ee=z.getViewLabels(),se=(f(K.labelRotate,Q.get("rotate"))||0)*g/180,ye=E(K.rotation,se,K.labelDirection),he=j.getCategories&&j.getCategories(!0),ke=[],Pe=_(j),Ue=j.get("triggerEvent");return m(ee,function($e,Ge){var ht=$e.tickValue,Fe=$e.formattedLabel,oe=$e.rawLabel,rt=Q;he&&he[ht]&&he[ht].textStyle&&(rt=new u(he[ht].textStyle,Q,j.ecModel));var fe=rt.getTextColor()||j.get("axisLine.lineStyle.color"),J=z.dataToCoord(ht),Y=[J,K.labelOffset+K.labelDirection*G],$=new d.Text({anid:"label_"+ht,position:Y,rotation:ye.rotation,silent:Pe,z2:10});d.setTextStyle($.style,rt,{text:Fe,textAlign:rt.getShallow("align",!0)||ye.textAlign,textVerticalAlign:rt.getShallow("verticalAlign",!0)||rt.getShallow("baseline",!0)||ye.textVerticalAlign,textFill:typeof fe=="function"?fe(z.type==="category"?oe:z.type==="value"?ht+"":ht,Ge):fe}),Ue&&($.eventData=S(j),$.eventData.targetType="axisLabel",$.eventData.value=oe),F._dumbGroup.add($),$.updateTransform(),ke.push($),F.group.add($),$.decomposeTransform()}),ke}var X=v;R.exports=X},"+wW9":function(R,L,r){var y=r("bYtY"),f=y.each,x=y.isArray,A=y.isObject,m=r("JuEJ"),p=r("4NO4"),d=p.normalizeToArray;function u(l,n){n=n.split(",");for(var o=l,c=0;c<n.length&&!(o=o&&o[n[c]],o==null);c++);return o}function a(l,n,o,c){n=n.split(",");for(var h=l,g,v=0;v<n.length-1;v++)g=n[v],h[g]==null&&(h[g]={}),h=h[g];(c||h[n[v]]==null)&&(h[n[v]]=o)}function i(l){f(t,function(n){n[0]in l&&!(n[1]in l)&&(l[n[1]]=l[n[0]])})}var t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],s=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,n){m(l,n),l.series=d(l.series),f(l.series,function(o){if(!A(o))return;var c=o.type;if(c==="line")o.clipOverflow!=null&&(o.clip=o.clipOverflow);else if(c==="pie"||c==="gauge")o.clockWise!=null&&(o.clockwise=o.clockWise);else if(c==="gauge"){var h=u(o,"pointer.color");h!=null&&a(o,"itemStyle.color",h)}i(o)}),l.dataRange&&(l.visualMap=l.dataRange),f(s,function(o){var c=l[o];c&&(x(c)||(c=[c]),f(c,function(h){i(h)}))})}R.exports=e},"/IIm":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("H6uX"),m=r("IwbS"),p=r("pP6R"),d=r("gPAo"),u=x.curry,a=x.each,i=x.map,t=Math.min,s=Math.max,e=Math.pow,l=1e4,n=6,o=6,c="globalPan",h={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},g={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function S(le){A.call(this),this._zr=le,this.group=new m.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},a(Y,function(pe,_e){this._handlers[_e]=x.bind(pe,this)},this)}S.prototype={constructor:S,enableBrush:function(le){return this._brushType&&C(this),le.brushType&&E(this,le),this},setPanels:function(le){if(le&&le.length){var pe=this._panels={};x.each(le,function(_e){pe[_e.panelId]=x.clone(_e)})}else this._panels=null;return this},mount:function(le){le=le||{},this._enableGlobalPan=le.enableGlobalPan;var pe=this.group;return this._zr.add(pe),pe.attr({position:le.position||[0,0],rotation:le.rotation||0,scale:le.scale||[1,1]}),this._transform=pe.getLocalTransform(),this},eachCover:function(le,pe){a(this._covers,le,pe)},updateCovers:function(le){le=x.map(le,function(dr){return x.merge(x.clone(v),dr,!0)});var pe="\0-brush-index-",_e=this._covers,tt=this._covers=[],gt=this,ct=this._creatingCover;return new d(_e,le,Zt,je).add(ut).update(ut).remove(Ht).execute(),this;function je(dr,Vt){return(dr.id!=null?dr.id:pe+Vt)+"-"+dr.brushType}function Zt(dr,Vt){return je(dr.__brushOption,Vt)}function ut(dr,Vt){var Mt=le[dr];if(Vt!=null&&_e[Vt]===ct)tt[dr]=_e[Vt];else{var Gt=tt[dr]=Vt!=null?(_e[Vt].__brushOption=Mt,_e[Vt]):O(gt,w(gt,Mt));M(gt,Gt)}}function Ht(dr){_e[dr]!==ct&&gt.group.remove(_e[dr])}},unmount:function(){return this.enableBrush(!1),F(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},x.mixin(S,A);function E(le,pe){var _e=le._zr;le._enableGlobalPan||p.take(_e,c,le._uid),_(_e,le._handlers),le._brushType=pe.brushType,le._brushOption=x.merge(x.clone(v),pe,!0)}function C(le){var pe=le._zr;p.release(pe,c,le._uid),T(pe,le._handlers),le._brushType=le._brushOption=null}function _(le,pe){a(pe,function(_e,tt){le.on(tt,_e)})}function T(le,pe){a(pe,function(_e,tt){le.off(tt,_e)})}function w(le,pe){var _e=we[pe.brushType].createCover(le,pe);return _e.__brushOption=pe,k(_e,pe),le.group.add(_e),_e}function O(le,pe){var _e=U(pe);return _e.endCreating&&(_e.endCreating(le,pe),k(pe,pe.__brushOption)),pe}function I(le,pe){var _e=pe.__brushOption;U(pe).updateCoverShape(le,pe,_e.range,_e)}function k(le,pe){var _e=pe.z;_e==null&&(_e=l),le.traverse(function(tt){tt.z=_e,tt.z2=_e})}function M(le,pe){U(pe).updateCommon(le,pe),I(le,pe)}function U(le){return we[le.__brushOption.brushType]}function P(le,pe,_e){var tt=le._panels;if(!tt)return!0;var gt,ct=le._transform;return a(tt,function(je){je.isTargetByCursor(pe,_e,ct)&&(gt=je)}),gt}function X(le,pe){var _e=le._panels;if(!_e)return!0;var tt=pe.__brushOption.panelId;return tt!=null?_e[tt]:!0}function F(le){var pe=le._covers,_e=pe.length;return a(pe,function(tt){le.group.remove(tt)},le),pe.length=0,!!_e}function j(le,pe){var _e=i(le._covers,function(tt){var gt=tt.__brushOption,ct=x.clone(gt.range);return{brushType:gt.brushType,panelId:gt.panelId,range:ct}});le.trigger("brush",_e,{isEnd:!!pe.isEnd,removeOnClick:!!pe.removeOnClick})}function K(le){var pe=le._track;if(!pe.length)return!1;var _e=pe[pe.length-1],tt=pe[0],gt=_e[0]-tt[0],ct=_e[1]-tt[1],je=e(gt*gt+ct*ct,.5);return je>n}function z(le){var pe=le.length-1;return pe<0&&(pe=0),[le[0],le[pe]]}function V(le,pe,_e,tt){var gt=new m.Group;return gt.add(new m.Rect({name:"main",style:se(_e),silent:!0,draggable:!0,cursor:"move",drift:u(le,pe,gt,"nswe"),ondragend:u(j,pe,{isEnd:!0})})),a(tt,function(ct){gt.add(new m.Rect({name:ct,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(le,pe,gt,ct),ondragend:u(j,pe,{isEnd:!0})}))}),gt}function Q(le,pe,_e,tt){var gt=tt.brushStyle.lineWidth||0,ct=s(gt,o),je=_e[0][0],Zt=_e[1][0],ut=je-gt/2,Ht=Zt-gt/2,dr=_e[0][1],Vt=_e[1][1],Mt=dr-ct+gt/2,Gt=Vt-ct+gt/2,Ve=dr-je,me=Vt-Zt,te=Ve+gt,Ze=me+gt;ee(le,pe,"main",je,Zt,Ve,me),tt.transformable&&(ee(le,pe,"w",ut,Ht,ct,Ze),ee(le,pe,"e",Mt,Ht,ct,Ze),ee(le,pe,"n",ut,Ht,te,ct),ee(le,pe,"s",ut,Gt,te,ct),ee(le,pe,"nw",ut,Ht,ct,ct),ee(le,pe,"ne",Mt,Ht,ct,ct),ee(le,pe,"sw",ut,Gt,ct,ct),ee(le,pe,"se",Mt,Gt,ct,ct))}function G(le,pe){var _e=pe.__brushOption,tt=_e.transformable,gt=pe.childAt(0);gt.useStyle(se(_e)),gt.attr({silent:!tt,cursor:tt?"move":"default"}),a(["w","e","n","s","se","sw","ne","nw"],function(ct){var je=pe.childOfName(ct),Zt=ke(le,ct);je&&je.attr({silent:!tt,invisible:!tt,cursor:tt?g[Zt]+"-resize":null})})}function ee(le,pe,_e,tt,gt,ct,je){var Zt=pe.childOfName(_e);Zt&&Zt.setShape(ht(Ge(le,pe,[[tt,gt],[tt+ct,gt+je]])))}function se(le){return x.defaults({strokeNoScale:!0},le.brushStyle)}function ye(le,pe,_e,tt){var gt=[t(le,_e),t(pe,tt)],ct=[s(le,_e),s(pe,tt)];return[[gt[0],ct[0]],[gt[1],ct[1]]]}function he(le){return m.getTransform(le.group)}function ke(le,pe){if(pe.length>1){pe=pe.split("");var _e=[ke(le,pe[0]),ke(le,pe[1])];return(_e[0]==="e"||_e[0]==="w")&&_e.reverse(),_e.join("")}else{var tt={w:"left",e:"right",n:"top",s:"bottom"},gt={left:"w",right:"e",top:"n",bottom:"s"},_e=m.transformDirection(tt[pe],he(le));return gt[_e]}}function Pe(le,pe,_e,tt,gt,ct,je,Zt){var ut=tt.__brushOption,Ht=le(ut.range),dr=$e(_e,ct,je);a(gt.split(""),function(Vt){var Mt=h[Vt];Ht[Mt[0]][Mt[1]]+=dr[Mt[0]]}),ut.range=pe(ye(Ht[0][0],Ht[1][0],Ht[0][1],Ht[1][1])),M(_e,tt),j(_e,{isEnd:!1})}function Ue(le,pe,_e,tt,gt){var ct=pe.__brushOption.range,je=$e(le,_e,tt);a(ct,function(Zt){Zt[0]+=je[0],Zt[1]+=je[1]}),M(le,pe),j(le,{isEnd:!1})}function $e(le,pe,_e){var tt=le.group,gt=tt.transformCoordToLocal(pe,_e),ct=tt.transformCoordToLocal(0,0);return[gt[0]-ct[0],gt[1]-ct[1]]}function Ge(le,pe,_e){var tt=X(le,pe);return tt&&tt!==!0?tt.clipPath(_e,le._transform):x.clone(_e)}function ht(le){var pe=t(le[0][0],le[1][0]),_e=t(le[0][1],le[1][1]),tt=s(le[0][0],le[1][0]),gt=s(le[0][1],le[1][1]);return{x:pe,y:_e,width:tt-pe,height:gt-_e}}function Fe(le,pe,_e){if(!le._brushType||de(le,pe))return;var tt=le._zr,gt=le._covers,ct=P(le,pe,_e);if(!le._dragging)for(var je=0;je<gt.length;je++){var Zt=gt[je].__brushOption;if(ct&&(ct===!0||Zt.panelId===ct.panelId)&&we[Zt.brushType].contain(gt[je],_e[0],_e[1]))return}ct&&tt.setCursorStyle("crosshair")}function oe(le){var pe=le.event;pe.preventDefault&&pe.preventDefault()}function rt(le,pe,_e){return le.childOfName("main").contain(pe,_e)}function fe(le,pe,_e,tt){var gt=le._creatingCover,ct=le._creatingPanel,je=le._brushOption,Zt;if(le._track.push(_e.slice()),K(le)||gt){if(ct&&!gt){je.brushMode==="single"&&F(le);var ut=x.clone(je);ut.brushType=J(ut.brushType,ct),ut.panelId=ct===!0?null:ct.panelId,gt=le._creatingCover=w(le,ut),le._covers.push(gt)}if(gt){var Ht=we[J(le._brushType,ct)],dr=gt.__brushOption;dr.range=Ht.getCreatingRange(Ge(le,gt,le._track)),tt&&(O(le,gt),Ht.updateCommon(le,gt)),I(le,gt),Zt={isEnd:tt}}}else tt&&je.brushMode==="single"&&je.removeOnClick&&(P(le,pe,_e)&&F(le)&&(Zt={isEnd:tt,removeOnClick:!0}));return Zt}function J(le,pe){return le==="auto"?pe.defaultBrushType:le}var Y={mousedown:function(le){if(this._dragging)$(this,le);else if(!le.target||!le.target.draggable){oe(le);var pe=this.group.transformCoordToLocal(le.offsetX,le.offsetY);this._creatingCover=null;var _e=this._creatingPanel=P(this,le,pe);_e&&(this._dragging=!0,this._track=[pe.slice()])}},mousemove:function(le){var pe=le.offsetX,_e=le.offsetY,tt=this.group.transformCoordToLocal(pe,_e);if(Fe(this,le,tt),this._dragging){oe(le);var gt=fe(this,le,tt,!1);gt&&j(this,gt)}},mouseup:function(le){$(this,le)}};function $(le,pe){if(le._dragging){oe(pe);var _e=pe.offsetX,tt=pe.offsetY,gt=le.group.transformCoordToLocal(_e,tt),ct=fe(le,pe,gt,!0);le._dragging=!1,le._track=[],le._creatingCover=null,ct&&j(le,ct)}}function de(le,pe,_e){var tt=le._zr;return pe<0||pe>tt.getWidth()||_e<0||_e>tt.getHeight()}var we={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(le,pe){return V(u(Pe,function(_e){return _e},function(_e){return _e}),le,pe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(le){var pe=z(le);return ye(pe[1][0],pe[1][1],pe[0][0],pe[0][1])},updateCoverShape:function(le,pe,_e,tt){Q(le,pe,_e,tt)},updateCommon:G,contain:rt},polygon:{createCover:function(le,pe){var _e=new m.Group;return _e.add(new m.Polyline({name:"main",style:se(pe),silent:!0})),_e},getCreatingRange:function(le){return le},endCreating:function(le,pe){pe.remove(pe.childAt(0)),pe.add(new m.Polygon({name:"main",draggable:!0,drift:u(Ue,le,pe),ondragend:u(j,le,{isEnd:!0})}))},updateCoverShape:function(le,pe,_e,tt){pe.childAt(0).setShape({points:Ge(le,pe,_e)})},updateCommon:G,contain:rt}};function Ce(le){return{createCover:function(pe,_e){return V(u(Pe,function(tt){var gt=[tt,[0,100]];return le&&gt.reverse(),gt},function(tt){return tt[le]}),pe,_e,[["w","e"],["n","s"]][le])},getCreatingRange:function(pe){var _e=z(pe),tt=t(_e[0][le],_e[1][le]),gt=s(_e[0][le],_e[1][le]);return[tt,gt]},updateCoverShape:function(pe,_e,tt,gt){var ct,je=X(pe,_e);if(je!==!0&&je.getLinearBrushOtherExtent)ct=je.getLinearBrushOtherExtent(le,pe._transform);else{var Zt=pe._zr;ct=[0,[Zt.getWidth(),Zt.getHeight()][1-le]]}var ut=[tt,ct];le&&ut.reverse(),Q(pe,_e,ut,gt)},updateCommon:G,contain:rt}}var Se=S;R.exports=Se},"/MfK":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={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"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="DeleteOutlined";var d=L.a=f.forwardRef(p)},"/POA":function(R,L,r){!function(y,f){if(!0)R.exports=f();else var x,A}(window,function(){return function(y){var f={};function x(A){if(f[A])return f[A].exports;var m=f[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=f,x.d=function(A,m,p){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:p})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(1&m&&(A=x(A)),8&m)return A;if(4&m&&typeof A=="object"&&A&&A.__esModule)return A;var p=Object.create(null);if(x.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:A}),2&m&&typeof A!="string")for(var d in A)x.d(p,d,function(u){return A[u]}.bind(null,d));return p},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=34)}([function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.forwardEvent=f.EventEmitter=void 0;var A=function(){function m(){this._listeners=[],this._disposed=!1}return Object.defineProperty(m.prototype,"event",{get:function(){var d=this;return this._event||(this._event=function(u){return d._listeners.push(u),{dispose:function(){if(!d._disposed){for(var i=0;i<d._listeners.length;i++)if(d._listeners[i]===u)return void d._listeners.splice(i,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(p,d){for(var u=[],a=0;a<this._listeners.length;a++)u.push(this._listeners[a]);for(a=0;a<u.length;a++)u[a].call(void 0,p,d)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();f.EventEmitter=A,f.forwardEvent=function(m,p){return m(function(d){return p.fire(d)})}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.IUnicodeService=f.IOptionsService=f.ILogService=f.IInstantiationService=f.IDirtyRowService=f.ICharsetService=f.ICoreService=f.ICoreMouseService=f.IBufferService=void 0;var A=x(14);f.IBufferService=A.createDecorator("BufferService"),f.ICoreMouseService=A.createDecorator("CoreMouseService"),f.ICoreService=A.createDecorator("CoreService"),f.ICharsetService=A.createDecorator("CharsetService"),f.IDirtyRowService=A.createDecorator("DirtyRowService"),f.IInstantiationService=A.createDecorator("InstantiationService"),f.ILogService=A.createDecorator("LogService"),f.IOptionsService=A.createDecorator("OptionsService"),f.IUnicodeService=A.createDecorator("UnicodeService")},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.getDisposeArrayDisposable=f.disposeArray=f.Disposable=void 0;var A=function(){function p(){this._disposables=[],this._isDisposed=!1}return p.prototype.dispose=function(){this._isDisposed=!0;for(var d=0,u=this._disposables;d<u.length;d++)u[d].dispose();this._disposables.length=0},p.prototype.register=function(d){return this._disposables.push(d),d},p.prototype.unregister=function(d){var u=this._disposables.indexOf(d);u!==-1&&this._disposables.splice(u,1)},p}();function m(p){for(var d=0,u=p;d<u.length;d++)u[d].dispose();p.length=0}f.Disposable=A,f.disposeArray=m,f.getDisposeArrayDisposable=function(p){return{dispose:function(){return m(p)}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WHITESPACE_CELL_CODE=f.WHITESPACE_CELL_WIDTH=f.WHITESPACE_CELL_CHAR=f.NULL_CELL_CODE=f.NULL_CELL_WIDTH=f.NULL_CELL_CHAR=f.CHAR_DATA_CODE_INDEX=f.CHAR_DATA_WIDTH_INDEX=f.CHAR_DATA_CHAR_INDEX=f.CHAR_DATA_ATTR_INDEX=f.DEFAULT_ATTR=f.DEFAULT_COLOR=void 0,f.DEFAULT_COLOR=256,f.DEFAULT_ATTR=256|f.DEFAULT_COLOR<<9,f.CHAR_DATA_ATTR_INDEX=0,f.CHAR_DATA_CHAR_INDEX=1,f.CHAR_DATA_WIDTH_INDEX=2,f.CHAR_DATA_CODE_INDEX=3,f.NULL_CELL_CHAR="",f.NULL_CELL_WIDTH=1,f.NULL_CELL_CODE=0,f.WHITESPACE_CELL_CHAR=" ",f.WHITESPACE_CELL_WIDTH=1,f.WHITESPACE_CELL_CODE=32},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(t,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])})(t,s)},function(i,t){function s(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.CellData=void 0;var p=x(8),d=x(3),u=x(6),a=function(i){function t(){var s=i!==null&&i.apply(this,arguments)||this;return s.content=0,s.fg=0,s.bg=0,s.extended=new u.ExtendedAttrs,s.combinedData="",s}return m(t,i),t.fromCharData=function(s){var e=new t;return e.setFromCharData(s),e},t.prototype.isCombined=function(){return 2097152&this.content},t.prototype.getWidth=function(){return this.content>>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?p.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(s){this.fg=s[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(s[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(s[d.CHAR_DATA_CHAR_INDEX].length===2){var l=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var n=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(l-55296)+n-56320+65536|s[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=s[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|s[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=s[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|s[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(u.AttributeData);f.CellData=a},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ISoundService=f.ISelectionService=f.IRenderService=f.IMouseService=f.ICoreBrowserService=f.ICharSizeService=void 0;var A=x(14);f.ICharSizeService=A.createDecorator("CharSizeService"),f.ICoreBrowserService=A.createDecorator("CoreBrowserService"),f.IMouseService=A.createDecorator("MouseService"),f.IRenderService=A.createDecorator("RenderService"),f.ISelectionService=A.createDecorator("SelectionService"),f.ISoundService=A.createDecorator("SoundService")},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ExtendedAttrs=f.AttributeData=void 0;var A=function(){function p(){this.fg=0,this.bg=0,this.extended=new m}return p.toColorRGB=function(d){return[d>>>16&255,d>>>8&255,255&d]},p.fromColorRGB=function(d){return(255&d[0])<<16|(255&d[1])<<8|255&d[2]},p.prototype.clone=function(){var d=new p;return d.fg=this.fg,d.bg=this.bg,d.extended=this.extended.clone(),d},p.prototype.isInverse=function(){return 67108864&this.fg},p.prototype.isBold=function(){return 134217728&this.fg},p.prototype.isUnderline=function(){return 268435456&this.fg},p.prototype.isBlink=function(){return 536870912&this.fg},p.prototype.isInvisible=function(){return 1073741824&this.fg},p.prototype.isItalic=function(){return 67108864&this.bg},p.prototype.isDim=function(){return 134217728&this.bg},p.prototype.getFgColorMode=function(){return 50331648&this.fg},p.prototype.getBgColorMode=function(){return 50331648&this.bg},p.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},p.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},p.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},p.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},p.prototype.isFgDefault=function(){return(50331648&this.fg)==0},p.prototype.isBgDefault=function(){return(50331648&this.bg)==0},p.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},p.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},p.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},p.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},p.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},p.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},p.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},p.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},p.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},p.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},p.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},p}();f.AttributeData=A;var m=function(){function p(d,u){d===void 0&&(d=0),u===void 0&&(u=-1),this.underlineStyle=d,this.underlineColor=u}return p.prototype.clone=function(){return new p(this.underlineStyle,this.underlineColor)},p.prototype.isEmpty=function(){return this.underlineStyle===0},p}();f.ExtendedAttrs=m},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.addDisposableDomListener=void 0,f.addDisposableDomListener=function(A,m,p,d){A.addEventListener(m,p,d);var u=!1;return{dispose:function(){u||(u=!0,A.removeEventListener(m,p,d))}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Utf8ToUtf32=f.StringToUtf32=f.utf32ToString=f.stringFromCodePoint=void 0,f.stringFromCodePoint=function(p){return p>65535?(p-=65536,String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):String.fromCharCode(p)},f.utf32ToString=function(p,d,u){d===void 0&&(d=0),u===void 0&&(u=p.length);for(var a="",i=d;i<u;++i){var t=p[i];t>65535?(t-=65536,a+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):a+=String.fromCharCode(t)}return a};var A=function(){function p(){this._interim=0}return p.prototype.clear=function(){this._interim=0},p.prototype.decode=function(d,u){var a=d.length;if(!a)return 0;var i=0,t=0;this._interim&&(56320<=(l=d.charCodeAt(t++))&&l<=57343?u[i++]=1024*(this._interim-55296)+l-56320+65536:(u[i++]=this._interim,u[i++]=l),this._interim=0);for(var s=t;s<a;++s){var e=d.charCodeAt(s);if(55296<=e&&e<=56319){if(++s>=a)return this._interim=e,i;var l;56320<=(l=d.charCodeAt(s))&&l<=57343?u[i++]=1024*(e-55296)+l-56320+65536:(u[i++]=e,u[i++]=l)}else u[i++]=e}return i},p}();f.StringToUtf32=A;var m=function(){function p(){this.interim=new Uint8Array(3)}return p.prototype.clear=function(){this.interim.fill(0)},p.prototype.decode=function(d,u){var a=d.length;if(!a)return 0;var i,t,s,e,l=0,n=0,o=0;if(this.interim[0]){var c=!1,h=this.interim[0];h&=(224&h)==192?31:(240&h)==224?15:7;for(var g=0,v=void 0;(v=63&this.interim[++g])&&g<4;)h<<=6,h|=v;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,S=b-g;o<S;){if(o>=a)return 0;if((192&(v=d[o++]))!=128){o--,c=!0;break}this.interim[g++]=v,h<<=6,h|=63&v}c||(b===2?h<128?o--:u[l++]=h:b===3?h<2048||h>=55296&&h<=57343||(u[l++]=h):h<65536||h>1114111||(u[l++]=h)),this.interim.fill(0)}for(var E=a-4,C=o;C<a;){for(;!(!(C<E)||128&(i=d[C])||128&(t=d[C+1])||128&(s=d[C+2])||128&(e=d[C+3]));)u[l++]=i,u[l++]=t,u[l++]=s,u[l++]=e,C+=4;if((i=d[C++])<128)u[l++]=i;else if((224&i)==192){if(C>=a)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if((n=(31&i)<<6|63&t)<128){C--;continue}u[l++]=n}else if((240&i)==224){if(C>=a)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(s=d[C++]))!=128){C--;continue}if((n=(15&i)<<12|(63&t)<<6|63&s)<2048||n>=55296&&n<=57343)continue;u[l++]=n}else if((248&i)==240){if(C>=a)return this.interim[0]=i,l;if((192&(t=d[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,l;if((192&(s=d[C++]))!=128){C--;continue}if(C>=a)return this.interim[0]=i,this.interim[1]=t,this.interim[2]=s,l;if((192&(e=d[C++]))!=128){C--;continue}if((n=(7&i)<<18|(63&t)<<12|(63&s)<<6|63&e)<65536||n>1114111)continue;u[l++]=n}}return l},p}();f.Utf8ToUtf32=m},function(y,f,x){"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(y,f,x){"use strict";var A,m,p,d;function u(i){var t=i.toString(16);return t.length<2?"0"+t:t}function a(i,t){return i<t?(t+.05)/(i+.05):(i+.05)/(t+.05)}Object.defineProperty(f,"__esModule",{value:!0}),f.contrastRatio=f.toPaddedHex=f.rgba=f.rgb=f.css=f.color=f.channels=void 0,function(i){i.toCss=function(t,s,e,l){return l!==void 0?"#"+u(t)+u(s)+u(e)+u(l):"#"+u(t)+u(s)+u(e)},i.toRgba=function(t,s,e,l){return l===void 0&&(l=255),(t<<24|s<<16|e<<8|l)>>>0}}(A=f.channels||(f.channels={})),(m=f.color||(f.color={})).blend=function(i,t){var s=(255&t.rgba)/255;if(s===1)return{css:t.css,rgba:t.rgba};var e=t.rgba>>24&255,l=t.rgba>>16&255,n=t.rgba>>8&255,o=i.rgba>>24&255,c=i.rgba>>16&255,h=i.rgba>>8&255,g=o+Math.round((e-o)*s),v=c+Math.round((l-c)*s),b=h+Math.round((n-h)*s);return{css:A.toCss(g,v,b),rgba:A.toRgba(g,v,b)}},m.isOpaque=function(i){return(255&i.rgba)==255},m.ensureContrastRatio=function(i,t,s){var e=d.ensureContrastRatio(i.rgba,t.rgba,s);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(i){var t=(255|i.rgba)>>>0,s=d.toChannels(t),e=s[0],l=s[1],n=s[2];return{css:A.toCss(e,l,n),rgba:t}},m.opacity=function(i,t){var s=Math.round(255*t),e=d.toChannels(i.rgba),l=e[0],n=e[1],o=e[2];return{css:A.toCss(l,n,o,s),rgba:A.toRgba(l,n,o,s)}},(f.css||(f.css={})).toColor=function(i){switch(i.length){case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(i){function t(s,e,l){var n=s/255,o=e/255,c=l/255;return .2126*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))}i.relativeLuminance=function(s){return t(s>>16&255,s>>8&255,255&s)},i.relativeLuminance2=t}(p=f.rgb||(f.rgb={})),function(i){function t(e,l,n){for(var o=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(p.relativeLuminance2(g,b,v),p.relativeLuminance2(o,c,h));S<n&&(g>0||v>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),v-=Math.max(0,Math.ceil(.1*v)),b-=Math.max(0,Math.ceil(.1*b)),S=a(p.relativeLuminance2(g,b,v),p.relativeLuminance2(o,c,h));return(g<<24|v<<16|b<<8|255)>>>0}function s(e,l,n){for(var o=e>>24&255,c=e>>16&255,h=e>>8&255,g=l>>24&255,v=l>>16&255,b=l>>8&255,S=a(p.relativeLuminance2(g,b,v),p.relativeLuminance2(o,c,h));S<n&&(g<255||v<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),v=Math.min(255,v+Math.ceil(.1*(255-v))),b=Math.min(255,b+Math.ceil(.1*(255-b))),S=a(p.relativeLuminance2(g,b,v),p.relativeLuminance2(o,c,h));return(g<<24|v<<16|b<<8|255)>>>0}i.ensureContrastRatio=function(e,l,n){var o=p.relativeLuminance(e>>8),c=p.relativeLuminance(l>>8);if(a(o,c)<n)return c<o?t(e,l,n):s(e,l,n)},i.reduceLuminance=t,i.increaseLuminance=s,i.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},i.toColor=function(e,l,n){return{css:A.toCss(e,l,n),rgba:A.toRgba(e,l,n)}}}(d=f.rgba||(f.rgba={})),f.toPaddedHex=u,f.contrastRatio=a},function(y,f,x){"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 A=typeof navigator=="undefined",m=A?"node":navigator.userAgent,p=A?"node":navigator.platform;function d(u,a){return u.indexOf(a)>=0}f.isFirefox=!!~m.indexOf("Firefox"),f.isSafari=/^((?!chrome|android).)*safari/i.test(m),f.isMac=d(["Macintosh","MacIntel","MacPPC","Mac68K"],p),f.isIpad=p==="iPad",f.isIphone=p==="iPhone",f.isWindows=d(["Windows","Win16","Win32","WinCE"],p),f.isLinux=p.indexOf("Linux")>=0},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.C1=f.C0=void 0,function(A){A.NUL="\0",A.SOH="",A.STX="",A.ETX="",A.EOT="",A.ENQ="",A.ACK="",A.BEL="\x07",A.BS="\b",A.HT=" ",A.LF=`
`,A.VT="\v",A.FF="\f",A.CR="\r",A.SO="",A.SI="",A.DLE="",A.DC1="",A.DC2="",A.DC3="",A.DC4="",A.NAK="",A.SYN="",A.ETB="",A.CAN="",A.EM="",A.SUB="",A.ESC="",A.FS="",A.GS="",A.RS="",A.US="",A.SP=" ",A.DEL="\x7F"}(f.C0||(f.C0={})),function(A){A.PAD="\x80",A.HOP="\x81",A.BPH="\x82",A.NBH="\x83",A.IND="\x84",A.NEL="\x85",A.SSA="\x86",A.ESA="\x87",A.HTS="\x88",A.HTJ="\x89",A.VTS="\x8A",A.PLD="\x8B",A.PLU="\x8C",A.RI="\x8D",A.SS2="\x8E",A.SS3="\x8F",A.DCS="\x90",A.PU1="\x91",A.PU2="\x92",A.STS="\x93",A.CCH="\x94",A.MW="\x95",A.SPA="\x96",A.EPA="\x97",A.SOS="\x98",A.SGCI="\x99",A.SCI="\x9A",A.CSI="\x9B",A.ST="\x9C",A.OSC="\x9D",A.PM="\x9E",A.APC="\x9F"}(f.C1||(f.C1={}))},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseRenderLayer=void 0;var A=x(3),m=x(9),p=x(25),d=x(6),u=x(28),a=x(10),i=x(17),t=function(){function s(e,l,n,o,c,h,g,v){this._container=e,this._alpha=o,this._colors=c,this._rendererId=h,this._bufferService=g,this._optionsService=v,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=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return s.prototype.dispose=function(){var e;i.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},s.prototype._initCanvas=function(){this._ctx=u.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},s.prototype.onOptionsChanged=function(){},s.prototype.onBlur=function(){},s.prototype.onFocus=function(){},s.prototype.onCursorMove=function(){},s.prototype.onGridChanged=function(e,l){},s.prototype.onSelectionChanged=function(e,l,n){n===void 0&&(n=!1)},s.prototype.setColors=function(e){this._refreshCharAtlas(e)},s.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},s.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=p.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},s.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},s.prototype._fillCells=function(e,l,n,o){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,n*this._scaledCellWidth,o*this._scaledCellHeight)},s.prototype._fillBottomLineAtCells=function(e,l,n){n===void 0&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},s.prototype._fillLeftLineAtCell=function(e,l,n){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},s.prototype._strokeRectAtCell=function(e,l,n,o){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,o*this._scaledCellHeight-window.devicePixelRatio)},s.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))},s.prototype._clearCells=function(e,l,n,o){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,n*this._scaledCellWidth,o*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,n*this._scaledCellWidth,o*this._scaledCellHeight))},s.prototype._fillCharTrueColor=function(e,l,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(n),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},s.prototype._drawChars=function(e,l,n){var o,c,h=this._getContrastColor(e);h||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,n,h):(e.isInverse()?(o=e.isBgDefault()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=c,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,n))},s.prototype._drawUncachedChars=function(e,l,n,o){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(o)this._ctx.fillStyle=o.css;else if(e.isBgDefault())this._ctx.fillStyle=a.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var c=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&c<8&&(c+=8),this._ctx.fillStyle=this._colors.ansi[c].css}else if(o)this._ctx.fillStyle=o.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var h=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&h<8&&(h+=8),this._ctx.fillStyle=this._colors.ansi[h].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=m.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},s.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},s.prototype._getFont=function(e,l){return(l?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},s.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var n=e.getFgColor(),o=e.getFgColorMode(),c=e.getBgColor(),h=e.getBgColorMode(),g=!!e.isInverse(),v=!!e.isInverse();if(g){var b=n;n=c,c=b;var S=o;o=h,h=S}var E=this._resolveBackgroundRgba(h,c,g),C=this._resolveForegroundRgba(o,n,g,v),_=a.rgba.ensureContrastRatio(E,C,this._optionsService.options.minimumContrastRatio);if(_){var T={css:a.channels.toCss(_>>24&255,_>>16&255,_>>8&255),rgba:_};return this._colors.contrastCache.setColor(e.bg,e.fg,T),T}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},s.prototype._resolveBackgroundRgba=function(e,l,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},s.prototype._resolveForegroundRgba=function(e,l,n,o){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&o&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},s}();f.BaseRenderLayer=t},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.createDecorator=f.getServiceDependencies=f.serviceRegistry=void 0;function A(m,p,d){p.di$target===p?p.di$dependencies.push({id:m,index:d}):(p.di$dependencies=[{id:m,index:d}],p.di$target=p)}f.serviceRegistry=new Map,f.getServiceDependencies=function(m){return m.di$dependencies||[]},f.createDecorator=function(m){if(f.serviceRegistry.has(m))return f.serviceRegistry.get(m);var p=function d(u,a,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(d,u,i)};return p.toString=function(){return m},f.serviceRegistry.set(m,p),p}},function(y,f,x){"use strict";function A(m,p,d,u){if(d===void 0&&(d=0),u===void 0&&(u=m.length),d>=m.length)return m;d=(m.length+d)%m.length,u=u>=m.length?m.length:(m.length+u)%m.length;for(var a=d;a<u;++a)m[a]=p;return m}Object.defineProperty(f,"__esModule",{value:!0}),f.concat=f.fillFallback=f.fill=void 0,f.fill=function(m,p,d,u){return m.fill?m.fill(p,d,u):A(m,p,d,u)},f.fillFallback=A,f.concat=function(m,p){var d=new m.constructor(m.length+p.length);return d.set(m),d.set(p,m.length),d}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferLine=f.DEFAULT_ATTR_DATA=void 0;var A=x(8),m=x(3),p=x(4),d=x(6);f.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);var u=function(){function a(i,t,s){s===void 0&&(s=!1),this.isWrapped=s,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*i);for(var e=t||p.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),l=0;l<i;++l)this.setCell(l,e);this.length=i}return a.prototype.get=function(i){var t=this._data[3*i+0],s=2097151&t;return[this._data[3*i+1],2097152&t?this._combined[i]:s?A.stringFromCodePoint(s):"",t>>22,2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):s]},a.prototype.set=function(i,t){this._data[3*i+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[i]=t[1],this._data[3*i+0]=2097152|i|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*i+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},a.prototype.getWidth=function(i){return this._data[3*i+0]>>22},a.prototype.hasWidth=function(i){return 12582912&this._data[3*i+0]},a.prototype.getFg=function(i){return this._data[3*i+1]},a.prototype.getBg=function(i){return this._data[3*i+2]},a.prototype.hasContent=function(i){return 4194303&this._data[3*i+0]},a.prototype.getCodePoint=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i].charCodeAt(this._combined[i].length-1):2097151&t},a.prototype.isCombined=function(i){return 2097152&this._data[3*i+0]},a.prototype.getString=function(i){var t=this._data[3*i+0];return 2097152&t?this._combined[i]:2097151&t?A.stringFromCodePoint(2097151&t):""},a.prototype.loadCell=function(i,t){var s=3*i;return t.content=this._data[s+0],t.fg=this._data[s+1],t.bg=this._data[s+2],2097152&t.content&&(t.combinedData=this._combined[i]),268435456&t.bg&&(t.extended=this._extendedAttrs[i]),t},a.prototype.setCell=function(i,t){2097152&t.content&&(this._combined[i]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[i]=t.extended),this._data[3*i+0]=t.content,this._data[3*i+1]=t.fg,this._data[3*i+2]=t.bg},a.prototype.setCellFromCodePoint=function(i,t,s,e,l,n){268435456&l&&(this._extendedAttrs[i]=n),this._data[3*i+0]=t|s<<22,this._data[3*i+1]=e,this._data[3*i+2]=l},a.prototype.addCodepointToCell=function(i,t){var s=this._data[3*i+0];2097152&s?this._combined[i]+=A.stringFromCodePoint(t):(2097151&s?(this._combined[i]=A.stringFromCodePoint(2097151&s)+A.stringFromCodePoint(t),s&=-2097152,s|=2097152):s=t|1<<22,this._data[3*i+0]=s)},a.prototype.insertCells=function(i,t,s,e){if((i%=this.length)&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length-i){for(var l=new p.CellData,n=this.length-i-t-1;n>=0;--n)this.setCell(i+t+n,this.loadCell(i+n,l));for(n=0;n<t;++n)this.setCell(i+n,s)}else for(n=i;n<this.length;++n)this.setCell(n,s);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs)},a.prototype.deleteCells=function(i,t,s,e){if(i%=this.length,t<this.length-i){for(var l=new p.CellData,n=0;n<this.length-i-t;++n)this.setCell(i+n,this.loadCell(i+t+n,l));for(n=this.length-t;n<this.length;++n)this.setCell(n,s)}else for(n=i;n<this.length;++n)this.setCell(n,s);i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),this.getWidth(i)!==0||this.hasContent(i)||this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs)},a.prototype.replaceCells=function(i,t,s,e){for(i&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs),t<this.length&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new d.ExtendedAttrs);i<t&&i<this.length;)this.setCell(i++,s)},a.prototype.resize=function(i,t){if(i!==this.length){if(i>this.length){var s=new Uint32Array(3*i);this.length&&(3*i<this._data.length?s.set(this._data.subarray(0,3*i)):s.set(this._data)),this._data=s;for(var e=this.length;e<i;++e)this.setCell(e,t)}else if(i){(s=new Uint32Array(3*i)).set(this._data.subarray(0,3*i)),this._data=s;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var n=parseInt(l[e],10);n>=i&&delete this._combined[n]}}else this._data=new Uint32Array(0),this._combined={};this.length=i}},a.prototype.fill=function(i){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,i)},a.prototype.copyFrom=function(i){for(var t in this.length!==i.length?this._data=new Uint32Array(i._data):this._data.set(i._data),this.length=i.length,this._combined={},i._combined)this._combined[t]=i._combined[t];for(var t in this._extendedAttrs={},i._extendedAttrs)this._extendedAttrs[t]=i._extendedAttrs[t];this.isWrapped=i.isWrapped},a.prototype.clone=function(){var i=new a(0);for(var t in i._data=new Uint32Array(this._data),i.length=this.length,this._combined)i._combined[t]=this._combined[t];for(var t in this._extendedAttrs)i._extendedAttrs[t]=this._extendedAttrs[t];return i.isWrapped=this.isWrapped,i},a.prototype.getTrimmedLength=function(){for(var i=this.length-1;i>=0;--i)if(4194303&this._data[3*i+0])return i+(this._data[3*i+0]>>22);return 0},a.prototype.copyCellsFrom=function(i,t,s,e,l){var n=i._data;if(l)for(var o=e-1;o>=0;o--)for(var c=0;c<3;c++)this._data[3*(s+o)+c]=n[3*(t+o)+c];else for(o=0;o<e;o++)for(c=0;c<3;c++)this._data[3*(s+o)+c]=n[3*(t+o)+c];var h=Object.keys(i._combined);for(c=0;c<h.length;c++){var g=parseInt(h[c],10);g>=t&&(this._combined[g-t+s]=i._combined[g])}},a.prototype.translateToString=function(i,t,s){i===void 0&&(i=!1),t===void 0&&(t=0),s===void 0&&(s=this.length),i&&(s=Math.min(s,this.getTrimmedLength()));for(var e="";t<s;){var l=this._data[3*t+0],n=2097151&l;e+=2097152&l?this._combined[t]:n?A.stringFromCodePoint(n):m.WHITESPACE_CELL_CHAR,t+=l>>22||1}return e},a}();f.BufferLine=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeElementFromParent=void 0,f.removeElementFromParent=function(){for(var A,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];for(var d=0,u=m;d<u.length;d++){var a=u[d];(A=a==null?void 0:a.parentElement)===null||A===void 0||A.removeChild(a)}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.tooMuchOutput=f.promptLabel=void 0,f.promptLabel="Terminal input",f.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(_,T){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,O){w.__proto__=O}||function(w,O){for(var I in O)O.hasOwnProperty(I)&&(w[I]=O[I])})(_,T)},function(C,_){function T(){this.constructor=C}A(C,_),C.prototype=_===null?Object.create(_):(T.prototype=_.prototype,new T)});Object.defineProperty(f,"__esModule",{value:!0}),f.InputHandler=f.WindowsOptionsReportType=void 0;var p,d=x(12),u=x(20),a=x(39),i=x(2),t=x(15),s=x(8),e=x(16),l=x(0),n=x(3),o=x(4),c=x(6),h=x(22),g=x(24),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(C,_){if(C>24)return _.setWinLines||!1;switch(C){case 1:return!!_.restoreWin;case 2:return!!_.minimizeWin;case 3:return!!_.setWinPosition;case 4:return!!_.setWinSizePixels;case 5:return!!_.raiseWin;case 6:return!!_.lowerWin;case 7:return!!_.refreshWin;case 8:return!!_.setWinSizeChars;case 9:return!!_.maximizeWin;case 10:return!!_.fullscreenWin;case 11:return!!_.getWinState;case 13:return!!_.getWinPosition;case 14:return!!_.getWinSizePixels;case 15:return!!_.getScreenSizePixels;case 16:return!!_.getCellSizePixels;case 18:return!!_.getWinSizeChars;case 19:return!!_.getScreenSizeChars;case 20:return!!_.getIconTitle;case 21:return!!_.getWinTitle;case 22:return!!_.pushTitle;case 23:return!!_.popTitle;case 24:return!!_.setWinLines}return!1}!function(C){C[C.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",C[C.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(p=f.WindowsOptionsReportType||(f.WindowsOptionsReportType={}));var S=function(){function C(_,T,w,O){this._bufferService=_,this._coreService=T,this._logService=w,this._optionsService=O,this._data=new Uint32Array(0)}return C.prototype.hook=function(_){this._data=new Uint32Array(0)},C.prototype.put=function(_,T,w){this._data=t.concat(this._data,_.subarray(T,w))},C.prototype.unhook=function(_){if(_){var T=s.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r0"q'+d.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(d.C0.ESC+'P1$r61;1"p'+d.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+w+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.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(d.C0.ESC+"P1$r"+O+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},C}(),E=function(C){function _(T,w,O,I,k,M,U,P,X){X===void 0&&(X=new a.EscapeSequenceParser);var F=C.call(this)||this;F._bufferService=T,F._charsetService=w,F._coreService=O,F._dirtyRowService=I,F._logService=k,F._optionsService=M,F._coreMouseService=U,F._unicodeService=P,F._parser=X,F._parseBuffer=new Uint32Array(4096),F._stringDecoder=new s.StringToUtf32,F._utf8Decoder=new s.Utf8ToUtf32,F._workCell=new o.CellData,F._windowTitle="",F._iconName="",F._windowTitleStack=[],F._iconNameStack=[],F._curAttrData=e.DEFAULT_ATTR_DATA.clone(),F._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),F._onRequestBell=new l.EventEmitter,F._onRequestRefreshRows=new l.EventEmitter,F._onRequestReset=new l.EventEmitter,F._onRequestScroll=new l.EventEmitter,F._onRequestSyncScrollBar=new l.EventEmitter,F._onRequestWindowsOptionsReport=new l.EventEmitter,F._onA11yChar=new l.EventEmitter,F._onA11yTab=new l.EventEmitter,F._onCursorMove=new l.EventEmitter,F._onLineFeed=new l.EventEmitter,F._onScroll=new l.EventEmitter,F._onTitleChange=new l.EventEmitter,F.register(F._parser),F._parser.setCsiHandlerFallback(function(V,Q){F._logService.debug("Unknown CSI code: ",{identifier:F._parser.identToString(V),params:Q.toArray()})}),F._parser.setEscHandlerFallback(function(V){F._logService.debug("Unknown ESC code: ",{identifier:F._parser.identToString(V)})}),F._parser.setExecuteHandlerFallback(function(V){F._logService.debug("Unknown EXECUTE code: ",{code:V})}),F._parser.setOscHandlerFallback(function(V,Q,G){F._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),F._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),F._logService.debug("Unknown DCS code: ",{identifier:F._parser.identToString(V),action:Q,payload:G})}),F._parser.setPrintHandler(function(V,Q,G){return F.print(V,Q,G)}),F._parser.setCsiHandler({final:"@"},function(V){return F.insertChars(V)}),F._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return F.scrollLeft(V)}),F._parser.setCsiHandler({final:"A"},function(V){return F.cursorUp(V)}),F._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return F.scrollRight(V)}),F._parser.setCsiHandler({final:"B"},function(V){return F.cursorDown(V)}),F._parser.setCsiHandler({final:"C"},function(V){return F.cursorForward(V)}),F._parser.setCsiHandler({final:"D"},function(V){return F.cursorBackward(V)}),F._parser.setCsiHandler({final:"E"},function(V){return F.cursorNextLine(V)}),F._parser.setCsiHandler({final:"F"},function(V){return F.cursorPrecedingLine(V)}),F._parser.setCsiHandler({final:"G"},function(V){return F.cursorCharAbsolute(V)}),F._parser.setCsiHandler({final:"H"},function(V){return F.cursorPosition(V)}),F._parser.setCsiHandler({final:"I"},function(V){return F.cursorForwardTab(V)}),F._parser.setCsiHandler({final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return F.eraseInDisplay(V)}),F._parser.setCsiHandler({final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return F.eraseInLine(V)}),F._parser.setCsiHandler({final:"L"},function(V){return F.insertLines(V)}),F._parser.setCsiHandler({final:"M"},function(V){return F.deleteLines(V)}),F._parser.setCsiHandler({final:"P"},function(V){return F.deleteChars(V)}),F._parser.setCsiHandler({final:"S"},function(V){return F.scrollUp(V)}),F._parser.setCsiHandler({final:"T"},function(V){return F.scrollDown(V)}),F._parser.setCsiHandler({final:"X"},function(V){return F.eraseChars(V)}),F._parser.setCsiHandler({final:"Z"},function(V){return F.cursorBackwardTab(V)}),F._parser.setCsiHandler({final:"`"},function(V){return F.charPosAbsolute(V)}),F._parser.setCsiHandler({final:"a"},function(V){return F.hPositionRelative(V)}),F._parser.setCsiHandler({final:"b"},function(V){return F.repeatPrecedingCharacter(V)}),F._parser.setCsiHandler({final:"c"},function(V){return F.sendDeviceAttributesPrimary(V)}),F._parser.setCsiHandler({prefix:">",final:"c"},function(V){return F.sendDeviceAttributesSecondary(V)}),F._parser.setCsiHandler({final:"d"},function(V){return F.linePosAbsolute(V)}),F._parser.setCsiHandler({final:"e"},function(V){return F.vPositionRelative(V)}),F._parser.setCsiHandler({final:"f"},function(V){return F.hVPosition(V)}),F._parser.setCsiHandler({final:"g"},function(V){return F.tabClear(V)}),F._parser.setCsiHandler({final:"h"},function(V){return F.setMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return F.setModePrivate(V)}),F._parser.setCsiHandler({final:"l"},function(V){return F.resetMode(V)}),F._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return F.resetModePrivate(V)}),F._parser.setCsiHandler({final:"m"},function(V){return F.charAttributes(V)}),F._parser.setCsiHandler({final:"n"},function(V){return F.deviceStatus(V)}),F._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return F.deviceStatusPrivate(V)}),F._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return F.softReset(V)}),F._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return F.setCursorStyle(V)}),F._parser.setCsiHandler({final:"r"},function(V){return F.setScrollRegion(V)}),F._parser.setCsiHandler({final:"s"},function(V){return F.saveCursor(V)}),F._parser.setCsiHandler({final:"t"},function(V){return F.windowOptions(V)}),F._parser.setCsiHandler({final:"u"},function(V){return F.restoreCursor(V)}),F._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return F.insertColumns(V)}),F._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return F.deleteColumns(V)}),F._parser.setExecuteHandler(d.C0.BEL,function(){return F.bell()}),F._parser.setExecuteHandler(d.C0.LF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.VT,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.FF,function(){return F.lineFeed()}),F._parser.setExecuteHandler(d.C0.CR,function(){return F.carriageReturn()}),F._parser.setExecuteHandler(d.C0.BS,function(){return F.backspace()}),F._parser.setExecuteHandler(d.C0.HT,function(){return F.tab()}),F._parser.setExecuteHandler(d.C0.SO,function(){return F.shiftOut()}),F._parser.setExecuteHandler(d.C0.SI,function(){return F.shiftIn()}),F._parser.setExecuteHandler(d.C1.IND,function(){return F.index()}),F._parser.setExecuteHandler(d.C1.NEL,function(){return F.nextLine()}),F._parser.setExecuteHandler(d.C1.HTS,function(){return F.tabSet()}),F._parser.setOscHandler(0,new h.OscHandler(function(V){F.setTitle(V),F.setIconName(V)})),F._parser.setOscHandler(1,new h.OscHandler(function(V){return F.setIconName(V)})),F._parser.setOscHandler(2,new h.OscHandler(function(V){return F.setTitle(V)})),F._parser.setEscHandler({final:"7"},function(){return F.saveCursor()}),F._parser.setEscHandler({final:"8"},function(){return F.restoreCursor()}),F._parser.setEscHandler({final:"D"},function(){return F.index()}),F._parser.setEscHandler({final:"E"},function(){return F.nextLine()}),F._parser.setEscHandler({final:"H"},function(){return F.tabSet()}),F._parser.setEscHandler({final:"M"},function(){return F.reverseIndex()}),F._parser.setEscHandler({final:"="},function(){return F.keypadApplicationMode()}),F._parser.setEscHandler({final:">"},function(){return F.keypadNumericMode()}),F._parser.setEscHandler({final:"c"},function(){return F.fullReset()}),F._parser.setEscHandler({final:"n"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"o"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"|"},function(){return F.setgLevel(3)}),F._parser.setEscHandler({final:"}"},function(){return F.setgLevel(2)}),F._parser.setEscHandler({final:"~"},function(){return F.setgLevel(1)}),F._parser.setEscHandler({intermediates:"%",final:"@"},function(){return F.selectDefaultCharset()}),F._parser.setEscHandler({intermediates:"%",final:"G"},function(){return F.selectDefaultCharset()});var j=function(Q){K._parser.setEscHandler({intermediates:"(",final:Q},function(){return F.selectCharset("("+Q)}),K._parser.setEscHandler({intermediates:")",final:Q},function(){return F.selectCharset(")"+Q)}),K._parser.setEscHandler({intermediates:"*",final:Q},function(){return F.selectCharset("*"+Q)}),K._parser.setEscHandler({intermediates:"+",final:Q},function(){return F.selectCharset("+"+Q)}),K._parser.setEscHandler({intermediates:"-",final:Q},function(){return F.selectCharset("-"+Q)}),K._parser.setEscHandler({intermediates:".",final:Q},function(){return F.selectCharset("."+Q)}),K._parser.setEscHandler({intermediates:"/",final:Q},function(){return F.selectCharset("/"+Q)})},K=this;for(var z in u.CHARSETS)j(z);return F._parser.setEscHandler({intermediates:"#",final:"8"},function(){return F.screenAlignmentPattern()}),F._parser.setErrorHandler(function(V){return F._logService.error("Parsing error: ",V),V}),F._parser.setDcsHandler({intermediates:"$",final:"q"},new S(F._bufferService,F._coreService,F._logService,F._optionsService)),F}return m(_,C),Object.defineProperty(_.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),_.prototype.dispose=function(){C.prototype.dispose.call(this)},_.prototype.parse=function(T){var w=this._bufferService.buffer,O=w.x,I=w.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var k=0;k<T.length;k+=131072){var M=k+131072<T.length?k+131072:T.length,U=typeof T=="string"?this._stringDecoder.decode(T.substring(k,M),this._parseBuffer):this._utf8Decoder.decode(T.subarray(k,M),this._parseBuffer);this._parser.parse(this._parseBuffer,U)}else U=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,U);(w=this._bufferService.buffer).x===O&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},_.prototype.print=function(T,w,O){var I,k,M=this._bufferService.buffer,U=this._charsetService.charset,P=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,F=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,K=this._curAttrData,z=M.lines.get(M.ybase+M.y);this._dirtyRowService.markDirty(M.y),M.x&&O-w>0&&z.getWidth(M.x-1)===2&&z.setCellFromCodePoint(M.x-1,0,1,K.fg,K.bg,K.extended);for(var V=w;V<O;++V){if(I=T[V],k=this._unicodeService.wcwidth(I),I<127&&U){var Q=U[String.fromCharCode(I)];Q&&(I=Q.charCodeAt(0))}if(P&&this._onA11yChar.fire(s.stringFromCodePoint(I)),k||!M.x){if(M.x+k-1>=X){if(F){for(;M.x<X;)z.setCellFromCodePoint(M.x++,0,1,K.fg,K.bg,K.extended);M.x=0,M.y++,M.y===M.scrollBottom+1?(M.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(M.y>=this._bufferService.rows&&(M.y=this._bufferService.rows-1),M.lines.get(M.ybase+M.y).isWrapped=!0),z=M.lines.get(M.ybase+M.y)}else if(M.x=X-1,k===2)continue}if(j&&(z.insertCells(M.x,k,M.getNullCell(K),K),z.getWidth(X-1)===2&&z.setCellFromCodePoint(X-1,n.NULL_CELL_CODE,n.NULL_CELL_WIDTH,K.fg,K.bg,K.extended)),z.setCellFromCodePoint(M.x++,I,k,K.fg,K.bg,K.extended),k>0)for(;--k;)z.setCellFromCodePoint(M.x++,0,0,K.fg,K.bg,K.extended)}else z.getWidth(M.x-1)?z.addCodepointToCell(M.x-1,I):z.addCodepointToCell(M.x-2,I)}O-w>0&&(z.loadCell(M.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),M.x<X&&O-w>0&&z.getWidth(M.x)===0&&!z.hasContent(M.x)&&z.setCellFromCodePoint(M.x,0,1,K.fg,K.bg,K.extended),this._dirtyRowService.markDirty(M.y)},_.prototype.addCsiHandler=function(T,w){var O=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,w):this._parser.addCsiHandler(T,function(I){return!b(I.params[0],O._optionsService.options.windowOptions)||w(I)})},_.prototype.addDcsHandler=function(T,w){return this._parser.addDcsHandler(T,new g.DcsHandler(w))},_.prototype.addEscHandler=function(T,w){return this._parser.addEscHandler(T,w)},_.prototype.addOscHandler=function(T,w){return this._parser.addOscHandler(T,new h.OscHandler(w))},_.prototype.bell=function(){this._onRequestBell.fire()},_.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},_.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},_.prototype.backspace=function(){var T,w=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(w.x>0&&w.x--);if(this._restrictCursor(this._bufferService.cols),w.x>0)w.x--;else if(w.x===0&&w.y>w.scrollTop&&w.y<=w.scrollBottom&&((T=w.lines.get(w.ybase+w.y))===null||T===void 0?void 0:T.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var O=w.lines.get(w.ybase+w.y);O.hasWidth(w.x)&&!O.hasContent(w.x)&&w.x--}this._restrictCursor()},_.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},_.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},_.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},_.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,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)},_.prototype._setCursor=function(T,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},_.prototype._moveCursor=function(T,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+w)},_.prototype.cursorUp=function(T){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},_.prototype.cursorDown=function(T){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},_.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},_.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},_.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},_.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},_.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},_.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},_.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},_.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},_.prototype.hVPosition=function(T){this.cursorPosition(T)},_.prototype.tabClear=function(T){var w=T.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},_.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},_.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.x=O.prevStop()},_.prototype._eraseInBufferLine=function(T,w,O,I){I===void 0&&(I=!1);var k=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);k.replaceCells(w,O,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(k.isWrapped=!1)},_.prototype._resetBufferLine=function(T){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},_.prototype.eraseInDisplay=function(T){var w;switch(this._restrictCursor(),T.params[0]){case 0:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);w<this._bufferService.rows;w++)this._resetBufferLine(w);this._dirtyRowService.markDirty(w);break;case 1:for(w=this._bufferService.buffer.y,this._dirtyRowService.markDirty(w),this._eraseInBufferLine(w,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(w+1).isWrapped=!1);w--;)this._resetBufferLine(w);this._dirtyRowService.markDirty(0);break;case 2:for(w=this._bufferService.rows,this._dirtyRowService.markDirty(w-1);w--;)this._resetBufferLine(w);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))}},_.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.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)},_.prototype.insertLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,k=this._bufferService.rows-1-O.scrollBottom,M=this._bufferService.rows-1+O.ybase-k+1;w--;)O.lines.splice(M-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.deleteLines=function(T){this._restrictCursor();var w=T.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,k=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;w--;)O.lines.splice(k,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},_.prototype.insertChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.deleteChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.scrollUp=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollDown=function(T){for(var w=T.params[0]||1,O=this._bufferService.buffer;w--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},_.prototype.scrollLeft=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.scrollRight=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.insertCells(0,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.insertColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=this._bufferService.buffer.lines.get(w.ybase+I);k.insertCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.deleteColumns=function(T){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var O=T.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var k=w.lines.get(w.ybase+I);k.deleteCells(w.x,O,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),k.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},_.prototype.eraseChars=function(T){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},_.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var w=T.params[0]||1,O=new Uint32Array(w),I=0;I<w;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.length)}},_.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c"))},_.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},_.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},_.prototype.setMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!0}},_.prototype.setModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,u.DEFAULT_CHARSET),this._charsetService.setgCharset(1,u.DEFAULT_CHARSET),this._charsetService.setgCharset(2,u.DEFAULT_CHARSET),this._charsetService.setgCharset(3,u.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},_.prototype.resetMode=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 4:this._coreService.modes.insertMode=!1}},_.prototype.resetModePrivate=function(T){for(var w=0;w<T.length;w++)switch(T.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[w]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},_.prototype._updateAttrColor=function(T,w,O,I,k){return w===2?(T|=50331648,T&=-16777216,T|=c.AttributeData.fromColorRGB([O,I,k])):w===5&&(T&=-50331904,T|=33554432|255&O),T},_.prototype._extractColor=function(T,w,O){var I=[0,0,-1,0,0,0],k=0,M=0;do{if(I[M+k]=T.params[w+M],T.hasSubParams(w+M)){var U=T.getSubParams(w+M),P=0;do I[1]===5&&(k=1),I[M+P+1+k]=U[P];while(++P<U.length&&P+M+1+k<I.length);break}if(I[1]===5&&M+k>=2||I[1]===2&&M+k>=5)break;I[1]&&(k=1)}while(++M+w<T.length&&M+k<I.length);for(P=2;P<I.length;++P)I[P]===-1&&(I[P]=0);switch(I[0]){case 38:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return M},_.prototype._processUnderline=function(T,w){w.extended=w.extended.clone(),(!~T||T>5)&&(T=1),w.extended.underlineStyle=T,w.fg|=268435456,T===0&&(w.fg&=-268435457),w.updateExtended()},_.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,O=T.length,I=this._curAttrData,k=0;k<O;k++)(w=T.params[k])>=30&&w<=37?(I.fg&=-50331904,I.fg|=16777216|w-30):w>=40&&w<=47?(I.bg&=-50331904,I.bg|=16777216|w-40):w>=90&&w<=97?(I.fg&=-50331904,I.fg|=16777224|w-90):w>=100&&w<=107?(I.bg&=-50331904,I.bg|=16777224|w-100):w===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):w===1?I.fg|=134217728:w===3?I.bg|=67108864:w===4?(I.fg|=268435456,this._processUnderline(T.hasSubParams(k)?T.getSubParams(k)[0]:1,I)):w===5?I.fg|=536870912:w===7?I.fg|=67108864:w===8?I.fg|=1073741824:w===2?I.bg|=134217728:w===21?this._processUnderline(2,I):w===22?(I.fg&=-134217729,I.bg&=-134217729):w===23?I.bg&=-67108865:w===24?I.fg&=-268435457:w===25?I.fg&=-536870913:w===27?I.fg&=-67108865:w===28?I.fg&=-1073741825:w===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):w===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):w===38||w===48||w===58?k+=this._extractColor(T,k,I):w===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):w===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",w)},_.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+w+";"+O+"R")}},_.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var w=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+w+";"+O+"R")}},_.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.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},_.prototype.setCursorStyle=function(T){var w=T.params[0]||1;switch(w){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=w%2==1;this._optionsService.options.cursorBlink=O},_.prototype.setScrollRegion=function(T){var w,O=T.params[0]||1;(T.length<2||(w=T.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>O&&(this._bufferService.buffer.scrollTop=O-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},_.prototype.windowOptions=function(T){if(b(T.params[0],this._optionsService.options.windowOptions)){var w=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(p.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(p.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(d.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:w!==0&&w!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),w!==0&&w!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:w!==0&&w!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),w!==0&&w!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},_.prototype.saveCursor=function(T){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},_.prototype.restoreCursor=function(T){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()},_.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},_.prototype.setIconName=function(T){this._iconName=T},_.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},_.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},_.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},_.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,u.DEFAULT_CHARSET)},_.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(v[T[0]],u.CHARSETS[T[1]]||u.DEFAULT_CHARSET):this.selectDefaultCharset()},_.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},_.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},_.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var w=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,w,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},_.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},_.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},_.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},_.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},_.prototype.screenAlignmentPattern=function(){var T=new o.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var O=0;O<this._bufferService.rows;++O){var I=w.ybase+w.y+O,k=w.lines.get(I);k&&(k.fill(T),k.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},_}(i.Disposable);f.InputHandler=E},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DEFAULT_CHARSET=f.CHARSETS=void 0,f.CHARSETS={},f.DEFAULT_CHARSET=f.CHARSETS.B,f.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},f.CHARSETS.A={"#":"\xA3"},f.CHARSETS.B=void 0,f.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},f.CHARSETS.C=f.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},f.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},f.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},f.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},f.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},f.CHARSETS.E=f.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},f.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},f.CHARSETS.H=f.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},f.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Params=void 0;var A=function(){function m(p,d){if(p===void 0&&(p=32),d===void 0&&(d=32),this.maxLength=p,this.maxSubParamsLength=d,d>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(p),this.length=0,this._subParams=new Int32Array(d),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(p),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return m.fromArray=function(p){var d=new m;if(!p.length)return d;for(var u=p[0]instanceof Array?1:0;u<p.length;++u){var a=p[u];if(a instanceof Array)for(var i=0;i<a.length;++i)d.addSubParam(a[i]);else d.addParam(a)}return d},m.prototype.clone=function(){var p=new m(this.maxLength,this.maxSubParamsLength);return p.params.set(this.params),p.length=this.length,p._subParams.set(this._subParams),p._subParamsLength=this._subParamsLength,p._subParamsIdx.set(this._subParamsIdx),p._rejectDigits=this._rejectDigits,p._rejectSubDigits=this._rejectSubDigits,p._digitIsSub=this._digitIsSub,p},m.prototype.toArray=function(){for(var p=[],d=0;d<this.length;++d){p.push(this.params[d]);var u=this._subParamsIdx[d]>>8,a=255&this._subParamsIdx[d];a-u>0&&p.push(Array.prototype.slice.call(this._subParams,u,a))}return p},m.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},m.prototype.addParam=function(p){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=p>2147483647?2147483647:p}},m.prototype.addSubParam=function(p){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(p<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=p>2147483647?2147483647:p,this._subParamsIdx[this.length-1]++}},m.prototype.hasSubParams=function(p){return(255&this._subParamsIdx[p])-(this._subParamsIdx[p]>>8)>0},m.prototype.getSubParams=function(p){var d=this._subParamsIdx[p]>>8,u=255&this._subParamsIdx[p];return u-d>0?this._subParams.subarray(d,u):null},m.prototype.getSubParamsAll=function(){for(var p={},d=0;d<this.length;++d){var u=this._subParamsIdx[d]>>8,a=255&this._subParamsIdx[d];a-u>0&&(p[d]=this._subParams.slice(u,a))}return p},m.prototype.addDigit=function(p){var d;if(!(this._rejectDigits||!(d=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var u=this._digitIsSub?this._subParams:this.params,a=u[d-1];u[d-1]=~a?Math.min(10*a+p,2147483647):p}},m}();f.Params=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OscHandler=f.OscParser=void 0;var A=x(23),m=x(8),p=function(){function u(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return u.prototype.addHandler=function(a,i){this._handlers[a]===void 0&&(this._handlers[a]=[]);var t=this._handlers[a];return t.push(i),{dispose:function(){var e=t.indexOf(i);e!==-1&&t.splice(e,1)}}},u.prototype.setHandler=function(a,i){this._handlers[a]=[i]},u.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},u.prototype.setHandlerFallback=function(a){this._handlerFb=a},u.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},u.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},u.prototype._start=function(){var a=this._handlers[this._id];if(a)for(var i=a.length-1;i>=0;i--)a[i].start();else this._handlerFb(this._id,"START")},u.prototype._put=function(a,i,t){var s=this._handlers[this._id];if(s)for(var e=s.length-1;e>=0;e--)s[e].put(a,i,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(a,i,t))},u.prototype._end=function(a){var i=this._handlers[this._id];if(i){for(var t=i.length-1;t>=0&&i[t].end(a)===!1;t--);for(t--;t>=0;t--)i[t].end(!1)}else this._handlerFb(this._id,"END",a)},u.prototype.start=function(){this.reset(),this._id=-1,this._state=1},u.prototype.put=function(a,i,t){if(this._state!==3){if(this._state===1)for(;i<t;){var s=a[i++];if(s===59){this._state=2,this._start();break}if(s<48||57<s)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+s-48}this._state===2&&t-i>0&&this._put(a,i,t)}},u.prototype.end=function(a){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(a)),this._id=-1,this._state=0)},u}();f.OscParser=p;var d=function(){function u(a){this._handler=a,this._data="",this._hitLimit=!1}return u.prototype.start=function(){this._data="",this._hitLimit=!1},u.prototype.put=function(a,i,t){this._hitLimit||(this._data+=m.utf32ToString(a,i,t),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},u.prototype.end=function(a){var i;return this._hitLimit?i=!1:a&&(i=this._handler(this._data)),this._data="",this._hitLimit=!1,i},u}();f.OscHandler=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.PAYLOAD_LIMIT=void 0,f.PAYLOAD_LIMIT=1e7},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.DcsHandler=f.DcsParser=void 0;var A=x(8),m=x(21),p=x(23),d=[],u=function(){function i(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return i.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},i.prototype.addHandler=function(t,s){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(s),{dispose:function(){var n=e.indexOf(s);n!==-1&&e.splice(n,1)}}},i.prototype.setHandler=function(t,s){this._handlers[t]=[s]},i.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},i.prototype.setHandlerFallback=function(t){this._handlerFb=t},i.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},i.prototype.hook=function(t,s){if(this.reset(),this._ident=t,this._active=this._handlers[t]||d,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(s);else this._handlerFb(this._ident,"HOOK",s)},i.prototype.put=function(t,s,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(t,s,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(t,s,e))},i.prototype.unhook=function(t){if(this._active.length){for(var s=this._active.length-1;s>=0&&this._active[s].unhook(t)===!1;s--);for(s--;s>=0;s--)this._active[s].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},i}();f.DcsParser=u;var a=function(){function i(t){this._handler=t,this._data="",this._hitLimit=!1}return i.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},i.prototype.put=function(t,s,e){this._hitLimit||(this._data+=A.utf32ToString(t,s,e),this._data.length>p.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},i.prototype.unhook=function(t){var s;return this._hitLimit?s=!1:t&&(s=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,s},i}();f.DcsHandler=a},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.removeTerminalFromCache=f.acquireCharAtlas=void 0;var A=x(26),m=x(43),p=[];f.acquireCharAtlas=function(d,u,a,i,t){for(var s=A.generateConfig(i,t,d,a),e=0;e<p.length;e++){var l=(n=p[e]).ownedBy.indexOf(u);if(l>=0){if(A.configEquals(n.config,s))return n.atlas;n.ownedBy.length===1?(n.atlas.dispose(),p.splice(e,1)):n.ownedBy.splice(l,1);break}}for(e=0;e<p.length;e++){var n=p[e];if(A.configEquals(n.config,s))return n.ownedBy.push(u),n.atlas}var o={atlas:new m.DynamicCharAtlas(document,s),config:s,ownedBy:[u]};return p.push(o),o.atlas},f.removeTerminalFromCache=function(d){for(var u=0;u<p.length;u++){var a=p[u].ownedBy.indexOf(d);if(a!==-1){p[u].ownedBy.length===1?(p[u].atlas.dispose(),p.splice(u,1)):p[u].ownedBy.splice(a,1);break}}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.is256Color=f.configEquals=f.generateConfig=void 0;var A=x(3);f.generateConfig=function(m,p,d,u){var a={foreground:u.foreground,background:u.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:u.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:m,scaledCharHeight:p,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:a}},f.configEquals=function(m,p){for(var d=0;d<m.colors.ansi.length;d++)if(m.colors.ansi[d].rgba!==p.colors.ansi[d].rgba)return!1;return m.devicePixelRatio===p.devicePixelRatio&&m.fontFamily===p.fontFamily&&m.fontSize===p.fontSize&&m.fontWeight===p.fontWeight&&m.fontWeightBold===p.fontWeightBold&&m.allowTransparency===p.allowTransparency&&m.scaledCharWidth===p.scaledCharWidth&&m.scaledCharHeight===p.scaledCharHeight&&m.colors.foreground===p.colors.foreground&&m.colors.background===p.colors.background},f.is256Color=function(m){return m<A.DEFAULT_COLOR}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ColorManager=f.DEFAULT_ANSI_COLORS=void 0;var A=x(10),m=x(45),p=A.css.toColor("#ffffff"),d=A.css.toColor("#000000"),u=A.css.toColor("#ffffff"),a=A.css.toColor("#000000"),i={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};f.DEFAULT_ANSI_COLORS=function(){for(var s=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var n=e[l/36%6|0],o=e[l/6%6|0],c=e[l%6];s.push({css:A.channels.toCss(n,o,c),rgba:A.channels.toRgba(n,o,c)})}for(l=0;l<24;l++){var h=8+10*l;s.push({css:A.channels.toCss(h,h,h),rgba:A.channels.toRgba(h,h,h)})}return s}();var t=function(){function s(e,l){this.allowTransparency=l;var n=e.createElement("canvas");n.width=1,n.height=1;var o=n.getContext("2d");if(!o)throw new Error("Could not get rendering context");this._ctx=o,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new m.ColorContrastCache,this.colors={foreground:p,background:d,cursor:u,cursorAccent:a,selectionTransparent:i,selectionOpaque:A.color.blend(d,i),ansi:f.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return s.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},s.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,p),this.colors.background=this._parseColor(e.background,d),this.colors.cursor=this._parseColor(e.cursor,u,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,a,!0),this.colors.selectionTransparent=this._parseColor(e.selection,i,!0),this.colors.selectionOpaque=A.color.blend(this.colors.background,this.colors.selectionTransparent),A.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=A.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,f.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,f.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,f.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,f.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,f.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,f.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,f.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,f.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,f.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,f.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,f.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,f.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,f.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,f.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,f.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,f.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},s.prototype._parseColor=function(e,l,n){if(n===void 0&&(n=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var o=this._ctx.getImageData(0,0,1,1).data;if(o[3]!==255){if(!n)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;var c=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(E){return Number(E)}),h=c[0],g=c[1],v=c[2],b=c[3],S=Math.round(255*b);return{rgba:A.channels.toRgba(h,g,v,S),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(o[0],o[1],o[2],o[3])}},s}();f.ColorManager=t},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.throwIfFalsy=void 0,f.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(s,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var o in n)n.hasOwnProperty(o)&&(l[o]=n[o])})(s,e)},function(t,s){function e(){this.constructor=t}A(t,s),t.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(f,"__esModule",{value:!0}),f.CharacterJoinerRegistry=f.JoinedCellData=void 0;var p=x(6),d=x(3),u=x(4),a=function(t){function s(e,l,n){var o=t.call(this)||this;return o.content=0,o.combinedData="",o.fg=e.fg,o.bg=e.bg,o.combinedData=l,o._width=n,o}return m(s,t),s.prototype.isCombined=function(){return 2097152},s.prototype.getWidth=function(){return this._width},s.prototype.getChars=function(){return this.combinedData},s.prototype.getCode=function(){return 2097151},s.prototype.setFromCharData=function(e){throw new Error("not implemented")},s.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},s}(p.AttributeData);f.JoinedCellData=a;var i=function(){function t(s){this._bufferService=s,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new u.CellData}return t.prototype.registerCharacterJoiner=function(s){var e={id:this._nextCharacterJoinerId++,handler:s};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(s){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===s)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(s){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(s);if(!e||e.length===0)return[];for(var l=[],n=e.translateToString(!0),o=0,c=0,h=0,g=e.getFg(0),v=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==g||this._workCell.bg!==v){if(b-o>1)for(var S=this._getJoinedRanges(n,h,c,e,o),E=0;E<S.length;E++)l.push(S[E]);o=b,h=c,g=this._workCell.fg,v=this._workCell.bg}c+=this._workCell.getChars().length||d.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-o>1)for(S=this._getJoinedRanges(n,h,c,e,o),E=0;E<S.length;E++)l.push(S[E]);return l},t.prototype._getJoinedRanges=function(s,e,l,n,o){for(var c=s.substring(e,l),h=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var v=this._characterJoiners[g].handler(c),b=0;b<v.length;b++)t._mergeRanges(h,v[b]);return this._stringRangesToCellRanges(h,n,o),h},t.prototype._stringRangesToCellRanges=function(s,e,l){var n=0,o=!1,c=0,h=s[n];if(h){for(var g=l;g<this._bufferService.cols;g++){var v=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(v!==0){if(!o&&h[0]<=c&&(h[0]=g,o=!0),h[1]<=c){if(h[1]=g,!(h=s[++n]))break;h[0]<=c?(h[0]=g,o=!0):o=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(s,e){for(var l=!1,n=0;n<s.length;n++){var o=s[n];if(l){if(e[1]<=o[0])return s[n-1][1]=e[1],s;if(e[1]<=o[1])return s[n-1][1]=Math.max(e[1],o[1]),s.splice(n,1),s;s.splice(n,1),n--}else{if(e[1]<=o[0])return s.splice(n,0,e),s;if(e[1]<=o[1])return o[0]=Math.min(e[0],o[0]),s;e[0]<o[1]&&(o[0]=Math.min(e[0],o[0]),l=!0)}}return l?s[s.length-1][1]=e[1]:s.push(e),s},t}();f.CharacterJoinerRegistry=i},function(y,f,x){"use strict";function A(m,p){var d=p.getBoundingClientRect();return[m.clientX-d.left,m.clientY-d.top]}Object.defineProperty(f,"__esModule",{value:!0}),f.getRawByteCoords=f.getCoords=f.getCoordsRelativeToElement=void 0,f.getCoordsRelativeToElement=A,f.getCoords=function(m,p,d,u,a,i,t,s){if(a){var e=A(m,p);if(e)return e[0]=Math.ceil((e[0]+(s?i/2:0))/i),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(s?1:0)),e[1]=Math.min(Math.max(e[1],1),u),e}},f.getRawByteCoords=function(m){if(m)return{x:m[0]+32,y:m[1]+32}}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.RenderDebouncer=void 0;var A=function(){function m(p){this._renderCallback=p}return m.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},m.prototype.refresh=function(p,d,u){var a=this;this._rowCount=u,p=p!==void 0?p:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,p):p,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return a._innerRefresh()}))},m.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var p=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(p,d)}},m}();f.RenderDebouncer=A},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s])})(u,a)},function(d,u){function a(){this.constructor=d}A(d,u),d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(f,"__esModule",{value:!0}),f.ScreenDprMonitor=void 0;var p=function(d){function u(){var a=d!==null&&d.apply(this,arguments)||this;return a._currentDevicePixelRatio=window.devicePixelRatio,a}return m(u,d),u.prototype.setListener=function(a){var i=this;this._listener&&this.clearListener(),this._listener=a,this._outerListener=function(){i._listener&&(i._listener(window.devicePixelRatio,i._currentDevicePixelRatio),i._updateDpr())},this._updateDpr()},u.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},u.prototype._updateDpr=function(){var a;this._outerListener&&((a=this._resolutionMediaMatchList)===null||a===void 0||a.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},u.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},u}(x(2).Disposable);f.ScreenDprMonitor=p},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.clone=void 0,f.clone=function A(m,p){if(p===void 0&&(p=5),typeof m!="object")return m;var d=Array.isArray(m)?[]:{};for(var u in m)d[u]=p<=1?m[u]:m[u]?A(m[u],p-1):m[u];return d}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var A=x(4),m=x(35),p=x(18),d=x(0),u=x(83),a=function(){function n(o){this._core=new m.Terminal(o),this._addonManager=new u.AddonManager}return n.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(n.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this._checkProposedApi(),new t(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),n.prototype.blur=function(){this._core.blur()},n.prototype.focus=function(){this._core.focus()},n.prototype.resize=function(o,c){this._verifyIntegers(o,c),this._core.resize(o,c)},n.prototype.open=function(o){this._core.open(o)},n.prototype.attachCustomKeyEventHandler=function(o){this._core.attachCustomKeyEventHandler(o)},n.prototype.registerLinkMatcher=function(o,c,h){return this._checkProposedApi(),this._core.registerLinkMatcher(o,c,h)},n.prototype.deregisterLinkMatcher=function(o){this._checkProposedApi(),this._core.deregisterLinkMatcher(o)},n.prototype.registerLinkProvider=function(o){return this._checkProposedApi(),this._core.registerLinkProvider(o)},n.prototype.registerCharacterJoiner=function(o){return this._checkProposedApi(),this._core.registerCharacterJoiner(o)},n.prototype.deregisterCharacterJoiner=function(o){this._checkProposedApi(),this._core.deregisterCharacterJoiner(o)},n.prototype.registerMarker=function(o){return this._checkProposedApi(),this._verifyIntegers(o),this._core.addMarker(o)},n.prototype.addMarker=function(o){return this.registerMarker(o)},n.prototype.hasSelection=function(){return this._core.hasSelection()},n.prototype.select=function(o,c,h){this._verifyIntegers(o,c,h),this._core.select(o,c,h)},n.prototype.getSelection=function(){return this._core.getSelection()},n.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},n.prototype.clearSelection=function(){this._core.clearSelection()},n.prototype.selectAll=function(){this._core.selectAll()},n.prototype.selectLines=function(o,c){this._verifyIntegers(o,c),this._core.selectLines(o,c)},n.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},n.prototype.scrollLines=function(o){this._verifyIntegers(o),this._core.scrollLines(o)},n.prototype.scrollPages=function(o){this._verifyIntegers(o),this._core.scrollPages(o)},n.prototype.scrollToTop=function(){this._core.scrollToTop()},n.prototype.scrollToBottom=function(){this._core.scrollToBottom()},n.prototype.scrollToLine=function(o){this._verifyIntegers(o),this._core.scrollToLine(o)},n.prototype.clear=function(){this._core.clear()},n.prototype.write=function(o,c){this._core.write(o,c)},n.prototype.writeUtf8=function(o,c){this._core.write(o,c)},n.prototype.writeln=function(o,c){this._core.write(o),this._core.write(`\r
`,c)},n.prototype.paste=function(o){this._core.paste(o)},n.prototype.getOption=function(o){return this._core.optionsService.getOption(o)},n.prototype.setOption=function(o,c){this._core.optionsService.setOption(o,c)},n.prototype.refresh=function(o,c){this._verifyIntegers(o,c),this._core.refresh(o,c)},n.prototype.reset=function(){this._core.reset()},n.prototype.loadAddon=function(o){return this._addonManager.loadAddon(this,o)},Object.defineProperty(n,"strings",{get:function(){return p},enumerable:!1,configurable:!0}),n.prototype._verifyIntegers=function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];for(var h=0,g=o;h<g.length;h++){var v=g[h];if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}},n}();f.Terminal=a;var i=function(){function n(o,c){this._buffer=o,this.type=c}return n.prototype.init=function(o){return this._buffer=o,this},Object.defineProperty(n.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),n.prototype.getLine=function(o){var c=this._buffer.lines.get(o);if(c)return new s(c)},n.prototype.getNullCell=function(){return new A.CellData},n}(),t=function(){function n(o){var c=this;this._buffers=o,this._onBufferChange=new d.EventEmitter,this._normal=new i(this._buffers.normal,"normal"),this._alternate=new i(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return c._onBufferChange.fire(c.active)})}return Object.defineProperty(n.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),n}(),s=function(){function n(o){this._line=o}return Object.defineProperty(n.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),n.prototype.getCell=function(o,c){if(!(o<0||o>=this._line.length))return c?(this._line.loadCell(o,c),c):this._line.loadCell(o,new A.CellData)},n.prototype.translateToString=function(o,c,h){return this._line.translateToString(o,c,h)},n}(),e=function(){function n(o){this._core=o}return n.prototype.registerCsiHandler=function(o,c){return this._core.addCsiHandler(o,function(h){return c(h.toArray())})},n.prototype.addCsiHandler=function(o,c){return this.registerCsiHandler(o,c)},n.prototype.registerDcsHandler=function(o,c){return this._core.addDcsHandler(o,function(h,g){return c(h,g.toArray())})},n.prototype.addDcsHandler=function(o,c){return this.registerDcsHandler(o,c)},n.prototype.registerEscHandler=function(o,c){return this._core.addEscHandler(o,c)},n.prototype.addEscHandler=function(o,c){return this.registerEscHandler(o,c)},n.prototype.registerOscHandler=function(o,c){return this._core.addOscHandler(o,c)},n.prototype.addOscHandler=function(o,c){return this.registerOscHandler(o,c)},n}(),l=function(){function n(o){this._core=o}return n.prototype.register=function(o){this._core.unicodeService.register(o)},Object.defineProperty(n.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(c){this._core.unicodeService.activeVersion=c},enumerable:!1,configurable:!0}),n}()},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(F,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,z){K.__proto__=z}||function(K,z){for(var V in z)z.hasOwnProperty(V)&&(K[V]=z[V])})(F,j)},function(X,F){function j(){this.constructor=X}A(X,F),X.prototype=F===null?Object.create(F):(j.prototype=F.prototype,new j)});Object.defineProperty(f,"__esModule",{value:!0}),f.Terminal=void 0;var p=x(36),d=x(37),u=x(38),a=x(12),i=x(19),t=x(40),s=x(50),e=x(51),l=x(11),n=x(7),o=x(18),c=x(54),h=x(55),g=x(56),v=x(57),b=x(59),S=x(0),E=x(16),C=x(27),_=x(60),T=x(5),w=x(61),O=x(62),I=x(63),k=x(64),M=x(65),U=typeof window!="undefined"?window.document:null,P=function(X){function F(j){j===void 0&&(j={});var K=X.call(this,j)||this;return K.browser=l,K._keyDownHandled=!1,K._onCursorMove=new S.EventEmitter,K._onKey=new S.EventEmitter,K._onRender=new S.EventEmitter,K._onSelectionChange=new S.EventEmitter,K._onTitleChange=new S.EventEmitter,K._onFocus=new S.EventEmitter,K._onBlur=new S.EventEmitter,K._onA11yCharEmitter=new S.EventEmitter,K._onA11yTabEmitter=new S.EventEmitter,K._setup(),K.linkifier=K._instantiationService.createInstance(s.Linkifier),K.linkifier2=K.register(K._instantiationService.createInstance(I.Linkifier2)),K.register(K._inputHandler.onRequestBell(function(){return K.bell()})),K.register(K._inputHandler.onRequestRefreshRows(function(z,V){return K.refresh(z,V)})),K.register(K._inputHandler.onRequestReset(function(){return K.reset()})),K.register(K._inputHandler.onRequestScroll(function(z,V){return K.scroll(z,V||void 0)})),K.register(K._inputHandler.onRequestWindowsOptionsReport(function(z){return K._reportWindowsOptions(z)})),K.register(S.forwardEvent(K._inputHandler.onCursorMove,K._onCursorMove)),K.register(S.forwardEvent(K._inputHandler.onTitleChange,K._onTitleChange)),K.register(S.forwardEvent(K._inputHandler.onA11yChar,K._onA11yCharEmitter)),K.register(S.forwardEvent(K._inputHandler.onA11yTab,K._onA11yTabEmitter)),K.register(K._bufferService.onResize(function(z){return K._afterResize(z.cols,z.rows)})),K}return m(F,X),Object.defineProperty(F.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){var j,K,z;this._isDisposed||(X.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(z=(K=this.element)===null||K===void 0?void 0:K.parentNode)===null||z===void 0||z.removeChild(this.element))},F.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(F.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),F.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},F.prototype._updateOptions=function(j){var K,z,V,Q;switch(X.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(K=this._renderService)===null||K===void 0||K.clear(),(z=this._charSizeService)===null||z===void 0||z.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 g.AccessibilityManager(this,this._renderService)):((Q=this._accessibilityManager)===null||Q===void 0||Q.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},F.prototype._onTextAreaFocus=function(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},F.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.blur()},F.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(a.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},F.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),K=this._bufferService.buffer.y*j,z=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=z+"px",this.textarea.style.top=K+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},F.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(n.addDisposableDomListener(this.element,"copy",function(z){j.hasSelection()&&u.copyHandler(z,j._selectionService)}));var K=function(V){return u.handlePasteEvent(V,j.textarea,j._coreService)};this.register(n.addDisposableDomListener(this.textarea,"paste",K)),this.register(n.addDisposableDomListener(this.element,"paste",K)),l.isFirefox?this.register(n.addDisposableDomListener(this.element,"mousedown",function(z){z.button===2&&u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(n.addDisposableDomListener(this.element,"contextmenu",function(z){u.rightClickHandler(z,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),l.isLinux&&this.register(n.addDisposableDomListener(this.element,"auxclick",function(z){z.button===1&&u.moveTextAreaUnderMouseCursor(z,j.textarea,j.screenElement)}))},F.prototype._bindKeys=function(){var j=this;this.register(n.addDisposableDomListener(this.textarea,"keyup",function(K){return j._keyUp(K)},!0)),this.register(n.addDisposableDomListener(this.textarea,"keydown",function(K){return j._keyDown(K)},!0)),this.register(n.addDisposableDomListener(this.textarea,"keypress",function(K){return j._keyPress(K)},!0)),this.register(n.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(n.addDisposableDomListener(this.textarea,"compositionupdate",function(K){return j._compositionHelper.compositionupdate(K)})),this.register(n.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(K){return j._queueLinkification(K.start,K.end)}))},F.prototype.open=function(j){var K=this;if(!j)throw new Error("Terminal requires a parent element.");U.body.contains(j)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=j.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"),j.appendChild(this.element);var z=U.createDocumentFragment();this._viewportElement=U.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),z.appendChild(this._viewportElement),this._viewportScrollArea=U.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=U.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=U.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),z.appendChild(this.screenElement),this.textarea=U.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.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(n.addDisposableDomListener(this.textarea,"focus",function(G){return K._onTextAreaFocus(G)})),this.register(n.addDisposableDomListener(this.textarea,"blur",function(){return K._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(k.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=U.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(p.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(z),this._theme=this.options.theme||this._theme,this._colorManager=new C.ColorManager(U,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return K._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(_.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return K._onRender.fire(G)})),this.onResize(function(G){return K._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(G,ee){return K.scrollLines(G,ee)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return K.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){K._renderService.onCursorMove(),K._syncTextArea()})),this.register(this.onResize(function(){return K._renderService.onResize(K.cols,K.rows)})),this.register(this.onBlur(function(){return K._renderService.onBlur()})),this.register(this.onFocus(function(){return K._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return K.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return K.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return K._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return K._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){K.textarea.value=G,K.textarea.focus(),K.textarea.select()})),this.register(this.onScroll(function(){K.viewport.syncScrollArea(),K._selectionService.refresh()})),this.register(n.addDisposableDomListener(this._viewportElement,"scroll",function(){return K._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return K._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(n.addDisposableDomListener(this.element,"mousedown",function(G){return K._selectionService.onMouseDown(G)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},F.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(t.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(v.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},F.prototype._setTheme=function(j){var K,z,V;this._theme=j,(K=this._colorManager)===null||K===void 0||K.setTheme(j),(z=this._renderService)===null||z===void 0||z.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},F.prototype.bindMouse=function(){var j=this,K=this,z=this.element;function V(he){var ke,Pe,Ue=K._mouseService.getRawByteCoords(he,K.screenElement,K.cols,K.rows);if(!Ue)return!1;switch(he.overrideType||he.type){case"mousemove":Pe=32,he.buttons===void 0?(ke=3,he.button!==void 0&&(ke=he.button<3?he.button:3)):ke=1&he.buttons?0:4&he.buttons?1:2&he.buttons?2:3;break;case"mouseup":Pe=0,ke=he.button<3?he.button:3;break;case"mousedown":Pe=1,ke=he.button<3?he.button:3;break;case"wheel":he.deltaY!==0&&(Pe=he.deltaY<0?0:1),ke=4;break;default:return!1}return!(Pe===void 0||ke===void 0||ke>4)&&K._coreMouseService.triggerMouseEvent({col:Ue.x-33,row:Ue.y-33,button:ke,action:Pe,ctrl:he.ctrlKey,alt:he.altKey,shift:he.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(ke){return V(ke),ke.buttons||(j._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.removeEventListener("mousemove",Q.mousedrag)),j.cancel(ke)},ee=function(ke){return V(ke),ke.preventDefault(),j.cancel(ke)},se=function(ke){ke.buttons&&V(ke)},ye=function(ke){ke.buttons||V(ke)};this.register(this._coreMouseService.onProtocolChange(function(he){he?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(he)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&he?Q.mousemove||(z.addEventListener("mousemove",ye),Q.mousemove=ye):(z.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&he?Q.wheel||(z.addEventListener("wheel",ee,{passive:!1}),Q.wheel=ee):(z.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&he?Q.mouseup||(Q.mouseup=G):(j._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&he?Q.mousedrag||(Q.mousedrag=se):(j._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(n.addDisposableDomListener(z,"mousedown",function(he){if(he.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(he))return V(he),Q.mouseup&&j._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&j._document.addEventListener("mousemove",Q.mousedrag),j.cancel(he)})),this.register(n.addDisposableDomListener(z,"wheel",function(he){if(!Q.wheel){if(!j.buffer.hasScrollback){var ke=j.viewport.getLinesScrolled(he);if(ke===0)return;for(var Pe=a.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(he.deltaY<0?"A":"B"),Ue="",$e=0;$e<Math.abs(ke);$e++)Ue+=Pe;j._coreService.triggerDataEvent(Ue,!0)}}},{passive:!0})),this.register(n.addDisposableDomListener(z,"wheel",function(he){if(!Q.wheel)return j.viewport.onWheel(he)?void 0:j.cancel(he)},{passive:!1})),this.register(n.addDisposableDomListener(z,"touchstart",function(he){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(he),j.cancel(he)},{passive:!0})),this.register(n.addDisposableDomListener(z,"touchmove",function(he){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(he)?void 0:j.cancel(he)},{passive:!1}))},F.prototype.refresh=function(j,K){var z;(z=this._renderService)===null||z===void 0||z.refreshRows(j,K)},F.prototype._queueLinkification=function(j,K){var z;(z=this.linkifier)===null||z===void 0||z.linkifyRows(j,K)},F.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},F.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},F.prototype.scrollLines=function(j,K){X.prototype.scrollLines.call(this,j,K),this.refresh(0,this.rows-1)},F.prototype.paste=function(j){u.paste(j,this.textarea,this._coreService)},F.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},F.prototype.registerLinkMatcher=function(j,K,z){var V=this.linkifier.registerLinkMatcher(j,K,z);return this.refresh(0,this.rows-1),V},F.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},F.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},F.prototype.registerCharacterJoiner=function(j){var K=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),K},F.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&this.refresh(0,this.rows-1)},Object.defineProperty(F.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),F.prototype.addMarker=function(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},F.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},F.prototype.select=function(j,K,z){this._selectionService.setSelection(j,K,z)},F.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},F.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},F.prototype.clearSelection=function(){var j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},F.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},F.prototype.selectLines=function(j,K){var z;(z=this._selectionService)===null||z===void 0||z.selectLines(j,K)},F.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var K=b.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),K.type===3||K.type===2){var z=this.rows-1;return this.scrollLines(K.type===2?-z:z),this.cancel(j,!0)}return K.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(K.cancel&&this.cancel(j,!0),!K.key||(K.key!==a.C0.ETX&&K.key!==a.C0.CR||(this.textarea.value=""),this._onKey.fire({key:K.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},F.prototype._isThirdLevelShift=function(j,K){var z=j.isMac&&!this.options.macOptionIsMeta&&K.altKey&&!K.ctrlKey&&!K.metaKey||j.isWindows&&K.altKey&&K.ctrlKey&&!K.metaKey;return K.type==="keypress"?z:z&&(!K.keyCode||K.keyCode>47)},F.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(K){return K.keyCode===16||K.keyCode===17||K.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},F.prototype._keyPress=function(j){var K;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)K=j.charCode;else if(j.which===null||j.which===void 0)K=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;K=j.which}return!(!K||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(K=String.fromCharCode(K),this._onKey.fire({key:K,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(K,!0),!0)},F.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},F.prototype.resize=function(j,K){j!==this.cols||K!==this.rows?X.prototype.resize.call(this,j,K):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},F.prototype._afterResize=function(j,K){var z,V;(z=this._charSizeService)===null||z===void 0||z.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},F.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 j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(E.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},F.prototype.reset=function(){var j,K;this.options.rows=this.rows,this.options.cols=this.cols;var z=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=z,this.refresh(0,this.rows-1),(K=this.viewport)===null||K===void 0||K.syncScrollArea()},F.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case i.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),z=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[4;"+z+";"+K+"t");break;case i.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(a.C0.ESC+"[6;"+Q+";"+V+"t")}},F.prototype.cancel=function(j,K){if(this.options.cancelEvents||K)return j.preventDefault(),j.stopPropagation(),!1},F.prototype._visualBell=function(){return!1},F.prototype._soundBell=function(){return this.options.bellStyle==="sound"},F}(M.CoreTerminal);f.Terminal=P},function(y,f,x){"use strict";var A=this&&this.__decorate||function(a,i,t,s){var e,l=arguments.length,n=l<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,i,t,s);else for(var o=a.length-1;o>=0;o--)(e=a[o])&&(n=(l<3?e(n):l>3?e(i,t,n):e(i,t))||n);return l>3&&n&&Object.defineProperty(i,t,n),n},m=this&&this.__param||function(a,i){return function(t,s){i(t,s,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CompositionHelper=void 0;var p=x(5),d=x(1),u=function(){function a(i,t,s,e,l,n){this._textarea=i,this._compositionView=t,this._bufferService=s,this._optionsService=e,this._charSizeService=l,this._coreService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(a.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),a.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},a.prototype.compositionupdate=function(i){var t=this;this._compositionView.textContent=i.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},a.prototype.compositionend=function(){this._finalizeComposition(!0)},a.prototype.keydown=function(i){if(this._isComposing||this._isSendingComposition){if(i.keyCode===229)return!1;if(i.keyCode===16||i.keyCode===17||i.keyCode===18)return!1;this._finalizeComposition(!1)}return i.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},a.prototype._finalizeComposition=function(i){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,i){var s={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var l=void 0;l=t._isComposing?t._textarea.value.substring(s.start,s.end):t._textarea.value.substring(s.start),t._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},a.prototype._handleAnyTextareaChanges=function(){var i=this,t=this._textarea.value;setTimeout(function(){if(!i._isComposing){var s=i._textarea.value.replace(t,"");s.length>0&&i._coreService.triggerDataEvent(s,!0)}},0)},a.prototype.updateCompositionElements=function(i){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var s=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*s,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=s+"px",this._compositionView.style.lineHeight=s+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var n=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=n.width+"px",this._textarea.style.height=n.height+"px",this._textarea.style.lineHeight=n.height+"px"}i||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},a=A([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,p.ICharSizeService),m(5,d.ICoreService)],a)}();f.CompositionHelper=u},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)}),p=this&&this.__decorate||function(e,l,n,o){var c,h=arguments.length,g=h<3?l:o===null?o=Object.getOwnPropertyDescriptor(l,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,n,o);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(l,n,g):c(l,n))||g);return h>3&&g&&Object.defineProperty(l,n,g),g},d=this&&this.__param||function(e,l){return function(n,o){l(n,o,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Viewport=void 0;var u=x(2),a=x(7),i=x(5),t=x(1),s=function(e){function l(n,o,c,h,g,v,b){var S=e.call(this)||this;return S._scrollLines=n,S._viewportElement=o,S._scrollArea=c,S._bufferService=h,S._optionsService=g,S._charSizeService=v,S._renderService=b,S.scrollBarWidth=0,S._currentRowHeight=0,S._lastRecordedBufferLength=0,S._lastRecordedViewportHeight=0,S._lastRecordedBufferHeight=0,S._lastTouchY=0,S._lastScrollTop=0,S._wheelPartialScroll=0,S._refreshAnimationFrame=null,S._ignoreNextScrollEvent=!1,S.scrollBarWidth=S._viewportElement.offsetWidth-S._scrollArea.offsetWidth||15,S.register(a.addDisposableDomListener(S._viewportElement,"scroll",S._onScroll.bind(S))),setTimeout(function(){return S.syncScrollArea()},0),S}return m(l,e),l.prototype.onThemeChange=function(n){this._viewportElement.style.backgroundColor=n.background.css},l.prototype._refresh=function(n){var o=this;if(n)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return o._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var n=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==n&&(this._lastRecordedBufferHeight=n,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==o&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=o),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(n){if(n===void 0&&(n=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(n);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var o=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===o&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(n)}else this._refresh(n)},l.prototype._onScroll=function(n){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(o,!0)}},l.prototype._bubbleScroll=function(n,o){var c=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&c<this._lastRecordedBufferHeight)||(n.cancelable&&n.preventDefault(),!1)},l.prototype.onWheel=function(n){var o=this._getPixelsScrolled(n);return o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(n,o))},l.prototype._getPixelsScrolled=function(n){if(n.deltaY===0)return 0;var o=this._applyScrollModifier(n.deltaY,n);return n.deltaMode===WheelEvent.DOM_DELTA_LINE?o*=this._currentRowHeight:n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._currentRowHeight*this._bufferService.rows),o},l.prototype.getLinesScrolled=function(n){if(n.deltaY===0)return 0;var o=this._applyScrollModifier(n.deltaY,n);return n.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=this._currentRowHeight+0,this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o},l.prototype._applyScrollModifier=function(n,o){var c=this._optionsService.options.fastScrollModifier;return c==="alt"&&o.altKey||c==="ctrl"&&o.ctrlKey||c==="shift"&&o.shiftKey?n*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:n*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(n){this._lastTouchY=n.touches[0].pageY},l.prototype.onTouchMove=function(n){var o=this._lastTouchY-n.touches[0].pageY;return this._lastTouchY=n.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(n,o))},l=p([d(3,t.IBufferService),d(4,t.IOptionsService),d(5,i.ICharSizeService),d(6,i.IRenderService)],l)}(u.Disposable);f.Viewport=s},function(y,f,x){"use strict";function A(u){return u.replace(/\r?\n/g,"\r")}function m(u,a){return a?"[200~"+u+"[201~":u}function p(u,a,i){u=m(u=A(u),i.decPrivateModes.bracketedPasteMode),i.triggerDataEvent(u,!0),a.value=""}function d(u,a,i){var t=i.getBoundingClientRect(),s=u.clientX-t.left-10,e=u.clientY-t.top-10;a.style.width="20px",a.style.height="20px",a.style.left=s+"px",a.style.top=e+"px",a.style.zIndex="1000",a.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=A,f.bracketTextForPaste=m,f.copyHandler=function(u,a){u.clipboardData&&u.clipboardData.setData("text/plain",a.selectionText),u.preventDefault()},f.handlePasteEvent=function(u,a,i){u.stopPropagation(),u.clipboardData&&p(u.clipboardData.getData("text/plain"),a,i)},f.paste=p,f.moveTextAreaUnderMouseCursor=d,f.rightClickHandler=function(u,a,i,t,s){d(u,a,i),s&&!t.isClickInSelection(u)&&t.selectWordAtCursor(u),a.value=t.selectionText,a.select()}},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)});Object.defineProperty(f,"__esModule",{value:!0}),f.EscapeSequenceParser=f.VT500_TRANSITION_TABLE=f.TransitionTable=void 0;var p=x(2),d=x(15),u=x(21),a=x(22),i=x(24),t=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,n){d.fill(this.table,l<<4|n)},e.prototype.add=function(l,n,o,c){this.table[n<<8|l]=o<<4|c},e.prototype.addMany=function(l,n,o,c){for(var h=0;h<l.length;h++)this.table[n<<8|l[h]]=o<<4|c},e}();f.TransitionTable=t,f.VT500_TRANSITION_TABLE=function(){var e=new t(4095),l=Array.apply(null,Array(256)).map(function(v,b){return b}),n=function(b,S){return l.slice(b,S)},o=n(32,127),c=n(0,24);c.push(25),c.push.apply(c,n(28,32));var h,g=n(0,14);for(h in e.setDefault(1,0),e.addMany(o,0,2,0),g)e.addMany([24,26,153,154],h,3,0),e.addMany(n(128,144),h,3,0),e.addMany(n(144,152),h,3,0),e.add(156,h,0,0),e.add(27,h,11,1),e.add(157,h,4,8),e.addMany([152,158,159],h,0,7),e.add(155,h,11,3),e.add(144,h,11,9);return e.addMany(c,0,3,0),e.addMany(c,1,3,1),e.add(127,1,0,1),e.addMany(c,8,0,8),e.addMany(c,3,3,3),e.add(127,3,0,3),e.addMany(c,4,3,4),e.add(127,4,0,4),e.addMany(c,6,3,6),e.addMany(c,5,3,5),e.add(127,5,0,5),e.addMany(c,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(o,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(o,7,0,7),e.addMany(c,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(c,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(c,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(c,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(c,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(c,13,13,13),e.addMany(o,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var s=function(e){function l(n){n===void 0&&(n=f.VT500_TRANSITION_TABLE);var o=e.call(this)||this;return o._transitions=n,o.initialState=0,o.currentState=o.initialState,o._params=new u.Params,o._params.addParam(0),o._collect=0,o.precedingCodepoint=0,o._printHandlerFb=function(c,h,g){},o._executeHandlerFb=function(c){},o._csiHandlerFb=function(c,h){},o._escHandlerFb=function(c){},o._errorHandlerFb=function(c){return c},o._printHandler=o._printHandlerFb,o._executeHandlers=Object.create(null),o._csiHandlers=Object.create(null),o._escHandlers=Object.create(null),o._oscParser=new a.OscParser,o._dcsParser=new i.DcsParser,o._errorHandler=o._errorHandlerFb,o.setEscHandler({final:"\\"},function(){}),o}return m(l,e),l.prototype._identifier=function(n,o){o===void 0&&(o=[64,126]);var c=0;if(n.prefix){if(n.prefix.length>1)throw new Error("only one byte as prefix supported");if((c=n.prefix.charCodeAt(0))&&60>c||c>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(n.intermediates){if(n.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var h=0;h<n.intermediates.length;++h){var g=n.intermediates.charCodeAt(h);if(32>g||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=g}}if(n.final.length!==1)throw new Error("final must be a single byte");var v=n.final.charCodeAt(0);if(o[0]>v||v>o[1])throw new Error("final must be in range "+o[0]+" .. "+o[1]);return c<<=8,c|=v},l.prototype.identToString=function(n){for(var o=[];n;)o.push(String.fromCharCode(255&n)),n>>=8;return o.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(n){this._printHandler=n},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(n,o){var c=this._identifier(n,[48,126]);this._escHandlers[c]===void 0&&(this._escHandlers[c]=[]);var h=this._escHandlers[c];return h.push(o),{dispose:function(){var v=h.indexOf(o);v!==-1&&h.splice(v,1)}}},l.prototype.setEscHandler=function(n,o){this._escHandlers[this._identifier(n,[48,126])]=[o]},l.prototype.clearEscHandler=function(n){this._escHandlers[this._identifier(n,[48,126])]&&delete this._escHandlers[this._identifier(n,[48,126])]},l.prototype.setEscHandlerFallback=function(n){this._escHandlerFb=n},l.prototype.setExecuteHandler=function(n,o){this._executeHandlers[n.charCodeAt(0)]=o},l.prototype.clearExecuteHandler=function(n){this._executeHandlers[n.charCodeAt(0)]&&delete this._executeHandlers[n.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(n){this._executeHandlerFb=n},l.prototype.addCsiHandler=function(n,o){var c=this._identifier(n);this._csiHandlers[c]===void 0&&(this._csiHandlers[c]=[]);var h=this._csiHandlers[c];return h.push(o),{dispose:function(){var v=h.indexOf(o);v!==-1&&h.splice(v,1)}}},l.prototype.setCsiHandler=function(n,o){this._csiHandlers[this._identifier(n)]=[o]},l.prototype.clearCsiHandler=function(n){this._csiHandlers[this._identifier(n)]&&delete this._csiHandlers[this._identifier(n)]},l.prototype.setCsiHandlerFallback=function(n){this._csiHandlerFb=n},l.prototype.addDcsHandler=function(n,o){return this._dcsParser.addHandler(this._identifier(n),o)},l.prototype.setDcsHandler=function(n,o){this._dcsParser.setHandler(this._identifier(n),o)},l.prototype.clearDcsHandler=function(n){this._dcsParser.clearHandler(this._identifier(n))},l.prototype.setDcsHandlerFallback=function(n){this._dcsParser.setHandlerFallback(n)},l.prototype.addOscHandler=function(n,o){return this._oscParser.addHandler(n,o)},l.prototype.setOscHandler=function(n,o){this._oscParser.setHandler(n,o)},l.prototype.clearOscHandler=function(n){this._oscParser.clearHandler(n)},l.prototype.setOscHandlerFallback=function(n){this._oscParser.setHandlerFallback(n)},l.prototype.setErrorHandler=function(n){this._errorHandler=n},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(n,o){for(var c=0,h=0,g=this.currentState,v=this._oscParser,b=this._dcsParser,S=this._collect,E=this._params,C=this._transitions.table,_=0;_<o;++_){switch((h=C[g<<8|((c=n[_])<160?c:160)])>>4){case 2:for(var T=_+1;;++T){if(T>=o||(c=n[T])<32||c>126&&c<160){this._printHandler(n,_,T),_=T-1;break}if(++T>=o||(c=n[T])<32||c>126&&c<160){this._printHandler(n,_,T),_=T-1;break}if(++T>=o||(c=n[T])<32||c>126&&c<160){this._printHandler(n,_,T),_=T-1;break}if(++T>=o||(c=n[T])<32||c>126&&c<160){this._printHandler(n,_,T),_=T-1;break}}break;case 3:this._executeHandlers[c]?this._executeHandlers[c]():this._executeHandlerFb(c),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:_,code:c,currentState:g,collect:S,params:E,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[S<<8|c],O=w?w.length-1:-1;O>=0&&w[O](E)===!1;O--);O<0&&this._csiHandlerFb(S<<8|c,E),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:E.addParam(0);break;case 58:E.addSubParam(-1);break;default:E.addDigit(c-48)}while(++_<o&&(c=n[_])>47&&c<60);_--;break;case 9:S<<=8,S|=c;break;case 10:for(var I=this._escHandlers[S<<8|c],k=I?I.length-1:-1;k>=0&&I[k]()===!1;k--);k<0&&this._escHandlerFb(S<<8|c),this.precedingCodepoint=0;break;case 11:E.reset(),E.addParam(0),S=0;break;case 12:b.hook(S<<8|c,E);break;case 13:for(var M=_+1;;++M)if(M>=o||(c=n[M])===24||c===26||c===27||c>127&&c<160){b.put(n,_,M),_=M-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0;break;case 4:v.start();break;case 5:for(var U=_+1;;U++)if(U>=o||(c=n[U])<32||c>127&&c<=159){v.put(n,_,U),_=U-1;break}break;case 6:v.end(c!==24&&c!==26),c===27&&(h|=1),E.reset(),E.addParam(0),S=0,this.precedingCodepoint=0}g=15&h}this._collect=S,this.currentState=g},l}(p.Disposable);f.EscapeSequenceParser=s},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),p=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Renderer=void 0;var u=x(41),a=x(47),i=x(48),t=x(49),s=x(29),e=x(2),l=x(5),n=x(1),o=x(25),c=x(0),h=1,g=function(v){function b(S,E,C,_,T,w,O,I,k){var M=v.call(this)||this;M._colors=S,M._screenElement=E,M._bufferService=T,M._charSizeService=w,M._optionsService=O,M._id=h++,M._onRequestRedraw=new c.EventEmitter;var U=M._optionsService.options.allowTransparency;return M._characterJoinerRegistry=new s.CharacterJoinerRegistry(M._bufferService),M._renderLayers=[new u.TextRenderLayer(M._screenElement,0,M._colors,M._characterJoinerRegistry,U,M._id,M._bufferService,O),new a.SelectionRenderLayer(M._screenElement,1,M._colors,M._id,M._bufferService,O),new t.LinkRenderLayer(M._screenElement,2,M._colors,M._id,C,_,M._bufferService,O),new i.CursorRenderLayer(M._screenElement,3,M._colors,M._id,M._onRequestRedraw,M._bufferService,O,I,k)],M.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},M._devicePixelRatio=window.devicePixelRatio,M._updateDimensions(),M.onOptionsChanged(),M}return m(b,v),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var S=0,E=this._renderLayers;S<E.length;S++)E[S].dispose();v.prototype.dispose.call(this),o.removeTerminalFromCache(this._id)},b.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},b.prototype.setColors=function(S){this._colors=S;for(var E=0,C=this._renderLayers;E<C.length;E++){var _=C[E];_.setColors(this._colors),_.reset()}},b.prototype.onResize=function(S,E){this._updateDimensions();for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},b.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},b.prototype.onSelectionChanged=function(S,E,C){C===void 0&&(C=!1),this._runOperation(function(_){return _.onSelectionChanged(S,E,C)})},b.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},b.prototype._runOperation=function(S){for(var E=0,C=this._renderLayers;E<C.length;E++)S(C[E])},b.prototype.renderRows=function(S,E){for(var C=0,_=this._renderLayers;C<_.length;C++)_[C].onGridChanged(S,E)},b.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},b.prototype.registerCharacterJoiner=function(S){return this._characterJoinerRegistry.registerCharacterJoiner(S)},b.prototype.deregisterCharacterJoiner=function(S){return this._characterJoinerRegistry.deregisterCharacterJoiner(S)},b=p([d(4,n.IBufferService),d(5,l.ICharSizeService),d(6,n.IOptionsService),d(7,n.ICoreService),d(8,l.ICoreBrowserService)],b)}(e.Disposable);f.Renderer=g},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)});Object.defineProperty(f,"__esModule",{value:!0}),f.TextRenderLayer=void 0;var p=x(42),d=x(13),u=x(6),a=x(3),i=x(29),t=x(4),s=function(e){function l(n,o,c,h,g,v,b,S){var E=e.call(this,n,"text",o,g,c,v,b,S)||this;return E._characterWidth=0,E._characterFont="",E._characterOverlapCache={},E._workCell=new t.CellData,E._state=new p.GridCache,E._characterJoinerRegistry=h,E}return m(l,e),l.prototype.resize=function(n){e.prototype.resize.call(this,n);var o=this._getFont(!1,!1);this._characterWidth===n.scaledCharWidth&&this._characterFont===o||(this._characterWidth=n.scaledCharWidth,this._characterFont=o,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(n,o,c,h){for(var g=n;g<=o;g++)for(var v=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(v),S=c?c.getJoinedCharacters(v):[],E=0;E<this._bufferService.cols;E++){b.loadCell(E,this._workCell);var C=this._workCell,_=!1,T=E;if(C.getWidth()!==0){if(S.length>0&&E===S[0][0]){_=!0;var w=S.shift();C=new i.JoinedCellData(this._workCell,b.translateToString(!0,w[0],w[1]),w[1]-w[0]),T=w[1]-1}!_&&this._isOverlapping(C)&&T<b.length-1&&b.getCodePoint(T+1)===a.NULL_CELL_CODE&&(C.content&=-12582913,C.content|=2<<22),h(C,E,g),E=T}}},l.prototype._drawBackground=function(n,o){var c=this,h=this._ctx,g=this._bufferService.cols,v=0,b=0,S=null;h.save(),this._forEachCell(n,o,null,function(E,C,_){var T=null;E.isInverse()?T=E.isFgDefault()?c._colors.foreground.css:E.isFgRGB()?"rgb("+u.AttributeData.toColorRGB(E.getFgColor()).join(",")+")":c._colors.ansi[E.getFgColor()].css:E.isBgRGB()?T="rgb("+u.AttributeData.toColorRGB(E.getBgColor()).join(",")+")":E.isBgPalette()&&(T=c._colors.ansi[E.getBgColor()].css),S===null&&(v=C,b=_),_!==b?(h.fillStyle=S||"",c._fillCells(v,b,g-v,1),v=C,b=_):S!==T&&(h.fillStyle=S||"",c._fillCells(v,b,C-v,1),v=C,b=_),S=T}),S!==null&&(h.fillStyle=S,this._fillCells(v,b,g-v,1)),h.restore()},l.prototype._drawForeground=function(n,o){var c=this;this._forEachCell(n,o,this._characterJoinerRegistry,function(h,g,v){if(!h.isInvisible()&&(c._drawChars(h,g,v),h.isUnderline())){if(c._ctx.save(),h.isInverse())if(h.isBgDefault())c._ctx.fillStyle=c._colors.background.css;else if(h.isBgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(h.getBgColor()).join(",")+")";else{var b=h.getBgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&b<8&&(b+=8),c._ctx.fillStyle=c._colors.ansi[b].css}else if(h.isFgDefault())c._ctx.fillStyle=c._colors.foreground.css;else if(h.isFgRGB())c._ctx.fillStyle="rgb("+u.AttributeData.toColorRGB(h.getFgColor()).join(",")+")";else{var S=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&S<8&&(S+=8),c._ctx.fillStyle=c._colors.ansi[S].css}c._fillBottomLineAtCells(g,v,h.getWidth()),c._ctx.restore()}})},l.prototype.onGridChanged=function(n,o){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,n,this._bufferService.cols,o-n+1),this._drawBackground(n,o),this._drawForeground(n,o))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(n){if(n.getWidth()!==1)return!1;if(n.getCode()<256)return!1;var o=n.getChars();if(this._characterOverlapCache.hasOwnProperty(o))return this._characterOverlapCache[o];this._ctx.save(),this._ctx.font=this._characterFont;var c=Math.floor(this._ctx.measureText(o).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[o]=c,c},l}(d.BaseRenderLayer);f.TextRenderLayer=s},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.GridCache=void 0;var A=function(){function m(){this.cache=[]}return m.prototype.resize=function(p,d){for(var u=0;u<p;u++){this.cache.length<=u&&this.cache.push([]);for(var a=this.cache[u].length;a<d;a++)this.cache[u].push(void 0);this.cache[u].length=d}this.cache.length=p},m.prototype.clear=function(){for(var p=0;p<this.cache.length;p++)for(var d=0;d<this.cache[p].length;d++)this.cache[p][d]=void 0},m}();f.GridCache=A},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(h,g){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])})(h,g)},function(c,h){function g(){this.constructor=c}A(c,h),c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(f,"__esModule",{value:!0}),f.NoneCharAtlas=f.DynamicCharAtlas=f.getGlyphCacheKey=void 0;var p=x(9),d=x(44),u=x(27),a=x(46),i=x(11),t=x(28),s=x(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(c){return c.code<<21|c.bg<<12|c.fg<<3|(c.bold?0:4)+(c.dim?0:2)+(c.italic?0:1)}f.getGlyphCacheKey=l;var n=function(c){function h(g,v){var b=c.call(this)||this;b._config=v,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=g.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var S=g.createElement("canvas");S.width=b._config.scaledCharWidth,S.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(S.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var E=b._width*b._height;return b._cacheMap=new a.LRUMap(E),b._cacheMap.prealloc(E),b}return m(h,c),h.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},h.prototype.beginFrame=function(){this._drawToCacheCount=0},h.prototype.draw=function(g,v,b,S){if(v.code===32)return!0;if(!this._canCache(v))return!1;var E=l(v),C=this._cacheMap.get(E);if(C!=null)return this._drawFromCache(g,C,b,S),!0;if(this._drawToCacheCount<100){var _=void 0;_=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(v,_);return this._cacheMap.set(E,T),this._drawFromCache(g,T,b,S),!0}return!1},h.prototype._canCache=function(g){return g.code<256},h.prototype._toCoordinateX=function(g){return g%this._width*this._config.scaledCharWidth},h.prototype._toCoordinateY=function(g){return Math.floor(g/this._width)*this._config.scaledCharHeight},h.prototype._drawFromCache=function(g,v,b,S){if(!v.isEmpty){var E=this._toCoordinateX(v.index),C=this._toCoordinateY(v.index);g.drawImage(v.inBitmap?this._bitmap:this._cacheCanvas,E,C,this._config.scaledCharWidth,this._config.scaledCharHeight,b,S,this._config.scaledCharWidth,this._config.scaledCharHeight)}},h.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:u.DEFAULT_ANSI_COLORS[g]},h.prototype._getBackgroundColor=function(g){return this._config.allowTransparency?e:g.bg===p.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:g.bg<256?this._getColorFromAnsiIndex(g.bg):this._config.colors.background},h.prototype._getForegroundColor=function(g){return g.fg===p.INVERTED_DEFAULT_COLOR?s.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},h.prototype._drawToCache=function(g,v){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(g);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var S=g.bold?this._config.fontWeightBold:this._config.fontWeight,E=g.italic?"italic":"";this._tmpCtx.font=E+" "+S+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(g).css,g.dim&&(this._tmpCtx.globalAlpha=p.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var C=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),_=!1;this._config.allowTransparency||(_=function(I,k){for(var M=!0,U=k.rgba>>>24,P=k.rgba>>>16&255,X=k.rgba>>>8&255,F=0;F<I.data.length;F+=4)I.data[F]===U&&I.data[F+1]===P&&I.data[F+2]===X?I.data[F+3]=0:M=!1;return M}(C,b));var T=this._toCoordinateX(v),w=this._toCoordinateY(v);this._cacheCtx.putImageData(C,T,w);var O={index:v,isEmpty:_,inBitmap:!1};return this._addGlyphToBitmap(O),O},h.prototype._addGlyphToBitmap=function(g){var v=this;!("createImageBitmap"in window)||i.isFirefox||i.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return v._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var g=this,v=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var S=0;S<v.length;S++)v[S].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);f.DynamicCharAtlas=n;var o=function(c){function h(g,v){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,v,b,S){return!1},h}(d.BaseCharAtlas);f.NoneCharAtlas=o},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BaseCharAtlas=void 0;var A=function(){function m(){this._didWarmUp=!1}return m.prototype.dispose=function(){},m.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},m.prototype._doWarmUp=function(){},m.prototype.beginFrame=function(){},m}();f.BaseCharAtlas=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.ColorContrastCache=void 0;var A=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(p,d,u){this._rgba[p]||(this._rgba[p]={}),this._rgba[p][d]=u},m.prototype.getCss=function(p,d){return this._rgba[p]?this._rgba[p][d]:void 0},m.prototype.setColor=function(p,d,u){this._color[p]||(this._color[p]={}),this._color[p][d]=u},m.prototype.getColor=function(p,d){return this._color[p]?this._color[p][d]:void 0},m}();f.ColorContrastCache=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.LRUMap=void 0;var A=function(){function m(p){this.capacity=p,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return m.prototype._unlinkNode=function(p){var d=p.prev,u=p.next;p===this._head&&(this._head=u),p===this._tail&&(this._tail=d),d!==null&&(d.next=u),u!==null&&(u.prev=d)},m.prototype._appendNode=function(p){var d=this._tail;d!==null&&(d.next=p),p.prev=d,p.next=null,this._tail=p,this._head===null&&(this._head=p)},m.prototype.prealloc=function(p){for(var d=this._nodePool,u=0;u<p;u++)d.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(p){var d=this._map[p];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},m.prototype.peekValue=function(p){var d=this._map[p];return d!==void 0?d.value:null},m.prototype.peek=function(){var p=this._head;return p===null?null:p.value},m.prototype.set=function(p,d){var u=this._map[p];if(u!==void 0)u=this._map[p],this._unlinkNode(u),u.value=d;else if(this.size>=this.capacity)u=this._head,this._unlinkNode(u),delete this._map[u.key],u.key=p,u.value=d,this._map[p]=u;else{var a=this._nodePool;a.length>0?((u=a.pop()).key=p,u.value=d):u={prev:null,next:null,key:p,value:d},this._map[p]=u,this.size++}this._appendNode(u)},m}();f.LRUMap=A},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(u,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s])})(u,a)},function(d,u){function a(){this.constructor=d}A(d,u),d.prototype=u===null?Object.create(u):(a.prototype=u.prototype,new a)});Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionRenderLayer=void 0;var p=function(d){function u(a,i,t,s,e,l){var n=d.call(this,a,"selection",i,!0,t,s,e,l)||this;return n._clearState(),n}return m(u,d),u.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},u.prototype.resize=function(a){d.prototype.resize.call(this,a),this._clearState()},u.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},u.prototype.onSelectionChanged=function(a,i,t){if(this._didStateChange(a,i,t,this._bufferService.buffer.ydisp))if(this._clearAll(),a&&i){var s=a[1]-this._bufferService.buffer.ydisp,e=i[1]-this._bufferService.buffer.ydisp,l=Math.max(s,0),n=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||n<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,t){var o=a[0],c=i[0]-o,h=n-l+1;this._fillCells(o,l,c,h)}else{o=s===l?a[0]:0;var g=l===n?i[0]:this._bufferService.cols;this._fillCells(o,l,g-o,1);var v=Math.max(n-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,v),l!==n){var b=e===n?i[0]:this._bufferService.cols;this._fillCells(0,n,b,1)}}this._state.start=[a[0],a[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},u.prototype._didStateChange=function(a,i,t,s){return!this._areCoordinatesEqual(a,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||t!==this._state.columnSelectMode||s!==this._state.ydisp},u.prototype._areCoordinatesEqual=function(a,i){return!(!a||!i)&&a[0]===i[0]&&a[1]===i[1]},u}(x(13).BaseRenderLayer);f.SelectionRenderLayer=p},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(t,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])})(t,s)},function(i,t){function s(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.CursorRenderLayer=void 0;var p=x(13),d=x(4),u=function(i){function t(s,e,l,n,o,c,h,g,v){var b=i.call(this,s,"cursor",e,!0,l,n,c,h)||this;return b._onRequestRedraw=o,b._coreService=g,b._coreBrowserService=v,b._cell=new d.CellData,b._state={x:0,y:0,isFocused:!1,style:"",width:0},b._cursorRenderers={bar:b._renderBarCursor.bind(b),block:b._renderBlockCursor.bind(b),underline:b._renderUnderlineCursor.bind(b)},b}return m(t,i),t.prototype.resize=function(s){i.prototype.resize.call(this,s),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var s,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,function(){e._render(!0)})):((s=this._cursorBlinkStateManager)===null||s===void 0||s.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(s,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(s){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var n=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(n,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var o=this._optionsService.options.cursorStyle;return o&&o!=="block"?this._cursorRenderers[o](n,l,this._cell):this._renderBlurCursor(n,l,this._cell),this._ctx.restore(),this._state.x=n,this._state.y=l,this._state.isFocused=!1,this._state.style=o,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===n&&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"](n,l,this._cell),this._ctx.restore(),this._state.x=n,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()},t.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})},t.prototype._renderBarCursor=function(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(s,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(s,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,s,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(s,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(s,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(s,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(s,e,l.getWidth(),1),this._ctx.restore()},t}(p.BaseRenderLayer);f.CursorRenderLayer=u;var a=function(){function i(t,s){this._renderCallback=s,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(i.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),i.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)},i.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},i.prototype._restartInterval=function(t){var s=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(s._animationTimeRestarted){var e=600-(Date.now()-s._animationTimeRestarted);if(s._animationTimeRestarted=void 0,e>0)return void s._restartInterval(e)}s.isCursorVisible=!1,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0}),s._blinkInterval=window.setInterval(function(){if(s._animationTimeRestarted){var l=600-(Date.now()-s._animationTimeRestarted);return s._animationTimeRestarted=void 0,void s._restartInterval(l)}s.isCursorVisible=!s.isCursorVisible,s._animationFrame=window.requestAnimationFrame(function(){s._renderCallback(),s._animationFrame=void 0})},600)},t)},i.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)},i.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},i}()},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(t,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])})(t,s)},function(i,t){function s(){this.constructor=i}A(i,t),i.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(f,"__esModule",{value:!0}),f.LinkRenderLayer=void 0;var p=x(13),d=x(9),u=x(26),a=function(i){function t(s,e,l,n,o,c,h,g){var v=i.call(this,s,"link",e,!0,l,n,h,g)||this;return o.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),o.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),v}return m(t,i),t.prototype.resize=function(s){i.prototype.resize.call(this,s),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var s=this._state.y2-this._state.y1-1;s>0&&this._clearCells(0,this._state.y1+1,this._state.cols,s),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(s){if(s.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:s.fg&&u.is256Color(s.fg)?this._ctx.fillStyle=this._colors.ansi[s.fg].css:this._ctx.fillStyle=this._colors.foreground.css,s.y1===s.y2)this._fillBottomLineAtCells(s.x1,s.y1,s.x2-s.x1);else{this._fillBottomLineAtCells(s.x1,s.y1,s.cols-s.x1);for(var e=s.y1+1;e<s.y2;e++)this._fillBottomLineAtCells(0,e,s.cols);this._fillBottomLineAtCells(0,s.y2,s.x2)}this._state=s},t.prototype._onHideLinkUnderline=function(s){this._clearCurrentLink()},t}(p.BaseRenderLayer);f.LinkRenderLayer=a},function(y,f,x){"use strict";var A=this&&this.__decorate||function(i,t,s,e){var l,n=arguments.length,o=n<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,s,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(o=(n<3?l(o):n>3?l(t,s,o):l(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o},m=this&&this.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZone=f.Linkifier=void 0;var p=x(0),d=x(1),u=function(){function i(t,s,e){this._bufferService=t,this._logService=s,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new p.EventEmitter,this._onHideLinkUnderline=new p.EventEmitter,this._onLinkTooltip=new p.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(i.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),i.prototype.attachToDom=function(t,s){this._element=t,this._mouseZoneManager=s},i.prototype.linkifyRows=function(t,s){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=s):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,s)),this._mouseZoneManager.clearAll(t,s),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},i._timeBeforeLatency))},i.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var s=t.ydisp+this._rowsToLinkify.start;if(!(s>=t.lines.length)){for(var e=t.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),n=this._bufferService.buffer.iterator(!1,s,e,l,l);n.hasNext();)for(var o=n.next(),c=0;c<this._linkMatchers.length;c++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[c]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},i.prototype.registerLinkMatcher=function(t,s,e){if(e===void 0&&(e={}),!s)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:t,handler:s,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},i.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var s=this._linkMatchers.length-1;s>=0;s--)if(t.priority<=this._linkMatchers[s].priority)return void this._linkMatchers.splice(s+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},i.prototype.deregisterLinkMatcher=function(t){for(var s=0;s<this._linkMatchers.length;s++)if(this._linkMatchers[s].id===t)return this._linkMatchers.splice(s,1),!0;return!1},i.prototype._doLinkifyRow=function(t,s,e){for(var l,n=this,o=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),c=-1,h=function(){var b=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!b)return g._logService.debug("match found without corresponding matchIndex",l,e),"break";if(c=s.indexOf(b,c+1),o.lastIndex=c+b.length,c<0)return"break";var S=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(S[0]<0)return"break";var E=g._bufferService.buffer.lines.get(S[0]);if(!E)return"break";var C=E.getFg(S[1]),_=C?C>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(T){n._rowsTimeoutId||T&&n._addLink(S[1],S[0]-n._bufferService.buffer.ydisp,b,e,_)}):g._addLink(S[1],S[0]-g._bufferService.buffer.ydisp,b,e,_)},g=this;(l=o.exec(s))!==null&&!(h()==="break"););},i.prototype._addLink=function(t,s,e,l,n){var o=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,g=s+Math.floor(t/this._bufferService.cols),v=(h+c)%this._bufferService.cols,b=g+Math.floor((h+c)/this._bufferService.cols);v===0&&(v=this._bufferService.cols,b--),this._mouseZoneManager.add(new a(h+1,g+1,v+1,b+1,function(S){if(l.handler)return l.handler(S,e);var E=window.open();E?(E.opener=null,E.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(h,g,v,b,n)),o._element.classList.add("xterm-cursor-pointer")},function(S){o._onLinkTooltip.fire(o._createLinkHoverEvent(h,g,v,b,n)),l.hoverTooltipCallback&&l.hoverTooltipCallback(S,e,{start:{x:h,y:g},end:{x:v,y:b}})},function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(h,g,v,b,n)),o._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(S){return!l.willLinkActivate||l.willLinkActivate(S,e)}))}},i.prototype._createLinkHoverEvent=function(t,s,e,l,n){return{x1:t,y1:s,x2:e,y2:l,cols:this._bufferService.cols,fg:n}},i._timeBeforeLatency=200,i=A([m(0,d.IBufferService),m(1,d.ILogService),m(2,d.IUnicodeService)],i)}();f.Linkifier=u;var a=function(t,s,e,l,n,o,c,h,g){this.x1=t,this.y1=s,this.x2=e,this.y2=l,this.clickCallback=n,this.hoverCallback=o,this.tooltipCallback=c,this.leaveCallback=h,this.willLinkActivate=g};f.MouseZone=a},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(b,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,C){E.__proto__=C}||function(E,C){for(var _ in C)C.hasOwnProperty(_)&&(E[_]=C[_])})(b,S)},function(v,b){function S(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}),p=this&&this.__decorate||function(v,b,S,E){var C,_=arguments.length,T=_<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,S):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(v,b,S,E);else for(var w=v.length-1;w>=0;w--)(C=v[w])&&(T=(_<3?C(T):_>3?C(b,S,T):C(b,S))||T);return _>3&&T&&Object.defineProperty(b,S,T),T},d=this&&this.__param||function(v,b){return function(S,E){b(S,E,v)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionService=void 0;var u=x(11),a=x(52),i=x(4),t=x(0),s=x(5),e=x(1),l=x(30),n=x(53),o=x(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(v){function b(S,E,C,_,T,w,O){var I=v.call(this)||this;return I._element=S,I._screenElement=E,I._bufferService=C,I._coreService=_,I._mouseService=T,I._optionsService=w,I._renderService=O,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new i.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new t.EventEmitter),I._onRedrawRequest=I.register(new t.EventEmitter),I._onSelectionChange=I.register(new t.EventEmitter),I._onRequestScrollLines=I.register(new t.EventEmitter),I._mouseMoveListener=function(k){return I._onMouseMove(k)},I._mouseUpListener=function(k){return I._onMouseUp(k)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(k){return I._onTrim(k)}),I.register(I._bufferService.buffers.onBufferActivate(function(k){return I._onBufferActivate(k)})),I.enable(),I._model=new a.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return m(b,v),Object.defineProperty(b.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._removeMouseDownListeners()},b.prototype.reset=function(){this.clearSelection()},b.prototype.disable=function(){this.clearSelection(),this._enabled=!1},b.prototype.enable=function(){this._enabled=!0},Object.defineProperty(b.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!E||!C)&&(E[0]!==C[0]||E[1]!==C[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;if(!E||!C)return"";var _=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(E[0]===C[0])return"";for(var w=E[1];w<=C[1];w++){var O=_.translateBufferLineToString(w,!0,E[0],C[0]);T.push(O)}}else{var I=E[1]===C[1]?C[0]:void 0;for(T.push(_.translateBufferLineToString(E[1],!0,E[0],I)),w=E[1]+1;w<=C[1]-1;w++){var k=_.lines.get(w);O=_.translateBufferLineToString(w,!0),k&&k.isWrapped?T[T.length-1]+=O:T.push(O)}E[1]!==C[1]&&(k=_.lines.get(C[1]),O=_.translateBufferLineToString(C[1],!0,0,C[0]),k&&k.isWrapped?T[T.length-1]+=O:T.push(O))}return T.map(function(M){return M.replace(h," ")}).join(u.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),b.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},b.prototype.refresh=function(S){var E=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return E._refresh()})),u.isLinux&&S)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},b.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},b.prototype.isClickInSelection=function(S){var E=this._getMouseBufferCoords(S),C=this._model.finalSelectionStart,_=this._model.finalSelectionEnd;return!!(C&&_&&E)&&this._areCoordsInSelection(E,C,_)},b.prototype._areCoordsInSelection=function(S,E,C){return S[1]>E[1]&&S[1]<C[1]||E[1]===C[1]&&S[1]===E[1]&&S[0]>=E[0]&&S[0]<C[0]||E[1]<C[1]&&S[1]===C[1]&&S[0]<C[0]||E[1]<C[1]&&S[1]===E[1]&&S[0]>=E[0]},b.prototype.selectWordAtCursor=function(S){var E=this._getMouseBufferCoords(S);E&&(this._selectWordAt(E,!1),this._model.selectionEnd=void 0,this.refresh(!0))},b.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},b.prototype.selectLines=function(S,E){this._model.clearSelection(),S=Math.max(S,0),E=Math.min(E,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,S],this._model.selectionEnd=[this._bufferService.cols,E],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(S){this._model.onTrim(S)&&this.refresh()},b.prototype._getMouseBufferCoords=function(S){var E=this._mouseService.getCoords(S,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(E)return E[0]--,E[1]--,E[1]+=this._bufferService.buffer.ydisp,E},b.prototype._getMouseEventScrollAmount=function(S){var E=l.getCoordsRelativeToElement(S,this._screenElement)[1],C=this._renderService.dimensions.canvasHeight;return E>=0&&E<=C?0:(E>C&&(E-=C),E=Math.min(Math.max(E,-50),50),(E/=50)/Math.abs(E)+Math.round(14*E))},b.prototype.shouldForceSelection=function(S){return u.isMac?S.altKey&&this._optionsService.options.macOptionClickForcesSelection:S.shiftKey},b.prototype.onMouseDown=function(S){if(this._mouseDownTimeStamp=S.timeStamp,(S.button!==2||!this.hasSelection)&&S.button===0){if(!this._enabled){if(!this.shouldForceSelection(S))return;S.stopPropagation()}S.preventDefault(),this._dragScrollAmount=0,this._enabled&&S.shiftKey?this._onIncrementalClick(S):S.detail===1?this._onSingleClick(S):S.detail===2?this._onDoubleClick(S):S.detail===3&&this._onTripleClick(S),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var S=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return S._dragScroll()},50)},b.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},b.prototype._onIncrementalClick=function(S){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(S))},b.prototype._onSingleClick=function(S){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(S)?3:0,this._model.selectionStart=this._getMouseBufferCoords(S),this._model.selectionStart){this._model.selectionEnd=void 0;var E=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);E&&E.length!==this._model.selectionStart[0]&&E.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=1,this._selectWordAt(E,!0))},b.prototype._onTripleClick=function(S){var E=this._getMouseBufferCoords(S);E&&(this._activeSelectionMode=2,this._selectLineAt(E[1]))},b.prototype.shouldColumnSelect=function(S){return S.altKey&&!(u.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(S){if(S.stopImmediatePropagation(),this._model.selectionStart){var E=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(S),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(S),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){var _=C.lines.get(this._model.selectionEnd[1]);_&&_.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}E&&E[0]===this._model.selectionEnd[0]&&E[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},b.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var S=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(S.ydisp+this._bufferService.rows,S.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=S.ydisp),this.refresh()}},b.prototype._onMouseUp=function(S){var E=S.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&E<500&&S.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var C=this._mouseService.getCoords(S,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){var _=n.moveToCellSequence(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(_,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(S){var E=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=S.activeBuffer.lines.onTrim(function(C){return E._onTrim(C)})},b.prototype._convertViewportColToCharacterIndex=function(S,E){for(var C=E[0],_=0;E[0]>=_;_++){var T=S.loadCell(_,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:T>1&&E[0]!==_&&(C+=T-1)}return C},b.prototype.setSelection=function(S,E,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[S,E],this._model.selectionStartLength=C,this.refresh()},b.prototype._getWordAt=function(S,E,C,_){if(C===void 0&&(C=!0),_===void 0&&(_=!0),!(S[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,w=T.lines.get(S[1]);if(w){var O=T.translateBufferLineToString(S[1],!1),I=this._convertViewportColToCharacterIndex(w,S),k=I,M=S[0]-I,U=0,P=0,X=0,F=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;k<O.length&&O.charAt(k+1)===" ";)k++}else{var j=S[0],K=S[0];w.getWidth(j)===0&&(U++,j--),w.getWidth(K)===2&&(P++,K++);var z=w.getString(K).length;for(z>1&&(F+=z-1,k+=z-1);j>0&&I>0&&!this._isCharWordSeparator(w.loadCell(j-1,this._workCell));){w.loadCell(j-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(U++,j--):V>1&&(X+=V-1,I-=V-1),I--,j--}for(;K<w.length&&k+1<O.length&&!this._isCharWordSeparator(w.loadCell(K+1,this._workCell));){w.loadCell(K+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(P++,K++):Q>1&&(F+=Q-1,k+=Q-1),k++,K++}}k++;var G=I+M-U+X,ee=Math.min(this._bufferService.cols,k-I+U+P-X-F);if(E||O.slice(I,k).trim()!==""){if(C&&G===0&&w.getCodePoint(0)!==32){var se=T.lines.get(S[1]-1);if(se&&w.isWrapped&&se.getCodePoint(this._bufferService.cols-1)!==32){var ye=this._getWordAt([this._bufferService.cols-1,S[1]-1],!1,!0,!1);if(ye){var he=this._bufferService.cols-ye.start;G-=he,ee+=he}}}if(_&&G+ee===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var ke=T.lines.get(S[1]+1);if(ke&&ke.isWrapped&&ke.getCodePoint(0)!==32){var Pe=this._getWordAt([0,S[1]+1],!1,!1,!0);Pe&&(ee+=Pe.length)}}return{start:G,length:ee}}}}},b.prototype._selectWordAt=function(S,E){var C=this._getWordAt(S,E);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,S[1]--;this._model.selectionStart=[C.start,S[1]],this._model.selectionStartLength=C.length}},b.prototype._selectToWordAt=function(S){var E=this._getWordAt(S,!0);if(E){for(var C=S[1];E.start<0;)E.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;E.start+E.length>this._bufferService.cols;)E.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?E.start:E.start+E.length,C]}},b.prototype._isCharWordSeparator=function(S){return S.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(S.getChars())>=0},b.prototype._selectLineAt=function(S){var E=this._bufferService.buffer.getWrappedRangeForLine(S);this._model.selectionStart=[0,E.first],this._model.selectionEnd=[this._bufferService.cols,E.last],this._model.selectionStartLength=0},b=p([d(2,e.IBufferService),d(3,e.ICoreService),d(4,s.IMouseService),d(5,e.IOptionsService),d(6,s.IRenderService)],b)}(o.Disposable);f.SelectionService=g},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.SelectionModel=void 0;var A=function(){function m(p){this._bufferService=p,this.isSelectAllActive=!1,this.selectionStartLength=0}return m.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(m.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(m.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 d=this.selectionStart[0]+this.selectionStartLength;return d>this._bufferService.cols?[d%this._bufferService.cols,this.selectionStart[1]+Math.floor(d/this._bufferService.cols)]:[d,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}),m.prototype.areSelectionValuesReversed=function(){var p=this.selectionStart,d=this.selectionEnd;return!(!p||!d)&&(p[1]>d[1]||p[1]===d[1]&&p[0]>d[0])},m.prototype.onTrim=function(p){return this.selectionStart&&(this.selectionStart[1]-=p),this.selectionEnd&&(this.selectionEnd[1]-=p),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},m}();f.SelectionModel=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.moveToCellSequence=void 0;var A=x(12);function m(t,s,e,l){var n=t-p(e,t),o=s-p(e,s);return i(Math.abs(n-o)-function(c,h,g){for(var v=0,b=c-p(g,c),S=h-p(g,h),E=0;E<Math.abs(b-S);E++){var C=d(c,h)==="A"?-1:1,_=g.buffer.lines.get(b+C*E);_&&_.isWrapped&&v++}return v}(t,s,e),a(d(t,s),l))}function p(t,s){for(var e=0,l=t.buffer.lines.get(s),n=l&&l.isWrapped;n&&s>=0&&s<t.rows;)e++,n=(l=t.buffer.lines.get(--s))&&l.isWrapped;return e}function d(t,s){return t>s?"A":"B"}function u(t,s,e,l,n,o){for(var c=t,h=s,g="";c!==e||h!==l;)c+=n?1:-1,n&&c>o.cols-1?(g+=o.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!n&&c<0&&(g+=o.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=o.cols-1,h--);return g+o.buffer.translateBufferLineToString(h,!1,t,c)}function a(t,s){var e=s?"O":"[";return A.C0.ESC+e+t}function i(t,s){t=Math.floor(t);for(var e="",l=0;l<t;l++)e+=s;return e}f.moveToCellSequence=function(t,s,e,l){var n,o=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,v,b,S,E,C){return m(v,S,E,C).length===0?"":i(u(g,v,g,v-p(E,v),!1,E).length,a("D",C))}(o,c,0,s,e,l)+m(c,s,e,l)+function(g,v,b,S,E,C){var _;_=m(v,S,E,C).length>0?S-p(E,S):v;var T=S,w=function(O,I,k,M,U,P){var X;return X=m(k,M,U,P).length>0?M-p(U,M):I,O<k&&X<=M||O>=k&&X<M?"C":"D"}(g,v,b,S,E,C);return i(u(g,_,b,T,w==="C",E).length,a(w,C))}(o,c,t,s,e,l);if(c===s)return n=o>t?"D":"C",i(Math.abs(o-t),a(n,l));n=c>s?"D":"C";var h=Math.abs(c-s);return i(function(g,v){return v.cols-g}(c>s?t:o,e)+(h-1)*e.cols+1+((c>s?o:t)-1),a(n,l))}},function(y,f,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var s,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var n=u.length-1;n>=0;n--)(s=u[n])&&(l=(e<3?s(l):e>3?s(a,i,l):s(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(f,"__esModule",{value:!0}),f.SoundService=void 0;var p=x(1),d=function(){function u(a){this._optionsService=a}return Object.defineProperty(u,"audioContext",{get:function(){if(!u._audioContext){var i=window.AudioContext||window.webkitAudioContext;if(!i)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;u._audioContext=new i}return u._audioContext},enumerable:!1,configurable:!0}),u.prototype.playBellSound=function(){var a=u.audioContext;if(a){var i=a.createBufferSource();a.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){i.buffer=t,i.connect(a.destination),i.start(0)})}},u.prototype._base64ToArrayBuffer=function(a){for(var i=window.atob(a),t=i.length,s=new Uint8Array(t),e=0;e<t;e++)s[e]=i.charCodeAt(e);return s.buffer},u.prototype._removeMimeType=function(a){return a.split(",")[1]},u=A([m(0,p.IOptionsService)],u)}();f.SoundService=d},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)}),p=this&&this.__decorate||function(e,l,n,o){var c,h=arguments.length,g=h<3?l:o===null?o=Object.getOwnPropertyDescriptor(l,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,n,o);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(l,n,g):c(l,n))||g);return h>3&&g&&Object.defineProperty(l,n,g),g},d=this&&this.__param||function(e,l){return function(n,o){l(n,o,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseZoneManager=void 0;var u=x(2),a=x(7),i=x(5),t=x(1),s=function(e){function l(n,o,c,h,g,v){var b=e.call(this)||this;return b._element=n,b._screenElement=o,b._bufferService=c,b._mouseService=h,b._selectionService=g,b._optionsService=v,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(a.addDisposableDomListener(b._element,"mousedown",function(S){return b._onMouseDown(S)})),b._mouseMoveListener=function(S){return b._onMouseMove(S)},b._mouseLeaveListener=function(S){return b._onMouseLeave(S)},b._clickListener=function(S){return b._onClick(S)},b}return m(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(n){this._zones.push(n),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(n,o){if(this._zones.length!==0){n&&o||(n=0,o=this._bufferService.rows-1);for(var c=0;c<this._zones.length;c++){var h=this._zones[c];(h.y1>n&&h.y1<=o+1||h.y2>n&&h.y2<=o+1||h.y1<n&&h.y2>o+1)&&(this._currentZone&&this._currentZone===h&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(c--,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(n){this._lastHoverCoords[0]===n.pageX&&this._lastHoverCoords[1]===n.pageY||(this._onHover(n),this._lastHoverCoords=[n.pageX,n.pageY])},l.prototype._onHover=function(n){var o=this,c=this._findZoneEventAt(n);c!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),c&&(this._currentZone=c,c.hoverCallback&&c.hoverCallback(n),this._tooltipTimeout=window.setTimeout(function(){return o._onTooltip(n)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(n){this._tooltipTimeout=void 0;var o=this._findZoneEventAt(n);o&&o.tooltipCallback&&o.tooltipCallback(n)},l.prototype._onMouseDown=function(n){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var o=this._findZoneEventAt(n);(o==null?void 0:o.willLinkActivate(n))&&(n.preventDefault(),n.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(n){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(n){var o=this._findZoneEventAt(n),c=this._getSelectionLength();o&&c===this._initialSelectionLength&&(o.clickCallback(n),n.preventDefault(),n.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var n=this._selectionService.selectionText;return n?n.length:0},l.prototype._findZoneEventAt=function(n){var o=this._mouseService.getCoords(n,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(o)for(var c=o[0],h=o[1],g=0;g<this._zones.length;g++){var v=this._zones[g];if(v.y1===v.y2){if(h===v.y1&&c>=v.x1&&c<v.x2)return v}else if(h===v.y1&&c>=v.x1||h===v.y2&&c<v.x2||h>v.y1&&h<v.y2)return v}},l=p([d(2,t.IBufferService),d(3,i.IMouseService),d(4,i.ISelectionService),d(5,t.IOptionsService)],l)}(u.Disposable);f.MouseZoneManager=s},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(n,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var g in h)h.hasOwnProperty(g)&&(c[g]=h[g])})(n,o)},function(l,n){function o(){this.constructor=l}A(l,n),l.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)});Object.defineProperty(f,"__esModule",{value:!0}),f.AccessibilityManager=void 0;var p=x(18),d=x(11),u=x(31),a=x(7),i=x(2),t=x(32),s=x(17),e=function(l){function n(o,c){var h=l.call(this)||this;h._terminal=o,h._renderService=c,h._liveRegionLineCount=0,h._charsToConsume=[],h._charsToAnnounce="",h._accessibilityTreeRoot=document.createElement("div"),h._accessibilityTreeRoot.classList.add("xterm-accessibility"),h._rowContainer=document.createElement("div"),h._rowContainer.classList.add("xterm-accessibility-tree"),h._rowContainer.setAttribute("role","list"),h._rowElements=[];for(var g=0;g<h._terminal.rows;g++)h._rowElements[g]=h._createAccessibilityTreeNode(),h._rowContainer.appendChild(h._rowElements[g]);if(h._topBoundaryFocusListener=function(v){return h._onBoundaryFocus(v,0)},h._bottomBoundaryFocusListener=function(v){return h._onBoundaryFocus(v,1)},h._rowElements[0].addEventListener("focus",h._topBoundaryFocusListener),h._rowElements[h._rowElements.length-1].addEventListener("focus",h._bottomBoundaryFocusListener),h._refreshRowsDimensions(),h._accessibilityTreeRoot.appendChild(h._rowContainer),h._renderRowsDebouncer=new u.RenderDebouncer(h._renderRows.bind(h)),h._refreshRows(),h._liveRegion=document.createElement("div"),h._liveRegion.classList.add("live-region"),h._liveRegion.setAttribute("aria-live","assertive"),h._accessibilityTreeRoot.appendChild(h._liveRegion),!h._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return h._terminal.element.insertAdjacentElement("afterbegin",h._accessibilityTreeRoot),h.register(h._renderRowsDebouncer),h.register(h._terminal.onResize(function(v){return h._onResize(v.rows)})),h.register(h._terminal.onRender(function(v){return h._refreshRows(v.start,v.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(v){return h._onChar(v)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
`)})),h.register(h._terminal.onA11yTab(function(v){return h._onTab(v)})),h.register(h._terminal.onKey(function(v){return h._onKey(v.key)})),h.register(h._terminal.onBlur(function(){return h._clearLiveRegion()})),h.register(h._renderService.onDimensionsChange(function(){return h._refreshRowsDimensions()})),h._screenDprMonitor=new t.ScreenDprMonitor,h.register(h._screenDprMonitor),h._screenDprMonitor.setListener(function(){return h._refreshRowsDimensions()}),h.register(a.addDisposableDomListener(window,"resize",function(){return h._refreshRowsDimensions()})),h}return m(n,l),n.prototype.dispose=function(){l.prototype.dispose.call(this),s.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},n.prototype._onBoundaryFocus=function(o,c){var h=o.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&o.relatedTarget===g){var v,b;if(c===0?(v=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(v=this._rowElements.shift(),b=h,this._rowContainer.removeChild(v)),v.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(c===0?-1:1),this._rowElements[c===0?1:this._rowElements.length-2].focus(),o.preventDefault(),o.stopImmediatePropagation()}},n.prototype._onResize=function(o){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var c=this._rowContainer.children.length;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);for(;this._rowElements.length>o;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},n.prototype._createAccessibilityTreeNode=function(){var o=document.createElement("div");return o.setAttribute("role","listitem"),o.tabIndex=-1,this._refreshRowDimensions(o),o},n.prototype._onTab=function(o){for(var c=0;c<o;c++)this._onChar(" ")},n.prototype._onChar=function(o){var c=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==o&&(this._charsToAnnounce+=o):this._charsToAnnounce+=o,o===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=p.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){c._accessibilityTreeRoot.appendChild(c._liveRegion)},0))},n.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&s.removeElementFromParent(this._liveRegion)},n.prototype._onKey=function(o){this._clearLiveRegion(),this._charsToConsume.push(o)},n.prototype._refreshRows=function(o,c){this._renderRowsDebouncer.refresh(o,c,this._terminal.rows)},n.prototype._renderRows=function(o,c){for(var h=this._terminal.buffer,g=h.lines.length.toString(),v=o;v<=c;v++){var b=h.translateBufferLineToString(h.ydisp+v,!0),S=(h.ydisp+v+1).toString(),E=this._rowElements[v];E&&(b.length===0?E.innerHTML="&nbsp;":E.textContent=b,E.setAttribute("aria-posinset",S),E.setAttribute("aria-setsize",g))}this._announceCharacters()},n.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var o=0;o<this._terminal.rows;o++)this._refreshRowDimensions(this._rowElements[o])}},n.prototype._refreshRowDimensions=function(o){o.style.height=this._renderService.dimensions.actualCellHeight+"px"},n.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},n}(i.Disposable);f.AccessibilityManager=e},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var E in S)S.hasOwnProperty(E)&&(b[E]=S[E])})(g,v)},function(h,g){function v(){this.constructor=h}A(h,g),h.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),p=this&&this.__decorate||function(h,g,v,b){var S,E=arguments.length,C=E<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,v):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(h,g,v,b);else for(var _=h.length-1;_>=0;_--)(S=h[_])&&(C=(E<3?S(C):E>3?S(g,v,C):S(g,v))||C);return E>3&&C&&Object.defineProperty(g,v,C),C},d=this&&this.__param||function(h,g){return function(v,b){g(v,b,h)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DomRenderer=void 0;var u=x(58),a=x(9),i=x(2),t=x(5),s=x(1),e=x(0),l=x(10),n=x(17),o=1,c=function(h){function g(v,b,S,E,C,_,T,w,O){var I=h.call(this)||this;return I._colors=v,I._element=b,I._screenElement=S,I._viewportElement=E,I._linkifier=C,I._linkifier2=_,I._charSizeService=T,I._optionsService=w,I._bufferService=O,I._terminalClass=o++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.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},I._updateDimensions(),I._injectCss(),I._rowFactory=new u.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(k){return I._onLinkHover(k)}),I._linkifier.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I._linkifier2.onShowLinkUnderline(function(k){return I._onLinkHover(k)}),I._linkifier2.onHideLinkUnderline(function(k){return I._onLinkLeave(k)}),I}return m(g,h),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),n.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),h.prototype.dispose.call(this)},g.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 v=0,b=this._rowElements;v<b.length;v++){var S=b[v];S.style.width=this.dimensions.canvasWidth+"px",S.style.height=this.dimensions.actualCellHeight+"px",S.style.lineHeight=this.dimensions.actualCellHeight+"px",S.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(v){this._colors=v,this._injectCss()},g.prototype._injectCss=function(){var v=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var b=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";b+=this._terminalSelector+" span:not(."+u.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+u.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+u.ITALIC_CLASS+" { font-style: italic;}",b+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",b+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",b+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+":not(."+u.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_BLINK_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+u.CURSOR_CLASS+"."+u.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",b+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(S,E){b+=v._terminalSelector+" .xterm-fg-"+E+" { color: "+S.css+"; }"+v._terminalSelector+" .xterm-bg-"+E+" { background-color: "+S.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+a.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+a.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(v,b){for(var S=this._rowElements.length;S<=b;S++){var E=document.createElement("div");this._rowContainer.appendChild(E),this._rowElements.push(E)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(v,b){this._refreshRowElements(v,b),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(v,b,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(v&&b){var E=v[1]-this._bufferService.buffer.ydisp,C=b[1]-this._bufferService.buffer.ydisp,_=Math.max(E,0),T=Math.min(C,this._bufferService.rows-1);if(!(_>=this._bufferService.rows||T<0)){var w=document.createDocumentFragment();if(S)w.appendChild(this._createSelectionElement(_,v[0],b[0],T-_+1));else{var O=E===_?v[0]:0,I=_===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(_,O,I));var k=T-_-1;if(w.appendChild(this._createSelectionElement(_+1,0,this._bufferService.cols,k)),_!==T){var M=C===T?b[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,0,M))}}this._selectionContainer.appendChild(w)}}},g.prototype._createSelectionElement=function(v,b,S,E){E===void 0&&(E=1);var C=document.createElement("div");return C.style.height=E*this.dimensions.actualCellHeight+"px",C.style.top=v*this.dimensions.actualCellHeight+"px",C.style.left=b*this.dimensions.actualCellWidth+"px",C.style.width=this.dimensions.actualCellWidth*(S-b)+"px",C},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var v=0,b=this._rowElements;v<b.length;v++)b[v].innerHTML=""},g.prototype.renderRows=function(v,b){for(var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),C=this._optionsService.options.cursorBlink,_=v;_<=b;_++){var T=this._rowElements[_];T.innerHTML="";var w=_+this._bufferService.buffer.ydisp,O=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(O,w===S,I,E,C,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(g.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),g.prototype.registerCharacterJoiner=function(v){return-1},g.prototype.deregisterCharacterJoiner=function(v){return!1},g.prototype._onLinkHover=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!0)},g.prototype._onLinkLeave=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!1)},g.prototype._setCellUnderline=function(v,b,S,E,C,_){for(;v!==b||S!==E;){var T=this._rowElements[S];if(!T)return;var w=T.children[v];w&&(w.style.textDecoration=_?"underline":"none"),++v>=C&&(v=0,S++)}},g=p([d(6,t.ICharSizeService),d(7,s.IOptionsService),d(8,s.IBufferService)],g)}(i.Disposable);f.DomRenderer=c},function(y,f,x){"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 A=x(9),m=x(3),p=x(4),d=x(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 u=function(){function i(t,s,e){this._document=t,this._optionsService=s,this._colors=e,this._workCell=new p.CellData}return i.prototype.setColors=function(t){this._colors=t},i.prototype.createRow=function(t,s,e,l,n,o,c){for(var h=this._document.createDocumentFragment(),g=0,v=Math.min(t.length,c)-1;v>=0;v--)if(t.loadCell(v,this._workCell).getCode()!==m.NULL_CELL_CODE||s&&v===l){g=v+1;break}for(v=0;v<g;v++){t.loadCell(v,this._workCell);var b=this._workCell.getWidth();if(b!==0){var S=this._document.createElement("span");if(b>1&&(S.style.width=o*b+"px"),s&&v===l)switch(S.classList.add(f.CURSOR_CLASS),n&&S.classList.add(f.CURSOR_BLINK_CLASS),e){case"bar":S.classList.add(f.CURSOR_STYLE_BAR_CLASS);break;case"underline":S.classList.add(f.CURSOR_STYLE_UNDERLINE_CLASS);break;default:S.classList.add(f.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&S.classList.add(f.BOLD_CLASS),this._workCell.isItalic()&&S.classList.add(f.ITALIC_CLASS),this._workCell.isDim()&&S.classList.add(f.DIM_CLASS),this._workCell.isUnderline()&&S.classList.add(f.UNDERLINE_CLASS),this._workCell.isInvisible()?S.textContent=m.WHITESPACE_CELL_CHAR:S.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var E=this._workCell.getFgColor(),C=this._workCell.getFgColorMode(),_=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var O=E;E=_,_=O;var I=C;C=T,T=I}switch(C){case 16777216:case 33554432:this._workCell.isBold()&&E<8&&this._optionsService.options.drawBoldTextInBrightColors&&(E+=8),this._applyMinimumContrast(S,this._colors.background,this._colors.ansi[E])||S.classList.add("xterm-fg-"+E);break;case 50331648:var k=d.rgba.toColor(E>>16&255,E>>8&255,255&E);this._applyMinimumContrast(S,this._colors.background,k)||this._addStyle(S,"color:#"+a(E.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(S,this._colors.background,this._colors.foreground)||w&&S.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:S.classList.add("xterm-bg-"+_);break;case 50331648:this._addStyle(S,"background-color:#"+a(_.toString(16),"0",6));break;case 0:default:w&&S.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}h.appendChild(S)}}return h},i.prototype._applyMinimumContrast=function(t,s,e){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=d.color.ensureContrastRatio(s,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(t,"color:"+l.css),!0)},i.prototype._addStyle=function(t,s){t.setAttribute("style",""+(t.getAttribute("style")||"")+s+";")},i}();function a(i,t,s){for(;i.length<s;)i=t+i;return i}f.DomRendererRowFactory=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.evaluateKeyboardEvent=void 0;var A=x(12),m={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};f.evaluateKeyboardEvent=function(p,d,u,a){var i={type:0,cancel:!1,key:void 0},t=(p.shiftKey?1:0)|(p.altKey?2:0)|(p.ctrlKey?4:0)|(p.metaKey?8:0);switch(p.keyCode){case 0:p.key==="UIKeyInputUpArrow"?i.key=d?A.C0.ESC+"OA":A.C0.ESC+"[A":p.key==="UIKeyInputLeftArrow"?i.key=d?A.C0.ESC+"OD":A.C0.ESC+"[D":p.key==="UIKeyInputRightArrow"?i.key=d?A.C0.ESC+"OC":A.C0.ESC+"[C":p.key==="UIKeyInputDownArrow"&&(i.key=d?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(p.shiftKey){i.key=A.C0.BS;break}if(p.altKey){i.key=A.C0.ESC+A.C0.DEL;break}i.key=A.C0.DEL;break;case 9:if(p.shiftKey){i.key=A.C0.ESC+"[Z";break}i.key=A.C0.HT,i.cancel=!0;break;case 13:i.key=p.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,i.cancel=!0;break;case 27:i.key=A.C0.ESC,p.altKey&&(i.key=A.C0.ESC+A.C0.ESC),i.cancel=!0;break;case 37:if(p.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"D",i.key===A.C0.ESC+"[1;3D"&&(i.key=A.C0.ESC+(u?"b":"[1;5D"))):i.key=d?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(p.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"C",i.key===A.C0.ESC+"[1;3C"&&(i.key=A.C0.ESC+(u?"f":"[1;5C"))):i.key=d?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(p.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"A",u||i.key!==A.C0.ESC+"[1;3A"||(i.key=A.C0.ESC+"[1;5A")):i.key=d?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(p.metaKey)break;t?(i.key=A.C0.ESC+"[1;"+(t+1)+"B",u||i.key!==A.C0.ESC+"[1;3B"||(i.key=A.C0.ESC+"[1;5B")):i.key=d?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:p.shiftKey||p.ctrlKey||(i.key=A.C0.ESC+"[2~");break;case 46:i.key=t?A.C0.ESC+"[3;"+(t+1)+"~":A.C0.ESC+"[3~";break;case 36:i.key=t?A.C0.ESC+"[1;"+(t+1)+"H":d?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:i.key=t?A.C0.ESC+"[1;"+(t+1)+"F":d?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:p.shiftKey?i.type=2:i.key=A.C0.ESC+"[5~";break;case 34:p.shiftKey?i.type=3:i.key=A.C0.ESC+"[6~";break;case 112:i.key=t?A.C0.ESC+"[1;"+(t+1)+"P":A.C0.ESC+"OP";break;case 113:i.key=t?A.C0.ESC+"[1;"+(t+1)+"Q":A.C0.ESC+"OQ";break;case 114:i.key=t?A.C0.ESC+"[1;"+(t+1)+"R":A.C0.ESC+"OR";break;case 115:i.key=t?A.C0.ESC+"[1;"+(t+1)+"S":A.C0.ESC+"OS";break;case 116:i.key=t?A.C0.ESC+"[15;"+(t+1)+"~":A.C0.ESC+"[15~";break;case 117:i.key=t?A.C0.ESC+"[17;"+(t+1)+"~":A.C0.ESC+"[17~";break;case 118:i.key=t?A.C0.ESC+"[18;"+(t+1)+"~":A.C0.ESC+"[18~";break;case 119:i.key=t?A.C0.ESC+"[19;"+(t+1)+"~":A.C0.ESC+"[19~";break;case 120:i.key=t?A.C0.ESC+"[20;"+(t+1)+"~":A.C0.ESC+"[20~";break;case 121:i.key=t?A.C0.ESC+"[21;"+(t+1)+"~":A.C0.ESC+"[21~";break;case 122:i.key=t?A.C0.ESC+"[23;"+(t+1)+"~":A.C0.ESC+"[23~";break;case 123:i.key=t?A.C0.ESC+"[24;"+(t+1)+"~":A.C0.ESC+"[24~";break;default:if(!p.ctrlKey||p.shiftKey||p.altKey||p.metaKey)if(u&&!a||!p.altKey||p.metaKey)u&&!p.altKey&&!p.ctrlKey&&p.metaKey?p.keyCode===65&&(i.type=1):p.key&&!p.ctrlKey&&!p.altKey&&!p.metaKey&&p.keyCode>=48&&p.key.length===1?i.key=p.key:p.key&&p.ctrlKey&&p.key==="_"&&(i.key=A.C0.US);else{var s=m[p.keyCode],e=s&&s[p.shiftKey?1:0];if(e)i.key=A.C0.ESC+e;else if(p.keyCode>=65&&p.keyCode<=90){var l=p.ctrlKey?p.keyCode-64:p.keyCode+32;i.key=A.C0.ESC+String.fromCharCode(l)}}else p.keyCode>=65&&p.keyCode<=90?i.key=String.fromCharCode(p.keyCode-64):p.keyCode===32?i.key=A.C0.NUL:p.keyCode>=51&&p.keyCode<=55?i.key=String.fromCharCode(p.keyCode-51+27):p.keyCode===56?i.key=A.C0.DEL:p.keyCode===219?i.key=A.C0.ESC:p.keyCode===220?i.key=A.C0.FS:p.keyCode===221&&(i.key=A.C0.GS)}return i}},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(c,h){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var b in v)v.hasOwnProperty(b)&&(g[b]=v[b])})(c,h)},function(o,c){function h(){this.constructor=o}A(o,c),o.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),p=this&&this.__decorate||function(o,c,h,g){var v,b=arguments.length,S=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(o,c,h,g);else for(var E=o.length-1;E>=0;E--)(v=o[E])&&(S=(b<3?v(S):b>3?v(c,h,S):v(c,h))||S);return b>3&&S&&Object.defineProperty(c,h,S),S},d=this&&this.__param||function(o,c){return function(h,g){c(h,g,o)}};Object.defineProperty(f,"__esModule",{value:!0}),f.RenderService=void 0;var u=x(31),a=x(0),i=x(2),t=x(32),s=x(7),e=x(1),l=x(5),n=function(o){function c(h,g,v,b,S,E){var C=o.call(this)||this;if(C._renderer=h,C._rowCount=g,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new a.EventEmitter,C._onRender=new a.EventEmitter,C._onRefreshRequest=new a.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new u.RenderDebouncer(function(T,w){return C._renderRows(T,w)}),C.register(C._renderDebouncer),C._screenDprMonitor=new t.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(E.onResize(function(T){return C._fullRefresh()})),C.register(b.onOptionChange(function(){return C._renderer.onOptionsChanged()})),C.register(S.onCharSizeChange(function(){return C.onCharSizeChanged()})),C._renderer.onRequestRedraw(function(T){return C.refreshRows(T.start,T.end,!0)}),C.register(s.addDisposableDomListener(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var _=new IntersectionObserver(function(T){return C._onIntersectionChange(T[T.length-1])},{threshold:0});_.observe(v),C.register({dispose:function(){return _.disconnect()}})}return C}return m(c,o),Object.defineProperty(c.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),c.prototype._onIntersectionChange=function(h){this._isPaused=h.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},c.prototype.refreshRows=function(h,g,v){v===void 0&&(v=!1),this._isPaused?this._needsFullRefresh=!0:(v||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(h,g,this._rowCount))},c.prototype._renderRows=function(h,g){this._renderer.renderRows(h,g),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:h,end:g}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(h,g){this._rowCount=g,this._fireOnCanvasResize()},c.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},c.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},c.prototype.dispose=function(){o.prototype.dispose.call(this)},c.prototype.setRenderer=function(h){var g=this;this._renderer.dispose(),this._renderer=h,this._renderer.onRequestRedraw(function(v){return g.refreshRows(v.start,v.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},c.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},c.prototype.setColors=function(h){this._renderer.setColors(h),this._fullRefresh()},c.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},c.prototype.onResize=function(h,g){this._renderer.onResize(h,g),this._fullRefresh()},c.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},c.prototype.onBlur=function(){this._renderer.onBlur()},c.prototype.onFocus=function(){this._renderer.onFocus()},c.prototype.onSelectionChanged=function(h,g,v){this._selectionState.start=h,this._selectionState.end=g,this._selectionState.columnSelectMode=v,this._renderer.onSelectionChanged(h,g,v)},c.prototype.onCursorMove=function(){this._renderer.onCursorMove()},c.prototype.clear=function(){this._renderer.clear()},c.prototype.registerCharacterJoiner=function(h){return this._renderer.registerCharacterJoiner(h)},c.prototype.deregisterCharacterJoiner=function(h){return this._renderer.deregisterCharacterJoiner(h)},c=p([d(3,e.IOptionsService),d(4,l.ICharSizeService),d(5,e.IBufferService)],c)}(i.Disposable);f.RenderService=n},function(y,f,x){"use strict";var A=this&&this.__decorate||function(i,t,s,e){var l,n=arguments.length,o=n<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,s,e);else for(var c=i.length-1;c>=0;c--)(l=i[c])&&(o=(n<3?l(o):n>3?l(t,s,o):l(t,s))||o);return n>3&&o&&Object.defineProperty(t,s,o),o},m=this&&this.__param||function(i,t){return function(s,e){t(s,e,i)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CharSizeService=void 0;var p=x(1),d=x(0),u=function(){function i(t,s,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new a(t,s,this._optionsService)}return Object.defineProperty(i.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),i.prototype.measure=function(){var t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())},i=A([m(2,p.IOptionsService)],i)}();f.CharSizeService=u;var a=function(){function i(t,s,e){this._document=t,this._parentElement=s,this._optionsService=e,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 i.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._measureElement.getBoundingClientRect();return t.width!==0&&t.height!==0&&(this._result.width=t.width,this._result.height=Math.ceil(t.height)),this._result},i}()},function(y,f,x){"use strict";var A=this&&this.__decorate||function(a,i,t,s){var e,l=arguments.length,n=l<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,t):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(a,i,t,s);else for(var o=a.length-1;o>=0;o--)(e=a[o])&&(n=(l<3?e(n):l>3?e(i,t,n):e(i,t))||n);return l>3&&n&&Object.defineProperty(i,t,n),n},m=this&&this.__param||function(a,i){return function(t,s){i(t,s,a)}};Object.defineProperty(f,"__esModule",{value:!0}),f.MouseService=void 0;var p=x(5),d=x(30),u=function(){function a(i,t){this._renderService=i,this._charSizeService=t}return a.prototype.getCoords=function(i,t,s,e,l){return d.getCoords(i,t,s,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},a.prototype.getRawByteCoords=function(i,t,s,e){var l=this.getCoords(i,t,s,e);return d.getRawByteCoords(l)},a=A([m(0,p.IRenderService),m(1,p.ICharSizeService)],a)}();f.MouseService=u},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)}),p=this&&this.__decorate||function(e,l,n,o){var c,h=arguments.length,g=h<3?l:o===null?o=Object.getOwnPropertyDescriptor(l,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,n,o);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(l,n,g):c(l,n))||g);return h>3&&g&&Object.defineProperty(l,n,g),g},d=this&&this.__param||function(e,l){return function(n,o){l(n,o,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.Linkifier2=void 0;var u=x(1),a=x(0),i=x(2),t=x(7),s=function(e){function l(n){var o=e.call(this)||this;return o._bufferService=n,o._linkProviders=[],o._linkCacheDisposables=[],o._isMouseOut=!0,o._activeLine=-1,o._onShowLinkUnderline=o.register(new a.EventEmitter),o._onHideLinkUnderline=o.register(new a.EventEmitter),o.register(i.getDisposeArrayDisposable(o._linkCacheDisposables)),o}return m(l,e),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(n){var o=this;return this._linkProviders.push(n),{dispose:function(){var h=o._linkProviders.indexOf(n);h!==-1&&o._linkProviders.splice(h,1)}}},l.prototype.attachToDom=function(n,o,c){var h=this;this._element=n,this._mouseService=o,this._renderService=c,this.register(t.addDisposableDomListener(this._element,"mouseleave",function(){h._isMouseOut=!0,h._clearCurrentLink()})),this.register(t.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(t.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(n){if(this._lastMouseEvent=n,this._element&&this._mouseService){var o=this._positionFromMouseEvent(n,this._element,this._mouseService);if(o){this._isMouseOut=!1;for(var c=n.composedPath(),h=0;h<c.length;h++){var g=c[h];if(g.classList.contains("xterm"))break;if(g.classList.contains("xterm-hover"))return}this._lastBufferCell&&o.x===this._lastBufferCell.x&&o.y===this._lastBufferCell.y||(this._onHover(o),this._lastBufferCell=o)}}},l.prototype._onHover=function(n){if(this._activeLine!==n.y)return this._clearCurrentLink(),void this._askForLink(n,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,n)||(this._clearCurrentLink(),this._askForLink(n,!0))},l.prototype._askForLink=function(n,o){var c=this;this._activeProviderReplies&&o||(this._activeProviderReplies=new Map,this._activeLine=n.y);var h=!1;this._linkProviders.forEach(function(g,v){var b;o?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(v))&&(h=c._checkLinkProviderResult(v,n,h)):g.provideLinks(n.y,function(S){var E,C;if(!c._isMouseOut){var _=S==null?void 0:S.map(function(T){return{link:T}});(E=c._activeProviderReplies)===null||E===void 0||E.set(v,_),h=c._checkLinkProviderResult(v,n,h),((C=c._activeProviderReplies)===null||C===void 0?void 0:C.size)===c._linkProviders.length&&c._removeIntersectingLinks(n.y,c._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(n,o){for(var c=new Set,h=0;h<o.size;h++){var g=o.get(h);if(g)for(var v=0;v<g.length;v++)for(var b=g[v],S=b.link.range.start.y<n?0:b.link.range.start.x,E=b.link.range.end.y>n?this._bufferService.cols:b.link.range.end.x,C=S;C<=E;C++){if(c.has(C)){g.splice(v--,1);break}c.add(C)}}},l.prototype._checkLinkProviderResult=function(n,o,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var v=this._activeProviderReplies.get(n),b=!1,S=0;S<n;S++)this._activeProviderReplies.has(S)&&!this._activeProviderReplies.get(S)||(b=!0);if(!b&&v){var E=v.find(function(_){return g._linkAtPosition(_.link,o)});E&&(c=!0,this._handleNewLink(E))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(S=0;S<this._activeProviderReplies.size;S++){var C=(h=this._activeProviderReplies.get(S))===null||h===void 0?void 0:h.find(function(_){return g._linkAtPosition(_.link,o)});if(C){c=!0,this._handleNewLink(C);break}}return c},l.prototype._onClick=function(n){if(this._element&&this._mouseService&&this._currentLink){var o=this._positionFromMouseEvent(n,this._element,this._mouseService);o&&this._linkAtPosition(this._currentLink.link,o)&&this._currentLink.link.activate(n,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(n,o){this._element&&this._currentLink&&this._lastMouseEvent&&(!n||!o||this._currentLink.link.range.start.y>=n&&this._currentLink.link.range.end.y<=o)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,i.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(n){var o=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._linkAtPosition(n.link,c)&&(this._currentLink=n,this._currentLink.state={decorations:{underline:n.link.decorations===void 0||n.link.decorations.underline,pointerCursor:n.link.decorations===void 0||n.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,n.link,this._lastMouseEvent),n.link.decorations={},Object.defineProperties(n.link.decorations,{pointerCursor:{get:function(){var g,v;return(v=(g=o._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.pointerCursor},set:function(g){var v,b;((v=o._currentLink)===null||v===void 0?void 0:v.state)&&o._currentLink.state.decorations.pointerCursor!==g&&(o._currentLink.state.decorations.pointerCursor=g,o._currentLink.state.isHovered&&((b=o._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,v;return(v=(g=o._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.underline},set:function(g){var v,b,S;((v=o._currentLink)===null||v===void 0?void 0:v.state)&&((S=(b=o._currentLink)===null||b===void 0?void 0:b.state)===null||S===void 0?void 0:S.decorations.underline)!==g&&(o._currentLink.state.decorations.underline=g,o._currentLink.state.isHovered&&o._fireUnderlineEvent(n.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var g=h.start===0?0:h.start+1+o._bufferService.buffer.ydisp;o._clearCurrentLink(g,h.end+1+o._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(n,o,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!0),this._currentLink.state.decorations.pointerCursor&&n.classList.add("xterm-cursor-pointer")),o.hover&&o.hover(c,o.text)},l.prototype._fireUnderlineEvent=function(n,o){var c=n.range,h=this._bufferService.buffer.ydisp,g=this._createLinkUnderlineEvent(c.start.x-1,c.start.y-h-1,c.end.x,c.end.y-h-1,void 0);(o?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(g)},l.prototype._linkLeave=function(n,o,c){var h;((h=this._currentLink)===null||h===void 0?void 0:h.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!1),this._currentLink.state.decorations.pointerCursor&&n.classList.remove("xterm-cursor-pointer")),o.leave&&o.leave(c,o.text)},l.prototype._linkAtPosition=function(n,o){var c=n.range.start.y===n.range.end.y,h=n.range.start.y<o.y,g=n.range.end.y>o.y;return(c&&n.range.start.x<=o.x&&n.range.end.x>=o.x||h&&n.range.end.x>=o.x||g&&n.range.start.x<=o.x||h&&g)&&n.range.start.y<=o.y&&n.range.end.y>=o.y},l.prototype._positionFromMouseEvent=function(n,o,c){var h=c.getCoords(n,o,this._bufferService.cols,this._bufferService.rows);if(h)return{x:h[0],y:h[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(n,o,c,h,g){return{x1:n,y1:o,x2:c,y2:h,cols:this._bufferService.cols,fg:g}},l=p([d(0,u.IBufferService)],l)}(i.Disposable);f.Linkifier2=s},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CoreBrowserService=void 0;var A=function(){function m(p){this._textarea=p}return Object.defineProperty(m.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),m}();f.CoreBrowserService=A},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(E,C){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,T){_.__proto__=T}||function(_,T){for(var w in T)T.hasOwnProperty(w)&&(_[w]=T[w])})(E,C)},function(S,E){function C(){this.constructor=S}A(S,E),S.prototype=E===null?Object.create(E):(C.prototype=E.prototype,new C)});Object.defineProperty(f,"__esModule",{value:!0}),f.CoreTerminal=void 0;var p=x(2),d=x(1),u=x(66),a=x(67),i=x(68),t=x(74),s=x(75),e=x(0),l=x(76),n=x(77),o=x(78),c=x(80),h=x(81),g=x(19),v=x(82),b=function(S){function E(C){var _=S.call(this)||this;return _._onBinary=new e.EventEmitter,_._onData=new e.EventEmitter,_._onLineFeed=new e.EventEmitter,_._onResize=new e.EventEmitter,_._onScroll=new e.EventEmitter,_._instantiationService=new u.InstantiationService,_.optionsService=new t.OptionsService(C),_._instantiationService.setService(d.IOptionsService,_.optionsService),_._bufferService=_.register(_._instantiationService.createInstance(i.BufferService)),_._instantiationService.setService(d.IBufferService,_._bufferService),_._logService=_._instantiationService.createInstance(a.LogService),_._instantiationService.setService(d.ILogService,_._logService),_._coreService=_.register(_._instantiationService.createInstance(s.CoreService,function(){return _.scrollToBottom()})),_._instantiationService.setService(d.ICoreService,_._coreService),_._coreMouseService=_._instantiationService.createInstance(l.CoreMouseService),_._instantiationService.setService(d.ICoreMouseService,_._coreMouseService),_._dirtyRowService=_._instantiationService.createInstance(n.DirtyRowService),_._instantiationService.setService(d.IDirtyRowService,_._dirtyRowService),_.unicodeService=_._instantiationService.createInstance(o.UnicodeService),_._instantiationService.setService(d.IUnicodeService,_.unicodeService),_._charsetService=_._instantiationService.createInstance(c.CharsetService),_._instantiationService.setService(d.ICharsetService,_._charsetService),_._inputHandler=new g.InputHandler(_._bufferService,_._charsetService,_._coreService,_._dirtyRowService,_._logService,_.optionsService,_._coreMouseService,_.unicodeService),_.register(e.forwardEvent(_._inputHandler.onLineFeed,_._onLineFeed)),_.register(_._inputHandler),_.register(e.forwardEvent(_._bufferService.onResize,_._onResize)),_.register(e.forwardEvent(_._coreService.onData,_._onData)),_.register(e.forwardEvent(_._coreService.onBinary,_._onBinary)),_.register(_.optionsService.onOptionChange(function(T){return _._updateOptions(T)})),_._writeBuffer=new v.WriteBuffer(function(T){return _._inputHandler.parse(T)}),_}return m(E,S),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){var C;this._isDisposed||(S.prototype.dispose.call(this),(C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)},E.prototype.write=function(C,_){this._writeBuffer.write(C,_)},E.prototype.writeSync=function(C){this._writeBuffer.writeSync(C)},E.prototype.resize=function(C,_){isNaN(C)||isNaN(_)||(C=Math.max(C,i.MINIMUM_COLS),_=Math.max(_,i.MINIMUM_ROWS),this._bufferService.resize(C,_))},E.prototype.scroll=function(C,_){_===void 0&&(_=!1);var T,w=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===C.fg&&T.getBg(0)===C.bg||(T=w.getBlankLine(C,_),this._cachedBlankLine=T),T.isWrapped=_;var O=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var k=w.lines.isFull;I===w.lines.length-1?k?w.lines.recycle().copyFrom(T):w.lines.push(T.clone()):w.lines.splice(I+1,0,T.clone()),k?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var M=I-O+1;w.lines.shiftElements(O+1,M-1,-1),w.lines.set(I,T.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},E.prototype.scrollLines=function(C,_){var T=this._bufferService.buffer;if(C<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else C+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var w=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+C,T.ybase),0),w!==T.ydisp&&(_||this._onScroll.fire(T.ydisp))},E.prototype.scrollPages=function(C){this.scrollLines(C*(this.rows-1))},E.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},E.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},E.prototype.scrollToLine=function(C){var _=C-this._bufferService.buffer.ydisp;_!==0&&this.scrollLines(_)},E.prototype.addEscHandler=function(C,_){return this._inputHandler.addEscHandler(C,_)},E.prototype.addDcsHandler=function(C,_){return this._inputHandler.addDcsHandler(C,_)},E.prototype.addCsiHandler=function(C,_){return this._inputHandler.addCsiHandler(C,_)},E.prototype.addOscHandler=function(C,_){return this._inputHandler.addOscHandler(C,_)},E.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},E.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},E.prototype._updateOptions=function(C){var _;switch(C){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((_=this._windowsMode)===null||_===void 0||_.dispose(),this._windowsMode=void 0)}},E.prototype._enableWindowsMode=function(){var C=this;if(!this._windowsMode){var _=[];_.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),_.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(C._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,O=_;w<O.length;w++)O[w].dispose()}}}},E}(p.Disposable);f.CoreTerminal=b},function(y,f,x){"use strict";var A=this&&this.__spreadArrays||function(){for(var a=0,i=0,t=arguments.length;i<t;i++)a+=arguments[i].length;var s=Array(a),e=0;for(i=0;i<t;i++)for(var l=arguments[i],n=0,o=l.length;n<o;n++,e++)s[e]=l[n];return s};Object.defineProperty(f,"__esModule",{value:!0}),f.InstantiationService=f.ServiceCollection=void 0;var m=x(1),p=x(14),d=function(){function a(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];this._entries=new Map;for(var s=0,e=i;s<e.length;s++){var l=e[s],n=l[0],o=l[1];this.set(n,o)}}return a.prototype.set=function(i,t){var s=this._entries.get(i);return this._entries.set(i,t),s},a.prototype.forEach=function(i){this._entries.forEach(function(t,s){return i(s,t)})},a.prototype.has=function(i){return this._entries.has(i)},a.prototype.get=function(i){return this._entries.get(i)},a}();f.ServiceCollection=d;var u=function(){function a(){this._services=new d,this._services.set(m.IInstantiationService,this)}return a.prototype.setService=function(i,t){this._services.set(i,t)},a.prototype.getService=function(i){return this._services.get(i)},a.prototype.createInstance=function(i){for(var t=[],s=1;s<arguments.length;s++)t[s-1]=arguments[s];for(var e=p.getServiceDependencies(i).sort(function(v,b){return v.index-b.index}),l=[],n=0,o=e;n<o.length;n++){var c=o[n],h=this._services.get(c.id);if(!h)throw new Error("[createInstance] "+i.name+" depends on UNKNOWN service "+c.id+".");l.push(h)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+i.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(i.bind.apply(i,A([void 0],A(t,l))))},a}();f.InstantiationService=u},function(y,f,x){"use strict";var A=this&&this.__decorate||function(t,s,e,l){var n,o=arguments.length,c=o<3?s:l===null?l=Object.getOwnPropertyDescriptor(s,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,s,e,l);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(c=(o<3?n(c):o>3?n(s,e,c):n(s,e))||c);return o>3&&c&&Object.defineProperty(s,e,c),c},m=this&&this.__param||function(t,s){return function(e,l){s(e,l,t)}},p=this&&this.__spreadArrays||function(){for(var t=0,s=0,e=arguments.length;s<e;s++)t+=arguments[s].length;var l=Array(t),n=0;for(s=0;s<e;s++)for(var o=arguments[s],c=0,h=o.length;c<h;c++,n++)l[n]=o[c];return l};Object.defineProperty(f,"__esModule",{value:!0}),f.LogService=f.LogLevel=void 0;var d,u=x(1);!function(t){t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARN=2]="WARN",t[t.ERROR=3]="ERROR",t[t.OFF=4]="OFF"}(d=f.LogLevel||(f.LogLevel={}));var a={debug:d.DEBUG,info:d.INFO,warn:d.WARN,error:d.ERROR,off:d.OFF},i=function(){function t(s){var e=this;this._optionsService=s,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=a[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(s){for(var e=0;e<s.length;e++)typeof s[e]=="function"&&(s[e]=s[e]())},t.prototype._log=function(s,e,l){this._evalLazyOptionalParams(l),s.call.apply(s,p([console,"xterm.js: "+e],l))},t.prototype.debug=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.DEBUG&&this._log(console.log,s,e)},t.prototype.info=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.INFO&&this._log(console.info,s,e)},t.prototype.warn=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.WARN&&this._log(console.warn,s,e)},t.prototype.error=function(s){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=d.ERROR&&this._log(console.error,s,e)},t=A([m(0,u.IOptionsService)],t)}();f.LogService=i},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(l,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var h in c)c.hasOwnProperty(h)&&(o[h]=c[h])})(l,n)},function(e,l){function n(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)}),p=this&&this.__decorate||function(e,l,n,o){var c,h=arguments.length,g=h<3?l:o===null?o=Object.getOwnPropertyDescriptor(l,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,n,o);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(l,n,g):c(l,n))||g);return h>3&&g&&Object.defineProperty(l,n,g),g},d=this&&this.__param||function(e,l){return function(n,o){l(n,o,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.BufferService=f.MINIMUM_ROWS=f.MINIMUM_COLS=void 0;var u=x(1),a=x(69),i=x(0),t=x(2);f.MINIMUM_COLS=2,f.MINIMUM_ROWS=1;var s=function(e){function l(n){var o=e.call(this)||this;return o._optionsService=n,o.isUserScrolling=!1,o._onResize=new i.EventEmitter,o.cols=Math.max(n.options.cols,f.MINIMUM_COLS),o.rows=Math.max(n.options.rows,f.MINIMUM_ROWS),o.buffers=new a.BufferSet(n,o),o}return m(l,e),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(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(n,o){this.cols=n,this.rows=o,this.buffers.resize(n,o),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:n,rows:o})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new a.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=p([d(0,u.IOptionsService)],l)}(t.Disposable);f.BufferService=s},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(i,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,e){s.__proto__=e}||function(s,e){for(var l in e)e.hasOwnProperty(l)&&(s[l]=e[l])})(i,t)},function(a,i){function t(){this.constructor=a}A(a,i),a.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)});Object.defineProperty(f,"__esModule",{value:!0}),f.BufferSet=void 0;var p=x(70),d=x(0),u=function(a){function i(t,s){var e=a.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new p.Buffer(!0,t,s),e._normal.fillViewportRows(),e._alt=new p.Buffer(!1,t,s),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(i,a),Object.defineProperty(i.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),i.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}))},i.prototype.activateAltBuffer=function(t){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(t),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}))},i.prototype.resize=function(t,s){this._normal.resize(t,s),this._alt.resize(t,s)},i.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},i}(x(2).Disposable);f.BufferSet=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.BufferStringIterator=f.Buffer=f.MAX_BUFFER_SIZE=void 0;var A=x(71),m=x(16),p=x(4),d=x(3),u=x(72),a=x(73),i=x(20),t=x(6);f.MAX_BUFFER_SIZE=4294967295;var s=function(){function l(n,o,c){this._hasScrollback=n,this._optionsService=o,this._bufferService=c,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=m.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=p.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]),this._whitespaceCell=p.CellData.fromCharData([0,d.WHITESPACE_CELL_CHAR,d.WHITESPACE_CELL_WIDTH,d.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(n){return n?(this._nullCell.fg=n.fg,this._nullCell.bg=n.bg,this._nullCell.extended=n.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new t.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(n){return n?(this._whitespaceCell.fg=n.fg,this._whitespaceCell.bg=n.bg,this._whitespaceCell.extended=n.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new t.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(n,o){return new m.BufferLine(this._bufferService.cols,this.getNullCell(n),o)},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 o=this.ybase+this.y-this.ydisp;return o>=0&&o<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(n){if(!this._hasScrollback)return n;var o=n+this._optionsService.options.scrollback;return o>f.MAX_BUFFER_SIZE?f.MAX_BUFFER_SIZE:o},l.prototype.fillViewportRows=function(n){if(this.lines.length===0){n===void 0&&(n=m.DEFAULT_ATTR_DATA);for(var o=this._rows;o--;)this.lines.push(this.getBlankLine(n))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(n,o){var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=this._getCorrectBufferLength(o);if(h>this.lines.maxLength&&(this.lines.maxLength=h),this.lines.length>0){if(this._cols<n)for(var g=0;g<this.lines.length;g++)this.lines.get(g).resize(n,c);var v=0;if(this._rows<o)for(var b=this._rows;b<o;b++)this.lines.length<o+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new m.BufferLine(n,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+v+1?(this.ybase--,v++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.BufferLine(n,c)));else for(b=this._rows;b>o;b--)this.lines.length>o+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(h<this.lines.maxLength){var S=this.lines.length-h;S>0&&(this.lines.trimStart(S),this.ybase=Math.max(this.ybase-S,0),this.ydisp=Math.max(this.ydisp-S,0),this.savedY=Math.max(this.savedY-S,0)),this.lines.maxLength=h}this.x=Math.min(this.x,n-1),this.y=Math.min(this.y,o-1),v&&(this.y+=v),this.savedX=Math.min(this.savedX,n-1),this.scrollTop=0}if(this.scrollBottom=o-1,this._isReflowEnabled&&(this._reflow(n,o),this._cols>n))for(g=0;g<this.lines.length;g++)this.lines.get(g).resize(n,c);this._cols=n,this._rows=o},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(n,o){this._cols!==n&&(n>this._cols?this._reflowLarger(n,o):this._reflowSmaller(n,o))},l.prototype._reflowLarger=function(n,o){var c=u.reflowLargerGetLinesToRemove(this.lines,this._cols,n,this.ybase+this.y,this.getNullCell(m.DEFAULT_ATTR_DATA));if(c.length>0){var h=u.reflowLargerCreateNewLayout(this.lines,c);u.reflowLargerApplyNewLayout(this.lines,h.layout),this._reflowLargerAdjustViewport(n,o,h.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(n,o,c){for(var h=this.getNullCell(m.DEFAULT_ATTR_DATA),g=c;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<o&&this.lines.push(new m.BufferLine(n,h))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-c,0)},l.prototype._reflowSmaller=function(n,o){for(var c=this.getNullCell(m.DEFAULT_ATTR_DATA),h=[],g=0,v=this.lines.length-1;v>=0;v--){var b=this.lines.get(v);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=n)){for(var S=[b];b.isWrapped&&v>0;)b=this.lines.get(--v),S.unshift(b);var E=this.ybase+this.y;if(!(E>=v&&E<v+S.length)){var C=S[S.length-1].getTrimmedLength(),_=u.reflowSmallerGetNewLineLengths(S,this._cols,n),T=_.length-S.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var O=[],I=0;I<T;I++){var k=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);O.push(k)}O.length>0&&(h.push({start:v+S.length+g,newLines:O}),g+=O.length),S.push.apply(S,O);var M=_.length-1,U=_[M];U===0&&(U=_[--M]);for(var P=S.length-T-1,X=C;P>=0;){var F=Math.min(X,U);if(S[M].copyCellsFrom(S[P],X-F,U-F,F,!0),(U-=F)===0&&(U=_[--M]),(X-=F)===0){P--;var j=Math.max(P,0);X=u.getWrappedLineTrimmedLength(S,j,this._cols)}}for(I=0;I<S.length;I++)_[I]<n&&S[I].setCell(_[I],c);for(var K=T-w;K-- >0;)this.ybase===0?this.y<o-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+g)-o&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+o-1)}}}if(h.length>0){var z=[],V=[];for(I=0;I<this.lines.length;I++)V.push(this.lines.get(I));var Q=this.lines.length,G=Q-1,ee=0,se=h[ee];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var ye=0;for(I=Math.min(this.lines.maxLength-1,Q+g-1);I>=0;I--)if(se&&se.start>G+ye){for(var he=se.newLines.length-1;he>=0;he--)this.lines.set(I--,se.newLines[he]);I++,z.push({index:G+1,amount:se.newLines.length}),ye+=se.newLines.length,se=h[++ee]}else this.lines.set(I,V[G--]);var ke=0;for(I=z.length-1;I>=0;I--)z[I].index+=ke,this.lines.onInsertEmitter.fire(z[I]),ke+=z[I].amount;var Pe=Math.max(0,Q+g-this.lines.maxLength);Pe>0&&this.lines.onTrimEmitter.fire(Pe)}},l.prototype.stringIndexToBufferIndex=function(n,o,c){for(c===void 0&&(c=!1);o;){var h=this.lines.get(n);if(!h)return[-1,-1];for(var g=c?h.getTrimmedLength():h.length,v=0;v<g;++v)if(h.get(v)[d.CHAR_DATA_WIDTH_INDEX]&&(o-=h.get(v)[d.CHAR_DATA_CHAR_INDEX].length||1),o<0)return[n,v];n++}return[n,0]},l.prototype.translateBufferLineToString=function(n,o,c,h){c===void 0&&(c=0);var g=this.lines.get(n);return g?g.translateToString(o,c,h):""},l.prototype.getWrappedRangeForLine=function(n){for(var o=n,c=n;o>0&&this.lines.get(o).isWrapped;)o--;for(;c+1<this.lines.length&&this.lines.get(c+1).isWrapped;)c++;return{first:o,last:c}},l.prototype.setupTabStops=function(n){for(n!=null?this.tabs[n]||(n=this.prevStop(n)):(this.tabs={},n=0);n<this._cols;n+=this._optionsService.options.tabStopWidth)this.tabs[n]=!0},l.prototype.prevStop=function(n){for(n==null&&(n=this.x);!this.tabs[--n]&&n>0;);return n>=this._cols?this._cols-1:n<0?0:n},l.prototype.nextStop=function(n){for(n==null&&(n=this.x);!this.tabs[++n]&&n<this._cols;);return n>=this._cols?this._cols-1:n<0?0:n},l.prototype.addMarker=function(n){var o=this,c=new a.Marker(n);return this.markers.push(c),c.register(this.lines.onTrim(function(h){c.line-=h,c.line<0&&c.dispose()})),c.register(this.lines.onInsert(function(h){c.line>=h.index&&(c.line+=h.amount)})),c.register(this.lines.onDelete(function(h){c.line>=h.index&&c.line<h.index+h.amount&&c.dispose(),c.line>h.index&&(c.line-=h.amount)})),c.register(c.onDispose(function(){return o._removeMarker(c)})),c},l.prototype._removeMarker=function(n){this.markers.splice(this.markers.indexOf(n),1)},l.prototype.iterator=function(n,o,c,h,g){return new e(this,n,o,c,h,g)},l}();f.Buffer=s;var e=function(){function l(n,o,c,h,g,v){c===void 0&&(c=0),h===void 0&&(h=n.lines.length),g===void 0&&(g=0),v===void 0&&(v=0),this._buffer=n,this._trimRight=o,this._startIndex=c,this._endIndex=h,this._startOverscan=g,this._endOverscan=v,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._current<this._endIndex},l.prototype.next=function(){var n=this._buffer.getWrappedRangeForLine(this._current);n.first<this._startIndex-this._startOverscan&&(n.first=this._startIndex-this._startOverscan),n.last>this._endIndex+this._endOverscan&&(n.last=this._endIndex+this._endOverscan),n.first=Math.max(n.first,0),n.last=Math.min(n.last,this._buffer.lines.length);for(var o="",c=n.first;c<=n.last;++c)o+=this._buffer.translateBufferLineToString(c,this._trimRight);return this._current=n.last+1,{range:n,content:o}},l}();f.BufferStringIterator=e},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CircularList=void 0;var A=x(0),m=function(){function p(d){this._maxLength=d,this.onDeleteEmitter=new A.EventEmitter,this.onInsertEmitter=new A.EventEmitter,this.onTrimEmitter=new A.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(p.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"maxLength",{get:function(){return this._maxLength},set:function(u){if(this._maxLength!==u){for(var a=new Array(u),i=0;i<Math.min(u,this.length);i++)a[i]=this._array[this._getCyclicIndex(i)];this._array=a,this._maxLength=u,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"length",{get:function(){return this._length},set:function(u){if(u>this._length)for(var a=this._length;a<u;a++)this._array[a]=void 0;this._length=u},enumerable:!1,configurable:!0}),p.prototype.get=function(d){return this._array[this._getCyclicIndex(d)]},p.prototype.set=function(d,u){this._array[this._getCyclicIndex(d)]=u},p.prototype.push=function(d){this._array[this._getCyclicIndex(this._length)]=d,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},p.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(p.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),p.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},p.prototype.splice=function(d,u){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];if(u){for(var t=d;t<this._length-u;t++)this._array[this._getCyclicIndex(t)]=this._array[this._getCyclicIndex(t+u)];this._length-=u}for(t=this._length-1;t>=d;t--)this._array[this._getCyclicIndex(t+a.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<a.length;t++)this._array[this._getCyclicIndex(d+t)]=a[t];if(this._length+a.length>this._maxLength){var s=this._length+a.length-this._maxLength;this._startIndex+=s,this._length=this._maxLength,this.onTrimEmitter.fire(s)}else this._length+=a.length},p.prototype.trimStart=function(d){d>this._length&&(d=this._length),this._startIndex+=d,this._length-=d,this.onTrimEmitter.fire(d)},p.prototype.shiftElements=function(d,u,a){if(!(u<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+a<0)throw new Error("Cannot shift elements in list beyond index 0");if(a>0){for(var i=u-1;i>=0;i--)this.set(d+i+a,this.get(d+i));var t=d+u+a-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(i=0;i<u;i++)this.set(d+i+a,this.get(d+i))}},p.prototype._getCyclicIndex=function(d){return(this._startIndex+d)%this._maxLength},p}();f.CircularList=m},function(y,f,x){"use strict";function A(m,p,d){if(p===m.length-1)return m[p].getTrimmedLength();var u=!m[p].hasContent(d-1)&&m[p].getWidth(d-1)===1,a=m[p+1].getWidth(0)===2;return u&&a?d-1:d}Object.defineProperty(f,"__esModule",{value:!0}),f.getWrappedLineTrimmedLength=f.reflowSmallerGetNewLineLengths=f.reflowLargerApplyNewLayout=f.reflowLargerCreateNewLayout=f.reflowLargerGetLinesToRemove=void 0,f.reflowLargerGetLinesToRemove=function(m,p,d,u,a){for(var i=[],t=0;t<m.length-1;t++){var s=t,e=m.get(++s);if(e.isWrapped){for(var l=[m.get(t)];s<m.length&&e.isWrapped;)l.push(e),e=m.get(++s);if(u>=t&&u<s)t+=l.length-1;else{for(var n=0,o=A(l,n,p),c=1,h=0;c<l.length;){var g=A(l,c,p),v=g-h,b=d-o,S=Math.min(v,b);l[n].copyCellsFrom(l[c],h,o,S,!1),(o+=S)===d&&(n++,o=0),(h+=S)===g&&(c++,h=0),o===0&&n!==0&&l[n-1].getWidth(d-1)===2&&(l[n].copyCellsFrom(l[n-1],d-1,o++,1,!1),l[n-1].setCell(d-1,a))}l[n].replaceCells(o,d,a);for(var E=0,C=l.length-1;C>0&&(C>n||l[C].getTrimmedLength()===0);C--)E++;E>0&&(i.push(t+l.length-E),i.push(E)),t+=l.length-1}}}return i},f.reflowLargerCreateNewLayout=function(m,p){for(var d=[],u=0,a=p[u],i=0,t=0;t<m.length;t++)if(a===t){var s=p[++u];m.onDeleteEmitter.fire({index:t-i,amount:s}),t+=s-1,i+=s,a=p[++u]}else d.push(t);return{layout:d,countRemoved:i}},f.reflowLargerApplyNewLayout=function(m,p){for(var d=[],u=0;u<p.length;u++)d.push(m.get(p[u]));for(u=0;u<d.length;u++)m.set(u,d[u]);m.length=p.length},f.reflowSmallerGetNewLineLengths=function(m,p,d){for(var u=[],a=m.map(function(o,c){return A(m,c,p)}).reduce(function(o,c){return o+c}),i=0,t=0,s=0;s<a;){if(a-s<d){u.push(a-s);break}i+=d;var e=A(m,t,p);i>e&&(i-=e,t++);var l=m[t].getWidth(i-1)===2;l&&i--;var n=l?d-1:d;u.push(n),s+=n}return u},f.getWrappedLineTrimmedLength=A},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(a,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var e in s)s.hasOwnProperty(e)&&(t[e]=s[e])})(a,i)},function(u,a){function i(){this.constructor=u}A(u,a),u.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)});Object.defineProperty(f,"__esModule",{value:!0}),f.Marker=void 0;var p=x(0),d=function(u){function a(i){var t=u.call(this)||this;return t.line=i,t._id=a._nextId++,t.isDisposed=!1,t._onDispose=new p.EventEmitter,t}return m(a,u),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),a.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},a._nextId=1,a}(x(2).Disposable);f.Marker=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.OptionsService=f.DEFAULT_OPTIONS=f.DEFAULT_BELL_SOUND=void 0;var A=x(0),m=x(11),p=x(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:m.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var d=["cols","rows"],u=function(){function a(i){this._onOptionChange=new A.EventEmitter,this.options=p.clone(f.DEFAULT_OPTIONS);for(var t=0,s=Object.keys(i);t<s.length;t++){var e=s[t];if(e in this.options){var l=i[e];this.options[e]=l}}}return Object.defineProperty(a.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),a.prototype.setOption=function(i,t){if(!(i in f.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');if(d.indexOf(i)!==-1)throw new Error('Option "'+i+'" can only be set in the constructor');this.options[i]!==t&&(t=this._sanitizeAndValidateOption(i,t),this.options[i]!==t&&(this.options[i]=t,this._onOptionChange.fire(i)))},a.prototype._sanitizeAndValidateOption=function(i,t){switch(i){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=f.DEFAULT_OPTIONS[i]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(i+" cannot be less than 1, value: "+t);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(i+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(i+" cannot be less than or equal to 0, value: "+t)}return t},a.prototype.getOption=function(i){if(!(i in f.DEFAULT_OPTIONS))throw new Error('No option with key "'+i+'"');return this.options[i]},a}();f.OptionsService=u},function(y,f,x){"use strict";var A,m=this&&this.__extends||(A=function(o,c){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var v in g)g.hasOwnProperty(v)&&(h[v]=g[v])})(o,c)},function(n,o){function c(){this.constructor=n}A(n,o),n.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}),p=this&&this.__decorate||function(n,o,c,h){var g,v=arguments.length,b=v<3?o:h===null?h=Object.getOwnPropertyDescriptor(o,c):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,o,c,h);else for(var S=n.length-1;S>=0;S--)(g=n[S])&&(b=(v<3?g(b):v>3?g(o,c,b):g(o,c))||b);return v>3&&b&&Object.defineProperty(o,c,b),b},d=this&&this.__param||function(n,o){return function(c,h){o(c,h,n)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreService=void 0;var u=x(1),a=x(0),i=x(33),t=x(2),s=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(n){function o(c,h,g,v){var b=n.call(this)||this;return b._bufferService=h,b._logService=g,b._optionsService=v,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new a.EventEmitter),b._onUserInput=b.register(new a.EventEmitter),b._onBinary=b.register(new a.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=i.clone(s),b.decPrivateModes=i.clone(e),b}return m(o,n),Object.defineProperty(o.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),o.prototype.reset=function(){this.modes=i.clone(s),this.decPrivateModes=i.clone(e)},o.prototype.triggerDataEvent=function(c,h){if(h===void 0&&(h=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),h&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(v){return v.charCodeAt(0)})}),this._onData.fire(c)}},o.prototype.triggerBinaryEvent=function(c){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+c+'"',function(){return c.split("").map(function(h){return h.charCodeAt(0)})}),this._onBinary.fire(c))},o=p([d(1,u.IBufferService),d(2,u.ILogService),d(3,u.IOptionsService)],o)}(t.Disposable);f.CoreService=l},function(y,f,x){"use strict";var A=this&&this.__decorate||function(e,l,n,o){var c,h=arguments.length,g=h<3?l:o===null?o=Object.getOwnPropertyDescriptor(l,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,l,n,o);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(l,n,g):c(l,n))||g);return h>3&&g&&Object.defineProperty(l,n,g),g},m=this&&this.__param||function(e,l){return function(n,o){l(n,o,e)}};Object.defineProperty(f,"__esModule",{value:!0}),f.CoreMouseService=void 0;var p=x(1),d=x(0),u={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 a(e,l){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),e.action===32?n|=32:e.action!==0||l||(n|=3)),n}var i=String.fromCharCode,t={DEFAULT:function(l){var n=[a(l,!1)+32,l.col+32,l.row+32];return n[0]>255||n[1]>255||n[2]>255?"":""+i(n[0])+i(n[1])+i(n[2])},SGR:function(l){var n=l.action===0&&l.button!==4?"m":"M";return"[<"+a(l,!0)+";"+l.col+";"+l.row+n}},s=function(){function e(l,n){this._bufferService=l,this._coreService=n,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new d.EventEmitter,this._lastEvent=null;for(var o=0,c=Object.keys(u);o<c.length;o++){var h=c[o];this.addProtocol(h,u[h])}for(var g=0,v=Object.keys(t);g<v.length;g++){var b=v[g];this.addEncoding(b,t[b])}this.reset()}return e.prototype.addProtocol=function(l,n){this._protocols[l]=n},e.prototype.addEncoding=function(l,n){this._encodings[l]=n},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(n){if(!this._protocols[n])throw new Error('unknown protocol "'+n+'"');this._activeProtocol=n,this._onProtocolChange.fire(this._protocols[n].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(n){if(!this._encodings[n])throw new Error('unknown encoding "'+n+'"');this._activeEncoding=n},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(l){if(l.col<0||l.col>=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 n=this._encodings[this._activeEncoding](l);return n&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(n):this._coreService.triggerDataEvent(n,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,n){return l.col===n.col&&l.row===n.row&&l.button===n.button&&l.action===n.action&&l.ctrl===n.ctrl&&l.alt===n.alt&&l.shift===n.shift},e=A([m(0,p.IBufferService),m(1,p.ICoreService)],e)}();f.CoreMouseService=s},function(y,f,x){"use strict";var A=this&&this.__decorate||function(u,a,i,t){var s,e=arguments.length,l=e<3?a:t===null?t=Object.getOwnPropertyDescriptor(a,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(u,a,i,t);else for(var n=u.length-1;n>=0;n--)(s=u[n])&&(l=(e<3?s(l):e>3?s(a,i,l):s(a,i))||l);return e>3&&l&&Object.defineProperty(a,i,l),l},m=this&&this.__param||function(u,a){return function(i,t){a(i,t,u)}};Object.defineProperty(f,"__esModule",{value:!0}),f.DirtyRowService=void 0;var p=x(1),d=function(){function u(a){this._bufferService=a,this.clearRange()}return Object.defineProperty(u.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),u.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},u.prototype.markDirty=function(a){a<this._start?this._start=a:a>this._end&&(this._end=a)},u.prototype.markRangeDirty=function(a,i){if(a>i){var t=a;a=i,i=t}a<this._start&&(this._start=a),i>this._end&&(this._end=i)},u.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},u=A([m(0,p.IBufferService)],u)}();f.DirtyRowService=d},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeService=void 0;var A=x(0),m=x(79),p=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var u=new m.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}return Object.defineProperty(d.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"activeVersion",{get:function(){return this._active},set:function(a){if(!this._providers[a])throw new Error('unknown Unicode version "'+a+'"');this._active=a,this._activeProvider=this._providers[a],this._onChange.fire(a)},enumerable:!1,configurable:!0}),d.prototype.register=function(u){this._providers[u.version]=u},d.prototype.wcwidth=function(u){return this._activeProvider.wcwidth(u)},d.prototype.getStringCellWidth=function(u){for(var a=0,i=u.length,t=0;t<i;++t){var s=u.charCodeAt(t);if(55296<=s&&s<=56319){if(++t>=i)return a+this.wcwidth(s);var e=u.charCodeAt(t);56320<=e&&e<=57343?s=1024*(s-55296)+e-56320+65536:a+=this.wcwidth(e)}a+=this.wcwidth(s)}return a},d}();f.UnicodeService=p},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.UnicodeV6=void 0;var A,m=x(15),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],d=[[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]],u=function(){function a(){if(this.version="6",!A){A=new Uint8Array(65536),m.fill(A,1),A[0]=0,m.fill(A,0,1,32),m.fill(A,0,127,160),m.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,m.fill(A,2,11904,42192),A[12351]=1,m.fill(A,2,44032,55204),m.fill(A,2,63744,64256),m.fill(A,2,65040,65050),m.fill(A,2,65072,65136),m.fill(A,2,65280,65377),m.fill(A,2,65504,65511);for(var i=0;i<p.length;++i)m.fill(A,0,p[i][0],p[i][1]+1)}}return a.prototype.wcwidth=function(i){return i<32?0:i<127?1:i<65536?A[i]:function(t,s){var e,l=0,n=s.length-1;if(t<s[0][0]||t>s[n][1])return!1;for(;n>=l;)if(t>s[e=l+n>>1][1])l=e+1;else{if(!(t<s[e][0]))return!0;n=e-1}return!1}(i,d)?0:i>=131072&&i<=196605||i>=196608&&i<=262141?2:1},a}();f.UnicodeV6=u},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.CharsetService=void 0;var A=function(){function m(){this.glevel=0,this._charsets=[]}return m.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},m.prototype.setgLevel=function(p){this.glevel=p,this.charset=this._charsets[p]},m.prototype.setgCharset=function(p,d){this._charsets[p]=d,this.glevel===p&&(this.charset=d)},m}();f.CharsetService=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.updateWindowsModeWrappedState=void 0;var A=x(3);f.updateWindowsModeWrappedState=function(m){var p=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),d=p==null?void 0:p.get(m.cols-1),u=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);u&&d&&(u.isWrapped=d[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&d[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.WriteBuffer=void 0;var A=function(){function m(p){this._action=p,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return m.prototype.writeSync=function(p){if(this._writeBuffer.length){for(var d=this._bufferOffset;d<this._writeBuffer.length;++d){var u=this._writeBuffer[d],a=this._callbacks[d];this._action(u),a&&a()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(p)},m.prototype.write=function(p,d){var u=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return u._innerWrite()})),this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(d)},m.prototype._innerWrite=function(){for(var p=this,d=Date.now();this._writeBuffer.length>this._bufferOffset;){var u=this._writeBuffer[this._bufferOffset],a=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(u),this._pendingData-=u.length,a&&a(),Date.now()-d>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return p._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},m}();f.WriteBuffer=A},function(y,f,x){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.AddonManager=void 0;var A=function(){function m(){this._addons=[]}return m.prototype.dispose=function(){for(var p=this._addons.length-1;p>=0;p--)this._addons[p].instance.dispose()},m.prototype.loadAddon=function(p,d){var u=this,a={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(a),d.dispose=function(){return u._wrappedAddonDispose(a)},d.activate(p)},m.prototype._wrappedAddonDispose=function(p){if(!p.isDisposed){for(var d=-1,u=0;u<this._addons.length;u++)if(this._addons[u]===p){d=u;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");p.isDisposed=!0,p.dispose.apply(p.instance),this._addons.splice(d,1)}},m}();f.AddonManager=A}])})},"/SeX":function(R,L,r){var y=r("knOB"),f=r("qZFw"),x=function(m){this.name=m||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new f,this._radiusAxis.polar=this._angleAxis.polar=this};x.prototype={type:"polar",axisPointerEnabled:!0,constructor:x,dimensions:["radius","angle"],model:null,containPoint:function(m){var p=this.pointToCoord(m);return this._radiusAxis.contain(p[0])&&this._angleAxis.contain(p[1])},containData:function(m){return this._radiusAxis.containData(m[0])&&this._angleAxis.containData(m[1])},getAxis:function(m){return this["_"+m+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(m){var p=[],d=this._angleAxis,u=this._radiusAxis;return d.scale.type===m&&p.push(d),u.scale.type===m&&p.push(u),p},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(m){var p=this._angleAxis;return m===p?this._radiusAxis:p},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(m){var p=m!=null&&m!=="auto"?this.getAxis(m):this.getBaseAxis();return{baseAxes:[p],otherAxes:[this.getOtherAxis(p)]}},dataToPoint:function(m,p){return this.coordToPoint([this._radiusAxis.dataToRadius(m[0],p),this._angleAxis.dataToAngle(m[1],p)])},pointToData:function(m,p){var d=this.pointToCoord(m);return[this._radiusAxis.radiusToData(d[0],p),this._angleAxis.angleToData(d[1],p)]},pointToCoord:function(m){var p=m[0]-this.cx,d=m[1]-this.cy,u=this.getAngleAxis(),a=u.getExtent(),i=Math.min(a[0],a[1]),t=Math.max(a[0],a[1]);u.inverse?i=t-360:t=i+360;var s=Math.sqrt(p*p+d*d);p/=s,d/=s;for(var e=Math.atan2(-d,p)/Math.PI*180,l=e<i?1:-1;e<i||e>t;)e+=l*360;return[s,e]},coordToPoint:function(m){var p=m[0],d=m[1]/180*Math.PI,u=Math.cos(d)*p+this.cx,a=-Math.sin(d)*p+this.cy;return[u,a]},getArea:function(){var m=this.getAngleAxis(),p=this.getRadiusAxis(),d=p.getExtent().slice();d[0]>d[1]&&d.reverse();var u=m.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-u[0]*a,endAngle:-u[1]*a,clockwise:m.inverse,contain:function(i,t){var s=i-this.cx,e=t-this.cy,l=s*s+e*e,n=this.r,o=this.r0;return l<=n*n&&l>=o*o}}}};var A=x;R.exports=A},"/WM3":function(R,L,r){var y=r("QuXc"),f=r("bYtY"),x=f.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,p){var d=m.getData(),u=(m.visualColorAccessPath||"itemStyle.color").split("."),a=m.get(u),i=x(a)&&!(a instanceof y)?a:null;(!a||i)&&(a=m.getColorFromPalette(m.name,null,p.getSeriesCount())),d.setVisual("color",a);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=m.get(t);if(d.setVisual("borderColor",s),!p.isSeriesFiltered(m)){i&&d.each(function(l){d.setItemVisual(l,"color",i(m.getDataParams(l)))});var e=function(l,n){var o=l.getItemModel(n),c=o.get(u,!0),h=o.get(t,!0);c!=null&&l.setItemVisual(n,"color",c),h!=null&&l.setItemVisual(n,"borderColor",h)};return{dataEach:d.hasItemOption?e:null}}}};R.exports=A},"/d5a":function(R,L){var r={average:function(x){for(var A=0,m=0,p=0;p<x.length;p++)isNaN(x[p])||(A+=x[p],m++);return m===0?NaN:A/m},sum:function(x){for(var A=0,m=0;m<x.length;m++)A+=x[m]||0;return A},max:function(x){for(var A=-Infinity,m=0;m<x.length;m++)x[m]>A&&(A=x[m]);return isFinite(A)?A:NaN},min:function(x){for(var A=Infinity,m=0;m<x.length;m++)x[m]<A&&(A=x[m]);return isFinite(A)?A:NaN},nearest:function(x){return x[0]}},y=function(x,A){return Math.round(x.length/2)};function f(x){return{seriesType:x,modifyOutputEnd:!0,reset:function(A,m,p){var d=A.getData(),u=A.get("sampling"),a=A.coordinateSystem;if(a.type==="cartesian2d"&&u){var i=a.getBaseAxis(),t=a.getOtherAxis(i),s=i.getExtent(),e=s[1]-s[0],l=Math.round(d.count()/e);if(l>1){var n;typeof u=="string"?n=r[u]:typeof u=="function"&&(n=u),n&&A.setData(d.downSample(d.mapDimension(t.dim),1/l,n,y))}}}}}R.exports=f},"/ezw":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("cDf5"),p=r.n(m),d=r("q1tI"),u=r("TSYQ"),a=r.n(u),i=function(K){var z=K.prefixCls,V=K.className,Q=K.width,G=K.style;return d.createElement("h3",{className:a()(z,V),style:A()({width:Q},G)})},t=i,s=r("RIqP"),e=r.n(s),l=function(K){var z=function(he){var ke=K.width,Pe=K.rows,Ue=Pe===void 0?2:Pe;return Array.isArray(ke)?ke[he]:Ue-1===he?ke:void 0},V=K.prefixCls,Q=K.className,G=K.style,ee=K.rows,se=e()(Array(ee)).map(function(ye,he){return d.createElement("li",{key:he,style:{width:z(he)}})});return d.createElement("ul",{className:a()(V,Q),style:G},se)},n=l,o=r("H84U"),c=function(K){var z,V,Q=K.prefixCls,G=K.className,ee=K.style,se=K.size,ye=K.shape,he=a()((z={},f()(z,"".concat(Q,"-lg"),se==="large"),f()(z,"".concat(Q,"-sm"),se==="small"),z)),ke=a()((V={},f()(V,"".concat(Q,"-circle"),ye==="circle"),f()(V,"".concat(Q,"-square"),ye==="square"),f()(V,"".concat(Q,"-round"),ye==="round"),V)),Pe=typeof se=="number"?{width:se,height:se,lineHeight:"".concat(se,"px")}:{};return d.createElement("span",{className:a()(Q,G,he,ke),style:A()(A()({},Pe),ee)})},h=c,g=r("BGR+"),v=function(K){var z=function(Q){var G=Q.getPrefixCls,ee=K.prefixCls,se=K.className,ye=K.active,he=G("skeleton",ee),ke=Object(g.default)(K,["prefixCls"]),Pe=a()(he,se,"".concat(he,"-element"),f()({},"".concat(he,"-active"),ye));return d.createElement("div",{className:Pe},d.createElement(h,A()({prefixCls:"".concat(he,"-avatar")},ke)))};return d.createElement(o.a,null,z)};v.defaultProps={size:"default",shape:"circle"};var b=v,S=function(K){var z=function(Q){var G=Q.getPrefixCls,ee=K.prefixCls,se=K.className,ye=K.active,he=G("skeleton",ee),ke=Object(g.default)(K,["prefixCls"]),Pe=a()(he,se,"".concat(he,"-element"),f()({},"".concat(he,"-active"),ye));return d.createElement("div",{className:Pe},d.createElement(h,A()({prefixCls:"".concat(he,"-button")},ke)))};return d.createElement(o.a,null,z)};S.defaultProps={size:"default"};var E=S,C=function(K){var z=function(Q){var G=Q.getPrefixCls,ee=K.prefixCls,se=K.className,ye=K.active,he=G("skeleton",ee),ke=Object(g.default)(K,["prefixCls"]),Pe=a()(he,se,"".concat(he,"-element"),f()({},"".concat(he,"-active"),ye));return d.createElement("div",{className:Pe},d.createElement(h,A()({prefixCls:"".concat(he,"-input")},ke)))};return d.createElement(o.a,null,z)};C.defaultProps={size:"default"};var _=C,T="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",w=function(K){var z=function(Q){var G=Q.getPrefixCls,ee=K.prefixCls,se=K.className,ye=K.style,he=G("skeleton",ee),ke=a()(he,se,"".concat(he,"-element"));return d.createElement("div",{className:ke},d.createElement("div",{className:a()("".concat(he,"-image"),se),style:ye},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(he,"-image-svg")},d.createElement("path",{d:T,className:"".concat(he,"-image-path")}))))};return d.createElement(o.a,null,z)},O=w;function I(j){return j&&p()(j)==="object"?j:{}}function k(j,K){return j&&!K?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function M(j,K){return!j&&K?{width:"38%"}:j&&K?{width:"50%"}:{}}function U(j,K){var z={};return(!j||!K)&&(z.width="61%"),!j&&K?z.rows=3:z.rows=2,z}var P=function(K){var z=function(Q){var G=Q.getPrefixCls,ee=Q.direction,se=K.prefixCls,ye=K.loading,he=K.className,ke=K.children,Pe=K.avatar,Ue=K.title,$e=K.paragraph,Ge=K.active,ht=K.round,Fe=G("skeleton",se);if(ye||!("loading"in K)){var oe,rt=!!Pe,fe=!!Ue,J=!!$e,Y;if(rt){var $=A()(A()({prefixCls:"".concat(Fe,"-avatar")},k(fe,J)),I(Pe));Y=d.createElement("div",{className:"".concat(Fe,"-header")},d.createElement(h,$))}var de;if(fe||J){var we;if(fe){var Ce=A()(A()({prefixCls:"".concat(Fe,"-title")},M(rt,J)),I(Ue));we=d.createElement(t,Ce)}var Se;if(J){var le=A()(A()({prefixCls:"".concat(Fe,"-paragraph")},U(rt,fe)),I($e));Se=d.createElement(n,le)}de=d.createElement("div",{className:"".concat(Fe,"-content")},we,Se)}var pe=a()(Fe,he,(oe={},f()(oe,"".concat(Fe,"-with-avatar"),rt),f()(oe,"".concat(Fe,"-active"),Ge),f()(oe,"".concat(Fe,"-rtl"),ee==="rtl"),f()(oe,"".concat(Fe,"-round"),ht),oe));return d.createElement("div",{className:pe},Y,de)}return ke};return d.createElement(o.a,null,z)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=E,P.Avatar=b,P.Input=_,P.Image=O;var X=P,F=L.a=X},"/hr5":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("Gfru"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"/iHx":function(R,L,r){var y=r("6GrX"),f=r("IwbS"),x=["textStyle","color"],A={getTextColor:function(m){var p=this.ecModel;return this.getShallow("color")||(!m&&p?p.get(x):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(m){return y.getBoundingRect(m,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};R.exports=A},"/qDX":function(R,L,r){},"/ry/":function(R,L,r){var y=r("bYtY"),f=r("T4UG"),x=r("5GhG"),A=x.seriesModelMixin,m=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}});y.mixin(m,A,!0);var p=m;R.exports=p},"/rzN":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("R4DB"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"/stD":function(R,L,r){var y=r("bYtY"),f=r("IUWy"),x=r("Kagy"),A=x.toolbox.brush;function m(u,a,i){this.model=u,this.ecModel=a,this.api=i,this._brushType,this._brushMode}m.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:y.clone(A.title)};var p=m.prototype;p.render=p.updateView=function(u,a,i){var t,s,e;a.eachComponent({mainType:"brush"},function(l){t=l.brushType,s=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=t,this._brushMode=s,y.each(u.get("type",!0),function(l){u.setIconStatus(l,(l==="keep"?s==="multiple":l==="clear"?e:l===t)?"emphasis":"normal")})},p.getIcons=function(){var u=this.model,a=u.get("icon",!0),i={};return y.each(u.get("type",!0),function(t){a[t]&&(i[t]=a[t])}),i},p.onclick=function(u,a,i){var t=this._brushType,s=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?t:t===i?!1:i,brushMode:i==="keep"?s==="multiple"?"single":"multiple":s}})},f.register("brush",m);var d=m;R.exports=d},"/wGt":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("PJYZ"),i=r.n(a),t=r("7W2i"),s=r.n(t),e=r("LQ03"),l=r.n(e),n=r("q1tI"),o=r("Ff2n"),c=r("1OyB"),h=r("vuIU"),g=r("Ji7U"),v=r("md7G"),b=r("foSv"),S=r("1W/9"),E=r("rePB"),C=r("JX7q"),_=r("TSYQ"),T=r.n(_),w=r("qx4F"),O=r("4IlW");function I(we){return Array.isArray(we)?we:[we]}var k={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},M=Object.keys(k).filter(function(we){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return we in(Ce?Ce.style:{})})[0],U=k[M];function P(we,Ce,Se,le){we.addEventListener?we.addEventListener(Ce,Se,le):we.attachEvent&&we.attachEvent("on".concat(Ce),Se)}function X(we,Ce,Se,le){we.removeEventListener?we.removeEventListener(Ce,Se,le):we.attachEvent&&we.detachEvent("on".concat(Ce),Se)}function F(we,Ce){var Se=typeof we=="function"?we(Ce):we;return Array.isArray(Se)?Se.length===2?Se:[Se[0],Se[1]]:[Se]}var j=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},K=!(typeof window!="undefined"&&window.document&&window.document.createElement),z=function we(Ce,Se,le,pe){if(!Se||Se===document||Se instanceof Document)return!1;if(Se===Ce.parentNode)return!0;var _e=Math.max(Math.abs(le),Math.abs(pe))===Math.abs(pe),tt=Math.max(Math.abs(le),Math.abs(pe))===Math.abs(le),gt=Se.scrollHeight-Se.clientHeight,ct=Se.scrollWidth-Se.clientWidth,je=document.defaultView.getComputedStyle(Se),Zt=je.overflowY==="auto"||je.overflowY==="scroll",ut=je.overflowX==="auto"||je.overflowX==="scroll",Ht=gt&&Zt,dr=ct&&ut;return _e&&(!Ht||Ht&&(Se.scrollTop>=gt&&pe<0||Se.scrollTop<=0&&pe>0))||tt&&(!dr||dr&&(Se.scrollLeft>=ct&&le<0||Se.scrollLeft<=0&&le>0))?we(Ce,Se.parentNode,le,pe):!1};function V(we){var Ce=Q();return function(){var le=Object(b.a)(we),pe;if(Ce){var _e=Object(b.a)(this).constructor;pe=Reflect.construct(le,arguments,_e)}else pe=le.apply(this,arguments);return Object(v.a)(this,pe)}}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(we){return!1}}var G={},ee=function(we){Object(g.a)(Se,we);var Ce=V(Se);function Se(le){var pe;return Object(c.a)(this,Se),pe=Ce.call(this,le),pe.domFocus=function(){pe.dom&&pe.dom.focus()},pe.removeStartHandler=function(_e){if(_e.touches.length>1)return;pe.startPos={x:_e.touches[0].clientX,y:_e.touches[0].clientY}},pe.removeMoveHandler=function(_e){if(_e.changedTouches.length>1)return;var tt=_e.currentTarget,gt=_e.changedTouches[0].clientX-pe.startPos.x,ct=_e.changedTouches[0].clientY-pe.startPos.y;(tt===pe.maskDom||tt===pe.handlerDom||tt===pe.contentDom&&z(tt,_e.target,gt,ct))&&_e.cancelable&&_e.preventDefault()},pe.transitionEnd=function(_e){var tt=_e.target;X(tt,U,pe.transitionEnd),tt.style.transition=""},pe.onKeyDown=function(_e){if(_e.keyCode===O.a.ESC){var tt=pe.props.onClose;_e.stopPropagation(),tt&&tt(_e)}},pe.onWrapperTransitionEnd=function(_e){var tt=pe.props,gt=tt.open,ct=tt.afterVisibleChange;_e.target===pe.contentWrapper&&_e.propertyName.match(/transform$/)&&(pe.dom.style.transition="",!gt&&pe.getCurrentDrawerSome()&&(document.body.style.overflowX="",pe.maskDom&&(pe.maskDom.style.left="",pe.maskDom.style.width="")),ct&&ct(!!gt))},pe.openLevelTransition=function(){var _e=pe.props,tt=_e.open,gt=_e.width,ct=_e.height,je=pe.getHorizontalBoolAndPlacementName(),Zt=je.isHorizontal,ut=je.placementName,Ht=pe.contentDom?pe.contentDom.getBoundingClientRect()[Zt?"width":"height"]:0,dr=(Zt?gt:ct)||Ht;pe.setLevelAndScrolling(tt,ut,dr)},pe.setLevelTransform=function(_e,tt,gt,ct){var je=pe.props,Zt=je.placement,ut=je.levelMove,Ht=je.duration,dr=je.ease,Vt=je.showMask;pe.levelDom.forEach(function(Mt){Mt.style.transition="transform ".concat(Ht," ").concat(dr),P(Mt,U,pe.transitionEnd);var Gt=_e?gt:0;if(ut){var Ve=F(ut,{target:Mt,open:_e});Gt=_e?Ve[0]:Ve[1]||0}var me=typeof Gt=="number"?"".concat(Gt,"px"):Gt,te=Zt==="left"||Zt==="top"?me:"-".concat(me);te=Vt&&Zt==="right"&&ct?"calc(".concat(te," + ").concat(ct,"px)"):te,Mt.style.transform=Gt?"".concat(tt,"(").concat(te,")"):""})},pe.setLevelAndScrolling=function(_e,tt,gt){var ct=pe.props.onChange;if(!K){var je=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;pe.setLevelTransform(_e,tt,gt,je),pe.toggleScrollingToDrawerAndBody(je)}ct&&ct(_e)},pe.toggleScrollingToDrawerAndBody=function(_e){var tt=pe.props,gt=tt.getOpenCount,ct=tt.getContainer,je=tt.showMask,Zt=tt.open,ut=ct&&ct(),Ht=gt&&gt();if(ut&&ut.parentNode===document.body&&je){var dr=["touchstart"],Vt=[document.body,pe.maskDom,pe.handlerDom,pe.contentDom];Zt&&document.body.style.overflow!=="hidden"?(_e&&pe.addScrollingEffect(_e),Ht===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Vt.forEach(function(Mt,Gt){if(!Mt)return;P(Mt,dr[Gt]||"touchmove",Gt?pe.removeMoveHandler:pe.removeStartHandler,pe.passive)})):pe.getCurrentDrawerSome()&&(Ht||(document.body.style.overflow=""),document.body.style.touchAction="",_e&&pe.remScrollingEffect(_e),Vt.forEach(function(Mt,Gt){if(!Mt)return;X(Mt,dr[Gt]||"touchmove",Gt?pe.removeMoveHandler:pe.removeStartHandler,pe.passive)}))}},pe.addScrollingEffect=function(_e){var tt=pe.props,gt=tt.placement,ct=tt.duration,je=tt.ease,Zt=tt.getOpenCount,ut=tt.switchScrollingEffect,Ht=Zt&&Zt();Ht===1&&ut();var dr="width ".concat(ct," ").concat(je),Vt="transform ".concat(ct," ").concat(je);pe.dom.style.transition="none";switch(gt){case"right":pe.dom.style.transform="translateX(-".concat(_e,"px)");break;case"top":case"bottom":pe.dom.style.width="calc(100% - ".concat(_e,"px)"),pe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(pe.timeout),pe.timeout=setTimeout(function(){pe.dom&&(pe.dom.style.transition="".concat(Vt,",").concat(dr),pe.dom.style.width="",pe.dom.style.transform="")})},pe.remScrollingEffect=function(_e){var tt=pe.props,gt=tt.placement,ct=tt.duration,je=tt.ease,Zt=tt.getOpenCount,ut=tt.switchScrollingEffect,Ht=Zt&&Zt();Ht||ut(!0),M&&(document.body.style.overflowX="hidden"),pe.dom.style.transition="none";var dr,Vt="width ".concat(ct," ").concat(je),Mt="transform ".concat(ct," ").concat(je);switch(gt){case"left":{pe.dom.style.width="100%",Vt="width 0s ".concat(je," ").concat(ct);break}case"right":{pe.dom.style.transform="translateX(".concat(_e,"px)"),pe.dom.style.width="100%",Vt="width 0s ".concat(je," ").concat(ct),pe.maskDom&&(pe.maskDom.style.left="-".concat(_e,"px"),pe.maskDom.style.width="calc(100% + ".concat(_e,"px)"));break}case"top":case"bottom":{pe.dom.style.width="calc(100% + ".concat(_e,"px)"),pe.dom.style.height="100%",pe.dom.style.transform="translateZ(0)",dr="height 0s ".concat(je," ").concat(ct);break}default:break}clearTimeout(pe.timeout),pe.timeout=setTimeout(function(){pe.dom&&(pe.dom.style.transition="".concat(Mt,",").concat(dr?"".concat(dr,","):"").concat(Vt),pe.dom.style.transform="",pe.dom.style.width="",pe.dom.style.height="")})},pe.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(_e){return G[_e]})},pe.getLevelDom=function(_e){var tt=_e.level,gt=_e.getContainer;if(K)return;var ct=gt&&gt(),je=ct?ct.parentNode:null;if(pe.levelDom=[],tt==="all"){var Zt=je?Array.prototype.slice.call(je.children):[];Zt.forEach(function(ut){ut.nodeName!=="SCRIPT"&&ut.nodeName!=="STYLE"&&ut.nodeName!=="LINK"&&ut!==ct&&pe.levelDom.push(ut)})}else tt&&I(tt).forEach(function(ut){document.querySelectorAll(ut).forEach(function(Ht){pe.levelDom.push(Ht)})})},pe.getHorizontalBoolAndPlacementName=function(){var _e=pe.props.placement,tt=_e==="left"||_e==="right",gt="translate".concat(tt?"X":"Y");return{isHorizontal:tt,placementName:gt}},pe.state={_self:Object(C.a)(pe)},pe}return Object(h.a)(Se,[{key:"componentDidMount",value:function(){var pe=this;if(!K){var _e=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return _e=!0,null}}))}catch(Zt){}this.passive=_e?{passive:!1}:!1}var tt=this.props,gt=tt.open,ct=tt.getContainer,je=ct&&ct();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),gt&&(je&&je.parentNode===document.body&&(G[this.drawerId]=gt),this.openLevelTransition(),this.forceUpdate(function(){pe.domFocus()}))}},{key:"componentDidUpdate",value:function(pe){var _e=this.props,tt=_e.open,gt=_e.getContainer,ct=gt&&gt();tt!==pe.open&&(tt&&this.domFocus(),ct&&ct.parentNode===document.body&&(G[this.drawerId]=!!tt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var pe=this.props,_e=pe.getOpenCount,tt=pe.open,gt=pe.switchScrollingEffect,ct=typeof _e=="function"&&_e();delete G[this.drawerId],tt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),ct||(document.body.style.overflow="",gt(!0))}},{key:"render",value:function(){var pe,_e=this,tt=this.props,gt=tt.className,ct=tt.children,je=tt.style,Zt=tt.width,ut=tt.height,Ht=tt.defaultOpen,dr=tt.open,Vt=tt.prefixCls,Mt=tt.placement,Gt=tt.level,Ve=tt.levelMove,me=tt.ease,te=tt.duration,Ze=tt.getContainer,Xe=tt.handler,ue=tt.onChange,St=tt.afterVisibleChange,Qt=tt.showMask,dt=tt.maskClosable,Jt=tt.maskStyle,$t=tt.onClose,tn=tt.onHandleClick,kt=tt.keyboard,tr=tt.getOpenCount,Bt=tt.switchScrollingEffect,ft=Object(o.a)(tt,["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"]),it=this.dom?dr:!1,Or=T()(Vt,(pe={},Object(E.a)(pe,"".concat(Vt,"-").concat(Mt),!0),Object(E.a)(pe,"".concat(Vt,"-open"),it),Object(E.a)(pe,gt||"",!!gt),Object(E.a)(pe,"no-mask",!Qt),pe)),an=this.getHorizontalBoolAndPlacementName(),En=an.placementName,Bn=Mt==="left"||Mt==="top"?"-100%":"100%",vi=it?"":"".concat(En,"(").concat(Bn,")"),Ln=Xe&&n.cloneElement(Xe,{onClick:function(Xt){Xe.props.onClick&&Xe.props.onClick(),tn&&tn(Xt)},ref:function(Xt){_e.handlerDom=Xt}});return n.createElement("div",Object.assign({},ft,{tabIndex:-1,className:Or,style:je,ref:function(Xt){_e.dom=Xt},onKeyDown:it&&kt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Qt&&n.createElement("div",{className:"".concat(Vt,"-mask"),onClick:dt?$t:void 0,style:Jt,ref:function(Xt){_e.maskDom=Xt}}),n.createElement("div",{className:"".concat(Vt,"-content-wrapper"),style:{transform:vi,msTransform:vi,width:j(Zt)?"".concat(Zt,"px"):Zt,height:j(ut)?"".concat(ut,"px"):ut},ref:function(Xt){_e.contentWrapper=Xt}},n.createElement("div",{className:"".concat(Vt,"-content"),ref:function(Xt){_e.contentDom=Xt},onTouchStart:it&&Qt?this.removeStartHandler:void 0,onTouchMove:it&&Qt?this.removeMoveHandler:void 0},ct),Ln))}}],[{key:"getDerivedStateFromProps",value:function(pe,_e){var tt=_e.prevProps,gt=_e._self,ct={prevProps:pe};if(tt!==void 0){var je=pe.placement,Zt=pe.level;je!==tt.placement&&(gt.contentDom=null),Zt!==tt.level&&gt.getLevelDom(pe)}return ct}}]),Se}(n.Component);ee.defaultProps={switchScrollingEffect:function(){}};var se=ee;function ye(we){var Ce=he();return function(){var le=Object(b.a)(we),pe;if(Ce){var _e=Object(b.a)(this).constructor;pe=Reflect.construct(le,arguments,_e)}else pe=le.apply(this,arguments);return Object(v.a)(this,pe)}}function he(){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(we){return!1}}var ke=function(we){Object(g.a)(Se,we);var Ce=ye(Se);function Se(le){var pe;Object(c.a)(this,Se),pe=Ce.call(this,le),pe.onHandleClick=function(tt){var gt=pe.props,ct=gt.onHandleClick,je=gt.open;if(ct&&ct(tt),typeof je=="undefined"){var Zt=pe.state.open;pe.setState({open:!Zt})}},pe.onClose=function(tt){var gt=pe.props,ct=gt.onClose,je=gt.open;ct&&ct(tt),typeof je=="undefined"&&pe.setState({open:!1})};var _e=typeof le.open!="undefined"?le.open:!!le.defaultOpen;return pe.state={open:_e},"onMaskClick"in le&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),pe}return Object(h.a)(Se,[{key:"render",value:function(){var pe=this,_e=this.props,tt=_e.defaultOpen,gt=_e.getContainer,ct=_e.wrapperClassName,je=_e.forceRender,Zt=_e.handler,ut=Object(o.a)(_e,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Ht=this.state.open;if(!gt)return n.createElement("div",{className:ct,ref:function(Mt){pe.dom=Mt}},n.createElement(se,Object.assign({},ut,{open:Ht,handler:Zt,getContainer:function(){return pe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var dr=!!Zt||je;return n.createElement(S.a,{visible:Ht,forceRender:dr,getContainer:gt,wrapperClassName:ct},function(Vt){var Mt=Vt.visible,Gt=Vt.afterClose,Ve=Object(o.a)(Vt,["visible","afterClose"]);return n.createElement(se,Object.assign({},ut,Ve,{open:Mt!==void 0?Mt:Ht,afterVisibleChange:Gt!==void 0?Gt:ut.afterVisibleChange,handler:Zt,onClose:pe.onClose,onHandleClick:pe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(pe,_e){var tt=_e.prevProps,gt={prevProps:pe};return typeof tt!="undefined"&&pe.open!==tt.open&&(gt.open=pe.open),gt}}]),Se}(n.Component);ke.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:n.createElement("div",{className:"drawer-handle"},n.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Pe=ke,Ue=Pe,$e=r("1S0Z"),Ge=r.n($e),ht=r("BGR+"),Fe=r("H84U"),oe=r("CWQg"),rt=function(we,Ce){var Se={};for(var le in we)Object.prototype.hasOwnProperty.call(we,le)&&Ce.indexOf(le)<0&&(Se[le]=we[le]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,le=Object.getOwnPropertySymbols(we);pe<le.length;pe++)Ce.indexOf(le[pe])<0&&Object.prototype.propertyIsEnumerable.call(we,le[pe])&&(Se[le[pe]]=we[le[pe]]);return Se},fe=n.createContext(null),J=Object(oe.a)("top","right","bottom","left"),Y={distance:180},$=function(we){s()(Se,we);var Ce=l()(Se);function Se(){var le;return p()(this,Se),le=Ce.apply(this,arguments),le.state={push:!1},le.push=function(){le.props.push&&le.setState({push:!0})},le.pull=function(){le.props.push&&le.setState({push:!1})},le.onDestroyTransitionEnd=function(){var pe=le.getDestroyOnClose();if(!pe)return;le.props.visible||(le.destroyClose=!0,le.forceUpdate())},le.getDestroyOnClose=function(){return le.props.destroyOnClose&&!le.props.visible},le.getPushDistance=function(){var pe=le.props.push,_e;return typeof pe=="boolean"?_e=pe?Y.distance:0:_e=pe.distance,parseFloat(String(_e||0))},le.getPushTransform=function(pe){var _e=le.getPushDistance();if(pe==="left"||pe==="right")return"translateX(".concat(pe==="left"?_e:-_e,"px)");if(pe==="top"||pe==="bottom")return"translateY(".concat(pe==="top"?_e:-_e,"px)")},le.getRcDrawerStyle=function(){var pe=le.props,_e=pe.zIndex,tt=pe.placement,gt=pe.mask,ct=pe.style,je=le.state.push,Zt=gt?{}:le.getOffsetStyle();return A()(A()({zIndex:_e,transform:je?le.getPushTransform(tt):void 0},Zt),ct)},le.renderBody=function(){var pe=le.props,_e=pe.bodyStyle,tt=pe.drawerStyle,gt=pe.prefixCls,ct=pe.visible;if(le.destroyClose&&!ct)return null;le.destroyClose=!1;var je={},Zt=le.getDestroyOnClose();return Zt&&(je.opacity=0,je.transition="opacity .3s"),n.createElement("div",{className:"".concat(gt,"-wrapper-body"),style:A()(A()({},je),tt),onTransitionEnd:le.onDestroyTransitionEnd},le.renderHeader(),n.createElement("div",{className:"".concat(gt,"-body"),style:_e},le.props.children),le.renderFooter())},le.renderProvider=function(pe){return le.parentDrawer=pe,n.createElement(Fe.a,null,function(_e){var tt=_e.getPopupContainer,gt=_e.getPrefixCls,ct=le.props,je=ct.prefixCls,Zt=ct.placement,ut=ct.className,Ht=ct.mask,dr=ct.direction,Vt=ct.visible,Mt=rt(ct,["prefixCls","placement","className","mask","direction","visible"]),Gt=gt("select",je),Ve=T()(ut,f()({"no-mask":!Ht},"".concat(Gt,"-rtl"),dr==="rtl")),me=Ht?le.getOffsetStyle():{};return n.createElement(fe.Provider,{value:i()(le)},n.createElement(Ue,A()({handler:!1},Object(ht.default)(Mt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Mt.getContainer===void 0&&tt?function(){return tt(document.body)}:Mt.getContainer},me,{prefixCls:Gt,open:Vt,showMask:Ht,placement:Zt,style:le.getRcDrawerStyle(),className:Ve}),le.renderBody()))})},le}return u()(Se,[{key:"componentDidMount",value:function(){var pe=this.props.visible;pe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(pe){var _e=this.props.visible;pe.visible!==_e&&this.parentDrawer&&(_e?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var pe=this.props,_e=pe.placement,tt=pe.width,gt=pe.height,ct=pe.visible,je=pe.mask;if(!ct&&!je)return{};var Zt={};return _e==="left"||_e==="right"?Zt.width=tt:Zt.height=gt,Zt}},{key:"renderHeader",value:function(){var pe=this.props,_e=pe.title,tt=pe.prefixCls,gt=pe.closable,ct=pe.headerStyle;if(!_e&&!gt)return null;var je=_e?"".concat(tt,"-header"):"".concat(tt,"-header-no-title");return n.createElement("div",{className:je,style:ct},_e&&n.createElement("div",{className:"".concat(tt,"-title")},_e),gt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var pe=this.props,_e=pe.footer,tt=pe.footerStyle,gt=pe.prefixCls;if(!_e)return null;var ct="".concat(gt,"-footer");return n.createElement("div",{className:ct,style:tt},_e)}},{key:"renderCloseIcon",value:function(){var pe=this.props,_e=pe.closable,tt=pe.closeIcon,gt=tt===void 0?n.createElement(Ge.a,null):tt,ct=pe.prefixCls,je=pe.onClose;return _e&&n.createElement("button",{onClick:je,"aria-label":"Close",className:"".concat(ct,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},gt)}},{key:"render",value:function(){return n.createElement(fe.Consumer,null,this.renderProvider)}}]),Se}(n.Component);$.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var de=L.a=Object(Fe.c)({prefixCls:"drawer"})($)},"/y7N":function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("6GrX"),A=r("7aKB"),m=r("Fofx"),p=r("aX7z"),d=r("+rIm");function u(c){var h=c.get("type"),g=c.getModel(h+"Style"),v;return h==="line"?(v=g.getLineStyle(),v.fill=null):h==="shadow"&&(v=g.getAreaStyle(),v.stroke=null),v}function a(c,h,g,v,b){var S=g.get("value"),E=t(S,h.axis,h.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),C=g.getModel("label"),_=A.normalizeCssArray(C.get("padding")||0),T=C.getFont(),w=x.getBoundingRect(E,T),O=b.position,I=w.width+_[1]+_[3],k=w.height+_[0]+_[2],M=b.align;M==="right"&&(O[0]-=I),M==="center"&&(O[0]-=I/2);var U=b.verticalAlign;U==="bottom"&&(O[1]-=k),U==="middle"&&(O[1]-=k/2),i(O,I,k,v);var P=C.get("backgroundColor");(!P||P==="auto")&&(P=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:I,height:k,r:C.get("borderRadius")},position:O.slice(),style:{text:E,textFont:T,textFill:C.getTextColor(),textPosition:"inside",textPadding:_,fill:P,stroke:C.get("borderColor")||"transparent",lineWidth:C.get("borderWidth")||0,shadowBlur:C.get("shadowBlur"),shadowColor:C.get("shadowColor"),shadowOffsetX:C.get("shadowOffsetX"),shadowOffsetY:C.get("shadowOffsetY")},z2:10}}function i(c,h,g,v){var b=v.getWidth(),S=v.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+g,S)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,h,g,v,b){c=h.scale.parse(c);var S=h.scale.getLabel(c,{precision:b.precision}),E=b.formatter;if(E){var C={value:p.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(v,function(_){var T=g.getSeriesByIndex(_.seriesIndex),w=_.dataIndexInside,O=T&&T.getDataParams(w);O&&C.seriesData.push(O)}),y.isString(E)?S=E.replace("{value}",S):y.isFunction(E)&&(S=E(C))}return S}function s(c,h,g){var v=m.create();return m.rotate(v,v,g.rotation),m.translate(v,v,g.position),f.applyTransform([c.dataToCoord(h),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],v)}function e(c,h,g,v,b,S){var E=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),a(h,v,b,S,{position:s(v.axis,c,g),align:E.textAlign,verticalAlign:E.textVerticalAlign})}function l(c,h,g){return g=g||0,{x1:c[g],y1:c[1-g],x2:h[g],y2:h[1-g]}}function n(c,h,g){return g=g||0,{x:c[g],y:c[1-g],width:h[g],height:h[1-g]}}function o(c,h,g,v,b,S){return{cx:c,cy:h,r0:g,r:v,startAngle:b,endAngle:S,clockwise:!0}}L.buildElStyle=u,L.buildLabelElOption=a,L.getValueLabel=t,L.getTransformedPosition=s,L.buildCartesianSingleLabelElOption=e,L.makeLineShape=l,L.makeRectShape=n,L.makeSectorShape=o},"/zsF":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("bE4E"),A=r.n(x)},"0/Rx":function(R,L){function r(y){return{seriesType:y,reset:function(f,x){var A=x.findComponents({mainType:"legend"});if(!A||!A.length)return;var m=f.getData();m.filterSelf(function(p){for(var d=m.getName(p),u=0;u<A.length;u++)if(!A[u].isSelected(d))return!1;return!0})}}}R.exports=r},"01d+":function(R,L,r){var y=r("bYtY"),f=y.each,x=r("HF/U"),A=x.simpleLayout,m=x.simpleLayoutEdge;function p(d,u){d.eachSeriesByType("graph",function(a){var i=a.get("layout"),t=a.coordinateSystem;if(t&&t.type!=="view"){var s=a.getData(),e=[];f(t.dimensions,function(g){e=e.concat(s.mapDimension(g,!0))});for(var l=0;l<s.count();l++){for(var n=[],o=!1,c=0;c<e.length;c++){var h=s.get(e[c],l);isNaN(h)||(o=!0),n.push(h)}o?s.setItemLayout(l,t.dataToPoint(n)):s.setItemLayout(l,[NaN,NaN])}m(s.graph)}else(!i||i==="none")&&A(a)})}R.exports=p},"03A+":function(R,L,r){var y=r("JTzB"),f=r("ExA7"),x=Object.prototype,A=x.hasOwnProperty,m=x.propertyIsEnumerable,p=y(function(){return arguments}())?y:function(d){return f(d)&&A.call(d,"callee")&&!m.call(d,"callee")};R.exports=p},"06DH":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("Kagy"),A=r("IUWy"),m=x.toolbox.magicType,p="__ec_magicType_stack__";function d(s){this.model=s}d.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:f.clone(m.title),option:{},seriesIndex:{}};var u=d.prototype;u.getIcons=function(){var s=this.model,e=s.get("icon"),l={};return f.each(s.get("type"),function(n){e[n]&&(l[n]=e[n])}),l};var a={line:function(s,e,l,n){if(s==="bar")return f.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},n.get("option.line")||{},!0)},bar:function(s,e,l,n){if(s==="line")return f.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},n.get("option.bar")||{},!0)},stack:function(s,e,l,n){var o=l.get("stack")===p;if(s==="line"||s==="bar")return n.setIconStatus("stack",o?"normal":"emphasis"),f.merge({id:e,stack:o?"":p},n.get("option.stack")||{},!0)}},i=[["line","bar"],["stack"]];u.onclick=function(s,e,l){var n=this.model,o=n.get("seriesIndex."+l);if(!a[l])return;var c={series:[]},h=function(b){var S=b.subType,E=b.id,C=a[l](S,E,b,n);C&&(f.defaults(C,b.option),c.series.push(C));var _=b.coordinateSystem;if(_&&_.type==="cartesian2d"&&(l==="line"||l==="bar")){var T=_.getAxesByScale("ordinal")[0];if(T){var w=T.dim,O=w+"Axis",I=s.queryComponents({mainType:O,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],k=I.componentIndex;c[O]=c[O]||[];for(var M=0;M<=k;M++)c[O][k]=c[O][k]||{};c[O][k].boundaryGap=l==="bar"}}};f.each(i,function(b){f.indexOf(b,l)>=0&&f.each(b,function(S){n.setIconStatus(S,"normal")})}),n.setIconStatus(l,"emphasis"),s.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},h);var g;if(l==="stack"){var v=c.series&&c.series[0]&&c.series[0].stack===p;g=v?f.merge({stack:m.title.tiled},m.title):f.clone(m.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(s,e){e.mergeOption(s.newOption)}),A.register("magicType",d);var t=d;R.exports=t},"06Qe":function(R,L,r){var y=r("ItGF"),f="urn:schemas-microsoft-com:vml",x=typeof window=="undefined"?null:window,A=!1,m=x&&x.document;function p(a){return d(a)}var d;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",f),d=function(i){return m.createElement("<zrvml:"+i+' class="zrvml">')}}catch(a){d=function(t){return m.createElement("<"+t+' xmlns="'+f+'" class="zrvml">')}}function u(){if(A||!m)return;A=!0;var a=m.styleSheets;a.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):a[0].addRule(".zrvml","behavior:url(#default#VML)")}L.doc=m,L.createNode=p,L.initVML=u},"09Wf":function(R,L,r){"use strict";r.d(L,"b",function(){return f}),r.d(L,"a",function(){return x});var y=r("CWQg"),f=Object(y.a)("success","processing","error","default","warning"),x=Object(y.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(R,L,r){var y=r("T4UG"),f=r("I3/A"),x=r("7aKB"),A=x.encodeHTML,m=r("Qxkt"),p=r("Tghj"),d=p.__DEV__,u=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(i,t){for(var s=i.edges||i.links,e=i.data||i.nodes,l=i.levels,n=this.levelModels={},o=0;o<l.length;o++)l[o].depth!=null&&l[o].depth>=0&&(n[l[o].depth]=new m(l[o],this,t));if(e&&s){var c=f(e,s,this,!0,h);return c.data}function h(g,v){g.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getData().getItemLayout(S).depth,T=C.levelModels[_];return T||this.parentModel}),b}),v.wrapMethod("getItemModel",function(b,S){return b.customizeGetParent(function(E){var C=this.parentModel,_=C.getGraph().getEdgeByIndex(S),T=_.node1.getLayout().depth,w=C.levelModels[T];return w||this.parentModel}),b})}},setNodePosition:function(i,t){var s=this.option.data[i];s.localX=t[0],s.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(i,t,s){if(s==="edge"){var e=this.getDataParams(i,s),l=e.data,n=l.source+" -- "+l.target;return e.value&&(n+=" : "+e.value),A(n)}else if(s==="node"){var o=this.getGraph().getNodeByIndex(i),c=o.getLayout().value,h=this.getDataParams(i,s).data.name;if(c)var n=h+" : "+c;return A(n)}return u.superCall(this,"formatTooltip",i,t)},optionUpdated:function(){var i=this.option;i.focusNodeAdjacency===!0&&(i.focusNodeAdjacency="allEdges")},getDataParams:function(i,t){var s=u.superCall(this,"getDataParams",i,t);if(s.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(i),l=e.getLayout().value;s.value=l}return s},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}}),a=u;R.exports=a},"0Cz8":function(R,L,r){var y=r("Xi7e"),f=r("ebwN"),x=r("e4Nc"),A=200;function m(p,d){var u=this.__data__;if(u instanceof y){var a=u.__data__;if(!f||a.length<A-1)return a.push([p,d]),this.size=++u.size,this;u=this.__data__=new x(a)}return u.set(p,d),this.size=u.size,this}R.exports=m},"0HBW":function(R,L,r){var y=r("ProS"),f=r("bYtY");r("Hxpc"),r("7uqq"),r("dmGj"),r("SehX");function x(A,m){m.update="updateView",y.registerAction(m,function(p,d){var u={};return d.eachComponent({mainType:"geo",query:p},function(a){a[A](p.name);var i=a.coordinateSystem;f.each(i.regions,function(t){u[t.name]=a.isSelected(t.name)||!1})}),{selected:u,name:p.name}})}x("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),x("select",{type:"geoSelect",event:"geoselected"}),x("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(R,L,r){var y=r("bYtY"),f=r("+TT/"),x=r("OELB"),A=r("IDmD"),m=864e5;function p(a,i,t){this._model=a}p.prototype={constructor:p,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(a){a=x.parseDate(a);var i=a.getFullYear(),t=a.getMonth()+1;t=t<10?"0"+t:t;var s=a.getDate();s=s<10?"0"+s:s;var e=a.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:i,m:t,d:s,day:e,time:a.getTime(),formatedDate:i+"-"+t+"-"+s,date:a}},getNextNDay:function(a,i){return i=i||0,i===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+i),this.getDateInfo(a))},update:function(a,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var t=this._rangeInfo.weeks||1,s=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),n=this._orient==="horizontal"?[t,7]:[7,t];y.each([0,1],function(g){h(e,g)&&(l[s[g]]=e[g]*n[g])});var o={width:i.getWidth(),height:i.getHeight()},c=this._rect=f.getLayoutRect(l,o);y.each([0,1],function(g){h(e,g)||(e[g]=c[s[g]]/n[g])});function h(g,v){return g[v]!=null&&g[v]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(a,i){y.isArray(a)&&(a=a[0]),i==null&&(i=!0);var t=this.getDateInfo(a),s=this._rangeInfo,e=t.formatedDate;if(i&&!(t.time>=s.start.time&&t.time<s.end.time+m))return[NaN,NaN];var l=t.day,n=this._getRangeInfo([s.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+n*this._sh+this._sh/2]:[this._rect.x+n*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(a){var i=this.pointToDate(a);return i&&i.time},dataToRect:function(a,i){var t=this.dataToPoint(a,i);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pointToDate:function(a){var i=Math.floor((a[0]-this._rect.x)/this._sw)+1,t=Math.floor((a[1]-this._rect.y)/this._sh)+1,s=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,i-1,s):this._getDateByWeeksAndDay(i,t-1,s)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var a=this._model.get("range"),i=a;if(y.isArray(i)&&i.length===1&&(i=i[0]),/^\d{4}$/.test(i)&&(a=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var t=this.getDateInfo(i),s=t.date;s.setMonth(s.getMonth()+1);var e=this.getNextNDay(s,-1);a=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(a=[i,i]);var l=this._getRangeInfo(a);return l.start.time>l.end.time&&a.reverse(),a},_getRangeInfo:function(a){a=[this.getDateInfo(a[0]),this.getDateInfo(a[1])];var i;a[0].time>a[1].time&&(i=!0,a.reverse());var t=Math.floor(a[1].time/m)-Math.floor(a[0].time/m)+1,s=new Date(a[0].time),e=s.getDate(),l=a[1].date.getDate();s.setDate(e+t-1);var n=s.getDate();if(n!==l)for(var o=s.getTime()-a[1].time>0?1:-1;(n=s.getDate())!==l&&(s.getTime()-a[1].time)*o>0;)t-=o,s.setDate(n-o);var c=Math.floor((t+a[0].day+6)/7),h=i?-c+1:c-1;return i&&a.reverse(),{range:[a[0].formatedDate,a[1].formatedDate],start:a[0],end:a[1],allDay:t,weeks:c,nthWeek:h,fweek:a[0].day,lweek:a[1].day}},_getDateByWeeksAndDay:function(a,i,t){var s=this._getRangeInfo(t);if(a>s.weeks||a===0&&i<s.fweek||a===s.weeks&&i>s.lweek)return!1;var e=(a-1)*7-s.fweek+i,l=new Date(s.start.time);return l.setDate(s.start.d+e),this.getDateInfo(l)}},p.dimensions=p.prototype.dimensions,p.getDimensionsInfo=p.prototype.getDimensionsInfo,p.create=function(a,i){var t=[];return a.eachComponent("calendar",function(s){var e=new p(s,a,i);t.push(e),s.coordinateSystem=e}),a.eachSeries(function(s){s.get("coordinateSystem")==="calendar"&&(s.coordinateSystem=t[s.get("calendarIndex")||0])}),t};function d(a,i,t,s){var e=t.calendarModel,l=t.seriesModel,n=e?e.coordinateSystem:l?l.coordinateSystem:null;return n===this?n[a](s):null}A.register("calendar",p);var u=p;R.exports=u},"0JQy":function(R,L){var r="\\ud800-\\udfff",y="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+f+x,m="\\ufe0e\\ufe0f",p="["+r+"]",d="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+d+"|"+u+")",i="[^"+r+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",n="["+m+"]?",o="(?:"+e+"(?:"+[i,t,s].join("|")+")"+n+l+")*",c=n+l+o,h="(?:"+[i+d+"?",d,t,s,p].join("|")+")",g=RegExp(u+"(?="+u+")|"+h+c,"g");function v(b){return b.match(g)||[]}R.exports=v},"0NbB":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={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"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CaretDownOutlined";var d=L.a=f.forwardRef(p)},"0PSX":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("ygfH")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CheckOutlined";var i=A.forwardRef(a);L.default=i},"0V0F":function(R,L,r){var y=r("bYtY"),f=y.createHashMap,x=y.each;function A(p){var d=f();p.eachSeries(function(u){var a=u.get("stack");if(a){var i=d.get(a)||d.set(a,[]),t=u.getData(),s={stackResultDimension:t.getCalculationInfo("stackResultDimension"),stackedOverDimension:t.getCalculationInfo("stackedOverDimension"),stackedDimension:t.getCalculationInfo("stackedDimension"),stackedByDimension:t.getCalculationInfo("stackedByDimension"),isStackedByIndex:t.getCalculationInfo("isStackedByIndex"),data:t,seriesModel:u};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;i.length&&t.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(s)}}),d.each(m)}function m(p){x(p,function(d,u){var a=[],i=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],s=d.data,e=d.isStackedByIndex,l=s.map(t,function(n,o,c){var h=s.get(d.stackedDimension,c);if(isNaN(h))return i;var g,v;e?v=s.getRawIndex(c):g=s.get(d.stackedByDimension,c);for(var b=NaN,S=u-1;S>=0;S--){var E=p[S];if(e||(v=E.data.rawIndexOf(E.stackedByDimension,g)),v>=0){var C=E.data.getByRawIndex(E.stackResultDimension,v);if(h>=0&&C>0||h<=0&&C<0){h+=C,b=C;break}}}return a[0]=h,a[1]=b,a});s.hostModel.setData(l),d.data=l})}R.exports=A},"0XgM":function(R,L,r){},"0ZTe":function(R,L,r){var y=r("wy8a"),f=r("quyA"),x=r("Em2t"),A=r("dt0z");function m(p){return function(d){d=A(d);var u=f(d)?x(d):void 0,a=u?u[0]:d.charAt(0),i=u?y(u,1).join(""):d.slice(1);return a[p]()+i}}R.exports=m},"0dAU":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("X2/X")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="PlusSquareOutlined";var i=A.forwardRef(a);L.default=i},"0fbx":function(R,L,r){},"0o9m":function(R,L,r){var y=r("ProS");r("hNWo"),r("RlCK"),r("XpcN");var f=r("kDyi"),x=r("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,f),x.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(R,L,r){var y=r("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(R,L){var r=arguments[3],y=arguments[4],f=arguments[5],x=JSON.stringify;R.exports=function(A,m){for(var p,d=Object.keys(f),u=0,a=d.length;u<a;u++){var i=d[u],t=f[i].exports;if(t===A||t&&t.default===A){p=i;break}}if(!p){p=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var s={},u=0,a=d.length;u<a;u++){var i=d[u];s[i]=i}y[p]=["function(require,module,exports){"+A+"(self); }",s]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[p]=p,y[e]=["function(require,module,exports){var f = require("+x(p)+");(f.default ? f.default : f)(self);}",l];var n={};o(e);function o(S){n[S]=!0;for(var E in y[S][1]){var C=y[S][1][E];n[C]||o(C)}}var c="("+r+")({"+Object.keys(n).map(function(S){return x(S)+":["+y[S][0]+","+x(y[S][1])+"]"}).join(",")+"},{},["+x(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var v=h.createObjectURL(g),b=new Worker(v);return b.objectURL=v,b}},"0s+r":function(R,L,r){var y=r("bYtY"),f=r("QBsz"),x=r("y23F"),A=r("H6uX"),m=r("YH21"),p=r("C0SR"),d="silent";function u(o,c,h){return{type:o,event:h,target:c.target,topTarget:c.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:a}}function a(){m.stop(this.event)}function i(){}i.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],s=function(c,h,g,v){A.call(this),this.storage=c,this.painter=h,this.painterRoot=v,g=g||new i,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,x.call(this),this.setHandlerProxy(g)};s.prototype={constructor:s,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(y.each(t,function(h){c.on&&c.on(h,this[h],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var h=c.zrX,g=c.zrY,v=l(this,h,g),b=this._hovered,S=b.target;S&&!S.__zr&&(b=this.findHover(b.x,b.y),S=b.target);var E=this._hovered=v?{x:h,y:g}:this.findHover(h,g),C=E.target,_=this.proxy;_.setCursor&&_.setCursor(C?C.cursor:"default"),S&&C!==S&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(E,"mousemove",c),C&&C!==S&&this.dispatchToElement(E,"mouseover",c)},mouseout:function(c){var h=c.zrEventControl,g=c.zrIsToLocalDOM;h!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),h!=="no_globalout"&&(!g&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,h){var g=this[c];g&&g.call(this,h)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var h=this.proxy;h.setCursor&&h.setCursor(c)},dispatchToElement:function(c,h,g){c=c||{};var v=c.target;if(v&&v.silent)return;for(var b="on"+h,S=u(h,c,g);v&&!(v[b]&&(S.cancelBubble=v[b].call(v,S)),v.trigger(h,S),v=v.parent,S.cancelBubble););S.cancelBubble||(this.trigger(h,S),this.painter&&this.painter.eachOtherLayer(function(E){typeof E[b]=="function"&&E[b].call(E,S),E.trigger&&E.trigger(h,S)}))},findHover:function(c,h,g){for(var v=this.storage.getDisplayList(),b={x:c,y:h},S=v.length-1;S>=0;S--){var E;if(v[S]!==g&&!v[S].ignore&&(E=e(v[S],c,h))&&(!b.topTarget&&(b.topTarget=v[S]),E!==d)){b.target=v[S];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new p);var g=this._gestureMgr;h==="start"&&g.clear();var v=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&g.clear(),v){var b=v.type;c.gestureEvent=b,this.dispatchToElement({target:v.target},b,v.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){s.prototype[o]=function(c){var h=c.zrX,g=c.zrY,v=l(this,h,g),b,S;if((o!=="mouseup"||!v)&&(b=this.findHover(h,g),S=b.target),o==="mousedown")this._downEl=S,this._downPoint=[c.zrX,c.zrY],this._upEl=S;else if(o==="mouseup")this._upEl=S;else if(o==="click"){if(this._downEl!==this._upEl||!this._downPoint||f.dist(this._downPoint,[c.zrX,c.zrY])>4)return;this._downPoint=null}this.dispatchToElement(b,o,c)}});function e(o,c,h){if(o[o.rectHover?"rectContain":"contain"](c,h)){for(var g=o,v;g;){if(g.clipPath&&!g.clipPath.contain(c,h))return!1;g.silent&&(v=!0),g=g.parent}return v?d:!0}return!1}function l(o,c,h){var g=o.painter;return c<0||c>g.getWidth()||h<0||h>g.getHeight()}y.mixin(s,A),y.mixin(s,x);var n=s;R.exports=n},"0ycA":function(R,L){function r(){return[]}R.exports=r},"10cm":function(R,L,r){var y=r("ProS"),f=r("2B6p"),x=f.updateCenterAndZoom;r("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(A,function(m,p){p.eachComponent({mainType:"series",query:m},function(d){var u=d.coordinateSystem,a=x(u,m);d.setCenter&&d.setCenter(a.center),d.setZoom&&d.setZoom(a.zoom)})})},"15/o":function(R,L,r){},"19Vz":function(R,L,r){(function(y){y(r("VrN/"))})(function(y){y.defineOption("placeholder","",function(u,a,i){var t=i&&i!=y.Init;if(a&&!t)u.on("blur",m),u.on("change",p),u.on("swapDoc",p),y.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){A(u)}),p(u);else if(!a&&t){u.off("blur",m),u.off("change",p),u.off("swapDoc",p),y.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),f(u);var s=u.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}a&&!u.hasFocus()&&m(u)});function f(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function x(u){f(u);var a=u.state.placeholder=document.createElement("pre");a.style.cssText="height: 0; overflow: visible",a.style.direction=u.getOption("direction"),a.className="CodeMirror-placeholder CodeMirror-line-like";var i=u.getOption("placeholder");typeof i=="string"&&(i=document.createTextNode(i)),a.appendChild(i),u.display.lineSpace.insertBefore(a,u.display.lineSpace.firstChild)}function A(u){setTimeout(function(){var a=!1,i=u.getInputField();i.nodeName=="TEXTAREA"?a=!i.value:u.lineCount()==1&&(a=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),a?x(u):f(u)},20)}function m(u){d(u)&&x(u)}function p(u){var a=u.getWrapperElement(),i=d(u);a.className=a.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?x(u):f(u)}function d(u){return u.lineCount()===1&&u.getLine(0)===""}})},"1Jh7":function(R,L,r){var y=r("y+Vt"),f=r("T6xi"),x=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,p){f.buildPath(m,p,!1)}});R.exports=x},"1LEl":function(R,L,r){var y=r("ProS"),f=r("F9bG"),x=y.extendComponentView({type:"axisPointer",render:function(m,p,d){var u=p.getComponent("tooltip"),a=m.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";f.register("axisPointer",d,function(i,t,s){a!=="none"&&(i==="leave"||a.indexOf(i)>=0)&&s({type:"updateAxisPointer",currTrigger:i,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,p){f.unregister(p.getZr(),"axisPointer"),x.superApply(this._model,"remove",arguments)},dispose:function(m,p){f.unregister("axisPointer",p),x.superApply(this._model,"dispose",arguments)}}),A=x;R.exports=A},"1MYJ":function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,m=this.shape.paths,p=0;p<m.length;p++)A=A||m[p].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],m=this.getGlobalScale(),p=0;p<A.length;p++)A[p].path||A[p].createPathProxy(),A[p].path.setScale(m[0],m[1],A[p].segmentIgnoreThreshold)},buildPath:function(A,m){for(var p=m.paths||[],d=0;d<p.length;d++)p[d].buildPath(A,p[d].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],m=0;m<A.length;m++)A[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});R.exports=f},"1NG9":function(R,L,r){var y=r("y+Vt"),f=r("QBsz"),x=r("iXp4"),A=f.min,m=f.max,p=f.scaleAndAdd,d=f.copy,u=[],a=[],i=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function s(h,g,v,b,S,E,C,_,T,w,O){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(h,g,v,b,S,E,C,_,T,w,O){for(var I=0,k=v,M=0;M<b;M++){var U=g[k];if(k>=S||k<0)break;if(t(U)){if(O){k+=E;continue}break}if(k===v)h[E>0?"moveTo":"lineTo"](U[0],U[1]);else if(T>0){var P=g[I],X=w==="y"?1:0,F=(U[X]-P[X])*T;d(a,P),a[X]=P[X]+F,d(i,U),i[X]=U[X]-F,h.bezierCurveTo(a[0],a[1],i[0],i[1],U[0],U[1])}else h.lineTo(U[0],U[1]);I=k,k+=E}return M}function l(h,g,v,b,S,E,C,_,T,w,O){for(var I=0,k=v,M=0;M<b;M++){var U=g[k];if(k>=S||k<0)break;if(t(U)){if(O){k+=E;continue}break}if(k===v)h[E>0?"moveTo":"lineTo"](U[0],U[1]),d(a,U);else if(T>0){var P=k+E,X=g[P];if(O)for(;X&&t(g[P]);)P+=E,X=g[P];var F=.5,j=g[I],X=g[P];if(!X||t(X))d(i,U);else{t(X)&&!O&&(X=U),f.sub(u,X,j);var K,z;if(w==="x"||w==="y"){var V=w==="x"?0:1;K=Math.abs(U[V]-j[V]),z=Math.abs(U[V]-X[V])}else K=f.dist(U,j),z=f.dist(U,X);F=z/(z+K),p(i,U,u,-T*(1-F))}A(a,a,_),m(a,a,C),A(i,i,_),m(i,i,C),h.bezierCurveTo(a[0],a[1],i[0],i[1],U[0],U[1]),p(a,U,u,T*F)}else h.lineTo(U[0],U[1]);I=k,k+=E}return M}function n(h,g){var v=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var S=0;S<h.length;S++){var E=h[S];E[0]<v[0]&&(v[0]=E[0]),E[1]<v[1]&&(v[1]=E[1]),E[0]>b[0]&&(b[0]=E[0]),E[1]>b[1]&&(b[1]=E[1])}return{min:g?v:b,max:g?b:v}}var o=y.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:x(y.prototype.brush),buildPath:function(h,g){var v=g.points,b=0,S=v.length,E=n(v,g.smoothConstraint);if(g.connectNulls){for(;S>0&&t(v[S-1]);S--);for(;b<S&&t(v[b]);b++);}for(;b<S;)b+=s(h,v,b,S,S,1,E.min,E.max,g.smooth,g.smoothMonotone,g.connectNulls)+1}}),c=y.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:x(y.prototype.brush),buildPath:function(h,g){var v=g.points,b=g.stackedOnPoints,S=0,E=v.length,C=g.smoothMonotone,_=n(v,g.smoothConstraint),T=n(b,g.smoothConstraint);if(g.connectNulls){for(;E>0&&t(v[E-1]);E--);for(;S<E&&t(v[S]);S++);}for(;S<E;){var w=s(h,v,S,E,E,1,_.min,_.max,g.smooth,C,g.connectNulls);s(h,b,S+w-1,w,E,-1,T.min,T.max,g.stackedOnSmooth,C,g.connectNulls),S+=w+1,h.closePath()}}});L.Polyline=o,L.Polygon=c},"1PJx":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("XuBP")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="DownOutlined";var i=A.forwardRef(a);L.default=i},"1RvN":function(R,L){var r=function(){this.head=null,this.tail=null,this._len=0},y=r.prototype;y.insert=function(p){var d=new f(p);return this.insertEntry(d),d},y.insertEntry=function(p){this.head?(this.tail.next=p,p.prev=this.tail,p.next=null,this.tail=p):this.head=this.tail=p,this._len++},y.remove=function(p){var d=p.prev,u=p.next;d?d.next=u:this.head=u,u?u.prev=d:this.tail=d,p.next=p.prev=null,this._len--},y.len=function(){return this._len},y.clear=function(){this.head=this.tail=null,this._len=0};var f=function(d){this.value=d,this.next,this.prev},x=function(d){this._list=new r,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},A=x.prototype;A.put=function(p,d){var u=this._list,a=this._map,i=null;if(a[p]==null){var t=u.len(),s=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=u.head;u.remove(e),delete a[e.key],i=e.value,this._lastRemovedEntry=e}s?s.value=d:s=new f(d),s.key=p,u.insertEntry(s),a[p]=s}return i},A.get=function(p){var d=this._map[p],u=this._list;if(d!=null)return d!==u.tail&&(u.remove(d),u.insertEntry(d)),d.value},A.clear=function(){this._list.clear(),this._map={}};var m=x;R.exports=m},"1bdT":function(R,L,r){var y=r("3gBT"),f=r("H6uX"),x=r("DN4a"),A=r("vWvF"),m=r("bYtY"),p=function(a){x.call(this,a),f.call(this,a),A.call(this,a),this.id=a.id||y()};p.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(a,i){switch(this.draggable){case"horizontal":i=0;break;case"vertical":a=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=a,t[5]+=i,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(a,i){},attrKV:function(a,i){if(a==="position"||a==="scale"||a==="origin"){if(i){var t=this[a];t||(t=this[a]=[]),t[0]=i[0],t[1]=i[1]}}else this[a]=i},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(a,i){if(typeof a=="string")this.attrKV(a,i);else if(m.isObject(a))for(var t in a)a.hasOwnProperty(t)&&this.attrKV(t,a[t]);return this.dirty(!1),this},setClipPath:function(a){var i=this.__zr;i&&a.addSelfToZr(i),this.clipPath&&this.clipPath!==a&&this.removeClipPath(),this.clipPath=a,a.__zr=i,a.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var a=this.clipPath;a&&(a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(a){this.__zr=a;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.addAnimator(i[t]);this.clipPath&&this.clipPath.addSelfToZr(a)},removeSelfFromZr:function(a){this.__zr=null;var i=this.animators;if(i)for(var t=0;t<i.length;t++)a.animation.removeAnimator(i[t]);this.clipPath&&this.clipPath.removeSelfFromZr(a)}},m.mixin(p,A),m.mixin(p,x),m.mixin(p,f);var d=p;R.exports=d},"1dTM":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=r("GQ8N"),f=w(r("Lo0S")),x=r("VSMT"),A=r("GdRQ"),m=r("SZEN"),p=r("vewr"),d=_(r("YJ9k")),u=_(r("MZdM")),a=_(r("ItS6")),i=_(r("whVF")),t=_(r("Fv0C")),s=_(r("LCi9")),e=_(r("rwxt")),l=_(r("Mmt2")),n=_(r("iUHT")),o=_(r("mHUz")),c=_(r("P2ho")),h=r("NBmB");r("mdZa");var g=_(r("34/K")),v=_(r("hXwI")),b=_(r("SgaC")),S=_(r("3690")),E=_(r("8K/p")),C=_(r("xO64"));function _(de){return de&&de.__esModule?de:{default:de}}function T(){if(typeof WeakMap!="function")return null;var de=new WeakMap;return T=function(){return de},de}function w(de){if(de&&de.__esModule)return de;if(de===null||O(de)!=="object"&&typeof de!="function")return{default:de};var we=T();if(we&&we.has(de))return we.get(de);var Ce={},Se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var le in de)if(Object.prototype.hasOwnProperty.call(de,le)){var pe=Se?Object.getOwnPropertyDescriptor(de,le):null;pe&&(pe.get||pe.set)?Object.defineProperty(Ce,le,pe):Ce[le]=de[le]}return Ce.default=de,we&&we.set(de,Ce),Ce}function O(de){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ce){return typeof Ce}:O=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},O(de)}function I(de,we){if(!(de instanceof we))throw new TypeError("Cannot call a class as a function")}function k(de,we){for(var Ce=0;Ce<we.length;Ce++){var Se=we[Ce];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(de,Se.key,Se)}}function M(de,we,Ce){return we&&k(de.prototype,we),Ce&&k(de,Ce),de}function U(de,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");de.prototype=Object.create(we&&we.prototype,{constructor:{value:de,writable:!0,configurable:!0}}),we&&P(de,we)}function P(de,we){return P=Object.setPrototypeOf||function(Se,le){return Se.__proto__=le,Se},P(de,we)}function X(de){var we=K();return function(){var Se=z(de),le;if(we){var pe=z(this).constructor;le=Reflect.construct(Se,arguments,pe)}else le=Se.apply(this,arguments);return F(this,le)}}function F(de,we){return we&&(O(we)==="object"||typeof we=="function")?we:j(de)}function j(de){if(de===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return de}function K(){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(de){return!1}}function z(de){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},z(de)}var V=3,Q="rgb(40, 40, 40)",G=17,ee=50,se=19,ye=75,he=50,ke=1e3,Pe=50,Ue=1,$e=1<<1,Ge=1<<2,ht=1<<3,Fe=1<<4,oe=1<<24,rt=1<<25,fe=1<<26,J=1<<27,Y=1<<28,$=function(de){U(Ce,de);var we=X(Ce);function Ce(Se,le,pe){var _e;if(I(this,Ce),!Se)throw new Error("Must specify target");if(!le)throw new Error("Must specify URL");_e=we.call(this),_e._target=Se,_e._url=le,pe=pe||{},_e._rfbCredentials=pe.credentials||{},_e._shared="shared"in pe?!!pe.shared:!0,_e._repeaterID=pe.repeaterID||"",_e._wsProtocols=pe.wsProtocols||[],_e._rfbConnectionState="",_e._rfbInitState="",_e._rfbAuthScheme=-1,_e._rfbCleanDisconnect=!0,_e._rfbVersion=0,_e._rfbMaxVersion=3.8,_e._rfbTightVNC=!1,_e._rfbVeNCryptState=0,_e._rfbXvpVer=0,_e._fbWidth=0,_e._fbHeight=0,_e._fbName="",_e._capabilities={power:!1},_e._supportsFence=!1,_e._supportsContinuousUpdates=!1,_e._enabledContinuousUpdates=!1,_e._supportsSetDesktopSize=!1,_e._screenID=0,_e._screenFlags=0,_e._qemuExtKeyEventSupported=!1,_e._clipboardText=null,_e._clipboardServerCapabilitiesActions={},_e._clipboardServerCapabilitiesFormats={},_e._sock=null,_e._display=null,_e._flushing=!1,_e._keyboard=null,_e._gestures=null,_e._disconnTimer=null,_e._resizeTimeout=null,_e._mouseMoveTimer=null,_e._decoders={},_e._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},_e._mousePos={},_e._mouseButtonMask=0,_e._mouseLastMoveTime=0,_e._viewportDragging=!1,_e._viewportDragPos={},_e._viewportHasMoved=!1,_e._accumulatedWheelDeltaX=0,_e._accumulatedWheelDeltaY=0,_e._gestureLastTapTime=null,_e._gestureFirstDoubleTapEv=null,_e._gestureLastMagnitudeX=0,_e._gestureLastMagnitudeY=0,_e._eventHandlers={focusCanvas:_e._focusCanvas.bind(j(_e)),windowResize:_e._windowResize.bind(j(_e)),handleMouse:_e._handleMouse.bind(j(_e)),handleWheel:_e._handleWheel.bind(j(_e)),handleGesture:_e._handleGesture.bind(j(_e))},f.Debug(">> RFB.constructor"),_e._screen=document.createElement("div"),_e._screen.style.display="flex",_e._screen.style.width="100%",_e._screen.style.height="100%",_e._screen.style.overflow="auto",_e._screen.style.background=Q,_e._canvas=document.createElement("canvas"),_e._canvas.style.margin="auto",_e._canvas.style.outline="none",_e._canvas.style.flexShrink="0",_e._canvas.width=0,_e._canvas.height=0,_e._canvas.tabIndex=-1,_e._screen.appendChild(_e._canvas),_e._cursor=new e.default,_e._cursorImage=Ce.cursors.none,_e._decoders[h.encodings.encodingRaw]=new g.default,_e._decoders[h.encodings.encodingCopyRect]=new v.default,_e._decoders[h.encodings.encodingRRE]=new b.default,_e._decoders[h.encodings.encodingHextile]=new S.default,_e._decoders[h.encodings.encodingTight]=new E.default,_e._decoders[h.encodings.encodingTightPNG]=new C.default;try{_e._display=new u.default(_e._canvas)}catch(tt){throw f.Error("Display exception: "+tt),tt}return _e._display.onflush=_e._onFlush.bind(j(_e)),_e._keyboard=new t.default(_e._canvas),_e._keyboard.onkeyevent=_e._handleKeyEvent.bind(j(_e)),_e._gestures=new s.default,_e._sock=new l.default,_e._sock.on("message",function(){_e._handleMessage()}),_e._sock.on("open",function(){_e._rfbConnectionState==="connecting"&&_e._rfbInitState===""?(_e._rfbInitState="ProtocolVersion",f.Debug("Starting VNC handshake")):_e._fail("Unexpected server connection while "+_e._rfbConnectionState)}),_e._sock.on("close",function(tt){f.Debug("WebSocket on-close event");var gt="";tt.code&&(gt="(code: "+tt.code,tt.reason&&(gt+=", reason: "+tt.reason),gt+=")");switch(_e._rfbConnectionState){case"connecting":_e._fail("Connection closed "+gt);break;case"connected":_e._updateConnectionState("disconnecting"),_e._updateConnectionState("disconnected");break;case"disconnecting":_e._updateConnectionState("disconnected");break;case"disconnected":_e._fail("Unexpected server disconnect when already disconnected "+gt);break;default:_e._fail("Unexpected server disconnect before connecting "+gt);break}_e._sock.off("close")}),_e._sock.on("error",function(tt){return f.Warn("WebSocket on-error event")}),setTimeout(_e._updateConnectionState.bind(j(_e),"connecting")),f.Debug("<< RFB.constructor"),_e.dragViewport=!1,_e.focusOnClick=!0,_e._viewOnly=!1,_e._clipViewport=!1,_e._scaleViewport=!1,_e._resizeSession=!1,_e._showDotCursor=!1,pe.showDotCursor!==void 0&&(f.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),_e._showDotCursor=pe.showDotCursor),_e._qualityLevel=6,_e._compressionLevel=2,_e}return M(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(le){this._rfbCredentials=le,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(o.default.XK_Control_L,"ControlLeft",!0),this.sendKey(o.default.XK_Alt_L,"AltLeft",!0),this.sendKey(o.default.XK_Delete,"Delete",!0),this.sendKey(o.default.XK_Delete,"Delete",!1),this.sendKey(o.default.XK_Alt_L,"AltLeft",!1),this.sendKey(o.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(le,pe,_e){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(_e===void 0){this.sendKey(le,pe,!0),this.sendKey(le,pe,!1);return}var tt=c.default[pe];if(this._qemuExtKeyEventSupported&&tt)le=le||0,f.Info("Sending key ("+(_e?"down":"up")+"): keysym "+le+", scancode "+tt),Ce.messages.QEMUExtendedKeyEvent(this._sock,le,_e,tt);else{if(!le)return;f.Info("Sending keysym ("+(_e?"down":"up")+"): "+le),Ce.messages.keyEvent(this._sock,le,_e?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Ue]&&this._clipboardServerCapabilitiesActions[J])this._clipboardText=le,Ce.messages.extendedClipboardNotify(this._sock,[Ue]);else{for(var pe=new Uint8Array(le.length),_e=0;_e<le.length;_e++)pe[_e]=le.charCodeAt(_e);Ce.messages.clientCutText(this._sock,pe)}}},{key:"_connect",value:function(){f.Debug(">> RFB.connect"),f.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(le){le.name==="SyntaxError"?this._fail("Invalid host or port ("+le+")"):this._fail("Error when opening socket ("+le+")")}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(le){if(!(le.name==="NotFoundError"))throw le}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),f.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(le){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(le){this._fbName=le,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(le){var pe=this;window.requestAnimationFrame(function(){pe._updateClip(),pe._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var le=this._display.clipViewport,pe=this._clipViewport;if(this._scaleViewport&&(pe=!1),le!==pe&&(this._display.clipViewport=pe),pe){var _e=this._screenSize();this._display.viewportChangeSize(_e.w,_e.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var le=this._screenSize();this._display.autoscale(le.w,le.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var le=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(le.w),Math.floor(le.h),this._screenID,this._screenFlags),f.Debug("Requested new desktop size: "+le.w+"x"+le.h)}},{key:"_screenSize",value:function(){var le=this._screen.getBoundingClientRect();return{w:le.width,h:le.height}}},{key:"_fixScrollbars",value:function(){var le=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=le}},{key:"_updateConnectionState",value:function(le){var pe=this,_e=this._rfbConnectionState;if(le===_e){f.Debug("Already in state '"+le+"', ignoring");return}if(_e==="disconnected"){f.Error("Tried changing state of a disconnected RFB object");return}switch(le){case"connected":if(_e!=="connecting"){f.Error("Bad transition to connected state, previous connection state: "+_e);return}break;case"disconnected":if(_e!=="disconnecting"){f.Error("Bad transition to disconnected state, previous connection state: "+_e);return}break;case"connecting":if(_e!==""){f.Error("Bad transition to connecting state, previous connection state: "+_e);return}break;case"disconnecting":if(_e!=="connected"&&_e!=="connecting"){f.Error("Bad transition to disconnecting state, previous connection state: "+_e);return}break;default:f.Error("Unknown connection state: "+le);return}this._rfbConnectionState=le,f.Debug("New state '"+le+"', was '"+_e+"'."),this._disconnTimer&&le!=="disconnecting"&&(f.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(le){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."),pe._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(le){switch(this._rfbConnectionState){case"disconnecting":f.Error("Failed when disconnecting: "+le);break;case"connected":f.Error("Failed while connected: "+le);break;case"connecting":f.Error("Failed when connecting: "+le);break;default:f.Error("RFB failure: "+le);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(le,pe){this._capabilities[le]=pe,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(le,pe,_e){this.sendKey(le,pe,_e)}},{key:"_handleMouse",value:function(le){if(le.type==="click"&&le.target!==this._canvas)return;if(le.stopPropagation(),le.preventDefault(),le.type==="click"||le.type==="contextmenu")return;var pe=(0,m.clientToElement)(le.clientX,le.clientY,this._canvas);switch(le.type){case"mousedown":(0,p.setCapture)(this._canvas),this._handleMouseButton(pe.x,pe.y,!0,1<<le.button);break;case"mouseup":this._handleMouseButton(pe.x,pe.y,!1,1<<le.button);break;case"mousemove":this._handleMouseMove(pe.x,pe.y);break}}},{key:"_handleMouseButton",value:function(le,pe,_e,tt){if(this.dragViewport)if(_e&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:le,y:pe},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(le,pe,tt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(le,pe,this._mouseButtonMask)),_e?this._mouseButtonMask|=tt:this._mouseButtonMask&=~tt,this._sendMouse(le,pe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(le,pe){var _e=this;if(this._viewportDragging){var tt=this._viewportDragPos.x-le,gt=this._viewportDragPos.y-pe;(this._viewportHasMoved||Math.abs(tt)>A.dragThreshold||Math.abs(gt)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:le,y:pe},this._display.viewportChangePos(tt,gt));return}if(this._mousePos={x:le,y:pe},this._mouseMoveTimer==null){var ct=Date.now()-this._mouseLastMoveTime;ct>G?(this._sendMouse(le,pe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){_e._handleDelayedMouseMove()},G-ct)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(le,pe,_e){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(le),this._display.absY(pe),_e)}},{key:"_handleWheel",value:function(le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;le.stopPropagation(),le.preventDefault();var pe=(0,m.clientToElement)(le.clientX,le.clientY,this._canvas),_e=le.deltaX,tt=le.deltaY;le.deltaMode!==0&&(_e*=se,tt*=se),this._accumulatedWheelDeltaX+=_e,this._accumulatedWheelDeltaY+=tt,Math.abs(this._accumulatedWheelDeltaX)>=ee&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(pe.x,pe.y,!0,1<<5),this._handleMouseButton(pe.x,pe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(pe.x,pe.y,!0,1<<6),this._handleMouseButton(pe.x,pe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=ee&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(pe.x,pe.y,!0,1<<3),this._handleMouseButton(pe.x,pe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(pe.x,pe.y,!0,1<<4),this._handleMouseButton(pe.x,pe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(le,pe,_e){this._handleMouseMove(pe,_e),this._cursor.move(le.detail.clientX,le.detail.clientY)}},{key:"_handleTapEvent",value:function(le,pe){var _e=(0,m.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ke&&this._gestureFirstDoubleTapEv.detail.type===le.detail.type){var tt=this._gestureFirstDoubleTapEv.detail.clientX-le.detail.clientX,gt=this._gestureFirstDoubleTapEv.detail.clientY-le.detail.clientY,ct=Math.hypot(tt,gt);ct<Pe?_e=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=le}else this._gestureFirstDoubleTapEv=le;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,pe),this._handleMouseButton(_e.x,_e.y,!1,pe)}},{key:"_handleGesture",value:function(le){var pe,_e=(0,m.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);switch(le.type){case"gesturestart":switch(le.detail.type){case"onetap":this._handleTapEvent(le,1);break;case"twotap":this._handleTapEvent(le,4);break;case"threetap":this._handleTapEvent(le,2);break;case"drag":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,1);break;case"longpress":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=le.detail.magnitudeX,this._gestureLastMagnitudeY=le.detail.magnitudeY,this._fakeMouseMove(le,_e.x,_e.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),this._fakeMouseMove(le,_e.x,_e.y);break}break;case"gesturemove":switch(le.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(le,_e.x,_e.y);break;case"twodrag":for(this._fakeMouseMove(le,_e.x,_e.y);le.detail.magnitudeY-this._gestureLastMagnitudeY>he;)this._handleMouseButton(_e.x,_e.y,!0,8),this._handleMouseButton(_e.x,_e.y,!1,8),this._gestureLastMagnitudeY+=he;for(;le.detail.magnitudeY-this._gestureLastMagnitudeY<-he;)this._handleMouseButton(_e.x,_e.y,!0,16),this._handleMouseButton(_e.x,_e.y,!1,16),this._gestureLastMagnitudeY-=he;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX>he;)this._handleMouseButton(_e.x,_e.y,!0,32),this._handleMouseButton(_e.x,_e.y,!1,32),this._gestureLastMagnitudeX+=he;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX<-he;)this._handleMouseButton(_e.x,_e.y,!0,64),this._handleMouseButton(_e.x,_e.y,!1,64),this._gestureLastMagnitudeX-=he;break;case"pinch":if(this._fakeMouseMove(le,_e.x,_e.y),pe=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),Math.abs(pe-this._gestureLastMagnitudeX)>ye){for(this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!0);pe-this._gestureLastMagnitudeX>ye;)this._handleMouseButton(_e.x,_e.y,!0,8),this._handleMouseButton(_e.x,_e.y,!1,8),this._gestureLastMagnitudeX+=ye;for(;pe-this._gestureLastMagnitudeX<-ye;)this._handleMouseButton(_e.x,_e.y,!0,16),this._handleMouseButton(_e.x,_e.y,!1,16),this._gestureLastMagnitudeX-=ye}this._handleKeyEvent(o.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(le.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!1,1);break;case"longpress":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var le=this._sock.rQshiftStr(12).substr(4,7);f.Info("Server ProtocolVersion: "+le);var pe=0;switch(le){case"000.000":pe=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 "+le)}if(pe){for(var _e="ID:"+this._repeaterID;_e.length<250;)_e+="\0";return this._sock.sendString(_e),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var tt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+tt+`
`),f.Debug("Sent ProtocolVersion: "+tt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function le(tt,gt){for(var ct=0;ct<gt.length;ct++)if(gt[ct]===tt)return!0;return!1}if(this._rfbVersion>=3.7){var pe=this._sock.rQshift8();if(this._sock.rQwait("security type",pe,1))return!1;if(pe===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var _e=this._sock.rQshiftBytes(pe);if(f.Debug("Server security types: "+_e),le(1,_e))this._rfbAuthScheme=1;else if(le(22,_e))this._rfbAuthScheme=22;else if(le(16,_e))this._rfbAuthScheme=16;else if(le(2,_e))this._rfbAuthScheme=2;else if(le(19,_e))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+_e+")");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 le=this._sock.rQshift32(),pe="";if(le>0){if(this._sock.rQwait("reason",le,4))return!1;pe=this._sock.rQshiftStr(le)}return pe!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:pe}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+pe+")")):(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 le=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(le),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var le=this._sock.rQshift8(),pe=this._sock.rQshift8();if(!(le==0&&pe==2))return this._fail("Unsupported VeNCrypt version "+le+"."+pe);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var _e=this._sock.rQshift8();if(_e!=0)return this._fail("VeNCrypt failure "+_e);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var tt=this._sock.rQshift8();if(tt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=tt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var gt=[],ct=0;ct<this._rfbVeNCryptSubtypesLength;ct++)gt.push(this._sock.rQshift32());if(gt.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var je=(0,x.encodeUTF8)(this._rfbCredentials.username),Zt=(0,x.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,je.length]),this._sock.send([0,0,0,Zt.length]),this._sock.sendString(je),this._sock.sendString(Zt),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var le=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),pe=Ce.genDES(this._rfbCredentials.password,le);return this._sock.send(pe),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(le){for(var pe={0:{vendor:"TGHT",signature:"NOTUNNEL"}},_e={},tt=0;tt<le;tt++){var gt=this._sock.rQshift32(),ct=this._sock.rQshiftStr(4),je=this._sock.rQshiftStr(8);_e[gt]={vendor:ct,signature:je}}return f.Debug("Server Tight tunnel types: "+_e),_e[1]&&_e[1].vendor==="SICR"&&_e[1].signature==="SCHANNEL"&&(f.Debug("Detected Siemens server. Assuming NOTUNNEL support."),_e[0]={vendor:"TGHT",signature:"NOTUNNEL"}),_e[0]?_e[0].vendor!=pe[0].vendor||_e[0].signature!=pe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(f.Debug("Selected tunnel type: "+pe[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var le=this._sock.rQshift32();if(le>0&&this._sock.rQwait("tunnel capabilities",16*le,4))return!1;if(this._rfbTightVNC=!0,le>0)return this._negotiateTightTunnels(le),!1}if(this._sock.rQwait("sub auth count",4))return!1;var pe=this._sock.rQshift32();if(pe===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*pe,4))return!1;for(var _e={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},tt=[],gt=0;gt<pe;gt++){this._sock.rQshift32();var ct=this._sock.rQshiftStr(12);tt.push(ct)}f.Debug("Server Tight authentication types: "+tt);for(var je in _e)if(tt.indexOf(je)!=-1){this._sock.send([0,0,0,_e[je]]),f.Debug("Selected authentication type: "+je);switch(je){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+je+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=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 le=this._sock.rQshift32();return le===0?(this._rfbInitState="ClientInitialisation",f.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=le,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:le}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var le=this._sock.rQshift16(),pe=this._sock.rQshift16(),_e=this._sock.rQshift8(),tt=this._sock.rQshift8(),gt=this._sock.rQshift8(),ct=this._sock.rQshift8(),je=this._sock.rQshift16(),Zt=this._sock.rQshift16(),ut=this._sock.rQshift16(),Ht=this._sock.rQshift8(),dr=this._sock.rQshift8(),Vt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Mt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Mt,24))return!1;var Gt=this._sock.rQshiftStr(Mt);if(Gt=(0,x.decodeUTF8)(Gt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Mt))return!1;var Ve=this._sock.rQshift16(),me=this._sock.rQshift16(),te=this._sock.rQshift16();this._sock.rQskipBytes(2);var Ze=(Ve+me+te)*16;if(this._sock.rQwait("TightVNC extended server init header",Ze,32+Mt))return!1;this._sock.rQskipBytes(16*Ve),this._sock.rQskipBytes(16*me),this._sock.rQskipBytes(16*te)}return f.Info("Screen: "+le+"x"+pe+", bpp: "+_e+", depth: "+tt+", bigEndian: "+gt+", trueColor: "+ct+", redMax: "+je+", greenMax: "+Zt+", blueMax: "+ut+", redShift: "+Ht+", greenShift: "+dr+", blueShift: "+Vt),this._setDesktopName(Gt),this._resize(le,pe),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),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var le=[];le.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(le.push(h.encodings.encodingTight),le.push(h.encodings.encodingTightPNG),le.push(h.encodings.encodingHextile),le.push(h.encodings.encodingRRE)),le.push(h.encodings.encodingRaw),le.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),le.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),le.push(h.encodings.pseudoEncodingDesktopSize),le.push(h.encodings.pseudoEncodingLastRect),le.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),le.push(h.encodings.pseudoEncodingExtendedDesktopSize),le.push(h.encodings.pseudoEncodingXvp),le.push(h.encodings.pseudoEncodingFence),le.push(h.encodings.pseudoEncodingContinuousUpdates),le.push(h.encodings.pseudoEncodingDesktopName),le.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(le.push(h.encodings.pseudoEncodingVMwareCursor),le.push(h.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,le)}},{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 le=this._sock.rQshift32();if(le=(0,y.toSigned32bit)(le),this._sock.rQwait("ServerCutText content",Math.abs(le),8))return!1;if(le>=0){var pe=this._sock.rQshiftStr(le);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:pe}}))}else{le=Math.abs(le);var _e=this._sock.rQshift32(),tt=_e&65535,gt=_e&4278190080,ct=!!(gt&oe);if(ct){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var je=0;je<=15;je++){var Zt=1<<je;tt&Zt&&(this._clipboardServerCapabilitiesFormats[Zt]=!0,this._sock.rQshift32())}for(var ut=24;ut<=31;ut++){var Ht=1<<ut;this._clipboardServerCapabilitiesActions[Ht]=!!(gt&Ht)}var dr=[oe,rt,fe,J,Y];Ce.messages.extendedClipboardCaps(this._sock,dr,{extendedClipboardFormatText:0})}else if(gt===rt){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(tt&Ue&&Ce.messages.extendedClipboardProvide(this._sock,[Ue],[this._clipboardText]))}else if(gt===fe){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[J]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[Ue]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(gt===J){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[rt]&&(tt&Ue&&Ce.messages.extendedClipboardRequest(this._sock,[Ue]))}else if(gt===Y){if(this._viewOnly)return!0;if(!(tt&Ue))return!0;this._clipboardText=null;var Vt=this._sock.rQshiftBytes(le-4),Mt=new a.default,Gt=null;Mt.setInput(Vt);for(var Ve=0;Ve<=15;Ve++){var me=1<<Ve;if(tt&me){var te=0,Ze=Mt.inflate(4);te|=Ze[0]<<24,te|=Ze[1]<<16,te|=Ze[2]<<8,te|=Ze[3];var Xe=Mt.inflate(te);me===Ue&&(Gt=Xe)}}if(Mt.setInput(null),Gt!==null){for(var ue="",St=0;St<Gt.length;St++)ue+=String.fromCharCode(Gt[St]);Gt=ue,Gt=(0,x.decodeUTF8)(Gt),Gt.length>0&&Gt.charAt(Gt.length-1)==="\0"&&(Gt=Gt.slice(0,-1)),Gt=Gt.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Gt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+gt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var le=this._sock.rQshift32(),pe=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",pe,9))return!1;pe>64&&(f.Warn("Bad payload length ("+pe+") in fence response"),pe=64);var _e=this._sock.rQshiftStr(pe);return this._supportsFence=!0,le&1<<31?(le&=1<<0|1<<1,Ce.messages.clientFence(this._sock,le,_e),!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 le=this._sock.rQshift8(),pe=this._sock.rQshift8();switch(pe){case 0:f.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=le,f.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+pe+")");break}return!0}},{key:"_normalMsg",value:function(){var le;this._FBU.rects>0?le=0:le=this._sock.rQshift8();var pe,_e;switch(le){case 0:return _e=this._framebufferUpdate(),_e&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),_e;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 pe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,pe&&(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 "+le+")"),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 le=this._sock.rQshiftBytes(12);this._FBU.x=(le[0]<<8)+le[1],this._FBU.y=(le[2]<<8)+le[3],this._FBU.width=(le[4]<<8)+le[5],this._FBU.height=(le[6]<<8)+le[7],this._FBU.encoding=parseInt((le[8]<<24)+(le[9]<<16)+(le[10]<<8)+le[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 h.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case h.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case h.encodings.pseudoEncodingCursor:return this._handleCursor();case h.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var le=document.createEvent("keyboardEvent");le.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(pe){}return!0;case h.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case h.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case h.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var le=this._FBU.x,pe=this._FBU.y,_e=this._FBU.width,tt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var gt=this._sock.rQshift8();this._sock.rQshift8();var ct,je=4;if(gt==0){var Zt=4294967040|0;if(ct=new Array(_e*tt*je),this._sock.rQwait("VMware cursor classic encoding",_e*tt*je*2,2))return!1;for(var ut=new Array(_e*tt),Ht=0;Ht<_e*tt;Ht++)ut[Ht]=this._sock.rQshift32();for(var dr=new Array(_e*tt),Vt=0;Vt<_e*tt;Vt++)dr[Vt]=this._sock.rQshift32();for(var Mt=0;Mt<_e*tt;Mt++)if(ut[Mt]==0){var Gt=dr[Mt],Ve=Gt>>8&255,me=Gt>>16&255,te=Gt>>24&255;ct[Mt*je]=Ve,ct[Mt*je+1]=me,ct[Mt*je+2]=te,ct[Mt*je+3]=255}else(ut[Mt]&Zt)==Zt?dr[Mt]==0?(ct[Mt*je]=0,ct[Mt*je+1]=0,ct[Mt*je+2]=0,ct[Mt*je+3]=0):((dr[Mt]&Zt)==Zt,ct[Mt*je]=0,ct[Mt*je+1]=0,ct[Mt*je+2]=0,ct[Mt*je+3]=255):(ct[Mt*je]=0,ct[Mt*je+1]=0,ct[Mt*je+2]=0,ct[Mt*je+3]=255)}else if(gt==1){if(this._sock.rQwait("VMware cursor alpha encoding",_e*tt*4,2))return!1;ct=new Array(_e*tt*je);for(var Ze=0;Ze<_e*tt;Ze++){var Xe=this._sock.rQshift32();ct[Ze*4]=Xe>>24&255,ct[Ze*4+1]=Xe>>16&255,ct[Ze*4+2]=Xe>>8&255,ct[Ze*4+3]=Xe&255}}else return f.Warn("The given cursor type is not supported: "+gt+" given."),!1;return this._updateCursor(ct,le,pe,_e,tt),!0}},{key:"_handleCursor",value:function(){var le=this._FBU.x,pe=this._FBU.y,_e=this._FBU.width,tt=this._FBU.height,gt=_e*tt*4,ct=Math.ceil(_e/8)*tt,je=gt+ct;if(this._sock.rQwait("cursor encoding",je))return!1;for(var Zt=this._sock.rQshiftBytes(gt),ut=this._sock.rQshiftBytes(ct),Ht=new Uint8Array(_e*tt*4),dr=0,Vt=0;Vt<tt;Vt++)for(var Mt=0;Mt<_e;Mt++){var Gt=Vt*Math.ceil(_e/8)+Math.floor(Mt/8),Ve=ut[Gt]<<Mt%8&128?255:0;Ht[dr]=Zt[dr+2],Ht[dr+1]=Zt[dr+1],Ht[dr+2]=Zt[dr],Ht[dr+3]=Ve,dr+=4}return this._updateCursor(Ht,le,pe,_e,tt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var le=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",le,4))return!1;var pe=this._sock.rQshiftStr(le);return pe=(0,x.decodeUTF8)(pe,!0),this._setDesktopName(pe),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var le=this._sock.rQpeek8(),pe=4+le*16;if(this._sock.rQwait("ExtendedDesktopSize",pe))return!1;var _e=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,_e&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var tt=0;tt<le;tt+=1)tt===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var gt="";switch(this._FBU.y){case 1:gt="Resize is administratively prohibited";break;case 2:gt="Out of resources";break;case 3:gt="Invalid screen layout";break;default:gt="Unknown reason";break}f.Warn("Server did not accept the resize request: "+gt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var le=this._decoders[this._FBU.encoding];if(!le)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return le.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(pe){return this._fail("Error decoding rect: "+pe),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ce.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(le,pe){this._fbWidth=le,this._fbHeight=pe,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(le,pe){if(this._rfbXvpVer<le)return;f.Info("Sending XVP operation "+pe+" (version "+le+")"),Ce.messages.xvpOp(this._sock,le,pe)}},{key:"_updateCursor",value:function(le,pe,_e,tt,gt){this._cursorImage={rgbaPixels:le,hotx:pe,hoty:_e,w:tt,h:gt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var le=3;le<this._cursorImage.rgbaPixels.length;le+=4)if(this._cursorImage.rgbaPixels[le])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var le=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(le.rgbaPixels,le.hotx,le.hoty,le.w,le.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(le){this._viewOnly=le,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(le?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(le){f.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(le){this._clipViewport=le,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(le){this._scaleViewport=le,le&&this._clipViewport&&this._updateClip(),this._updateScale(),!le&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(le){this._resizeSession=le,le&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(le){this._showDotCursor=le,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(le){this._screen.style.background=le}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){f.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===le)return;this._qualityLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){f.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===le)return;this._compressionLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(le,pe){var _e=le.split("").map(function(tt){return tt.charCodeAt(0)});return new n.default(_e).encrypt(pe)}}]),Ce}(d.default);L.default=$,$.messages={keyEvent:function(we,Ce,Se){var le=we._sQ,pe=we._sQlen;le[pe]=4,le[pe+1]=Se,le[pe+2]=0,le[pe+3]=0,le[pe+4]=Ce>>24,le[pe+5]=Ce>>16,le[pe+6]=Ce>>8,le[pe+7]=Ce,we._sQlen+=8,we.flush()},QEMUExtendedKeyEvent:function(we,Ce,Se,le){function pe(ct){var je=le>>8,Zt=le&255;return je===224&&Zt<127?Zt|128:ct}var _e=we._sQ,tt=we._sQlen;_e[tt]=255,_e[tt+1]=0,_e[tt+2]=Se>>8,_e[tt+3]=Se,_e[tt+4]=Ce>>24,_e[tt+5]=Ce>>16,_e[tt+6]=Ce>>8,_e[tt+7]=Ce;var gt=pe(le);_e[tt+8]=gt>>24,_e[tt+9]=gt>>16,_e[tt+10]=gt>>8,_e[tt+11]=gt,we._sQlen+=12,we.flush()},pointerEvent:function(we,Ce,Se,le){var pe=we._sQ,_e=we._sQlen;pe[_e]=5,pe[_e+1]=le,pe[_e+2]=Ce>>8,pe[_e+3]=Ce,pe[_e+4]=Se>>8,pe[_e+5]=Se,we._sQlen+=6,we.flush()},_buildExtendedClipboardFlags:function(we,Ce){for(var Se=new Uint8Array(4),le=0,pe=0,_e=0;_e<we.length;_e++)pe|=we[_e];for(var tt=0;tt<Ce.length;tt++)le|=Ce[tt];return Se[0]=pe>>24,Se[1]=0,Se[2]=0,Se[3]=le,Se},extendedClipboardProvide:function(we,Ce,Se){for(var le=new i.default,pe=[],_e=0;_e<Ce.length;_e++){if(Ce[_e]!=Ue)throw new Error("Unsupported extended clipboard format for Provide message.");Se[_e]=Se[_e].replace(/\r\n|\r|\n/gm,`\r
`);var tt=(0,x.encodeUTF8)(Se[_e]+"\0");pe.push(tt.length>>24&255,tt.length>>16&255,tt.length>>8&255,tt.length&255);for(var gt=0;gt<tt.length;gt++)pe.push(tt.charCodeAt(gt))}var ct=le.deflate(new Uint8Array(pe)),je=new Uint8Array(4+ct.length);je.set($.messages._buildExtendedClipboardFlags([Y],Ce)),je.set(ct,4),$.messages.clientCutText(we,je,!0)},extendedClipboardNotify:function(we,Ce){var Se=$.messages._buildExtendedClipboardFlags([J],Ce);$.messages.clientCutText(we,Se,!0)},extendedClipboardRequest:function(we,Ce){var Se=$.messages._buildExtendedClipboardFlags([rt],Ce);$.messages.clientCutText(we,Se,!0)},extendedClipboardCaps:function(we,Ce,Se){var le=Object.keys(Se),pe=new Uint8Array(4+4*le.length);le.map(function(gt){return parseInt(gt)}),le.sort(function(gt,ct){return gt-ct}),pe.set($.messages._buildExtendedClipboardFlags(Ce,[]));for(var _e=4,tt=0;tt<le.length;tt++)pe[_e]=Se[le[tt]]>>24,pe[_e+1]=Se[le[tt]]>>16,pe[_e+2]=Se[le[tt]]>>8,pe[_e+3]=Se[le[tt]]>>0,_e+=4,pe[3]|=1<<le[tt];$.messages.clientCutText(we,pe,!0)},clientCutText:function(we,Ce){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,le=we._sQ,pe=we._sQlen;le[pe]=6,le[pe+1]=0,le[pe+2]=0,le[pe+3]=0;var _e;Se?_e=(0,y.toUnsigned32bit)(-Ce.length):_e=Ce.length,le[pe+4]=_e>>24,le[pe+5]=_e>>16,le[pe+6]=_e>>8,le[pe+7]=_e,we._sQlen+=8;for(var tt=0,gt=Ce.length;gt>0;){for(var ct=Math.min(gt,we._sQbufferSize-we._sQlen),je=0;je<ct;je++)le[we._sQlen+je]=Ce[tt+je];we._sQlen+=ct,we.flush(),gt-=ct,tt+=ct}},setDesktopSize:function(we,Ce,Se,le,pe){var _e=we._sQ,tt=we._sQlen;_e[tt]=251,_e[tt+1]=0,_e[tt+2]=Ce>>8,_e[tt+3]=Ce,_e[tt+4]=Se>>8,_e[tt+5]=Se,_e[tt+6]=1,_e[tt+7]=0,_e[tt+8]=le>>24,_e[tt+9]=le>>16,_e[tt+10]=le>>8,_e[tt+11]=le,_e[tt+12]=0,_e[tt+13]=0,_e[tt+14]=0,_e[tt+15]=0,_e[tt+16]=Ce>>8,_e[tt+17]=Ce,_e[tt+18]=Se>>8,_e[tt+19]=Se,_e[tt+20]=pe>>24,_e[tt+21]=pe>>16,_e[tt+22]=pe>>8,_e[tt+23]=pe,we._sQlen+=24,we.flush()},clientFence:function(we,Ce,Se){var le=we._sQ,pe=we._sQlen;le[pe]=248,le[pe+1]=0,le[pe+2]=0,le[pe+3]=0,le[pe+4]=Ce>>24,le[pe+5]=Ce>>16,le[pe+6]=Ce>>8,le[pe+7]=Ce;var _e=Se.length;le[pe+8]=_e;for(var tt=0;tt<_e;tt++)le[pe+9+tt]=Se.charCodeAt(tt);we._sQlen+=9+_e,we.flush()},enableContinuousUpdates:function(we,Ce,Se,le,pe,_e){var tt=we._sQ,gt=we._sQlen;tt[gt]=150,tt[gt+1]=Ce,tt[gt+2]=Se>>8,tt[gt+3]=Se,tt[gt+4]=le>>8,tt[gt+5]=le,tt[gt+6]=pe>>8,tt[gt+7]=pe,tt[gt+8]=_e>>8,tt[gt+9]=_e,we._sQlen+=10,we.flush()},pixelFormat:function(we,Ce,Se){var le=we._sQ,pe=we._sQlen,_e;Ce>16?_e=32:Ce>8?_e=16:_e=8;var tt=Math.floor(Ce/3);le[pe]=0,le[pe+1]=0,le[pe+2]=0,le[pe+3]=0,le[pe+4]=_e,le[pe+5]=Ce,le[pe+6]=0,le[pe+7]=Se?1:0,le[pe+8]=0,le[pe+9]=(1<<tt)-1,le[pe+10]=0,le[pe+11]=(1<<tt)-1,le[pe+12]=0,le[pe+13]=(1<<tt)-1,le[pe+14]=tt*2,le[pe+15]=tt*1,le[pe+16]=tt*0,le[pe+17]=0,le[pe+18]=0,le[pe+19]=0,we._sQlen+=20,we.flush()},clientEncodings:function(we,Ce){var Se=we._sQ,le=we._sQlen;Se[le]=2,Se[le+1]=0,Se[le+2]=Ce.length>>8,Se[le+3]=Ce.length;for(var pe=le+4,_e=0;_e<Ce.length;_e++){var tt=Ce[_e];Se[pe]=tt>>24,Se[pe+1]=tt>>16,Se[pe+2]=tt>>8,Se[pe+3]=tt,pe+=4}we._sQlen+=pe-le,we.flush()},fbUpdateRequest:function(we,Ce,Se,le,pe,_e){var tt=we._sQ,gt=we._sQlen;typeof Se=="undefined"&&(Se=0),typeof le=="undefined"&&(le=0),tt[gt]=3,tt[gt+1]=Ce?1:0,tt[gt+2]=Se>>8&255,tt[gt+3]=Se&255,tt[gt+4]=le>>8&255,tt[gt+5]=le&255,tt[gt+6]=pe>>8&255,tt[gt+7]=pe&255,tt[gt+8]=_e>>8&255,tt[gt+9]=_e&255,we._sQlen+=10,we.flush()},xvpOp:function(we,Ce,Se){var le=we._sQ,pe=we._sQlen;le[pe]=250,le[pe+1]=0,le[pe+2]=Ce,le[pe+3]=Se,we._sQlen+=4,we.flush()}},$.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(R,L,r){(function(y){y(r("VrN/"))})(function(y){"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},x={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(A,m){var p=A.indentUnit,d={},u=m.htmlMode?f:x;for(var a in u)d[a]=u[a];for(var a in m)d[a]=m[a];var i,t;function s(I,k){function M(X){return k.tokenize=X,X(I,k)}var U=I.next();if(U=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?M(n("atom","]]>")):null:I.match("--")?M(n("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),M(o(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),k.tokenize=n("meta","?>"),"meta"):(i=I.eat("/")?"closeTag":"openTag",k.tokenize=e,"tag bracket");if(U=="&"){var P;return I.eat("#")?I.eat("x")?P=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):P=I.eatWhile(/[\d]/)&&I.eat(";"):P=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),P?"atom":"error"}else return I.eatWhile(/[^&<]/),null}s.isInText=!0;function e(I,k){var M=I.next();if(M==">"||M=="/"&&I.eat(">"))return k.tokenize=s,i=M==">"?"endTag":"selfcloseTag","tag bracket";if(M=="=")return i="equals",null;if(M=="<"){k.tokenize=s,k.state=v,k.tagName=k.tagStart=null;var U=k.tokenize(I,k);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(M)?(k.tokenize=l(M),k.stringStartCol=I.column(),k.tokenize(I,k)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var k=function(U,P){for(;!U.eol();)if(U.next()==I){P.tokenize=e;break}return"string"};return k.isInAttribute=!0,k}function n(I,k){return function(M,U){for(;!M.eol();){if(M.match(k)){U.tokenize=s;break}M.next()}return I}}function o(I){return function(k,M){for(var U;(U=k.next())!=null;){if(U=="<")return M.tokenize=o(I+1),M.tokenize(k,M);if(U==">")if(I==1){M.tokenize=s;break}else return M.tokenize=o(I-1),M.tokenize(k,M)}return"meta"}}function c(I,k,M){this.prev=I.context,this.tagName=k,this.indent=I.indented,this.startOfLine=M,(d.doNotIndent.hasOwnProperty(k)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function h(I){I.context&&(I.context=I.context.prev)}function g(I,k){for(var M;;){if(!I.context)return;if(M=I.context.tagName,!d.contextGrabbers.hasOwnProperty(M)||!d.contextGrabbers[M].hasOwnProperty(k))return;h(I)}}function v(I,k,M){return I=="openTag"?(M.tagStart=k.column(),b):I=="closeTag"?S:v}function b(I,k,M){return I=="word"?(M.tagName=k.current(),t="tag",_):d.allowMissingTagName&&I=="endTag"?(t="tag bracket",_(I,k,M)):(t="error",b)}function S(I,k,M){if(I=="word"){var U=k.current();return M.context&&M.context.tagName!=U&&d.implicitlyClosed.hasOwnProperty(M.context.tagName)&&h(M),M.context&&M.context.tagName==U||d.matchClosing===!1?(t="tag",E):(t="tag error",C)}else return d.allowMissingTagName&&I=="endTag"?(t="tag bracket",E(I,k,M)):(t="error",C)}function E(I,k,M){return I!="endTag"?(t="error",E):(h(M),v)}function C(I,k,M){return t="error",E(I,k,M)}function _(I,k,M){if(I=="word")return t="attribute",T;if(I=="endTag"||I=="selfcloseTag"){var U=M.tagName,P=M.tagStart;return M.tagName=M.tagStart=null,I=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(U)?g(M,U):(g(M,U),M.context=new c(M,U,P==M.indented)),v}return t="error",_}function T(I,k,M){return I=="equals"?w:(d.allowMissing||(t="error"),_(I,k,M))}function w(I,k,M){return I=="string"?O:I=="word"&&d.allowUnquoted?(t="string",_):(t="error",_(I,k,M))}function O(I,k,M){return I=="string"?O:_(I,k,M)}return{startState:function(k){var M={tokenize:s,state:v,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(M.baseIndent=k),M},token:function(k,M){if(!M.tagName&&k.sol()&&(M.indented=k.indentation()),k.eatSpace())return null;i=null;var U=M.tokenize(k,M);return(U||i)&&U!="comment"&&(t=null,M.state=M.state(i||U,k,M),t&&(U=t=="error"?U+" error":t)),U},indent:function(k,M,U){var P=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+p;if(P&&P.noIndent)return y.Pass;if(k.tokenize!=e&&k.tokenize!=s)return U?U.match(/^(\s*)/)[0].length:0;if(k.tagName)return d.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+p*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(M))return 0;var X=M&&/^<(\/)?([\w_:\.-]*)/.exec(M);if(X&&X[1])for(;P;)if(P.tagName==X[2]){P=P.prev;break}else if(d.implicitlyClosed.hasOwnProperty(P.tagName))P=P.prev;else break;else if(X)for(;P;){var F=d.contextGrabbers[P.tagName];if(F&&F.hasOwnProperty(X[2]))P=P.prev;else break}for(;P&&P.prev&&!P.startOfLine;)P=P.prev;return P?P.indent+p:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(k){k.state==w&&(k.state=_)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var M=[],U=k.context;U;U=U.prev)U.tagName&&M.push(U.tagName);return M.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1hJj":function(R,L,r){var y=r("e4Nc"),f=r("ftKO"),x=r("3A9y");function A(m){var p=-1,d=m==null?0:m.length;for(this.__data__=new y;++p<d;)this.add(m[p])}A.prototype.add=A.prototype.push=f,A.prototype.has=x,R.exports=A},"1n7x":function(R,L,r){(function(y,f){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(A,m){R.exports=m(r("dtIV"),r("wOnQ"))})(self,function(x,A){return function(){var m={"./src/plugin/hyperlinks.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=s.n(e),n=s("./node_modules/core-js/modules/es.string.link.js"),o=s.n(n),c=s("./src/worker.js"),h=s("./src/utils.js"),g=[],v={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return v.toContainer.call(this).then(function(){if(this.opt.enableLinks){var E=this.prop.container,C=E.querySelectorAll("a"),_=(0,h.unitConvert)(E.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(C,function(T){for(var w=T.getClientRects(),O=0;O<w.length;O++){var I=(0,h.unitConvert)(w[O],this.prop.pageSize.k);I.left-=_.left,I.top-=_.top;var k=Math.floor(I.top/this.prop.pageSize.inner.height)+1,M=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,U=this.opt.margin[1]+I.left;g.push({page:k,top:M,left:U,clientRect:I,link:T})}},this)}})},c.default.prototype.toPdf=function(){return v.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.forEach(function(C){this.prop.pdf.setPage(C.page),this.prop.pdf.link(C.left,C.top,C.clientRect.width,C.clientRect.height,{url:C.link.href})},this);var E=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(E)}})}},"./src/plugin/jspdf-plugin.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.symbol.js"),l=s.n(e),n=s("./node_modules/core-js/modules/es.symbol.description.js"),o=s.n(n),c=s("./node_modules/core-js/modules/es.object.to-string.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.symbol.iterator.js"),v=s.n(g),b=s("./node_modules/core-js/modules/es.array.iterator.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.string.iterator.js"),C=s.n(E),_=s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),T=s.n(_),w=s("jspdf"),O=s.n(w);function I(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(U){return typeof U}:I=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},I(k)}w.jsPDF.getPageSize=function(k,M,U){if(I(k)==="object"){var P=k;k=P.orientation,M=P.unit||M,U=P.format||U}M=M||"mm",U=U||"a4",k=(""+(k||"P")).toLowerCase();var X=(""+U).toLowerCase(),F={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(M){case"pt":var j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+M}if(F.hasOwnProperty(X))var K=F[X][1]/j,z=F[X][0]/j;else try{var K=U[1],z=U[0]}catch(G){throw new Error("Invalid format: "+U)}if(k==="p"||k==="portrait"){if(k="p",z>K){var V=z;z=K,K=V}}else if(k==="l"||k==="landscape"){if(k="l",K>z){var V=z;z=K,K=V}}else throw"Invalid orientation: "+k;var Q={width:z,height:K,unit:M,k:j};return Q},t.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.array.concat.js"),l=s.n(e),n=s("./node_modules/core-js/modules/es.array.slice.js"),o=s.n(n),c=s("./node_modules/core-js/modules/es.array.join.js"),h=s.n(c),g=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),v=s.n(g),b=s("./node_modules/core-js/modules/es.object.keys.js"),S=s.n(b),E=s("./src/worker.js"),C=s("./src/utils.js"),_={toContainer:E.default.prototype.toContainer};E.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},E.default.prototype.toContainer=function(){return _.toContainer.call(this).then(function(){var O=this.prop.container,I=this.prop.pageSize.inner.px.height,k=[].concat(this.opt.pagebreak.mode),M={avoidAll:k.indexOf("avoid-all")!==-1,css:k.indexOf("css")!==-1,legacy:k.indexOf("legacy")!==-1},U={},P=this;["before","after","avoid"].forEach(function(j){var K=M.avoidAll&&j==="avoid";U[j]=K?[]:[].concat(P.opt.pagebreak[j]||[]),U[j].length>0&&(U[j]=Array.prototype.slice.call(O.querySelectorAll(U[j].join(", "))))});var X=O.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var F=O.querySelectorAll("*");Array.prototype.forEach.call(F,function(K){var z={before:!1,after:M.legacy&&X.indexOf(K)!==-1,avoid:M.avoidAll};if(M.css){var V=window.getComputedStyle(K),Q=["always","page","left","right"],G=["avoid","avoid-page"];z={before:z.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:z.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:z.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(z).forEach(function(Pe){z[Pe]=z[Pe]||U[Pe].indexOf(K)!==-1});var ee=K.getBoundingClientRect();if(z.avoid&&!z.before){var se=Math.floor(ee.top/I),ye=Math.floor(ee.bottom/I),he=Math.abs(ee.bottom-ee.top)/I;ye!==se&&he<=1&&(z.before=!0)}if(z.before){var ke=(0,C.createElement)("div",{style:{display:"block",height:I-ee.top%I+"px"}});K.parentNode.insertBefore(ke,K)}if(z.after){var ke=(0,C.createElement)("div",{style:{display:"block",height:I-ee.bottom%I+"px"}});K.parentNode.insertBefore(ke,K.nextSibling)}})})}},"./src/utils.js":function(i,t,s){"use strict";s.r(t),s.d(t,{objType:function(){return k},createElement:function(){return M},cloneNode:function(){return U},unitConvert:function(){return P},toPx:function(){return X}});var e=s("./node_modules/core-js/modules/es.number.constructor.js"),l=s.n(e),n=s("./node_modules/core-js/modules/es.symbol.js"),o=s.n(n),c=s("./node_modules/core-js/modules/es.symbol.description.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.object.to-string.js"),v=s.n(g),b=s("./node_modules/core-js/modules/es.symbol.iterator.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.array.iterator.js"),C=s.n(E),_=s("./node_modules/core-js/modules/es.string.iterator.js"),T=s.n(_),w=s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),O=s.n(w);function I(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(K){return typeof K}:I=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},I(F)}var k=function(j){var K=I(j);return K==="undefined"?"undefined":K==="string"||j instanceof String?"string":K==="number"||j instanceof Number?"number":K==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":K==="object"?"object":"unknown"},M=function(j,K){var z=document.createElement(j);if(K.className&&(z.className=K.className),K.innerHTML){z.innerHTML=K.innerHTML;for(var V=z.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in K.style)z.style[G]=K.style[G];return z},U=function F(j,K){for(var z=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),V=j.firstChild;V;V=V.nextSibling)(K===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&z.appendChild(F(V,K));return j.nodeType===1&&(j.nodeName==="CANVAS"?(z.width=j.width,z.height=j.height,z.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(z.value=j.value),z.addEventListener("load",function(){z.scrollTop=j.scrollTop,z.scrollLeft=j.scrollLeft},!0)),z},P=function(j,K){if(k(j)==="number")return j*72/96/K;var z={};for(var V in j)z[V]=j[V]*72/96/K;return z},X=function(j,K){return Math.floor(j*K/72*96)}},"./src/worker.js":function(i,t,s){"use strict";s.r(t);var e=s("./node_modules/core-js/modules/es.object.assign.js"),l=s.n(e),n=s("./node_modules/core-js/modules/es.array.map.js"),o=s.n(n),c=s("./node_modules/core-js/modules/es.object.keys.js"),h=s.n(c),g=s("./node_modules/core-js/modules/es.array.concat.js"),v=s.n(g),b=s("./node_modules/core-js/modules/es.object.to-string.js"),S=s.n(b),E=s("./node_modules/core-js/modules/es.regexp.to-string.js"),C=s.n(E),_=s("./node_modules/core-js/modules/es.function.name.js"),T=s.n(_),w=s("./node_modules/core-js/modules/web.dom-collections.for-each.js"),O=s.n(w),I=s("jspdf"),k=s.n(I),M=s("html2canvas"),U=s.n(M),P=s("./src/utils.js"),X=s("./node_modules/es6-promise/dist/es6-promise.js"),F=s.n(X),j=F().Promise,K=function z(V){var Q=Object.assign(z.convert(j.resolve()),JSON.parse(JSON.stringify(z.template))),G=z.convert(j.resolve(),Q);return G=G.setProgress(1,z,1,[z]),G=G.set(V),G};K.prototype=Object.create(j.prototype),K.prototype.constructor=K,K.convert=function(V,Q){return V.__proto__=Q||K.prototype,V},K.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},K.prototype.from=function(V,Q){function G(ee){switch((0,P.objType)(ee)){case"string":return"string";case"element":return ee.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){Q=Q||G(V);switch(Q){case"string":return this.set({src:(0,P.createElement)("div",{innerHTML:V})});case"element":return this.set({src:V});case"canvas":return this.set({canvas:V});case"img":return this.set({img:V});default:return this.error("Unknown source type.")}})},K.prototype.to=function(V){switch(V){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},K.prototype.toContainer=function(){var V=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(V).then(function(){var G={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},ee={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};G.opacity=0;var se=(0,P.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,P.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,P.createElement)("div",{className:"html2pdf__container",style:ee}),this.prop.container.appendChild(se),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},K.prototype.toCanvas=function(){var V=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(V).then(function(){var G=Object.assign({},this.opt.html2canvas);return delete G.onrendered,M(this.prop.container,G)}).then(function(G){var ee=this.opt.html2canvas.onrendered||function(){};ee(G),this.prop.canvas=G,document.body.removeChild(this.prop.overlay)})},K.prototype.toImg=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=G})},K.prototype.toPdf=function(){var V=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(V).then(function(){var G=this.prop.canvas,ee=this.opt,se=G.height,ye=Math.floor(G.width*this.prop.pageSize.inner.ratio),he=Math.ceil(se/ye),ke=this.prop.pageSize.inner.height,Pe=document.createElement("canvas"),Ue=Pe.getContext("2d");Pe.width=G.width,Pe.height=ye,this.prop.pdf=this.prop.pdf||new I.jsPDF(ee.jsPDF);for(var $e=0;$e<he;$e++){$e===he-1&&se%ye!==0&&(Pe.height=se%ye,ke=Pe.height*this.prop.pageSize.inner.width/Pe.width);var Ge=Pe.width,ht=Pe.height;Ue.fillStyle="white",Ue.fillRect(0,0,Ge,ht),Ue.drawImage(G,0,$e*ye,Ge,ht,0,0,Ge,ht),$e&&this.prop.pdf.addPage();var Fe=Pe.toDataURL("image/"+ee.image.type,ee.image.quality);this.prop.pdf.addImage(Fe,ee.image.type,ee.margin[1],ee.margin[0],this.prop.pageSize.inner.width,ke)}})},K.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},K.prototype.outputPdf=function(V,Q){var G=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(G).then(function(){return this.prop.pdf.output(V,Q)})},K.prototype.outputImg=function(V,Q){var G=[function(){return this.prop.img||this.toImg()}];return this.thenList(G).then(function(){switch(V){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+V+'" is not supported.'}})},K.prototype.save=function(V){var Q=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Q).set(V?{filename:V}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},K.prototype.set=function(V){if((0,P.objType)(V)!=="object")return this;var Q=Object.keys(V||{}).map(function(G){switch(G){case"margin":return this.setMargin.bind(this,V.margin);case"jsPDF":return function(){return this.opt.jsPDF=V.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,V.pageSize);default:return G in K.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},K.prototype.get=function(V,Q){return this.then(function(){var ee=V in K.template.prop?this.prop[V]:this.opt[V];return Q?Q(ee):ee})},K.prototype.setMargin=function(V){return this.then(function(){switch((0,P.objType)(V)){case"number":V=[V,V,V,V];case"array":if(V.length===2&&(V=[V[0],V[1],V[0],V[1]]),V.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=V}).then(this.setPageSize)},K.prototype.setPageSize=function(V){return this.then(function(){V=V||I.jsPDF.getPageSize(this.opt.jsPDF),V.hasOwnProperty("inner")||(V.inner={width:V.width-this.opt.margin[1]-this.opt.margin[3],height:V.height-this.opt.margin[0]-this.opt.margin[2]},V.inner.px={width:(0,P.toPx)(V.inner.width,V.k),height:(0,P.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},K.prototype.setProgress=function(V,Q,G,ee){return V!=null&&(this.progress.val=V),Q!=null&&(this.progress.state=Q),G!=null&&(this.progress.n=G),ee!=null&&(this.progress.stack=ee),this.progress.ratio=this.progress.val/this.progress.state,this},K.prototype.updateProgress=function(V,Q,G,ee){return this.setProgress(V?this.progress.val+V:null,Q||null,G?this.progress.n+G:null,ee?this.progress.stack.concat(ee):null)},K.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function(se,ye){return G.updateProgress(null,null,1,[se]),j.prototype.then.call(this,function(ke){return G.updateProgress(null,se),ke}).then(se,ye).then(function(ke){return G.updateProgress(1),ke})})},K.prototype.thenCore=function(V,Q,G){G=G||j.prototype.then;var ee=this;V&&(V=V.bind(ee)),Q&&(Q=Q.bind(ee));var se=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",ye=se?ee:K.convert(Object.assign({},ee),j.prototype),he=G.call(ye,V,Q);return K.convert(he,ee.__proto__)},K.prototype.thenExternal=function(V,Q){return j.prototype.then.call(this,V,Q)},K.prototype.thenList=function(V){var Q=this;return V.forEach(function(ee){Q=Q.thenCore(ee)}),Q},K.prototype.catch=function(z){z&&(z=z.bind(this));var V=j.prototype.catch.call(this,z);return K.convert(V,this)},K.prototype.catchExternal=function(V){return j.prototype.catch.call(this,V)},K.prototype.error=function(V){return this.then(function(){throw new Error(V)})},K.prototype.using=K.prototype.set,K.prototype.saveAs=K.prototype.save,K.prototype.export=K.prototype.output,K.prototype.run=K.prototype.then,t.default=K},"./node_modules/core-js/internals/a-function.js":function(i){i.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/a-possible-prototype.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js"),l=s("./node_modules/core-js/internals/object-create.js"),n=s("./node_modules/core-js/internals/object-define-property.js"),o=e("unscopables"),c=Array.prototype;c[o]==null&&n.f(c,o,{configurable:!0,value:l(null)}),i.exports=function(h){c[o][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/array-iteration.js").forEach,l=s("./node_modules/core-js/internals/array-method-is-strict.js"),n=l("forEach");i.exports=n?[].forEach:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/to-length.js"),n=s("./node_modules/core-js/internals/to-absolute-index.js"),o=function(h){return function(g,v,b){var S=e(g),E=l(S.length),C=n(b,E),_;if(h&&v!=v){for(;E>C;)if(_=S[C++],_!=_)return!0}else for(;E>C;C++)if((h||C in S)&&S[C]===v)return h||C||0;return!h&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(i,t,s){var e=s("./node_modules/core-js/internals/function-bind-context.js"),l=s("./node_modules/core-js/internals/indexed-object.js"),n=s("./node_modules/core-js/internals/to-object.js"),o=s("./node_modules/core-js/internals/to-length.js"),c=s("./node_modules/core-js/internals/array-species-create.js"),h=[].push,g=function(b){var S=b==1,E=b==2,C=b==3,_=b==4,T=b==6,w=b==7,O=b==5||T;return function(I,k,M,U){for(var P=n(I),X=l(P),F=e(k,M,3),j=o(X.length),K=0,z=U||c,V=S?z(I,j):E||w?z(I,0):void 0,Q,G;j>K;K++)if((O||K in X)&&(Q=X[K],G=F(Q,K,P),b))if(S)V[K]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return K;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return T?-1:C||_?_:V}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/well-known-symbol.js"),n=s("./node_modules/core-js/internals/engine-v8-version.js"),o=l("species");i.exports=function(c){return n>=51||!e(function(){var h=[],g=h.constructor={};return g[o]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/fails.js");i.exports=function(l,n){var o=[][l];return!!o&&e(function(){o.call(null,n||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/is-array.js"),n=s("./node_modules/core-js/internals/well-known-symbol.js"),o=n("species");i.exports=function(c){var h;return l(c)&&(h=c.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:e(h)&&(h=h[o],h===null&&(h=void 0))),h===void 0?Array:h}},"./node_modules/core-js/internals/array-species-create.js":function(i,t,s){var e=s("./node_modules/core-js/internals/array-species-constructor.js");i.exports=function(l,n){return new(e(l))(n===0?0:n)}},"./node_modules/core-js/internals/classof-raw.js":function(i){var t={}.toString;i.exports=function(s){return t.call(s).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/classof-raw.js"),n=s("./node_modules/core-js/internals/well-known-symbol.js"),o=n("toStringTag"),c=l(function(){return arguments}())=="Arguments",h=function(v,b){try{return v[b]}catch(S){}};i.exports=e?l:function(g){var v,b,S;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(v=Object(g),o))=="string"?b:c?l(v):(S=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":S}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/own-keys.js"),n=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),o=s("./node_modules/core-js/internals/object-define-property.js");i.exports=function(c,h){for(var g=l(h),v=o.f,b=n.f,S=0;S<g.length;S++){var E=g[S];e(c,E)||v(c,E,b(h,E))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js"),l=s("./node_modules/core-js/internals/to-string.js"),n=/"/g;i.exports=function(o,c,h,g){var v=l(e(o)),b="<"+c;return h!==""&&(b+=" "+h+'="'+l(g).replace(n,"&quot;")+'"'),b+">"+v+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=s("./node_modules/core-js/internals/object-create.js"),n=s("./node_modules/core-js/internals/create-property-descriptor.js"),o=s("./node_modules/core-js/internals/set-to-string-tag.js"),c=s("./node_modules/core-js/internals/iterators.js"),h=function(){return this};i.exports=function(g,v,b){var S=v+" Iterator";return g.prototype=l(e,{next:n(1,b)}),o(g,S,!1,!0),c[S]=h,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),n=s("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=e?function(o,c,h){return l.f(o,c,n(1,h))}:function(o,c,h){return o[c]=h,o}},"./node_modules/core-js/internals/create-property-descriptor.js":function(i){i.exports=function(t,s){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:s}}},"./node_modules/core-js/internals/create-property.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-property-key.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),n=s("./node_modules/core-js/internals/create-property-descriptor.js");i.exports=function(o,c,h){var g=e(c);g in o?l.f(o,g,n(0,h)):o[g]=h}},"./node_modules/core-js/internals/define-iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/create-iterator-constructor.js"),n=s("./node_modules/core-js/internals/object-get-prototype-of.js"),o=s("./node_modules/core-js/internals/object-set-prototype-of.js"),c=s("./node_modules/core-js/internals/set-to-string-tag.js"),h=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=s("./node_modules/core-js/internals/redefine.js"),v=s("./node_modules/core-js/internals/well-known-symbol.js"),b=s("./node_modules/core-js/internals/is-pure.js"),S=s("./node_modules/core-js/internals/iterators.js"),E=s("./node_modules/core-js/internals/iterators-core.js"),C=E.IteratorPrototype,_=E.BUGGY_SAFARI_ITERATORS,T=v("iterator"),w="keys",O="values",I="entries",k=function(){return this};i.exports=function(M,U,P,X,F,j,K){l(P,U,X);var z=function($e){if($e===F&&se)return se;if(!_&&$e in G)return G[$e];switch($e){case w:return function(){return new P(this,$e)};case O:return function(){return new P(this,$e)};case I:return function(){return new P(this,$e)}}return function(){return new P(this)}},V=U+" Iterator",Q=!1,G=M.prototype,ee=G[T]||G["@@iterator"]||F&&G[F],se=!_&&ee||z(F),ye=U=="Array"&&G.entries||ee,he,ke,Pe;if(ye&&(he=n(ye.call(new M)),C!==Object.prototype&&he.next&&(!b&&n(he)!==C&&(o?o(he,C):typeof he[T]!="function"&&h(he,T,k)),c(he,V,!0,!0),b&&(S[V]=k))),F==O&&ee&&ee.name!==O&&(Q=!0,se=function(){return ee.call(this)}),(!b||K)&&G[T]!==se&&h(G,T,se),S[U]=se,F)if(ke={values:z(O),keys:j?se:z(w),entries:z(I)},K)for(Pe in ke)(_||Q||!(Pe in G))&&g(G,Pe,ke[Pe]);else e({target:U,proto:!0,forced:_||Q},ke);return ke}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/path.js"),l=s("./node_modules/core-js/internals/has.js"),n=s("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),o=s("./node_modules/core-js/internals/object-define-property.js").f;i.exports=function(c){var h=e.Symbol||(e.Symbol={});l(h,c)||o(h,c,{value:n.f(c)})}},"./node_modules/core-js/internals/descriptors.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/is-object.js"),n=e.document,o=l(n)&&l(n.createElement);i.exports=function(c){return o?n.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js");i.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/engine-user-agent.js"),n=e.process,o=e.Deno,c=n&&n.versions||o&&o.version,h=c&&c.v8,g,v;h?(g=h.split("."),v=g[0]<4?1:g[0]+g[1]):l&&(g=l.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=l.match(/Chrome\/(\d+)/),g&&(v=g[1]))),i.exports=v&&+v},"./node_modules/core-js/internals/enum-bug-keys.js":function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,n=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=s("./node_modules/core-js/internals/redefine.js"),c=s("./node_modules/core-js/internals/set-global.js"),h=s("./node_modules/core-js/internals/copy-constructor-properties.js"),g=s("./node_modules/core-js/internals/is-forced.js");i.exports=function(v,b){var S=v.target,E=v.global,C=v.stat,_,T,w,O,I,k;if(E?T=e:C?T=e[S]||c(S,{}):T=(e[S]||{}).prototype,T)for(w in b){if(I=b[w],v.noTargetGet?(k=l(T,w),O=k&&k.value):O=T[w],_=g(E?w:S+(C?".":"#")+w,v.forced),!_&&O!==void 0){if(typeof I===typeof O)continue;h(I,O)}(v.sham||O&&O.sham)&&n(I,"sham",!0),o(T,w,I,v)}}},"./node_modules/core-js/internals/fails.js":function(i){i.exports=function(t){try{return!!t()}catch(s){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(i,t,s){var e=s("./node_modules/core-js/internals/a-function.js");i.exports=function(l,n,o){if(e(l),n===void 0)return l;switch(o){case 0:return function(){return l.call(n)};case 1:return function(c){return l.call(n,c)};case 2:return function(c,h){return l.call(n,c,h)};case 3:return function(c,h,g){return l.call(n,c,h,g)}}return function(){return l.apply(n,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=function(o){return typeof o=="function"?o:void 0};i.exports=function(n,o){return arguments.length<2?l(e[n]):e[n]&&e[n][o]}},"./node_modules/core-js/internals/global.js":function(i){var t=function(e){return e&&e.Math==Math&&e};i.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof y=="object"&&y)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;i.exports=Object.hasOwn||function(o,c){return l.call(e(o),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(i){i.exports={}},"./node_modules/core-js/internals/html.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js");i.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/fails.js"),n=s("./node_modules/core-js/internals/document-create-element.js");i.exports=!e&&!l(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/classof-raw.js"),n="".split;i.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(o){return l(o)=="String"?n.call(o,""):Object(o)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/object-set-prototype-of.js");i.exports=function(n,o,c){var h,g;return l&&typeof(h=o.constructor)=="function"&&h!==c&&e(g=h.prototype)&&g!==c.prototype&&l(n,g),n}},"./node_modules/core-js/internals/inspect-source.js":function(i,t,s){var e=s("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(n){return l.call(n)}),i.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(i,t,s){var e=s("./node_modules/core-js/internals/native-weak-map.js"),l=s("./node_modules/core-js/internals/global.js"),n=s("./node_modules/core-js/internals/is-object.js"),o=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/shared-store.js"),g=s("./node_modules/core-js/internals/shared-key.js"),v=s("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",S=l.WeakMap,E,C,_,T=function(X){return _(X)?C(X):E(X,{})},w=function(X){return function(F){var j;if(!n(F)||(j=C(F)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return j}};if(e||h.state){var O=h.state||(h.state=new S),I=O.get,k=O.has,M=O.set;E=function(X,F){if(k.call(O,X))throw new TypeError(b);return F.facade=X,M.call(O,X,F),F},C=function(X){return I.call(O,X)||{}},_=function(X){return k.call(O,X)}}else{var U=g("state");v[U]=!0,E=function(X,F){if(c(X,U))throw new TypeError(b);return F.facade=X,o(X,U,F),F},C=function(X){return c(X,U)?X[U]:{}},_=function(X){return c(X,U)}}i.exports={set:E,get:C,has:_,enforce:T,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(i,t,s){var e=s("./node_modules/core-js/internals/classof-raw.js");i.exports=Array.isArray||function(n){return e(n)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,n=function(b,S){var E=c[o(b)];return E==g?!0:E==h?!1:typeof S=="function"?e(S):!!S},o=n.normalize=function(v){return String(v).replace(l,".").toLowerCase()},c=n.data={},h=n.NATIVE="N",g=n.POLYFILL="P";i.exports=n},"./node_modules/core-js/internals/is-object.js":function(i){i.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(i){i.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js"),l=s("./node_modules/core-js/internals/use-symbol-as-uid.js");i.exports=l?function(n){return typeof n=="symbol"}:function(n){var o=e("Symbol");return typeof o=="function"&&Object(n)instanceof o}},"./node_modules/core-js/internals/iterators-core.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/fails.js"),l=s("./node_modules/core-js/internals/object-get-prototype-of.js"),n=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),h=s("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),v=!1,b=function(){return this},S,E,C;[].keys&&(C=[].keys(),"next"in C?(E=l(l(C)),E!==Object.prototype&&(S=E)):v=!0);var _=S==null||e(function(){var T={};return S[g].call(T)!==T});_&&(S={}),(!h||_)&&!o(S,g)&&n(S,g,b),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:v}},"./node_modules/core-js/internals/iterators.js":function(i){i.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/engine-v8-version.js"),l=s("./node_modules/core-js/internals/fails.js");i.exports=!!Object.getOwnPropertySymbols&&!l(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/inspect-source.js"),n=e.WeakMap;i.exports=typeof n=="function"&&/native code/.test(l(n))},"./node_modules/core-js/internals/object-assign.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/fails.js"),n=s("./node_modules/core-js/internals/object-keys.js"),o=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=s("./node_modules/core-js/internals/to-object.js"),g=s("./node_modules/core-js/internals/indexed-object.js"),v=Object.assign,b=Object.defineProperty;i.exports=!v||l(function(){if(e&&v({b:1},v(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},E={},C=Symbol(),_="abcdefghijklmnopqrst";return S[C]=7,_.split("").forEach(function(T){E[T]=T}),v({},S)[C]!=7||n(v({},E)).join("")!=_})?function(E,C){for(var _=h(E),T=arguments.length,w=1,O=o.f,I=c.f;T>w;)for(var k=g(arguments[w++]),M=O?n(k).concat(O(k)):n(k),U=M.length,P=0,X;U>P;)X=M[P++],(!e||I.call(k,X))&&(_[X]=k[X]);return _}:v},"./node_modules/core-js/internals/object-create.js":function(i,t,s){var e=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/object-define-properties.js"),n=s("./node_modules/core-js/internals/enum-bug-keys.js"),o=s("./node_modules/core-js/internals/hidden-keys.js"),c=s("./node_modules/core-js/internals/html.js"),h=s("./node_modules/core-js/internals/document-create-element.js"),g=s("./node_modules/core-js/internals/shared-key.js"),v=">",b="<",S="prototype",E="script",C=g("IE_PROTO"),_=function(){},T=function(U){return b+E+v+U+b+"/"+E+v},w=function(U){U.write(T("")),U.close();var P=U.parentWindow.Object;return U=null,P},O=function(){var U=h("iframe"),P="java"+E+":",X;if(U.style)return U.style.display="none",c.appendChild(U),U.src=String(P),X=U.contentWindow.document,X.open(),X.write(T("document.F=Object")),X.close(),X.F},I,k=function(){try{I=new ActiveXObject("htmlfile")}catch(P){}k=document.domain&&I?w(I):O()||w(I);for(var U=n.length;U--;)delete k[S][n[U]];return k()};o[C]=!0,i.exports=Object.create||function(U,P){var X;return U!==null?(_[S]=e(U),X=new _,_[S]=null,X[C]=U):X=k(),P===void 0?X:l(X,P)}},"./node_modules/core-js/internals/object-define-properties.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js"),n=s("./node_modules/core-js/internals/an-object.js"),o=s("./node_modules/core-js/internals/object-keys.js");i.exports=e?Object.defineProperties:function(h,g){n(h);for(var v=o(g),b=v.length,S=0,E;b>S;)l.f(h,E=v[S++],g[E]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/ie8-dom-define.js"),n=s("./node_modules/core-js/internals/an-object.js"),o=s("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,v,b){if(n(g),v=o(v),n(b),l)try{return c(g,v,b)}catch(S){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[v]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),n=s("./node_modules/core-js/internals/create-property-descriptor.js"),o=s("./node_modules/core-js/internals/to-indexed-object.js"),c=s("./node_modules/core-js/internals/to-property-key.js"),h=s("./node_modules/core-js/internals/has.js"),g=s("./node_modules/core-js/internals/ie8-dom-define.js"),v=Object.getOwnPropertyDescriptor;t.f=e?v:function(S,E){if(S=o(S),E=c(E),g)try{return v(S,E)}catch(C){}if(h(S,E))return n(!l.f.call(S,E),S[E])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/object-get-own-property-names.js").f,n={}.toString,o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(g){try{return l(g)}catch(v){return o.slice()}};i.exports.f=function(g){return o&&n.call(g)=="[object Window]"?c(g):l(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-keys-internal.js"),l=s("./node_modules/core-js/internals/enum-bug-keys.js"),n=l.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(c){return e(c,n)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(i,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/to-object.js"),n=s("./node_modules/core-js/internals/shared-key.js"),o=s("./node_modules/core-js/internals/correct-prototype-getter.js"),c=n("IE_PROTO"),h=Object.prototype;i.exports=o?Object.getPrototypeOf:function(g){return g=l(g),e(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?h:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(i,t,s){var e=s("./node_modules/core-js/internals/has.js"),l=s("./node_modules/core-js/internals/to-indexed-object.js"),n=s("./node_modules/core-js/internals/array-includes.js").indexOf,o=s("./node_modules/core-js/internals/hidden-keys.js");i.exports=function(c,h){var g=l(c),v=0,b=[],S;for(S in g)!e(o,S)&&e(g,S)&&b.push(S);for(;h.length>v;)e(g,S=h[v++])&&(~n(b,S)||b.push(S));return b}},"./node_modules/core-js/internals/object-keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-keys-internal.js"),l=s("./node_modules/core-js/internals/enum-bug-keys.js");i.exports=Object.keys||function(o){return e(o,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(i,t){"use strict";var s={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!s.call({1:2},1);t.f=l?function(o){var c=e(this,o);return!!c&&c.enumerable}:s},"./node_modules/core-js/internals/object-set-prototype-of.js":function(i,t,s){var e=s("./node_modules/core-js/internals/an-object.js"),l=s("./node_modules/core-js/internals/a-possible-prototype.js");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n=!1,o={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(o,[]),n=o instanceof Array}catch(h){}return function(g,v){return e(g),l(v),n?c.call(g,v):g.__proto__=v,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/classof.js");i.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js");i.exports=function(l,n){var o,c;if(n==="string"&&typeof(o=l.toString)=="function"&&!e(c=o.call(l)))return c;if(typeof(o=l.valueOf)=="function"&&!e(c=o.call(l)))return c;if(n!=="string"&&typeof(o=l.toString)=="function"&&!e(c=o.call(l)))return c;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/get-built-in.js"),l=s("./node_modules/core-js/internals/object-get-own-property-names.js"),n=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),o=s("./node_modules/core-js/internals/an-object.js");i.exports=e("Reflect","ownKeys")||function(h){var g=l.f(o(h)),v=n.f;return v?g.concat(v(h)):g}},"./node_modules/core-js/internals/path.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js");i.exports=e},"./node_modules/core-js/internals/redefine.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),n=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/set-global.js"),c=s("./node_modules/core-js/internals/inspect-source.js"),h=s("./node_modules/core-js/internals/internal-state.js"),g=h.get,v=h.enforce,b=String(String).split("String");(i.exports=function(S,E,C,_){var T=_?!!_.unsafe:!1,w=_?!!_.enumerable:!1,O=_?!!_.noTargetGet:!1,I;if(typeof C=="function"&&(typeof E=="string"&&!n(C,"name")&&l(C,"name",E),I=v(C),I.source||(I.source=b.join(typeof E=="string"?E:""))),S===e){w?S[E]=C:o(E,C);return}else T?!O&&S[E]&&(w=!0):delete S[E];w?S[E]=C:l(S,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/an-object.js");i.exports=function(){var l=e(this),n="";return l.global&&(n+="g"),l.ignoreCase&&(n+="i"),l.multiline&&(n+="m"),l.dotAll&&(n+="s"),l.unicode&&(n+="u"),l.sticky&&(n+="y"),n}},"./node_modules/core-js/internals/require-object-coercible.js":function(i){i.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js");i.exports=function(l,n){try{Object.defineProperty(e,l,{value:n,configurable:!0,writable:!0})}catch(o){e[l]=n}return n}},"./node_modules/core-js/internals/set-to-string-tag.js":function(i,t,s){var e=s("./node_modules/core-js/internals/object-define-property.js").f,l=s("./node_modules/core-js/internals/has.js"),n=s("./node_modules/core-js/internals/well-known-symbol.js"),o=n("toStringTag");i.exports=function(c,h,g){c&&!l(c=g?c:c.prototype,o)&&e(c,o,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(i,t,s){var e=s("./node_modules/core-js/internals/shared.js"),l=s("./node_modules/core-js/internals/uid.js"),n=e("keys");i.exports=function(o){return n[o]||(n[o]=l(o))}},"./node_modules/core-js/internals/shared-store.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/set-global.js"),n="__core-js_shared__",o=e[n]||l(n,{});i.exports=o},"./node_modules/core-js/internals/shared.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-pure.js"),l=s("./node_modules/core-js/internals/shared-store.js");(i.exports=function(n,o){return l[n]||(l[n]=o!==void 0?o:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(i,t,s){var e=s("./node_modules/core-js/internals/fails.js");i.exports=function(l){return e(function(){var n=""[l]('"');return n!==n.toLowerCase()||n.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=s("./node_modules/core-js/internals/to-string.js"),n=s("./node_modules/core-js/internals/require-object-coercible.js"),o=function(h){return function(g,v){var b=l(n(g)),S=e(v),E=b.length,C,_;return S<0||S>=E?h?"":void 0:(C=b.charCodeAt(S),C<55296||C>56319||S+1===E||(_=b.charCodeAt(S+1))<56320||_>57343?h?b.charAt(S):C:h?b.slice(S,S+2):(C-55296<<10)+(_-56320)+65536)}};i.exports={codeAt:o(!1),charAt:o(!0)}},"./node_modules/core-js/internals/string-trim.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js"),l=s("./node_modules/core-js/internals/to-string.js"),n=s("./node_modules/core-js/internals/whitespaces.js"),o="["+n+"]",c=RegExp("^"+o+o+"*"),h=RegExp(o+o+"*$"),g=function(b){return function(S){var E=l(e(S));return b&1&&(E=E.replace(c,"")),b&2&&(E=E.replace(h,"")),E}};i.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=Math.max,n=Math.min;i.exports=function(o,c){var h=e(o);return h<0?l(h+c,0):n(h,c)}},"./node_modules/core-js/internals/to-indexed-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/indexed-object.js"),l=s("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(n){return e(l(n))}},"./node_modules/core-js/internals/to-integer.js":function(i){var t=Math.ceil,s=Math.floor;i.exports=function(e){return isNaN(e=+e)?0:(e>0?s:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-integer.js"),l=Math.min;i.exports=function(n){return n>0?l(e(n),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(i,t,s){var e=s("./node_modules/core-js/internals/require-object-coercible.js");i.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-object.js"),l=s("./node_modules/core-js/internals/is-symbol.js"),n=s("./node_modules/core-js/internals/ordinary-to-primitive.js"),o=s("./node_modules/core-js/internals/well-known-symbol.js"),c=o("toPrimitive");i.exports=function(h,g){if(!e(h)||l(h))return h;var v=h[c],b;if(v!==void 0){if(g===void 0&&(g="default"),b=v.call(h,g),!e(b)||l(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),n(h,g)}},"./node_modules/core-js/internals/to-property-key.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-primitive.js"),l=s("./node_modules/core-js/internals/is-symbol.js");i.exports=function(n){var o=e(n,"string");return l(o)?o:String(o)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),n={};n[l]="z",i.exports=String(n)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(i,t,s){var e=s("./node_modules/core-js/internals/is-symbol.js");i.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(i){var t=0,s=Math.random();i.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+s).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(i,t,s){var e=s("./node_modules/core-js/internals/native-symbol.js");i.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(i,t,s){var e=s("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/shared.js"),n=s("./node_modules/core-js/internals/has.js"),o=s("./node_modules/core-js/internals/uid.js"),c=s("./node_modules/core-js/internals/native-symbol.js"),h=s("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=l("wks"),v=e.Symbol,b=h?v:v&&v.withoutSetter||o;i.exports=function(S){return(!n(g,S)||!(c||typeof g[S]=="string"))&&(c&&n(v,S)?g[S]=v[S]:g[S]=b("Symbol."+S)),g[S]}},"./node_modules/core-js/internals/whitespaces.js":function(i){i.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/fails.js"),n=s("./node_modules/core-js/internals/is-array.js"),o=s("./node_modules/core-js/internals/is-object.js"),c=s("./node_modules/core-js/internals/to-object.js"),h=s("./node_modules/core-js/internals/to-length.js"),g=s("./node_modules/core-js/internals/create-property.js"),v=s("./node_modules/core-js/internals/array-species-create.js"),b=s("./node_modules/core-js/internals/array-method-has-species-support.js"),S=s("./node_modules/core-js/internals/well-known-symbol.js"),E=s("./node_modules/core-js/internals/engine-v8-version.js"),C=S("isConcatSpreadable"),_=9007199254740991,T="Maximum allowed index exceeded",w=E>=51||!l(function(){var M=[];return M[C]=!1,M.concat()[0]!==M}),O=b("concat"),I=function(U){if(!o(U))return!1;var P=U[C];return P!==void 0?!!P:n(U)},k=!w||!O;e({target:"Array",proto:!0,forced:k},{concat:function(U){var P=c(this),X=v(P,0),F=0,j,K,z,V,Q;for(j=-1,z=arguments.length;j<z;j++)if(Q=j===-1?P:arguments[j],I(Q)){if(V=h(Q.length),F+V>_)throw TypeError(T);for(K=0;K<V;K++,F++)K in Q&&g(X,F,Q[K])}else{if(F>=_)throw TypeError(T);g(X,F++,Q)}return X.length=F,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/to-indexed-object.js"),l=s("./node_modules/core-js/internals/add-to-unscopables.js"),n=s("./node_modules/core-js/internals/iterators.js"),o=s("./node_modules/core-js/internals/internal-state.js"),c=s("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",g=o.set,v=o.getterFor(h);i.exports=c(Array,"Array",function(b,S){g(this,{type:h,target:e(b),index:0,kind:S})},function(){var b=v(this),S=b.target,E=b.kind,C=b.index++;return!S||C>=S.length?(b.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:S[C],done:!1}:{value:[C,S[C]],done:!1}},"values"),n.Arguments=n.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/indexed-object.js"),n=s("./node_modules/core-js/internals/to-indexed-object.js"),o=s("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=l!=Object,g=o("join",",");e({target:"Array",proto:!0,forced:h||!g},{join:function(b){return c.call(n(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/array-iteration.js").map,n=s("./node_modules/core-js/internals/array-method-has-species-support.js"),o=n("map");e({target:"Array",proto:!0,forced:!o},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/is-object.js"),n=s("./node_modules/core-js/internals/is-array.js"),o=s("./node_modules/core-js/internals/to-absolute-index.js"),c=s("./node_modules/core-js/internals/to-length.js"),h=s("./node_modules/core-js/internals/to-indexed-object.js"),g=s("./node_modules/core-js/internals/create-property.js"),v=s("./node_modules/core-js/internals/well-known-symbol.js"),b=s("./node_modules/core-js/internals/array-method-has-species-support.js"),S=b("slice"),E=v("species"),C=[].slice,_=Math.max;e({target:"Array",proto:!0,forced:!S},{slice:function(w,O){var I=h(this),k=c(I.length),M=o(w,k),U=o(O===void 0?k:O,k),P,X,F;if(n(I)&&(P=I.constructor,typeof P=="function"&&(P===Array||n(P.prototype))?P=void 0:l(P)&&(P=P[E],P===null&&(P=void 0)),P===Array||P===void 0))return C.call(I,M,U);for(X=new(P===void 0?Array:P)(_(U-M,0)),F=0;M<U;M++,F++)M in I&&g(X,F,I[M]);return X.length=F,X}})},"./node_modules/core-js/modules/es.function.name.js":function(i,t,s){var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/object-define-property.js").f,n=Function.prototype,o=n.toString,c=/^\s*function ([^ (]*)/,h="name";e&&!(h in n)&&l(n,h,{configurable:!0,get:function(){try{return o.call(this).match(c)[1]}catch(v){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/descriptors.js"),l=s("./node_modules/core-js/internals/global.js"),n=s("./node_modules/core-js/internals/is-forced.js"),o=s("./node_modules/core-js/internals/redefine.js"),c=s("./node_modules/core-js/internals/has.js"),h=s("./node_modules/core-js/internals/classof-raw.js"),g=s("./node_modules/core-js/internals/inherit-if-required.js"),v=s("./node_modules/core-js/internals/is-symbol.js"),b=s("./node_modules/core-js/internals/to-primitive.js"),S=s("./node_modules/core-js/internals/fails.js"),E=s("./node_modules/core-js/internals/object-create.js"),C=s("./node_modules/core-js/internals/object-get-own-property-names.js").f,_=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,T=s("./node_modules/core-js/internals/object-define-property.js").f,w=s("./node_modules/core-js/internals/string-trim.js").trim,O="Number",I=l[O],k=I.prototype,M=h(E(k))==O,U=function(z){if(v(z))throw TypeError("Cannot convert a Symbol value to a number");var V=b(z,"number"),Q,G,ee,se,ye,he,ke,Pe;if(typeof V=="string"&&V.length>2){if(V=w(V),Q=V.charCodeAt(0),Q===43||Q===45){if(G=V.charCodeAt(2),G===88||G===120)return NaN}else if(Q===48){switch(V.charCodeAt(1)){case 66:case 98:ee=2,se=49;break;case 79:case 111:ee=8,se=55;break;default:return+V}for(ye=V.slice(2),he=ye.length,ke=0;ke<he;ke++)if(Pe=ye.charCodeAt(ke),Pe<48||Pe>se)return NaN;return parseInt(ye,ee)}}return+V};if(n(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var P=function(z){var V=arguments.length<1?0:z,Q=this;return Q instanceof P&&(M?S(function(){k.valueOf.call(Q)}):h(Q)!=O)?g(new I(U(V)),Q,P):U(V)},X=e?C(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),F=0,j;X.length>F;F++)c(I,j=X[F])&&!c(P,j)&&T(P,j,_(I,j));P.prototype=k,k.constructor=P,o(l,O,P)}},"./node_modules/core-js/modules/es.object.assign.js":function(i,t,s){var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(i,t,s){var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/to-object.js"),n=s("./node_modules/core-js/internals/object-keys.js"),o=s("./node_modules/core-js/internals/fails.js"),c=o(function(){n(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return n(l(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(i,t,s){var e=s("./node_modules/core-js/internals/to-string-tag-support.js"),l=s("./node_modules/core-js/internals/redefine.js"),n=s("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",n,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/redefine.js"),l=s("./node_modules/core-js/internals/an-object.js"),n=s("./node_modules/core-js/internals/to-string.js"),o=s("./node_modules/core-js/internals/fails.js"),c=s("./node_modules/core-js/internals/regexp-flags.js"),h="toString",g=RegExp.prototype,v=g[h],b=o(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),S=v.name!=h;(b||S)&&e(RegExp.prototype,h,function(){var C=l(this),_=n(C.source),T=C.flags,w=n(T===void 0&&C instanceof RegExp&&!("flags"in g)?c.call(C):T);return"/"+_+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/string-multibyte.js").charAt,l=s("./node_modules/core-js/internals/to-string.js"),n=s("./node_modules/core-js/internals/internal-state.js"),o=s("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=n.set,g=n.getterFor(c);o(String,"String",function(v){h(this,{type:c,string:l(v),index:0})},function(){var b=g(this),S=b.string,E=b.index,C;return E>=S.length?{value:void 0,done:!0}:(C=e(S,E),b.index+=C.length,{value:C,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/create-html.js"),n=s("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:n("link")},{link:function(c){return l(this,"a","href",c)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/descriptors.js"),n=s("./node_modules/core-js/internals/global.js"),o=s("./node_modules/core-js/internals/has.js"),c=s("./node_modules/core-js/internals/is-object.js"),h=s("./node_modules/core-js/internals/object-define-property.js").f,g=s("./node_modules/core-js/internals/copy-constructor-properties.js"),v=n.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var b={},S=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof S?new v(O):O===void 0?v():v(O);return O===""&&(b[I]=!0),I};g(S,v);var E=S.prototype=v.prototype;E.constructor=S;var C=E.toString,_=String(v("test"))=="Symbol(test)",T=/^Symbol\((.*)\)[^)]+$/;h(E,"description",{configurable:!0,get:function(){var O=c(this)?this.valueOf():this,I=C.call(O);if(o(b,O))return"";var k=_?I.slice(7,-1):I.replace(T,"$1");return k===""?void 0:k}}),e({global:!0,forced:!0},{Symbol:S})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(i,t,s){var e=s("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(i,t,s){"use strict";var e=s("./node_modules/core-js/internals/export.js"),l=s("./node_modules/core-js/internals/global.js"),n=s("./node_modules/core-js/internals/get-built-in.js"),o=s("./node_modules/core-js/internals/is-pure.js"),c=s("./node_modules/core-js/internals/descriptors.js"),h=s("./node_modules/core-js/internals/native-symbol.js"),g=s("./node_modules/core-js/internals/fails.js"),v=s("./node_modules/core-js/internals/has.js"),b=s("./node_modules/core-js/internals/is-array.js"),S=s("./node_modules/core-js/internals/is-object.js"),E=s("./node_modules/core-js/internals/is-symbol.js"),C=s("./node_modules/core-js/internals/an-object.js"),_=s("./node_modules/core-js/internals/to-object.js"),T=s("./node_modules/core-js/internals/to-indexed-object.js"),w=s("./node_modules/core-js/internals/to-property-key.js"),O=s("./node_modules/core-js/internals/to-string.js"),I=s("./node_modules/core-js/internals/create-property-descriptor.js"),k=s("./node_modules/core-js/internals/object-create.js"),M=s("./node_modules/core-js/internals/object-keys.js"),U=s("./node_modules/core-js/internals/object-get-own-property-names.js"),P=s("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=s("./node_modules/core-js/internals/object-get-own-property-symbols.js"),F=s("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),j=s("./node_modules/core-js/internals/object-define-property.js"),K=s("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=s("./node_modules/core-js/internals/redefine.js"),Q=s("./node_modules/core-js/internals/shared.js"),G=s("./node_modules/core-js/internals/shared-key.js"),ee=s("./node_modules/core-js/internals/hidden-keys.js"),se=s("./node_modules/core-js/internals/uid.js"),ye=s("./node_modules/core-js/internals/well-known-symbol.js"),he=s("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ke=s("./node_modules/core-js/internals/define-well-known-symbol.js"),Pe=s("./node_modules/core-js/internals/set-to-string-tag.js"),Ue=s("./node_modules/core-js/internals/internal-state.js"),$e=s("./node_modules/core-js/internals/array-iteration.js").forEach,Ge=G("hidden"),ht="Symbol",Fe="prototype",oe=ye("toPrimitive"),rt=Ue.set,fe=Ue.getterFor(ht),J=Object[Fe],Y=l.Symbol,$=n("JSON","stringify"),de=F.f,we=j.f,Ce=P.f,Se=K.f,le=Q("symbols"),pe=Q("op-symbols"),_e=Q("string-to-symbol-registry"),tt=Q("symbol-to-string-registry"),gt=Q("wks"),ct=l.QObject,je=!ct||!ct[Fe]||!ct[Fe].findChild,Zt=c&&g(function(){return k(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(Ze,Xe,ue){var St=de(J,Xe);St&&delete J[Xe],we(Ze,Xe,ue),St&&Ze!==J&&we(J,Xe,St)}:we,ut=function(Xe,ue){var St=le[Xe]=k(Y[Fe]);return rt(St,{type:ht,tag:Xe,description:ue}),c||(St.description=ue),St},Ht=function(Xe,ue,St){Xe===J&&Ht(pe,ue,St),C(Xe);var Qt=w(ue);return C(St),v(le,Qt)?(St.enumerable?(v(Xe,Ge)&&Xe[Ge][Qt]&&(Xe[Ge][Qt]=!1),St=k(St,{enumerable:I(0,!1)})):(v(Xe,Ge)||we(Xe,Ge,I(1,{})),Xe[Ge][Qt]=!0),Zt(Xe,Qt,St)):we(Xe,Qt,St)},dr=function(Xe,ue){C(Xe);var St=T(ue),Qt=M(St).concat(me(St));return $e(Qt,function(dt){(!c||Mt.call(St,dt))&&Ht(Xe,dt,St[dt])}),Xe},Vt=function(Xe,ue){return ue===void 0?k(Xe):dr(k(Xe),ue)},Mt=function(Xe){var ue=w(Xe),St=Se.call(this,ue);return this===J&&v(le,ue)&&!v(pe,ue)?!1:St||!v(this,ue)||!v(le,ue)||v(this,Ge)&&this[Ge][ue]?St:!0},Gt=function(Xe,ue){var St=T(Xe),Qt=w(ue);if(St===J&&v(le,Qt)&&!v(pe,Qt))return;var dt=de(St,Qt);return dt&&v(le,Qt)&&!(v(St,Ge)&&St[Ge][Qt])&&(dt.enumerable=!0),dt},Ve=function(Xe){var ue=Ce(T(Xe)),St=[];return $e(ue,function(Qt){!v(le,Qt)&&!v(ee,Qt)&&St.push(Qt)}),St},me=function(Xe){var ue=Xe===J,St=Ce(ue?pe:T(Xe)),Qt=[];return $e(St,function(dt){v(le,dt)&&(!ue||v(J,dt))&&Qt.push(le[dt])}),Qt};if(h||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var Xe=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),ue=se(Xe),St=function Qt(dt){this===J&&Qt.call(pe,dt),v(this,Ge)&&v(this[Ge],ue)&&(this[Ge][ue]=!1),Zt(this,ue,I(1,dt))};return c&&je&&Zt(J,ue,{configurable:!0,set:St}),ut(ue,Xe)},V(Y[Fe],"toString",function(){return fe(this).tag}),V(Y,"withoutSetter",function(Ze){return ut(se(Ze),Ze)}),K.f=Mt,j.f=Ht,F.f=Gt,U.f=P.f=Ve,X.f=me,he.f=function(Ze){return ut(ye(Ze),Ze)},c&&(we(Y[Fe],"description",{configurable:!0,get:function(){return fe(this).description}}),o||V(J,"propertyIsEnumerable",Mt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),$e(M(gt),function(Ze){ke(Ze)}),e({target:ht,stat:!0,forced:!h},{for:function(Xe){var ue=O(Xe);if(v(_e,ue))return _e[ue];var St=Y(ue);return _e[ue]=St,tt[St]=ue,St},keyFor:function(Xe){if(!E(Xe))throw TypeError(Xe+" is not a symbol");if(v(tt,Xe))return tt[Xe]},useSetter:function(){je=!0},useSimple:function(){je=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Vt,defineProperty:Ht,defineProperties:dr,getOwnPropertyDescriptor:Gt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ve,getOwnPropertySymbols:me}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(Xe){return X.f(_(Xe))}}),$){var te=!h||g(function(){var Ze=Y();return $([Ze])!="[null]"||$({a:Ze})!="{}"||$(Object(Ze))!="{}"});e({target:"JSON",stat:!0,forced:te},{stringify:function(Xe,ue,St){for(var Qt=[Xe],dt=1,Jt;arguments.length>dt;)Qt.push(arguments[dt++]);return Jt=ue,!S(ue)&&Xe===void 0||E(Xe)?void 0:(b(ue)||(ue=function(tn,kt){if(typeof Jt=="function"&&(kt=Jt.call(this,tn,kt)),!E(kt))return kt}),Qt[1]=ue,$.apply(null,Qt))}})}Y[Fe][oe]||z(Y[Fe],oe,Y[Fe].valueOf),Pe(Y,ht),ee[Ge]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/dom-iterables.js"),n=s("./node_modules/core-js/internals/array-for-each.js"),o=s("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in l){var h=e[c],g=h&&h.prototype;if(g&&g.forEach!==n)try{o(g,"forEach",n)}catch(v){g.forEach=n}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(i,t,s){var e=s("./node_modules/core-js/internals/global.js"),l=s("./node_modules/core-js/internals/dom-iterables.js"),n=s("./node_modules/core-js/modules/es.array.iterator.js"),o=s("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=s("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),g=c("toStringTag"),v=n.values;for(var b in l){var S=e[b],E=S&&S.prototype;if(E){if(E[h]!==v)try{o(E,h,v)}catch(_){E[h]=v}if(E[g]||o(E,g,b),l[b]){for(var C in n)if(E[C]!==n[C])try{o(E,C,n[C])}catch(_){E[C]=n[C]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(i){/*!
* @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.8+1e68dce6
*/(function(t,s){i.exports=s()})(this,function(){"use strict";function t(ct){var je=typeof ct;return ct!==null&&(je==="object"||je==="function")}function s(ct){return typeof ct=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(je){return Object.prototype.toString.call(je)==="[object Array]"};var l=e,n=0,o=void 0,c=void 0,h=function(je,Zt){M[n]=je,M[n+1]=Zt,n+=2,n===2&&(c?c(U):X())};function g(ct){c=ct}function v(ct){h=ct}var b=typeof window!="undefined"?window:void 0,S=b||{},E=S.MutationObserver||S.WebKitMutationObserver,C=typeof self=="undefined"&&typeof f!="undefined"&&{}.toString.call(f)==="[object process]",_=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function T(){return function(){return f.nextTick(U)}}function w(){return typeof o!="undefined"?function(){o(U)}:k()}function O(){var ct=0,je=new E(U),Zt=document.createTextNode("");return je.observe(Zt,{characterData:!0}),function(){Zt.data=ct=++ct%2}}function I(){var ct=new MessageChannel;return ct.port1.onmessage=U,function(){return ct.port2.postMessage(0)}}function k(){var ct=setTimeout;return function(){return ct(U,1)}}var M=new Array(1e3);function U(){for(var ct=0;ct<n;ct+=2){var je=M[ct],Zt=M[ct+1];je(Zt),M[ct]=void 0,M[ct+1]=void 0}n=0}function P(){try{var ct=Function("return this")().require("vertx");return o=ct.runOnLoop||ct.runOnContext,w()}catch(je){return k()}}var X=void 0;C?X=T():E?X=O():_?X=I():b===void 0&&!0?X=P():X=k();function F(ct,je){var Zt=this,ut=new this.constructor(z);ut[K]===void 0&&$(ut);var Ht=Zt._state;if(Ht){var dr=arguments[Ht-1];h(function(){return rt(Ht,ut,dr,Zt._result)})}else Fe(Zt,ut,ct,je);return ut}function j(ct){var je=this;if(ct&&typeof ct=="object"&&ct.constructor===je)return ct;var Zt=new je(z);return Ue(Zt,ct),Zt}var K=Math.random().toString(36).substring(2);function z(){}var V=void 0,Q=1,G=2;function ee(){return new TypeError("You cannot resolve a promise with itself")}function se(){return new TypeError("A promises callback cannot return that same promise.")}function ye(ct,je,Zt,ut){try{ct.call(je,Zt,ut)}catch(Ht){return Ht}}function he(ct,je,Zt){h(function(ut){var Ht=!1,dr=ye(Zt,je,function(Vt){if(Ht)return;Ht=!0,je!==Vt?Ue(ut,Vt):Ge(ut,Vt)},function(Vt){if(Ht)return;Ht=!0,ht(ut,Vt)},"Settle: "+(ut._label||" unknown promise"));!Ht&&dr&&(Ht=!0,ht(ut,dr))},ct)}function ke(ct,je){je._state===Q?Ge(ct,je._result):je._state===G?ht(ct,je._result):Fe(je,void 0,function(Zt){return Ue(ct,Zt)},function(Zt){return ht(ct,Zt)})}function Pe(ct,je,Zt){je.constructor===ct.constructor&&Zt===F&&je.constructor.resolve===j?ke(ct,je):Zt===void 0?Ge(ct,je):s(Zt)?he(ct,je,Zt):Ge(ct,je)}function Ue(ct,je){if(ct===je)ht(ct,ee());else if(t(je)){var Zt=void 0;try{Zt=je.then}catch(ut){ht(ct,ut);return}Pe(ct,je,Zt)}else Ge(ct,je)}function $e(ct){ct._onerror&&ct._onerror(ct._result),oe(ct)}function Ge(ct,je){if(ct._state!==V)return;ct._result=je,ct._state=Q,ct._subscribers.length!==0&&h(oe,ct)}function ht(ct,je){if(ct._state!==V)return;ct._state=G,ct._result=je,h($e,ct)}function Fe(ct,je,Zt,ut){var Ht=ct._subscribers,dr=Ht.length;ct._onerror=null,Ht[dr]=je,Ht[dr+Q]=Zt,Ht[dr+G]=ut,dr===0&&ct._state&&h(oe,ct)}function oe(ct){var je=ct._subscribers,Zt=ct._state;if(je.length===0)return;for(var ut=void 0,Ht=void 0,dr=ct._result,Vt=0;Vt<je.length;Vt+=3)ut=je[Vt],Ht=je[Vt+Zt],ut?rt(Zt,ut,Ht,dr):Ht(dr);ct._subscribers.length=0}function rt(ct,je,Zt,ut){var Ht=s(Zt),dr=void 0,Vt=void 0,Mt=!0;if(Ht){try{dr=Zt(ut)}catch(Gt){Mt=!1,Vt=Gt}if(je===dr){ht(je,se());return}}else dr=ut;je._state!==V||(Ht&&Mt?Ue(je,dr):Mt===!1?ht(je,Vt):ct===Q?Ge(je,dr):ct===G&&ht(je,dr))}function fe(ct,je){try{je(function(ut){Ue(ct,ut)},function(ut){ht(ct,ut)})}catch(Zt){ht(ct,Zt)}}var J=0;function Y(){return J++}function $(ct){ct[K]=J++,ct._state=void 0,ct._result=void 0,ct._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var we=function(){function ct(je,Zt){this._instanceConstructor=je,this.promise=new je(z),this.promise[K]||$(this.promise),l(Zt)?(this.length=Zt.length,this._remaining=Zt.length,this._result=new Array(this.length),this.length===0?Ge(this.promise,this._result):(this.length=this.length||0,this._enumerate(Zt),this._remaining===0&&Ge(this.promise,this._result))):ht(this.promise,de())}return ct.prototype._enumerate=function(Zt){for(var ut=0;this._state===V&&ut<Zt.length;ut++)this._eachEntry(Zt[ut],ut)},ct.prototype._eachEntry=function(Zt,ut){var Ht=this._instanceConstructor,dr=Ht.resolve;if(dr===j){var Vt=void 0,Mt=void 0,Gt=!1;try{Vt=Zt.then}catch(me){Gt=!0,Mt=me}if(Vt===F&&Zt._state!==V)this._settledAt(Zt._state,ut,Zt._result);else if(typeof Vt!="function")this._remaining--,this._result[ut]=Zt;else if(Ht===tt){var Ve=new Ht(z);Gt?ht(Ve,Mt):Pe(Ve,Zt,Vt),this._willSettleAt(Ve,ut)}else this._willSettleAt(new Ht(function(me){return me(Zt)}),ut)}else this._willSettleAt(dr(Zt),ut)},ct.prototype._settledAt=function(Zt,ut,Ht){var dr=this.promise;dr._state===V&&(this._remaining--,Zt===G?ht(dr,Ht):this._result[ut]=Ht),this._remaining===0&&Ge(dr,this._result)},ct.prototype._willSettleAt=function(Zt,ut){var Ht=this;Fe(Zt,void 0,function(dr){return Ht._settledAt(Q,ut,dr)},function(dr){return Ht._settledAt(G,ut,dr)})},ct}();function Ce(ct){return new we(this,ct).promise}function Se(ct){var je=this;return l(ct)?new je(function(Zt,ut){for(var Ht=ct.length,dr=0;dr<Ht;dr++)je.resolve(ct[dr]).then(Zt,ut)}):new je(function(Zt,ut){return ut(new TypeError("You must pass an array to race."))})}function le(ct){var je=this,Zt=new je(z);return ht(Zt,ct),Zt}function pe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function _e(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var tt=function(){function ct(je){this[K]=Y(),this._result=this._state=void 0,this._subscribers=[],z!==je&&(typeof je!="function"&&pe(),this instanceof ct?fe(this,je):_e())}return ct.prototype.catch=function(Zt){return this.then(null,Zt)},ct.prototype.finally=function(Zt){var ut=this,Ht=ut.constructor;return s(Zt)?ut.then(function(dr){return Ht.resolve(Zt()).then(function(){return dr})},function(dr){return Ht.resolve(Zt()).then(function(){throw dr})}):ut.then(Zt,Zt)},ct}();tt.prototype.then=F,tt.all=Ce,tt.race=Se,tt.resolve=j,tt.reject=le,tt._setScheduler=g,tt._setAsap=v,tt._asap=h;function gt(){var ct=void 0;if(typeof y!="undefined")ct=y;else if(typeof self!="undefined")ct=self;else try{ct=Function("return this")()}catch(ut){throw new Error("polyfill failed because global object is unavailable in this environment")}var je=ct.Promise;if(je){var Zt=null;try{Zt=Object.prototype.toString.call(je.resolve())}catch(ut){}if(Zt==="[object Promise]"&&!je.cast)return}ct.Promise=tt}return tt.polyfill=gt,tt.Promise=tt,tt})},html2canvas:function(i){"use strict";i.exports=A},jspdf:function(i){"use strict";i.exports=x}},p={};function d(a){var i=p[a];if(i!==void 0)return i.exports;var t=p[a]={exports:{}};return m[a].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return d.d(i,{a:i}),i}}(),!function(){d.d=function(a,i){for(var t in i)d.o(i,t)&&!d.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:i[t]})}}(),!function(){d.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)}}(),!function(){d.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}}();var u={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/d.r(u);var a=d("./src/worker.js"),i=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),s=d("./src/plugin/hyperlinks.js"),e=function l(n,o){var c=new l.Worker(o);return n?c.from(n).save():c};e.Worker=a.default,u.default=e}(),u=u.default,u}()})}).call(this,r("yLpj"),r("Q2Ig"))},"1q3G":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=y;function y(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(R,L,r){var y=r("MBQ8"),f=y.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(A){return A.stack=null,f.superApply(this,"getInitialData",arguments)}}),x=f;R.exports=x},"1u/T":function(R,L,r){var y=r("ProS"),f={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(f,function(x,A){A.eachComponent({mainType:"visualMap",query:x},function(m){m.setSelected(x.selected)})})},"1uat":function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("MlIO"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.Hasher,m=f.x64,p=m.Word,d=m.WordArray,u=f.algo;function a(){return p.create.apply(p,arguments)}var i=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=a()})();var s=u.SHA512=A.extend({_doReset:function(){this._hash=new d.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(l,n){for(var o=this._hash.words,c=o[0],h=o[1],g=o[2],v=o[3],b=o[4],S=o[5],E=o[6],C=o[7],_=c.high,T=c.low,w=h.high,O=h.low,I=g.high,k=g.low,M=v.high,U=v.low,P=b.high,X=b.low,F=S.high,j=S.low,K=E.high,z=E.low,V=C.high,Q=C.low,G=_,ee=T,se=w,ye=O,he=I,ke=k,Pe=M,Ue=U,$e=P,Ge=X,ht=F,Fe=j,oe=K,rt=z,fe=V,J=Q,Y=0;Y<80;Y++){var $,de,we=t[Y];if(Y<16)de=we.high=l[n+Y*2]|0,$=we.low=l[n+Y*2+1]|0;else{var Ce=t[Y-15],Se=Ce.high,le=Ce.low,pe=(Se>>>1|le<<31)^(Se>>>8|le<<24)^Se>>>7,_e=(le>>>1|Se<<31)^(le>>>8|Se<<24)^(le>>>7|Se<<25),tt=t[Y-2],gt=tt.high,ct=tt.low,je=(gt>>>19|ct<<13)^(gt<<3|ct>>>29)^gt>>>6,Zt=(ct>>>19|gt<<13)^(ct<<3|gt>>>29)^(ct>>>6|gt<<26),ut=t[Y-7],Ht=ut.high,dr=ut.low,Vt=t[Y-16],Mt=Vt.high,Gt=Vt.low;$=_e+dr,de=pe+Ht+($>>>0<_e>>>0?1:0),$=$+Zt,de=de+je+($>>>0<Zt>>>0?1:0),$=$+Gt,de=de+Mt+($>>>0<Gt>>>0?1:0),we.high=de,we.low=$}var Ve=$e&ht^~$e&oe,me=Ge&Fe^~Ge&rt,te=G&se^G&he^se&he,Ze=ee&ye^ee&ke^ye&ke,Xe=(G>>>28|ee<<4)^(G<<30|ee>>>2)^(G<<25|ee>>>7),ue=(ee>>>28|G<<4)^(ee<<30|G>>>2)^(ee<<25|G>>>7),St=($e>>>14|Ge<<18)^($e>>>18|Ge<<14)^($e<<23|Ge>>>9),Qt=(Ge>>>14|$e<<18)^(Ge>>>18|$e<<14)^(Ge<<23|$e>>>9),dt=i[Y],Jt=dt.high,$t=dt.low,tn=J+Qt,kt=fe+St+(tn>>>0<J>>>0?1:0),tn=tn+me,kt=kt+Ve+(tn>>>0<me>>>0?1:0),tn=tn+$t,kt=kt+Jt+(tn>>>0<$t>>>0?1:0),tn=tn+$,kt=kt+de+(tn>>>0<$>>>0?1:0),tr=ue+Ze,Bt=Xe+te+(tr>>>0<ue>>>0?1:0);fe=oe,J=rt,oe=ht,rt=Fe,ht=$e,Fe=Ge,Ge=Ue+tn|0,$e=Pe+kt+(Ge>>>0<Ue>>>0?1:0)|0,Pe=he,Ue=ke,he=se,ke=ye,se=G,ye=ee,ee=tn+tr|0,G=kt+Bt+(ee>>>0<tn>>>0?1:0)|0}T=c.low=T+ee,c.high=_+G+(T>>>0<ee>>>0?1:0),O=h.low=O+ye,h.high=w+se+(O>>>0<ye>>>0?1:0),k=g.low=k+ke,g.high=I+he+(k>>>0<ke>>>0?1:0),U=v.low=U+Ue,v.high=M+Pe+(U>>>0<Ue>>>0?1:0),X=b.low=X+Ge,b.high=P+$e+(X>>>0<Ge>>>0?1:0),j=S.low=j+Fe,S.high=F+ht+(j>>>0<Fe>>>0?1:0),z=E.low=z+rt,E.high=K+oe+(z>>>0<rt>>>0?1:0),Q=C.low=Q+J,C.high=V+fe+(Q>>>0<J>>>0?1:0)},_doFinalize:function(){var l=this._data,n=l.words,o=this._nDataBytes*8,c=l.sigBytes*8;n[c>>>5]|=128<<24-c%32,n[(c+128>>>10<<5)+30]=Math.floor(o/4294967296),n[(c+128>>>10<<5)+31]=o,l.sigBytes=n.length*4,this._process();var h=this._hash.toX32();return h},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});f.SHA512=A._createHelper(s),f.HmacSHA512=A._createHmacHelper(s)}(),y.SHA512})},"1vzs":function(R,L,r){"use strict";r.d(L,"a",function(){return n});var y=r("q1tI"),f=r.n(y),x=r("Ved0"),A=r.n(x),m=r("zU+y"),p=r.n(m),d=r("Eh2f"),u=r.n(d),a=r("1S0Z"),i=r.n(a),t=r("f0uV"),s=r.n(t),e=r("SymL"),l=r.n(e);function n(o){var c=o.suffixIcon,h=o.clearIcon,g=o.menuItemSelectedIcon,v=o.removeIcon,b=o.loading,S=o.multiple,E=o.prefixCls,C=h;h||(C=y.createElement(s.a,null));var _=null;if(c!==void 0)_=c;else if(b)_=y.createElement(p.a,{spin:!0});else{var T="".concat(E,"-suffix");_=function(k){var M=k.open,U=k.showSearch;return M&&U?y.createElement(l.a,{className:T}):y.createElement(A.a,{className:T})}}var w=null;g!==void 0?w=g:S?w=y.createElement(u.a,null):w=null;var O=null;return v!==void 0?O=v:O=y.createElement(i.a,null),{clearIcon:C,suffixIcon:_,itemIcon:w,removeIcon:O}}},"1xaR":function(R,L,r){var y=r("ProS"),f=r("bYtY");r("qgGe"),r("NA0q"),r("RPvy");var x=r("mOdp"),A=r("y3NT"),m=r("0/Rx");y.registerVisual(f.curry(x,"sunburst")),y.registerLayout(f.curry(A,"sunburst")),y.registerProcessor(f.curry(m,"sunburst"))},"24YM":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.SizeSensorId=L.SensorTabIndex=L.SensorClassName=void 0;var y="size-sensor-id";L.SizeSensorId=y;var f="size-sensor-object";L.SensorClassName=f;var x="-1";L.SensorTabIndex=x},"2548":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("6GrX"),A=r("IUWy"),m=r("IwbS"),p=r("Qxkt"),d=r("gPAo"),u=r("eRkO"),a=y.extendComponentView({type:"toolbox",render:function(t,s,e,l){var n=this.group;if(n.removeAll(),!t.get("show"))return;var o=+t.get("itemSize"),c=t.get("feature")||{},h=this._features||(this._features={}),g=[];f.each(c,function(S,E){g.push(E)}),new d(this._featureNames||[],g).add(v).update(v).remove(f.curry(v,null)).execute(),this._featureNames=g;function v(S,E){var C=g[S],_=g[E],T=c[C],w=new p(T,t,t.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===C&&(T.title=l.newTitle),C&&!_){if(i(C))O={model:w,onclick:w.option.onclick,featureName:C};else{var I=A.get(C);if(!I)return;O=new I(w,s,e)}h[C]=O}else{if(O=h[_],!O)return;O.model=w,O.ecModel=s,O.api=e}if(!C&&_){O.dispose&&O.dispose(s,e);return}if(!w.get("show")||O.unusable){O.remove&&O.remove(s,e);return}b(w,O,C),w.setIconStatus=function(k,M){var U=this.option,P=this.iconPaths;U.iconStatus=U.iconStatus||{},U.iconStatus[k]=M,P[k]&&P[k].trigger(M)},O.render&&O.render(w,s,e,l)}function b(S,E,C){var _=S.getModel("iconStyle"),T=S.getModel("emphasis.iconStyle"),w=E.getIcons?E.getIcons():S.get("icon"),O=S.get("title")||{};if(typeof w=="string"){var I=w,k=O;w={},O={},w[C]=I,O[C]=k}var M=S.iconPaths={};f.each(w,function(U,P){var X=m.createIcon(U,{},{x:-o/2,y:-o/2,width:o,height:o});X.setStyle(_.getItemStyle()),X.hoverStyle=T.getItemStyle(),X.setStyle({text:O[P],textAlign:T.get("textAlign"),textBorderRadius:T.get("textBorderRadius"),textPadding:T.get("textPadding"),textFill:null});var F=t.getModel("tooltip");F&&F.get("show")&&X.attr("tooltip",f.extend({content:O[P],formatter:F.get("formatter",!0)||function(){return O[P]},formatterParams:{componentType:"toolbox",name:P,title:O[P],$vars:["name","title"]},position:F.get("position",!0)||"bottom"},F.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=O[P],X.on("mouseover",function(){var j=T.getItemStyle(),K=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:T.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:T.get("textBackgroundColor"),textPosition:T.get("textPosition")||K})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(S.get("iconStatus."+P)||"normal"),n.add(X),X.on("click",f.bind(E.onclick,E,s,e,P)),M[P]=X})}u.layout(n,t,e),n.add(u.makeBackground(n.getBoundingRect(),t)),n.eachChild(function(S){var E=S.__title,C=S.hoverStyle;if(C&&E){var _=x.getBoundingRect(E,x.makeFont(C)),T=S.position[0]+n.position[0],w=S.position[1]+n.position[1]+o,O=!1;w+_.height>e.getHeight()&&(C.textPosition="top",O=!0);var I=O?-5-_.height:o+8;T+_.width/2>e.getWidth()?(C.textPosition=["100%",I],C.textAlign="right"):T-_.width/2<0&&(C.textPosition=[0,I],C.textAlign="left")}})},updateView:function(t,s,e,l){f.each(this._features,function(n){n.updateView&&n.updateView(n.model,s,e,l)})},remove:function(t,s){f.each(this._features,function(e){e.remove&&e.remove(t,s)}),this.group.removeAll()},dispose:function(t,s){f.each(this._features,function(e){e.dispose&&e.dispose(t,s)})}});function i(t){return t.indexOf("my")===0}R.exports=a},"2B6p":function(R,L){function r(y,f,x){var A=y.getZoom(),m=y.getCenter(),p=f.zoom,d=y.dataToPoint(m);if(f.dx!=null&&f.dy!=null){d[0]-=f.dx,d[1]-=f.dy;var m=y.pointToData(d);y.setCenter(m)}if(p!=null){if(x){var u=x.min||0,a=x.max||Infinity;p=Math.max(Math.min(A*p,a),u)/A}y.scale[0]*=p,y.scale[1]*=p;var i=y.position,t=(f.originX-i[0])*(p-1),s=(f.originY-i[1])*(p-1);i[0]-=t,i[1]-=s,y.updateTransform();var m=y.pointToData(d);y.setCenter(m),y.setZoom(p*A)}return{center:y.getCenter(),zoom:y.getZoom()}}L.updateCenterAndZoom=r},"2BaD":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CloseCircleOutlined";var d=L.a=f.forwardRef(p)},"2DNl":function(R,L,r){var y=r("IMiH"),f=r("loD1"),x=r("59Ip"),A=r("aKvl"),m=r("n1HI"),p=r("hX1E"),d=p.normalizeRadian,u=r("Sj9i"),a=r("hyiK"),i=y.CMD,t=Math.PI*2,s=1e-4;function e(E,C){return Math.abs(E-C)<s}var l=[-1,-1,-1],n=[-1,-1];function o(){var E=n[0];n[0]=n[1],n[1]=E}function c(E,C,_,T,w,O,I,k,M,U){if(U>C&&U>T&&U>O&&U>k||U<C&&U<T&&U<O&&U<k)return 0;var P=u.cubicRootAt(C,T,O,k,U,l);if(P===0)return 0;for(var X=0,F=-1,j,K,z=0;z<P;z++){var V=l[z],Q=V===0||V===1?.5:1,G=u.cubicAt(E,_,w,I,V);if(G<M)continue;F<0&&(F=u.cubicExtrema(C,T,O,k,n),n[1]<n[0]&&F>1&&o(),j=u.cubicAt(C,T,O,k,n[0]),F>1&&(K=u.cubicAt(C,T,O,k,n[1]))),F===2?V<n[0]?X+=j<C?Q:-Q:V<n[1]?X+=K<j?Q:-Q:X+=k<K?Q:-Q:V<n[0]?X+=j<C?Q:-Q:X+=k<j?Q:-Q}return X}function h(E,C,_,T,w,O,I,k){if(k>C&&k>T&&k>O||k<C&&k<T&&k<O)return 0;var M=u.quadraticRootAt(C,T,O,k,l);if(M===0)return 0;var U=u.quadraticExtremum(C,T,O);if(U>=0&&U<=1){for(var P=0,X=u.quadraticAt(C,T,O,U),F=0;F<M;F++){var j=l[F]===0||l[F]===1?.5:1,K=u.quadraticAt(E,_,w,l[F]);if(K<I)continue;l[F]<U?P+=X<C?j:-j:P+=O<X?j:-j}return P}else{var j=l[0]===0||l[0]===1?.5:1,K=u.quadraticAt(E,_,w,l[0]);return K<I?0:O<C?j:-j}}function g(E,C,_,T,w,O,I,k){if(k-=C,k>_||k<-_)return 0;var M=Math.sqrt(_*_-k*k);l[0]=-M,l[1]=M;var U=Math.abs(T-w);if(U<1e-4)return 0;if(U%t<1e-4){T=0,w=t;var P=O?1:-1;return I>=l[0]+E&&I<=l[1]+E?P:0}if(O){var M=T;T=d(w),w=d(M)}else T=d(T),w=d(w);T>w&&(w+=t);for(var X=0,F=0;F<2;F++){var j=l[F];if(j+E>I){var K=Math.atan2(k,j),P=O?1:-1;K<0&&(K=t+K),(K>=T&&K<=w||K+t>=T&&K+t<=w)&&(K>Math.PI/2&&K<Math.PI*1.5&&(P=-P),X+=P)}}return X}function v(E,C,_,T,w){for(var O=0,I=0,k=0,M=0,U=0,P=0;P<E.length;){var X=E[P++];X===i.M&&P>1&&(_||(O+=a(I,k,M,U,T,w))),P===1&&(I=E[P],k=E[P+1],M=I,U=k);switch(X){case i.M:M=E[P++],U=E[P++],I=M,k=U;break;case i.L:if(_){if(f.containStroke(I,k,E[P],E[P+1],C,T,w))return!0}else O+=a(I,k,E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.C:if(_){if(x.containStroke(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=c(I,k,E[P++],E[P++],E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.Q:if(_){if(A.containStroke(I,k,E[P++],E[P++],E[P],E[P+1],C,T,w))return!0}else O+=h(I,k,E[P++],E[P++],E[P],E[P+1],T,w)||0;I=E[P++],k=E[P++];break;case i.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++];P+=1;var G=1-E[P++],ee=Math.cos(V)*K+F,se=Math.sin(V)*z+j;P>1?O+=a(I,k,ee,se,T,w):(M=ee,U=se);var ye=(T-F)*z/K+F;if(_){if(m.containStroke(F,j,z,V,V+Q,G,C,ye,w))return!0}else O+=g(F,j,z,V,V+Q,G,ye,w);I=Math.cos(V+Q)*K+F,k=Math.sin(V+Q)*z+j;break;case i.R:M=I=E[P++],U=k=E[P++];var he=E[P++],ke=E[P++],ee=M+he,se=U+ke;if(_){if(f.containStroke(M,U,ee,U,C,T,w)||f.containStroke(ee,U,ee,se,C,T,w)||f.containStroke(ee,se,M,se,C,T,w)||f.containStroke(M,se,M,U,C,T,w))return!0}else O+=a(ee,U,ee,se,T,w),O+=a(M,se,M,U,T,w);break;case i.Z:if(_){if(f.containStroke(I,k,M,U,C,T,w))return!0}else O+=a(I,k,M,U,T,w);I=M,k=U;break}}return!_&&!e(k,U)&&(O+=a(I,k,M,U,T,w)||0),O!==0}function b(E,C,_){return v(E,0,!1,C,_)}function S(E,C,_,T){return v(E,C,!0,_,T)}L.contain=b,L.containStroke=S},"2dDv":function(R,L,r){var y=r("bYtY"),f=r("Fofx"),x=r("+TT/"),A=r("aX7z"),m=r("D1WM"),p=r("IwbS"),d=r("OELB"),u=r("72pK"),a=y.each,i=Math.min,t=Math.max,s=Math.floor,e=Math.ceil,l=d.round,n=Math.PI;function o(b,S,E){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,S,E)}o.prototype={type:"parallel",constructor:o,_init:function(b,S,E){var C=b.dimensions,_=b.parallelAxisIndex;a(C,function(T,w){var O=_[w],I=S.getComponent("parallelAxis",O),k=this._axesMap.set(T,new m(T,A.createScaleByModel(I),[0,0],I.get("type"),O)),M=k.type==="category";k.onBand=M&&I.get("boundaryGap"),k.inverse=I.get("inverse"),I.axis=k,k.model=I,k.coordinateSystem=I.coordinateSystem=this},this)},update:function(b,S){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var S=this._makeLayoutInfo(),E=S.axisBase,C=S.layoutBase,_=S.pixelDimIndex,T=b[1-_],w=b[_];return T>=E&&T<=E+S.axisLength&&w>=C&&w<=C+S.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,S){S.eachSeries(function(E){if(!b.contains(E,S))return;var C=E.getData();a(this.dimensions,function(_){var T=this._axesMap.get(_);T.scale.unionExtentFromData(C,C.mapDimension(_)),A.niceScaleExtent(T.scale,T.model)},this)},this)},resize:function(b,S){this._rect=x.getLayoutRect(b.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,S=this._rect,E=["x","y"],C=["width","height"],_=b.get("layout"),T=_==="horizontal"?0:1,w=S[C[T]],O=[0,w],I=this.dimensions.length,k=c(b.get("axisExpandWidth"),O),M=c(b.get("axisExpandCount")||0,[0,I]),U=b.get("axisExpandable")&&I>3&&I>M&&M>1&&k>0&&w>0,P=b.get("axisExpandWindow"),X;if(P)X=c(P[1]-P[0],O),P[1]=P[0]+X;else{X=c(k*(M-1),O);var F=b.get("axisExpandCenter")||s(I/2);P=[k*F-X/2],P[1]=P[0]+X}var j=(w-X)/(I-M);j<3&&(j=0);var K=[s(l(P[0]/k,1))+1,e(l(P[1]/k,1))-1],z=j/k*P[0];return{layout:_,pixelDimIndex:T,layoutBase:S[E[T]],layoutLength:w,axisBase:S[E[1-T]],axisLength:S[C[1-T]],axisExpandable:U,axisExpandWidth:k,axisCollapseWidth:j,axisExpandWindow:P,axisCount:I,winInnerIndices:K,axisExpandWindow0Pos:z}},_layoutAxes:function(){var b=this._rect,S=this._axesMap,E=this.dimensions,C=this._makeLayoutInfo(),_=C.layout;S.each(function(T){var w=[0,C.axisLength],O=T.inverse?1:0;T.setExtent(w[O],w[1-O])}),a(E,function(T,w){var O=(C.axisExpandable?g:h)(w,C),I={horizontal:{x:O.position,y:C.axisLength},vertical:{x:0,y:O.position}},k={horizontal:n/2,vertical:0},M=[I[_].x+b.x,I[_].y+b.y],U=k[_],P=f.create();f.rotate(P,P,U),f.translate(P,P,M),this._axesLayout[T]={position:M,rotation:U,transform:P,axisNameAvailableWidth:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,S){return this.axisCoordToPoint(this._axesMap.get(S).dataToCoord(b),S)},eachActiveState:function(b,S,E,C){E==null&&(E=0),C==null&&(C=b.count());var _=this._axesMap,T=this.dimensions,w=[],O=[];y.each(T,function(j){w.push(b.mapDimension(j)),O.push(_.get(j).model)});for(var I=this.hasAxisBrushed(),k=E;k<C;k++){var M;if(!I)M="normal";else{M="active";for(var U=b.getValues(w,k),P=0,X=T.length;P<X;P++){var F=O[P].getActiveState(U[P]);if(F==="inactive"){M="inactive";break}}}S(M,k)}},hasAxisBrushed:function(){for(var b=this.dimensions,S=this._axesMap,E=!1,C=0,_=b.length;C<_;C++)S.get(b[C]).model.getActiveState()!=="normal"&&(E=!0);return E},axisCoordToPoint:function(b,S){var E=this._axesLayout[S];return p.applyTransform([b,0],E.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var S=this._makeLayoutInfo(),E=S.pixelDimIndex,C=S.axisExpandWindow.slice(),_=C[1]-C[0],T=[0,S.axisExpandWidth*(S.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:C};var w=b[E]-S.layoutBase-S.axisExpandWindow0Pos,O,I="slide",k=S.axisCollapseWidth,M=this._model.get("axisExpandSlideTriggerArea"),U=M[0]!=null;if(k)U&&k&&w<_*M[0]?(I="jump",O=w-_*M[2]):U&&k&&w>_*(1-M[0])?(I="jump",O=w-_*(1-M[2])):(O=w-_*M[1])>=0&&(O=w-_*(1-M[1]))<=0&&(O=0),O*=S.axisExpandWidth/k,O?u(O,C,T,"all"):I="none";else{var _=C[1]-C[0],P=T[1]*w/_;C=[t(0,P-_/2)],C[1]=i(T[1],C[0]+_),C[0]=C[1]-_}return{axisExpandWindow:C,behavior:I}}};function c(b,S){return i(t(b,S[0]),S[1])}function h(b,S){var E=S.layoutLength/(S.axisCount-1);return{position:E*b,axisNameAvailableWidth:E,axisLabelShow:!0}}function g(b,S){var E=S.layoutLength,C=S.axisExpandWidth,_=S.axisCount,T=S.axisCollapseWidth,w=S.winInnerIndices,O,I=T,k=!1,M;return b<w[0]?(O=b*T,M=T):b<=w[1]?(O=S.axisExpandWindow0Pos+b*C-S.axisExpandWindow[0],I=C,k=!0):(O=E-(_-1-b)*T,M=T),{position:O,axisNameAvailableWidth:I,axisLabelShow:k,nameTruncateMaxWidth:M}}var v=o;R.exports=v},"2fGM":function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("nkfE"),A=r("ICMv"),m=f.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});y.merge(m.prototype,A);var p={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function d(u,a){return a.type||(a.data?"category":"value")}x("angle",m,d,p.angle),x("radius",m,d,p.radius)},"2fM7":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r("BGR+"),n=r("TSYQ"),o=r.n(n),c=r("1OyB"),h=r("vuIU"),g=r("Ji7U"),v=r("LK+K"),b=r("rePB"),S=r("Ff2n"),E=r("ODXe"),C=r("4IlW"),_=r("bX4T"),T=r("YrtM"),w=r("+nKL"),O=function(Re){var Me=Re.className,nt=Re.customizeIcon,yt=Re.customizeIconProps,sr=Re.onMouseDown,Nr=Re.onClick,mn=Re.children,Yn;return typeof nt=="function"?Yn=nt(yt):Yn=nt,e.createElement("span",{className:Me,onMouseDown:function(ur){ur.preventDefault(),sr&&sr(ur)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nr,"aria-hidden":!0},Yn!==void 0?Yn:e.createElement("span",{className:o()(Me.split(/\s+/).map(function(Jn){return"".concat(Jn,"-icon")}))},mn))},I=O,k=function(Re,Me){var nt=Re.prefixCls,yt=Re.id,sr=Re.flattenOptions,Nr=Re.childrenAsData,mn=Re.values,Yn=Re.searchValue,Jn=Re.multiple,ur=Re.defaultActiveFirstOption,Tt=Re.height,Ct=Re.itemHeight,Ar=Re.notFoundContent,er=Re.open,Ft=Re.menuItemSelectedIcon,ir=Re.virtual,Pt=Re.onSelect,rr=Re.onToggleOpen,Yr=Re.onActiveValue,Pr=Re.onScroll,Mr=Re.onMouseEnter,fn="".concat(nt,"-item"),wn=Object(T.a)(function(){return sr},[er,sr],function(qe,lt){return lt[0]&&qe[1]!==lt[1]}),ai=e.useRef(null),ri=function(lt){lt.preventDefault()},gi=function(lt){ai.current&&ai.current.scrollTo({index:lt})},Ii=function(lt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,At=wn.length,fr=0;fr<At;fr+=1){var Jr=(lt+fr*Et+At)%At,Vr=wn[Jr],dn=Vr.group,gr=Vr.data;if(!dn&&!gr.disabled)return Jr}return-1},Mi=e.useState(function(){return Ii(0)}),Qi=Object(E.a)(Mi,2),ot=Qi[0],Ne=Qi[1],He=function(lt){Ne(lt);var Et=wn[lt];if(!Et){Yr(null,-1);return}Yr(Et.data.value,lt)};e.useEffect(function(){He(ur!==!1?Ii(0):-1)},[wn.length,Yn]),e.useEffect(function(){var qe=setTimeout(function(){if(!Jn&&er&&mn.size===1){var lt=Array.from(mn)[0],Et=wn.findIndex(function(At){var fr=At.data;return fr.value===lt});He(Et),gi(Et)}});return function(){return clearTimeout(qe)}},[er]);var Ye=function(lt){lt!==void 0&&Pt(lt,{selected:!mn.has(lt)}),Jn||rr(!1)};if(e.useImperativeHandle(Me,function(){return{onKeyDown:function(lt){var Et=lt.which;switch(Et){case C.a.UP:case C.a.DOWN:{var At=0;if(Et===C.a.UP?At=-1:Et===C.a.DOWN&&(At=1),At!==0){var fr=Ii(ot+At,At);gi(fr),He(fr)}break}case C.a.ENTER:{var Jr=wn[ot];Jr&&!Jr.data.disabled?Ye(Jr.data.value):Ye(void 0),er&&lt.preventDefault();break}case C.a.ESC:rr(!1)}},onKeyUp:function(){},scrollTo:function(lt){gi(lt)}}}),wn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),className:"".concat(fn,"-empty"),onMouseDown:ri},Ar);function at(qe){var lt=wn[qe];if(!lt)return null;var Et=lt.data||{},At=Et.value,fr=Et.label,Jr=Et.children,Vr=Object(_.a)(Et,!0),dn=Nr?Jr:fr;return lt?e.createElement("div",Object.assign({"aria-label":typeof dn=="string"?dn:null},Vr,{key:qe,role:"option",id:"".concat(yt,"_list_").concat(qe),"aria-selected":mn.has(At)}),At):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(yt,"_list"),style:{height:0,width:0,overflow:"hidden"}},at(ot-1),at(ot),at(ot+1)),e.createElement(w.a,{itemKey:"key",ref:ai,data:wn,height:Tt,itemHeight:Ct,fullHeight:!1,onMouseDown:ri,onScroll:Pr,virtual:ir,onMouseEnter:Mr},function(qe,lt){var Et,At=qe.group,fr=qe.groupOption,Jr=qe.data,Vr=Jr.label,dn=Jr.key;if(At)return e.createElement("div",{className:o()(fn,"".concat(fn,"-group"))},Vr!==void 0?Vr:dn);var gr=Jr.disabled,Wn=Jr.value,kr=Jr.title,Fn=Jr.children,vn=Jr.style,$r=Jr.className,ei=Object(S.a)(Jr,["disabled","value","title","children","style","className"]),fi=mn.has(Wn),Pi="".concat(fn,"-option"),Zr=o()(fn,Pi,$r,(Et={},Object(b.a)(Et,"".concat(Pi,"-grouped"),fr),Object(b.a)(Et,"".concat(Pi,"-active"),ot===lt&&!gr),Object(b.a)(Et,"".concat(Pi,"-disabled"),gr),Object(b.a)(Et,"".concat(Pi,"-selected"),fi),Et)),Sn=Nr?Fn:Vr,Gn=!Ft||typeof Ft=="function"||fi;return e.createElement("div",Object.assign({},ei,{"aria-selected":fi,className:Zr,title:kr,onMouseMove:function(){if(ot===lt||gr)return;He(lt)},onClick:function(){gr||Ye(Wn)},style:vn}),e.createElement("div",{className:"".concat(Pi,"-content")},Sn||Wn),e.isValidElement(Ft)||fi,Gn&&e.createElement(I,{className:"".concat(fn,"-option-state"),customizeIcon:Ft,customizeIconProps:{isSelected:fi}},fi?"\u2713":null))}))},M=e.forwardRef(k);M.displayName="OptionList";var U=M,P=function(){return null};P.isSelectOption=!0;var X=P,F=function(){return null};F.isSelectOptGroup=!0;var j=F,K=r("VTBJ"),z=r("Zm9Q");function V(De){var Re=De.key,Me=De.props,nt=Me.children,yt=Me.value,sr=Object(S.a)(Me,["children","value"]);return Object(K.a)({key:Re,value:yt!==void 0?yt:Re,children:nt},sr)}function Q(De){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(De).map(function(Me,nt){if(!e.isValidElement(Me)||!Me.type)return null;var yt=Me.type.isSelectOptGroup,sr=Me.key,Nr=Me.props,mn=Nr.children,Yn=Object(S.a)(Nr,["children"]);return Re||!yt?V(Me):Object(K.a)(Object(K.a)({key:"__RC_SELECT_GRP__".concat(sr===null?nt:sr,"__"),label:sr},Yn),{},{options:Q(mn)})}).filter(function(Me){return Me})}var G=r("KQm4"),ee=r("T5bk"),se=r("U8pU"),ye=r("Kwbf");function he(De){return Array.isArray(De)?De:De!==void 0?[De]:[]}function ke(De,Re){var Me=Re.labelInValue,nt=Re.combobox;if(De===void 0||De===""&&nt)return[];var yt=Array.isArray(De)?De:[De];return Me?yt.map(function(sr){var Nr=sr.key,mn=sr.value;return mn!==void 0?mn:Nr}):yt}function Pe(De,Re){var Me=Re.optionLabelProp,nt=Re.labelInValue,yt=Re.prevValue,sr=Re.options,Nr=Re.getLabeledValue,mn=De;return nt&&(mn=mn.map(function(Yn){return Nr(Yn,{options:sr,prevValue:yt,labelInValue:nt,optionLabelProp:Me})})),mn}function Ue(De,Re){var Me=Object(G.a)(Re),nt;for(nt=De.length-1;nt>=0&&De[nt].disabled;nt-=1);var yt=null;return nt!==-1&&(yt=Me[nt],Me.splice(nt,1)),{values:Me,removedValue:yt}}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=$e,ht=0;function Fe(){var De;return Ge?(De=ht,ht+=1):De="TEST_OR_SSR",De}function oe(De,Re){var Me=De.key,nt;return"value"in De&&(nt=De.value),Me!=null?Me:nt!==void 0?nt:"rc-index-key-".concat(Re)}function rt(De){var Re=[];function Me(nt,yt){nt.forEach(function(sr){yt||!("options"in sr)?Re.push({key:oe(sr,Re.length),groupOption:yt,data:sr}):(Re.push({key:oe(sr,Re.length),group:!0,data:sr}),Me(sr.options,!0))})}return Me(De,!1),Re}function fe(De){var Re=Object(K.a)({},De);return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return Object(ye.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Re}}),Re}function J(De,Re){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=Me.prevValueOptions,yt=nt===void 0?[]:nt,sr=new Map;return Re.forEach(function(Nr){if(!Nr.group){var mn=Nr.data;sr.set(mn.value,mn)}}),De.map(function(Nr){var mn=sr.get(Nr);return mn||(mn=Object(K.a)({},yt.find(function(Yn){return Yn._INTERNAL_OPTION_VALUE_===Nr}))),fe(mn)})}var Y=function(Re,Me){var nt=Me.options,yt=Me.prevValue,sr=Me.labelInValue,Nr=Me.optionLabelProp,mn=J([Re],nt)[0],Yn={value:Re},Jn,ur=he(yt);return sr&&(Jn=ur.find(function(Tt){return Object(se.a)(Tt)==="object"&&"value"in Tt?Tt.value===Re:Tt.key===Re})),Jn&&Object(se.a)(Jn)==="object"&&"label"in Jn?(Yn.label=Jn.label,mn&&typeof Jn.label=="string"&&typeof mn[Nr]=="string"&&Jn.label.trim()!==mn[Nr].trim()&&Object(ye.a)(!1,"`label` of `value` is not same as `label` in Select options.")):mn&&Nr in mn?Yn.label=mn[Nr]:Yn.label=Re,Yn.key=Yn.value,Yn};function $(De){return he(De).join("")}function de(De){return function(Re,Me){var nt=Re.toLowerCase();if("options"in Me)return $(Me.label).toLowerCase().includes(nt);var yt=Me[De],sr=$(yt).toLowerCase();return sr.includes(nt)}}function we(De,Re,Me){var nt=Me.optionFilterProp,yt=Me.filterOption,sr=[],Nr;return yt===!1?Re:(typeof yt=="function"?Nr=yt:Nr=de(nt),Re.forEach(function(mn){if("options"in mn){var Yn=Nr(De,mn);if(Yn)sr.push(mn);else{var Jn=mn.options.filter(function(ur){return Nr(De,ur)});Jn.length&&sr.push(Object(K.a)(Object(K.a)({},mn),{},{options:Jn}))}return}Nr(De,fe(mn))&&sr.push(mn)}),sr)}function Ce(De,Re){if(!Re||!Re.length)return null;var Me=!1;function nt(sr,Nr){var mn=Object(ee.a)(Nr),Yn=mn[0],Jn=mn.slice(1);if(!Yn)return[sr];var ur=sr.split(Yn);return Me=Me||ur.length>1,ur.reduce(function(Tt,Ct){return[].concat(Object(G.a)(Tt),Object(G.a)(nt(Ct,Jn)))},[]).filter(function(Tt){return Tt})}var yt=nt(De,Re);return Me?yt:null}function Se(De,Re){var Me=J([De],Re)[0];return Me.disabled}function le(De,Re,Me,nt){var yt=he(Re).slice().sort(),sr=Object(G.a)(De),Nr=new Set;return De.forEach(function(mn){mn.options?mn.options.forEach(function(Yn){Nr.add(Yn.value)}):Nr.add(mn.value)}),yt.forEach(function(mn){var Yn=nt?mn.value:mn;if(!Nr.has(Yn)){var Jn;sr.push(nt?(Jn={},Object(b.a)(Jn,Me,mn.label),Object(b.a)(Jn,"value",Yn),Jn):{value:Yn})}}),sr}var pe=r("6cGi"),_e=r("HTfv"),tt=r("c+Xe"),gt=function(Re,Me){var nt=Re.prefixCls,yt=Re.id,sr=Re.inputElement,Nr=Re.disabled,mn=Re.tabIndex,Yn=Re.autoFocus,Jn=Re.autoComplete,ur=Re.editable,Tt=Re.accessibilityIndex,Ct=Re.value,Ar=Re.onKeyDown,er=Re.onMouseDown,Ft=Re.onChange,ir=Re.onPaste,Pt=Re.onCompositionStart,rr=Re.onCompositionEnd,Yr=Re.open,Pr=Re.attrs,Mr=sr||e.createElement("input",null),fn=Mr,wn=fn.ref,ai=fn.props,ri=ai.onKeyDown,gi=ai.onChange,Ii=ai.onMouseDown,Mi=ai.onCompositionStart,Qi=ai.onCompositionEnd,ot=ai.style;return Mr=e.cloneElement(Mr,Object(K.a)(Object(K.a)({id:yt,ref:Object(tt.a)(Me,wn),disabled:Nr,tabIndex:mn,autoComplete:Jn||"off",autoFocus:Yn,className:"".concat(nt,"-selection-search-input"),style:Object(K.a)(Object(K.a)({},ot),{},{opacity:ur?null:0}),role:"combobox","aria-expanded":Yr,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":"".concat(yt,"_list_").concat(Tt)},Pr),{},{value:ur?Ct:"",readOnly:!ur,unselectable:ur?null:"on",onKeyDown:function(He){Ar(He),ri&&ri(He)},onMouseDown:function(He){er(He),Ii&&Ii(He)},onChange:function(He){Ft(He),gi&&gi(He)},onCompositionStart:function(He){Pt(He),Mi&&Mi(He)},onCompositionEnd:function(He){rr(He),Qi&&Qi(He)},onPaste:ir})),Mr},ct=e.forwardRef(gt);ct.displayName="Input";var je=ct;function Zt(De,Re){Ge?e.useLayoutEffect(De,Re):e.useEffect(De,Re)}var ut="__RC_SELECT_MAX_REST_COUNT__",Ht=function(Re){var Me=Re.id,nt=Re.prefixCls,yt=Re.values,sr=Re.open,Nr=Re.searchValue,mn=Re.inputRef,Yn=Re.placeholder,Jn=Re.disabled,ur=Re.mode,Tt=Re.showSearch,Ct=Re.autoFocus,Ar=Re.autoComplete,er=Re.accessibilityIndex,Ft=Re.tabIndex,ir=Re.removeIcon,Pt=Re.choiceTransitionName,rr=Re.maxTagCount,Yr=Re.maxTagTextLength,Pr=Re.maxTagPlaceholder,Mr=Pr===void 0?function(Wn){return"+ ".concat(Wn.length," ...")}:Pr,fn=Re.tagRender,wn=Re.onSelect,ai=Re.onInputChange,ri=Re.onInputPaste,gi=Re.onInputKeyDown,Ii=Re.onInputMouseDown,Mi=Re.onInputCompositionStart,Qi=Re.onInputCompositionEnd,ot=e.useState(!1),Ne=Object(E.a)(ot,2),He=Ne[0],Ye=Ne[1],at=e.useRef(null),qe=e.useState(0),lt=Object(E.a)(qe,2),Et=lt[0],At=lt[1];e.useEffect(function(){Ye(!0)},[]);var fr=sr||ur==="tags"?Nr:"",Jr=ur==="tags"||sr&&Tt;Zt(function(){At(at.current.scrollWidth)},[fr]);var Vr=yt,dn;typeof rr=="number"&&(dn=yt.length-rr,Vr=yt.slice(0,rr)),typeof Yr=="number"&&(Vr=Vr.map(function(Wn){var kr=Wn.label,Fn=Object(S.a)(Wn,["label"]),vn=kr;if(typeof kr=="string"||typeof kr=="number"){var $r=String(vn);$r.length>Yr&&(vn="".concat($r.slice(0,Yr),"..."))}return Object(K.a)(Object(K.a)({},Fn),{},{label:vn})})),dn>0&&Vr.push({key:ut,label:typeof Mr=="function"?Mr(yt.slice(rr)):Mr});var gr=e.createElement(_e.CSSMotionList,{component:!1,keys:Vr,motionName:Pt,motionAppear:He},function(Wn){var kr=Wn.key,Fn=Wn.label,vn=Wn.value,$r=Wn.disabled,ei=Wn.className,fi=Wn.style,Pi=kr||vn,Zr=kr!==ut&&!$r,Sn=function(Ot){Ot.preventDefault(),Ot.stopPropagation()},Gn=function(Ot){Ot&&Ot.stopPropagation(),wn(vn,{selected:!1})};return typeof fn=="function"?e.createElement("span",{key:Pi,onMouseDown:Sn,className:ei,style:fi},fn({label:Fn,value:vn,disabled:$r,closable:Zr,onClose:Gn})):e.createElement("span",{key:Pi,className:o()(ei,"".concat(nt,"-selection-item"),Object(b.a)({},"".concat(nt,"-selection-item-disabled"),$r)),style:fi},e.createElement("span",{className:"".concat(nt,"-selection-item-content")},Fn),Zr&&e.createElement(I,{className:"".concat(nt,"-selection-item-remove"),onMouseDown:Sn,onClick:Gn,customizeIcon:ir},"\xD7"))});return e.createElement(e.Fragment,null,gr,e.createElement("span",{className:"".concat(nt,"-selection-search"),style:{width:Et}},e.createElement(je,{ref:mn,open:sr,prefixCls:nt,id:Me,inputElement:null,disabled:Jn,autoFocus:Ct,autoComplete:Ar,editable:Jr,accessibilityIndex:er,value:fr,onKeyDown:gi,onMouseDown:Ii,onChange:ai,onPaste:ri,onCompositionStart:Mi,onCompositionEnd:Qi,tabIndex:Ft,attrs:Object(_.a)(Re,!0)}),e.createElement("span",{ref:at,className:"".concat(nt,"-selection-search-mirror"),"aria-hidden":!0},fr,"\xA0")),!yt.length&&!fr&&e.createElement("span",{className:"".concat(nt,"-selection-placeholder")},Yn))},dr=Ht,Vt=function(Re){var Me=Re.inputElement,nt=Re.prefixCls,yt=Re.id,sr=Re.inputRef,Nr=Re.disabled,mn=Re.autoFocus,Yn=Re.autoComplete,Jn=Re.accessibilityIndex,ur=Re.mode,Tt=Re.open,Ct=Re.values,Ar=Re.placeholder,er=Re.tabIndex,Ft=Re.showSearch,ir=Re.searchValue,Pt=Re.activeValue,rr=Re.onInputKeyDown,Yr=Re.onInputMouseDown,Pr=Re.onInputChange,Mr=Re.onInputPaste,fn=Re.onInputCompositionStart,wn=Re.onInputCompositionEnd,ai=e.useState(!1),ri=Object(E.a)(ai,2),gi=ri[0],Ii=ri[1],Mi=ur==="combobox",Qi=Mi||Ft&&Tt,ot=Ct[0],Ne=ir||"";Mi&&Pt&&!gi&&(Ne=Pt),e.useEffect(function(){Mi&&Ii(!1)},[Mi,Pt]);var He=ur!=="combobox"&&!Tt?!1:!!Ne,Ye=ot&&(typeof ot.label=="string"||typeof ot.label=="number")?ot.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(nt,"-selection-search")},e.createElement(je,{ref:sr,prefixCls:nt,id:yt,open:Tt,inputElement:Me,disabled:Nr,autoFocus:mn,autoComplete:Yn,editable:Qi,accessibilityIndex:Jn,value:Ne,onKeyDown:rr,onMouseDown:Yr,onChange:function(qe){Ii(!0),Pr(qe)},onPaste:Mr,onCompositionStart:fn,onCompositionEnd:wn,tabIndex:er,attrs:Object(_.a)(Re,!0)})),!Mi&&ot&&!He&&e.createElement("span",{className:"".concat(nt,"-selection-item"),title:Ye},ot.label),!ot&&!He&&e.createElement("span",{className:"".concat(nt,"-selection-placeholder")},Ar))},Mt=Vt;function Gt(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=e.useRef(null),Me=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Me.current)}},[]);function nt(yt){(yt||Re.current===null)&&(Re.current=yt),window.clearTimeout(Me.current),Me.current=window.setTimeout(function(){Re.current=null},De)}return[function(){return Re.current},nt]}var Ve=function(Re,Me){var nt=Object(e.useRef)(null),yt=Object(e.useRef)(!1),sr=Re.prefixCls,Nr=Re.multiple,mn=Re.open,Yn=Re.mode,Jn=Re.showSearch,ur=Re.tokenWithEnter,Tt=Re.onSearch,Ct=Re.onSearchSubmit,Ar=Re.onToggleOpen,er=Re.onInputKeyDown,Ft=Re.domRef;e.useImperativeHandle(Me,function(){return{focus:function(){nt.current.focus()},blur:function(){nt.current.blur()}}});var ir=Gt(0),Pt=Object(E.a)(ir,2),rr=Pt[0],Yr=Pt[1],Pr=function(He){var Ye=He.which;(Ye===C.a.UP||Ye===C.a.DOWN)&&He.preventDefault(),er&&er(He),Ye===C.a.ENTER&&Yn==="tags"&&!yt.current&&!mn&&Ct(He.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(Ye)||Ar(!0)},Mr=function(){Yr(!0)},fn=Object(e.useRef)(null),wn=function(He){Tt(He,!0,yt.current)!==!1&&Ar(!0)},ai=function(){yt.current=!0},ri=function(){yt.current=!1},gi=function(He){var Ye=He.target.value;if(ur&&fn.current&&/[\r\n]/.test(fn.current)){var at=fn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ye=Ye.replace(at,fn.current)}fn.current=null,wn(Ye)},Ii=function(He){var Ye=He.clipboardData,at=Ye.getData("text");fn.current=at},Mi=function(He){var Ye=rr();if(He.target!==nt.current){Ye||He.preventDefault();var at=document.body.style.msTouchAction!==void 0;at?setTimeout(function(){nt.current.focus()}):nt.current.focus()}(Yn!=="combobox"&&(!Jn||!Ye)||!mn)&&(mn&&Tt("",!0,!1),Ar())},Qi={inputRef:nt,onInputKeyDown:Pr,onInputMouseDown:Mr,onInputChange:gi,onInputPaste:Ii,onInputCompositionStart:ai,onInputCompositionEnd:ri},ot=Nr?e.createElement(dr,Object.assign({},Re,Qi)):e.createElement(Mt,Object.assign({},Re,Qi));return e.createElement("div",{ref:Ft,className:"".concat(sr,"-selector"),onMouseDown:Mi},ot)},me=e.forwardRef(Ve);me.displayName="Selector";var te=me,Ze=r("Uaa1"),Xe=function(Re){var Me=typeof Re!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Me,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Me,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Me,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Me,adjustY:1}}}},ue=function(Re,Me){var nt=Re.prefixCls,yt=Re.disabled,sr=Re.visible,Nr=Re.children,mn=Re.popupElement,Yn=Re.containerWidth,Jn=Re.animation,ur=Re.transitionName,Tt=Re.dropdownStyle,Ct=Re.dropdownClassName,Ar=Re.direction,er=Ar===void 0?"ltr":Ar,Ft=Re.dropdownMatchSelectWidth,ir=Ft===void 0?!0:Ft,Pt=Re.dropdownRender,rr=Re.dropdownAlign,Yr=Re.getPopupContainer,Pr=Re.empty,Mr=Re.getTriggerDOMNode,fn=Object(S.a)(Re,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),wn="".concat(nt,"-dropdown"),ai=mn;Pt&&(ai=Pt(mn));var ri=e.useMemo(function(){return Xe(ir)},[ir]),gi=Jn?"".concat(wn,"-").concat(Jn):ur,Ii=e.useRef(null);e.useImperativeHandle(Me,function(){return{getPopupElement:function(){return Ii.current}}});var Mi=Object(K.a)({minWidth:Yn},Tt);return typeof ir=="number"?Mi.width=ir:ir&&(Mi.width=Yn),e.createElement(Ze.a,Object.assign({},fn,{showAction:[],hideAction:[],popupPlacement:er==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:ri,prefixCls:wn,popupTransitionName:gi,popup:e.createElement("div",{ref:Ii},ai),popupAlign:rr,popupVisible:sr,getPopupContainer:Yr,popupClassName:o()(Ct,Object(b.a)({},"".concat(wn,"-empty"),Pr)),popupStyle:Mi,getTriggerDOMNode:Mr}),Nr)},St=e.forwardRef(ue);St.displayName="SelectTrigger";var Qt=St,dt="RC_SELECT_INTERNAL_PROPS_MARK";function Jt(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=e.useState(!1),Me=Object(E.a)(Re,2),nt=Me[0],yt=Me[1],sr=e.useRef(null),Nr=function(){window.clearTimeout(sr.current)};e.useEffect(function(){return Nr},[]);var mn=function(Jn,ur){Nr(),sr.current=window.setTimeout(function(){yt(Jn),ur&&ur()},De)};return[nt,mn,Nr]}function $t(De,Re,Me){var nt=e.useRef(null);nt.current={elements:De.filter(function(yt){return yt}),open:Re,triggerOpen:Me},e.useEffect(function(){function yt(sr){var Nr=sr.target;nt.current.open&&nt.current.elements.every(function(mn){return!mn.contains(Nr)&&mn!==Nr})&&nt.current.triggerOpen(!1)}return window.addEventListener("mousedown",yt),function(){return window.removeEventListener("mousedown",yt)}},[])}function tn(De){var Re=e.useRef(De),Me=e.useMemo(function(){var nt=new Map;Re.current.forEach(function(sr){var Nr=sr.value,mn=sr.label;Nr!==mn&&nt.set(Nr,mn)});var yt=De.map(function(sr){var Nr=nt.get(sr.value);return sr.value===sr.label&&Nr?Object(K.a)(Object(K.a)({},sr),{},{label:Nr}):sr});return Re.current=yt,yt},[De]);return Me}function kt(De,Re){var Me=e.useRef(null),nt=e.useMemo(function(){var sr=new Map;return Re.forEach(function(Nr){var mn=Nr.data.value;sr.set(mn,Nr)}),sr},[De,Re]);Me.current=nt;var yt=function(Nr){return Nr.map(function(mn){return Me.current.get(mn)}).filter(Boolean)};return yt}var tr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Bt(De){var Re=De.prefixCls,Me=De.components.optionList,nt=De.convertChildrenToData,yt=De.flattenOptions,sr=De.getLabeledValue,Nr=De.filterOptions,mn=De.isValueDisabled,Yn=De.findValueOption,Jn=De.warningProps,ur=De.fillOptionsWithMissingValue,Tt=De.omitDOMProps;function Ct(er,Ft){var ir,Pt=er.prefixCls,rr=Pt===void 0?Re:Pt,Yr=er.className,Pr=er.id,Mr=er.open,fn=er.defaultOpen,wn=er.options,ai=er.children,ri=er.mode,gi=er.value,Ii=er.defaultValue,Mi=er.labelInValue,Qi=er.showSearch,ot=er.inputValue,Ne=er.searchValue,He=er.filterOption,Ye=er.optionFilterProp,at=Ye===void 0?"value":Ye,qe=er.autoClearSearchValue,lt=qe===void 0?!0:qe,Et=er.onSearch,At=er.allowClear,fr=er.clearIcon,Jr=er.showArrow,Vr=er.inputIcon,dn=er.menuItemSelectedIcon,gr=er.disabled,Wn=er.loading,kr=er.defaultActiveFirstOption,Fn=er.notFoundContent,vn=Fn===void 0?"Not Found":Fn,$r=er.optionLabelProp,ei=er.backfill,fi=er.getInputElement,Pi=er.getPopupContainer,Zr=er.listHeight,Sn=Zr===void 0?200:Zr,Gn=er.listItemHeight,Wt=Gn===void 0?20:Gn,Ot=er.animation,Rt=er.transitionName,Ut=er.virtual,Kt=er.dropdownStyle,Lt=er.dropdownClassName,cr=er.dropdownMatchSelectWidth,vr=er.dropdownRender,yr=er.dropdownAlign,Rr=er.showAction,Vn=Rr===void 0?[]:Rr,kn=er.direction,di=er.tokenSeparators,pn=er.tagRender,Br=er.onPopupScroll,_n=er.onDropdownVisibleChange,Xn=er.onFocus,$n=er.onBlur,oi=er.onKeyUp,Ti=er.onKeyDown,Ri=er.onMouseDown,Di=er.onChange,oa=er.onSelect,ma=er.onDeselect,aa=er.onClear,ba=er.internalProps,bi=ba===void 0?{}:ba,Rn=Object(S.a)(er,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),ji=bi.mark===dt,ha=Tt?Tt(Rn):Rn;tr.forEach(function(pa){delete ha[pa]});var ta=Object(e.useRef)(null),ra=Object(e.useRef)(null),Ir=Object(e.useRef)(null),Sr=Object(e.useRef)(null),Tn=Object(e.useMemo)(function(){return(di||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[di]),pr=Jt(),Dr=Object(E.a)(pr,3),Wr=Dr[0],ln=Dr[1],Pn=Dr[2],_t=Object(e.useState)(),_r=Object(E.a)(_t,2),Lr=_r[0],en=_r[1];Object(e.useEffect)(function(){en("rc_select_".concat(Fe()))},[]);var bn=Pr||Lr,On=$r;On===void 0&&(On=wn?"label":"children");var yn=ri==="combobox"?!1:Mi,qn=ri==="tags"||ri==="multiple",Hn=Qi!==void 0?Qi:qn||ri==="combobox",pi=Object(e.useRef)(null);e.useImperativeHandle(Ft,function(){return{focus:Ir.current.focus,blur:Ir.current.blur}});var Fi=Object(pe.a)(Ii,{value:gi}),wi=Object(E.a)(Fi,2),Oi=wi[0],zi=wi[1],ea=Object(e.useMemo)(function(){return ke(Oi,{labelInValue:yn,combobox:ri==="combobox"})},[Oi,yn]),Gi=Object(e.useMemo)(function(){return new Set(ea)},[ea]),Wi=Object(e.useState)(null),Hi=Object(E.a)(Wi,2),Ji=Hi[0],ca=Hi[1],Ca=Object(e.useState)(""),na=Object(E.a)(Ca,2),Pa=na[0],La=na[1],va=Pa;ri==="combobox"&&Oi!==void 0?va=Oi:Ne!==void 0?va=Ne:ot&&(va=ot);var ga=Object(e.useMemo)(function(){var pa=wn;return pa===void 0&&(pa=nt(ai)),ri==="tags"&&ur&&(pa=ur(pa,Oi,On,Mi)),pa||[]},[wn,ai,ri,Oi]),Oa=Object(e.useMemo)(function(){return yt(ga,er)},[ga]),Aa=kt(ea,Oa),Xa=Object(e.useMemo)(function(){if(!va||!Hn)return Object(G.a)(ga);var pa=Nr(va,ga,{optionFilterProp:at,filterOption:ri==="combobox"&&He===void 0?function(){return!0}:He});return ri==="tags"&&pa.every(function(Ea){return Ea[at]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,ri,Hn]),_a=Object(e.useMemo)(function(){return yt(Xa,er)},[Xa]);Object(e.useEffect)(function(){Sr.current&&Sr.current.scrollTo&&Sr.current.scrollTo(0)},[va]);var Va=Object(e.useMemo)(function(){var pa=ea.map(function(Ea){var Fa=Aa([Ea]),Ka=sr(Ea,{options:Fa,prevValue:Oi,labelInValue:yn,optionLabelProp:On});return Object(K.a)(Object(K.a)({},Ka),{},{disabled:mn(Ea,Fa)})});return!ri&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Oi,ga,ri]);Va=tn(Va);var Bi=function(Ea,Fa,Ka){var lo=Aa([Ea]),so=Yn([Ea],lo)[0];if(!bi.skipTriggerSelect){var Co=yn?sr(Ea,{options:lo,prevValue:Oi,labelInValue:yn,optionLabelProp:On}):Ea;Fa&&oa?oa(Co,so):!Fa&&ma&&ma(Co,so)}ji&&(Fa&&bi.onRawSelect?bi.onRawSelect(Ea,so,Ka):!Fa&&bi.onRawDeselect&&bi.onRawDeselect(Ea,so,Ka))},io=Object(e.useState)([]),oo=Object(E.a)(io,2),Qo=oo[0],mo=oo[1],To=function(Ea){if(ji&&bi.skipTriggerChange)return;var Fa=Aa(Ea),Ka=Pe(Array.from(Ea),{labelInValue:yn,options:Fa,getLabeledValue:sr,prevValue:Oi,optionLabelProp:On}),lo=qn?Ka:Ka[0];if(Di&&(ea.length!==0||Ka.length!==0)){var so=Yn(Ea,Fa,{prevValueOptions:Qo});mo(so.map(function(Co,Lo){var is=Object(K.a)({},Co);return Object.defineProperty(is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ea[Lo]}}),is})),Di(lo,qn?so:so[0])}zi(lo)},ao=function(Ea,Fa){var Ka=Fa.selected,lo=Fa.source;if(gr)return;var so;qn?(so=new Set(ea),Ka?so.add(Ea):so.delete(Ea)):(so=new Set,so.add(Ea)),(qn||!qn&&Array.from(ea)[0]!==Ea)&&To(Array.from(so)),Bi(Ea,!qn||Ka,lo),ri==="combobox"?(La(String(Ea)),ca("")):(!qn||lt)&&(La(""),ca(""))},So=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"option"}))},bo=function(Ea,Fa){ao(Ea,Object(K.a)(Object(K.a)({},Fa),{},{source:"selection"}))},to=ri==="combobox"&&fi&&fi()||null,Jo=Object(pe.a)(void 0,{defaultValue:fn,value:Mr}),Uo=Object(E.a)(Jo,2),wo=Uo[0],ts=Uo[1],Ia=wo,Oo=!vn&&!Xa.length;(gr||Oo&&Ia&&ri==="combobox")&&(Ia=!1);var Io=Oo?!1:Ia,os=function(Ea){var Fa=Ea!==void 0?Ea:!Ia;wo!==Fa&&!gr&&(ts(Fa),_n&&_n(Fa))};$t([ta.current,ra.current&&ra.current.getPopupElement()],Io,os);var xo=function(Ea,Fa,Ka){var lo=!0,so=Ea;ca(null);var Co=Ka?null:Ce(Ea,di),Lo=Co;if(ri==="combobox")Fa&&To([so]);else if(Co){so="",ri!=="tags"&&(Lo=Co.map(function(cs){var Rs=Oa.find(function(Ko){var as=Ko.data;return as[On]===cs});return Rs?Rs.data.value:null}).filter(function(cs){return cs!==null}));var is=Array.from(new Set([].concat(Object(G.a)(ea),Object(G.a)(Lo))));To(is),is.forEach(function(cs){Bi(cs,!0,"input")}),os(!1),lo=!1}return La(so),Et&&va!==so&&Et(so),lo},rs=function(Ea){var Fa=Array.from(new Set([].concat(Object(G.a)(ea),[Ea])));To(Fa),Fa.forEach(function(Ka){Bi(Ka,!0,"input")}),La("")};Object(e.useEffect)(function(){wo&&!!gr&&ts(!1)},[gr]),Object(e.useEffect)(function(){!Ia&&!qn&&ri!=="combobox"&&xo("",!1,!1)},[Ia]);var Ho=Gt(),_o=Object(E.a)(Ho,2),uo=_o[0],Ha=_o[1],vt=function(Ea){var Fa=uo(),Ka=Ea.which;if(!Ia&&Ka===C.a.ENTER&&os(!0),Ha(!!va),Ka===C.a.BACKSPACE&&!Fa&&qn&&!va&&ea.length){var lo=Ue(Va,ea);lo.removedValue!==null&&(To(lo.values),Bi(lo.removedValue,!1,"input"))}for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];if(Ia&&Sr.current){var is;(is=Sr.current).onKeyDown.apply(is,[Ea].concat(Co))}Ti&&Ti.apply(void 0,[Ea].concat(Co))},Er=function(Ea){for(var Fa=arguments.length,Ka=new Array(Fa>1?Fa-1:0),lo=1;lo<Fa;lo++)Ka[lo-1]=arguments[lo];if(Ia&&Sr.current){var so;(so=Sr.current).onKeyUp.apply(so,[Ea].concat(Ka))}oi&&oi.apply(void 0,[Ea].concat(Ka))},qr=Object(e.useRef)(!1),Gr=function(){ln(!0),gr||(Xn&&!qr.current&&Xn.apply(void 0,arguments),Vn.includes("focus")&&os(!0)),qr.current=!0},Qn=function(){if(ln(!1,function(){qr.current=!1,os(!1)}),gr)return;va&&(ri==="tags"?(xo("",!1,!1),To(Array.from(new Set([].concat(Object(G.a)(ea),[va]))))):ri==="multiple"&&La("")),$n&&$n.apply(void 0,arguments)},un=[];Object(e.useEffect)(function(){return function(){un.forEach(function(pa){return clearTimeout(pa)}),un.splice(0,un.length)}},[]);var zr=function(Ea){var Fa=Ea.target,Ka=ra.current&&ra.current.getPopupElement();if(Ka&&Ka.contains(Fa)){var lo=setTimeout(function(){var is=un.indexOf(lo);is!==-1&&un.splice(is,1),Pn(),Ka.contains(document.activeElement)||Ir.current.focus()});un.push(lo)}if(Ri){for(var so=arguments.length,Co=new Array(so>1?so-1:0),Lo=1;Lo<so;Lo++)Co[Lo-1]=arguments[Lo];Ri.apply(void 0,[Ea].concat(Co))}},ni=Object(e.useState)(0),rn=Object(E.a)(ni,2),Kn=rn[0],li=rn[1],ci=kr!==void 0?kr:ri!=="combobox",si=function(Ea,Fa){li(Fa),ei&&ri==="combobox"&&Ea!==null&&ca(String(Ea))},Ci=Object(e.useState)(null),mi=Object(E.a)(Ci,2),yi=mi[0],Ni=mi[1],ia=Object(e.useState)({}),Ki=Object(E.a)(ia,2),fa=Ki[1];function Ya(){fa({})}Zt(function(){if(Io){var pa=Math.ceil(ta.current.offsetWidth);yi!==pa&&Ni(pa)}},[Io]);var xa=e.createElement(Me,{ref:Sr,prefixCls:rr,id:bn,open:Ia,childrenAsData:!wn,options:Xa,flattenOptions:_a,multiple:qn,values:Gi,height:Sn,itemHeight:Wt,onSelect:So,onToggleOpen:os,onActiveValue:si,defaultActiveFirstOption:ci,notFoundContent:vn,onScroll:Br,searchValue:va,menuItemSelectedIcon:dn,virtual:Ut!==!1&&cr!==!1,onMouseEnter:Ya}),wa,Da=function(){ji&&bi.onClear&&bi.onClear(),aa&&aa(),To([]),xo("",!1,!1)};!gr&&At&&(ea.length||va)&&(wa=e.createElement(I,{className:"".concat(rr,"-clear"),onMouseDown:Da,customizeIcon:fr},"\xD7"));var ja=Jr!==void 0?Jr:Wn||!qn&&ri!=="combobox",ko;ja&&(ko=e.createElement(I,{className:o()("".concat(rr,"-arrow"),Object(b.a)({},"".concat(rr,"-arrow-loading"),Wn)),customizeIcon:Vr,customizeIconProps:{loading:Wn,searchValue:va,open:Ia,focused:Wr,showSearch:Hn}}));var ro=o()(rr,Yr,(ir={},Object(b.a)(ir,"".concat(rr,"-focused"),Wr),Object(b.a)(ir,"".concat(rr,"-multiple"),qn),Object(b.a)(ir,"".concat(rr,"-single"),!qn),Object(b.a)(ir,"".concat(rr,"-allow-clear"),At),Object(b.a)(ir,"".concat(rr,"-show-arrow"),ja),Object(b.a)(ir,"".concat(rr,"-disabled"),gr),Object(b.a)(ir,"".concat(rr,"-loading"),Wn),Object(b.a)(ir,"".concat(rr,"-open"),Ia),Object(b.a)(ir,"".concat(rr,"-customize-input"),to),Object(b.a)(ir,"".concat(rr,"-show-search"),Hn),ir));return e.createElement("div",Object.assign({className:ro},ha,{ref:ta,onMouseDown:zr,onKeyDown:vt,onKeyUp:Er,onFocus:Gr,onBlur:Qn}),Wr&&!Ia&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ea.join(", "))),e.createElement(Qt,{ref:ra,disabled:gr,prefixCls:rr,visible:Io,popupElement:xa,containerWidth:yi,animation:Ot,transitionName:Rt,dropdownStyle:Kt,dropdownClassName:Lt,direction:kn,dropdownMatchSelectWidth:cr,dropdownRender:vr,dropdownAlign:yr,getPopupContainer:Pi,empty:!ga.length,getTriggerDOMNode:function(){return pi.current}},e.createElement(te,Object.assign({},er,{domRef:pi,prefixCls:rr,inputElement:to,ref:Ir,id:bn,showSearch:Hn,mode:ri,accessibilityIndex:Kn,multiple:qn,tagRender:pn,values:Va,open:Ia,onToggleOpen:os,searchValue:va,activeValue:Ji,onSearch:xo,onSearchSubmit:rs,onSelect:bo,tokenWithEnter:Tn}))),ko,wa)}var Ar=e.forwardRef(Ct);return Ar}function ft(De){var Re=De.mode,Me=De.options,nt=De.children,yt=De.backfill,sr=De.allowClear,Nr=De.placeholder,mn=De.getInputElement,Yn=De.showSearch,Jn=De.onSearch,ur=De.defaultOpen,Tt=De.autoFocus,Ct=De.labelInValue,Ar=De.value,er=De.inputValue,Ft=De.optionLabelProp,ir=Re==="multiple"||Re==="tags",Pt=Yn!==void 0?Yn:ir||Re==="combobox",rr=Me||Q(nt);if(Object(ye.a)(Re!=="tags"||rr.every(function(fn){return!fn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Re==="tags"||Re==="combobox"){var Yr=rr.some(function(fn){return fn.options?fn.options.some(function(wn){return typeof("value"in wn?wn.value:wn.key)=="number"}):typeof("value"in fn?fn.value:fn.key)=="number"});Object(ye.a)(!Yr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ye.a)(Re!=="combobox"||!Ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ye.a)(Re==="combobox"||!yt,"`backfill` only works with `combobox` mode."),Object(ye.a)(Re==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),Object(ye.b)(Re!=="combobox"||!mn||!sr||!Nr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Jn&&!Pt&&Re!=="combobox"&&Re!=="tags"&&Object(ye.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ye.b)(!ur||Tt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ar!=null){var Pr=he(Ar);Object(ye.a)(!Ct||Pr.every(function(fn){return Object(se.a)(fn)==="object"&&("key"in fn||"value"in fn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ye.a)(!ir||Array.isArray(Ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(nt){var Mr=null;Object(z.a)(nt).some(function(fn){if(!e.isValidElement(fn)||!fn.type)return!1;var wn=fn.type;if(wn.isSelectOption)return!1;if(wn.isSelectOptGroup){var ai=Object(z.a)(fn.props.children).every(function(ri){return!e.isValidElement(ri)||!fn.type||ri.type.isSelectOption?!0:(Mr=ri.type,!1)});return!ai}return Mr=wn,!0}),Mr&&Object(ye.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Mr.displayName||Mr.name||Mr,"`.")),Object(ye.a)(er===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var it=ft,Or=Bt({prefixCls:"rc-select",components:{optionList:U},convertChildrenToData:Q,flattenOptions:rt,getLabeledValue:Y,filterOptions:we,isValueDisabled:Se,findValueOption:J,warningProps:it,fillOptionsWithMissingValue:le}),an=function(De){Object(g.a)(Me,De);var Re=Object(v.a)(Me);function Me(){var nt;return Object(c.a)(this,Me),nt=Re.apply(this,arguments),nt.selectRef=e.createRef(),nt.focus=function(){nt.selectRef.current.focus()},nt.blur=function(){nt.selectRef.current.blur()},nt}return Object(h.a)(Me,[{key:"render",value:function(){return e.createElement(Or,Object.assign({ref:this.selectRef},this.props))}}]),Me}(e.Component);an.Option=X,an.OptGroup=j;var En=an,Bn=En,vi=r("H84U"),Ln=r("1vzs"),Mn=r("3Nzz"),Xt=function(De){i()(Me,De);var Re=s()(Me);function Me(){var nt;return p()(this,Me),nt=Re.apply(this,arguments),nt.selectRef=e.createRef(),nt.focus=function(){nt.selectRef.current&&nt.selectRef.current.focus()},nt.blur=function(){nt.selectRef.current&&nt.selectRef.current.blur()},nt.getMode=function(){var yt=nt.props.mode;return yt==="combobox"?void 0:yt===Me.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":yt},nt.renderSelect=function(yt){var sr=yt.getPopupContainer,Nr=yt.getPrefixCls,mn=yt.renderEmpty,Yn=yt.direction,Jn=yt.virtual,ur=yt.dropdownMatchSelectWidth,Tt=nt.props,Ct=Tt.prefixCls,Ar=Tt.notFoundContent,er=Tt.className,Ft=Tt.size,ir=Tt.listHeight,Pt=ir===void 0?256:ir,rr=Tt.listItemHeight,Yr=rr===void 0?24:rr,Pr=Tt.getPopupContainer,Mr=Tt.dropdownClassName,fn=Tt.bordered,wn=Nr("select",Ct),ai=nt.getMode(),ri=ai==="multiple"||ai==="tags",gi;Ar!==void 0?gi=Ar:ai==="combobox"?gi=null:gi=mn("Select");var Ii=Object(Ln.a)(A()(A()({},nt.props),{multiple:ri,prefixCls:wn})),Mi=Ii.suffixIcon,Qi=Ii.itemIcon,ot=Ii.removeIcon,Ne=Ii.clearIcon,He=Object(l.default)(nt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ye=o()(Mr,f()({},"".concat(wn,"-dropdown-").concat(Yn),Yn==="rtl"));return e.createElement(Mn.b.Consumer,null,function(at){var qe,lt=Ft||at,Et=o()(er,(qe={},f()(qe,"".concat(wn,"-lg"),lt==="large"),f()(qe,"".concat(wn,"-sm"),lt==="small"),f()(qe,"".concat(wn,"-rtl"),Yn==="rtl"),f()(qe,"".concat(wn,"-borderless"),!fn),qe));return e.createElement(Bn,A()({ref:nt.selectRef,virtual:Jn,dropdownMatchSelectWidth:ur},He,{listHeight:Pt,listItemHeight:Yr,mode:ai,prefixCls:wn,direction:Yn,inputIcon:Mi,menuItemSelectedIcon:Qi,removeIcon:ot,clearIcon:Ne,notFoundContent:gi,className:Et,getPopupContainer:Pr||sr,dropdownClassName:Ye}))})},nt}return u()(Me,[{key:"render",value:function(){return e.createElement(vi.a,null,this.renderSelect)}}]),Me}(e.Component);Xt.Option=X,Xt.OptGroup=j,Xt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Xt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var wt=L.a=Xt},"2fw6":function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,m,p){p&&A.moveTo(m.cx+m.r,m.cy),A.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});R.exports=f},"2gN3":function(R,L,r){var y=r("Kz5y"),f=y["__core-js_shared__"];R.exports=f},"2jpz":function(R,L,r){"use strict";r.d(L,"a",function(){return h});var y=r("cDf5"),f=r.n(y),x=r("q1tI"),A=r.n(x),m=r("TSYQ"),p=r.n(m),d=r("zU+y"),u=r.n(d),a=r("HT/e"),i=r.n(a),t=r("hFM2"),s=r.n(t),e=r("PLTn"),l=r.n(e),n=r("/rzN"),o=r.n(n),c=r("0n0R");function h(g,v,b,S){var E=S.isLeaf,C=S.expanded,_=S.loading;if(_)return x.createElement(u.a,{className:"".concat(g,"-switcher-loading-icon")});var T;if(b&&f()(b)==="object"&&(T=b.showLeafIcon),E)return b?f()(b)==="object"&&!T?x.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):x.createElement(i.a,{className:"".concat(g,"-switcher-line-icon")}):null;var w="".concat(g,"-switcher-icon");return Object(c.b)(v)?Object(c.a)(v,{className:p()(v.props.className||"",w)}):v||(b?C?x.createElement(s.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(l.a,{className:"".concat(g,"-switcher-line-icon")}):x.createElement(o.a,{className:w}))}},"2oIt":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},"2uGb":function(R,L,r){var y=r("ProS");r("ko1b"),r("s2lz"),r("RBEP");var f=r("kMLO"),x=r("nKiI");y.registerVisual(f),y.registerLayout(x)},"2w7y":function(R,L,r){var y=r("ProS");r("qMZE"),r("g0SD"),y.registerPreprocessor(function(f){f.markPoint=f.markPoint||{}})},"33Ds":function(R,L,r){var y=r("ProS"),f=r("b9oc"),x=r("Kagy"),A=r("IUWy"),m=x.toolbox.restore;function p(a){this.model=a}p.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:m.title};var d=p.prototype;d.onclick=function(a,i,t){f.clear(a),i.dispatchAction({type:"restore",from:this.uid})},A.register("restore",p),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(a,i){i.resetOption("recreate")});var u=p;R.exports=u},"34/K":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var A=function(){function m(){y(this,m),this._lines=0}return x(m,[{key:"decodeRect",value:function(d,u,a,i,t,s,e){this._lines===0&&(this._lines=i);var l=e==8?1:4,n=a*l;if(t.rQwait("RAW",n))return!1;var o=u+(i-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/n)),h=t.rQ,g=t.rQi;if(e==8){for(var v=a*c,b=new Uint8Array(v*4),S=0;S<v;S++)b[S*4+0]=(h[g+S]>>0&3)*255/3,b[S*4+1]=(h[g+S]>>2&3)*255/3,b[S*4+2]=(h[g+S]>>4&3)*255/3,b[S*4+4]=0;h=b,g=0}return s.blitImage(d,o,a,c,h,g),t.rQskipBytes(c*n),this._lines-=c,!(this._lines>0)}}]),m}();L.default=A},"3690":function(R,L,r){"use strict";function y(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(t){return typeof t}:y=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(a)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=A(r("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return x=function(){return a},a}function A(a){if(a&&a.__esModule)return a;if(a===null||y(a)!=="object"&&typeof a!="function")return{default:a};var i=x();if(i&&i.has(a))return i.get(a);var t={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var l=s?Object.getOwnPropertyDescriptor(a,e):null;l&&(l.get||l.set)?Object.defineProperty(t,e,l):t[e]=a[e]}return t.default=a,i&&i.set(a,t),t}function m(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function p(a,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function d(a,i,t){return i&&p(a.prototype,i),t&&p(a,t),a}var u=function(){function a(){m(this,a),this._tiles=0,this._lastsubencoding=0}return d(a,[{key:"decodeRect",value:function(t,s,e,l,n,o,c){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var h=1;if(n.rQwait("HEXTILE",h))return!1;var g=n.rQ,v=n.rQi,b=g[v];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var S=this._totalTiles-this._tiles,E=S%this._tilesX,C=Math.floor(S/this._tilesX),_=t+E*16,T=s+C*16,w=Math.min(16,t+e-_),O=Math.min(16,s+l-T);if(b&1)h+=w*O*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,n.rQwait("HEXTILE",h))return!1;var I=g[v+h-1];b&16?h+=I*(4+2):h+=I*2}if(n.rQwait("HEXTILE",h))return!1;if(v++,b===0)this._lastsubencoding&1?f.Debug(" Ignoring blank after RAW"):o.fillRect(_,T,w,O,this._background);else if(b&1)o.blitImage(_,T,w,O,g,v),v+=h-1;else{if(b&2&&(this._background=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),b&4&&(this._foreground=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),o.startTile(_,T,w,O,this._background),b&8){var k=g[v];v++;for(var M=0;M<k;M++){var U=void 0;b&16?(U=[g[v],g[v+1],g[v+2],g[v+3]],v+=4):U=this._foreground;var P=g[v];v++;var X=P>>4,F=P&15,j=g[v];v++;var K=(j>>4)+1,z=(j&15)+1;o.subTile(X,F,K,z,U)}}o.finishTile()}n.rQi=v,this._lastsubencoding=b,this._tiles--}return!0}}]),a}();L.default=u},"3A9y":function(R,L){function r(y){return this.__data__.has(y)}R.exports=r},"3C/r":function(R,L){var r=function(x,A){this.image=x,this.repeat=A,this.type="pattern"};r.prototype.getCanvasPattern=function(f){return f.createPattern(this.image,this.repeat||"repeat")};var y=r;R.exports=y},"3CBa":function(R,L,r){var y=r("hydK"),f=y.createElement,x=r("bYtY"),A=r("SUKs"),m=r("y+Vt"),p=r("Dagg"),d=r("dqUG"),u=r("DBLp"),a=r("sW+o"),i=r("n6Mw"),t=r("vKoX"),s=r("P47w"),e=s.path,l=s.image,n=s.text;function o(w){return parseInt(w,10)}function c(w){return w instanceof m?e:w instanceof p?l:w instanceof d?n:e}function h(w,O){return O&&w&&O.parentNode!==w}function g(w,O,I){if(h(w,O)&&I){var k=I.nextSibling;k?w.insertBefore(O,k):w.appendChild(O)}}function v(w,O){if(h(w,O)){var I=w.firstChild;I?w.insertBefore(O,I):w.appendChild(O)}}function b(w,O){O&&w&&O.parentNode===w&&w.removeChild(O)}function S(w){return w.__textSvgEl}function E(w){return w.__svgEl}var C=function(O,I,k,M){this.root=O,this.storage=I,this._opts=k=x.extend({},k||{});var U=f("svg");U.setAttribute("xmlns","http://www.w3.org/2000/svg"),U.setAttribute("version","1.1"),U.setAttribute("baseProfile","full"),U.style.cssText="user-select:none;position:absolute;left:0;top:0;";var P=f("g");U.appendChild(P);var X=f("g");U.appendChild(X),this.gradientManager=new a(M,X),this.clipPathManager=new i(M,X),this.shadowManager=new t(M,X);var F=document.createElement("div");F.style.cssText="overflow:hidden;position:relative",this._svgDom=U,this._svgRoot=X,this._backgroundRoot=P,this._viewport=F,O.appendChild(F),F.appendChild(U),this.resize(k.width,k.height),this._visibleList=[]};C.prototype={constructor:C,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 I=f("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,k=this._visibleList,M=O.length,U=[],P;for(P=0;P<M;P++){var X=O[P],F=c(X),j=E(X)||S(X);X.invisible||(X.__dirty&&(F&&F.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(j,X)),X.__dirty=!1),U.push(X))}var K=u(k,U),z;for(P=0;P<K.length;P++){var V=K[P];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=k[V.indices[Q]],j=E(X),G=S(X);b(I,j),b(I,G)}}for(P=0;P<K.length;P++){var V=K[P];if(V.added)for(var Q=0;Q<V.count;Q++){var X=U[V.indices[Q]],j=E(X),G=S(X);z?g(I,j,z):v(I,j),j?g(I,G,j):z?g(I,G,z):v(I,G),g(I,G,j),z=G||j||z,this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=U[V.indices[Q]],j=E(X),G=S(X),j=E(X),G=S(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(j||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(j||G,X),this.clipPathManager.markUsed(X),G&&g(I,G,j),z=j||G||z}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=U},_getDefs:function(O){var I=this._svgDom,k=I.getElementsByTagName("defs");if(k.length===0)if(O){var k=I.insertBefore(f("defs"),I.firstChild);return k.contains||(k.contains=function(U){var P=k.children;if(!P)return!1;for(var X=P.length-1;X>=0;--X)if(P[X]===U)return!0;return!1}),k}else return null;else return k[0]},resize:function(O,I){var k=this._viewport;k.style.display="none";var M=this._opts;if(O!=null&&(M.width=O),I!=null&&(M.height=I),O=this._getSize(0),I=this._getSize(1),k.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var U=k.style;U.width=O+"px",U.height=I+"px";var P=this._svgDom;P.setAttribute("width",O),P.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,k=["width","height"][O],M=["clientWidth","clientHeight"][O],U=["paddingLeft","paddingTop"][O],P=["paddingRight","paddingBottom"][O];if(I[k]!=null&&I[k]!=="auto")return parseFloat(I[k]);var X=this.root,F=document.defaultView.getComputedStyle(X);return(X[M]||o(F[k])||o(X.style[k]))-(o(F[U])||0)-(o(F[P])||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(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};function _(w){return function(){A('In SVG mode painter not support method "'+w+'"')}}x.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){C.prototype[w]=_(w)});var T=C;R.exports=T},"3Fdi":function(R,L){var r=Function.prototype,y=r.toString;function f(x){if(x!=null){try{return y.call(x)}catch(A){}try{return x+""}catch(A){}}return""}R.exports=f},"3LNs":function(R,L,r){var y=r("bYtY"),f=r("Yl7c"),x=r("IwbS"),A=r("zTMp"),m=r("YH21"),p=r("iLNv"),d=r("4NO4"),u=d.makeInner,a=u(),i=y.clone,t=y.bind;function s(){}s.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,v,b,S){var E=v.get("value"),C=v.get("status");if(this._axisModel=g,this._axisPointerModel=v,this._api=b,!S&&this._lastValue===E&&this._lastStatus===C)return;this._lastValue=E,this._lastStatus=C;var _=this._group,T=this._handle;if(!C||C==="hide"){_&&_.hide(),T&&T.hide();return}_&&_.show(),T&&T.show();var w={};this.makeElOption(w,E,g,v,b);var O=w.graphicKey;O!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=O;var I=this._moveAnimation=this.determineAnimation(g,v);if(!_)_=this._group=new x.Group,this.createPointerEl(_,w,g,v),this.createLabelEl(_,w,g,v),b.getZr().add(_);else{var k=y.curry(e,v,I);this.updatePointerEl(_,w,k,v),this.updateLabelEl(_,w,k,v)}c(_,v,!0),this._renderHandle(E)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,v){var b=v.get("animation"),S=g.axis,E=S.type==="category",C=v.get("snap");if(!C&&!E)return!1;if(b==="auto"||b==null){var _=this.animationThreshold;if(E&&S.getBandWidth()>_)return!0;if(C){var T=A.getAxisInfo(g).seriesDataCount,w=S.getExtent();return Math.abs(w[0]-w[1])/T>_}return!1}return b===!0},makeElOption:function(g,v,b,S,E){},createPointerEl:function(g,v,b,S){var E=v.pointer;if(E){var C=a(g).pointerEl=new x[E.type](i(v.pointer));g.add(C)}},createLabelEl:function(g,v,b,S){if(v.label){var E=a(g).labelEl=new x.Rect(i(v.label));g.add(E),n(E,S)}},updatePointerEl:function(g,v,b){var S=a(g).pointerEl;S&&v.pointer&&(S.setStyle(v.pointer.style),b(S,{shape:v.pointer.shape}))},updateLabelEl:function(g,v,b,S){var E=a(g).labelEl;E&&(E.setStyle(v.label.style),b(E,{shape:v.label.shape,position:v.label.position}),n(E,S))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var v=this._axisPointerModel,b=this._api.getZr(),S=this._handle,E=v.getModel("handle"),C=v.get("status");if(!E.get("show")||!C||C==="hide"){S&&b.remove(S),this._handle=null;return}var _;this._handle||(_=!0,S=this._handle=x.createIcon(E.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(O){m.stop(O.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(S)),c(S,v,!1);var T=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];S.setStyle(E.getItemStyle(null,T));var w=E.get("size");y.isArray(w)||(w=[w,w]),S.attr("scale",[w[0]/2,w[1]/2]),p.createOrUpdate(this,"_doDispatchAxisPointer",E.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,_)},_moveHandleToValue:function(g,v){e(this._axisPointerModel,!v&&this._moveAnimation,this._handle,o(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,v){var b=this._handle;if(!b)return;this._dragging=!0;var S=this.updateHandleTransform(o(b),[g,v],this._axisModel,this._axisPointerModel);this._payloadInfo=S,b.stopAnimation(),b.attr(o(S)),a(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var v=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:v.cursorPoint[0],y:v.cursorPoint[1],tooltipOption:v.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var v=this._handle;if(!v)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var v=g.getZr(),b=this._group,S=this._handle;v&&b&&(this._lastGraphicKey=null,b&&v.remove(b),S&&v.remove(S),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,v,b){return b=b||0,{x:g[b],y:g[1-b],width:v[b],height:v[1-b]}}},s.prototype.constructor=s;function e(g,v,b,S){l(a(b).lastProp,S)||(a(b).lastProp=S,v?x.updateProps(b,S,g):(b.stopAnimation(),b.attr(S)))}function l(g,v){if(y.isObject(g)&&y.isObject(v)){var b=!0;return y.each(v,function(S,E){b=b&&l(g[E],S)}),!!b}else return g===v}function n(g,v){g[v.get("label.show")?"show":"hide"]()}function o(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,v,b){var S=v.get("z"),E=v.get("zlevel");g&&g.traverse(function(C){C.type!=="group"&&(S!=null&&(C.z=S),E!=null&&(C.zlevel=E),C.silent=b)})}f.enableClassExtend(s);var h=s;R.exports=h},"3OrL":function(R,L,r){var y=r("bYtY"),f=r("6Ic6"),x=r("IwbS"),A=r("y+Vt"),m=["itemStyle"],p=["emphasis","itemStyle"],d=f.extend({type:"boxplot",render:function(e,l,n){var o=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;o.diff(h).add(function(v){if(o.hasValue(v)){var b=o.getItemLayout(v),S=a(b,o,v,g,!0);o.setItemGraphicEl(v,S),c.add(S)}}).update(function(v,b){var S=h.getItemGraphicEl(b);if(!o.hasValue(v)){c.remove(S);return}var E=o.getItemLayout(v);S?i(E,S,o,v):S=a(E,o,v,g),c.add(S),o.setItemGraphicEl(v,S)}).remove(function(v){var b=h.getItemGraphicEl(v);b&&c.remove(b)}).execute(),this._data=o},remove:function(e){var l=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(o){o&&l.remove(o)})},dispose:y.noop}),u=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var n=l.points,o=0;for(e.moveTo(n[o][0],n[o][1]),o++;o<4;o++)e.lineTo(n[o][0],n[o][1]);for(e.closePath();o<n.length;o++)e.moveTo(n[o][0],n[o][1]),o++,e.lineTo(n[o][0],n[o][1])}});function a(e,l,n,o,c){var h=e.ends,g=new u({shape:{points:c?t(h,o,e):h}});return i(e,g,l,n,c),g}function i(e,l,n,o,c){var h=n.hostModel,g=x[c?"initProps":"updateProps"];g(l,{shape:{points:e.ends}},h,o);var v=n.getItemModel(o),b=v.getModel(m),S=n.getItemVisual(o,"color"),E=b.getItemStyle(["borderColor"]);E.stroke=S,E.strokeNoScale=!0,l.useStyle(E),l.z2=100;var C=v.getModel(p).getItemStyle();x.setHoverStyle(l,C)}function t(e,l,n){return y.map(e,function(o){return o=o.slice(),o[l]=n.initBaseline,o})}var s=d;R.exports=s},"3S7+":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("J4zp"),A=r.n(x),m=r("pVnL"),p=r.n(m),d=r("q1tI"),u=r.n(d),a=r("U8pU"),i=r("VTBJ"),t=r("Ff2n"),s=r("1OyB"),e=r("vuIU"),l=r("JX7q"),n=r("Ji7U"),o=r("LK+K"),c=r("i8i4"),h=r.n(c),g=r("l4aY"),v=r("m+aA"),b=r("c+Xe"),S=r("zT1h"),E=r("QC+M"),C=r("TSYQ"),_=r.n(C);function T(Ln,Mn,Xt){return Xt?Ln[0]===Mn[0]:Ln[0]===Mn[0]&&Ln[1]===Mn[1]}function w(Ln,Mn,Xt){var wt=Ln[Mn]||{};return Object(i.a)(Object(i.a)({},wt),Xt)}function O(Ln,Mn,Xt,wt){for(var De=Xt.points,Re=Object.keys(Ln),Me=0;Me<Re.length;Me+=1){var nt=Re[Me];if(T(Ln[nt].points,De,wt))return"".concat(Mn,"-placement-").concat(nt)}return""}var I=r("xEkU"),k=r.n(I),M=r("9mu1"),U=r("rePB"),P=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(Ln,Mn){var Xt={};return Xt[Ln.toLowerCase()]=Mn.toLowerCase(),Xt["Webkit".concat(Ln)]="webkit".concat(Mn),Xt["Moz".concat(Ln)]="moz".concat(Mn),Xt["ms".concat(Ln)]="MS".concat(Mn),Xt["O".concat(Ln)]="o".concat(Mn.toLowerCase()),Xt}function F(Ln,Mn){var Xt={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return Ln&&("AnimationEvent"in Mn||delete Xt.animationend.animation,"TransitionEvent"in Mn||delete Xt.transitionend.transition),Xt}var j=F(P,typeof window!="undefined"?window:{}),K={};if(P){var z=document.createElement("div");K=z.style}var V={};function Q(Ln){if(V[Ln])return V[Ln];var Mn=j[Ln];if(Mn)for(var Xt=Object.keys(Mn),wt=Xt.length,De=0;De<wt;De+=1){var Re=Xt[De];if(Object.prototype.hasOwnProperty.call(Mn,Re)&&Re in K)return V[Ln]=Mn[Re],V[Ln]}return""}var G=Q("animationend"),ee=Q("transitionend"),se=!!(G&&ee);function ye(Ln,Mn){if(!Ln)return null;if(Object(a.a)(Ln)==="object"){var Xt=Mn.replace(/-\w/g,function(wt){return wt[1].toUpperCase()});return Ln[Xt]}return"".concat(Ln,"-").concat(Mn)}var he="none",ke="appear",Pe="enter",Ue="leave";function $e(Ln){var Mn=Ln,Xt=!!d.forwardRef;Object(a.a)(Ln)==="object"&&(Mn=Ln.transitionSupport,Xt="forwardRef"in Ln?Ln.forwardRef:Xt);function wt(Re){return!!(Re.motionName&&Mn)}var De=function(Re){Object(n.a)(nt,Re);var Me=Object(o.a)(nt);function nt(){var yt;return Object(s.a)(this,nt),yt=Me.apply(this,arguments),yt.$cacheEle=null,yt.node=null,yt.raf=null,yt.destroyed=!1,yt.deadlineId=null,yt.state={status:he,statusActive:!1,newStatus:!1,statusStyle:null},yt.onDomUpdate=function(){var sr=yt.state,Nr=sr.status,mn=sr.newStatus,Yn=yt.props,Jn=Yn.onAppearStart,ur=Yn.onEnterStart,Tt=Yn.onLeaveStart,Ct=Yn.onAppearActive,Ar=Yn.onEnterActive,er=Yn.onLeaveActive,Ft=Yn.motionAppear,ir=Yn.motionEnter,Pt=Yn.motionLeave;if(!wt(yt.props))return;var rr=yt.getElement();yt.$cacheEle!==rr&&(yt.removeEventListener(yt.$cacheEle),yt.addEventListener(rr),yt.$cacheEle=rr),mn&&Nr===ke&&Ft?yt.updateStatus(Jn,null,null,function(){yt.updateActiveStatus(Ct,ke)}):mn&&Nr===Pe&&ir?yt.updateStatus(ur,null,null,function(){yt.updateActiveStatus(Ar,Pe)}):mn&&Nr===Ue&&Pt&&yt.updateStatus(Tt,null,null,function(){yt.updateActiveStatus(er,Ue)})},yt.onMotionEnd=function(sr){if(sr&&!sr.deadline&&sr.target!==yt.getElement())return;var Nr=yt.state,mn=Nr.status,Yn=Nr.statusActive,Jn=yt.props,ur=Jn.onAppearEnd,Tt=Jn.onEnterEnd,Ct=Jn.onLeaveEnd;mn===ke&&Yn?yt.updateStatus(ur,{status:he},sr):mn===Pe&&Yn?yt.updateStatus(Tt,{status:he},sr):mn===Ue&&Yn&&yt.updateStatus(Ct,{status:he},sr)},yt.setNodeRef=function(sr){var Nr=yt.props.internalRef;yt.node=sr,Object(b.b)(Nr,sr)},yt.getElement=function(){try{return Object(v.a)(yt.node||Object(l.a)(yt))}catch(sr){return yt.$cacheEle}},yt.addEventListener=function(sr){if(!sr)return;sr.addEventListener(ee,yt.onMotionEnd),sr.addEventListener(G,yt.onMotionEnd)},yt.removeEventListener=function(sr){if(!sr)return;sr.removeEventListener(ee,yt.onMotionEnd),sr.removeEventListener(G,yt.onMotionEnd)},yt.updateStatus=function(sr,Nr,mn,Yn){var Jn=sr?sr(yt.getElement(),mn):null;if(Jn===!1||yt.destroyed)return;var ur;Yn&&(ur=function(){yt.nextFrame(Yn)}),yt.setState(Object(i.a)({statusStyle:Object(a.a)(Jn)==="object"?Jn:null,newStatus:!1},Nr),ur)},yt.updateActiveStatus=function(sr,Nr){yt.nextFrame(function(){var mn=yt.state.status;if(mn!==Nr)return;var Yn=yt.props.motionDeadline;yt.updateStatus(sr,{statusActive:!0}),Yn>0&&(yt.deadlineId=setTimeout(function(){yt.onMotionEnd({deadline:!0})},Yn))})},yt.nextFrame=function(sr){yt.cancelNextFrame(),yt.raf=k()(sr)},yt.cancelNextFrame=function(){yt.raf&&(k.a.cancel(yt.raf),yt.raf=null)},yt}return Object(e.a)(nt,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var sr,Nr=this.state,mn=Nr.status,Yn=Nr.statusActive,Jn=Nr.statusStyle,ur=this.props,Tt=ur.children,Ct=ur.motionName,Ar=ur.visible,er=ur.removeOnLeave,Ft=ur.leavedClassName,ir=ur.eventProps;return Tt?mn===he||!wt(this.props)?Ar?Tt(Object(i.a)({},ir),this.setNodeRef):er?null:Tt(Object(i.a)(Object(i.a)({},ir),{},{className:Ft}),this.setNodeRef):Tt(Object(i.a)(Object(i.a)({},ir),{},{className:_()(ye(Ct,mn),(sr={},Object(U.a)(sr,ye(Ct,"".concat(mn,"-active")),Yn),Object(U.a)(sr,Ct,typeof Ct=="string"),sr)),style:Jn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(sr,Nr){var mn=Nr.prevProps,Yn=Nr.status;if(!wt(sr))return{};var Jn=sr.visible,ur=sr.motionAppear,Tt=sr.motionEnter,Ct=sr.motionLeave,Ar=sr.motionLeaveImmediately,er={prevProps:sr};return(Yn===ke&&!ur||Yn===Pe&&!Tt||Yn===Ue&&!Ct)&&(er.status=he,er.statusActive=!1,er.newStatus=!1),!mn&&Jn&&ur&&(er.status=ke,er.statusActive=!1,er.newStatus=!0),mn&&!mn.visible&&Jn&&Tt&&(er.status=Pe,er.statusActive=!1,er.newStatus=!0),(mn&&mn.visible&&!Jn&&Ct||!mn&&Ar&&!Jn&&Ct)&&(er.status=Ue,er.statusActive=!1,er.newStatus=!0),er}}]),nt}(d.Component);return De.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Xt?d.forwardRef(function(Re,Me){return d.createElement(De,Object.assign({internalRef:Me},Re))}):De}var Ge=$e(se),ht="add",Fe="keep",oe="remove",rt="removed";function fe(Ln){var Mn;return Ln&&Object(a.a)(Ln)==="object"&&"key"in Ln?Mn=Ln:Mn={key:Ln},Object(i.a)(Object(i.a)({},Mn),{},{key:String(Mn.key)})}function J(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ln.map(fe)}function Y(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xt=[],wt=0,De=Mn.length,Re=J(Ln),Me=J(Mn);Re.forEach(function(sr){for(var Nr=!1,mn=wt;mn<De;mn+=1){var Yn=Me[mn];if(Yn.key===sr.key){wt<mn&&(Xt=Xt.concat(Me.slice(wt,mn).map(function(Jn){return Object(i.a)(Object(i.a)({},Jn),{},{status:ht})})),wt=mn),Xt.push(Object(i.a)(Object(i.a)({},Yn),{},{status:Fe})),wt+=1,Nr=!0;break}}Nr||Xt.push(Object(i.a)(Object(i.a)({},sr),{},{status:oe}))}),wt<De&&(Xt=Xt.concat(Me.slice(wt).map(function(sr){return Object(i.a)(Object(i.a)({},sr),{},{status:ht})})));var nt={};Xt.forEach(function(sr){var Nr=sr.key;nt[Nr]=(nt[Nr]||0)+1});var yt=Object.keys(nt).filter(function(sr){return nt[sr]>1});return yt.forEach(function(sr){Xt=Xt.filter(function(Nr){var mn=Nr.key,Yn=Nr.status;return mn!==sr||Yn!==oe}),Xt.forEach(function(Nr){Nr.key===sr&&(Nr.status=Fe)})}),Xt}var $=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function de(Ln){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,Xt=function(wt){Object(n.a)(Re,wt);var De=Object(o.a)(Re);function Re(){var Me;return Object(s.a)(this,Re),Me=De.apply(this,arguments),Me.state={keyEntities:[]},Me.removeKey=function(nt){Me.setState(function(yt){var sr=yt.keyEntities;return{keyEntities:sr.map(function(Nr){return Nr.key!==nt?Nr:Object(i.a)(Object(i.a)({},Nr),{},{status:rt})})}})},Me}return Object(e.a)(Re,[{key:"render",value:function(){var nt=this,yt=this.state.keyEntities,sr=this.props,Nr=sr.component,mn=sr.children,Yn=Object(t.a)(sr,["component","children"]),Jn=Nr||d.Fragment,ur={};return $.forEach(function(Tt){ur[Tt]=Yn[Tt],delete Yn[Tt]}),delete Yn.keys,d.createElement(Jn,Object.assign({},Yn),yt.map(function(Tt){var Ct=Tt.status,Ar=Object(t.a)(Tt,["status"]),er=Ct===ht||Ct===Fe;return d.createElement(Mn,Object.assign({},ur,{key:Ar.key,visible:er,eventProps:Ar,onLeaveEnd:function(){ur.onLeaveEnd&&ur.onLeaveEnd.apply(ur,arguments),nt.removeKey(Ar.key)}}),mn)}))}}],[{key:"getDerivedStateFromProps",value:function(nt,yt){var sr=nt.keys,Nr=yt.keyEntities,mn=J(sr);if(!Ln)return{keyEntities:mn.map(function(ur){return Object(i.a)(Object(i.a)({},ur),{},{status:Fe})})};var Yn=Y(Nr,mn),Jn=Nr.length;return{keyEntities:Yn.filter(function(ur){for(var Tt=null,Ct=0;Ct<Jn;Ct+=1){var Ar=Nr[Ct];if(Ar.key===ur.key){Tt=Ar;break}}return!(Tt&&Tt.status===rt&&ur.status===oe)})}}}]),Re}(d.Component);return Xt.defaultProps={component:"div"},Xt}var we=de(se),Ce=Ge,Se=function(Mn,Xt){var wt=Mn.prefixCls,De=Mn.className,Re=Mn.style,Me=Mn.children,nt=Mn.onMouseEnter,yt=Mn.onMouseLeave,sr=Mn.onMouseDown,Nr=Mn.onTouchStart,mn=Me;return d.Children.count(Me)>1&&(mn=d.createElement("div",{className:"".concat(wt,"-content")},Me)),d.createElement("div",{ref:Xt,className:De,onMouseEnter:nt,onMouseLeave:yt,onMouseDown:sr,onTouchStart:Nr,style:Re},mn)},le=d.forwardRef(Se);le.displayName="PopupInner";var pe=le;function _e(Ln){var Mn=Ln.prefixCls,Xt=Ln.motion,wt=Ln.animation,De=Ln.transitionName;return Xt||(wt?{motionName:"".concat(Mn,"-").concat(wt)}:De?{motionName:De}:null)}function tt(Ln){return Ln&&Ln.motionName}var gt=function(Ln){Object(n.a)(Xt,Ln);var Mn=Object(o.a)(Xt);function Xt(){var wt;return Object(s.a)(this,Xt),wt=Mn.apply(this,arguments),wt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},wt.popupRef=u.a.createRef(),wt.alignRef=u.a.createRef(),wt.nextFrameState=null,wt.nextFrameId=null,wt.onAlign=function(De,Re){var Me=wt.state.status,nt=wt.props,yt=nt.getClassNameFromAlign,sr=nt.onAlign,Nr=yt(Re);Me==="align"?wt.setState({alignClassName:Nr,status:"aligned"},function(){wt.alignRef.current.forceAlign()}):Me==="aligned"?(wt.setState({alignClassName:Nr,status:"afterAlign"}),sr(De,Re)):wt.setState({alignClassName:Nr})},wt.onMotionEnd=function(){var De=wt.props.visible;wt.setState({status:De?"AfterMotion":"stable",inMotion:!1})},wt.setStateOnNextFrame=function(De){wt.cancelFrameState(),wt.nextFrameState=Object(i.a)(Object(i.a)({},wt.nextFrameState),De),wt.nextFrameId=k()(function(){var Re=Object(i.a)({},wt.nextFrameState);wt.nextFrameState=null,wt.setState(Re)})},wt.getMotion=function(){return Object(i.a)({},_e(wt.props))},wt.getAlignTarget=function(){var De=wt.props,Re=De.point,Me=De.getRootDomNode;return Re||Me},wt.cancelFrameState=function(){k.a.cancel(wt.nextFrameId)},wt.renderPopupElement=function(){var De=wt.state,Re=De.status,Me=De.targetHeight,nt=De.targetWidth,yt=De.alignClassName,sr=wt.props,Nr=sr.prefixCls,mn=sr.className,Yn=sr.style,Jn=sr.stretch,ur=sr.visible,Tt=sr.align,Ct=sr.destroyPopupOnHide,Ar=sr.onMouseEnter,er=sr.onMouseLeave,Ft=sr.onMouseDown,ir=sr.onTouchStart,Pt=sr.children,rr=_()(Nr,mn,yt),Yr="".concat(Nr,"-hidden"),Pr={};Jn&&(Jn.indexOf("height")!==-1?Pr.height=Me:Jn.indexOf("minHeight")!==-1&&(Pr.minHeight=Me),Jn.indexOf("width")!==-1?Pr.width=nt:Jn.indexOf("minWidth")!==-1&&(Pr.minWidth=nt));var Mr=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},Pr),wt.getZIndexStyle()),Yn),{},{opacity:Re==="stable"||!ur?void 0:0,pointerEvents:Re==="stable"||!ur?void 0:"none"}),fn=wt.getMotion(),wn=ur;ur&&Re!=="beforeMotion"&&Re!=="motion"&&Re!=="stable"&&(fn.motionAppear=!1,fn.motionEnter=!1,fn.motionLeave=!1),(Re==="afterAlign"||Re==="beforeMotion")&&(wn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(gi){var Ii=fn==null?void 0:fn[gi];fn[gi]=function(){for(var Mi=arguments.length,Qi=new Array(Mi),ot=0;ot<Mi;ot++)Qi[ot]=arguments[ot];Ii==null||Ii.apply(void 0,Qi),wt.setState({inMotion:!0})}});var ai=!ur||Re!=="align"&&Re!=="aligned"&&Re!=="stable",ri=!0;return Re==="stable"&&(ri=ur),Ct&&!ri?null:u.a.createElement(Ce,Object.assign({visible:wn},fn,{removeOnLeave:!1,onEnterEnd:wt.onMotionEnd,onLeaveEnd:wt.onMotionEnd,leavedClassName:Yr}),function(gi,Ii){var Mi=gi.style,Qi=gi.className;return u.a.createElement(M.a,{target:wt.getAlignTarget(),key:"popup",ref:wt.alignRef,monitorWindowResize:!0,disabled:ai,align:Tt,onAlign:wt.onAlign},u.a.createElement(pe,{prefixCls:Nr,className:_()(rr,Qi),ref:Object(b.a)(Ii,wt.popupRef),onMouseEnter:Ar,onMouseLeave:er,onMouseDown:Ft,onTouchStart:ir,style:Object(i.a)(Object(i.a)({},Mr),Mi)},Pt))})},wt.renderMaskElement=function(){var De=wt.props,Re=De.mask,Me=De.maskMotion,nt=De.maskTransitionName,yt=De.maskAnimation,sr=De.prefixCls,Nr=De.visible;if(!Re)return null;var mn={};return Me&&Me.motionName&&(mn=Object(i.a)({motionAppear:!0},_e({motion:Me,prefixCls:sr,transitionName:nt,animation:yt}))),u.a.createElement(Ce,Object.assign({},mn,{visible:Nr,removeOnLeave:!0}),function(Yn){var Jn=Yn.className;return u.a.createElement("div",{style:wt.getZIndexStyle(),key:"mask",className:_()("".concat(sr,"-mask"),Jn)})})},wt}return Object(e.a)(Xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var De=this.state.status,Re=this.props,Me=Re.getRootDomNode,nt=Re.visible,yt=Re.stretch;if(this.cancelFrameState(),nt&&De!=="stable")switch(De){case null:{this.setStateOnNextFrame({status:yt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:tt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var sr=["measure","align",null,"beforeMotion","motion"],Nr=sr.indexOf(De),mn=sr[Nr+1];Nr!==-1&&mn&&this.setStateOnNextFrame({status:mn})}}if(De==="measure"){var Yn=Me();Yn&&this.setStateOnNextFrame({targetHeight:Yn.offsetHeight,targetWidth:Yn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var De=this.props.zIndex;return{zIndex:De}}},{key:"render",value:function(){return u.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(De,Re){var Me=De.visible,nt=Object(t.a)(De,["visible"]),yt=Re.prevVisible,sr=Re.status,Nr=Re.inMotion,mn={prevVisible:Me,status:sr},Yn=_e(nt);return yt===null&&Me===!1?(mn.status="stable",mn.inMotion=!1):Me!==yt&&(mn.inMotion=!1,Me||tt(Yn)&&Nr?mn.status=null:mn.status="stable",Me&&(mn.alignClassName=null)),mn}}]),Xt}(d.Component),ct=gt,je=d.createContext(null),Zt=je;function ut(){}function Ht(){return""}function dr(){return window.document}var Vt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Mt(Ln){var Mn=function(Xt){Object(n.a)(De,Xt);var wt=Object(o.a)(De);function De(Re){var Me;Object(s.a)(this,De),Me=wt.call(this,Re),Me.popupRef=u.a.createRef(),Me.triggerRef=u.a.createRef(),Me.onMouseEnter=function(yt){var sr=Me.props.mouseEnterDelay;Me.fireEvents("onMouseEnter",yt),Me.delaySetPopupVisible(!0,sr,sr?null:yt)},Me.onMouseMove=function(yt){Me.fireEvents("onMouseMove",yt),Me.setPoint(yt)},Me.onMouseLeave=function(yt){Me.fireEvents("onMouseLeave",yt),Me.delaySetPopupVisible(!1,Me.props.mouseLeaveDelay)},Me.onPopupMouseEnter=function(){Me.clearDelayTimer()},Me.onPopupMouseLeave=function(yt){if(yt.relatedTarget&&!yt.relatedTarget.setTimeout&&Me.popupRef.current&&Me.popupRef.current.popupRef.current&&Object(g.a)(Me.popupRef.current.popupRef.current,yt.relatedTarget))return;Me.delaySetPopupVisible(!1,Me.props.mouseLeaveDelay)},Me.onFocus=function(yt){Me.fireEvents("onFocus",yt),Me.clearDelayTimer(),Me.isFocusToShow()&&(Me.focusTime=Date.now(),Me.delaySetPopupVisible(!0,Me.props.focusDelay))},Me.onMouseDown=function(yt){Me.fireEvents("onMouseDown",yt),Me.preClickTime=Date.now()},Me.onTouchStart=function(yt){Me.fireEvents("onTouchStart",yt),Me.preTouchTime=Date.now()},Me.onBlur=function(yt){Me.fireEvents("onBlur",yt),Me.clearDelayTimer(),Me.isBlurToHide()&&Me.delaySetPopupVisible(!1,Me.props.blurDelay)},Me.onContextMenu=function(yt){yt.preventDefault(),Me.fireEvents("onContextMenu",yt),Me.setPopupVisible(!0,yt)},Me.onContextMenuClose=function(){Me.isContextMenuToShow()&&Me.close()},Me.onClick=function(yt){if(Me.fireEvents("onClick",yt),Me.focusTime){var sr;if(Me.preClickTime&&Me.preTouchTime?sr=Math.min(Me.preClickTime,Me.preTouchTime):Me.preClickTime?sr=Me.preClickTime:Me.preTouchTime&&(sr=Me.preTouchTime),Math.abs(sr-Me.focusTime)<20)return;Me.focusTime=0}Me.preClickTime=0,Me.preTouchTime=0,Me.isClickToShow()&&(Me.isClickToHide()||Me.isBlurToHide())&&yt&&yt.preventDefault&&yt.preventDefault();var Nr=!Me.state.popupVisible;(Me.isClickToHide()&&!Nr||Nr&&Me.isClickToShow())&&Me.setPopupVisible(!Me.state.popupVisible,yt)},Me.onPopupMouseDown=function(){if(Me.hasPopupMouseDown=!0,clearTimeout(Me.mouseDownTimeout),Me.mouseDownTimeout=window.setTimeout(function(){Me.hasPopupMouseDown=!1},0),Me.context){var yt;(yt=Me.context).onPopupMouseDown.apply(yt,arguments)}},Me.onDocumentClick=function(yt){if(Me.props.mask&&!Me.props.maskClosable)return;var sr=yt.target,Nr=Me.getRootDomNode(),mn=Me.getPopupDomNode();!Object(g.a)(Nr,sr)&&!Object(g.a)(mn,sr)&&!Me.hasPopupMouseDown&&Me.close()},Me.getRootDomNode=function(){var yt=Me.props.getTriggerDOMNode;if(yt)return yt(Me.triggerRef.current);try{var sr=Object(v.a)(Me.triggerRef.current);if(sr)return sr}catch(Nr){}return h.a.findDOMNode(Object(l.a)(Me))},Me.getPopupClassNameFromAlign=function(yt){var sr=[],Nr=Me.props,mn=Nr.popupPlacement,Yn=Nr.builtinPlacements,Jn=Nr.prefixCls,ur=Nr.alignPoint,Tt=Nr.getPopupClassNameFromAlign;return mn&&Yn&&sr.push(O(Yn,Jn,yt,ur)),Tt&&sr.push(Tt(yt)),sr.join(" ")},Me.getComponent=function(){var yt=Me.props,sr=yt.prefixCls,Nr=yt.destroyPopupOnHide,mn=yt.popupClassName,Yn=yt.onPopupAlign,Jn=yt.popupMotion,ur=yt.popupAnimation,Tt=yt.popupTransitionName,Ct=yt.popupStyle,Ar=yt.mask,er=yt.maskAnimation,Ft=yt.maskTransitionName,ir=yt.maskMotion,Pt=yt.zIndex,rr=yt.popup,Yr=yt.stretch,Pr=yt.alignPoint,Mr=Me.state,fn=Mr.popupVisible,wn=Mr.point,ai=Me.getPopupAlign(),ri={};return Me.isMouseEnterToShow()&&(ri.onMouseEnter=Me.onPopupMouseEnter),Me.isMouseLeaveToHide()&&(ri.onMouseLeave=Me.onPopupMouseLeave),ri.onMouseDown=Me.onPopupMouseDown,ri.onTouchStart=Me.onPopupMouseDown,u.a.createElement(ct,Object.assign({prefixCls:sr,destroyPopupOnHide:Nr,visible:fn,point:Pr&&wn,className:mn,align:ai,onAlign:Yn,animation:ur,getClassNameFromAlign:Me.getPopupClassNameFromAlign},ri,{stretch:Yr,getRootDomNode:Me.getRootDomNode,style:Ct,mask:Ar,zIndex:Pt,transitionName:Tt,maskAnimation:er,maskTransitionName:Ft,maskMotion:ir,ref:Me.popupRef,motion:Jn}),typeof rr=="function"?rr():rr)},Me.getContainer=function(){var yt=Object(l.a)(Me),sr=yt.props,Nr=document.createElement("div");Nr.style.position="absolute",Nr.style.top="0",Nr.style.left="0",Nr.style.width="100%";var mn=sr.getPopupContainer?sr.getPopupContainer(Me.getRootDomNode()):sr.getDocument().body;return mn.appendChild(Nr),Nr},Me.setPoint=function(yt){var sr=Me.props.alignPoint;if(!sr||!yt)return;Me.setState({point:{pageX:yt.pageX,pageY:yt.pageY}})},Me.handlePortalUpdate=function(){Me.state.prevPopupVisible!==Me.state.popupVisible&&Me.props.afterPopupVisibleChange(Me.state.popupVisible)};var nt;return"popupVisible"in Re?nt=!!Re.popupVisible:nt=!!Re.defaultPopupVisible,Me.state={prevPopupVisible:nt,popupVisible:nt},Vt.forEach(function(yt){Me["fire".concat(yt)]=function(sr){Me.fireEvents(yt,sr)}}),Me}return Object(e.a)(De,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Me=this.props,nt=this.state;if(nt.popupVisible){var yt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yt=Me.getDocument(),this.clickOutsideHandler=Object(S.a)(yt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yt=yt||Me.getDocument(),this.touchOutsideHandler=Object(S.a)(yt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yt=yt||Me.getDocument(),this.contextMenuOutsideHandler1=Object(S.a)(yt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(S.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Me=this.props,nt=Me.popupPlacement,yt=Me.popupAlign,sr=Me.builtinPlacements;return nt&&sr?w(sr,nt,yt):yt}},{key:"setPopupVisible",value:function(Me,nt){var yt=this.props.alignPoint,sr=this.state.popupVisible;this.clearDelayTimer(),sr!==Me&&("popupVisible"in this.props||this.setState({popupVisible:Me,prevPopupVisible:sr}),this.props.onPopupVisibleChange(Me)),yt&&nt&&this.setPoint(nt)}},{key:"delaySetPopupVisible",value:function(Me,nt,yt){var sr=this,Nr=nt*1e3;if(this.clearDelayTimer(),Nr){var mn=yt?{pageX:yt.pageX,pageY:yt.pageY}:null;this.delayTimer=window.setTimeout(function(){sr.setPopupVisible(Me,mn),sr.clearDelayTimer()},Nr)}else this.setPopupVisible(Me,yt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Me){var nt=this.props.children.props,yt=this.props;return nt[Me]&&yt[Me]?this["fire".concat(Me)]:nt[Me]||yt[Me]}},{key:"isClickToShow",value:function(){var Me=this.props,nt=Me.action,yt=Me.showAction;return nt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Me=this.props,nt=Me.action,yt=Me.showAction;return nt.indexOf("contextMenu")!==-1||yt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Me=this.props,nt=Me.action,yt=Me.hideAction;return nt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Me=this.props,nt=Me.action,yt=Me.showAction;return nt.indexOf("hover")!==-1||yt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Me=this.props,nt=Me.action,yt=Me.hideAction;return nt.indexOf("hover")!==-1||yt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Me=this.props,nt=Me.action,yt=Me.showAction;return nt.indexOf("focus")!==-1||yt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Me=this.props,nt=Me.action,yt=Me.hideAction;return nt.indexOf("focus")!==-1||yt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Me,nt){var yt=this.props.children.props[Me];yt&&yt(nt);var sr=this.props[Me];sr&&sr(nt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Me=this.state.popupVisible,nt=this.props,yt=nt.children,sr=nt.forceRender,Nr=nt.alignPoint,mn=nt.className,Yn=nt.autoDestroy,Jn=u.a.Children.only(yt),ur={key:"trigger"};this.isContextMenuToShow()?ur.onContextMenu=this.onContextMenu:ur.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ur.onClick=this.onClick,ur.onMouseDown=this.onMouseDown,ur.onTouchStart=this.onTouchStart):(ur.onClick=this.createTwoChains("onClick"),ur.onMouseDown=this.createTwoChains("onMouseDown"),ur.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ur.onMouseEnter=this.onMouseEnter,Nr&&(ur.onMouseMove=this.onMouseMove)):ur.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ur.onMouseLeave=this.onMouseLeave:ur.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ur.onFocus=this.onFocus,ur.onBlur=this.onBlur):(ur.onFocus=this.createTwoChains("onFocus"),ur.onBlur=this.createTwoChains("onBlur"));var Tt=_()(Jn&&Jn.props&&Jn.props.className,mn);Tt&&(ur.className=Tt);var Ct=Object(i.a)({},ur);Object(b.c)(Jn)&&(Ct.ref=Object(b.a)(this.triggerRef,Jn.ref));var Ar=u.a.cloneElement(Jn,Ct),er;return(Me||this.popupRef.current||sr)&&(er=u.a.createElement(Ln,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Me&&Yn&&(er=null),u.a.createElement(Zt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Ar,er)}}],[{key:"getDerivedStateFromProps",value:function(Me,nt){var yt=Me.popupVisible,sr={};return yt!==void 0&&nt.popupVisible!==yt&&(sr.popupVisible=yt,sr.prevPopupVisible=nt.popupVisible),sr}}]),De}(u.a.Component);return Mn.contextType=Zt,Mn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ht,getDocument:dr,onPopupVisibleChange:ut,afterPopupVisibleChange:ut,onPopupAlign:ut,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Mn}var Gt=Mt(E.a),Ve={adjustX:1,adjustY:1},me=[0,0],te={left:{points:["cr","cl"],overflow:Ve,offset:[-4,0],targetOffset:me},right:{points:["cl","cr"],overflow:Ve,offset:[4,0],targetOffset:me},top:{points:["bc","tc"],overflow:Ve,offset:[0,-4],targetOffset:me},bottom:{points:["tc","bc"],overflow:Ve,offset:[0,4],targetOffset:me},topLeft:{points:["bl","tl"],overflow:Ve,offset:[0,-4],targetOffset:me},leftTop:{points:["tr","tl"],overflow:Ve,offset:[-4,0],targetOffset:me},topRight:{points:["br","tr"],overflow:Ve,offset:[0,-4],targetOffset:me},rightTop:{points:["tl","tr"],overflow:Ve,offset:[4,0],targetOffset:me},bottomRight:{points:["tr","br"],overflow:Ve,offset:[0,4],targetOffset:me},rightBottom:{points:["bl","br"],overflow:Ve,offset:[4,0],targetOffset:me},bottomLeft:{points:["tl","bl"],overflow:Ve,offset:[0,4],targetOffset:me},leftBottom:{points:["br","bl"],overflow:Ve,offset:[-4,0],targetOffset:me}},Ze=te,Xe=function(Mn){var Xt=Mn.overlay,wt=Mn.prefixCls,De=Mn.id,Re=Mn.overlayInnerStyle;return d.createElement("div",{className:"".concat(wt,"-inner"),id:De,role:"tooltip",style:Re},typeof Xt=="function"?Xt():Xt)},ue=Xe,St=function(Mn,Xt){var wt=Mn.overlayClassName,De=Mn.trigger,Re=De===void 0?["hover"]:De,Me=Mn.mouseEnterDelay,nt=Me===void 0?0:Me,yt=Mn.mouseLeaveDelay,sr=yt===void 0?.1:yt,Nr=Mn.overlayStyle,mn=Mn.prefixCls,Yn=mn===void 0?"rc-tooltip":mn,Jn=Mn.children,ur=Mn.onVisibleChange,Tt=Mn.afterVisibleChange,Ct=Mn.transitionName,Ar=Mn.animation,er=Mn.placement,Ft=er===void 0?"right":er,ir=Mn.align,Pt=ir===void 0?{}:ir,rr=Mn.destroyTooltipOnHide,Yr=rr===void 0?!1:rr,Pr=Mn.defaultVisible,Mr=Mn.getTooltipContainer,fn=Mn.overlayInnerStyle,wn=Object(t.a)(Mn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ai=Object(d.useRef)(null);Object(d.useImperativeHandle)(Xt,function(){return ai.current});var ri=Object(i.a)({},wn);"visible"in Mn&&(ri.popupVisible=Mn.visible);var gi=function(){var Ne=Mn.arrowContent,He=Ne===void 0?null:Ne,Ye=Mn.overlay,at=Mn.id;return[d.createElement("div",{className:"".concat(Yn,"-arrow"),key:"arrow"},He),d.createElement(ue,{key:"content",prefixCls:Yn,id:at,overlay:Ye,overlayInnerStyle:fn})]},Ii=!1,Mi=!1;if(typeof Yr=="boolean")Ii=Yr;else if(Yr&&Object(a.a)(Yr)==="object"){var Qi=Yr.keepParent;Ii=Qi===!0,Mi=Qi===!1}return d.createElement(Gt,Object.assign({popupClassName:wt,prefixCls:Yn,popup:gi,action:Re,builtinPlacements:te,popupPlacement:Ft,ref:ai,popupAlign:Pt,getPopupContainer:Mr,onPopupVisibleChange:ur,afterPopupVisibleChange:Tt,popupTransitionName:Ct,popupAnimation:Ar,defaultPopupVisible:Pr,destroyPopupOnHide:Ii,autoDestroy:Mi,mouseLeaveDelay:sr,popupStyle:Nr,mouseEnterDelay:nt},ri),Jn)},Qt=Object(d.forwardRef)(St),dt=Qt,Jt={adjustX:1,adjustY:1},$t={adjustX:0,adjustY:0},tn=[0,0];function kt(Ln){return typeof Ln=="boolean"?Ln?Jt:$t:p()(p()({},$t),Ln)}function tr(Ln){var Mn=Ln.arrowWidth,Xt=Mn===void 0?5:Mn,wt=Ln.horizontalArrowShift,De=wt===void 0?16:wt,Re=Ln.verticalArrowShift,Me=Re===void 0?8:Re,nt=Ln.autoAdjustOverflow,yt={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:[-(De+Xt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Me+Xt)]},topRight:{points:["br","tc"],offset:[De+Xt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Me+Xt)]},bottomRight:{points:["tr","bc"],offset:[De+Xt,4]},rightBottom:{points:["bl","cr"],offset:[4,Me+Xt]},bottomLeft:{points:["tl","bc"],offset:[-(De+Xt),4]},leftBottom:{points:["br","cl"],offset:[-4,Me+Xt]}};return Object.keys(yt).forEach(function(sr){yt[sr]=Ln.arrowPointAtCenter?p()(p()({},yt[sr]),{overflow:kt(nt),targetOffset:tn}):p()(p()({},te[sr]),{overflow:kt(nt)}),yt[sr].ignoreShake=!0}),yt}var Bt=r("0n0R"),ft=r("H84U"),it=r("09Wf"),Or=function(Mn,Xt){var wt={},De=p()({},Mn);return Xt.forEach(function(Re){Mn&&Re in Mn&&(wt[Re]=Mn[Re],delete De[Re])}),{picked:wt,omitted:De}},an=new RegExp("^(".concat(it.a.join("|"),")(-inverse)?$"));function En(Ln,Mn){var Xt=Ln.type;if((Xt.__ANT_BUTTON===!0||Xt.__ANT_SWITCH===!0||Xt.__ANT_CHECKBOX===!0||Ln.type==="button")&&Ln.props.disabled){var wt=Or(Ln.props.style,["position","left","right","top","bottom","float","display","zIndex"]),De=wt.picked,Re=wt.omitted,Me=p()(p()({display:"inline-block"},De),{cursor:"not-allowed",width:Ln.props.block?"100%":null}),nt=p()(p()({},Re),{pointerEvents:"none"}),yt=Object(Bt.a)(Ln,{style:nt,className:null});return d.createElement("span",{style:Me,className:_()(Ln.props.className,"".concat(Mn,"-disabled-compatible-wrapper"))},yt)}return Ln}var Bn=d.forwardRef(function(Ln,Mn){var Xt,wt=d.useContext(ft.b),De=wt.getPopupContainer,Re=wt.getPrefixCls,Me=wt.direction,nt=d.useState(!!Ln.visible||!!Ln.defaultVisible),yt=A()(nt,2),sr=yt[0],Nr=yt[1];d.useEffect(function(){"visible"in Ln&&Nr(Ln.visible)},[Ln.visible]);var mn=function(){var Qi=Ln.title,ot=Ln.overlay;return!Qi&&!ot&&Qi!==0},Yn=function(Qi){"visible"in Ln||Nr(mn()?!1:Qi),Ln.onVisibleChange&&!mn()&&Ln.onVisibleChange(Qi)},Jn=function(){var Qi=Ln.builtinPlacements,ot=Ln.arrowPointAtCenter,Ne=Ln.autoAdjustOverflow;return Qi||tr({arrowPointAtCenter:ot,autoAdjustOverflow:Ne})},ur=function(Qi,ot){var Ne=Jn(),He=Object.keys(Ne).filter(function(qe){return Ne[qe].points[0]===ot.points[0]&&Ne[qe].points[1]===ot.points[1]})[0];if(!He)return;var Ye=Qi.getBoundingClientRect(),at={top:"50%",left:"50%"};He.indexOf("top")>=0||He.indexOf("Bottom")>=0?at.top="".concat(Ye.height-ot.offset[1],"px"):(He.indexOf("Top")>=0||He.indexOf("bottom")>=0)&&(at.top="".concat(-ot.offset[1],"px")),He.indexOf("left")>=0||He.indexOf("Right")>=0?at.left="".concat(Ye.width-ot.offset[0],"px"):(He.indexOf("right")>=0||He.indexOf("Left")>=0)&&(at.left="".concat(-ot.offset[0],"px")),Qi.style.transformOrigin="".concat(at.left," ").concat(at.top)},Tt=function(){var Qi=Ln.title,ot=Ln.overlay;return Qi===0?Qi:ot||Qi||""},Ct=Ln.prefixCls,Ar=Ln.openClassName,er=Ln.getPopupContainer,Ft=Ln.getTooltipContainer,ir=Ln.overlayClassName,Pt=Ln.color,rr=Ln.overlayInnerStyle,Yr=Ln.children,Pr=Re("tooltip",Ct),Mr=sr;!("visible"in Ln)&&mn()&&(Mr=!1);var fn=En(Object(Bt.b)(Yr)?Yr:d.createElement("span",null,Yr),Pr),wn=fn.props,ai=_()(wn.className,f()({},Ar||"".concat(Pr,"-open"),!0)),ri=_()(ir,(Xt={},f()(Xt,"".concat(Pr,"-rtl"),Me==="rtl"),f()(Xt,"".concat(Pr,"-").concat(Pt),Pt&&an.test(Pt)),Xt)),gi,Ii;return Pt&&!an.test(Pt)&&(gi=p()(p()({},rr),{background:Pt}),Ii={background:Pt}),d.createElement(dt,p()({},Ln,{prefixCls:Pr,overlayClassName:ri,getTooltipContainer:er||Ft||De,ref:Mn,builtinPlacements:Jn(),overlay:Tt(),visible:Mr,onVisibleChange:Yn,onPopupAlign:ur,overlayInnerStyle:gi,arrowContent:d.createElement("span",{className:"".concat(Pr,"-arrow-content"),style:Ii})}),Mr?Object(Bt.a)(fn,{className:ai}):fn)});Bn.displayName="Tooltip",Bn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var vi=L.a=Bn},"3TkU":function(R,L,r){r("aTJb"),r("OlYY"),r("fc+c"),r("QUw5"),r("Swgg"),r("LBfv"),r("noeP")},"3X6L":function(R,L,r){var y=r("bYtY"),f=r("7a+S"),x=r("OKJ2"),A=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:[]}});y.mixin(A,x);var m=A;R.exports=m},"3cYt":function(R,L){function r(y){return function(f){return y==null?void 0:y[f]}}R.exports=r},"3e3G":function(R,L,r){var y=r("bYtY"),f=r("QuXc"),x=function(p,d,u,a,i){this.x=p==null?.5:p,this.y=d==null?.5:d,this.r=u==null?.5:u,this.type="radial",this.global=i||!1,f.call(this,a)};x.prototype={constructor:x},y.inherits(x,f);var A=x;R.exports=A},"3gBT":function(R,L){var r=2311;function y(){return r++}R.exports=y},"3hzK":function(R,L){var r={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")}}};R.exports=r},"3m61":function(R,L){function r(f){return f instanceof Array||(f=[f,f]),f}function y(f){f.eachSeriesByType("graph",function(x){var A=x.getGraph(),m=x.getEdgeData(),p=r(x.get("edgeSymbol")),d=r(x.get("edgeSymbolSize")),u="lineStyle.color".split("."),a="lineStyle.opacity".split(".");m.setVisual("fromSymbol",p&&p[0]),m.setVisual("toSymbol",p&&p[1]),m.setVisual("fromSymbolSize",d&&d[0]),m.setVisual("toSymbolSize",d&&d[1]),m.setVisual("color",x.get(u)),m.setVisual("opacity",x.get(a)),m.each(function(i){var t=m.getItemModel(i),s=A.getEdgeByIndex(i),e=r(t.getShallow("symbol",!0)),l=r(t.getShallow("symbolSize",!0)),n=t.get(u),o=t.get(a);switch(n){case"source":n=s.node1.getVisual("color");break;case"target":n=s.node2.getVisual("color");break}e[0]&&s.setVisual("fromSymbol",e[0]),e[1]&&s.setVisual("toSymbol",e[1]),l[0]&&s.setVisual("fromSymbolSize",l[0]),l[1]&&s.setVisual("toSymbolSize",l[1]),s.setVisual("color",n),s.setVisual("opacity",o)})})}R.exports=y},"3ouR":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112c17.7 0 32 14.3 32 32v736c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32zm-40 72H184v656h656V184zM640.01 338.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-square",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CloseSquareOutlined";var d=L.a=f.forwardRef(p)},"3y9D":function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=x.Hasher,p=f.algo,d=[],u=p.SHA1=m.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,t){for(var s=this._hash.words,e=s[0],l=s[1],n=s[2],o=s[3],c=s[4],h=0;h<80;h++){if(h<16)d[h]=i[t+h]|0;else{var g=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=g<<1|g>>>31}var v=(e<<5|e>>>27)+c+d[h];h<20?v+=(l&n|~l&o)+1518500249:h<40?v+=(l^n^o)+1859775393:h<60?v+=(l&n|l&o|n&o)-1894007588:v+=(l^n^o)-899497514,c=o,o=n,n=l<<30|l>>>2,l=e,e=v}s[0]=s[0]+e|0,s[1]=s[1]+l|0,s[2]=s[2]+n|0,s[3]=s[3]+o|0,s[4]=s[4]+c|0},_doFinalize:function(){var i=this._data,t=i.words,s=this._nDataBytes*8,e=i.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(s/4294967296),t[(e+64>>>9<<4)+15]=s,i.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var i=m.clone.call(this);return i._hash=this._hash.clone(),i}});f.SHA1=m._createHelper(u),f.HmacSHA1=m._createHmacHelper(u)}(),y.SHA1})},"3zoK":function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("KCsZ"),A=r("nkfE"),m=r("OELB"),p=r("ICMv"),d=f.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return x([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var s=this.activeIntervals=y.clone(t);if(s)for(var e=s.length-1;e>=0;e--)m.asc(s[e])},getActiveState:function(t){var s=this.activeIntervals;if(!s.length)return"normal";if(t==null||isNaN(t))return"inactive";if(s.length===1){var e=s[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var l=0,n=s.length;l<n;l++)if(s[l][0]<=t&&t<=s[l][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};y.merge(d.prototype,p);function a(t,s){return s.type||(s.data?"category":"value")}A("parallel",d,a,u);var i=d;R.exports=i},"3zu8":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("ZLWo")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="FolderOpenOutlined";var i=A.forwardRef(a);L.default=i},"49sm":function(R,L){var r={}.toString;R.exports=Array.isArray||function(y){return r.call(y)=="[object Array]"}},"4Feb":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("IwbS"),m=r("x3X8"),p=m.getDefaultLabel,d=r("MwEJ"),u=r("nVfU"),a=u.getLayoutOnAxis,i=r("gPAo"),t=r("T4UG"),s=r("Qxkt"),e=r("6Ic6"),l=r("sK/D"),n=l.createClipPath,o=r("qj72"),c=r("ANjR"),h=r("MHtr"),g=r("6usn"),v=r("Rx6q"),b=A.CACHED_LABEL_STYLE_PROPERTIES,S=["itemStyle"],E=["emphasis","itemStyle"],C=["label"],_=["emphasis","label"],T="e\0\0",w={cartesian2d:o,geo:c,singleAxis:h,polar:g,calendar:v};t.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(he,ke){return d(this.getSource(),this)},getDataParams:function(he,ke,Pe){var Ue=t.prototype.getDataParams.apply(this,arguments);return Pe&&(Ue.info=Pe.info),Ue}}),e.extend({type:"custom",_data:null,render:function(he,ke,Pe,Ue){var $e=this._data,Ge=he.getData(),ht=this.group,Fe=M(he,Ge,ke,Pe);Ge.diff($e).add(function(rt){P(null,rt,Fe(rt,Ue),he,ht,Ge)}).update(function(rt,fe){var J=$e.getItemGraphicEl(fe);P(J,rt,Fe(rt,Ue),he,ht,Ge)}).remove(function(rt){var fe=$e.getItemGraphicEl(rt);fe&&ht.remove(fe)}).execute();var oe=he.get("clip",!0)?n(he.coordinateSystem,!1,he):null;oe?ht.setClipPath(oe):ht.removeClipPath(),this._data=Ge},incrementalPrepareRender:function(he,ke,Pe){this.group.removeAll(),this._data=null},incrementalRender:function(he,ke,Pe,Ue,$e){var Ge=ke.getData(),ht=M(ke,Ge,Pe,Ue);function Fe(fe){fe.isGroup||(fe.incremental=!0,fe.useHoverLayer=!0)}for(var oe=he.start;oe<he.end;oe++){var rt=P(null,oe,ht(oe,$e),ke,this.group,Ge);rt.traverse(Fe)}},dispose:x.noop,filterForExposedEvent:function(he,ke,Pe,Ue){var $e=ke.element;if($e==null||Pe.name===$e)return!0;for(;(Pe=Pe.parent)&&Pe!==this.group;)if(Pe.name===$e)return!0;return!1}});function O(he){var ke=he.type,Pe;if(ke==="path"){var Ue=he.shape,$e=Ue.width!=null&&Ue.height!=null?{x:Ue.x||0,y:Ue.y||0,width:Ue.width,height:Ue.height}:null,Ge=ee(Ue);Pe=A.makePath(Ge,null,$e,Ue.layout||"center"),Pe.__customPathData=Ge}else if(ke==="image")Pe=new A.Image({}),Pe.__customImagePath=he.style.image;else if(ke==="text")Pe=new A.Text({}),Pe.__customText=he.style.text;else if(ke==="group")Pe=new A.Group;else{if(ke==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ht=A.getShapeClass(ke);Pe=new ht}return Pe.__customGraphicType=ke,Pe.name=he.name,Pe}function I(he,ke,Pe,Ue,$e,Ge,ht){var Fe={},oe=Pe.style||{};if(Pe.shape&&(Fe.shape=x.clone(Pe.shape)),Pe.position&&(Fe.position=Pe.position.slice()),Pe.scale&&(Fe.scale=Pe.scale.slice()),Pe.origin&&(Fe.origin=Pe.origin.slice()),Pe.rotation&&(Fe.rotation=Pe.rotation),he.type==="image"&&Pe.style){var rt=Fe.style={};x.each(["x","y","width","height"],function(Y){k(Y,rt,oe,he.style,Ge)})}if(he.type==="text"&&Pe.style){var rt=Fe.style={};x.each(["x","y"],function($){k($,rt,oe,he.style,Ge)}),!oe.hasOwnProperty("textFill")&&oe.fill&&(oe.textFill=oe.fill),!oe.hasOwnProperty("textStroke")&&oe.stroke&&(oe.textStroke=oe.stroke)}if(he.type!=="group"&&(he.useStyle(oe),Ge)){he.style.opacity=0;var fe=oe.opacity;fe==null&&(fe=1),A.initProps(he,{style:{opacity:fe}},Ue,ke)}Ge?he.attr(Fe):A.updateProps(he,Fe,Ue,ke),Pe.hasOwnProperty("z2")&&he.attr("z2",Pe.z2||0),Pe.hasOwnProperty("silent")&&he.attr("silent",Pe.silent),Pe.hasOwnProperty("invisible")&&he.attr("invisible",Pe.invisible),Pe.hasOwnProperty("ignore")&&he.attr("ignore",Pe.ignore),Pe.hasOwnProperty("info")&&he.attr("info",Pe.info);var J=Pe.styleEmphasis;A.setElementHoverStyle(he,J),ht&&A.setAsHighDownDispatcher(he,J!==!1)}function k(he,ke,Pe,Ue,$e){Pe[he]!=null&&!$e&&(ke[he]=Pe[he],Pe[he]=Ue[he])}function M(he,ke,Pe,Ue){var $e=he.get("renderItem"),Ge=he.coordinateSystem,ht={};Ge&&(ht=Ge.prepareCustoms?Ge.prepareCustoms():w[Ge.type](Ge));var Fe=x.defaults({getWidth:Ue.getWidth,getHeight:Ue.getHeight,getZr:Ue.getZr,getDevicePixelRatio:Ue.getDevicePixelRatio,value:Ce,style:Se,styleEmphasis:le,visual:pe,barLayout:_e,currentSeriesIndices:tt,font:gt},ht.api||{}),oe={context:{},seriesId:he.id,seriesName:he.name,seriesIndex:he.seriesIndex,coordSys:ht.coordSys,dataInsideLength:ke.count(),encode:U(he.getData())},rt,fe=!0,J,Y,$,de;return function(ct,je){return rt=ct,fe=!0,$e&&$e(x.defaults({dataIndexInside:ct,dataIndex:ke.getRawIndex(ct),actionType:je?je.type:null},oe),Fe)};function we(ct){ct==null&&(ct=rt),fe&&(J=ke.getItemModel(ct),Y=J.getModel(C),$=J.getModel(_),de=ke.getItemVisual(ct,"color"),fe=!1)}function Ce(ct,je){return je==null&&(je=rt),ke.get(ke.getDimension(ct||0),je)}function Se(ct,je){je==null&&(je=rt),we(je);var Zt=J.getModel(S).getItemStyle();de!=null&&(Zt.fill=de);var ut=ke.getItemVisual(je,"opacity");ut!=null&&(Zt.opacity=ut);var Ht=ct?V(ct,Y):Y;return A.setTextStyle(Zt,Ht,null,{autoColor:de,isRectText:!0}),Zt.text=Ht.getShallow("show")?x.retrieve2(he.getFormattedLabel(je,"normal"),p(ke,je)):null,ct&&Q(Zt,ct),Zt}function le(ct,je){je==null&&(je=rt),we(je);var Zt=J.getModel(E).getItemStyle(),ut=ct?V(ct,$):$;return A.setTextStyle(Zt,ut,null,{isRectText:!0},!0),Zt.text=ut.getShallow("show")?x.retrieve3(he.getFormattedLabel(je,"emphasis"),he.getFormattedLabel(je,"normal"),p(ke,je)):null,ct&&Q(Zt,ct),Zt}function pe(ct,je){return je==null&&(je=rt),ke.getItemVisual(je,ct)}function _e(ct){if(Ge.getBaseAxis){var je=Ge.getBaseAxis();return a(x.defaults({axis:je},ct),Ue)}}function tt(){return Pe.getCurrentSeriesIndices()}function gt(ct){return A.getFont(ct,Pe)}}function U(he){var ke={};return x.each(he.dimensions,function(Pe,Ue){var $e=he.getDimensionInfo(Pe);if(!$e.isExtraCoord){var Ge=$e.coordDim,ht=ke[Ge]=ke[Ge]||[];ht[$e.coordDimIndex]=Ue}}),ke}function P(he,ke,Pe,Ue,$e,Ge){return he=X(he,ke,Pe,Ue,$e,Ge,!0),he&&Ge.setItemGraphicEl(ke,he),he}function X(he,ke,Pe,Ue,$e,Ge,ht){var Fe=!Pe;Pe=Pe||{};var oe=Pe.type,rt=Pe.shape,fe=Pe.style;if(he&&(Fe||oe!=null&&oe!==he.__customGraphicType||oe==="path"&&se(rt)&&ee(rt)!==he.__customPathData||oe==="image"&&ye(fe,"image")&&fe.image!==he.__customImagePath||oe==="text"&&ye(rt,"text")&&fe.text!==he.__customText)&&($e.remove(he),he=null),Fe)return;var J=!he;return!he&&(he=O(Pe)),I(he,ke,Pe,Ue,Ge,J,ht),oe==="group"&&F(he,ke,Pe,Ue,Ge),$e.add(he),he}function F(he,ke,Pe,Ue,$e){var Ge=Pe.children,ht=Ge?Ge.length:0,Fe=Pe.$mergeChildren,oe=Fe==="byName"||Pe.diffChildrenByName,rt=Fe===!1;if(!ht&&!oe&&!rt)return;if(oe){j({oldChildren:he.children()||[],newChildren:Ge||[],dataIndex:ke,animatableModel:Ue,group:he,data:$e});return}rt&&he.removeAll();for(var fe=0;fe<ht;fe++)Ge[fe]&&X(he.childAt(fe),ke,Ge[fe],Ue,he,$e)}function j(he){new i(he.oldChildren,he.newChildren,K,K,he).add(z).update(z).remove(G).execute()}function K(he,ke){var Pe=he&&he.name;return Pe!=null?Pe:T+ke}function z(he,ke){var Pe=this.context,Ue=he!=null?Pe.newChildren[he]:null,$e=ke!=null?Pe.oldChildren[ke]:null;X($e,Pe.dataIndex,Ue,Pe.animatableModel,Pe.group,Pe.data)}function V(he,ke){var Pe=new s({},ke);return x.each(b,function(Ue,$e){he.hasOwnProperty(Ue)&&(Pe.option[$e]=he[Ue])}),Pe}function Q(he,ke){for(var Pe in ke)(ke.hasOwnProperty(Pe)||!b.hasOwnProperty(Pe))&&(he[Pe]=ke[Pe])}function G(he){var ke=this.context,Pe=ke.oldChildren[he];Pe&&ke.group.remove(Pe)}function ee(he){return he&&(he.pathData||he.d)}function se(he){return he&&(he.hasOwnProperty("pathData")||he.hasOwnProperty("d"))}function ye(he,ke){return he&&he.hasOwnProperty(ke)}},"4HMb":function(R,L,r){var y=r("bYtY"),f=r("6GrX"),x=r("4NO4"),A=x.makeInner,m=r("aX7z"),p=m.makeLabelFormatter,d=m.getOptionCategoryInterval,u=m.shouldShowAllLabels,a=A();function i(C){return C.type==="category"?s(C):n(C)}function t(C,_){return C.type==="category"?l(C,_):{ticks:C.scale.getTicks()}}function s(C){var _=C.getLabelModel(),T=e(C,_);return!_.get("show")||C.scale.isBlank()?{labels:[],labelCategoryInterval:T.labelCategoryInterval}:T}function e(C,_){var T=o(C,"labels"),w=d(_),O=c(T,w);if(O)return O;var I,k;return y.isFunction(w)?I=E(C,w):(k=w==="auto"?g(C):w,I=S(C,k)),h(T,w,{labels:I,labelCategoryInterval:k})}function l(C,_){var T=o(C,"ticks"),w=d(_),O=c(T,w);if(O)return O;var I,k;if((!_.get("show")||C.scale.isBlank())&&(I=[]),y.isFunction(w))I=E(C,w,!0);else if(w==="auto"){var M=e(C,C.getLabelModel());k=M.labelCategoryInterval,I=y.map(M.labels,function(U){return U.tickValue})}else k=w,I=S(C,k,!0);return h(T,w,{ticks:I,tickCategoryInterval:k})}function n(C){var _=C.scale.getTicks(),T=p(C);return{labels:y.map(_,function(w,O){return{formattedLabel:T(w,O),rawLabel:C.scale.getLabel(w),tickValue:w}})}}function o(C,_){return a(C)[_]||(a(C)[_]=[])}function c(C,_){for(var T=0;T<C.length;T++)if(C[T].key===_)return C[T].value}function h(C,_,T){return C.push({key:_,value:T}),T}function g(C){var _=a(C).autoInterval;return _!=null?_:a(C).autoInterval=C.calculateCategoryInterval()}function v(C){var _=b(C),T=p(C),w=(_.axisRotate-_.labelRotate)/180*Math.PI,O=C.scale,I=O.getExtent(),k=O.count();if(I[1]-I[0]<1)return 0;var M=1;k>40&&(M=Math.max(1,Math.floor(k/40)));for(var U=I[0],P=C.dataToCoord(U+1)-C.dataToCoord(U),X=Math.abs(P*Math.cos(w)),F=Math.abs(P*Math.sin(w)),j=0,K=0;U<=I[1];U+=M){var z=0,V=0,Q=f.getBoundingRect(T(U),_.font,"center","top");z=Q.width*1.3,V=Q.height*1.3,j=Math.max(j,z,7),K=Math.max(K,V,7)}var G=j/X,ee=K/F;isNaN(G)&&(G=Infinity),isNaN(ee)&&(ee=Infinity);var se=Math.max(0,Math.floor(Math.min(G,ee))),ye=a(C.model),he=C.getExtent(),ke=ye.lastAutoInterval,Pe=ye.lastTickCount;return ke!=null&&Pe!=null&&Math.abs(ke-se)<=1&&Math.abs(Pe-k)<=1&&ke>se&&ye.axisExtend0===he[0]&&ye.axisExtend1===he[1]?se=ke:(ye.lastTickCount=k,ye.lastAutoInterval=se,ye.axisExtend0=he[0],ye.axisExtend1=he[1]),se}function b(C){var _=C.getLabelModel();return{axisRotate:C.getRotate?C.getRotate():C.isHorizontal&&!C.isHorizontal()?90:0,labelRotate:_.get("rotate")||0,font:_.getFont()}}function S(C,_,T){var w=p(C),O=C.scale,I=O.getExtent(),k=C.getLabelModel(),M=[],U=Math.max((_||0)+1,1),P=I[0],X=O.count();P!==0&&U>1&&X/U>2&&(P=Math.round(Math.ceil(P/U)*U));var F=u(C),j=k.get("showMinLabel")||F,K=k.get("showMaxLabel")||F;j&&P!==I[0]&&V(I[0]);for(var z=P;z<=I[1];z+=U)V(z);K&&z-U!==I[1]&&V(I[1]);function V(Q){M.push(T?Q:{formattedLabel:w(Q),rawLabel:O.getLabel(Q),tickValue:Q})}return M}function E(C,_,T){var w=C.scale,O=p(C),I=[];return y.each(w.getTicks(),function(k){var M=w.getLabel(k);_(k,M)&&I.push(T?k:{formattedLabel:O(k),rawLabel:M,tickValue:k})}),I}L.createAxisLabels=i,L.createAxisTicks=t,L.calculateCategoryInterval=v},"4NO4":function(R,L,r){var y=r("bYtY"),f=r("ItGF"),x=y.each,A=y.isObject,m=y.isArray,p="series\0";function d(T){return T instanceof Array?T:T==null?[]:[T]}function u(T,w,O){if(T){T[w]=T[w]||{},T.emphasis=T.emphasis||{},T.emphasis[w]=T.emphasis[w]||{};for(var I=0,k=O.length;I<k;I++){var M=O[I];!T.emphasis[w].hasOwnProperty(M)&&T[w].hasOwnProperty(M)&&(T.emphasis[w][M]=T[w][M])}}}var a=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function i(T){return A(T)&&!m(T)&&!(T instanceof Date)?T.value:T}function t(T){return A(T)&&!(T instanceof Array)}function s(T,w){w=(w||[]).slice();var O=y.map(T||[],function(I,k){return{exist:I}});return x(w,function(I,k){if(!A(I))return;for(var M=0;M<O.length;M++)if(!O[M].option&&I.id!=null&&O[M].exist.id===I.id+""){O[M].option=I,w[k]=null;return}for(var M=0;M<O.length;M++){var U=O[M].exist;if(!O[M].option&&(U.id==null||I.id==null)&&I.name!=null&&!n(I)&&!n(U)&&U.name===I.name+""){O[M].option=I,w[k]=null;return}}}),x(w,function(I,k){if(!A(I))return;for(var M=0;M<O.length;M++){var U=O[M].exist;if(!O[M].option&&!n(U)&&I.id==null){O[M].option=I;break}}M>=O.length&&O.push({option:I})}),O}function e(T){var w=y.createHashMap();x(T,function(O,I){var k=O.exist;k&&w.set(k.id,O)}),x(T,function(O,I){var k=O.option;y.assert(!k||k.id==null||!w.get(k.id)||w.get(k.id)===O,"id duplicates: "+(k&&k.id)),k&&k.id!=null&&w.set(k.id,O),!O.keyInfo&&(O.keyInfo={})}),x(T,function(O,I){var k=O.exist,M=O.option,U=O.keyInfo;if(!A(M))return;if(U.name=M.name!=null?M.name+"":k?k.name:p+I,k)U.id=k.id;else if(M.id!=null)U.id=M.id+"";else{var P=0;do U.id="\0"+U.name+"\0"+P++;while(w.get(U.id))}w.set(U.id,O)})}function l(T){var w=T.name;return!!(w&&w.indexOf(p))}function n(T){return A(T)&&T.id&&(T.id+"").indexOf("\0_ec_\0")===0}function o(T,w){var O={},I={};return k(T||[],O),k(w||[],I,O),[M(O),M(I)];function k(U,P,X){for(var F=0,j=U.length;F<j;F++)for(var K=U[F].seriesId,z=d(U[F].dataIndex),V=X&&X[K],Q=0,G=z.length;Q<G;Q++){var ee=z[Q];V&&V[ee]?V[ee]=null:(P[K]||(P[K]={}))[ee]=1}}function M(U,P){var X=[];for(var F in U)if(U.hasOwnProperty(F)&&U[F]!=null)if(P)X.push(+F);else{var j=M(U[F],!0);j.length&&X.push({seriesId:F,dataIndex:j})}return X}}function c(T,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return y.isArray(w.dataIndex)?y.map(w.dataIndex,function(O){return T.indexOfRawIndex(O)}):T.indexOfRawIndex(w.dataIndex);if(w.name!=null)return y.isArray(w.name)?y.map(w.name,function(O){return T.indexOfName(O)}):T.indexOfName(w.name)}function h(){var T="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(w){return w[T]||(w[T]={})}}var g=0;function v(T,w,O){if(y.isString(w)){var I={};I[w+"Index"]=0,w=I}var k=O&&O.defaultMainType;k&&!b(w,k+"Index")&&!b(w,k+"Id")&&!b(w,k+"Name")&&(w[k+"Index"]=0);var M={};return x(w,function(U,P){var U=w[P];if(P==="dataIndex"||P==="dataIndexInside"){M[P]=U;return}var X=P.match(/^(\w+)(Index|Id|Name)$/)||[],F=X[1],j=(X[2]||"").toLowerCase();if(!F||!j||U==null||j==="index"&&U==="none"||O&&O.includeMainTypes&&y.indexOf(O.includeMainTypes,F)<0)return;var K={mainType:F};(j!=="index"||U!=="all")&&(K[j]=U);var z=T.queryComponents(K);M[F+"Models"]=z,M[F+"Model"]=z[0]}),M}function b(T,w){return T&&T.hasOwnProperty(w)}function S(T,w,O){T.setAttribute?T.setAttribute(w,O):T[w]=O}function E(T,w){return T.getAttribute?T.getAttribute(w):T[w]}function C(T){return T==="auto"?f.domSupported?"html":"richText":T||"html"}function _(T,w){var O=y.createHashMap(),I=[];return y.each(T,function(k){var M=w(k);(O.get(M)||(I.push(M),O.set(M,[]))).push(k)}),{keys:I,buckets:O}}L.normalizeToArray=d,L.defaultEmphasis=u,L.TEXT_STYLE_OPTIONS=a,L.getDataItemValue=i,L.isDataItemOption=t,L.mappingToExists=s,L.makeIdAndName=e,L.isNameSpecified=l,L.isIdInner=n,L.compressBatches=o,L.queryDataIndex=c,L.makeInner=h,L.parseFinder=v,L.setAttribute=S,L.getAttribute=E,L.getTooltipRenderMode=C,L.groupData=_},"4NgU":function(R,L,r){var y=r("Yl7c");function f(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}f.prototype.parse=function(A){return A},f.prototype.getSetting=function(A){return this._setting[A]},f.prototype.contain=function(A){var m=this._extent;return A>=m[0]&&A<=m[1]},f.prototype.normalize=function(A){var m=this._extent;return m[1]===m[0]?.5:(A-m[0])/(m[1]-m[0])},f.prototype.scale=function(A){var m=this._extent;return A*(m[1]-m[0])+m[0]},f.prototype.unionExtent=function(A){var m=this._extent;A[0]<m[0]&&(m[0]=A[0]),A[1]>m[1]&&(m[1]=A[1])},f.prototype.unionExtentFromData=function(A,m){this.unionExtent(A.getApproximateExtent(m))},f.prototype.getExtent=function(){return this._extent.slice()},f.prototype.setExtent=function(A,m){var p=this._extent;isNaN(A)||(p[0]=A),isNaN(m)||(p[1]=m)},f.prototype.isBlank=function(){return this._isBlank},f.prototype.setBlank=function(A){this._isBlank=A},f.prototype.getLabel=null,y.enableClassExtend(f),y.enableClassManagement(f,{registerWhenExtend:!0});var x=f;R.exports=x},"4fz+":function(R,L,r){var y=r("bYtY"),f=r("1bdT"),x=r("mFDi"),A=function(d){d=d||{},f.call(this,d);for(var u in d)d.hasOwnProperty(u)&&(this[u]=d[u]);this._children=[],this.__storage=null,this.__dirty=!0};A.prototype={constructor:A,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var u=this._children,a=0;a<u.length;a++)if(u[a].name===d)return u[a]},childCount:function(){return this._children.length},add:function(d){return d&&d!==this&&d.parent!==this&&(this._children.push(d),this._doAdd(d)),this},addBefore:function(d,u){if(d&&d!==this&&d.parent!==this&&u&&u.parent===this){var a=this._children,i=a.indexOf(u);i>=0&&(a.splice(i,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var u=this.__storage,a=this.__zr;u&&u!==d.__storage&&(u.addToStorage(d),d instanceof A&&d.addChildrenToStorage(u)),a&&a.refresh()},remove:function(d){var u=this.__zr,a=this.__storage,i=this._children,t=y.indexOf(i,d);return t<0?this:(i.splice(t,1),d.parent=null,a&&(a.delFromStorage(d),d instanceof A&&d.delChildrenFromStorage(a)),u&&u.refresh(),this)},removeAll:function(){var d=this._children,u=this.__storage,a,i;for(i=0;i<d.length;i++)a=d[i],u&&(u.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(u)),a.parent=null;return d.length=0,this},eachChild:function(d,u){for(var a=this._children,i=0;i<a.length;i++){var t=a[i];d.call(u,t,i)}return this},traverse:function(d,u){for(var a=0;a<this._children.length;a++){var i=this._children[a];d.call(u,i),i.type==="group"&&i.traverse(d,u)}return this},addChildrenToStorage:function(d){for(var u=0;u<this._children.length;u++){var a=this._children[u];d.addToStorage(a),a instanceof A&&a.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var u=0;u<this._children.length;u++){var a=this._children[u];d.delFromStorage(a),a instanceof A&&a.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var u=null,a=new x(0,0,0,0),i=d||this._children,t=[],s=0;s<i.length;s++){var e=i[s];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),n=e.getLocalTransform(t);n?(a.copy(l),a.applyTransform(n),u=u||a.clone(),u.union(a)):(u=u||l.clone(),u.union(l))}return u||a}},y.inherits(A,f);var m=A;R.exports=m},"4i/N":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CloseOutlined";var d=L.a=f.forwardRef(p)},"4kuk":function(R,L,r){var y=r("SfRM"),f=r("Hvzi"),x=r("u8Dt"),A=r("ekgI"),m=r("JSQU");function p(d){var u=-1,a=d==null?0:d.length;for(this.clear();++u<a;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=A,p.prototype.set=m,R.exports=p},"4mN7":function(R,L,r){var y=r("QBsz"),f=r("Sj9i"),x=Math.min,A=Math.max,m=Math.sin,p=Math.cos,d=Math.PI*2,u=y.create(),a=y.create(),i=y.create();function t(h,g,v){if(h.length===0)return;var b=h[0],S=b[0],E=b[0],C=b[1],_=b[1],T;for(T=1;T<h.length;T++)b=h[T],S=x(S,b[0]),E=A(E,b[0]),C=x(C,b[1]),_=A(_,b[1]);g[0]=S,g[1]=C,v[0]=E,v[1]=_}function s(h,g,v,b,S,E){S[0]=x(h,v),S[1]=x(g,b),E[0]=A(h,v),E[1]=A(g,b)}var e=[],l=[];function n(h,g,v,b,S,E,C,_,T,w){var O=f.cubicExtrema,I=f.cubicAt,k,M=O(h,v,S,C,e);for(T[0]=Infinity,T[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,k=0;k<M;k++){var U=I(h,v,S,C,e[k]);T[0]=x(U,T[0]),w[0]=A(U,w[0])}for(M=O(g,b,E,_,l),k=0;k<M;k++){var P=I(g,b,E,_,l[k]);T[1]=x(P,T[1]),w[1]=A(P,w[1])}T[0]=x(h,T[0]),w[0]=A(h,w[0]),T[0]=x(C,T[0]),w[0]=A(C,w[0]),T[1]=x(g,T[1]),w[1]=A(g,w[1]),T[1]=x(_,T[1]),w[1]=A(_,w[1])}function o(h,g,v,b,S,E,C,_){var T=f.quadraticExtremum,w=f.quadraticAt,O=A(x(T(h,v,S),1),0),I=A(x(T(g,b,E),1),0),k=w(h,v,S,O),M=w(g,b,E,I);C[0]=x(h,S,k),C[1]=x(g,E,M),_[0]=A(h,S,k),_[1]=A(g,E,M)}function c(h,g,v,b,S,E,C,_,T){var w=y.min,O=y.max,I=Math.abs(S-E);if(I%d<1e-4&&I>1e-4){_[0]=h-v,_[1]=g-b,T[0]=h+v,T[1]=g+b;return}if(u[0]=p(S)*v+h,u[1]=m(S)*b+g,a[0]=p(E)*v+h,a[1]=m(E)*b+g,w(_,u,a),O(T,u,a),S=S%d,S<0&&(S=S+d),E=E%d,E<0&&(E=E+d),S>E&&!C?E+=d:S<E&&C&&(S+=d),C){var k=E;E=S,S=k}for(var M=0;M<E;M+=Math.PI/2)M>S&&(i[0]=p(M)*v+h,i[1]=m(M)*b+g,w(_,i,_),O(T,i,T))}L.fromPoints=t,L.fromLine=s,L.fromCubic=n,L.fromQuadratic=o,L.fromArc=c},"4xFK":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},"56O1":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("Uc92")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="EyeOutlined";var i=A.forwardRef(a);L.default=i},"56rv":function(R,L,r){var y=r("IwbS"),f=r("x3X8"),x=f.getDefaultLabel;function A(p,d,u,a,i,t,s){var e=u.getModel("label"),l=u.getModel("emphasis.label");y.setLabelStyle(p,d,e,l,{labelFetcher:i,labelDataIndex:t,defaultText:x(i.getData(),t),isRectText:!0,autoColor:a}),m(p),m(d)}function m(p,d){p.textPosition==="outside"&&(p.textPosition=d)}L.setLabel=A},"59Ip":function(R,L,r){var y=r("Sj9i");function f(x,A,m,p,d,u,a,i,t,s,e){if(t===0)return!1;var l=t;if(e>A+l&&e>p+l&&e>u+l&&e>i+l||e<A-l&&e<p-l&&e<u-l&&e<i-l||s>x+l&&s>m+l&&s>d+l&&s>a+l||s<x-l&&s<m-l&&s<d-l&&s<a-l)return!1;var n=y.cubicProjectPoint(x,A,m,p,d,u,a,i,s,e,null);return n<=l/2}L.containStroke=f},"5Dmo":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("5YgA"),A=r.n(x)},"5GOC":function(R,L,r){"use strict";var y=r("cIOH"),f=r("b56q"),x=r("15/o")},"5GhG":function(R,L,r){var y=r("5GtS"),f=r("bYtY"),x=r("L0Ub"),A=x.getDimensionTypeByAxis,m=r("D5nY"),p=m.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(u,a){var i,t=a.getComponent("xAxis",this.get("xAxisIndex")),s=a.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),l=s.get("type"),n;e==="category"?(u.layout="horizontal",i=t.getOrdinalMeta(),n=!0):l==="category"?(u.layout="vertical",i=s.getOrdinalMeta(),n=!0):u.layout=u.layout||"horizontal";var o=["x","y"],c=u.layout==="horizontal"?0:1,h=this._baseAxisDim=o[c],g=o[1-c],v=[t,s],b=v[c].get("type"),S=v[1-c].get("type"),E=u.data;if(E&&n){var C=[];f.each(E,function(w,O){var I;w.value&&f.isArray(w.value)?(I=w.value.slice(),w.value.unshift(O)):f.isArray(w)?(I=w.slice(),w.unshift(O)):I=w,C.push(I)}),u.data=C}var _=this.defaultValueDimensions,T=[{name:h,type:A(b),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:A(S),dimsDef:_.slice()}];return y(this,{coordDimensions:T,dimensionsCount:_.length+1,encodeDefaulter:f.curry(p,T,this)})},getBaseAxis:function(){var u=this._baseAxisDim;return this.ecModel.getComponent(u+"Axis",this.get(u+"AxisIndex")).axis}};L.seriesModelMixin=d},"5GtS":function(R,L,r){var y=r("sdST"),f=r("YXkt"),x=r("bYtY"),A=x.extend,m=x.isArray;function p(d,u,a){u=m(u)&&{coordDimensions:u}||A({},u);var i=d.getSource(),t=y(i,u),s=new f(t,d);return s.initData(i,a),s}R.exports=p},"5Hur":function(R,L,r){var y=r("4NO4"),f=y.makeInner,x=y.normalizeToArray,A=f();function m(d,u){for(var a=d.length,i=0;i<a;i++)if(d[i].length>u)return d[i];return d[a-1]}var p={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(d,u,a){u=u||this;var i=A(u),t=i.colorIdx||0,s=i.colorNameMap=i.colorNameMap||{};if(s.hasOwnProperty(d))return s[d];var e=x(this.get("color",!0)),l=this.get("colorLayer",!0),n=a==null||!l?e:m(l,a);if(n=n||e,!n||!n.length)return;var o=n[t];return d&&(s[d]=o),i.colorIdx=(t+1)%n.length,o}};R.exports=p},"5NDa":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("OnYD"),A=r.n(x),m=r("+L6B")},"5NHt":function(R,L,r){r("aTJb"),r("OlYY"),r("fc+c"),r("N5BQ"),r("IyUQ"),r("LBfv"),r("noeP")},"5OYt":function(R,L,r){"use strict";var y=r("J4zp"),f=r.n(y),x=r("q1tI"),A=r.n(x),m=r("ACnJ");function p(){var d=Object(x.useState)({}),u=f()(d,2),a=u[0],i=u[1];return Object(x.useEffect)(function(){var t=m.a.subscribe(function(s){i(s)});return function(){return m.a.unsubscribe(t)}},[]),a}L.a=p},"5RzL":function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r.n(e),n=r("1OyB"),o=r("vuIU"),c=r("Ji7U"),h=r("LK+K"),g=r("KQm4"),v=r("U8pU"),b=r("ODXe"),S=r("VTBJ"),E=r("rePB"),C=r("Ff2n"),_=r("4IlW"),T=r("TSYQ"),w=r.n(T),O=r("6cGi"),I=r("bX4T"),k=r("8XRh"),M=function(Sr){var Tn=Sr.className,pr=Sr.customizeIcon,Dr=Sr.customizeIconProps,Wr=Sr.onMouseDown,ln=Sr.onClick,Pn=Sr.children,_t;return typeof pr=="function"?_t=pr(Dr):_t=pr,e.createElement("span",{className:Tn,onMouseDown:function(Lr){Lr.preventDefault(),Wr&&Wr(Lr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},_t!==void 0?_t:e.createElement("span",{className:w()(Tn.split(/\s+/).map(function(_r){return"".concat(_r,"-icon")}))},Pn))},U=M,P=r("c+Xe"),X=function(Sr,Tn){var pr=Sr.prefixCls,Dr=Sr.id,Wr=Sr.inputElement,ln=Sr.disabled,Pn=Sr.tabIndex,_t=Sr.autoFocus,_r=Sr.autoComplete,Lr=Sr.editable,en=Sr.accessibilityIndex,bn=Sr.value,On=Sr.maxLength,yn=Sr.onKeyDown,qn=Sr.onMouseDown,Hn=Sr.onChange,pi=Sr.onPaste,Fi=Sr.onCompositionStart,wi=Sr.onCompositionEnd,Oi=Sr.open,zi=Sr.attrs,ea=Wr||e.createElement("input",null),Gi=ea,Wi=Gi.ref,Hi=Gi.props,Ji=Hi.onKeyDown,ca=Hi.onChange,Ca=Hi.onMouseDown,na=Hi.onCompositionStart,Pa=Hi.onCompositionEnd,La=Hi.style;return ea=e.cloneElement(ea,Object(S.a)(Object(S.a)({id:Dr,ref:Object(P.a)(Tn,Wi),disabled:ln,tabIndex:Pn,autoComplete:_r||"off",type:"search",autoFocus:_t,className:"".concat(pr,"-selection-search-input"),style:Object(S.a)(Object(S.a)({},La),{},{opacity:Lr?null:0}),role:"combobox","aria-expanded":Oi,"aria-haspopup":"listbox","aria-owns":"".concat(Dr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Dr,"_list"),"aria-activedescendant":"".concat(Dr,"_list_").concat(en)},zi),{},{value:Lr?bn:"",maxLength:On,readOnly:!Lr,unselectable:Lr?null:"on",onKeyDown:function(ga){yn(ga),Ji&&Ji(ga)},onMouseDown:function(ga){qn(ga),Ca&&Ca(ga)},onChange:function(ga){Hn(ga),ca&&ca(ga)},onCompositionStart:function(ga){Fi(ga),na&&na(ga)},onCompositionEnd:function(ga){wi(ga),Pa&&Pa(ga)},onPaste:pi})),ea},F=e.forwardRef(X);F.displayName="Input";var j=F;function K(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function z(Ir,Sr){var Tn=Sr.labelInValue,pr=Sr.combobox;if(Ir===void 0||Ir===""&&pr)return[];var Dr=Array.isArray(Ir)?Ir:[Ir];return Tn?Dr.map(function(Wr){var ln=Wr.key,Pn=Wr.value;return Pn!==void 0?Pn:ln}):Dr}function V(Ir,Sr){var Tn=Sr.optionLabelProp,pr=Sr.labelInValue,Dr=Sr.prevValue,Wr=Sr.options,ln=Sr.getLabeledValue,Pn=Ir;return pr&&(Pn=Pn.map(function(_t){return ln(_t,{options:Wr,prevValue:Dr,labelInValue:pr,optionLabelProp:Tn})})),Pn}function Q(Ir,Sr){var Tn=Object(g.a)(Sr),pr;for(pr=Ir.length-1;pr>=0&&Ir[pr].disabled;pr-=1);var Dr=null;return pr!==-1&&(Dr=Tn[pr],Tn.splice(pr,1)),{values:Tn,removedValue:Dr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,ee=G,se=0;function ye(){var Ir;return ee?(Ir=se,se+=1):Ir="TEST_OR_SSR",Ir}function he(Ir,Sr){ee?e.useLayoutEffect(Ir,Sr):e.useEffect(Ir,Sr)}var ke="__RC_SELECT_MAX_REST_COUNT__",Pe=function(Sr){var Tn=Sr.id,pr=Sr.prefixCls,Dr=Sr.values,Wr=Sr.open,ln=Sr.searchValue,Pn=Sr.inputRef,_t=Sr.placeholder,_r=Sr.disabled,Lr=Sr.mode,en=Sr.showSearch,bn=Sr.autoFocus,On=Sr.autoComplete,yn=Sr.accessibilityIndex,qn=Sr.tabIndex,Hn=Sr.removeIcon,pi=Sr.choiceTransitionName,Fi=Sr.maxTagCount,wi=Sr.maxTagTextLength,Oi=Sr.maxTagPlaceholder,zi=Oi===void 0?function(to){return"+ ".concat(to.length," ...")}:Oi,ea=Sr.tagRender,Gi=Sr.onSelect,Wi=Sr.onInputChange,Hi=Sr.onInputPaste,Ji=Sr.onInputKeyDown,ca=Sr.onInputMouseDown,Ca=Sr.onInputCompositionStart,na=Sr.onInputCompositionEnd,Pa=Object(e.useState)(!1),La=Object(b.a)(Pa,2),va=La[0],ga=La[1],Oa=e.useRef(null),Aa=Object(e.useState)(0),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=Object(e.useState)(!1),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Wr||Lr==="tags"?ln:"",To=Lr==="tags"||en&&(Wr||oo);he(function(){Va(Oa.current.scrollWidth)},[mo]);var ao=Dr,So;typeof Fi=="number"&&(So=Dr.length-Fi,ao=Dr.slice(0,Fi)),typeof wi=="number"&&(ao=ao.map(function(to){var Jo=to.label,Uo=Object(C.a)(to,["label"]),wo=Jo;if(typeof Jo=="string"||typeof Jo=="number"){var ts=String(wo);ts.length>wi&&(wo="".concat(ts.slice(0,wi),"..."))}return Object(S.a)(Object(S.a)({},Uo),{},{label:wo})})),So>0&&ao.push({key:ke,label:typeof zi=="function"?zi(Dr.slice(Fi)):zi});var bo=e.createElement(k.a,{component:!1,keys:ao,motionName:pi,motionAppear:va},function(to){var Jo=to.key,Uo=to.label,wo=to.value,ts=to.disabled,Ia=to.className,Oo=to.style,Io=Jo||wo,os=!_r&&Jo!==ke&&!ts,xo=function(_o){_o.preventDefault(),_o.stopPropagation()},rs=function(_o){_o&&_o.stopPropagation(),Gi(wo,{selected:!1})};return typeof ea=="function"?e.createElement("span",{key:Io,onMouseDown:xo,className:Ia,style:Oo},ea({label:Uo,value:wo,disabled:ts,closable:os,onClose:rs})):e.createElement("span",{key:Io,className:w()(Ia,"".concat(pr,"-selection-item"),Object(E.a)({},"".concat(pr,"-selection-item-disabled"),ts)),style:Oo},e.createElement("span",{className:"".concat(pr,"-selection-item-content")},Uo),os&&e.createElement(U,{className:"".concat(pr,"-selection-item-remove"),onMouseDown:xo,onClick:rs,customizeIcon:Hn},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(pr,"-selection-search"),style:{width:_a},onFocus:function(){Qo(!0)},onBlur:function(){Qo(!1)}},e.createElement(j,{ref:Pn,open:Wr,prefixCls:pr,id:Tn,inputElement:null,disabled:_r,autoFocus:bn,autoComplete:On,editable:To,accessibilityIndex:yn,value:mo,onKeyDown:Ji,onMouseDown:ca,onChange:Wi,onPaste:Hi,onCompositionStart:Ca,onCompositionEnd:na,tabIndex:qn,attrs:Object(I.a)(Sr,!0)}),e.createElement("span",{ref:Oa,className:"".concat(pr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Dr.length&&!mo&&e.createElement("span",{className:"".concat(pr,"-selection-placeholder")},_t))},Ue=Pe,$e=function(Sr){var Tn=Sr.inputElement,pr=Sr.prefixCls,Dr=Sr.id,Wr=Sr.inputRef,ln=Sr.disabled,Pn=Sr.autoFocus,_t=Sr.autoComplete,_r=Sr.accessibilityIndex,Lr=Sr.mode,en=Sr.open,bn=Sr.values,On=Sr.placeholder,yn=Sr.tabIndex,qn=Sr.showSearch,Hn=Sr.searchValue,pi=Sr.activeValue,Fi=Sr.maxLength,wi=Sr.onInputKeyDown,Oi=Sr.onInputMouseDown,zi=Sr.onInputChange,ea=Sr.onInputPaste,Gi=Sr.onInputCompositionStart,Wi=Sr.onInputCompositionEnd,Hi=e.useState(!1),Ji=Object(b.a)(Hi,2),ca=Ji[0],Ca=Ji[1],na=Lr==="combobox",Pa=na||qn,La=bn[0],va=Hn||"";na&&pi&&!ca&&(va=pi),e.useEffect(function(){na&&Ca(!1)},[na,pi]);var ga=Lr!=="combobox"&&!en?!1:!!va,Oa=La&&(typeof La.label=="string"||typeof La.label=="number")?La.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(pr,"-selection-search")},e.createElement(j,{ref:Wr,prefixCls:pr,id:Dr,open:en,inputElement:Tn,disabled:ln,autoFocus:Pn,autoComplete:_t,editable:Pa,accessibilityIndex:_r,value:va,onKeyDown:wi,onMouseDown:Oi,onChange:function(Xa){Ca(!0),zi(Xa)},onPaste:ea,onCompositionStart:Gi,onCompositionEnd:Wi,tabIndex:yn,attrs:Object(I.a)(Sr,!0),maxLength:na?Fi:void 0})),!na&&La&&!ga&&e.createElement("span",{className:"".concat(pr,"-selection-item"),title:Oa},La.label),!La&&!ga&&e.createElement("span",{className:"".concat(pr,"-selection-placeholder")},On))},Ge=$e;function ht(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Sr=e.useRef(null),Tn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Tn.current)}},[]);function pr(Dr){(Dr||Sr.current===null)&&(Sr.current=Dr),window.clearTimeout(Tn.current),Tn.current=window.setTimeout(function(){Sr.current=null},Ir)}return[function(){return Sr.current},pr]}var Fe=function(Sr,Tn){var pr=Object(e.useRef)(null),Dr=Object(e.useRef)(!1),Wr=Sr.prefixCls,ln=Sr.multiple,Pn=Sr.open,_t=Sr.mode,_r=Sr.showSearch,Lr=Sr.tokenWithEnter,en=Sr.onSearch,bn=Sr.onSearchSubmit,On=Sr.onToggleOpen,yn=Sr.onInputKeyDown,qn=Sr.domRef;e.useImperativeHandle(Tn,function(){return{focus:function(){pr.current.focus()},blur:function(){pr.current.blur()}}});var Hn=ht(0),pi=Object(b.a)(Hn,2),Fi=pi[0],wi=pi[1],Oi=function(ga){var Oa=ga.which;(Oa===_.a.UP||Oa===_.a.DOWN)&&ga.preventDefault(),yn&&yn(ga),Oa===_.a.ENTER&&_t==="tags"&&!Dr.current&&!Pn&&bn(ga.target.value),[_.a.SHIFT,_.a.TAB,_.a.BACKSPACE,_.a.ESC].includes(Oa)||On(!0)},zi=function(){wi(!0)},ea=Object(e.useRef)(null),Gi=function(ga){en(ga,!0,Dr.current)!==!1&&On(!0)},Wi=function(){Dr.current=!0},Hi=function(){Dr.current=!1},Ji=function(ga){var Oa=ga.target.value;if(Lr&&ea.current&&/[\r\n]/.test(ea.current)){var Aa=ea.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Oa=Oa.replace(Aa,ea.current)}ea.current=null,Gi(Oa)},ca=function(ga){var Oa=ga.clipboardData,Aa=Oa.getData("text");ea.current=Aa},Ca=function(ga){var Oa=ga.target;if(Oa!==pr.current){var Aa=document.body.style.msTouchAction!==void 0;Aa?setTimeout(function(){pr.current.focus()}):pr.current.focus()}},na=function(ga){var Oa=Fi();ga.target!==pr.current&&!Oa&&ga.preventDefault(),(_t!=="combobox"&&(!_r||!Oa)||!Pn)&&(Pn&&en("",!0,!1),On())},Pa={inputRef:pr,onInputKeyDown:Oi,onInputMouseDown:zi,onInputChange:Ji,onInputPaste:ca,onInputCompositionStart:Wi,onInputCompositionEnd:Hi},La=ln?e.createElement(Ue,Object.assign({},Sr,Pa)):e.createElement(Ge,Object.assign({},Sr,Pa));return e.createElement("div",{ref:qn,className:"".concat(Wr,"-selector"),onClick:Ca,onMouseDown:na},La)},oe=e.forwardRef(Fe);oe.displayName="Selector";var rt=oe,fe=r("uciX"),J=function(Sr){var Tn=typeof Sr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1}}}},Y=function(Sr,Tn){var pr=Sr.prefixCls,Dr=Sr.disabled,Wr=Sr.visible,ln=Sr.children,Pn=Sr.popupElement,_t=Sr.containerWidth,_r=Sr.animation,Lr=Sr.transitionName,en=Sr.dropdownStyle,bn=Sr.dropdownClassName,On=Sr.direction,yn=On===void 0?"ltr":On,qn=Sr.dropdownMatchSelectWidth,Hn=qn===void 0?!0:qn,pi=Sr.dropdownRender,Fi=Sr.dropdownAlign,wi=Sr.getPopupContainer,Oi=Sr.empty,zi=Sr.getTriggerDOMNode,ea=Object(C.a)(Sr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Gi="".concat(pr,"-dropdown"),Wi=Pn;pi&&(Wi=pi(Pn));var Hi=e.useMemo(function(){return J(Hn)},[Hn]),Ji=_r?"".concat(Gi,"-").concat(_r):Lr,ca=e.useRef(null);e.useImperativeHandle(Tn,function(){return{getPopupElement:function(){return ca.current}}});var Ca=Object(S.a)({minWidth:_t},en);return typeof Hn=="number"?Ca.width=Hn:Hn&&(Ca.width=_t),e.createElement(fe.a,Object.assign({},ea,{showAction:[],hideAction:[],popupPlacement:yn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Hi,prefixCls:Gi,popupTransitionName:Ji,popup:e.createElement("div",{ref:ca},Wi),popupAlign:Fi,popupVisible:Wr,getPopupContainer:wi,popupClassName:w()(bn,Object(E.a)({},"".concat(Gi,"-empty"),Oi)),popupStyle:Ca,getTriggerDOMNode:zi}),ln)},$=e.forwardRef(Y);$.displayName="SelectTrigger";var de=$,we="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Sr=e.useState(!1),Tn=Object(b.a)(Sr,2),pr=Tn[0],Dr=Tn[1],Wr=e.useRef(null),ln=function(){window.clearTimeout(Wr.current)};e.useEffect(function(){return ln},[]);var Pn=function(_r,Lr){ln(),Wr.current=window.setTimeout(function(){Dr(_r),Lr&&Lr()},Ir)};return[pr,Pn,ln]}var Se=r("T5bk"),le=r("Kwbf");function pe(Ir,Sr){var Tn=Ir.key,pr;return"value"in Ir&&(pr=Ir.value),Tn!=null?Tn:pr!==void 0?pr:"rc-index-key-".concat(Sr)}function _e(Ir){var Sr=[];function Tn(pr,Dr){pr.forEach(function(Wr){Dr||!("options"in Wr)?Sr.push({key:pe(Wr,Sr.length),groupOption:Dr,data:Wr}):(Sr.push({key:pe(Wr,Sr.length),group:!0,data:Wr}),Tn(Wr.options,!0))})}return Tn(Ir,!1),Sr}function tt(Ir){var Sr=Object(S.a)({},Ir);return"props"in Sr||Object.defineProperty(Sr,"props",{get:function(){return Object(le.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Sr}}),Sr}function gt(Ir,Sr){var Tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=Tn.prevValueOptions,Dr=pr===void 0?[]:pr,Wr=new Map;return Sr.forEach(function(ln){if(!ln.group){var Pn=ln.data;Wr.set(Pn.value,Pn)}}),Ir.map(function(ln){var Pn=Wr.get(ln);return Pn||(Pn=Object(S.a)({},Dr.find(function(_t){return _t._INTERNAL_OPTION_VALUE_===ln}))),tt(Pn)})}var ct=function(Sr,Tn){var pr=Tn.options,Dr=Tn.prevValue,Wr=Tn.labelInValue,ln=Tn.optionLabelProp,Pn=gt([Sr],pr)[0],_t={value:Sr},_r,Lr=K(Dr);return Wr&&(_r=Lr.find(function(en){return Object(v.a)(en)==="object"&&"value"in en?en.value===Sr:en.key===Sr})),_r&&Object(v.a)(_r)==="object"&&"label"in _r?(_t.label=_r.label,Pn&&typeof _r.label=="string"&&typeof Pn[ln]=="string"&&_r.label.trim()!==Pn[ln].trim()&&Object(le.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Pn&&ln in Pn?_t.label=Pn[ln]:_t.label=Sr,_t.key=_t.value,_t};function je(Ir){return K(Ir).join("")}function Zt(Ir){return function(Sr,Tn){var pr=Sr.toLowerCase();if("options"in Tn)return je(Tn.label).toLowerCase().includes(pr);var Dr=Tn[Ir],Wr=je(Dr).toLowerCase();return Wr.includes(pr)}}function ut(Ir,Sr,Tn){var pr=Tn.optionFilterProp,Dr=Tn.filterOption,Wr=[],ln;return Dr===!1?Object(g.a)(Sr):(typeof Dr=="function"?ln=Dr:ln=Zt(pr),Sr.forEach(function(Pn){if("options"in Pn){var _t=ln(Ir,Pn);if(_t)Wr.push(Pn);else{var _r=Pn.options.filter(function(Lr){return ln(Ir,Lr)});_r.length&&Wr.push(Object(S.a)(Object(S.a)({},Pn),{},{options:_r}))}return}ln(Ir,tt(Pn))&&Wr.push(Pn)}),Wr)}function Ht(Ir,Sr){if(!Sr||!Sr.length)return null;var Tn=!1;function pr(Wr,ln){var Pn=Object(Se.a)(ln),_t=Pn[0],_r=Pn.slice(1);if(!_t)return[Wr];var Lr=Wr.split(_t);return Tn=Tn||Lr.length>1,Lr.reduce(function(en,bn){return[].concat(Object(g.a)(en),Object(g.a)(pr(bn,_r)))},[]).filter(function(en){return en})}var Dr=pr(Ir,Sr);return Tn?Dr:null}function dr(Ir,Sr){var Tn=gt([Ir],Sr)[0];return Tn.disabled}function Vt(Ir,Sr,Tn,pr){var Dr=K(Sr).slice().sort(),Wr=Object(g.a)(Ir),ln=new Set;return Ir.forEach(function(Pn){Pn.options?Pn.options.forEach(function(_t){ln.add(_t.value)}):ln.add(Pn.value)}),Dr.forEach(function(Pn){var _t=pr?Pn.value:Pn;if(!ln.has(_t)){var _r;Wr.push(pr?(_r={},Object(E.a)(_r,Tn,Pn.label),Object(E.a)(_r,"value",_t),_r):{value:_t})}}),Wr}function Mt(Ir,Sr,Tn){var pr=e.useRef(null);pr.current={elements:Ir.filter(function(Dr){return Dr}),open:Sr,triggerOpen:Tn},e.useEffect(function(){function Dr(Wr){var ln=Wr.target;pr.current.open&&pr.current.elements.every(function(Pn){return!Pn.contains(ln)&&Pn!==ln})&&pr.current.triggerOpen(!1)}return window.addEventListener("mousedown",Dr),function(){return window.removeEventListener("mousedown",Dr)}},[])}function Gt(Ir){var Sr=e.useRef(Ir),Tn=e.useMemo(function(){var pr=new Map;Sr.current.forEach(function(Wr){var ln=Wr.value,Pn=Wr.label;ln!==Pn&&pr.set(ln,Pn)});var Dr=Ir.map(function(Wr){var ln=pr.get(Wr.value);return Wr.value===Wr.label&&ln?Object(S.a)(Object(S.a)({},Wr),{},{label:ln}):Wr});return Sr.current=Dr,Dr},[Ir]);return Tn}function Ve(Ir,Sr){var Tn=e.useRef(null),pr=e.useMemo(function(){var Wr=new Map;return Sr.forEach(function(ln){var Pn=ln.data.value;Wr.set(Pn,ln)}),Wr},[Ir,Sr]);Tn.current=pr;var Dr=function(ln){return ln.map(function(Pn){return Tn.current.get(Pn)}).filter(Boolean)};return Dr}var me=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function te(Ir){var Sr=Ir.prefixCls,Tn=Ir.components.optionList,pr=Ir.convertChildrenToData,Dr=Ir.flattenOptions,Wr=Ir.getLabeledValue,ln=Ir.filterOptions,Pn=Ir.isValueDisabled,_t=Ir.findValueOption,_r=Ir.warningProps,Lr=Ir.fillOptionsWithMissingValue,en=Ir.omitDOMProps;function bn(yn,qn){var Hn,pi=yn.prefixCls,Fi=pi===void 0?Sr:pi,wi=yn.className,Oi=yn.id,zi=yn.open,ea=yn.defaultOpen,Gi=yn.options,Wi=yn.children,Hi=yn.mode,Ji=yn.value,ca=yn.defaultValue,Ca=yn.labelInValue,na=yn.showSearch,Pa=yn.inputValue,La=yn.searchValue,va=yn.filterOption,ga=yn.filterSort,Oa=yn.optionFilterProp,Aa=Oa===void 0?"value":Oa,Xa=yn.autoClearSearchValue,_a=Xa===void 0?!0:Xa,Va=yn.onSearch,Bi=yn.allowClear,io=yn.clearIcon,oo=yn.showArrow,Qo=yn.inputIcon,mo=yn.menuItemSelectedIcon,To=yn.disabled,ao=yn.loading,So=yn.defaultActiveFirstOption,bo=yn.notFoundContent,to=bo===void 0?"Not Found":bo,Jo=yn.optionLabelProp,Uo=yn.backfill,wo=yn.getInputElement,ts=yn.getPopupContainer,Ia=yn.listHeight,Oo=Ia===void 0?200:Ia,Io=yn.listItemHeight,os=Io===void 0?20:Io,xo=yn.animation,rs=yn.transitionName,Ho=yn.virtual,_o=yn.dropdownStyle,uo=yn.dropdownClassName,Ha=yn.dropdownMatchSelectWidth,vt=yn.dropdownRender,Er=yn.dropdownAlign,qr=yn.showAction,Gr=qr===void 0?[]:qr,Qn=yn.direction,un=yn.tokenSeparators,zr=yn.tagRender,ni=yn.onPopupScroll,rn=yn.onDropdownVisibleChange,Kn=yn.onFocus,li=yn.onBlur,ci=yn.onKeyUp,si=yn.onKeyDown,Ci=yn.onMouseDown,mi=yn.onChange,yi=yn.onSelect,Ni=yn.onDeselect,ia=yn.onClear,Ki=yn.internalProps,fa=Ki===void 0?{}:Ki,Ya=Object(C.a)(yn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),xa=fa.mark===we,wa=en?en(Ya):Ya;me.forEach(function(jo){delete wa[jo]});var Da=Object(e.useRef)(null),ja=Object(e.useRef)(null),ko=Object(e.useRef)(null),ro=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(un||[]).some(function(jo){return[`
`,`\r
`].includes(jo)})},[un]),Ea=Ce(),Fa=Object(b.a)(Ea,3),Ka=Fa[0],lo=Fa[1],so=Fa[2],Co=Object(e.useState)(),Lo=Object(b.a)(Co,2),is=Lo[0],cs=Lo[1];Object(e.useEffect)(function(){cs("rc_select_".concat(ye()))},[]);var Rs=Oi||is,Ko=Jo;Ko===void 0&&(Ko=Gi?"label":"children");var as=Hi==="combobox"?!1:Ca,co=Hi==="tags"||Hi==="multiple",Ao=na!==void 0?na:co||Hi==="combobox",$a=Object(e.useRef)(null);e.useImperativeHandle(qn,function(){return{focus:ko.current.focus,blur:ko.current.blur}});var ss=Object(O.a)(ca,{value:Ji}),_s=Object(b.a)(ss,2),Fo=_s[0],il=_s[1],Eo=Object(e.useMemo)(function(){return z(Fo,{labelInValue:as,combobox:Hi==="combobox"})},[Fo,as]),zo=Object(e.useMemo)(function(){return new Set(Eo)},[Eo]),Fs=Object(e.useState)(null),ms=Object(b.a)(Fs,2),hs=ms[0],An=ms[1],Ns=Object(e.useState)(""),Ll=Object(b.a)(Ns,2),el=Ll[0],Gs=Ll[1],ds=el;Hi==="combobox"&&Fo!==void 0?ds=Fo:La!==void 0?ds=La:Pa&&(ds=Pa);var ks=Object(e.useMemo)(function(){var jo=Gi;return jo===void 0&&(jo=pr(Wi)),Hi==="tags"&&Lr&&(jo=Lr(jo,Fo,Ko,Ca)),jo||[]},[Gi,Wi,Hi,Fo]),Qs=Object(e.useMemo)(function(){return Dr(ks,yn)},[ks]),tl=Ve(Eo,Qs),xs=Object(e.useMemo)(function(){if(!ds||!Ao)return Object(g.a)(ks);var jo=ln(ds,ks,{optionFilterProp:Aa,filterOption:Hi==="combobox"&&va===void 0?function(){return!0}:va});return Hi==="tags"&&jo.every(function(yo){return yo[Aa]!==ds})&&jo.unshift({value:ds,label:ds,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(jo)?Object(g.a)(jo).sort(ga):jo},[ks,ds,Hi,Ao,ga]),Bs=Object(e.useMemo)(function(){return Dr(xs,yn)},[xs]);Object(e.useEffect)(function(){ro.current&&ro.current.scrollTo&&ro.current.scrollTo(0)},[ds]);var al=Object(e.useMemo)(function(){var jo=Eo.map(function(yo){var qo=tl([yo]),ps=Wr(yo,{options:qo,prevValue:Fo,labelInValue:as,optionLabelProp:Ko});return Object(S.a)(Object(S.a)({},ps),{},{disabled:Pn(yo,qo)})});return!Hi&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[Fo,ks,Hi]);al=Gt(al);var Js=function(yo,qo,ps){var Is=tl([yo]),es=_t([yo],Is)[0];if(!fa.skipTriggerSelect){var Ls=as?Wr(yo,{options:Is,prevValue:Fo,labelInValue:as,optionLabelProp:Ko}):yo;qo&&yi?yi(Ls,es):!qo&&Ni&&Ni(Ls,es)}xa&&(qo&&fa.onRawSelect?fa.onRawSelect(yo,es,ps):!qo&&fa.onRawDeselect&&fa.onRawDeselect(yo,es,ps))},Vo=Object(e.useState)([]),No=Object(b.a)(Vo,2),fs=No[0],Ds=No[1],go=function(yo){if(xa&&fa.skipTriggerChange)return;var qo=tl(yo),ps=V(Array.from(yo),{labelInValue:as,options:qo,getLabeledValue:Wr,prevValue:Fo,optionLabelProp:Ko}),Is=co?ps:ps[0];if(mi&&(Eo.length!==0||ps.length!==0)){var es=_t(yo,qo,{prevValueOptions:fs});Ds(es.map(function(Ls,Ps){var ml=Object(S.a)({},Ls);return Object.defineProperty(ml,"_INTERNAL_OPTION_VALUE_",{get:function(){return yo[Ps]}}),ml})),mi(Is,co?es:es[0])}il(Is)},jt=function(yo,qo){var ps=qo.selected,Is=qo.source;if(To)return;var es;co?(es=new Set(Eo),ps?es.add(yo):es.delete(yo)):(es=new Set,es.add(yo)),(co||!co&&Array.from(Eo)[0]!==yo)&&go(Array.from(es)),Js(yo,!co||ps,Is),Hi==="combobox"?(Gs(String(yo)),An("")):(!co||_a)&&(Gs(""),An(""))},or=function(yo,qo){jt(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"option"}))},In=function(yo,qo){jt(yo,Object(S.a)(Object(S.a)({},qo),{},{source:"selection"}))},hi=Hi==="combobox"&&wo&&wo()||null,Nt=Object(O.a)(void 0,{defaultValue:ea,value:zi}),ce=Object(b.a)(Nt,2),xe=ce[0],Ie=ce[1],Je=xe,Dt=!to&&!xs.length;(To||Dt&&Je&&Hi==="combobox")&&(Je=!1);var lr=Dt?!1:Je,Xr=function(yo){var qo=yo!==void 0?yo:!Je;xe!==qo&&!To&&(Ie(qo),rn&&rn(qo))};Mt([Da.current,ja.current&&ja.current.getPopupElement()],lr,Xr);var hn=function(yo,qo,ps){var Is=!0,es=yo;An(null);var Ls=ps?null:Ht(yo,un),Ps=Ls;if(Hi==="combobox")qo&&go([es]);else if(Ls){es="",Hi!=="tags"&&(Ps=Ls.map(function(Rl){var _l=Qs.find(function(Bl){var jl=Bl.data;return jl[Ko]===Rl});return _l?_l.data.value:null}).filter(function(Rl){return Rl!==null}));var ml=Array.from(new Set([].concat(Object(g.a)(Eo),Object(g.a)(Ps))));go(ml),ml.forEach(function(Rl){Js(Rl,!0,"input")}),Xr(!1),Is=!1}return Gs(es),Va&&ds!==es&&Va(es),Is},Nn=function(yo){var qo=Array.from(new Set([].concat(Object(g.a)(Eo),[yo])));go(qo),qo.forEach(function(ps){Js(ps,!0,"input")}),Gs("")};Object(e.useEffect)(function(){xe&&!!To&&Ie(!1)},[To]),Object(e.useEffect)(function(){!Je&&!co&&Hi!=="combobox"&&hn("",!1,!1)},[Je]);var ui=ht(),xi=Object(b.a)(ui,2),Ai=xi[0],Yi=xi[1],sa=function(yo){var qo=Ai(),ps=yo.which;if(!Je&&ps===_.a.ENTER&&Xr(!0),Yi(!!ds),ps===_.a.BACKSPACE&&!qo&&co&&!ds&&Eo.length){var Is=Q(al,Eo);Is.removedValue!==null&&(go(Is.values),Js(Is.removedValue,!1,"input"))}for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];if(Je&&ro.current){var ml;(ml=ro.current).onKeyDown.apply(ml,[yo].concat(Ls))}si&&si.apply(void 0,[yo].concat(Ls))},Ua=function(yo){for(var qo=arguments.length,ps=new Array(qo>1?qo-1:0),Is=1;Is<qo;Is++)ps[Is-1]=arguments[Is];if(Je&&ro.current){var es;(es=ro.current).onKeyUp.apply(es,[yo].concat(ps))}ci&&ci.apply(void 0,[yo].concat(ps))},no=Object(e.useRef)(!1),Wo=function(){lo(!0),To||(Kn&&!no.current&&Kn.apply(void 0,arguments),Gr.includes("focus")&&Xr(!0)),no.current=!0},Zo=function(){if(lo(!1,function(){no.current=!1,Xr(!1)}),To)return;ds&&(Hi==="tags"?(hn("",!1,!1),go(Array.from(new Set([].concat(Object(g.a)(Eo),[ds]))))):Hi==="multiple"&&Gs("")),li&&li.apply(void 0,arguments)},Bo=[];Object(e.useEffect)(function(){return function(){Bo.forEach(function(jo){return clearTimeout(jo)}),Bo.splice(0,Bo.length)}},[]);var Es=function(yo){var qo=yo.target,ps=ja.current&&ja.current.getPopupElement();if(ps&&ps.contains(qo)){var Is=setTimeout(function(){var ml=Bo.indexOf(Is);ml!==-1&&Bo.splice(ml,1),so(),ps.contains(document.activeElement)||ko.current.focus()});Bo.push(Is)}if(Ci){for(var es=arguments.length,Ls=new Array(es>1?es-1:0),Ps=1;Ps<es;Ps++)Ls[Ps-1]=arguments[Ps];Ci.apply(void 0,[yo].concat(Ls))}},As=Object(e.useState)(0),$o=Object(b.a)(As,2),Do=$o[0],vo=$o[1],Ms=So!==void 0?So:Hi!=="combobox",rl=function(yo,qo){var ps=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Is=ps.source,es=Is===void 0?"keyboard":Is;vo(qo),Uo&&Hi==="combobox"&&yo!==null&&es==="keyboard"&&An(String(yo))},gs=Object(e.useState)(null),Ra=Object(b.a)(gs,2),dl=Ra[0],fl=Ra[1],Us=Object(e.useState)({}),Os=Object(b.a)(Us,2),Xs=Os[1];function Ql(){Xs({})}he(function(){if(lr){var jo=Math.ceil(Da.current.offsetWidth);dl!==jo&&fl(jo)}},[lr]);var Ul=e.createElement(Tn,{ref:ro,prefixCls:Fi,id:Rs,open:Je,childrenAsData:!Gi,options:xs,flattenOptions:Bs,multiple:co,values:zo,height:Oo,itemHeight:os,onSelect:or,onToggleOpen:Xr,onActiveValue:rl,defaultActiveFirstOption:Ms,notFoundContent:to,onScroll:ni,searchValue:ds,menuItemSelectedIcon:mo,virtual:Ho!==!1&&Ha!==!1,onMouseEnter:Ql}),wl,Ts=function(){xa&&fa.onClear&&fa.onClear(),ia&&ia(),go([]),hn("",!1,!1)};!To&&Bi&&(Eo.length||ds)&&(wl=e.createElement(U,{className:"".concat(Fi,"-clear"),onMouseDown:Ts,customizeIcon:io},"\xD7"));var Ws=oo!==void 0?oo:ao||!co&&Hi!=="combobox",Tl;Ws&&(Tl=e.createElement(U,{className:w()("".concat(Fi,"-arrow"),Object(E.a)({},"".concat(Fi,"-arrow-loading"),ao)),customizeIcon:Qo,customizeIconProps:{loading:ao,searchValue:ds,open:Je,focused:Ka,showSearch:Ao}}));var pl=w()(Fi,wi,(Hn={},Object(E.a)(Hn,"".concat(Fi,"-focused"),Ka),Object(E.a)(Hn,"".concat(Fi,"-multiple"),co),Object(E.a)(Hn,"".concat(Fi,"-single"),!co),Object(E.a)(Hn,"".concat(Fi,"-allow-clear"),Bi),Object(E.a)(Hn,"".concat(Fi,"-show-arrow"),Ws),Object(E.a)(Hn,"".concat(Fi,"-disabled"),To),Object(E.a)(Hn,"".concat(Fi,"-loading"),ao),Object(E.a)(Hn,"".concat(Fi,"-open"),Je),Object(E.a)(Hn,"".concat(Fi,"-customize-input"),hi),Object(E.a)(Hn,"".concat(Fi,"-show-search"),Ao),Hn));return e.createElement("div",Object.assign({className:pl},wa,{ref:Da,onMouseDown:Es,onKeyDown:sa,onKeyUp:Ua,onFocus:Wo,onBlur:Zo}),Ka&&!Je&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Eo.join(", "))),e.createElement(de,{ref:ja,disabled:To,prefixCls:Fi,visible:lr,popupElement:Ul,containerWidth:dl,animation:xo,transitionName:rs,dropdownStyle:_o,dropdownClassName:uo,direction:Qn,dropdownMatchSelectWidth:Ha,dropdownRender:vt,dropdownAlign:Er,getPopupContainer:ts,empty:!ks.length,getTriggerDOMNode:function(){return $a.current}},e.createElement(rt,Object.assign({},yn,{domRef:$a,prefixCls:Fi,inputElement:hi,ref:ko,id:Rs,showSearch:Ao,mode:Hi,accessibilityIndex:Do,multiple:co,tagRender:zr,values:al,open:Je,onToggleOpen:Xr,searchValue:ds,activeValue:hs,onSearch:hn,onSearchSubmit:Nn,onSelect:In,tokenWithEnter:pa}))),Tl,wl)}var On=e.forwardRef(bn);return On}var Ze=r("Zm9Q"),Xe=r("JX7q"),ue=e.createContext(null),St=function(Sr){var Tn=Sr.prefixCls,pr=Sr.level,Dr=Sr.isStart,Wr=Sr.isEnd;if(!pr)return null;for(var ln="".concat(Tn,"-indent-unit"),Pn=[],_t=0;_t<pr;_t+=1){var _r;Pn.push(e.createElement("span",{key:_t,className:w()(ln,(_r={},Object(E.a)(_r,"".concat(ln,"-start"),Dr[_t]),Object(E.a)(_r,"".concat(ln,"-end"),Wr[_t]),_r))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(Tn,"-indent")},Pn)},Qt=St,dt="open",Jt="close",$t="---",tn=function(Ir){Object(c.a)(Tn,Ir);var Sr=Object(h.a)(Tn);function Tn(){var pr;return Object(n.a)(this,Tn),pr=Sr.apply(this,arguments),pr.state={dragNodeHighlight:!1},pr.onSelectorClick=function(Dr){var Wr=pr.props.context.onNodeClick;Wr(Dr,ur(pr.props)),pr.isSelectable()?pr.onSelect(Dr):pr.onCheck(Dr)},pr.onSelectorDoubleClick=function(Dr){var Wr=pr.props.context.onNodeDoubleClick;Wr(Dr,ur(pr.props))},pr.onSelect=function(Dr){if(pr.isDisabled())return;var Wr=pr.props.context.onNodeSelect;Dr.preventDefault(),Wr(Dr,ur(pr.props))},pr.onCheck=function(Dr){if(pr.isDisabled())return;var Wr=pr.props,ln=Wr.disableCheckbox,Pn=Wr.checked,_t=pr.props.context.onNodeCheck;if(!pr.isCheckable()||ln)return;Dr.preventDefault();var _r=!Pn;_t(Dr,ur(pr.props),_r)},pr.onMouseEnter=function(Dr){var Wr=pr.props.context.onNodeMouseEnter;Wr(Dr,ur(pr.props))},pr.onMouseLeave=function(Dr){var Wr=pr.props.context.onNodeMouseLeave;Wr(Dr,ur(pr.props))},pr.onContextMenu=function(Dr){var Wr=pr.props.context.onNodeContextMenu;Wr(Dr,ur(pr.props))},pr.onDragStart=function(Dr){var Wr=pr.props.context.onNodeDragStart;Dr.stopPropagation(),pr.setState({dragNodeHighlight:!0}),Wr(Dr,Object(Xe.a)(pr));try{Dr.dataTransfer.setData("text/plain","")}catch(ln){}},pr.onDragEnter=function(Dr){var Wr=pr.props.context.onNodeDragEnter;Dr.preventDefault(),Dr.stopPropagation(),Wr(Dr,Object(Xe.a)(pr))},pr.onDragOver=function(Dr){var Wr=pr.props.context.onNodeDragOver;Dr.preventDefault(),Dr.stopPropagation(),Wr(Dr,Object(Xe.a)(pr))},pr.onDragLeave=function(Dr){var Wr=pr.props.context.onNodeDragLeave;Dr.stopPropagation(),Wr(Dr,Object(Xe.a)(pr))},pr.onDragEnd=function(Dr){var Wr=pr.props.context.onNodeDragEnd;Dr.stopPropagation(),pr.setState({dragNodeHighlight:!1}),Wr(Dr,Object(Xe.a)(pr))},pr.onDrop=function(Dr){var Wr=pr.props.context.onNodeDrop;Dr.preventDefault(),Dr.stopPropagation(),pr.setState({dragNodeHighlight:!1}),Wr(Dr,Object(Xe.a)(pr))},pr.onExpand=function(Dr){var Wr=pr.props.context.onNodeExpand;Wr(Dr,ur(pr.props))},pr.setSelectHandle=function(Dr){pr.selectHandle=Dr},pr.getNodeState=function(){var Dr=pr.props.expanded;return pr.isLeaf()?null:Dr?dt:Jt},pr.hasChildren=function(){var Dr=pr.props.eventKey,Wr=pr.props.context.keyEntities,ln=Wr[Dr]||{},Pn=ln.children;return!!(Pn||[]).length},pr.isLeaf=function(){var Dr=pr.props,Wr=Dr.isLeaf,ln=Dr.loaded,Pn=pr.props.context.loadData,_t=pr.hasChildren();return Wr===!1?!1:Wr||!Pn&&!_t||Pn&&ln&&!_t},pr.isDisabled=function(){var Dr=pr.props.disabled,Wr=pr.props.context.disabled;return!!(Wr||Dr)},pr.isCheckable=function(){var Dr=pr.props.checkable,Wr=pr.props.context.checkable;return!Wr||Dr===!1?!1:Wr},pr.syncLoadData=function(Dr){var Wr=Dr.expanded,ln=Dr.loading,Pn=Dr.loaded,_t=pr.props.context,_r=_t.loadData,Lr=_t.onNodeLoad;if(ln)return;_r&&Wr&&!pr.isLeaf()&&(!pr.hasChildren()&&!Pn&&Lr(ur(pr.props)))},pr.renderSwitcher=function(){var Dr=pr.props,Wr=Dr.expanded,ln=Dr.switcherIcon,Pn=pr.props.context,_t=Pn.prefixCls,_r=Pn.switcherIcon,Lr=ln||_r;if(pr.isLeaf())return e.createElement("span",{className:w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher-noop"))},typeof Lr=="function"?Lr(Object(S.a)(Object(S.a)({},pr.props),{},{isLeaf:!0})):Lr);var en=w()("".concat(_t,"-switcher"),"".concat(_t,"-switcher_").concat(Wr?dt:Jt));return e.createElement("span",{onClick:pr.onExpand,className:en},typeof Lr=="function"?Lr(Object(S.a)(Object(S.a)({},pr.props),{},{isLeaf:!1})):Lr)},pr.renderCheckbox=function(){var Dr=pr.props,Wr=Dr.checked,ln=Dr.halfChecked,Pn=Dr.disableCheckbox,_t=pr.props.context.prefixCls,_r=pr.isDisabled(),Lr=pr.isCheckable();if(!Lr)return null;var en=typeof Lr!="boolean"?Lr:null;return e.createElement("span",{className:w()("".concat(_t,"-checkbox"),Wr&&"".concat(_t,"-checkbox-checked"),!Wr&&ln&&"".concat(_t,"-checkbox-indeterminate"),(_r||Pn)&&"".concat(_t,"-checkbox-disabled")),onClick:pr.onCheck},en)},pr.renderIcon=function(){var Dr=pr.props.loading,Wr=pr.props.context.prefixCls;return e.createElement("span",{className:w()("".concat(Wr,"-iconEle"),"".concat(Wr,"-icon__").concat(pr.getNodeState()||"docu"),Dr&&"".concat(Wr,"-icon_loading"))})},pr.renderSelector=function(){var Dr=pr.state.dragNodeHighlight,Wr=pr.props,ln=Wr.title,Pn=Wr.selected,_t=Wr.icon,_r=Wr.loading,Lr=Wr.data,en=pr.props.context,bn=en.prefixCls,On=en.showIcon,yn=en.icon,qn=en.draggable,Hn=en.loadData,pi=en.titleRender,Fi=pr.isDisabled(),wi="".concat(bn,"-node-content-wrapper"),Oi;if(On){var zi=_t||yn;Oi=zi?e.createElement("span",{className:w()("".concat(bn,"-iconEle"),"".concat(bn,"-icon__customize"))},typeof zi=="function"?zi(pr.props):zi):pr.renderIcon()}else Hn&&_r&&(Oi=pr.renderIcon());var ea;typeof ln=="function"?ea=ln(Lr):pi?ea=pi(Lr):ea=ln;var Gi=e.createElement("span",{className:"".concat(bn,"-title")},ea);return e.createElement("span",{ref:pr.setSelectHandle,title:typeof ln=="string"?ln:"",className:w()("".concat(wi),"".concat(wi,"-").concat(pr.getNodeState()||"normal"),!Fi&&(Pn||Dr)&&"".concat(bn,"-node-selected"),!Fi&&qn&&"draggable"),draggable:!Fi&&qn||void 0,"aria-grabbed":!Fi&&qn||void 0,onMouseEnter:pr.onMouseEnter,onMouseLeave:pr.onMouseLeave,onContextMenu:pr.onContextMenu,onClick:pr.onSelectorClick,onDoubleClick:pr.onSelectorDoubleClick,onDragStart:qn?pr.onDragStart:void 0},Oi,Gi)},pr}return Object(o.a)(Tn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Dr=this.props.selectable,Wr=this.props.context.selectable;return typeof Dr=="boolean"?Dr:Wr}},{key:"render",value:function(){var Dr,Wr=this.props,ln=Wr.eventKey,Pn=Wr.className,_t=Wr.style,_r=Wr.dragOver,Lr=Wr.dragOverGapTop,en=Wr.dragOverGapBottom,bn=Wr.isLeaf,On=Wr.isStart,yn=Wr.isEnd,qn=Wr.expanded,Hn=Wr.selected,pi=Wr.checked,Fi=Wr.halfChecked,wi=Wr.loading,Oi=Wr.domRef,zi=Wr.active,ea=Wr.onMouseMove,Gi=Object(C.a)(Wr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Wi=this.props.context,Hi=Wi.prefixCls,Ji=Wi.filterTreeNode,ca=Wi.draggable,Ca=Wi.keyEntities,na=this.isDisabled(),Pa=Me(Gi),La=Ca[ln]||{},va=La.level,ga=yn[yn.length-1];return e.createElement("div",Object.assign({ref:Oi,className:w()(Pn,"".concat(Hi,"-treenode"),(Dr={},Object(E.a)(Dr,"".concat(Hi,"-treenode-disabled"),na),Object(E.a)(Dr,"".concat(Hi,"-treenode-switcher-").concat(qn?"open":"close"),!bn),Object(E.a)(Dr,"".concat(Hi,"-treenode-checkbox-checked"),pi),Object(E.a)(Dr,"".concat(Hi,"-treenode-checkbox-indeterminate"),Fi),Object(E.a)(Dr,"".concat(Hi,"-treenode-selected"),Hn),Object(E.a)(Dr,"".concat(Hi,"-treenode-loading"),wi),Object(E.a)(Dr,"".concat(Hi,"-treenode-active"),zi),Object(E.a)(Dr,"".concat(Hi,"-treenode-leaf-last"),ga),Object(E.a)(Dr,"drag-over",!na&&_r),Object(E.a)(Dr,"drag-over-gap-top",!na&&Lr),Object(E.a)(Dr,"drag-over-gap-bottom",!na&&en),Object(E.a)(Dr,"filter-node",Ji&&Ji(ur(this.props))),Dr)),style:_t,onDragEnter:ca?this.onDragEnter:void 0,onDragOver:ca?this.onDragOver:void 0,onDragLeave:ca?this.onDragLeave:void 0,onDrop:ca?this.onDrop:void 0,onDragEnd:ca?this.onDragEnd:void 0,onMouseMove:ea},Pa),e.createElement(Qt,{prefixCls:Hi,level:va,isStart:On,isEnd:yn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Tn}(e.Component),kt=function(Sr){return e.createElement(ue.Consumer,null,function(Tn){return e.createElement(tn,Object.assign({},Sr,{context:Tn}))})};kt.displayName="TreeNode",kt.defaultProps={title:$t},kt.isTreeNode=1;var tr=kt,Bt=.25,ft=2;function it(Ir,Sr){var Tn=Ir.slice(),pr=Tn.indexOf(Sr);return pr>=0&&Tn.splice(pr,1),Tn}function Or(Ir,Sr){var Tn=Ir.slice();return Tn.indexOf(Sr)===-1&&Tn.push(Sr),Tn}function an(Ir){return Ir.split("-")}function En(Ir,Sr){return"".concat(Ir,"-").concat(Sr)}function Bn(Ir){return Ir&&Ir.type&&Ir.type.isTreeNode}function vi(Ir,Sr){var Tn=[Ir],pr=Sr[Ir];function Dr(){var Wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Wr.forEach(function(ln){var Pn=ln.key,_t=ln.children;Tn.push(Pn),Dr(_t)})}return Dr(pr.children),Tn}function Ln(Ir,Sr){var Tn=Ir.clientY,pr=Sr.selectHandle.getBoundingClientRect(),Dr=pr.top,Wr=pr.bottom,ln=pr.height,Pn=Math.max(ln*Bt,ft);return Tn<=Dr+Pn?-1:Tn>=Wr-Pn?1:0}function Mn(Ir,Sr){if(!Ir)return;var Tn=Sr.multiple;return Tn?Ir.slice():Ir.length?[Ir[0]]:Ir}var Xt=function(Sr){return Sr};function wt(Ir,Sr){if(!Ir)return[];var Tn=Sr||{},pr=Tn.processProps,Dr=pr===void 0?Xt:pr,Wr=Array.isArray(Ir)?Ir:[Ir];return Wr.map(function(ln){var Pn=ln.children,_t=Object(C.a)(ln,["children"]),_r=wt(Pn,Sr);return l.a.createElement(tr,Object.assign({},Dr(_t)),_r)})}function De(Ir){if(!Ir)return null;var Sr;if(Array.isArray(Ir))Sr={checkedKeys:Ir,halfCheckedKeys:void 0};else if(Object(v.a)(Ir)==="object")Sr={checkedKeys:Ir.checked||void 0,halfCheckedKeys:Ir.halfChecked||void 0};else return Object(le.a)(!1,"`checkedKeys` is not an array or an object"),null;return Sr}function Re(Ir,Sr){var Tn=new Set;function pr(Dr){if(Tn.has(Dr))return;var Wr=Sr[Dr];if(!Wr)return;Tn.add(Dr);var ln=Wr.parent,Pn=Wr.node;if(Pn.disabled)return;ln&&pr(ln.key)}return(Ir||[]).forEach(function(Dr){pr(Dr)}),Object(g.a)(Tn)}function Me(Ir){var Sr={};return Object.keys(Ir).forEach(function(Tn){(Tn.startsWith("data-")||Tn.startsWith("aria-"))&&(Sr[Tn]=Ir[Tn])}),Sr}function nt(Ir,Sr){return Ir!=null?Ir:Sr}function yt(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=new Map;function Tn(pr){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(pr||[]).forEach(function(Wr){var ln=Wr.key,Pn=Wr.children;Object(le.a)(ln!=null,"Tree node must have a certain key: [".concat(Dr).concat(ln,"]"));var _t=String(ln);Object(le.a)(!Sr.has(_t)||ln===null||ln===void 0,"Same 'key' exist in the Tree: ".concat(_t)),Sr.set(_t,!0),Tn(Pn,"".concat(Dr).concat(_t," > "))})}Tn(Ir)}function sr(Ir){function Sr(Tn){var pr=Object(Ze.a)(Tn);return pr.map(function(Dr){if(!Bn(Dr))return Object(le.a)(!Dr,"Tree/TreeNode can only accept TreeNode as children."),null;var Wr=Dr.key,ln=Dr.props,Pn=ln.children,_t=Object(C.a)(ln,["children"]),_r=Object(S.a)({key:Wr},_t),Lr=Sr(Pn);return Lr.length&&(_r.children=Lr),_r}).filter(function(Dr){return Dr})}return Sr(Ir)}function Nr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tn=new Set(Sr===!0?[]:Sr),pr=[];function Dr(Wr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wr.map(function(Pn,_t){var _r=En(ln?ln.pos:"0",_t),Lr=nt(Pn.key,_r),en=Object(S.a)(Object(S.a)({},Pn),{},{parent:ln,pos:_r,children:null,data:Pn,isStart:[].concat(Object(g.a)(ln?ln.isStart:[]),[_t===0]),isEnd:[].concat(Object(g.a)(ln?ln.isEnd:[]),[_t===Wr.length-1])});return pr.push(en),Sr===!0||Tn.has(Lr)?en.children=Dr(Pn.children||[],en):en.children=[],en})}return Dr(Ir),pr}function mn(Ir,Sr,Tn){var pr;Tn?typeof Tn=="string"?pr=function(ln){return ln[Tn]}:typeof Tn=="function"&&(pr=function(ln){return Tn(ln)}):pr=function(ln,Pn){return nt(ln.key,Pn)};function Dr(Wr,ln,Pn){var _t=Wr?Wr.children:Ir,_r=Wr?En(Pn.pos,ln):"0";if(Wr){var Lr=pr(Wr,_r),en={node:Wr,index:ln,pos:_r,key:Lr,parentPos:Pn.node?Pn.pos:null,level:Pn.level+1};Sr(en)}_t&&_t.forEach(function(bn,On){Dr(bn,On,{node:Wr,pos:_r,level:Pn?Pn.level+1:-1})})}Dr(null)}function Yn(Ir){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn=Sr.initWrapper,pr=Sr.processEntity,Dr=Sr.onProcessFinished,Wr=arguments.length>2?arguments[2]:void 0,ln={},Pn={},_t={posEntities:ln,keyEntities:Pn};return Tn&&(_t=Tn(_t)||_t),mn(Ir,function(_r){var Lr=_r.node,en=_r.index,bn=_r.pos,On=_r.key,yn=_r.parentPos,qn=_r.level,Hn={node:Lr,index:en,key:On,pos:bn,level:qn},pi=nt(On,bn);ln[bn]=Hn,Pn[pi]=Hn,Hn.parent=ln[yn],Hn.parent&&(Hn.parent.children=Hn.parent.children||[],Hn.parent.children.push(Hn)),pr&&pr(Hn,_t)},Wr),Dr&&Dr(_t),_t}function Jn(Ir,Sr){var Tn=Sr.expandedKeys,pr=Sr.selectedKeys,Dr=Sr.loadedKeys,Wr=Sr.loadingKeys,ln=Sr.checkedKeys,Pn=Sr.halfCheckedKeys,_t=Sr.dragOverNodeKey,_r=Sr.dropPosition,Lr=Sr.keyEntities,en=Lr[Ir],bn={eventKey:Ir,expanded:Tn.indexOf(Ir)!==-1,selected:pr.indexOf(Ir)!==-1,loaded:Dr.indexOf(Ir)!==-1,loading:Wr.indexOf(Ir)!==-1,checked:ln.indexOf(Ir)!==-1,halfChecked:Pn.indexOf(Ir)!==-1,pos:String(en?en.pos:""),dragOver:_t===Ir&&_r===0,dragOverGapTop:_t===Ir&&_r===-1,dragOverGapBottom:_t===Ir&&_r===1};return bn}function ur(Ir){var Sr=Ir.data,Tn=Ir.expanded,pr=Ir.selected,Dr=Ir.checked,Wr=Ir.loaded,ln=Ir.loading,Pn=Ir.halfChecked,_t=Ir.dragOver,_r=Ir.dragOverGapTop,Lr=Ir.dragOverGapBottom,en=Ir.pos,bn=Ir.active,On=Object(S.a)(Object(S.a)({},Sr),{},{expanded:Tn,selected:pr,checked:Dr,loaded:Wr,loading:ln,halfChecked:Pn,dragOver:_t,dragOverGapTop:_r,dragOverGapBottom:Lr,pos:en,active:bn});return"props"in On||Object.defineProperty(On,"props",{get:function(){return Object(le.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ir}}),On}function Tt(Ir,Sr){var Tn=new Set;return Ir.forEach(function(pr){Sr.has(pr)||Tn.add(pr)}),Tn}function Ct(Ir){var Sr=Ir||{},Tn=Sr.disabled,pr=Sr.disableCheckbox,Dr=Sr.checkable;return!!(Tn||pr)||Dr===!1}function Ar(Ir,Sr,Tn,pr){for(var Dr=new Set(Ir),Wr=new Set,ln=0;ln<=Tn;ln+=1){var Pn=Sr.get(ln)||new Set;Pn.forEach(function(en){var bn=en.key,On=en.node,yn=en.children,qn=yn===void 0?[]:yn;Dr.has(bn)&&!pr(On)&&qn.filter(function(Hn){return!pr(Hn.node)}).forEach(function(Hn){Dr.add(Hn.key)})})}for(var _t=new Set,_r=Tn;_r>=0;_r-=1){var Lr=Sr.get(_r)||new Set;Lr.forEach(function(en){var bn=en.parent,On=en.node;if(pr(On)||!en.parent||_t.has(en.parent.key))return;if(pr(en.parent.node)){_t.add(bn.key);return}var yn=!0,qn=!1;(bn.children||[]).filter(function(Hn){return!pr(Hn.node)}).forEach(function(Hn){var pi=Hn.key,Fi=Dr.has(pi);yn&&!Fi&&(yn=!1),!qn&&(Fi||Wr.has(pi))&&(qn=!0)}),yn&&Dr.add(bn.key),qn&&Wr.add(bn.key),_t.add(bn.key)})}return{checkedKeys:Array.from(Dr),halfCheckedKeys:Array.from(Tt(Wr,Dr))}}function er(Ir,Sr,Tn,pr,Dr){for(var Wr=new Set(Ir),ln=new Set(Sr),Pn=0;Pn<=pr;Pn+=1){var _t=Tn.get(Pn)||new Set;_t.forEach(function(bn){var On=bn.key,yn=bn.node,qn=bn.children,Hn=qn===void 0?[]:qn;!Wr.has(On)&&!ln.has(On)&&!Dr(yn)&&Hn.filter(function(pi){return!Dr(pi.node)}).forEach(function(pi){Wr.delete(pi.key)})})}ln=new Set;for(var _r=new Set,Lr=pr;Lr>=0;Lr-=1){var en=Tn.get(Lr)||new Set;en.forEach(function(bn){var On=bn.parent,yn=bn.node;if(Dr(yn)||!bn.parent||_r.has(bn.parent.key))return;if(Dr(bn.parent.node)){_r.add(On.key);return}var qn=!0,Hn=!1;(On.children||[]).filter(function(pi){return!Dr(pi.node)}).forEach(function(pi){var Fi=pi.key,wi=Wr.has(Fi);qn&&!wi&&(qn=!1),!Hn&&(wi||ln.has(Fi))&&(Hn=!0)}),qn||Wr.delete(On.key),Hn&&ln.add(On.key),_r.add(On.key)})}return{checkedKeys:Array.from(Wr),halfCheckedKeys:Array.from(Tt(ln,Wr))}}function Ft(Ir,Sr,Tn,pr){var Dr=[],Wr;pr?Wr=pr:Wr=Ct;var ln=new Set(Ir.filter(function(Lr){var en=!!Tn[Lr];return en||Dr.push(Lr),en})),Pn=new Map,_t=0;Object.keys(Tn).forEach(function(Lr){var en=Tn[Lr],bn=en.level,On=Pn.get(bn);On||(On=new Set,Pn.set(bn,On)),On.add(en),_t=Math.max(_t,bn)}),Object(le.a)(!Dr.length,"Tree missing follow keys: ".concat(Dr.slice(0,100).map(function(Lr){return"'".concat(Lr,"'")}).join(", ")));var _r;return Sr===!0?_r=Ar(ln,Pn,_t,Wr):_r=er(ln,Sr.halfCheckedKeys,Pn,_t,Wr),_r}var ir=r("YrtM"),Pt=r("+nKL"),rr=function(Sr,Tn){var pr=Sr.className,Dr=Sr.style,Wr=Sr.motion,ln=Sr.motionNodes,Pn=Sr.motionType,_t=Sr.onMotionStart,_r=Sr.onMotionEnd,Lr=Sr.active,en=Sr.treeNodeRequiredProps,bn=Object(C.a)(Sr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),On=e.useState(!0),yn=Object(b.a)(On,2),qn=yn[0],Hn=yn[1],pi=e.useContext(ue),Fi=pi.prefixCls,wi=e.useRef(!1),Oi=function(){wi.current||_r(),wi.current=!0};return Object(e.useEffect)(function(){ln&&Pn==="hide"&&qn&&Hn(!1)},[ln]),Object(e.useEffect)(function(){return ln&&_t(),function(){ln&&Oi()}},[]),ln?e.createElement(k.b,Object.assign({ref:Tn,visible:qn},Wr,{motionAppear:Pn==="show",onAppearEnd:Oi,onLeaveEnd:Oi}),function(zi,ea){var Gi=zi.className,Wi=zi.style;return e.createElement("div",{ref:ea,className:w()("".concat(Fi,"-treenode-motion"),Gi),style:Wi},ln.map(function(Hi){var Ji=Hi.data,ca=Ji.key,Ca=Object(C.a)(Ji,["key"]),na=Hi.isStart,Pa=Hi.isEnd;delete Ca.children;var La=Jn(ca,en);return e.createElement(tr,Object.assign({},Ca,La,{active:Lr,data:Hi.data,key:ca,isStart:na,isEnd:Pa}))}))}):e.createElement(tr,Object.assign({domRef:Tn,className:pr,style:Dr},bn,{active:Lr}))};rr.displayName="MotionTreeNode";var Yr=e.forwardRef(rr),Pr=Yr;function Mr(){var Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tn=Ir.length,pr=Sr.length;if(Math.abs(Tn-pr)!==1)return{add:!1,key:null};function Dr(Wr,ln){var Pn=new Map;Wr.forEach(function(_r){Pn.set(_r,!0)});var _t=ln.filter(function(_r){return!Pn.has(_r)});return _t.length===1?_t[0]:null}return Tn<pr?{add:!0,key:Dr(Ir,Sr)}:{add:!1,key:Dr(Sr,Ir)}}function fn(Ir,Sr,Tn){var pr=Ir.findIndex(function(Pn){var _t=Pn.data;return _t.key===Tn}),Dr=Ir[pr+1],Wr=Sr.findIndex(function(Pn){var _t=Pn.data;return _t.key===Tn});if(Dr){var ln=Sr.findIndex(function(Pn){var _t=Pn.data;return _t.key===Dr.data.key});return Sr.slice(Wr+1,ln)}return Sr.slice(Wr+1)}var wn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ai=function(){},ri="RC_TREE_MOTION_".concat(Math.random()),gi={key:ri},Ii={key:ri,level:0,index:0,pos:"0",node:gi},Mi={parent:null,children:[],pos:Ii.pos,data:gi,isStart:[],isEnd:[]};function Qi(Ir,Sr,Tn,pr){return Sr===!1||!Tn?Ir:Ir.slice(0,Math.ceil(Tn/pr)+1)}function ot(Ir){var Sr=Ir.data.key,Tn=Ir.pos;return nt(Sr,Tn)}function Ne(Ir){for(var Sr=String(Ir.data.key),Tn=Ir;Tn.parent;)Tn=Tn.parent,Sr="".concat(Tn.data.key," > ").concat(Sr);return Sr}var He=function(Sr,Tn){var pr=Sr.prefixCls,Dr=Sr.data,Wr=Sr.selectable,ln=Sr.checkable,Pn=Sr.expandedKeys,_t=Sr.selectedKeys,_r=Sr.checkedKeys,Lr=Sr.loadedKeys,en=Sr.loadingKeys,bn=Sr.halfCheckedKeys,On=Sr.keyEntities,yn=Sr.disabled,qn=Sr.dragging,Hn=Sr.dragOverNodeKey,pi=Sr.dropPosition,Fi=Sr.motion,wi=Sr.height,Oi=Sr.itemHeight,zi=Sr.virtual,ea=Sr.focusable,Gi=Sr.activeItem,Wi=Sr.focused,Hi=Sr.tabIndex,Ji=Sr.onKeyDown,ca=Sr.onFocus,Ca=Sr.onBlur,na=Sr.onActiveChange,Pa=Sr.onListChangeStart,La=Sr.onListChangeEnd,va=Object(C.a)(Sr,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ga=e.useRef(null);e.useImperativeHandle(Tn,function(){return{scrollTo:function(rs){ga.current.scrollTo(rs)}}});var Oa=e.useState(Pn),Aa=Object(b.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=e.useState(Dr),Bi=Object(b.a)(Va,2),io=Bi[0],oo=Bi[1],Qo=e.useState(Dr),mo=Object(b.a)(Qo,2),To=mo[0],ao=mo[1],So=e.useState([]),bo=Object(b.a)(So,2),to=bo[0],Jo=bo[1],Uo=e.useState(null),wo=Object(b.a)(Uo,2),ts=wo[0],Ia=wo[1];function Oo(){oo(Dr),ao(Dr),Jo([]),Ia(null),La()}e.useEffect(function(){_a(Pn);var xo=Mr(Xa,Pn);if(xo.key!==null)if(xo.add){var rs=io.findIndex(function(Er){var qr=Er.data.key;return qr===xo.key}),Ho=Qi(fn(io,Dr,xo.key),zi,wi,Oi),_o=io.slice();_o.splice(rs+1,0,Mi),ao(_o),Jo(Ho),Ia("show")}else{var uo=Dr.findIndex(function(Er){var qr=Er.data.key;return qr===xo.key}),Ha=Qi(fn(Dr,io,xo.key),zi,wi,Oi),vt=Dr.slice();vt.splice(uo+1,0,Mi),ao(vt),Jo(Ha),Ia("hide")}else io!==Dr&&(oo(Dr),ao(Dr))},[Pn,Dr]),e.useEffect(function(){qn||Oo()},[qn]);var Io=Fi?To:Dr,os={expandedKeys:Pn,selectedKeys:_t,loadedKeys:Lr,loadingKeys:en,checkedKeys:_r,halfCheckedKeys:bn,dragOverNodeKey:Hn,dropPosition:pi,keyEntities:On};return e.createElement(e.Fragment,null,Wi&&Gi&&e.createElement("span",{style:wn,"aria-live":"assertive"},Ne(Gi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:wn,disabled:ea===!1||yn,tabIndex:ea!==!1?Hi:null,onKeyDown:Ji,onFocus:ca,onBlur:Ca,value:"",onChange:ai})),e.createElement(Pt.a,Object.assign({},va,{data:Io,itemKey:ot,height:wi,fullHeight:!1,virtual:zi,itemHeight:Oi,prefixCls:"".concat(pr,"-list"),ref:ga}),function(xo){var rs=xo.pos,Ho=xo.data,_o=Ho.key,uo=Object(C.a)(Ho,["key"]),Ha=xo.isStart,vt=xo.isEnd,Er=nt(_o,rs);delete uo.children;var qr=Jn(Er,os);return e.createElement(Pr,Object.assign({},uo,qr,{active:Gi&&_o===Gi.data.key,pos:rs,data:xo.data,isStart:Ha,isEnd:vt,motion:Fi,motionNodes:_o===ri?to:null,motionType:ts,onMotionStart:Pa,onMotionEnd:Oo,treeNodeRequiredProps:os,onMouseMove:function(){na(null)}}))}))},Ye=e.forwardRef(He);Ye.displayName="NodeList";var at=Ye,qe=function(Ir){Object(c.a)(Tn,Ir);var Sr=Object(h.a)(Tn);function Tn(){var pr;return Object(n.a)(this,Tn),pr=Sr.apply(this,arguments),pr.destroyed=!1,pr.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},pr.listRef=e.createRef(),pr.onNodeDragStart=function(Dr,Wr){var ln=pr.state,Pn=ln.expandedKeys,_t=ln.keyEntities,_r=pr.props.onDragStart,Lr=Wr.props.eventKey;pr.dragNode=Wr;var en=it(Pn,Lr);pr.setState({dragging:!0,dragNodesKeys:vi(Lr,_t)}),pr.setExpandedKeys(en),_r&&_r({event:Dr,node:ur(Wr.props)})},pr.onNodeDragEnter=function(Dr,Wr){var ln=pr.state,Pn=ln.expandedKeys,_t=ln.keyEntities,_r=ln.dragNodesKeys,Lr=pr.props.onDragEnter,en=Wr.props,bn=en.pos,On=en.eventKey;if(!pr.dragNode||_r.indexOf(On)!==-1)return;var yn=Ln(Dr,Wr);if(pr.dragNode.props.eventKey===On&&yn===0){pr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){pr.setState({dragOverNodeKey:On,dropPosition:yn}),pr.delayedDragEnterLogic||(pr.delayedDragEnterLogic={}),Object.keys(pr.delayedDragEnterLogic).forEach(function(qn){clearTimeout(pr.delayedDragEnterLogic[qn])}),pr.delayedDragEnterLogic[bn]=window.setTimeout(function(){if(!pr.state.dragging)return;var qn=Object(g.a)(Pn),Hn=_t[On];Hn&&(Hn.children||[]).length&&(qn=Or(Pn,On)),"expandedKeys"in pr.props||pr.setExpandedKeys(qn),Lr&&Lr({event:Dr,node:ur(Wr.props),expandedKeys:qn})},400)},0)},pr.onNodeDragOver=function(Dr,Wr){var ln=pr.state.dragNodesKeys,Pn=pr.props.onDragOver,_t=Wr.props.eventKey;if(ln.indexOf(_t)!==-1)return;if(pr.dragNode&&_t===pr.state.dragOverNodeKey){var _r=Ln(Dr,Wr);if(_r===pr.state.dropPosition)return;pr.setState({dropPosition:_r})}Pn&&Pn({event:Dr,node:ur(Wr.props)})},pr.onNodeDragLeave=function(Dr,Wr){var ln=pr.props.onDragLeave;pr.setState({dragOverNodeKey:""}),ln&&ln({event:Dr,node:ur(Wr.props)})},pr.onNodeDragEnd=function(Dr,Wr){var ln=pr.props.onDragEnd;pr.setState({dragOverNodeKey:""}),pr.cleanDragState(),ln&&ln({event:Dr,node:ur(Wr.props)}),pr.dragNode=null},pr.onNodeDrop=function(Dr,Wr){var ln=pr.state,Pn=ln.dragNodesKeys,_t=Pn===void 0?[]:Pn,_r=ln.dropPosition,Lr=pr.props.onDrop,en=Wr.props,bn=en.eventKey,On=en.pos;if(pr.setState({dragOverNodeKey:""}),pr.cleanDragState(),_t.indexOf(bn)!==-1){Object(le.a)(!1,"Can not drop to dragNode(include it's children node)");return}var yn=an(On),qn={event:Dr,node:ur(Wr.props),dragNode:pr.dragNode?ur(pr.dragNode.props):null,dragNodesKeys:_t.slice(),dropPosition:_r+Number(yn[yn.length-1]),dropToGap:!1};_r!==0&&(qn.dropToGap=!0),Lr&&Lr(qn),pr.dragNode=null},pr.cleanDragState=function(){var Dr=pr.state.dragging;Dr&&pr.setState({dragging:!1})},pr.onNodeClick=function(Dr,Wr){var ln=pr.props.onClick;ln&&ln(Dr,Wr)},pr.onNodeDoubleClick=function(Dr,Wr){var ln=pr.props.onDoubleClick;ln&&ln(Dr,Wr)},pr.onNodeSelect=function(Dr,Wr){var ln=pr.state.selectedKeys,Pn=pr.state.keyEntities,_t=pr.props,_r=_t.onSelect,Lr=_t.multiple,en=Wr.selected,bn=Wr.key,On=!en;On?Lr?ln=Or(ln,bn):ln=[bn]:ln=it(ln,bn);var yn=ln.map(function(qn){var Hn=Pn[qn];return Hn?Hn.node:null}).filter(function(qn){return qn});pr.setUncontrolledState({selectedKeys:ln}),_r&&_r(ln,{event:"select",selected:On,node:Wr,selectedNodes:yn,nativeEvent:Dr.nativeEvent})},pr.onNodeCheck=function(Dr,Wr,ln){var Pn=pr.state,_t=Pn.keyEntities,_r=Pn.checkedKeys,Lr=Pn.halfCheckedKeys,en=pr.props,bn=en.checkStrictly,On=en.onCheck,yn=Wr.key,qn,Hn={event:"check",node:Wr,checked:ln,nativeEvent:Dr.nativeEvent};if(bn){var pi=ln?Or(_r,yn):it(_r,yn),Fi=it(Lr,yn);qn={checked:pi,halfChecked:Fi},Hn.checkedNodes=pi.map(function(Wi){return _t[Wi]}).filter(function(Wi){return Wi}).map(function(Wi){return Wi.node}),pr.setUncontrolledState({checkedKeys:pi})}else{var wi=Ft([].concat(Object(g.a)(_r),[yn]),!0,_t),Oi=wi.checkedKeys,zi=wi.halfCheckedKeys;if(!ln){var ea=new Set(Oi);ea.delete(yn);var Gi=Ft(Array.from(ea),{checked:!1,halfCheckedKeys:zi},_t);Oi=Gi.checkedKeys,zi=Gi.halfCheckedKeys}qn=Oi,Hn.checkedNodes=[],Hn.checkedNodesPositions=[],Hn.halfCheckedKeys=zi,Oi.forEach(function(Wi){var Hi=_t[Wi];if(!Hi)return;var Ji=Hi.node,ca=Hi.pos;Hn.checkedNodes.push(Ji),Hn.checkedNodesPositions.push({node:Ji,pos:ca})}),pr.setUncontrolledState({checkedKeys:Oi},!1,{halfCheckedKeys:zi})}On&&On(qn,Hn)},pr.onNodeLoad=function(Dr){return new Promise(function(Wr){pr.setState(function(ln){var Pn=ln.loadedKeys,_t=Pn===void 0?[]:Pn,_r=ln.loadingKeys,Lr=_r===void 0?[]:_r,en=pr.props,bn=en.loadData,On=en.onLoad,yn=Dr.key;if(!bn||_t.indexOf(yn)!==-1||Lr.indexOf(yn)!==-1)return{};var qn=bn(Dr);return qn.then(function(){var Hn=pr.state,pi=Hn.loadedKeys,Fi=Hn.loadingKeys,wi=Or(pi,yn),Oi=it(Fi,yn);On&&On(wi,{event:"load",node:Dr}),pr.setUncontrolledState({loadedKeys:wi}),pr.setState({loadingKeys:Oi}),Wr()}),{loadingKeys:Or(Lr,yn)}})})},pr.onNodeMouseEnter=function(Dr,Wr){var ln=pr.props.onMouseEnter;ln&&ln({event:Dr,node:Wr})},pr.onNodeMouseLeave=function(Dr,Wr){var ln=pr.props.onMouseLeave;ln&&ln({event:Dr,node:Wr})},pr.onNodeContextMenu=function(Dr,Wr){var ln=pr.props.onRightClick;ln&&(Dr.preventDefault(),ln({event:Dr,node:Wr}))},pr.onFocus=function(){var Dr=pr.props.onFocus;pr.setState({focused:!0}),Dr&&Dr.apply(void 0,arguments)},pr.onBlur=function(){var Dr=pr.props.onBlur;pr.setState({focused:!1}),pr.onActiveChange(null),Dr&&Dr.apply(void 0,arguments)},pr.getTreeNodeRequiredProps=function(){var Dr=pr.state,Wr=Dr.expandedKeys,ln=Dr.selectedKeys,Pn=Dr.loadedKeys,_t=Dr.loadingKeys,_r=Dr.checkedKeys,Lr=Dr.halfCheckedKeys,en=Dr.dragOverNodeKey,bn=Dr.dropPosition,On=Dr.keyEntities;return{expandedKeys:Wr||[],selectedKeys:ln||[],loadedKeys:Pn||[],loadingKeys:_t||[],checkedKeys:_r||[],halfCheckedKeys:Lr||[],dragOverNodeKey:en,dropPosition:bn,keyEntities:On}},pr.setExpandedKeys=function(Dr){var Wr=pr.state.treeData,ln=Nr(Wr,Dr);pr.setUncontrolledState({expandedKeys:Dr,flattenNodes:ln},!0)},pr.onNodeExpand=function(Dr,Wr){var ln=pr.state.expandedKeys,Pn=pr.state.listChanging,_t=pr.props,_r=_t.onExpand,Lr=_t.loadData,en=Wr.key,bn=Wr.expanded;if(Pn)return;var On=ln.indexOf(en),yn=!bn;if(Object(le.a)(bn&&On!==-1||!bn&&On===-1,"Expand state not sync with index check"),yn?ln=Or(ln,en):ln=it(ln,en),pr.setExpandedKeys(ln),_r&&_r(ln,{node:Wr,expanded:yn,nativeEvent:Dr.nativeEvent}),yn&&Lr){var qn=pr.onNodeLoad(Wr);qn&&qn.then(function(){var Hn=Nr(pr.state.treeData,ln);pr.setUncontrolledState({flattenNodes:Hn})})}},pr.onListChangeStart=function(){pr.setUncontrolledState({listChanging:!0})},pr.onListChangeEnd=function(){setTimeout(function(){pr.setUncontrolledState({listChanging:!1})})},pr.onActiveChange=function(Dr){var Wr=pr.state.activeKey,ln=pr.props.onActiveChange;if(Wr===Dr)return;pr.setState({activeKey:Dr}),Dr!==null&&pr.scrollTo({key:Dr}),ln&&ln(Dr)},pr.getActiveItem=function(){var Dr=pr.state,Wr=Dr.activeKey,ln=Dr.flattenNodes;return Wr===null?null:ln.find(function(Pn){var _t=Pn.data.key;return _t===Wr})||null},pr.offsetActiveKey=function(Dr){var Wr=pr.state,ln=Wr.flattenNodes,Pn=Wr.activeKey,_t=ln.findIndex(function(en){var bn=en.data.key;return bn===Pn});_t===-1&&Dr<0&&(_t=ln.length),_t=(_t+Dr+ln.length)%ln.length;var _r=ln[_t];if(_r){var Lr=_r.data.key;pr.onActiveChange(Lr)}else pr.onActiveChange(null)},pr.onKeyDown=function(Dr){var Wr=pr.state,ln=Wr.activeKey,Pn=Wr.expandedKeys,_t=Wr.checkedKeys,_r=pr.props,Lr=_r.onKeyDown,en=_r.checkable,bn=_r.selectable;switch(Dr.which){case _.a.UP:{pr.offsetActiveKey(-1),Dr.preventDefault();break}case _.a.DOWN:{pr.offsetActiveKey(1),Dr.preventDefault();break}}var On=pr.getActiveItem();if(On&&On.data){var yn=pr.getTreeNodeRequiredProps(),qn=On.data.isLeaf===!1||!!(On.data.children||[]).length,Hn=ur(Object(S.a)(Object(S.a)({},Jn(ln,yn)),{},{data:On.data,active:!0}));switch(Dr.which){case _.a.LEFT:{qn&&Pn.includes(ln)?pr.onNodeExpand({},Hn):On.parent&&pr.onActiveChange(On.parent.data.key),Dr.preventDefault();break}case _.a.RIGHT:{qn&&!Pn.includes(ln)?pr.onNodeExpand({},Hn):On.children&&On.children.length&&pr.onActiveChange(On.children[0].data.key),Dr.preventDefault();break}case _.a.ENTER:case _.a.SPACE:{en&&!Hn.disabled&&Hn.checkable!==!1&&!Hn.disableCheckbox?pr.onNodeCheck({},Hn,!_t.includes(ln)):!en&&bn&&!Hn.disabled&&Hn.selectable!==!1&&pr.onNodeSelect({},Hn);break}}}Lr&&Lr(Dr)},pr.setUncontrolledState=function(Dr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(pr.destroyed)return;var Pn=!1,_t=!0,_r={};Object.keys(Dr).forEach(function(Lr){if(Lr in pr.props){_t=!1;return}Pn=!0,_r[Lr]=Dr[Lr]}),Pn&&(!Wr||_t)&&pr.setState(Object(S.a)(Object(S.a)({},_r),ln))},pr.scrollTo=function(Dr){pr.listRef.current.scrollTo(Dr)},pr}return Object(o.a)(Tn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Dr,Wr=this.state,ln=Wr.focused,Pn=Wr.flattenNodes,_t=Wr.keyEntities,_r=Wr.dragging,Lr=Wr.activeKey,en=this.props,bn=en.prefixCls,On=en.className,yn=en.style,qn=en.showLine,Hn=en.focusable,pi=en.tabIndex,Fi=pi===void 0?0:pi,wi=en.selectable,Oi=en.showIcon,zi=en.icon,ea=en.switcherIcon,Gi=en.draggable,Wi=en.checkable,Hi=en.checkStrictly,Ji=en.disabled,ca=en.motion,Ca=en.loadData,na=en.filterTreeNode,Pa=en.height,La=en.itemHeight,va=en.virtual,ga=en.titleRender,Oa=en.onContextMenu,Aa=Me(this.props);return e.createElement(ue.Provider,{value:{prefixCls:bn,selectable:wi,showIcon:Oi,icon:zi,switcherIcon:ea,draggable:Gi,checkable:Wi,checkStrictly:Hi,disabled:Ji,keyEntities:_t,loadData:Ca,filterTreeNode:na,titleRender:ga,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:w()(bn,On,(Dr={},Object(E.a)(Dr,"".concat(bn,"-show-line"),qn),Object(E.a)(Dr,"".concat(bn,"-focused"),ln),Object(E.a)(Dr,"".concat(bn,"-active-focused"),Lr!==null),Dr))},e.createElement(at,Object.assign({ref:this.listRef,prefixCls:bn,style:yn,data:Pn,disabled:Ji,selectable:wi,checkable:!!Wi,motion:ca,dragging:_r,height:Pa,itemHeight:La,virtual:va,focusable:Hn,focused:ln,tabIndex:Fi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oa},this.getTreeNodeRequiredProps(),Aa))))}}],[{key:"getDerivedStateFromProps",value:function(Dr,Wr){var ln=Wr.prevProps,Pn={prevProps:Dr};function _t(zi){return!ln&&zi in Dr||ln&&ln[zi]!==Dr[zi]}var _r;if(_t("treeData")?_r=Dr.treeData:_t("children")&&(Object(le.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_r=sr(Dr.children)),_r){Pn.treeData=_r;var Lr=Yn(_r);Pn.keyEntities=Object(S.a)(Object(E.a)({},ri,Ii),Lr.keyEntities)}var en=Pn.keyEntities||Wr.keyEntities;if(_t("expandedKeys")||ln&&_t("autoExpandParent"))Pn.expandedKeys=Dr.autoExpandParent||!ln&&Dr.defaultExpandParent?Re(Dr.expandedKeys,en):Dr.expandedKeys;else if(!ln&&Dr.defaultExpandAll){var bn=Object(S.a)({},en);delete bn[ri],Pn.expandedKeys=Object.keys(bn).map(function(zi){return bn[zi].key})}else!ln&&Dr.defaultExpandedKeys&&(Pn.expandedKeys=Dr.autoExpandParent||Dr.defaultExpandParent?Re(Dr.defaultExpandedKeys,en):Dr.defaultExpandedKeys);if(Pn.expandedKeys||delete Pn.expandedKeys,_r||Pn.expandedKeys){var On=Nr(_r||Wr.treeData,Pn.expandedKeys||Wr.expandedKeys);Pn.flattenNodes=On}if(Dr.selectable&&(_t("selectedKeys")?Pn.selectedKeys=Mn(Dr.selectedKeys,Dr):!ln&&Dr.defaultSelectedKeys&&(Pn.selectedKeys=Mn(Dr.defaultSelectedKeys,Dr))),Dr.checkable){var yn;if(_t("checkedKeys")?yn=De(Dr.checkedKeys)||{}:!ln&&Dr.defaultCheckedKeys?yn=De(Dr.defaultCheckedKeys)||{}:_r&&(yn=De(Dr.checkedKeys)||{checkedKeys:Wr.checkedKeys,halfCheckedKeys:Wr.halfCheckedKeys}),yn){var qn=yn,Hn=qn.checkedKeys,pi=Hn===void 0?[]:Hn,Fi=qn.halfCheckedKeys,wi=Fi===void 0?[]:Fi;if(!Dr.checkStrictly){var Oi=Ft(pi,!0,en);pi=Oi.checkedKeys,wi=Oi.halfCheckedKeys}Pn.checkedKeys=pi,Pn.halfCheckedKeys=wi}}return _t("loadedKeys")&&(Pn.loadedKeys=Dr.loadedKeys),Pn}}]),Tn}(e.Component);qe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},qe.TreeNode=tr;var lt=qe,Et=lt,At=e.createContext(null);function fr(Ir,Sr){if(!Ir)return!0;var Tn=Ir.data,pr=Tn.disabled,Dr=Tn.disableCheckbox;switch(Sr){case"select":return pr;case"checkbox":return pr||Dr}return!1}function Jr(Ir,Sr){var Tn=e.useCallback(function(Dr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,Pn=Ir.get(Dr);return!ln&&fr(Pn,Wr)?null:Pn},[Ir]),pr=e.useCallback(function(Dr){var Wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,Pn=Sr.get(Dr);return!ln&&fr(Pn,Wr)?null:Pn},[Sr]);return[Tn,pr]}function Vr(Ir){return e.useMemo(function(){var Sr=new Map,Tn=new Map;return Ir.forEach(function(pr){Sr.set(pr.key,pr),Tn.set(pr.data.value,pr)}),[Sr,Tn]},[Ir])}var dn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gr=function(Sr,Tn){var pr=Sr.prefixCls,Dr=Sr.height,Wr=Sr.itemHeight,ln=Sr.virtual,Pn=Sr.options,_t=Sr.flattenOptions,_r=Sr.multiple,Lr=Sr.searchValue,en=Sr.onSelect,bn=Sr.onToggleOpen,On=Sr.open,yn=Sr.notFoundContent,qn=Sr.onMouseEnter,Hn=e.useContext(At),pi=Hn.checkable,Fi=Hn.checkedKeys,wi=Hn.halfCheckedKeys,Oi=Hn.treeExpandedKeys,zi=Hn.treeDefaultExpandAll,ea=Hn.treeDefaultExpandedKeys,Gi=Hn.onTreeExpand,Wi=Hn.treeIcon,Hi=Hn.showTreeIcon,Ji=Hn.switcherIcon,ca=Hn.treeLine,Ca=Hn.treeNodeFilterProp,na=Hn.loadData,Pa=Hn.treeLoadedKeys,La=Hn.treeMotion,va=Hn.onTreeLoad,ga=e.useRef(),Oa=Object(ir.a)(function(){return Pn},[On,Pn],function(qr,Gr){return Gr[0]&&qr[1]!==Gr[1]}),Aa=Vr(_t),Xa=Object(b.a)(Aa,2),_a=Xa[0],Va=Xa[1],Bi=Jr(_a,Va),io=Object(b.a)(Bi,2),oo=io[0],Qo=io[1],mo=e.useMemo(function(){return Fi.map(function(qr){var Gr=Qo(qr);return Gr?Gr.key:null})},[Fi]),To=e.useMemo(function(){return pi?{checked:mo,halfChecked:wi}:null},[mo,wi,pi]);e.useEffect(function(){if(On&&!_r&&mo.length){var qr;(qr=ga.current)===null||qr===void 0||qr.scrollTo({key:mo[0]})}},[On]);var ao=String(Lr).toLowerCase(),So=function(Gr){return ao?String(Gr[Ca]).toLowerCase().includes(ao):!1},bo=e.useState(ea),to=Object(b.a)(bo,2),Jo=to[0],Uo=to[1],wo=e.useState(null),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=e.useMemo(function(){return Oi?Object(g.a)(Oi):Lr?Ia:Jo},[Jo,Ia,ao,Oi]);e.useEffect(function(){Lr&&Oo(_t.map(function(qr){return qr.key}))},[Lr]);var os=function(Gr){Uo(Gr),Oo(Gr),Gi&&Gi(Gr)},xo=function(Gr){Gr.preventDefault()},rs=function(Gr,Qn){var un=Qn.node.key,zr=oo(un,pi?"checkbox":"select");zr!==null&&en(zr.data.value,{selected:!Fi.includes(zr.data.value)}),_r||bn(!1)},Ho=e.useState(null),_o=Object(b.a)(Ho,2),uo=_o[0],Ha=_o[1],vt=oo(uo);if(e.useImperativeHandle(Tn,function(){return{onKeyDown:function(Gr){var Qn,un=Gr.which;switch(un){case _.a.UP:case _.a.DOWN:case _.a.LEFT:case _.a.RIGHT:(Qn=ga.current)===null||Qn===void 0||Qn.onKeyDown(Gr);break;case _.a.ENTER:{vt!==null&&rs(null,{node:{key:uo},selected:!Fi.includes(vt.data.value)});break}case _.a.ESC:bn(!1)}},onKeyUp:function(){}}}),Oa.length===0)return e.createElement("div",{role:"listbox",className:"".concat(pr,"-empty"),onMouseDown:xo},yn);var Er={};return Pa&&(Er.loadedKeys=Pa),Io&&(Er.expandedKeys=Io),e.createElement("div",{onMouseDown:xo,onMouseEnter:qn},vt&&On&&e.createElement("span",{style:dn,"aria-live":"assertive"},vt.data.value),e.createElement(Et,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(pr,"-tree"),treeData:Oa,height:Dr,itemHeight:Wr,virtual:ln,multiple:_r,icon:Wi,showIcon:Hi,switcherIcon:Ji,showLine:ca,loadData:Lr?null:na,motion:La,checkable:pi,checkStrictly:!0,checkedKeys:To,selectedKeys:pi?[]:mo,defaultExpandAll:zi},Er,{onActiveChange:Ha,onSelect:rs,onCheck:rs,onExpand:os,onLoad:va,filterTreeNode:So})))},Wn=e.forwardRef(gr);Wn.displayName="OptionList";var kr=Wn,Fn=function(){return null},vn=Fn;function $r(Ir){return Object(Ze.a)(Ir).map(function(Sr){if(!e.isValidElement(Sr)||!Sr.type)return null;var Tn=Sr.key,pr=Sr.props,Dr=pr.children,Wr=pr.value,ln=Object(C.a)(pr,["children","value"]),Pn=Object(S.a)({key:Tn,value:Wr},ln),_t=$r(Dr);return _t.length&&(Pn.children=_t),Pn}).filter(function(Sr){return Sr})}function ei(Ir){if(!Ir)return Ir;var Sr=Object(S.a)({},Ir);return"props"in Sr||Object.defineProperty(Sr,"props",{get:function(){return Object(le.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Sr}}),Sr}function fi(Ir,Sr,Tn,pr,Dr){var Wr=null,ln=null;function Pn(){function _t(_r){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _r.map(function(bn,On){var yn="".concat(Lr,"-").concat(On),qn=Tn.includes(bn.value),Hn=_t(bn.children||[],yn,qn),pi=e.createElement(vn,Object.assign({},bn),Hn.map(function(wi){return wi.node}));if(Sr===bn.value&&(Wr=pi),qn){var Fi={pos:yn,node:pi,children:Hn};return en||ln.push(Fi),Fi}return null}).filter(function(bn){return bn})}ln||(ln=[],_t(pr),ln.sort(function(_r,Lr){var en=_r.node.props.value,bn=Lr.node.props.value,On=Tn.indexOf(en),yn=Tn.indexOf(bn);return On-yn}))}Object.defineProperty(Ir,"triggerNode",{get:function(){return Object(le.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Pn(),Wr}}),Object.defineProperty(Ir,"allCheckedNodes",{get:function(){return Object(le.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Pn(),Dr?ln:ln.map(function(_r){var Lr=_r.node;return Lr})}})}function Pi(Ir){return Array.isArray(Ir)?Ir:Ir!==void 0?[Ir]:[]}function Zr(Ir,Sr){var Tn=new Map;return Sr.forEach(function(pr){var Dr=pr.data;Tn.set(Dr.value,Dr)}),Ir.map(function(pr){return ei(Tn.get(pr))})}function Sn(Ir,Sr){var Tn=Zr([Ir],Sr)[0];return Tn?Tn.disabled:!1}function Gn(Ir){return Ir.disabled||Ir.disableCheckbox||Ir.checkable===!1}function Wt(Ir){for(var Sr=Ir.parent,Tn=0,pr=Sr;pr;)pr=pr.parent,Tn+=1;return Tn}function Ot(Ir){function Sr(pr){return(pr||[]).map(function(Dr){var Wr=Dr.value,ln=Dr.key,Pn=Dr.children,_t=Object(S.a)(Object(S.a)({},Dr),{},{key:"key"in Dr?ln:Wr});return Pn&&(_t.children=Sr(Pn)),_t})}var Tn=Nr(Sr(Ir),!0);return Tn.map(function(pr){return{key:pr.data.key,data:pr.data,level:Wt(pr)}})}function Rt(Ir){return function(Sr,Tn){var pr=Tn[Ir];return String(pr).toLowerCase().includes(String(Sr).toLowerCase())}}function Ut(Ir,Sr,Tn){var pr=Tn.optionFilterProp,Dr=Tn.filterOption;if(Dr===!1)return Sr;var Wr;typeof Dr=="function"?Wr=Dr:Wr=Rt(pr);function ln(Pn){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Pn.map(function(_r){var Lr=_r.children,en=_t||Wr(Ir,ei(_r)),bn=ln(Lr||[],en);return en||bn.length?Object(S.a)(Object(S.a)({},_r),{},{children:bn}):null}).filter(function(_r){return _r})}return ln(Sr)}function Kt(Ir,Sr,Tn,pr){var Dr=new Map;return Pi(Sr).forEach(function(Wr){Wr&&Object(v.a)(Wr)==="object"&&"value"in Wr&&Dr.set(Wr.value,Wr)}),Ir.map(function(Wr){var ln={value:Wr},Pn=Tn(Wr,"select",!0),_t=Pn?pr(Pn.data):Wr;if(Dr.has(Wr)){var _r=Dr.get(Wr);ln.label="label"in _r?_r.label:_t,"halfChecked"in _r&&(ln.halfChecked=_r.halfChecked)}else ln.label=_t;return ln})}function Lt(Ir,Sr){var Tn=new Set(Ir);return Tn.add(Sr),Array.from(Tn)}function cr(Ir,Sr){var Tn=new Set(Ir);return Tn.delete(Sr),Array.from(Tn)}function vr(Ir){var Sr=Ir.searchPlaceholder,Tn=Ir.treeCheckStrictly,pr=Ir.treeCheckable,Dr=Ir.labelInValue,Wr=Ir.value,ln=Ir.multiple;Object(le.a)(!Sr,"`searchPlaceholder` has been removed."),Tn&&Dr===!1&&Object(le.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Dr||Tn)&&Object(le.a)(Pi(Wr).every(function(Pn){return Pn&&Object(v.a)(Pn)==="object"&&"value"in Pn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Tn||ln||pr?Object(le.a)(!Wr||Array.isArray(Wr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(le.a)(!Array.isArray(Wr),"`value` should not be array when `TreeSelect` is single mode.")}var yr=vr,Rr=10;function Vn(Ir,Sr){var Tn=Sr.id,pr=Sr.pId,Dr=Sr.rootPId,Wr={},ln=[],Pn=Ir.map(function(_t){var _r=Object(S.a)({},_t),Lr=_r[Tn];return Wr[Lr]=_r,_r.key=_r.key||Lr,_r});return Pn.forEach(function(_t){var _r=_t[pr],Lr=Wr[_r];Lr&&(Lr.children=Lr.children||[],Lr.children.push(_t)),(_r===Dr||!Lr&&Dr===null)&&ln.push(_t)}),ln}function kn(Ir,Sr){var Tn=0,pr=new Set;function Dr(Wr){return(Wr||[]).map(function(ln){var Pn=ln.key,_t=ln.value,_r=ln.children,Lr=Object(C.a)(ln,["key","value","children"]),en="value"in ln?_t:Pn,bn=Object(S.a)(Object(S.a)({},Lr),{},{key:Pn!=null?Pn:en,value:en,title:Sr(ln)});return"children"in ln&&(bn.children=Dr(_r)),bn})}return Dr(Ir)}function di(Ir,Sr,Tn){var pr=Tn.getLabelProp,Dr=Tn.simpleMode,Wr=e.useRef({});return Ir?(Wr.current.formatTreeData=Wr.current.treeData===Ir?Wr.current.formatTreeData:kn(Dr?Vn(Ir,Object(S.a)({id:"id",pId:"pId",rootPId:null},Dr!==!0?Dr:{})):Ir,pr),Wr.current.treeData=Ir):Wr.current.formatTreeData=Wr.current.children===Sr?Wr.current.formatTreeData:kn($r(Sr),pr),Wr.current.formatTreeData}var pn="SHOW_ALL",Br="SHOW_PARENT",_n="SHOW_CHILD";function Xn(Ir,Sr,Tn){var pr=new Set(Ir);return Sr===_n?Ir.filter(function(Dr){var Wr=Tn[Dr];return!(Wr&&Wr.children&&Wr.children.every(function(ln){var Pn=ln.node;return Gn(Pn)||pr.has(Pn.key)}))}):Sr===Br?Ir.filter(function(Dr){var Wr=Tn[Dr],ln=Wr?Wr.parent:null;return!(ln&&!Gn(ln.node)&&pr.has(ln.node.key))}):Ir}function $n(Ir,Sr){var Tn=Sr.value,pr=Sr.getEntityByValue,Dr=Sr.getEntityByKey,Wr=Sr.treeConduction,ln=Sr.showCheckedStrategy,Pn=Sr.conductKeyEntities,_t=Sr.getLabelProp;return e.useMemo(function(){var _r=Ir;if(Wr){var Lr=Xn(Ir.map(function(en){var bn=pr(en);return bn?bn.key:en}),ln,Pn);_r=Lr.map(function(en){var bn=Dr(en);return bn?bn.data.value:en})}return Kt(_r,Tn,pr,_t)},[Ir,Tn,Wr,ln,pr])}var oi=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ti=te({prefixCls:"rc-tree-select",components:{optionList:kr},convertChildrenToData:function(){return null},flattenOptions:Ot,getLabeledValue:ct,filterOptions:Ut,isValueDisabled:Sn,findValueOption:Zr,omitDOMProps:function(Sr){var Tn=Object(S.a)({},Sr);return oi.forEach(function(pr){delete Tn[pr]}),Tn}});Ti.displayName="Select";var Ri=e.forwardRef(function(Ir,Sr){var Tn=Ir.multiple,pr=Ir.treeCheckable,Dr=Ir.treeCheckStrictly,Wr=Ir.showCheckedStrategy,ln=Wr===void 0?"SHOW_CHILD":Wr,Pn=Ir.labelInValue,_t=Ir.loadData,_r=Ir.treeLoadedKeys,Lr=Ir.treeNodeFilterProp,en=Lr===void 0?"value":Lr,bn=Ir.treeNodeLabelProp,On=Ir.treeDataSimpleMode,yn=Ir.treeData,qn=Ir.treeExpandedKeys,Hn=Ir.treeDefaultExpandedKeys,pi=Ir.treeDefaultExpandAll,Fi=Ir.children,wi=Ir.treeIcon,Oi=Ir.showTreeIcon,zi=Ir.switcherIcon,ea=Ir.treeLine,Gi=Ir.treeMotion,Wi=Ir.filterTreeNode,Hi=Ir.dropdownPopupAlign,Ji=Ir.onChange,ca=Ir.onTreeExpand,Ca=Ir.onTreeLoad,na=Ir.onDropdownVisibleChange,Pa=Ir.onSelect,La=Ir.onDeselect,va=pr||Dr,ga=Tn||va,Oa=pr&&!Dr,Aa=Dr||Pn,Xa=e.useRef(null);e.useImperativeHandle(Sr,function(){return{focus:Xa.current.focus,blur:Xa.current.blur}});var _a=function(un){return yn&&un.label||un.title},Va=function(un){return bn?un[bn]:_a(un)},Bi=di(yn,Fi,{getLabelProp:_a,simpleMode:On}),io=Object(e.useMemo)(function(){return Ot(Bi)},[Bi]),oo=Vr(io),Qo=Object(b.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Jr(mo,To),So=Object(b.a)(ao,2),bo=So[0],to=So[1],Jo=Object(e.useMemo)(function(){return Oa?Yn(Bi):{keyEntities:null}},[Bi,pr,Dr]),Uo=Jo.keyEntities,wo=Object(O.a)(Ir.defaultValue,{value:Ir.value}),ts=Object(b.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=function(un){var zr=[],ni=[];return un.forEach(function(rn){to(rn)?ni.push(rn):zr.push(rn)}),{missingRawValues:zr,existRawValues:ni}},os=Object(e.useMemo)(function(){var Qn=[],un=[];if(Pi(Ia).forEach(function(Ci){if(Ci&&Object(v.a)(Ci)==="object"&&"value"in Ci)if(Ci.halfChecked&&Dr){var mi=to(Ci.value);Qn.push(mi?mi.key:Ci.value)}else un.push(Ci.value);else un.push(Ci)}),Oa){var zr=Io(un),ni=zr.missingRawValues,rn=zr.existRawValues,Kn=rn.map(function(Ci){return to(Ci).key}),li=Ft(Kn,!0,Uo),ci=li.checkedKeys,si=li.halfCheckedKeys;return[[].concat(Object(g.a)(ni),Object(g.a)(ci.map(function(Ci){return bo(Ci).data.value}))),si]}return[un,Qn]},[Ia,ga,Aa,pr,Dr]),xo=Object(b.a)(os,2),rs=xo[0],Ho=xo[1],_o=$n(rs,{treeConduction:Oa,value:Ia,showCheckedStrategy:ln,conductKeyEntities:Uo,getEntityByValue:to,getEntityByKey:bo,getLabelProp:Va}),uo=function(un,zr,ni){if(Oo(ga?un:un[0]),Ji){var rn=un;if(Oa&&ln!=="SHOW_ALL"){var Kn=un.map(function(Ki){var fa=to(Ki);return fa?fa.key:Ki}),li=Xn(Kn,ln,Uo);rn=li.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki})}var ci=zr||{triggerValue:void 0,selected:void 0},si=ci.triggerValue,Ci=ci.selected,mi=Aa?Kt(rn,Ia,to,Va):rn;if(Dr){var yi=Ho.map(function(Ki){var fa=bo(Ki);return fa?fa.data.value:Ki}).filter(function(Ki){return!rn.includes(Ki)});mi=[].concat(Object(g.a)(mi),Object(g.a)(Kt(yi,Ia,to,Va)))}var Ni={preValue:_o,triggerValue:si},ia=!0;(Dr||ni==="selection"&&!Ci)&&(ia=!1),fi(Ni,si,un,Bi,ia),va?Ni.checked=Ci:Ni.selected=Ci,Ji(ga?mi:mi[0],Aa?null:rn.map(function(Ki){var fa=to(Ki);return fa?Va(fa.data):null}),Ni)}},Ha=function(un,zr,ni){var rn=un;if(!ga)uo([un],{selected:!0,triggerValue:un},ni);else{var Kn=Lt(rs,un);if(Oa){var li=Io(Kn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),mi=Ft(Ci,!0,Uo),yi=mi.checkedKeys;Kn=[].concat(Object(g.a)(ci),Object(g.a)(yi.map(function(Ni){return bo(Ni).data.value})))}uo(Kn,{selected:!0,triggerValue:un},ni)}Pa&&Pa(rn,zr)},vt=function(un,zr,ni){var rn=un,Kn=cr(rs,un);if(Oa){var li=Io(Kn),ci=li.missingRawValues,si=li.existRawValues,Ci=si.map(function(Ni){return to(Ni).key}),mi=Ft(Ci,{checked:!1,halfCheckedKeys:Ho},Uo),yi=mi.checkedKeys;Kn=[].concat(Object(g.a)(ci),Object(g.a)(yi.map(function(Ni){return bo(Ni).data.value})))}uo(Kn,{selected:!1,triggerValue:un},ni),La&&La(rn,zr)},Er=function(){uo([],null,"clear")},qr=e.useCallback(function(Qn){if(na){var un={};Object.defineProperty(un,"documentClickClose",{get:function(){return Object(le.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),na(Qn,un)}},[na]),Gr={optionLabelProp:null,optionFilterProp:en,dropdownAlign:Hi,internalProps:{mark:we,onClear:Er,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ha,onRawDeselect:vt}};return"filterTreeNode"in Ir&&(Gr.filterOption=Wi),e.createElement(At.Provider,{value:{checkable:va,loadData:_t,treeLoadedKeys:_r,onTreeLoad:Ca,checkedKeys:rs,halfCheckedKeys:Ho,treeDefaultExpandAll:pi,treeExpandedKeys:qn,treeDefaultExpandedKeys:Hn,onTreeExpand:ca,treeIcon:wi,treeMotion:Gi,showTreeIcon:Oi,switcherIcon:zi,treeLine:ea,treeNodeFilterProp:en}},e.createElement(Ti,Object.assign({ref:Xa,mode:ga?"multiple":null},Ir,Gr,{value:_o,labelInValue:!0,options:Bi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:qr})))}),Di=function(Ir){Object(c.a)(Tn,Ir);var Sr=Object(h.a)(Tn);function Tn(){var pr;return Object(n.a)(this,Tn),pr=Sr.apply(this,arguments),pr.selectRef=e.createRef(),pr.focus=function(){pr.selectRef.current.focus()},pr.blur=function(){pr.selectRef.current.blur()},pr}return Object(o.a)(Tn,[{key:"render",value:function(){return e.createElement(Ri,Object.assign({ref:this.selectRef},this.props))}}]),Tn}(e.Component);Di.TreeNode=vn,Di.SHOW_ALL=pn,Di.SHOW_PARENT=Br,Di.SHOW_CHILD=_n;var oa=Di,ma=oa,aa=r("BGR+"),ba=r("H84U"),bi=r("uaoM"),Rn=r("1vzs"),ji=r("2jpz"),ha=r("3Nzz"),ta=function(Ir){i()(Tn,Ir);var Sr=s()(Tn);function Tn(pr){var Dr;return p()(this,Tn),Dr=Sr.call(this,pr),Dr.selectRef=e.createRef(),Dr.renderTreeSelect=function(Wr){var ln=Wr.getPopupContainer,Pn=Wr.getPrefixCls,_t=Wr.renderEmpty,_r=Wr.direction,Lr=Wr.virtual,en=Wr.dropdownMatchSelectWidth,bn=Dr.props,On=bn.prefixCls,yn=bn.size,qn=bn.className,Hn=bn.treeCheckable,pi=bn.multiple,Fi=bn.listHeight,wi=Fi===void 0?256:Fi,Oi=bn.listItemHeight,zi=Oi===void 0?26:Oi,ea=bn.notFoundContent,Gi=bn.switcherIcon,Wi=bn.treeLine,Hi=bn.getPopupContainer,Ji=bn.dropdownClassName,ca=bn.bordered,Ca=bn.treeIcon,na=Ca===void 0?!1:Ca,Pa=Pn("select",On),La=Pn("select-tree",On),va=Pn("tree-select",On),ga=w()(Ji,"".concat(va,"-dropdown"),A()({},"".concat(va,"-dropdown-rtl"),_r==="rtl")),Oa=!!(Hn||pi),Aa=Object(Rn.a)(f()(f()({},Dr.props),{multiple:Oa,prefixCls:Pa})),Xa=Aa.suffixIcon,_a=Aa.itemIcon,Va=Aa.removeIcon,Bi=Aa.clearIcon,io;ea!==void 0?io=ea:io=_t("Select");var oo=Object(aa.default)(Dr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function(Qo){var mo,To=yn||Qo,ao=w()(!On&&va,(mo={},A()(mo,"".concat(Pa,"-lg"),To==="large"),A()(mo,"".concat(Pa,"-sm"),To==="small"),A()(mo,"".concat(Pa,"-rtl"),_r==="rtl"),A()(mo,"".concat(Pa,"-borderless"),!ca),mo),qn);return e.createElement(ma,f()({virtual:Lr,dropdownMatchSelectWidth:en},oo,{ref:Dr.selectRef,prefixCls:Pa,className:ao,listHeight:wi,listItemHeight:zi,treeCheckable:Hn&&e.createElement("span",{className:"".concat(Pa,"-tree-checkbox-inner")}),inputIcon:Xa,menuItemSelectedIcon:_a,removeIcon:Va,clearIcon:Bi,switcherIcon:function(bo){return Object(ji.a)(La,Gi,Wi,bo)},showTreeIcon:na,notFoundContent:io,getPopupContainer:Hi||ln,treeMotion:null,dropdownClassName:ga}))})},Object(bi.a)(pr.multiple!==!1||!pr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Dr}return u()(Tn,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ba.a,null,this.renderTreeSelect)}}]),Tn}(e.Component);ta.TreeNode=vn,ta.SHOW_ALL=pn,ta.SHOW_PARENT=Br,ta.SHOW_CHILD=_n,ta.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ra=L.a=ta},"5W0v":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("XYMm"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"5YgA":function(R,L,r){},"5bA4":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="LeftOutlined";var d=L.a=f.forwardRef(p)},"5hvy":function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("MlIO"))})(this,function(y){return function(f){var x=y,A=x.lib,m=A.WordArray,p=A.Hasher,d=x.x64,u=d.Word,a=x.algo,i=[],t=[],s=[];(function(){for(var n=1,o=0,c=0;c<24;c++){i[n+5*o]=(c+1)*(c+2)/2%64;var h=o%5,g=(2*n+3*o)%5;n=h,o=g}for(var n=0;n<5;n++)for(var o=0;o<5;o++)t[n+5*o]=o+(2*n+3*o)%5*5;for(var v=1,b=0;b<24;b++){for(var S=0,E=0,C=0;C<7;C++){if(v&1){var _=(1<<C)-1;_<32?E^=1<<_:S^=1<<_-32}v&128?v=v<<1^113:v<<=1}s[b]=u.create(S,E)}})();var e=[];(function(){for(var n=0;n<25;n++)e[n]=u.create()})();var l=a.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var o=this._state=[],c=0;c<25;c++)o[c]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(o,c){for(var h=this._state,g=this.blockSize/2,v=0;v<g;v++){var b=o[c+2*v],S=o[c+2*v+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360;var E=h[v];E.high^=S,E.low^=b}for(var C=0;C<24;C++){for(var _=0;_<5;_++){for(var T=0,w=0,O=0;O<5;O++){var E=h[_+5*O];T^=E.high,w^=E.low}var I=e[_];I.high=T,I.low=w}for(var _=0;_<5;_++)for(var k=e[(_+4)%5],M=e[(_+1)%5],U=M.high,P=M.low,T=k.high^(U<<1|P>>>31),w=k.low^(P<<1|U>>>31),O=0;O<5;O++){var E=h[_+5*O];E.high^=T,E.low^=w}for(var X=1;X<25;X++){var T,w,E=h[X],F=E.high,j=E.low,K=i[X];K<32?(T=F<<K|j>>>32-K,w=j<<K|F>>>32-K):(T=j<<K-32|F>>>64-K,w=F<<K-32|j>>>64-K);var z=e[t[X]];z.high=T,z.low=w}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var _=0;_<5;_++)for(var O=0;O<5;O++){var X=_+5*O,E=h[X],G=e[X],ee=e[(_+1)%5+5*O],se=e[(_+2)%5+5*O];E.high=G.high^~ee.high&se.high,E.low=G.low^~ee.low&se.low}var E=h[0],ye=s[C];E.high^=ye.high,E.low^=ye.low}},_doFinalize:function(){var o=this._data,c=o.words,h=this._nDataBytes*8,g=o.sigBytes*8,v=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(f.ceil((g+1)/v)*v>>>5)-1]|=128,o.sigBytes=c.length*4,this._process();for(var b=this._state,S=this.cfg.outputLength/8,E=S/8,C=[],_=0;_<E;_++){var T=b[_],w=T.high,O=T.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C.push(O),C.push(w)}return new m.init(C,S)},clone:function(){for(var o=p.clone.call(this),c=o._state=this._state.slice(0),h=0;h<25;h++)c[h]=c[h].clone();return o}});x.SHA3=p._createHelper(l),x.HmacSHA3=p._createHmacHelper(l)}(Math),y.SHA3})},"5nXd":function(R,L,r){var y=r("MFOe"),f=y.slice,x=y.pluck,A=y.each,m=y.bind,p=y.create,d=y.isList,u=y.isFunction,a=y.isObject;R.exports={createStore:s};var i={version:"2.0.12",enabled:!1,get:function(l,n){var o=this.storage.read(this._namespacePrefix+l);return this._deserialize(o,n)},set:function(l,n){return n===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(n)),n)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var n=this;this.storage.each(function(o,c){l.call(n,n._deserialize(o),(c||"").replace(n._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return s.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return s(this.storage,this.plugins,l)}};function t(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function s(e,l,n){n||(n=""),e&&!d(e)&&(e=[e]),l&&!d(l)&&(l=[l]);var o=n?"__storejs_"+n+"_":"",c=n?new RegExp("^"+o):null,h=/^[a-zA-Z0-9_\-]*$/;if(!h.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:o,_namespaceRegexp:c,_testStorage:function(S){try{var E="__storejs__test__";S.write(E,E);var C=S.read(E)===E;return S.remove(E),C}catch(_){return!1}},_assignPluginFnProp:function(S,E){var C=this[E];this[E]=function(){var T=f(arguments,0),w=this;function O(){return C?(A(arguments,function(k,M){T[M]=k}),C.apply(w,T)):void 0}var I=[O].concat(T);return S.apply(w,I)}},_serialize:function(S){return JSON.stringify(S)},_deserialize:function(S,E){if(!S)return E;var C="";try{C=JSON.parse(S)}catch(_){C=S}return C!==void 0?C:E},_addStorage:function(S){if(this.enabled)return;this._testStorage(S)&&(this.storage=S,this.enabled=!0)},_addPlugin:function(S){var E=this;if(d(S)){A(S,function(T){E._addPlugin(T)});return}var C=x(this.plugins,function(T){return S===T});if(C)return;if(this.plugins.push(S),!u(S))throw new Error("Plugins must be function values that return objects");var _=S.call(this);if(!a(_))throw new Error("Plugins must return an object of function properties");A(_,function(T,w){if(!u(T))throw new Error("Bad plugin property: "+w+" from plugin "+S.name+". Plugins should only return functions.");E._assignPluginFnProp(T,w)})},addStorage:function(S){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(S)}},v=p(g,i,{plugins:[]});return v.raw={},A(v,function(b,S){u(b)&&(v.raw[S]=m(v,b))}),A(e,function(b){v._addStorage(b)}),A(l,function(b){v._addPlugin(b)}),v}},"5rEg":function(R,L,r){"use strict";var y=r("mh/l"),f=r("lSNA"),x=r.n(f),A=r("q1tI"),m=r("TSYQ"),p=r.n(m),d=r("H84U"),u=function(K){return A.createElement(d.a,null,function(z){var V,Q=z.getPrefixCls,G=z.direction,ee=K.prefixCls,se=K.className,ye=se===void 0?"":se,he=Q("input-group",ee),ke=p()(he,(V={},x()(V,"".concat(he,"-lg"),K.size==="large"),x()(V,"".concat(he,"-sm"),K.size==="small"),x()(V,"".concat(he,"-compact"),K.compact),x()(V,"".concat(he,"-rtl"),G==="rtl"),V),ye);return A.createElement("span",{className:ke,style:K.style,onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave,onFocus:K.onFocus,onBlur:K.onBlur},K.children)})},a=u,i=r("pVnL"),t=r.n(i),s=r("c+Xe"),e=r("SymL"),l=r.n(e),n=r("zU+y"),o=r.n(n),c=r("2/Rp"),h=r("3Nzz"),g=r("0n0R"),v=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},b=A.forwardRef(function(j,K){var z=A.useRef(null),V=function(Pe){var Ue=j.onChange,$e=j.onSearch;Pe&&Pe.target&&Pe.type==="click"&&$e&&$e(Pe.target.value,Pe),Ue&&Ue(Pe)},Q=function(Pe){var Ue;document.activeElement===((Ue=z.current)===null||Ue===void 0?void 0:Ue.input)&&Pe.preventDefault()},G=function(Pe){var Ue,$e=j.onSearch,Ge=j.loading,ht=j.disabled;if(Ge||ht)return;$e&&$e((Ue=z.current)===null||Ue===void 0?void 0:Ue.input.value,Pe)},ee=function(Pe){var Ue=j.enterButton,$e=j.size;return Ue?A.createElement(h.b.Consumer,{key:"enterButton"},function(Ge){return A.createElement(c.a,{className:"".concat(Pe,"-button"),type:"primary",size:$e||Ge},A.createElement(o.a,null))}):A.createElement(o.a,{className:"".concat(Pe,"-icon"),key:"loadingIcon"})},se=function(Pe){var Ue=j.suffix,$e=j.enterButton,Ge=j.loading;if(Ge&&!$e)return[Ue,ee(Pe)];if($e)return Ue;var ht=A.createElement(l.a,{className:"".concat(Pe,"-icon"),key:"searchIcon",onClick:G});return Ue?[Object(g.c)(Ue,null,{key:"suffix"}),ht]:ht},ye=function(Pe,Ue){var $e=j.enterButton,Ge=j.disabled,ht=j.addonAfter,Fe=j.loading,oe="".concat(Pe,"-button");if(Fe&&$e)return[ee(Pe),ht];if(!$e)return ht;var rt,fe=$e,J=fe.type&&fe.type.__ANT_BUTTON===!0;return J||fe.type==="button"?rt=Object(g.a)(fe,t()({onMouseDown:Q,onClick:G,key:"enterButton"},J?{className:oe,size:Ue}:{})):rt=A.createElement(c.a,{className:oe,type:"primary",size:Ue,disabled:Ge,key:"enterButton",onMouseDown:Q,onClick:G},$e===!0?A.createElement(l.a,null):$e),ht?[rt,Object(g.c)(ht,null,{key:"addonAfter"})]:rt},he=function(Pe){var Ue=Pe.getPrefixCls,$e=Pe.direction,Ge=j.prefixCls,ht=j.inputPrefixCls,Fe=j.enterButton,oe=j.className,rt=j.size,fe=v(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete fe.onSearch,delete fe.loading;var J=Ue("input-search",Ge),Y=Ue("input",ht),$=function(we){var Ce;if(Fe){var Se;Ce=p()(J,oe,(Se={},x()(Se,"".concat(J,"-rtl"),$e==="rtl"),x()(Se,"".concat(J,"-enter-button"),!!Fe),x()(Se,"".concat(J,"-").concat(we),!!we),Se))}else Ce=p()(J,oe,x()({},"".concat(J,"-rtl"),$e==="rtl"));return Ce};return A.createElement(h.b.Consumer,null,function(de){return A.createElement(y.a,t()({ref:Object(s.a)(z,K),onPressEnter:G},fe,{size:rt||de,prefixCls:Y,addonAfter:ye(J,rt||de),suffix:se(J),onChange:V,className:$(rt||de)}))})};return A.createElement(d.a,null,he)});b.defaultProps={enterButton:!1},b.displayName="Search";var S=b,E=r("whJP"),C=r("J4zp"),_=r.n(C),T=r("BGR+"),w=r("meAc"),O=r.n(w),I=r("O49L"),k=r.n(I),M=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},U={click:"onClick",hover:"onMouseOver"},P=A.forwardRef(function(j,K){var z=Object(A.useState)(!1),V=_()(z,2),Q=V[0],G=V[1],ee=function(){var ke=j.disabled;if(ke)return;G(!Q)},se=function(ke){var Pe,Ue=j.action,$e=j.iconRender,Ge=$e===void 0?function(){return null}:$e,ht=U[Ue]||"",Fe=Ge(Q),oe=(Pe={},x()(Pe,ht,ee),x()(Pe,"className","".concat(ke,"-icon")),x()(Pe,"key","passwordIcon"),x()(Pe,"onMouseDown",function(fe){fe.preventDefault()}),x()(Pe,"onMouseUp",function(fe){fe.preventDefault()}),Pe);return A.cloneElement(A.isValidElement(Fe)?Fe:A.createElement("span",null,Fe),oe)},ye=function(ke){var Pe=ke.getPrefixCls,Ue=j.className,$e=j.prefixCls,Ge=j.inputPrefixCls,ht=j.size,Fe=j.visibilityToggle,oe=M(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),rt=Pe("input",Ge),fe=Pe("input-password",$e),J=Fe&&se(fe),Y=p()(fe,Ue,x()({},"".concat(fe,"-").concat(ht),!!ht)),$=t()(t()({},Object(T.default)(oe,["suffix","iconRender"])),{type:Q?"text":"password",className:Y,prefixCls:rt,suffix:J});return ht&&($.size=ht),A.createElement(y.a,t()({ref:K},$))};return A.createElement(d.a,null,ye)});P.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(K){return K?A.createElement(O.a,null):A.createElement(k.a,null)}},P.displayName="Password";var X=P;y.a.Group=a,y.a.Search=S,y.a.TextArea=E.a,y.a.Password=X;var F=L.a=y.a},"5s0K":function(R,L,r){var y=r("bYtY");function f(){var x=[],A={},m;return{add:function(p,d,u,a,i){return y.isString(a)&&(i=a,a=0),A[p.id]?!1:(A[p.id]=1,x.push({el:p,target:d,time:u,delay:a,easing:i}),!0)},done:function(p){return m=p,this},start:function(){for(var p=x.length,d=0,u=x.length;d<u;d++){var a=x[d];a.el.animateTo(a.target,a.time,a.delay,a.easing,i)}return this;function i(){p--,p||(x.length=0,A={},m&&m())}}}}L.createWrap=f},"5yev":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};L.default=y},"6/nd":function(R,L,r){var y=r("ProS");y.registerAction("legendScroll","legendscroll",function(f,x){var A=f.scrollDataIndex;A!=null&&x.eachComponent({mainType:"legend",subType:"scroll",query:f},function(m){m.setScrollDataIndex(A)})})},"62sa":function(R,L,r){var y=r("bYtY"),f=r("4NO4"),x=f.makeInner,A=r("zTMp"),m=r("Ez2D"),p=y.each,d=y.curry,u=x();function a(v,b,S){var E=v.currTrigger,C=[v.x,v.y],_=v,T=v.dispatchAction||y.bind(S.dispatchAction,S),w=b.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;g(C)&&(C=m({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},b).point);var O=g(C),I=_.axesInfo,k=w.axesInfo,M=E==="leave"||g(C),U={},P={},X={list:[],map:{}},F={showPointer:d(s,P),showTooltip:d(e,X)};p(w.coordSysMap,function(K,z){var V=O||K.containPoint(C);p(w.coordSysAxesInfo[z],function(Q,G){var ee=Q.axis,se=c(I,Q);if(!M&&V&&(!I||se)){var ye=se&&se.value;ye==null&&!O&&(ye=ee.pointToData(C)),ye!=null&&i(Q,ye,F,!1,U)}})});var j={};return p(k,function(K,z){var V=K.linkGroup;V&&!P[z]&&p(V.axesInfo,function(Q,G){var ee=P[G];if(Q!==K&&ee){var se=ee.value;V.mapper&&(se=K.axis.scale.parse(V.mapper(se,h(Q),h(K)))),j[K.key]=se}})}),p(j,function(K,z){i(k[z],K,F,!0,U)}),l(P,k,U),n(X,C,v,T),o(k,T,S),U}function i(v,b,S,E,C){var _=v.axis;if(_.scale.isBlank()||!_.containData(b))return;if(!v.involveSeries){S.showPointer(v,b);return}var T=t(b,v),w=T.payloadBatch,O=T.snapToValue;w[0]&&C.seriesIndex==null&&y.extend(C,w[0]),!E&&v.snap&&(_.containData(O)&&O!=null&&(b=O)),S.showPointer(v,b,w,C),S.showTooltip(v,T,O)}function t(v,b){var S=b.axis,E=S.dim,C=v,_=[],T=Number.MAX_VALUE,w=-1;return p(b.seriesModels,function(O,I){var k=O.getData().mapDimension(E,!0),M,U;if(O.getAxisTooltipData){var P=O.getAxisTooltipData(k,v,S);U=P.dataIndices,M=P.nestestValue}else{if(U=O.getData().indicesOfNearest(k[0],v,S.type==="category"?.5:null),!U.length)return;M=O.getData().get(k[0],U[0])}if(M==null||!isFinite(M))return;var X=v-M,F=Math.abs(X);F<=T&&((F<T||X>=0&&w<0)&&(T=F,w=X,C=M,_.length=0),p(U,function(j){_.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{payloadBatch:_,snapToValue:C}}function s(v,b,S,E){v[b.key]={value:S,payloadBatch:E}}function e(v,b,S,E){var C=S.payloadBatch,_=b.axis,T=_.model,w=b.axisPointerModel;if(!b.triggerTooltip||!C.length)return;var O=b.coordSys.model,I=A.makeKey(O),k=v.map[I];k||(k=v.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.mainType,dataByAxis:[]},v.list.push(k)),k.dataByAxis.push({axisDim:_.dim,axisIndex:T.componentIndex,axisType:T.type,axisId:T.id,value:E,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:C.slice()})}function l(v,b,S){var E=S.axesInfo=[];p(b,function(C,_){var T=C.axisPointerModel.option,w=v[_];w?(!C.useHandle&&(T.status="show"),T.value=w.value,T.seriesDataIndices=(w.payloadBatch||[]).slice()):!C.useHandle&&(T.status="hide"),T.status==="show"&&E.push({axisDim:C.axis.dim,axisIndex:C.axis.model.componentIndex,value:T.value})})}function n(v,b,S,E){if(g(b)||!v.list.length){E({type:"hideTip"});return}var C=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};E({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:S.tooltipOption,position:S.position,dataIndexInside:C.dataIndexInside,dataIndex:C.dataIndex,seriesIndex:C.seriesIndex,dataByCoordSys:v.list})}function o(v,b,S){var E=S.getZr(),C="axisPointerLastHighlights",_=u(E)[C]||{},T=u(E)[C]={};p(v,function(I,k){var M=I.axisPointerModel.option;M.status==="show"&&p(M.seriesDataIndices,function(U){var P=U.seriesIndex+" | "+U.dataIndex;T[P]=U})});var w=[],O=[];y.each(_,function(I,k){!T[k]&&O.push(I)}),y.each(T,function(I,k){!_[k]&&w.push(I)}),O.length&&S.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),w.length&&S.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function c(v,b){for(var S=0;S<(v||[]).length;S++){var E=v[S];if(b.axis.dim===E.axisDim&&b.axis.model.componentIndex===E.axisIndex)return E}}function h(v){var b=v.axis.model,S={},E=S.axisDim=v.axis.dim;return S.axisIndex=S[E+"AxisIndex"]=b.componentIndex,S.axisName=S[E+"AxisName"]=b.name,S.axisId=S[E+"AxisId"]=b.id,S}function g(v){return!v||v[0]==null||isNaN(v[0])||v[1]==null||isNaN(v[1])}R.exports=a},"6BzB":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.shrinkBuf=y,L.arraySet=f,L.flattenChunks=x,L.Buf32=L.Buf16=L.Buf8=void 0;function y(d,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)}function f(d,u,a,i,t){if(u.subarray&&d.subarray){d.set(u.subarray(a,a+i),t);return}for(var s=0;s<i;s++)d[t+s]=u[a+s]}function x(d){var u,a,i,t,s,e;for(i=0,u=0,a=d.length;u<a;u++)i+=d[u].length;for(e=new Uint8Array(i),t=0,u=0,a=d.length;u<a;u++)s=d[u],e.set(s,t),t+=s.length;return e}var A=Uint8Array;L.Buf8=A;var m=Uint16Array;L.Buf16=m;var p=Int32Array;L.Buf32=p},"6D9b":function(R,L,r){},"6GrX":function(R,L,r){var y=r("mFDi"),f=r("Xnb7"),x=r("bYtY"),A=x.getContext,m=x.extend,p=x.retrieve2,d=x.retrieve3,u=x.trim,a={},i=0,t=5e3,s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function n(X,F){l[X]=F}function o(X,F){F=F||e;var j=X+":"+F;if(a[j])return a[j];for(var K=(X+"").split(`
`),z=0,V=0,Q=K.length;V<Q;V++)z=Math.max(I(K[V],F).width,z);return i>t&&(i=0,a={}),i++,a[j]=z,z}function c(X,F,j,K,z,V,Q,G){return Q?g(X,F,j,K,z,V,Q,G):h(X,F,j,K,z,V,G)}function h(X,F,j,K,z,V,Q){var G=k(X,F,z,V,Q),ee=o(X,F);z&&(ee+=z[1]+z[3]);var se=G.outerHeight,ye=v(0,ee,j),he=b(0,se,K),ke=new y(ye,he,ee,se);return ke.lineHeight=G.lineHeight,ke}function g(X,F,j,K,z,V,Q,G){var ee=M(X,{rich:Q,truncate:G,font:F,textAlign:j,textPadding:z,textLineHeight:V}),se=ee.outerWidth,ye=ee.outerHeight,he=v(0,se,j),ke=b(0,ye,K);return new y(he,ke,se,ye)}function v(X,F,j){return j==="right"?X-=F:j==="center"&&(X-=F/2),X}function b(X,F,j){return j==="middle"?X-=F/2:j==="bottom"&&(X-=F),X}function S(X,F,j){var K=F.textPosition,z=F.textDistance,V=j.x,Q=j.y;z=z||0;var G=j.height,ee=j.width,se=G/2,ye="left",he="top";switch(K){case"left":V-=z,Q+=se,ye="right",he="middle";break;case"right":V+=z+ee,Q+=se,he="middle";break;case"top":V+=ee/2,Q-=z,ye="center",he="bottom";break;case"bottom":V+=ee/2,Q+=G+z,ye="center";break;case"inside":V+=ee/2,Q+=se,ye="center",he="middle";break;case"insideLeft":V+=z,Q+=se,he="middle";break;case"insideRight":V+=ee-z,Q+=se,ye="right",he="middle";break;case"insideTop":V+=ee/2,Q+=z,ye="center";break;case"insideBottom":V+=ee/2,Q+=G-z,ye="center",he="bottom";break;case"insideTopLeft":V+=z,Q+=z;break;case"insideTopRight":V+=ee-z,Q+=z,ye="right";break;case"insideBottomLeft":V+=z,Q+=G-z,he="bottom";break;case"insideBottomRight":V+=ee-z,Q+=G-z,ye="right",he="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=ye,X.textVerticalAlign=he,X}function E(X,F,j){var K={textPosition:X,textDistance:j};return S({},K,F)}function C(X,F,j,K,z){if(!F)return"";var V=(X+"").split(`
`);z=_(F,j,K,z);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=T(V[Q],z);return V.join(`
`)}function _(X,F,j,K){K=m({},K),K.font=F;var j=p(j,"...");K.maxIterations=p(K.maxIterations,2);var z=K.minChar=p(K.minChar,0);K.cnCharWidth=o("\u56FD",F);var V=K.ascCharWidth=o("a",F);K.placeholder=p(K.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<z&&Q>=V;G++)Q-=V;var ee=o(j,F);return ee>Q&&(j="",ee=0),Q=X-ee,K.ellipsis=j,K.ellipsisWidth=ee,K.contentWidth=Q,K.containerWidth=X,K}function T(X,F){var j=F.containerWidth,K=F.font,z=F.contentWidth;if(!j)return"";var V=o(X,K);if(V<=j)return X;for(var Q=0;;Q++){if(V<=z||Q>=F.maxIterations){X+=F.ellipsis;break}var G=Q===0?w(X,z,F.ascCharWidth,F.cnCharWidth):V>0?Math.floor(X.length*z/V):0;X=X.substr(0,G),V=o(X,K)}return X===""&&(X=F.placeholder),X}function w(X,F,j,K){for(var z=0,V=0,Q=X.length;V<Q&&z<F;V++){var G=X.charCodeAt(V);z+=0<=G&&G<=127?j:K}return V}function O(X){return o("\u56FD",X)}function I(X,F){return l.measureText(X,F)}l.measureText=function(X,F){var j=A();return j.font=F||e,j.measureText(X)};function k(X,F,j,K,z){X!=null&&(X+="");var V=p(K,O(F)),Q=X?X.split(`
`):[],G=Q.length*V,ee=G,se=!0;if(j&&(ee+=j[0]+j[2]),X&&z){se=!1;var ye=z.outerHeight,he=z.outerWidth;if(ye!=null&&ee>ye)X="",Q=[];else if(he!=null)for(var ke=_(he-(j?j[1]+j[3]:0),F,z.ellipsis,{minChar:z.minChar,placeholder:z.placeholder}),Pe=0,Ue=Q.length;Pe<Ue;Pe++)Q[Pe]=T(Q[Pe],ke)}return{lines:Q,height:G,outerHeight:ee,lineHeight:V,canCacheByTextString:se}}function M(X,F){var j={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return j;for(var K=s.lastIndex=0,z;(z=s.exec(X))!=null;){var V=z.index;V>K&&U(j,X.substring(K,V)),U(j,z[2],z[1]),K=s.lastIndex}K<X.length&&U(j,X.substring(K,X.length));var Q=j.lines,G=0,ee=0,se=[],ye=F.textPadding,he=F.truncate,ke=he&&he.outerWidth,Pe=he&&he.outerHeight;ye&&(ke!=null&&(ke-=ye[1]+ye[3]),Pe!=null&&(Pe-=ye[0]+ye[2]));for(var Ue=0;Ue<Q.length;Ue++){for(var $e=Q[Ue],Ge=0,ht=0,Fe=0;Fe<$e.tokens.length;Fe++){var oe=$e.tokens[Fe],rt=oe.styleName&&F.rich[oe.styleName]||{},fe=oe.textPadding=rt.textPadding,J=oe.font=rt.font||F.font,Y=oe.textHeight=p(rt.textHeight,O(J));if(fe&&(Y+=fe[0]+fe[2]),oe.height=Y,oe.lineHeight=d(rt.textLineHeight,F.textLineHeight,Y),oe.textAlign=rt&&rt.textAlign||F.textAlign,oe.textVerticalAlign=rt&&rt.textVerticalAlign||"middle",Pe!=null&&G+oe.lineHeight>Pe)return{lines:[],width:0,height:0};oe.textWidth=o(oe.text,J);var $=rt.textWidth,de=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")oe.percentWidth=$,se.push(oe),$=0;else{if(de){$=oe.textWidth;var we=rt.textBackgroundColor,Ce=we&&we.image;Ce&&(Ce=f.findExistImage(Ce),f.isImageReady(Ce)&&($=Math.max($,Ce.width*Y/Ce.height)))}var Se=fe?fe[1]+fe[3]:0;$+=Se;var le=ke!=null?ke-ht:null;le!=null&&le<$&&(!de||le<Se?(oe.text="",oe.textWidth=$=0):(oe.text=C(oe.text,le-Se,J,he.ellipsis,{minChar:he.minChar}),oe.textWidth=o(oe.text,J),$=oe.textWidth+Se))}ht+=oe.width=$,rt&&(Ge=Math.max(Ge,oe.lineHeight))}$e.width=ht,$e.lineHeight=Ge,G+=Ge,ee=Math.max(ee,ht)}j.outerWidth=j.width=p(F.textWidth,ee),j.outerHeight=j.height=p(F.textHeight,G),ye&&(j.outerWidth+=ye[1]+ye[3],j.outerHeight+=ye[0]+ye[2]);for(var Ue=0;Ue<se.length;Ue++){var oe=se[Ue],pe=oe.percentWidth;oe.width=parseInt(pe,10)/100*ee}return j}function U(X,F,j){for(var K=F==="",z=F.split(`
`),V=X.lines,Q=0;Q<z.length;Q++){var G=z[Q],ee={styleName:j,text:G,isLineHolder:!G&&!K};if(Q)V.push({tokens:[ee]});else{var se=(V[V.length-1]||(V[0]={tokens:[]})).tokens,ye=se.length;ye===1&&se[0].isLineHolder?se[0]=ee:(G||!ye||K)&&se.push(ee)}}}function P(X){var F=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return F&&u(F)||X.textFont||X.font}L.DEFAULT_FONT=e,L.$override=n,L.getWidth=o,L.getBoundingRect=c,L.adjustTextX=v,L.adjustTextY=b,L.calculateTextPosition=S,L.adjustTextPositionOnRect=E,L.truncateText=C,L.getLineHeight=O,L.measureText=I,L.parsePlainText=k,L.parseRichText=M,L.makeFont=P},"6Ic6":function(R,L,r){var y=r("bYtY"),f=y.each,x=r("4fz+"),A=r("iRjW"),m=r("Yl7c"),p=r("4NO4"),d=r("IwbS"),u=r("9H2F"),a=u.createTask,i=r("zM3Q"),t=p.makeInner(),s=i();function e(){this.group=new x,this.uid=A.getUID("viewChart"),this.renderTask=a({plan:c,reset:h}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,S){},render:function(b,S,E,C){},highlight:function(b,S,E,C){o(b.getData(),C,"emphasis")},downplay:function(b,S,E,C){o(b.getData(),C,"normal")},remove:function(b,S){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(b,S,E,C){this.render(b,S,E,C)};function n(b,S,E){if(b&&(b.trigger(S,E),b.isGroup&&!d.isHighDownDispatcher(b)))for(var C=0,_=b.childCount();C<_;C++)n(b.childAt(C),S,E)}function o(b,S,E){var C=p.queryDataIndex(b,S),_=S&&S.highlightKey!=null?d.getHighlightDigit(S.highlightKey):null;C!=null?f(p.normalizeToArray(C),function(T){n(b.getItemGraphicEl(T),E,_)}):b.eachItemGraphicEl(function(T){n(T,E,_)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,S){t(b).updateMethod=S};function c(b){return s(b.model)}function h(b){var S=b.model,E=b.ecModel,C=b.api,_=b.payload,T=S.pipelineContext.progressiveRender,w=b.view,O=_&&t(_).updateMethod,I=T?"incrementalPrepareRender":O&&w[O]?O:"render";return I!=="render"&&w[I](S,E,C,_),g[I]}var g={incrementalPrepareRender:{progress:function(b,S){S.view.incrementalRender(b,S.model,S.ecModel,S.api,S.payload)}},render:{forceFirstProgress:!0,progress:function(b,S){S.view.render(S.model,S.ecModel,S.api,S.payload)}}},v=e;R.exports=v},"6MrE":function(R,L,r){},"6Qwc":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};L.default=y},"6UJt":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("v56E"),A=r.n(x),m=r("R9oj"),p=r("5NDa")},"6VBw":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("ODXe"),x=r("rePB"),A=r("Ff2n"),m=r("q1tI"),p=r("TSYQ"),d=r.n(p),u=r("Pw59"),a=r("Qi1f"),i=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function s(b){var S=b.primaryColor,E=b.secondaryColor;t.primaryColor=S,t.secondaryColor=E||Object(a.b)(S),t.calculated=!!E}function e(){return Object(y.a)({},t)}var l=function(S){var E=S.icon,C=S.className,_=S.onClick,T=S.style,w=S.primaryColor,O=S.secondaryColor,I=Object(A.a)(S,i),k=t;if(w&&(k={primaryColor:w,secondaryColor:O||Object(a.b)(w)}),Object(a.f)(),Object(a.g)(Object(a.c)(E),"icon should be icon definiton, but got ".concat(E)),!Object(a.c)(E))return null;var M=E;return M&&typeof M.icon=="function"&&(M=Object(y.a)(Object(y.a)({},M),{},{icon:M.icon(k.primaryColor,k.secondaryColor)})),Object(a.a)(M.icon,"svg-".concat(M.name),Object(y.a)({className:C,onClick:_,style:T,"data-icon":M.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=s;var n=l;function o(b){var S=Object(a.d)(b),E=Object(f.a)(S,2),C=E[0],_=E[1];return n.setTwoToneColors({primaryColor:C,secondaryColor:_})}function c(){var b=n.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var h=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];o("#1890ff");var g=m.forwardRef(function(b,S){var E,C=b.className,_=b.icon,T=b.spin,w=b.rotate,O=b.tabIndex,I=b.onClick,k=b.twoToneColor,M=Object(A.a)(b,h),U=m.useContext(u.a),P=U.prefixCls,X=P===void 0?"anticon":P,F=U.rootClassName,j=d()(F,X,(E={},Object(x.a)(E,"".concat(X,"-").concat(_.name),!!_.name),Object(x.a)(E,"".concat(X,"-spin"),!!T||_.name==="loading"),E),C),K=O;K===void 0&&I&&(K=-1);var z=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,V=Object(a.d)(k),Q=Object(f.a)(V,2),G=Q[0],ee=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":_.name},M),{},{ref:S,tabIndex:K,onClick:I,className:j}),m.createElement(n,{icon:_,primaryColor:G,secondaryColor:ee,style:z}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=o;var v=L.a=g},"6acW":function(R,L,r){var y=r("dt0z"),f=r("gQMU");function x(A){return f(y(A).toLowerCase())}R.exports=x},"6cGi":function(R,L,r){"use strict";r.d(L,"a",function(){return p});var y=r("ODXe"),f=r("mBDr"),x=r("TNol"),A=r("dm2S");function m(d){return d!==void 0}function p(d,u){var a=u||{},i=a.defaultValue,t=a.value,s=a.onChange,e=a.postState,l=Object(A.a)(function(){return m(t)?t:m(i)?typeof i=="function"?i():i:typeof d=="function"?d():d}),n=Object(y.a)(l,2),o=n[0],c=n[1],h=t!==void 0?t:o,g=e?e(h):h,v=Object(f.a)(s),b=Object(A.a)([h]),S=Object(y.a)(b,2),E=S[0],C=S[1];Object(x.b)(function(){var T=E[0];o!==T&&v(o,T)},[E]),Object(x.b)(function(){m(t)||c(t)},[t]);var _=Object(f.a)(function(T,w){c(T,w),C([h],w)});return[g,_]}},"6fms":function(R,L,r){var y=r("SUKs"),f=r("06Qe"),x=r("bYtY"),A=x.each;function m(a){return parseInt(a,10)}function p(a,i){f.initVML(),this.root=a,this.storage=i;var t=document.createElement("div"),s=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",s.style.cssText="position:absolute;left:0;top:0;",a.appendChild(t),this._vmlRoot=s,this._vmlViewport=t,this.resize();var e=i.delFromStorage,l=i.addToStorage;i.delFromStorage=function(n){e.call(i,n),n&&(n.onRemove&&n.onRemove(s))},i.addToStorage=function(n){n.onAdd&&n.onAdd(s),l.call(i,n)},this._firstPaint=!0}p.prototype={constructor:p,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},refresh:function(){var i=this.storage.getDisplayList(!0,!0);this._paintList(i)},_paintList:function(i){for(var t=this._vmlRoot,s=0;s<i.length;s++){var e=i[s];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(t),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(t),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,t),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(i,t){var i=i==null?this._getWidth():i,t=t==null?this._getHeight():t;if(this._width!==i||this._height!==t){this._width=i,this._height=t;var s=this._vmlViewport.style;s.width=i+"px",s.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var i=this.root,t=i.currentStyle;return(i.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var i=this.root,t=i.currentStyle;return(i.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function d(a){return function(){y('In IE8.0 VML mode painter not support method "'+a+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(a){p.prototype[a]=d(a)});var u=p;R.exports=u},"6nK8":function(R,L,r){var y=r("dVn5"),f=r("fo6e"),x=r("dt0z"),A=r("9NmV");function m(p,d,u){return p=x(p),d=u?void 0:d,d===void 0?f(p)?A(p):y(p):p.match(d)||[]}R.exports=m},"6ner":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("1OyB"),x=r("vuIU"),A=r("Ji7U"),m=r("LK+K"),p=r("q1tI"),d=r.n(p),u=r("m+aA"),a=r("Zm9Q"),i=r("Kwbf"),t=r("c+Xe"),s=r("bdgK"),e="rc-observer-key",l=function(n){Object(A.a)(c,n);var o=Object(m.a)(c);function c(){var h;return Object(f.a)(this,c),h=o.apply(this,arguments),h.resizeObserver=null,h.childNode=null,h.currentElement=null,h.state={width:0,height:0,offsetHeight:0,offsetWidth:0},h.onResize=function(g){var v=h.props.onResize,b=g[0].target,S=b.getBoundingClientRect(),E=S.width,C=S.height,_=b.offsetWidth,T=b.offsetHeight,w=Math.floor(E),O=Math.floor(C);if(h.state.width!==w||h.state.height!==O||h.state.offsetWidth!==_||h.state.offsetHeight!==T){var I={width:w,height:O,offsetWidth:_,offsetHeight:T};h.setState(I),v&&Promise.resolve().then(function(){v(Object(y.a)(Object(y.a)({},I),{},{offsetWidth:_,offsetHeight:T}))})}},h.setChildNode=function(g){h.childNode=g},h}return Object(x.a)(c,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var g=this.props.disabled;if(g){this.destroyObserver();return}var v=Object(u.a)(this.childNode||this),b=v!==this.currentElement;b&&(this.destroyObserver(),this.currentElement=v),!this.resizeObserver&&v&&(this.resizeObserver=new s.default(this.onResize),this.resizeObserver.observe(v))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var g=this.props.children,v=Object(a.a)(g);if(v.length>1)Object(i.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(v.length===0)return Object(i.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var b=v[0];if(p.isValidElement(b)&&Object(t.c)(b)){var S=b.ref;v[0]=p.cloneElement(b,{ref:Object(t.a)(S,this.setChildNode)})}return v.length===1?v[0]:v.map(function(E,C){return!p.isValidElement(E)||"key"in E&&E.key!==null?E:p.cloneElement(E,{key:"".concat(e,"-").concat(C)})})}}]),c}(p.Component);l.displayName="ResizeObserver",L.a=l},"6r85":function(R,L,r){var y=r("bYtY");function f(x){if(!x||!y.isArray(x.series))return;y.each(x.series,function(A){y.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}R.exports=f},"6sVZ":function(R,L){var r=Object.prototype;function y(f){var x=f&&f.constructor,A=typeof x=="function"&&x.prototype||r;return f===A}R.exports=y},"6uqw":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("ItGF"),A=r("YOMW"),m=r("XxSj"),p=r("K4ya"),d=r("4NO4"),u=r("OELB"),a=m.mapVisual,i=m.eachVisual,t=f.isArray,s=f.each,e=u.asc,l=u.linearMap,n=f.noop,o=y.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(h,g,v){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,v)},optionUpdated:function(h,g){var v=this.option;x.canvasSupported||(v.realtime=!1),!g&&p.replaceVisualOption(v,h,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(h){var g=this.stateList;h=f.bind(h,this),this.controllerVisuals=p.createVisualMappings(this.option.controller,g,h),this.targetVisuals=p.createVisualMappings(this.option.target,g,h)},getTargetSeriesIndices:function(){var h=this.option.seriesIndex,g=[];return h==null||h==="all"?this.ecModel.eachSeries(function(v,b){g.push(b)}):g=d.normalizeToArray(h),g},eachTargetSeries:function(h,g){f.each(this.getTargetSeriesIndices(),function(v){h.call(g,this.ecModel.getSeriesByIndex(v))},this)},isTargetSeries:function(h){var g=!1;return this.eachTargetSeries(function(v){v===h&&(g=!0)}),g},formatValueText:function(h,g,v){var b=this.option,S=b.precision,E=this.dataBound,C=b.formatter,_,T;if(v=v||["<",">"],f.isArray(h)&&(h=h.slice(),_=!0),T=g?h:_?[w(h[0]),w(h[1])]:w(h),f.isString(C))return C.replace("{value}",_?T[0]:T).replace("{value2}",_?T[1]:T);if(f.isFunction(C))return _?C(h[0],h[1]):C(h);if(_)return h[0]===E[0]?v[0]+" "+T[1]:h[1]===E[1]?v[1]+" "+T[0]:T[0]+" - "+T[1];return T;function w(O){return O===E[0]?"min":O===E[1]?"max":(+O).toFixed(Math.min(S,20))}},resetExtent:function(){var h=this.option,g=e([h.min,h.max]);this._dataExtent=g},getDataDimension:function(h){var g=this.option.dimension,v=h.dimensions;if(g==null&&!v.length)return;if(g!=null)return h.getDimension(g);for(var b=h.dimensions,S=b.length-1;S>=0;S--){var E=b[S],C=h.getDimensionInfo(E);if(!C.isCalculationCoord)return E}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,g=this.option,v={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),S=g.controller||(g.controller={});f.merge(b,v),f.merge(S,v);var E=this.isCategory();C.call(this,b),C.call(this,S),_.call(this,b,"inRange","outOfRange"),T.call(this,S);function C(w){t(g.color)&&!w.inRange&&(w.inRange={color:g.color.slice().reverse()}),w.inRange=w.inRange||{color:h.get("gradientColor")},s(this.stateList,function(O){var I=w[O];if(f.isString(I)){var k=A.get(I,"active",E);k?(w[O]={},w[O][I]=k):delete w[O]}},this)}function _(w,O,I){var k=w[O],M=w[I];k&&!M&&(M=w[I]={},s(k,function(U,P){if(!m.isValidType(P))return;var X=A.get(P,"inactive",E);X!=null&&(M[P]=X,P==="color"&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}))}function T(w){var O=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,k=this.get("inactiveColor");s(this.stateList,function(M){var U=this.itemSize,P=w[M];P||(P=w[M]={color:E?k:[k]}),P.symbol==null&&(P.symbol=O&&f.clone(O)||(E?"roundRect":["roundRect"])),P.symbolSize==null&&(P.symbolSize=I&&f.clone(I)||(E?U[0]:[U[0],U[0]])),P.symbol=a(P.symbol,function(j){return j==="none"||j==="square"?"roundRect":j});var X=P.symbolSize;if(X!=null){var F=-Infinity;i(X,function(j){j>F&&(F=j)}),P.symbolSize=a(X,function(j){return l(j,[0,F],[0,U[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:n,getValueState:n,getVisualMeta:n}),c=o;R.exports=c},"6usn":function(R,L,r){var y=r("bYtY");function f(A,m){return y.map(["Radius","Angle"],function(p,d){var u=this["get"+p+"Axis"](),a=m[d],i=A[d]/2,t="dataTo"+p,s=u.type==="category"?u.getBandWidth():Math.abs(u[t](a-i)-u[t](a+i));return p==="Angle"&&(s=s*Math.PI/180),s},this)}function x(A){var m=A.getRadiusAxis(),p=A.getAngleAxis(),d=m.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:d[1],r0:d[0]},api:{coord:y.bind(function(u){var a=m.dataToRadius(u[0]),i=p.dataToAngle(u[1]),t=A.coordToPoint([a,i]);return t.push(a,i*Math.PI/180),t}),size:y.bind(f,A)}}}R.exports=x},"711d":function(R,L){function r(y){return function(f){return f==null?void 0:f[y]}}R.exports=r},"72pK":function(R,L){function r(x,A,m,p,d,u){x=x||0;var a=m[1]-m[0];if(d!=null&&(d=f(d,[0,a])),u!=null&&(u=Math.max(u,d!=null?d:0)),p==="all"){var i=Math.abs(A[1]-A[0]);i=f(i,[0,a]),d=u=f(i,[d,u]),p=0}A[0]=f(A[0],m),A[1]=f(A[1],m);var t=y(A,p);A[p]+=x;var s=d||0,e=m.slice();t.sign<0?e[0]+=s:e[1]-=s,A[p]=f(A[p],e);var l=y(A,p);d!=null&&(l.sign!==t.sign||l.span<d)&&(A[1-p]=A[p]+t.sign*d);var l=y(A,p);return u!=null&&l.span>u&&(A[1-p]=A[p]+l.sign*u),A}function y(x,A){var m=x[A]-x[1-A];return{span:Math.abs(m),sign:m>0?-1:m<0?1:A?-1:1}}function f(x,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,x))}R.exports=r},"75ce":function(R,L,r){var y=r("ProS");r("IXuL"),r("8X+K");var f=r("f5Yq"),x=r("h8O9"),A=r("/d5a");r("Ae16"),y.registerVisual(f("line","circle","line")),y.registerLayout(x("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(R,L,r){var y=r("ProS");r("IWNH"),r("bNin"),r("v5uJ");var f=r("f5Yq"),x=r("yik8");y.registerVisual(f("tree","circle")),y.registerLayout(x)},"77Zs":function(R,L,r){var y=r("Xi7e");function f(){this.__data__=new y,this.size=0}R.exports=f},"7AJT":function(R,L,r){var y=r("bYtY"),f=r("hM6l"),x=function(m,p,d,u,a){f.call(this,m,p,d),this.type=u||"value",this.position=a||"bottom"};x.prototype={constructor:x,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var p=this.getExtent();return p[0]=this.toGlobalCoord(p[0]),p[1]=this.toGlobalCoord(p[1]),m&&p[0]>p[1]&&p.reverse(),p},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(m,p){return this.coordToData(this.toLocalCoord(m[this.dim==="x"?0:1]),p)},toLocalCoord:null,toGlobalCoord:null},y.inherits(x,f);var A=x;R.exports=A},"7Cbv":function(R,L,r){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),f=new Uint8Array(16);function x(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(f)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return typeof e=="string"&&A.test(e)}for(var p=m,d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));function a(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(d[e[l+0]]+d[e[l+1]]+d[e[l+2]]+d[e[l+3]]+"-"+d[e[l+4]]+d[e[l+5]]+"-"+d[e[l+6]]+d[e[l+7]]+"-"+d[e[l+8]]+d[e[l+9]]+"-"+d[e[l+10]]+d[e[l+11]]+d[e[l+12]]+d[e[l+13]]+d[e[l+14]]+d[e[l+15]]).toLowerCase();if(!p(n))throw TypeError("Stringified UUID is invalid");return n}var i=a;function t(e,l,n){e=e||{};var o=e.random||(e.rng||x)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,l){n=n||0;for(var c=0;c<16;++c)l[n+c]=o[c];return l}return i(o)}var s=L.a=t},"7DRL":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.createHashMap,m=x.isString,p=x.isArray,d=x.each,u=x.assert,a=r("MEGo"),i=a.parseXML,t=A(),s={registerMap:function(l,n,o){var c;return p(n)?c=n:n.svg?c=[{type:"svg",source:n.svg,specialAreas:n.specialAreas}]:(n.geoJson&&!n.features&&(o=n.specialAreas,n=n.geoJson),c=[{type:"geoJSON",source:n,specialAreas:o}]),d(c,function(h){var g=h.type;g==="geoJson"&&(g=h.type="geoJSON");var v=e[g];v(h)}),t.set(l,c)},retrieveMap:function(l){return t.get(l)}},e={geoJSON:function(l){var n=l.source;l.geoJSON=m(n)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n},svg:function(l){l.svgXML=i(l.source)}};R.exports=s},"7G+c":function(R,L,r){var y=r("bYtY"),f=y.createHashMap,x=y.isTypedArray,A=r("Yl7c"),m=A.enableClassCheck,p=r("k9D9"),d=p.SOURCE_FORMAT_ORIGINAL,u=p.SERIES_LAYOUT_BY_COLUMN,a=p.SOURCE_FORMAT_UNKNOWN,i=p.SOURCE_FORMAT_TYPED_ARRAY,t=p.SOURCE_FORMAT_KEYED_COLUMNS;function s(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===t?{}:[]),this.sourceFormat=l.sourceFormat||a,this.seriesLayoutBy=l.seriesLayoutBy||u,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&f(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}s.seriesDataToSource=function(l){return new s({data:l,sourceFormat:x(l)?i:d,fromDataset:!1})},m(s);var e=s;R.exports=e},"7GkX":function(R,L,r){var y=r("b80T"),f=r("A90E"),x=r("MMmD");function A(m){return x(m)?y(m):f(m)}R.exports=A},"7Kak":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("KPFz"),A=r.n(x)},"7Phj":function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=f.parsePercent,A=y.each;function m(a){var i=p(a);A(i,function(t){var s=t.seriesModels;if(!s.length)return;d(t),A(s,function(e,l){u(e,t.boxOffsetList[l],t.boxWidthList[l])})})}function p(a){var i=[],t=[];return a.eachSeriesByType("boxplot",function(s){var e=s.getBaseAxis(),l=y.indexOf(t,e);l<0&&(l=t.length,t[l]=e,i[l]={axis:e,seriesModels:[]}),i[l].seriesModels.push(s)}),i}function d(a){var i,t=a.axis,s=a.seriesModels,e=s.length,l=a.boxWidthList=[],n=a.boxOffsetList=[],o=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;A(s,function(E){h=Math.max(h,E.getData().count())}),i=t.getExtent(),Math.abs(i[1]-i[0])/h}A(s,function(E){var C=E.get("boxWidth");y.isArray(C)||(C=[C,C]),o.push([x(C[0],c)||0,x(C[1],c)||0])});var g=c*.8-2,v=g/e*.3,b=(g-v*(e-1))/e,S=b/2-g/2;A(s,function(E,C){n.push(S),S+=v+b,l.push(Math.min(Math.max(b,o[C][0]),o[C][1]))})}function u(a,i,t){var s=a.coordinateSystem,e=a.getData(),l=t/2,n=a.get("layout")==="horizontal"?0:1,o=1-n,c=["x","y"],h=e.mapDimension(c[n]),g=e.mapDimension(c[o],!0);if(h==null||g.length<5)return;for(var v=0;v<e.count();v++){var b=e.get(h,v),S=O(b,g[2],v),E=O(b,g[0],v),C=O(b,g[1],v),_=O(b,g[3],v),T=O(b,g[4],v),w=[];I(w,C,0),I(w,_,1),w.push(E,C,T,_),k(w,E),k(w,T),k(w,S),e.setItemLayout(v,{initBaseline:S[o],ends:w})}function O(M,U,P){var X=e.get(U,P),F=[];F[n]=M,F[o]=X;var j;return isNaN(M)||isNaN(X)?j=[NaN,NaN]:(j=s.dataToPoint(F),j[n]+=i),j}function I(M,U,P){var X=U.slice(),F=U.slice();X[n]+=l,F[n]-=l,P?M.push(X,F):M.push(F,X)}function k(M,U){var P=U.slice(),X=U.slice();P[n]-=l,X[n]+=l,M.push(P,X)}}R.exports=m},"7SHv":function(R,L,r){var y=r("LPTA"),f=y.devicePixelRatio,x=r("bYtY"),A=r("SUKs"),m=r("mFDi"),p=r("BPZU"),d=r("Xmg4"),u=r("mLcG"),a=r("Dagg"),i=r("ItGF"),t=1e5,s=314159,e=.01,l=.001;function n(_){return parseInt(_,10)}function o(_){return _?_.__builtin__?!0:!(typeof _.resize!="function"||typeof _.refresh!="function"):!1}var c=new m(0,0,0,0),h=new m(0,0,0,0);function g(_,T,w){return c.copy(_.getBoundingRect()),_.transform&&c.applyTransform(_.transform),h.width=T,h.height=w,!c.intersect(h)}function v(_,T){if(_===T)return!1;if(!_||!T||_.length!==T.length)return!0;for(var w=0;w<_.length;w++)if(_[w]!==T[w])return!0;return!1}function b(_,T){for(var w=0;w<_.length;w++){var O=_[w];O.setTransform(T),T.beginPath(),O.buildPath(T,O.shape),T.clip(),O.restoreTransform(T)}}function S(_,T){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+_+"px","height:"+T+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var E=function(T,w,O){this.type="canvas";var I=!T.nodeName||T.nodeName.toUpperCase()==="CANVAS";this._opts=O=x.extend({},O||{}),this.dpr=O.devicePixelRatio||f,this._singleCanvas=I,this.root=T;var k=T.style;k&&(k["-webkit-tap-highlight-color"]="transparent",k["-webkit-user-select"]=k["user-select"]=k["-webkit-touch-callout"]="none",T.innerHTML=""),this.storage=w;var M=this._zlevelList=[],U=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var X=T.width,F=T.height;O.width!=null&&(X=O.width),O.height!=null&&(F=O.height),this.dpr=O.devicePixelRatio||1,T.width=X*this.dpr,T.height=F*this.dpr,this._width=X,this._height=F;var j=new d(T,this,this.dpr);j.__builtin__=!0,j.initContext(),U[s]=j,j.zlevel=s,M.push(s),this._domRoot=T}else{this._width=this._getSize(0),this._height=this._getSize(1);var P=this._domRoot=S(this._width,this._height);T.appendChild(P)}this._hoverlayer=null,this._hoverElements=[]};E.prototype={constructor:E,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var T=this.getViewportRoot();if(T)return{offsetLeft:T.offsetLeft||0,offsetTop:T.offsetTop||0}},refresh:function(T){var w=this.storage.getDisplayList(!0),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,T,this._redrawId);for(var I=0;I<O.length;I++){var k=O[I],M=this._layers[k];if(!M.__builtin__&&M.refresh){var U=I===0?this._backgroundColor:null;M.refresh(U)}}return this.refreshHover(),this},addHover:function(T,w){if(T.__hoverMir)return;var O=new T.constructor({style:T.style,shape:T.shape,z:T.z,z2:T.z2,silent:T.silent});return O.__from=T,T.__hoverMir=O,w&&O.setStyle(w),this._hoverElements.push(O),O},removeHover:function(T){var w=T.__hoverMir,O=this._hoverElements,I=x.indexOf(O,w);I>=0&&O.splice(I,1),T.__hoverMir=null},clearHover:function(T){for(var w=this._hoverElements,O=0;O<w.length;O++){var I=w[O].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var T=this._hoverElements,w=T.length,O=this._hoverlayer;if(O&&O.clear(),!w)return;p(T,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(t));var I={};O.ctx.save();for(var k=0;k<w;){var M=T[k],U=M.__from;if(!(U&&U.__zr)){T.splice(k,1),U.__hoverMir=null,w--;continue}k++,U.invisible||(M.transform=U.transform,M.invTransform=U.invTransform,M.__clipPaths=U.__clipPaths,this._doPaintEl(M,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(T,w,O){if(this._redrawId!==O)return;w=w||!1,this._updateLayerStatus(T);var I=this._doPaintList(T,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var k=this;u(function(){k._paintList(T,w,O)})}},_compositeManually:function(){var T=this.getLayer(s).ctx,w=this._domRoot.width,O=this._domRoot.height;T.clearRect(0,0,w,O),this.eachBuiltinLayer(function(I){I.virtual&&T.drawImage(I.dom,0,0,w,O)})},_doPaintList:function(T,w){for(var O=[],I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I],M=this._layers[k];M.__builtin__&&M!==this._hoverlayer&&(M.__dirty||w)&&O.push(M)}for(var U=!0,P=0;P<O.length;P++){var M=O[P],X=M.ctx,F={};X.save();var j=w?M.__startIndex:M.__drawIndex,K=!w&&M.incremental&&Date.now,z=K&&Date.now(),V=M.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,V);else if(j===M.__startIndex){var Q=T[j];(!Q.incremental||!Q.notClear||w)&&M.clear(!1,V)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=M.__startIndex);for(var G=j;G<M.__endIndex;G++){var ee=T[G];if(this._doPaintEl(ee,M,w,F),ee.__dirty=ee.__dirtyText=!1,K){var se=Date.now()-z;if(se>15)break}}M.__drawIndex=G,M.__drawIndex<M.__endIndex&&(U=!1),F.prevElClipPaths&&X.restore(),X.restore()}return i.wxa&&x.each(this._layers,function(ye){ye&&ye.ctx&&ye.ctx.draw&&ye.ctx.draw()}),U},_doPaintEl:function(T,w,O,I){var k=w.ctx,M=T.transform;if((w.__dirty||O)&&!T.invisible&&T.style.opacity!==0&&!(M&&!M[0]&&!M[3])&&!(T.culling&&g(T,this._width,this._height))){var U=T.__clipPaths,P=I.prevElClipPaths;(!P||v(U,P))&&(P&&(k.restore(),I.prevElClipPaths=null,I.prevEl=null),U&&(k.save(),b(U,k),I.prevElClipPaths=U)),T.beforeBrush&&T.beforeBrush(k),T.brush(k,I.prevEl||null),I.prevEl=T,T.afterBrush&&T.afterBrush(k)}},getLayer:function(T,w){this._singleCanvas&&!this._needsManuallyCompositing&&(T=s);var O=this._layers[T];return O||(O=new d("zr_"+T,this,this.dpr),O.zlevel=T,O.__builtin__=!0,this._layerConfig[T]?x.merge(O,this._layerConfig[T],!0):this._layerConfig[T-e]&&x.merge(O,this._layerConfig[T-e],!0),w&&(O.virtual=w),this.insertLayer(T,O),O.initContext()),O},insertLayer:function(T,w){var O=this._layers,I=this._zlevelList,k=I.length,M=null,U=-1,P=this._domRoot;if(O[T]){A("ZLevel "+T+" has been used already");return}if(!o(w)){A("Layer of zlevel "+T+" is not valid");return}if(k>0&&T>I[0]){for(U=0;U<k-1&&!(I[U]<T&&I[U+1]>T);U++);M=O[I[U]]}if(I.splice(U+1,0,T),O[T]=w,!w.virtual)if(M){var X=M.dom;X.nextSibling?P.insertBefore(w.dom,X.nextSibling):P.appendChild(w.dom)}else P.firstChild?P.insertBefore(w.dom,P.firstChild):P.appendChild(w.dom)},eachLayer:function(T,w){var O=this._zlevelList,I,k;for(k=0;k<O.length;k++)I=O[k],T.call(w,this._layers[I],I)},eachBuiltinLayer:function(T,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__&&T.call(w,I,k)},eachOtherLayer:function(T,w){var O=this._zlevelList,I,k,M;for(M=0;M<O.length;M++)k=O[M],I=this._layers[k],I.__builtin__||T.call(w,I,k)},getLayers:function(){return this._layers},_updateLayerStatus:function(T){this.eachBuiltinLayer(function(F,j){F.__dirty=F.__used=!1});function w(F){k&&(k.__endIndex!==F&&(k.__dirty=!0),k.__endIndex=F)}if(this._singleCanvas)for(var O=1;O<T.length;O++){var I=T[O];if(I.zlevel!==T[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var k=null,M=0,U,O=0;O<T.length;O++){var I=T[O],P=I.zlevel,X;U!==P&&(U=P,M=0),I.incremental?(X=this.getLayer(P+l,this._needsManuallyCompositing),X.incremental=!0,M=1):X=this.getLayer(P+(M>0?e:0),this._needsManuallyCompositing),X.__builtin__||A("ZLevel "+P+" has been used by unkown layer "+X.id),X!==k&&(X.__used=!0,X.__startIndex!==O&&(X.__dirty=!0),X.__startIndex=O,X.incremental?X.__drawIndex=-1:X.__drawIndex=O,w(O),k=X),I.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=O))}w(O),this.eachBuiltinLayer(function(F,j){!F.__used&&F.getElementCount()>0&&(F.__dirty=!0,F.__startIndex=F.__endIndex=F.__drawIndex=0),F.__dirty&&F.__drawIndex<0&&(F.__drawIndex=F.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(T){T.clear()},setBackgroundColor:function(T){this._backgroundColor=T},configLayer:function(T,w){if(w){var O=this._layerConfig;O[T]?x.merge(O[T],w,!0):O[T]=w;for(var I=0;I<this._zlevelList.length;I++){var k=this._zlevelList[I];if(k===T||k===T+e){var M=this._layers[k];x.merge(M,O[T],!0)}}}},delLayer:function(T){var w=this._layers,O=this._zlevelList,I=w[T];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[T],O.splice(x.indexOf(O,T),1)},resize:function(T,w){if(this._domRoot.style){var O=this._domRoot;O.style.display="none";var I=this._opts;if(T!=null&&(I.width=T),w!=null&&(I.height=w),T=this._getSize(0),w=this._getSize(1),O.style.display="",this._width!==T||w!==this._height){O.style.width=T+"px",O.style.height=w+"px";for(var k in this._layers)this._layers.hasOwnProperty(k)&&this._layers[k].resize(T,w);x.each(this._progressiveLayers,function(M){M.resize(T,w)}),this.refresh(!0)}this._width=T,this._height=w}else{if(T==null||w==null)return;this._width=T,this._height=w,this.getLayer(s).resize(T,w)}return this},clearLayer:function(T){var w=this._layers[T];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(T){if(T=T||{},this._singleCanvas&&!this._compositeManually)return this._layers[s].dom;var w=new d("image",this,T.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,T.backgroundColor||this._backgroundColor),T.pixelRatio<=this.dpr){this.refresh();var O=w.dom.width,I=w.dom.height,k=w.ctx;this.eachLayer(function(F){F.__builtin__?k.drawImage(F.dom,0,0,O,I):F.renderToCanvas&&(w.ctx.save(),F.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var M={},U=this.storage.getDisplayList(!0),P=0;P<U.length;P++){var X=U[P];this._doPaintEl(X,w,!0,M)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(T){var w=this._opts,O=["width","height"][T],I=["clientWidth","clientHeight"][T],k=["paddingLeft","paddingTop"][T],M=["paddingRight","paddingBottom"][T];if(w[O]!=null&&w[O]!=="auto")return parseFloat(w[O]);var U=this.root,P=document.defaultView.getComputedStyle(U);return(U[I]||n(P[O])||n(U.style[O]))-(n(P[k])||0)-(n(P[M])||0)|0},pathToImage:function(T,w){w=w||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),k=T.getBoundingRect(),M=T.style,U=M.shadowBlur*w,P=M.shadowOffsetX*w,X=M.shadowOffsetY*w,F=M.hasStroke()?M.lineWidth:0,j=Math.max(F/2,-P+U),K=Math.max(F/2,P+U),z=Math.max(F/2,-X+U),V=Math.max(F/2,X+U),Q=k.width+j+K,G=k.height+z+V;O.width=Q*w,O.height=G*w,I.scale(w,w),I.clearRect(0,0,Q,G),I.dpr=w;var ee={position:T.position,rotation:T.rotation,scale:T.scale};T.position=[j-k.x,z-k.y],T.rotation=0,T.scale=[1,1],T.updateTransform(),T&&T.brush(I);var se=a,ye=new se({style:{x:0,y:0,image:O}});return ee.position!=null&&(ye.position=T.position=ee.position),ee.rotation!=null&&(ye.rotation=T.rotation=ee.rotation),ee.scale!=null&&(ye.scale=T.scale=ee.scale),ye}};var C=E;R.exports=C},"7a+S":function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("YXkt"),A=r("4NO4"),m=f.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(d,u,a){this._data,this._names,this.mergeDefaultAndTheme(d,a),this._initData()},mergeOption:function(d){m.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(d){d==null&&(d=this.option.currentIndex);var u=this._data.count();this.option.loop?d=(d%u+u)%u:(d>=u&&(d=u-1),d<0&&(d=0)),this.option.currentIndex=d},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(d){this.option.autoPlay=!!d},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var d=this.option,u=d.data||[],a=d.axisType,i=this._names=[];if(a==="category"){var t=[];y.each(u,function(l,n){var o=A.getDataItemValue(l),c;y.isObject(l)?(c=y.clone(l),c.value=n):c=n,t.push(c),!y.isString(o)&&(o==null||isNaN(o))&&(o=""),i.push(o+"")}),u=t}var s={category:"ordinal",time:"time"}[a]||"number",e=this._data=new x([{name:"value",type:s}],this);e.initData(u,i)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),p=m;R.exports=p},"7aKB":function(R,L,r){var y=r("bYtY"),f=r("6GrX"),x=r("OELB");function A(S){return isNaN(S)?"-":(S=(S+"").split("."),S[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(S.length>1?"."+S[1]:""))}function m(S,E){return S=(S||"").toLowerCase().replace(/-(.)/g,function(C,_){return _.toUpperCase()}),E&&S&&(S=S.charAt(0).toUpperCase()+S.slice(1)),S}var p=y.normalizeCssArray,d=/([&<>"'])/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function a(S){return S==null?"":(S+"").replace(d,function(E,C){return u[C]})}var i=["a","b","c","d","e","f","g"],t=function(S,E){return"{"+S+(E==null?"":E)+"}"};function s(S,E,C){y.isArray(E)||(E=[E]);var _=E.length;if(!_)return"";for(var T=E[0].$vars||[],w=0;w<T.length;w++){var O=i[w];S=S.replace(t(O),t(O,0))}for(var I=0;I<_;I++)for(var k=0;k<T.length;k++){var M=E[I][T[k]];S=S.replace(t(i[k],I),C?a(M):M)}return S}function e(S,E,C){return y.each(E,function(_,T){S=S.replace("{"+T+"}",C?a(_):_)}),S}function l(S,E){S=y.isString(S)?{color:S,extraCssText:E}:S||{};var C=S.color,_=S.type,E=S.extraCssText,T=S.renderMode||"html",w=S.markerId||"X";return C?T==="html"?_==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+a(C)+";"+(E||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+a(C)+";"+(E||"")+'"></span>':{renderMode:T,content:"{marker"+w+"|} ",style:{color:C}}:""}function n(S,E){return S+="","0000".substr(0,E-S.length)+S}function o(S,E,C){(S==="week"||S==="month"||S==="quarter"||S==="half-year"||S==="year")&&(S=`MM-dd
yyyy`);var _=x.parseDate(E),T=C?"UTC":"",w=_["get"+T+"FullYear"](),O=_["get"+T+"Month"]()+1,I=_["get"+T+"Date"](),k=_["get"+T+"Hours"](),M=_["get"+T+"Minutes"](),U=_["get"+T+"Seconds"](),P=_["get"+T+"Milliseconds"]();return S=S.replace("MM",n(O,2)).replace("M",O).replace("yyyy",w).replace("yy",w%100).replace("dd",n(I,2)).replace("d",I).replace("hh",n(k,2)).replace("h",k).replace("mm",n(M,2)).replace("m",M).replace("ss",n(U,2)).replace("s",U).replace("SSS",n(P,3)),S}function c(S){return S&&S.charAt(0).toUpperCase()+S.substr(1)}var h=f.truncateText;function g(S){return f.getBoundingRect(S.text,S.font,S.textAlign,S.textVerticalAlign,S.textPadding,S.textLineHeight,S.rich,S.truncate)}function v(S,E,C,_,T,w,O,I){return f.getBoundingRect(S,E,C,_,T,I,w,O)}function b(S,E){if(E==="_blank"||E==="blank"){var C=window.open();C.opener=null,C.location=S}else window.open(S,E)}L.addCommas=A,L.toCamelCase=m,L.normalizeCssArray=p,L.encodeHTML=a,L.formatTpl=s,L.formatTplSimple=e,L.getTooltipMarker=l,L.formatTime=o,L.capitalFirst=c,L.truncateText=h,L.getTextBoundingRect=g,L.getTextRect=v,L.windowOpen=b},"7bkD":function(R,L,r){var y=r("bYtY");function f(x,A){A=A||{};var m=x.coordinateSystem,p=x.axis,d={},u=p.position,a=p.orient,i=m.getRect(),t=[i.x,i.x+i.width,i.y,i.y+i.height],s={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[a==="vertical"?s.vertical[u]:t[0],a==="horizontal"?s.horizontal[u]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[a];var l={top:-1,bottom:1,right:1,left:-1};d.labelDirection=d.tickDirection=d.nameDirection=l[u],x.get("axisTick.inside")&&(d.tickDirection=-d.tickDirection),y.retrieve(A.labelInside,x.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var n=A.rotate;return n==null&&(n=x.get("axisLabel.rotate")),d.labelRotation=u==="top"?-n:n,d.z2=1,d}L.layout=f},"7fqy":function(R,L){function r(y){var f=-1,x=Array(y.size);return y.forEach(function(A,m){x[++f]=[m,A]}),x}R.exports=r},"7hqr":function(R,L,r){var y=r("bYtY"),f=y.each,x=y.isString;function A(d,u,a){a=a||{};var i=a.byIndex,t=a.stackedCoordDimension,s=!!(d&&d.get("stack")),e,l,n,o;if(f(u,function(v,b){x(v)&&(u[b]=v={name:v}),s&&!v.isExtraCoord&&(!i&&!e&&v.ordinalMeta&&(e=v),!l&&v.type!=="ordinal"&&v.type!=="time"&&(!t||t===v.coordDim)&&(l=v))}),l&&!i&&!e&&(i=!0),l){n="__\0ecstackresult",o="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=l.coordDim,h=l.type,g=0;f(u,function(v){v.coordDim===c&&g++}),u.push({name:n,coordDim:c,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0}),g++,u.push({name:o,coordDim:o,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:i,stackedOverDimension:o,stackResultDimension:n}}function m(d,u){return!!u&&u===d.getCalculationInfo("stackedDimension")}function p(d,u){return m(d,u)?d.getCalculationInfo("stackResultDimension"):u}L.enableDataStack=A,L.isDimensionStacked=m,L.getStackedDimension=p},"7mYs":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS"),A=r("7aKB"),m=r("OELB"),p={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},d={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},u=y.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(a,i,t){var s=this.group;s.removeAll();var e=a.coordinateSystem,l=e.getRangeInfo(),n=e.getOrient();this._renderDayRect(a,l,s),this._renderLines(a,l,n,s),this._renderYearText(a,l,n,s),this._renderMonthText(a,n,s),this._renderWeekText(a,l,n,s)},_renderDayRect:function(a,i,t){for(var s=a.coordinateSystem,e=a.getModel("itemStyle").getItemStyle(),l=s.getCellWidth(),n=s.getCellHeight(),o=i.start.time;o<=i.end.time;o=s.getNextNDay(o,1).time){var c=s.dataToRect([o],!1).tl,h=new x.Rect({shape:{x:c[0],y:c[1],width:l,height:n},cursor:"default",style:e});t.add(h)}},_renderLines:function(a,i,t,s){var e=this,l=a.coordinateSystem,n=a.getModel("splitLine.lineStyle").getLineStyle(),o=a.get("splitLine.show"),c=n.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,g=0;h.time<=i.end.time;g++){b(h.formatedDate),g===0&&(h=l.getDateInfo(i.start.y+"-"+i.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=l.getDateInfo(v)}b(l.getNextNDay(i.end.time,1).formatedDate);function b(S){e._firstDayOfMonth.push(l.getDateInfo(S)),e._firstDayPoints.push(l.dataToRect([S],!1).tl);var E=e._getLinePointsOfOneWeek(a,S,t);e._tlpoints.push(E[0]),e._blpoints.push(E[E.length-1]),o&&e._drawSplitline(E,n,s)}o&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),n,s),o&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),n,s)},_getEdgesPoints:function(a,i,t){var s=[a[0].slice(),a[a.length-1].slice()],e=t==="horizontal"?0:1;return s[0][e]=s[0][e]-i/2,s[1][e]=s[1][e]+i/2,s},_drawSplitline:function(a,i,t){var s=new x.Polyline({z2:20,shape:{points:a},style:i});t.add(s)},_getLinePointsOfOneWeek:function(a,i,t){var s=a.coordinateSystem;i=s.getDateInfo(i);for(var e=[],l=0;l<7;l++){var n=s.getNextNDay(i.time,l),o=s.dataToRect([n.time],!1);e[2*n.day]=o.tl,e[2*n.day+1]=o[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(a,i){return typeof a=="string"&&a?A.formatTplSimple(a,i):typeof a=="function"?a(i):i.nameMap},_yearTextPositionControl:function(a,i,t,s,e){i=i.slice();var l=["center","bottom"];s==="bottom"?(i[1]+=e,l=["center","top"]):s==="left"?i[0]-=e:s==="right"?(i[0]+=e,l=["center","top"]):i[1]-=e;var n=0;return(s==="left"||s==="right")&&(n=Math.PI/2),{rotation:n,position:i,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(a,i,t,s){var e=a.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),n=e.get("position");n||(n=t!=="horizontal"?"top":"left");var o=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(o[0][0]+o[1][0])/2,h=(o[0][1]+o[1][1])/2,g=t==="horizontal"?0:1,v={top:[c,o[g][1]],bottom:[c,o[1-g][1]],left:[o[1-g][0],h],right:[o[g][0],h]},b=i.start.y;+i.end.y>+i.start.y&&(b=b+"-"+i.end.y);var S=e.get("formatter"),E={start:i.start.y,end:i.end.y,nameMap:b},C=this._formatterLabel(S,E),_=new x.Text({z2:30});x.setTextStyle(_.style,e,{text:C}),_.attr(this._yearTextPositionControl(_,v[n],t,n,l)),s.add(_)},_monthTextPositionControl:function(a,i,t,s,e){var l="left",n="top",o=a[0],c=a[1];return t==="horizontal"?(c=c+e,i&&(l="center"),s==="start"&&(n="bottom")):(o=o+e,i&&(n="middle"),s==="start"&&(l="right")),{x:o,y:c,textAlign:l,textVerticalAlign:n}},_renderMonthText:function(a,i,t){var s=a.getModel("monthLabel");if(!s.get("show"))return;var e=s.get("nameMap"),l=s.get("margin"),n=s.get("position"),o=s.get("align"),c=[this._tlpoints,this._blpoints];f.isString(e)&&(e=p[e.toUpperCase()]||[]);var h=n==="start"?0:1,g=i==="horizontal"?0:1;l=n==="start"?-l:l;for(var v=o==="center",b=0;b<c[h].length-1;b++){var S=c[h][b].slice(),E=this._firstDayOfMonth[b];if(v){var C=this._firstDayPoints[b];S[g]=(C[g]+c[0][b+1][g])/2}var _=s.get("formatter"),T=e[+E.m-1],w={yyyy:E.y,yy:(E.y+"").slice(2),MM:E.m,M:+E.m,nameMap:T},O=this._formatterLabel(_,w),I=new x.Text({z2:30});f.extend(x.setTextStyle(I.style,s,{text:O}),this._monthTextPositionControl(S,v,i,n,l)),t.add(I)}},_weekTextPositionControl:function(a,i,t,s,e){var l="center",n="middle",o=a[0],c=a[1],h=t==="start";return i==="horizontal"?(o=o+s+(h?1:-1)*e[0]/2,l=h?"right":"left"):(c=c+s+(h?1:-1)*e[1]/2,n=h?"bottom":"top"),{x:o,y:c,textAlign:l,textVerticalAlign:n}},_renderWeekText:function(a,i,t,s){var e=a.getModel("dayLabel");if(!e.get("show"))return;var l=a.coordinateSystem,n=e.get("position"),o=e.get("nameMap"),c=e.get("margin"),h=l.getFirstDayOfWeek();f.isString(o)&&(o=d[o.toUpperCase()]||[]);var g=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];c=m.parsePercent(c,v[t==="horizontal"?0:1]),n==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,c=-c);for(var b=0;b<7;b++){var S=l.getNextNDay(g,b),E=l.dataToRect([S.time],!1).center,C=b;C=Math.abs((b+h)%7);var _=new x.Text({z2:30});f.extend(x.setTextStyle(_.style,e,{text:o[C]}),this._weekTextPositionControl(E,t,n,c,v)),s.add(_)}}});R.exports=u},"7oTu":function(R,L,r){var y=r("IMiH"),f=r("QBsz"),x=f.applyTransform,A=y.CMD,m=[[],[],[]],p=Math.sqrt,d=Math.atan2;function u(a,i){var t=a.data,s,e,l,n,o,c,h=A.M,g=A.C,v=A.L,b=A.R,S=A.A,E=A.Q;for(l=0,n=0;l<t.length;){s=t[l++],n=l,e=0;switch(s){case h:e=1;break;case v:e=1;break;case g:e=3;break;case E:e=2;break;case S:var C=i[4],_=i[5],T=p(i[0]*i[0]+i[1]*i[1]),w=p(i[2]*i[2]+i[3]*i[3]),O=d(-i[1]/w,i[0]/T);t[l]*=T,t[l++]+=C,t[l]*=w,t[l++]+=_,t[l++]*=T,t[l++]*=w,t[l++]+=O,t[l++]+=O,l+=2,n=l;break;case b:c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[n++]=c[0],t[n++]=c[1],c[0]+=t[l++],c[1]+=t[l++],x(c,c,i),t[n++]=c[0],t[n++]=c[1]}for(o=0;o<e;o++){var c=m[o];c[0]=t[l++],c[1]=t[l++],x(c,c,i),t[n++]=c[0],t[n++]=c[1]}}}R.exports=u},"7pVf":function(R,L,r){var y=r("ProS"),f=r("ZqQs");r("oE7X"),r("OUJF"),r("3X6L"),r("NH9N"),y.registerPreprocessor(f)},"7ph2":function(R,L){function r(x){return x instanceof Array||(x=[x,x]),x}var y="lineStyle.opacity".split("."),f={seriesType:"lines",reset:function(x,A,m){var p=r(x.get("symbol")),d=r(x.get("symbolSize")),u=x.getData();u.setVisual("fromSymbol",p&&p[0]),u.setVisual("toSymbol",p&&p[1]),u.setVisual("fromSymbolSize",d&&d[0]),u.setVisual("toSymbolSize",d&&d[1]),u.setVisual("opacity",x.get(y));function a(i,t){var s=i.getItemModel(t),e=r(s.getShallow("symbol",!0)),l=r(s.getShallow("symbolSize",!0)),n=s.get(y);e[0]&&i.setItemVisual(t,"fromSymbol",e[0]),e[1]&&i.setItemVisual(t,"toSymbol",e[1]),l[0]&&i.setItemVisual(t,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(t,"toSymbolSize",l[1]),i.setItemVisual(t,"opacity",n)}return{dataEach:u.hasItemOption?a:null}}};R.exports=f},"7uqq":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("AUH6"),p=r("+TT/"),d=r("OELB"),u=r("W4dC"),a=r("7DRL");function i(l,n){var o=l.get("boundingCoords");if(o!=null){var c=o[0],h=o[1];isNaN(c[0])||isNaN(c[1])||isNaN(h[0])||isNaN(h[1])||this.setBoundingRect(c[0],c[1],h[0]-c[0],h[1]-c[1])}var g=this.getBoundingRect(),v,b=l.get("layoutCenter"),S=l.get("layoutSize"),E=n.getWidth(),C=n.getHeight(),_=g.width/g.height*this.aspectScale,T=!1;b&&S&&(b=[d.parsePercent(b[0],E),d.parsePercent(b[1],C)],S=d.parsePercent(S,Math.min(E,C)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(T=!0));var w;if(T){var w={};_>1?(w.width=S,w.height=S/_):(w.height=S,w.width=S*_),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2}else v=l.getBoxLayoutParams(),v.aspect=_,w=p.getLayoutRect(v,{width:E,height:C});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function t(l,n){A.each(n.get("geoCoord"),function(o,c){l.addGeoCoord(c,o)})}var s={dimensions:m.prototype.dimensions,create:function(l,n){var o=[];l.eachComponent("geo",function(h,g){var v=h.get("map"),b=h.get("aspectScale"),S=!0,E=a.retrieveMap(v);E&&E[0]&&E[0].type==="svg"?(b==null&&(b=1),S=!1):b==null&&(b=.75);var C=new m(v+g,v,h.get("nameMap"),S);C.aspectScale=b,C.zoomLimit=h.get("scaleLimit"),o.push(C),t(C,h),h.coordinateSystem=C,C.model=h,C.resize=i,C.resize(h,n)}),l.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var v=h.get("geoIndex")||0;h.coordinateSystem=o[v]}});var c={};return l.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var g=h.getMapType();c[g]=c[g]||[],c[g].push(h)}}),A.each(c,function(h,g){var v=A.map(h,function(S){return S.get("nameMap")}),b=new m(g,g,A.mergeAll(v));b.zoomLimit=A.retrieve.apply(null,A.map(h,function(S){return S.get("scaleLimit")})),o.push(b),b.resize=i,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],n),A.each(h,function(S){S.coordinateSystem=b,t(b,S)})}),o},getFilledRegions:function(l,n,o){for(var c=(l||[]).slice(),h=A.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var v=u.load(n,o);return A.each(v.regions,function(b){var S=b.name;!h.get(S)&&c.push({name:S})}),c}};x.registerCoordinateSystem("geo",s);var e=s;R.exports=e},"7yuC":function(R,L,r){var y=r("QBsz"),f=y.scaleAndAdd;function x(A,m,p){for(var d=p.rect,u=d.width,a=d.height,i=[d.x+u/2,d.y+a/2],t=p.gravity==null?.1:p.gravity,s=0;s<A.length;s++){var e=A[s];e.p||(e.p=y.create(u*(Math.random()-.5)+i[0],a*(Math.random()-.5)+i[1])),e.pp=y.clone(e.p),e.edges=null}var l=p.friction==null?.6:p.friction,n=l;return{warmUp:function(){n=l*.8},setFixed:function(o){A[o].fixed=!0},setUnfixed:function(o){A[o].fixed=!1},step:function(o){for(var c=[],h=A.length,g=0;g<m.length;g++){var v=m[g];if(v.ignoreForceLayout)continue;var b=v.n1,S=v.n2;y.sub(c,S.p,b.p);var E=y.len(c)-v.d,C=S.w/(b.w+S.w);isNaN(C)&&(C=0),y.normalize(c,c),!b.fixed&&f(b.p,b.p,c,C*E*n),!S.fixed&&f(S.p,S.p,c,-(1-C)*E*n)}for(var g=0;g<h;g++){var _=A[g];_.fixed||(y.sub(c,i,_.p),f(_.p,_.p,c,t*n))}for(var g=0;g<h;g++)for(var b=A[g],T=g+1;T<h;T++){var S=A[T];y.sub(c,S.p,b.p);var E=y.len(c);E===0&&(y.set(c,Math.random()-.5,Math.random()-.5),E=1);var w=(b.rep+S.rep)/E/E;!b.fixed&&f(b.pp,b.pp,c,w),!S.fixed&&f(S.pp,S.pp,c,-w)}for(var O=[],g=0;g<h;g++){var _=A[g];_.fixed||(y.sub(O,_.p,_.pp),f(_.p,_.p,O,n),y.copy(_.pp,_.p))}n=n*.992,o&&o(A,m,n<.01)}}}L.forceLayout=x},"8+yF":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},f={lookup:function(A){if(A>=32&&A<=255)return A;var m=y[A];return m!==void 0?m:16777216|A}};L.default=f},"8CQX":function(R,L,r){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(o){return typeof o}:y=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},y(l)}Object.defineProperty(L,"__esModule",{value:!0}),L.getKeycode=t,L.getKey=s,L.getKeysym=e;var f=i(r("mHUz")),x=i(r("8+yF")),A=i(r("6Qwc")),m=i(r("gIYZ")),p=i(r("mTgk")),d=a(r("GdRQ"));function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var n=u();if(n&&n.has(l))return n.get(l);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(o,h,g):o[h]=l[h]}return o.default=l,n&&n.set(l,o),o}function i(l){return l&&l.__esModule?l:{default:l}}function t(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in A.default){var n=A.default[l.keyCode];if(d.isMac()&&n==="ContextMenu"&&(n="MetaRight"),l.location===2)switch(n){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(n){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return n}return"Unidentified"}function s(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!d.isIE()&&!d.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var n=t(l);return n in m.default?m.default[n]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var n=s(l);if(n==="Unidentified")return null;if(n in p.default){var o=l.location;if(n==="Meta"&&o===0&&(o=2),n==="Clear"&&o===3){var c=t(l);c==="NumLock"&&(o=0)}if((o===void 0||o>3)&&(o=0),n==="Meta"){var h=t(l);if(h==="AltLeft")return f.default.XK_Meta_L;if(h==="AltRight")return f.default.XK_Meta_R}if(n==="Clear"){var g=t(l);if(g==="NumLock")return f.default.XK_Num_Lock}return p.default[n][o]}if(n.length!==1)return null;var v=n.charCodeAt();return v?x.default.lookup(v):null}},"8EBN":function(R,L,r){(function(y){y(r("VrN/"))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var f=0;f<y.modeInfo.length;f++){var x=y.modeInfo[f];x.mimes&&(x.mime=x.mimes[0])}y.findModeByMIME=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.mime==A)return p;if(p.mimes){for(var d=0;d<p.mimes.length;d++)if(p.mimes[d]==A)return p}}if(/\+xml$/.test(A))return y.findModeByMIME("application/xml");if(/\+json$/.test(A))return y.findModeByMIME("application/json")},y.findModeByExtension=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.ext){for(var d=0;d<p.ext.length;d++)if(p.ext[d]==A)return p}}},y.findModeByFileName=function(A){for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.file&&p.file.test(A))return p}var d=A.lastIndexOf("."),u=d>-1&&A.substring(d+1,A.length);if(u)return y.findModeByExtension(u)},y.findModeByName=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var p=y.modeInfo[m];if(p.name.toLowerCase()==A)return p;if(p.alias){for(var d=0;d<p.alias.length;d++)if(p.alias[d].toLowerCase()==A)return p}}}})},"8IMR":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};L.default=y},"8K/p":function(R,L,r){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=p(r("Lo0S")),x=A(r("ItS6"));function A(t){return t&&t.__esModule?t:{default:t}}function m(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return m=function(){return t},t}function p(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var s=m();if(s&&s.has(t))return s.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=l?Object.getOwnPropertyDescriptor(t,n):null;o&&(o.get||o.set)?Object.defineProperty(e,n,o):e[n]=t[n]}return e.default=t,s&&s.set(t,e),e}function d(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function u(t,s){for(var e=0;e<s.length;e++){var l=s[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function a(t,s,e){return s&&u(t.prototype,s),e&&u(t,e),t}var i=function(){function t(){d(this,t),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var s=0;s<4;s++)this._zlibs[s]=new x.default}return a(t,[{key:"decodeRect",value:function(e,l,n,o,c,h,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var v=0;v<4;v++)this._ctl>>v&1&&(this._zlibs[v].reset(),f.Info("Reset zlib stream "+v));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,l,n,o,c,h,g);else if(this._ctl===9)b=this._jpegRect(e,l,n,o,c,h,g);else if(this._ctl===10)b=this._pngRect(e,l,n,o,c,h,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,l,n,o,c,h,g);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return b&&(this._ctl=null),b}},{key:"_fillRect",value:function(e,l,n,o,c,h,g){if(c.rQwait("TIGHT",3))return!1;var v=c.rQi,b=c.rQ;return h.fillRect(e,l,n,o,[b[v+2],b[v+1],b[v]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,n,o,c,h,g){var v=this._readData(c);return v===null?!1:(h.imageRect(e,l,n,o,"image/jpeg",v),!0)}},{key:"_pngRect",value:function(e,l,n,o,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,n,o,c,h,g,v){if(this._filter===null)if(e&4){if(h.rQwait("TIGHT",1))return!1;this._filter=h.rQshift8()}else this._filter=0;var b=e&3,S;switch(this._filter){case 0:S=this._copyFilter(b,l,n,o,c,h,g,v);break;case 1:S=this._paletteFilter(b,l,n,o,c,h,g,v);break;case 2:S=this._gradientFilter(b,l,n,o,c,h,g,v);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return S&&(this._filter=null),S}},{key:"_copyFilter",value:function(e,l,n,o,c,h,g,v){var b=o*c*3,S;if(b<12){if(h.rQwait("TIGHT",b))return!1;S=h.rQshiftBytes(b)}else{if(S=this._readData(h),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(l,n,o,c,S,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,n,o,c,h,g,v){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,S=b*3;if(h.rQwait("TIGHT palette",1+S))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,S)}var E=this._numColors<=2?1:8,C=Math.floor((o*E+7)/8),_=C*c,T;if(_<12){if(h.rQwait("TIGHT",_))return!1;T=h.rQshiftBytes(_)}else{if(T=this._readData(h),T===null)return!1;this._zlibs[e].setInput(T),T=this._zlibs[e].inflate(_),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,n,o,c,T,this._palette,g):this._paletteRect(l,n,o,c,T,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,n,o,c,h,g){for(var v=this._getScratchBuffer(n*o*4),b=Math.floor((n+7)/8),S=Math.floor(n/8),E=0;E<o;E++){var C=void 0,_=void 0,T=void 0;for(T=0;T<S;T++)for(var w=7;w>=0;w--)C=(E*n+T*8+7-w)*4,_=(c[E*b+T]>>w&1)*3,v[C]=h[_],v[C+1]=h[_+1],v[C+2]=h[_+2],v[C+3]=255;for(var O=7;O>=8-n%8;O--)C=(E*n+T*8+7-O)*4,_=(c[E*b+T]>>O&1)*3,v[C]=h[_],v[C+1]=h[_+1],v[C+2]=h[_+2],v[C+3]=255}g.blitRgbxImage(e,l,n,o,v,0,!1)}},{key:"_paletteRect",value:function(e,l,n,o,c,h,g){for(var v=this._getScratchBuffer(n*o*4),b=n*o*4,S=0,E=0;S<b;S+=4,E++){var C=c[E]*3;v[S]=h[C],v[S+1]=h[C+1],v[S+2]=h[C+2],v[S+3]=255}g.blitRgbxImage(e,l,n,o,v,0,!1)}},{key:"_gradientFilter",value:function(e,l,n,o,c,h,g,v){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var n=e.rQshiftBytes(this._len);return this._len=0,n}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),t}();L.default=i},"8SMY":function(R,L,r){var y=r("n4Lv"),f=y.prepareDataCoordInfo,x=y.getStackedOnPoint;function A(p,d){var u=[];return d.diff(p).add(function(a){u.push({cmd:"+",idx:a})}).update(function(a,i){u.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){u.push({cmd:"-",idx:a})}).execute(),u}function m(p,d,u,a,i,t,s,e){for(var l=A(p,d),n=[],o=[],c=[],h=[],g=[],v=[],b=[],S=f(i,d,s),E=f(t,p,e),C=0;C<l.length;C++){var _=l[C],T=!0;switch(_.cmd){case"=":var w=p.getItemLayout(_.idx),O=d.getItemLayout(_.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=O.slice()),n.push(w),o.push(O),c.push(u[_.idx]),h.push(a[_.idx1]),b.push(d.getRawIndex(_.idx1));break;case"+":var I=_.idx;n.push(i.dataToPoint([d.get(S.dataDimsForPoint[0],I),d.get(S.dataDimsForPoint[1],I)])),o.push(d.getItemLayout(I).slice()),c.push(x(S,i,d,I)),h.push(a[I]),b.push(d.getRawIndex(I));break;case"-":var I=_.idx,k=p.getRawIndex(I);k!==I?(n.push(p.getItemLayout(I)),o.push(t.dataToPoint([p.get(E.dataDimsForPoint[0],I),p.get(E.dataDimsForPoint[1],I)])),c.push(u[I]),h.push(x(E,t,p,I)),b.push(k)):T=!1}T&&(g.push(_),v.push(v.length))}v.sort(function(j,K){return b[j]-b[K]});for(var M=[],U=[],P=[],X=[],F=[],C=0;C<v.length;C++){var I=v[C];M[C]=n[I],U[C]=o[I],P[C]=c[I],X[C]=h[I],F[C]=g[I]}return{current:M,next:U,stackedOnCurrent:P,stackedOnNext:X,status:F}}R.exports=m},"8Skl":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="DownOutlined";var d=L.a=f.forwardRef(p)},"8Th4":function(R,L,r){var y=r("3LNs"),f=r("/y7N"),x=r("7bkD"),A=r("Znkb"),m=["x","y"],p=["width","height"],d=y.extend({makeElOption:function(s,e,l,n,o){var c=l.axis,h=c.coordinateSystem,g=i(h,1-a(c)),v=h.dataToPoint(e)[0],b=n.get("type");if(b&&b!=="none"){var S=f.buildElStyle(n),E=u[b](c,v,g);E.style=S,s.graphicKey=E.type,s.pointer=E}var C=x.layout(l);f.buildCartesianSingleLabelElOption(e,s,C,l,n,o)},getHandleTransform:function(s,e,l){var n=x.layout(e,{labelInside:!1});return n.labelMargin=l.get("handle.margin"),{position:f.getTransformedPosition(e.axis,s,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(s,e,l,n){var o=l.axis,c=o.coordinateSystem,h=a(o),g=i(c,h),v=s.position;v[h]+=e[h],v[h]=Math.min(g[1],v[h]),v[h]=Math.max(g[0],v[h]);var b=i(c,1-h),S=(b[1]+b[0])/2,E=[S,S];return E[h]=v[h],{position:v,rotation:s.rotation,cursorPoint:E,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(s,e,l){var n=f.makeLineShape([e,l[0]],[e,l[1]],a(s));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(s,e,l){var n=s.getBandWidth(),o=l[1]-l[0];return{type:"Rect",shape:f.makeRectShape([e-n/2,l[0]],[n,o],a(s))}}};function a(s){return s.isHorizontal()?0:1}function i(s,e){var l=s.getRect();return[l[m[e]],l[m[e]]+l[p[e]]]}A.registerAxisPointerClass("SingleAxisPointer",d);var t=d;R.exports=t},"8Uz6":function(R,L,r){var y=r("hNWo"),f=r("+TT/"),x=f.mergeLayoutParam,A=f.getLayoutParams,m=y.extend({type:"legend.scroll",setScrollDataIndex:function(u){this.option.scrollDataIndex=u},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(u,a,i,t){var s=A(u);m.superCall(this,"init",u,a,i,t),p(this,u,s)},mergeOption:function(u,a){m.superCall(this,"mergeOption",u,a),p(this,this.option,u)}});function p(u,a,i){var t=u.getOrient(),s=[1,1];s[t.index]=0,x(a,i,{type:"box",ignoreSize:s})}var d=m;R.exports=d},"8X+K":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("4mN7"),m=A.fromPoints,p=r("9wZj"),d=r("FBjb"),u=r("8SMY"),a=r("IwbS"),i=r("4NO4"),t=r("1NG9"),s=t.Polyline,e=t.Polygon,l=r("6Ic6"),n=r("n4Lv"),o=n.prepareDataCoordInfo,c=n.getStackedOnPoint,h=r("sK/D"),g=h.createGridClipPath,v=h.createPolarClipPath;function b(M,U){if(M.length!==U.length)return;for(var P=0;P<M.length;P++){var X=M[P],F=U[P];if(X[0]!==F[0]||X[1]!==F[1])return}return!0}function S(M,U){var P=[],X=[],F=[],j=[];return m(M,P,X),m(U,F,j),Math.max(Math.abs(P[0]-F[0]),Math.abs(P[1]-F[1]),Math.abs(X[0]-j[0]),Math.abs(X[1]-j[1]))}function E(M){return typeof M=="number"?M:M?.5:0}function C(M,U,P){if(!P.valueDim)return[];for(var X=[],F=0,j=U.count();F<j;F++)X.push(c(P,M,U,F));return X}function _(M,U,P){for(var X=U.getBaseAxis(),F=X.dim==="x"||X.dim==="radius"?0:1,j=[],K=0;K<M.length-1;K++){var z=M[K+1],V=M[K];j.push(V);var Q=[];switch(P){case"end":Q[F]=z[F],Q[1-F]=V[1-F],j.push(Q);break;case"middle":var G=(V[F]+z[F])/2,ee=[];Q[F]=ee[F]=G,Q[1-F]=V[1-F],ee[1-F]=z[1-F],j.push(Q),j.push(ee);break;default:Q[F]=V[F],Q[1-F]=z[1-F],j.push(Q)}}return M[K]&&j.push(M[K]),j}function T(M,U){var P=M.getVisual("visualMeta");if(!P||!P.length||!M.count())return;if(U.type!=="cartesian2d")return;for(var X,F,j=P.length-1;j>=0;j--){var K=P[j].dimension,z=M.dimensions[K],V=M.getDimensionInfo(z);if(X=V&&V.coordDim,X==="x"||X==="y"){F=P[j];break}}if(!F)return;var Q=U.getAxis(X),G=x.map(F.stops,function($e){return{coord:Q.toGlobalCoord(Q.dataToCoord($e.value)),color:$e.color}}),ee=G.length,se=F.outerColors.slice();ee&&G[0].coord>G[ee-1].coord&&(G.reverse(),se.reverse());var ye=10,he=G[0].coord-ye,ke=G[ee-1].coord+ye,Pe=ke-he;if(Pe<.001)return"transparent";x.each(G,function($e){$e.offset=($e.coord-he)/Pe}),G.push({offset:ee?G[ee-1].offset:.5,color:se[1]||"transparent"}),G.unshift({offset:ee?G[0].offset:.5,color:se[0]||"transparent"});var Ue=new a.LinearGradient(0,0,0,0,G,!0);return Ue[X]=he,Ue[X+"2"]=ke,Ue}function w(M,U,P){var X=M.get("showAllSymbol"),F=X==="auto";if(X&&!F)return;var j=P.getAxesByScale("ordinal")[0];if(!j)return;if(F&&O(j,U))return;var K=U.mapDimension(j.dim),z={};return x.each(j.getViewLabels(),function(V){z[V.tickValue]=1}),function(V){return!z.hasOwnProperty(U.get(K,V))}}function O(M,U){var P=M.getExtent(),X=Math.abs(P[1]-P[0])/M.scale.count();isNaN(X)&&(X=0);for(var F=U.count(),j=Math.max(1,Math.round(F/5)),K=0;K<F;K+=j)if(d.getSymbolSize(U,K)[M.isHorizontal()?1:0]*1.5>X)return!1;return!0}function I(M,U,P){if(M.type==="cartesian2d"){var X=M.getBaseAxis().isHorizontal(),F=g(M,U,P);if(!P.get("clip",!0)){var j=F.shape,K=Math.max(j.width,j.height);X?(j.y-=K,j.height+=K*2):(j.x-=K,j.width+=K*2)}return F}else return v(M,U,P)}var k=l.extend({type:"line",init:function(){var M=new a.Group,U=new p;this.group.add(U.group),this._symbolDraw=U,this._lineGroup=M},render:function(M,U,P){var X=M.coordinateSystem,F=this.group,j=M.getData(),K=M.getModel("lineStyle"),z=M.getModel("areaStyle"),V=j.mapArray(j.getItemLayout),Q=X.type==="polar",G=this._coordSys,ee=this._symbolDraw,se=this._polyline,ye=this._polygon,he=this._lineGroup,ke=M.get("animation"),Pe=!z.isEmpty(),Ue=z.get("origin"),$e=o(X,j,Ue),Ge=C(X,j,$e),ht=M.get("showSymbol"),Fe=ht&&!Q&&w(M,j,X),oe=this._data;oe&&oe.eachItemGraphicEl(function(we,Ce){we.__temp&&(F.remove(we),oe.setItemGraphicEl(Ce,null))}),ht||ee.remove(),F.add(he);var rt=!Q&&M.get("step"),fe;X&&X.getArea&&M.get("clip",!0)&&(fe=X.getArea(),fe.width!=null?(fe.x-=.1,fe.y-=.1,fe.width+=.2,fe.height+=.2):fe.r0&&(fe.r0-=.5,fe.r1+=.5)),this._clipShapeForSymbol=fe,se&&G.type===X.type&&rt===this._step?(Pe&&!ye?ye=this._newPolygon(V,Ge,X,ke):ye&&!Pe&&(he.remove(ye),ye=this._polygon=null),he.setClipPath(I(X,!1,M)),ht&&ee.updateData(j,{isIgnore:Fe,clipShape:fe}),j.eachItemGraphicEl(function(we){we.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ge)||!b(this._points,V))&&(ke?this._updateAnimation(j,Ge,X,P,rt,Ue):(rt&&(V=_(V,X,rt),Ge=_(Ge,X,rt)),se.setShape({points:V}),ye&&ye.setShape({points:V,stackedOnPoints:Ge})))):(ht&&ee.updateData(j,{isIgnore:Fe,clipShape:fe}),rt&&(V=_(V,X,rt),Ge=_(Ge,X,rt)),se=this._newPolyline(V,X,ke),Pe&&(ye=this._newPolygon(V,Ge,X,ke)),he.setClipPath(I(X,!0,M)));var J=T(j,X)||j.getVisual("color");se.useStyle(x.defaults(K.getLineStyle(),{fill:"none",stroke:J,lineJoin:"bevel"}));var Y=M.get("smooth");if(Y=E(M.get("smooth")),se.setShape({smooth:Y,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")}),ye){var $=j.getCalculationInfo("stackedOnSeries"),de=0;ye.useStyle(x.defaults(z.getAreaStyle(),{fill:J,opacity:.7,lineJoin:"bevel"})),$&&(de=E($.get("smooth"))),ye.setShape({smooth:Y,stackedOnSmooth:de,smoothMonotone:M.get("smoothMonotone"),connectNulls:M.get("connectNulls")})}this._data=j,this._coordSys=X,this._stackedOnPoints=Ge,this._points=V,this._step=rt,this._valueOrigin=Ue},dispose:function(){},highlight:function(M,U,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(!(j instanceof Array)&&j!=null&&j>=0){var K=F.getItemGraphicEl(j);if(!K){var z=F.getItemLayout(j);if(!z)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(z[0],z[1]))return;K=new d(F,j),K.position=z,K.setZ(M.get("zlevel"),M.get("z")),K.ignore=isNaN(z[0])||isNaN(z[1]),K.__temp=!0,F.setItemGraphicEl(j,K),K.stopSymbolAnimation(!0),this.group.add(K)}K.highlight()}else l.prototype.highlight.call(this,M,U,P,X)},downplay:function(M,U,P,X){var F=M.getData(),j=i.queryDataIndex(F,X);if(j!=null&&j>=0){var K=F.getItemGraphicEl(j);K&&(K.__temp?(F.setItemGraphicEl(j,null),this.group.remove(K)):K.downplay())}else l.prototype.downplay.call(this,M,U,P,X)},_newPolyline:function(M){var U=this._polyline;return U&&this._lineGroup.remove(U),U=new s({shape:{points:M},silent:!0,z2:10}),this._lineGroup.add(U),this._polyline=U,U},_newPolygon:function(M,U){var P=this._polygon;return P&&this._lineGroup.remove(P),P=new e({shape:{points:M,stackedOnPoints:U},silent:!0}),this._lineGroup.add(P),this._polygon=P,P},_updateAnimation:function(M,U,P,X,F,j){var K=this._polyline,z=this._polygon,V=M.hostModel,Q=u(this._data,M,this._stackedOnPoints,U,this._coordSys,P,this._valueOrigin,j),G=Q.current,ee=Q.stackedOnCurrent,se=Q.next,ye=Q.stackedOnNext;if(F&&(G=_(Q.current,P,F),ee=_(Q.stackedOnCurrent,P,F),se=_(Q.next,P,F),ye=_(Q.stackedOnNext,P,F)),S(G,se)>3e3||z&&S(ee,ye)>3e3){K.setShape({points:se}),z&&z.setShape({points:se,stackedOnPoints:ye});return}K.shape.__points=Q.current,K.shape.points=G,a.updateProps(K,{shape:{points:se}},V),z&&(z.setShape({points:G,stackedOnPoints:ee}),a.updateProps(z,{shape:{points:se,stackedOnPoints:ye}},V));for(var he=[],ke=Q.status,Pe=0;Pe<ke.length;Pe++){var Ue=ke[Pe].cmd;if(Ue==="="){var $e=M.getItemGraphicEl(ke[Pe].idx1);$e&&he.push({el:$e,ptIdx:Pe})}}K.animators&&K.animators.length&&K.animators[0].during(function(){for(var Ge=0;Ge<he.length;Ge++){var ht=he[Ge].el;ht.attr("position",K.shape.__points[he[Ge].ptIdx])}})},remove:function(M){var U=this.group,P=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),P&&P.eachItemGraphicEl(function(X,F){X.__temp&&(U.remove(X),P.setItemGraphicEl(F,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});R.exports=k},"8XDt":function(R,L,r){r("qH13");var y=r("aX58"),f=y.registerPainter,x=r("6fms");f("vml",x)},"8XRh":function(R,L,r){"use strict";r.d(L,"a",function(){return Ht});var y=r("rePB"),f=r("VTBJ"),x=r("ODXe"),A=r("U8pU"),m=r("TSYQ"),p=r.n(m),d=r("m+aA"),u=r("c+Xe"),a=r("q1tI"),i=r("Ff2n"),t=["children"],s=a.createContext({});function e(Vt){var Mt=Vt.children,Gt=Object(i.a)(Vt,t);return a.createElement(s.Provider,{value:Gt},Mt)}var l=r("1OyB"),n=r("vuIU"),o=r("Ji7U"),c=r("LK+K"),h=function(Vt){Object(o.a)(Gt,Vt);var Mt=Object(c.a)(Gt);function Gt(){return Object(l.a)(this,Gt),Mt.apply(this,arguments)}return Object(n.a)(Gt,[{key:"render",value:function(){return this.props.children}}]),Gt}(a.Component),g=h,v=r("dm2S"),b="none",S="appear",E="enter",C="leave",_="none",T="prepare",w="start",O="active",I="end",k="prepared",M=r("MNnm");function U(Vt,Mt){var Gt={};return Gt[Vt.toLowerCase()]=Mt.toLowerCase(),Gt["Webkit".concat(Vt)]="webkit".concat(Mt),Gt["Moz".concat(Vt)]="moz".concat(Mt),Gt["ms".concat(Vt)]="MS".concat(Mt),Gt["O".concat(Vt)]="o".concat(Mt.toLowerCase()),Gt}function P(Vt,Mt){var Gt={animationend:U("Animation","AnimationEnd"),transitionend:U("Transition","TransitionEnd")};return Vt&&("AnimationEvent"in Mt||delete Gt.animationend.animation,"TransitionEvent"in Mt||delete Gt.transitionend.transition),Gt}var X=P(Object(M.a)(),typeof window!="undefined"?window:{}),F={};if(Object(M.a)()){var j=document.createElement("div");F=j.style}var K={};function z(Vt){if(K[Vt])return K[Vt];var Mt=X[Vt];if(Mt)for(var Gt=Object.keys(Mt),Ve=Gt.length,me=0;me<Ve;me+=1){var te=Gt[me];if(Object.prototype.hasOwnProperty.call(Mt,te)&&te in F)return K[Vt]=Mt[te],K[Vt]}return""}var V=z("animationend"),Q=z("transitionend"),G=!!(V&&Q),ee=V||"animationend",se=Q||"transitionend";function ye(Vt,Mt){if(!Vt)return null;if(Object(A.a)(Vt)==="object"){var Gt=Mt.replace(/-\w/g,function(Ve){return Ve[1].toUpperCase()});return Vt[Gt]}return"".concat(Vt,"-").concat(Mt)}var he=function(Vt){var Mt=Object(a.useRef)(),Gt=Object(a.useRef)(Vt);Gt.current=Vt;var Ve=a.useCallback(function(Ze){Gt.current(Ze)},[]);function me(Ze){Ze&&(Ze.removeEventListener(se,Ve),Ze.removeEventListener(ee,Ve))}function te(Ze){Mt.current&&Mt.current!==Ze&&me(Mt.current),Ze&&Ze!==Mt.current&&(Ze.addEventListener(se,Ve),Ze.addEventListener(ee,Ve),Mt.current=Ze)}return a.useEffect(function(){return function(){me(Mt.current)}},[]),[te,me]},ke=Object(M.a)()?a.useLayoutEffect:a.useEffect,Pe=ke,Ue=r("wgJM"),$e=function(){var Vt=a.useRef(null);function Mt(){Ue.a.cancel(Vt.current)}function Gt(Ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Mt();var te=Object(Ue.a)(function(){me<=1?Ve({isCanceled:function(){return te!==Vt.current}}):Gt(Ve,me-1)});Vt.current=te}return a.useEffect(function(){return function(){Mt()}},[]),[Gt,Mt]},Ge=[T,w,O,I],ht=[T,k],Fe=!1,oe=!0;function rt(Vt){return Vt===O||Vt===I}var fe=function(Vt,Mt,Gt){var Ve=Object(v.a)(_),me=Object(x.a)(Ve,2),te=me[0],Ze=me[1],Xe=$e(),ue=Object(x.a)(Xe,2),St=ue[0],Qt=ue[1];function dt(){Ze(T,!0)}var Jt=Mt?ht:Ge;return Pe(function(){if(te!==_&&te!==I){var $t=Jt.indexOf(te),tn=Jt[$t+1],kt=Gt(te);kt===Fe?Ze(tn,!0):tn&&St(function(tr){function Bt(){if(tr.isCanceled())return;Ze(tn,!0)}kt===!0?Bt():Promise.resolve(kt).then(Bt)})}},[Vt,te]),a.useEffect(function(){return function(){Qt()}},[]),[dt,te]};function J(Vt,Mt,Gt,Ve){var me=Ve.motionEnter,te=me===void 0?!0:me,Ze=Ve.motionAppear,Xe=Ze===void 0?!0:Ze,ue=Ve.motionLeave,St=ue===void 0?!0:ue,Qt=Ve.motionDeadline,dt=Ve.motionLeaveImmediately,Jt=Ve.onAppearPrepare,$t=Ve.onEnterPrepare,tn=Ve.onLeavePrepare,kt=Ve.onAppearStart,tr=Ve.onEnterStart,Bt=Ve.onLeaveStart,ft=Ve.onAppearActive,it=Ve.onEnterActive,Or=Ve.onLeaveActive,an=Ve.onAppearEnd,En=Ve.onEnterEnd,Bn=Ve.onLeaveEnd,vi=Ve.onVisibleChanged,Ln=Object(v.a)(),Mn=Object(x.a)(Ln,2),Xt=Mn[0],wt=Mn[1],De=Object(v.a)(b),Re=Object(x.a)(De,2),Me=Re[0],nt=Re[1],yt=Object(v.a)(null),sr=Object(x.a)(yt,2),Nr=sr[0],mn=sr[1],Yn=Object(a.useRef)(!1),Jn=Object(a.useRef)(null);function ur(){return Gt()}var Tt=Object(a.useRef)(!1);function Ct(){nt(b,!0),mn(null,!0)}function Ar(gi){var Ii=ur();if(gi&&!gi.deadline&&gi.target!==Ii)return;var Mi=Tt.current,Qi;Me===S&&Mi?Qi=an==null?void 0:an(Ii,gi):Me===E&&Mi?Qi=En==null?void 0:En(Ii,gi):Me===C&&Mi&&(Qi=Bn==null?void 0:Bn(Ii,gi)),Me!==b&&Mi&&Qi!==!1&&Ct()}var er=he(Ar),Ft=Object(x.a)(er,1),ir=Ft[0],Pt=function(Ii){var Mi,Qi,ot;switch(Ii){case S:return Mi={},Object(y.a)(Mi,T,Jt),Object(y.a)(Mi,w,kt),Object(y.a)(Mi,O,ft),Mi;case E:return Qi={},Object(y.a)(Qi,T,$t),Object(y.a)(Qi,w,tr),Object(y.a)(Qi,O,it),Qi;case C:return ot={},Object(y.a)(ot,T,tn),Object(y.a)(ot,w,Bt),Object(y.a)(ot,O,Or),ot;default:return{}}},rr=a.useMemo(function(){return Pt(Me)},[Me]),Yr=fe(Me,!Vt,function(gi){if(gi===T){var Ii=rr[T];return Ii?Ii(ur()):Fe}if(fn in rr){var Mi;mn(((Mi=rr[fn])===null||Mi===void 0?void 0:Mi.call(rr,ur(),null))||null)}return fn===O&&(ir(ur()),Qt>0&&(clearTimeout(Jn.current),Jn.current=setTimeout(function(){Ar({deadline:!0})},Qt))),fn===k&&Ct(),oe}),Pr=Object(x.a)(Yr,2),Mr=Pr[0],fn=Pr[1],wn=rt(fn);Tt.current=wn,Pe(function(){wt(Mt);var gi=Yn.current;Yn.current=!0;var Ii;!gi&&Mt&&Xe&&(Ii=S),gi&&Mt&&te&&(Ii=E),(gi&&!Mt&&St||!gi&&dt&&!Mt&&St)&&(Ii=C);var Mi=Pt(Ii);Ii&&(Vt||Mi[T])?(nt(Ii),Mr()):nt(b)},[Mt]),Object(a.useEffect)(function(){(Me===S&&!Xe||Me===E&&!te||Me===C&&!St)&&nt(b)},[Xe,te,St]),Object(a.useEffect)(function(){return function(){Yn.current=!1,clearTimeout(Jn.current)}},[]);var ai=a.useRef(!1);Object(a.useEffect)(function(){Xt&&(ai.current=!0),Xt!==void 0&&Me===b&&((ai.current||Xt)&&(vi==null||vi(Xt)),ai.current=!0)},[Xt,Me]);var ri=Nr;return rr[T]&&fn===w&&(ri=Object(f.a)({transition:"none"},ri)),[Me,fn,ri,Xt!=null?Xt:Mt]}function Y(Vt){var Mt=Vt;Object(A.a)(Vt)==="object"&&(Mt=Vt.transitionSupport);function Gt(me,te){return!!(me.motionName&&Mt&&te!==!1)}var Ve=a.forwardRef(function(me,te){var Ze=me.visible,Xe=Ze===void 0?!0:Ze,ue=me.removeOnLeave,St=ue===void 0?!0:ue,Qt=me.forceRender,dt=me.children,Jt=me.motionName,$t=me.leavedClassName,tn=me.eventProps,kt=a.useContext(s),tr=kt.motion,Bt=Gt(me,tr),ft=Object(a.useRef)(),it=Object(a.useRef)();function Or(){try{return ft.current instanceof HTMLElement?ft.current:Object(d.a)(it.current)}catch(mn){return null}}var an=J(Bt,Xe,Or,me),En=Object(x.a)(an,4),Bn=En[0],vi=En[1],Ln=En[2],Mn=En[3],Xt=a.useRef(Mn);Mn&&(Xt.current=!0);var wt=a.useCallback(function(mn){ft.current=mn,Object(u.b)(te,mn)},[te]),De,Re=Object(f.a)(Object(f.a)({},tn),{},{visible:Xe});if(!dt)De=null;else if(Bn===b)Mn?De=dt(Object(f.a)({},Re),wt):!St&&Xt.current&&$t?De=dt(Object(f.a)(Object(f.a)({},Re),{},{className:$t}),wt):Qt||!St&&!$t?De=dt(Object(f.a)(Object(f.a)({},Re),{},{style:{display:"none"}}),wt):De=null;else{var Me,nt;vi===T?nt="prepare":rt(vi)?nt="active":vi===w&&(nt="start");var yt=ye(Jt,"".concat(Bn,"-").concat(nt));De=dt(Object(f.a)(Object(f.a)({},Re),{},{className:p()(ye(Jt,Bn),(Me={},Object(y.a)(Me,yt,yt&&nt),Object(y.a)(Me,Jt,typeof Jt=="string"),Me)),style:Ln}),wt)}if(a.isValidElement(De)&&Object(u.c)(De)){var sr=De,Nr=sr.ref;Nr||(De=a.cloneElement(De,{ref:wt}))}return a.createElement(g,{ref:it},De)});return Ve.displayName="CSSMotion",Ve}var $=Y(G),de=r("wx14"),we=r("JX7q"),Ce="add",Se="keep",le="remove",pe="removed";function _e(Vt){var Mt;return Vt&&Object(A.a)(Vt)==="object"&&"key"in Vt?Mt=Vt:Mt={key:Vt},Object(f.a)(Object(f.a)({},Mt),{},{key:String(Mt.key)})}function tt(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Vt.map(_e)}function gt(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Gt=[],Ve=0,me=Mt.length,te=tt(Vt),Ze=tt(Mt);te.forEach(function(St){for(var Qt=!1,dt=Ve;dt<me;dt+=1){var Jt=Ze[dt];if(Jt.key===St.key){Ve<dt&&(Gt=Gt.concat(Ze.slice(Ve,dt).map(function($t){return Object(f.a)(Object(f.a)({},$t),{},{status:Ce})})),Ve=dt),Gt.push(Object(f.a)(Object(f.a)({},Jt),{},{status:Se})),Ve+=1,Qt=!0;break}}Qt||Gt.push(Object(f.a)(Object(f.a)({},St),{},{status:le}))}),Ve<me&&(Gt=Gt.concat(Ze.slice(Ve).map(function(St){return Object(f.a)(Object(f.a)({},St),{},{status:Ce})})));var Xe={};Gt.forEach(function(St){var Qt=St.key;Xe[Qt]=(Xe[Qt]||0)+1});var ue=Object.keys(Xe).filter(function(St){return Xe[St]>1});return ue.forEach(function(St){Gt=Gt.filter(function(Qt){var dt=Qt.key,Jt=Qt.status;return dt!==St||Jt!==le}),Gt.forEach(function(Qt){Qt.key===St&&(Qt.status=Se)})}),Gt}var ct=["component","children","onVisibleChanged","onAllRemoved"],je=["status"],Zt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ut(Vt){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Gt=function(Ve){Object(o.a)(te,Ve);var me=Object(c.a)(te);function te(){var Ze;Object(l.a)(this,te);for(var Xe=arguments.length,ue=new Array(Xe),St=0;St<Xe;St++)ue[St]=arguments[St];return Ze=me.call.apply(me,[this].concat(ue)),Object(y.a)(Object(we.a)(Ze),"state",{keyEntities:[]}),Object(y.a)(Object(we.a)(Ze),"removeKey",function(Qt){var dt=Ze.state.keyEntities,Jt=dt.map(function($t){return $t.key!==Qt?$t:Object(f.a)(Object(f.a)({},$t),{},{status:pe})});return Ze.setState({keyEntities:Jt}),Jt.filter(function($t){var tn=$t.status;return tn!==pe}).length}),Ze}return Object(n.a)(te,[{key:"render",value:function(){var Xe=this,ue=this.state.keyEntities,St=this.props,Qt=St.component,dt=St.children,Jt=St.onVisibleChanged,$t=St.onAllRemoved,tn=Object(i.a)(St,ct),kt=Qt||a.Fragment,tr={};return Zt.forEach(function(Bt){tr[Bt]=tn[Bt],delete tn[Bt]}),delete tn.keys,a.createElement(kt,tn,ue.map(function(Bt,ft){var it=Bt.status,Or=Object(i.a)(Bt,je),an=it===Ce||it===Se;return a.createElement(Mt,Object(de.a)({},tr,{key:Or.key,visible:an,eventProps:Or,onVisibleChanged:function(Bn){if(Jt==null||Jt(Bn,{key:Or.key}),!Bn){var vi=Xe.removeKey(Or.key);vi===0&&$t&&$t()}}}),function(En,Bn){return dt(Object(f.a)(Object(f.a)({},En),{},{index:ft}),Bn)})}))}}],[{key:"getDerivedStateFromProps",value:function(Xe,ue){var St=Xe.keys,Qt=ue.keyEntities,dt=tt(St),Jt=gt(Qt,dt);return{keyEntities:Jt.filter(function($t){var tn=Qt.find(function(kt){var tr=kt.key;return $t.key===tr});return!(tn&&tn.status===pe&&$t.status===le)})}}}]),te}(a.Component);return Object(y.a)(Gt,"defaultProps",{component:"div"}),Gt}var Ht=ut(G),dr=L.b=$},"8hn6":function(R,L){var r="#eee",y=function(){return{axisLine:{lineStyle:{color:r}},axisTick:{lineStyle:{color:r}},axisLabel:{textStyle:{color:r}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:r}}}},f=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],x={color:f,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:r},crossStyle:{color:r},label:{color:"#000"}}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:r}},toolbox:{iconStyle:{normal:{borderColor:r}}},dataZoom:{textStyle:{color:r}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},itemStyle:{normal:{color:f[1]}},label:{normal:{textStyle:{color:r}}},controlStyle:{normal:{color:r,borderColor:r}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:f},gauge:{title:{textStyle:{color:r}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};x.categoryAxis.splitLine.show=!1;var A=x;R.exports=A},"8nMs":function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("+rIm"),A=r("Znkb"),m=r("AVZG"),p=r("WN+l"),d=p.rectCoordAxisBuildSplitArea,u=p.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine","minorSplitLine"],t=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(s,e,l,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new f.Group,this.group.add(this._axisGroup),!s.get("show"))return;var c=s.getCoordSysModel(),h=m.layout(c,s),g=new x(s,h);y.each(a,g.add,g),this._axisGroup.add(g.getGroup()),y.each(i,function(v){s.get(v+".show")&&this["_"+v](s,c)},this),f.groupTransition(o,this._axisGroup,s),t.superCall(this,"render",s,e,l,n)},remove:function(){u(this)},_splitLine:function(s,e){var l=s.axis;if(l.scale.isBlank())return;var n=s.getModel("splitLine"),o=n.getModel("lineStyle"),c=o.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),g=l.isHorizontal(),v=0,b=l.getTicksCoords({tickModel:n}),S=[],E=[],C=o.getLineStyle(),_=0;_<b.length;_++){var T=l.toGlobalCoord(b[_].coord);g?(S[0]=T,S[1]=h.y,E[0]=T,E[1]=h.y+h.height):(S[0]=h.x,S[1]=T,E[0]=h.x+h.width,E[1]=T);var w=v++%c.length,O=b[_].tickValue;this._axisGroup.add(new f.Line({anid:O!=null?"line_"+b[_].tickValue:null,subPixelOptimize:!0,shape:{x1:S[0],y1:S[1],x2:E[0],y2:E[1]},style:y.defaults({stroke:c[w]},C),silent:!0}))}},_minorSplitLine:function(s,e){var l=s.axis,n=s.getModel("minorSplitLine"),o=n.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=l.isHorizontal(),g=l.getMinorTicksCoords();if(!g.length)return;for(var v=[],b=[],S=o.getLineStyle(),E=0;E<g.length;E++)for(var C=0;C<g[E].length;C++){var _=l.toGlobalCoord(g[E][C].coord);h?(v[0]=_,v[1]=c.y,b[0]=_,b[1]=c.y+c.height):(v[0]=c.x,v[1]=_,b[0]=c.x+c.width,b[1]=_),this._axisGroup.add(new f.Line({anid:"minor_line_"+g[E][C].tickValue,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:b[0],y2:b[1]},style:S,silent:!0}))}},_splitArea:function(s,e){d(this,this._axisGroup,s,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(R,L,r){var y=r("mFDi"),f=r("4mN7"),x=r("QBsz"),A=r("BlVb");function m(d,u,a){if(this.name=d,this.geometries=u,a)a=[a[0],a[1]];else{var i=this.getBoundingRect();a=[i.x+i.width/2,i.y+i.height/2]}this.center=a}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var u=Number.MAX_VALUE,a=[u,u],i=[-u,-u],t=[],s=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var n=e[l].exterior;f.fromPoints(n,t,s),x.min(a,a,t),x.max(i,i,s)}return l===0&&(a[0]=a[1]=i[0]=i[1]=0),this._rect=new y(a[0],a[1],i[0]-a[0],i[1]-a[1])},contain:function(d){var u=this.getBoundingRect(),a=this.geometries;if(!u.contain(d[0],d[1]))return!1;e:for(var i=0,t=a.length;i<t;i++){if(a[i].type!=="polygon")continue;var s=a[i].exterior,e=a[i].interiors;if(A.contain(s,d[0],d[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(d,u,a,i){var t=this.getBoundingRect(),s=t.width/t.height;a?i||(i=a/s):a=s*i;for(var e=new y(d,u,a,i),l=t.calculateTransform(e),n=this.geometries,o=0;o<n.length;o++){if(n[o].type!=="polygon")continue;for(var c=n[o].exterior,h=n[o].interiors,g=0;g<c.length;g++)x.applyTransform(c[g],c[g],l);for(var v=0;v<(h?h.length:0);v++)for(var g=0;g<h[v].length;g++)x.applyTransform(h[v][g],h[v][g],l)}t=this._rect,t.copy(e),this.center=[t.x+t.width/2,t.y+t.height/2]},cloneShallow:function(d){d==null&&(d=this.name);var u=new m(d,this.geometries,this.center);return u._rect=this._rect,u.transformTo=null,u}};var p=m;R.exports=p},"8txm":function(R,L,r){},"8waO":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("iLNv"),A=r("ZWlE");r("hJvP"),r("IXyC"),r("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(u,a,i){this._model=u,this._api=i,this._handlers||(this._handlers={},f.each(p,function(t,s){i.getZr().on(s,this._handlers[s]=f.bind(t,this))},this)),x.createOrUpdate(this,"_throttledDispatchExpand",u.get("axisExpandRate"),"fixRate")},dispose:function(u,a){f.each(this._handlers,function(i,t){a.getZr().off(t,i)}),this._handlers=null},_throttledDispatchExpand:function(u){this._dispatchExpand(u)},_dispatchExpand:function(u){u&&this._api.dispatchAction(f.extend({type:"parallelAxisExpand"},u))}});var p={mousedown:function(u){d(this,"click")&&(this._mouseDownPoint=[u.offsetX,u.offsetY])},mouseup:function(u){var a=this._mouseDownPoint;if(d(this,"click")&&a){var i=[u.offsetX,u.offsetY],t=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(t>m)return;var s=this._model.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]);s.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:s.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(u){if(this._mouseDownPoint||!d(this,"mousemove"))return;var a=this._model,i=a.coordinateSystem.getSlidedAxisExpandWindow([u.offsetX,u.offsetY]),t=i.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(u,a){var i=u._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===a}y.registerPreprocessor(A)},"8x+h":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("K4ya"),p=r("Qxkt"),d=["#ddd"],u=x.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,s){var e=this.option;!s&&m.replaceVisualOption(e,t,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:d},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(t){if(!t)return;this.areas=A.map(t,function(s){return a(this.option,s)},this)},setBrushOption:function(t){this.brushOption=a(this.option,t),this.brushType=this.brushOption.brushType}});function a(t,s){return A.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new p(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},s,!0)}var i=u;R.exports=i},"8z0m":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("RIqP"),A=r.n(x),m=r("pVnL"),p=r.n(m),d=r("J4zp"),u=r.n(d),a=r("q1tI"),i=r.n(a),t=r("TSYQ"),s=r.n(t);function e(kt,tr){var Bt="cannot "+kt.method+" "+kt.action+" "+tr.status+"'",ft=new Error(Bt);return ft.status=tr.status,ft.method=kt.method,ft.url=kt.action,ft}function l(kt){var tr=kt.responseText||kt.response;if(!tr)return tr;try{return JSON.parse(tr)}catch(Bt){return tr}}function n(kt){var tr=new XMLHttpRequest;kt.onProgress&&tr.upload&&(tr.upload.onprogress=function(Or){Or.total>0&&(Or.percent=Or.loaded/Or.total*100),kt.onProgress(Or)});var Bt=new FormData;kt.data&&Object.keys(kt.data).forEach(function(it){var Or=kt.data[it];if(Array.isArray(Or)){Or.forEach(function(an){Bt.append(it+"[]",an)});return}Bt.append(it,kt.data[it])}),kt.file instanceof Blob?Bt.append(kt.filename,kt.file,kt.file.name):Bt.append(kt.filename,kt.file),tr.onerror=function(Or){kt.onError(Or)},tr.onload=function(){return tr.status<200||tr.status>=300?kt.onError(e(kt,tr),l(tr)):kt.onSuccess(l(tr),tr)},tr.open(kt.method,kt.action,!0),kt.withCredentials&&"withCredentials"in tr&&(tr.withCredentials=!0);var ft=kt.headers||{};return ft["X-Requested-With"]!==null&&tr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ft).forEach(function(it){ft[it]!==null&&tr.setRequestHeader(it,ft[it])}),tr.send(Bt),{abort:function(){tr.abort()}}}var o=+new Date,c=0;function h(){return"rc-upload-"+o+"-"+ ++c}function g(kt,tr){return kt.indexOf(tr,kt.length-tr.length)!==-1}var v=function(kt,tr){if(kt&&tr){var Bt=Array.isArray(tr)?tr:tr.split(","),ft=kt.name||"",it=kt.type||"",Or=it.replace(/\/.*$/,"");return Bt.some(function(an){var En=an.trim();return En.charAt(0)==="."?g(ft.toLowerCase(),En.toLowerCase()):/\/\*$/.test(En)?Or===En.replace(/\/.*$/,""):it===En})}return!0};function b(kt,tr){var Bt=kt.createReader(),ft=[];function it(){Bt.readEntries(function(Or){var an=Array.prototype.slice.apply(Or);ft=ft.concat(an);var En=!an.length;En?tr(ft):it()})}it()}var S=function(tr,Bt,ft){var it=function Or(an,En){En=En||"",an.isFile?an.file(function(Bn){ft(Bn)&&(an.fullPath&&!Bn.webkitRelativePath&&(Object.defineProperties(Bn,{webkitRelativePath:{writable:!0}}),Bn.webkitRelativePath=an.fullPath.replace(/^\//,""),Object.defineProperties(Bn,{webkitRelativePath:{writable:!1}})),Bt([Bn]))}):an.isDirectory&&b(an,function(Bn){Bn.forEach(function(vi){Or(vi,""+En+an.name+"/")})})};tr.forEach(function(Or){it(Or.webkitGetAsEntry())})},E=S,C=Object.assign||function(kt){for(var tr=1;tr<arguments.length;tr++){var Bt=arguments[tr];for(var ft in Bt)Object.prototype.hasOwnProperty.call(Bt,ft)&&(kt[ft]=Bt[ft])}return kt},_=function(){function kt(tr,Bt){var ft=[],it=!0,Or=!1,an=void 0;try{for(var En=tr[Symbol.iterator](),Bn;!(it=(Bn=En.next()).done)&&!(ft.push(Bn.value),Bt&&ft.length===Bt);it=!0);}catch(vi){Or=!0,an=vi}finally{try{!it&&En.return&&En.return()}finally{if(Or)throw an}}return ft}return function(tr,Bt){if(Array.isArray(tr))return tr;if(Symbol.iterator in Object(tr))return kt(tr,Bt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function kt(tr,Bt){for(var ft=0;ft<Bt.length;ft++){var it=Bt[ft];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(tr,it.key,it)}}return function(tr,Bt,ft){return Bt&&kt(tr.prototype,Bt),ft&&kt(tr,ft),tr}}();function w(kt,tr,Bt){return tr in kt?Object.defineProperty(kt,tr,{value:Bt,enumerable:!0,configurable:!0,writable:!0}):kt[tr]=Bt,kt}function O(kt,tr){var Bt={};for(var ft in kt){if(tr.indexOf(ft)>=0)continue;if(!Object.prototype.hasOwnProperty.call(kt,ft))continue;Bt[ft]=kt[ft]}return Bt}function I(kt,tr){if(!(kt instanceof tr))throw new TypeError("Cannot call a class as a function")}function k(kt,tr){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tr&&(typeof tr=="object"||typeof tr=="function")?tr:kt}function M(kt,tr){if(typeof tr!="function"&&tr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tr);kt.prototype=Object.create(tr&&tr.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),tr&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,tr):kt.__proto__=tr)}var U=function(tr){return Object.keys(tr).reduce(function(Bt,ft){return(ft.substr(0,5)==="data-"||ft.substr(0,5)==="aria-"||ft==="role")&&(Bt[ft]=tr[ft]),Bt},{})},P=function(kt){M(tr,kt);function tr(){var Bt,ft,it,Or;I(this,tr);for(var an=arguments.length,En=Array(an),Bn=0;Bn<an;Bn++)En[Bn]=arguments[Bn];return Or=(ft=(it=k(this,(Bt=tr.__proto__||Object.getPrototypeOf(tr)).call.apply(Bt,[this].concat(En))),it),it.state={uid:h()},it.reqs={},it.onChange=function(vi){var Ln=vi.target.files;it.uploadFiles(Ln),it.reset()},it.onClick=function(vi){var Ln=it.fileInput;if(!Ln)return;var Mn=it.props,Xt=Mn.children,wt=Mn.onClick;Xt&&Xt.type==="button"&&(Ln.parentNode.focus(),Ln.parentNode.querySelector("button").blur()),Ln.click(),wt&&wt(vi)},it.onKeyDown=function(vi){vi.key==="Enter"&&it.onClick()},it.onFileDrop=function(vi){var Ln=it.props.multiple;if(vi.preventDefault(),vi.type==="dragover")return;if(it.props.directory)E(Array.prototype.slice.call(vi.dataTransfer.items),it.uploadFiles,function(Xt){return v(Xt,it.props.accept)});else{var Mn=Array.prototype.slice.call(vi.dataTransfer.files).filter(function(Xt){return v(Xt,it.props.accept)});Ln===!1&&(Mn=Mn.slice(0,1)),it.uploadFiles(Mn)}},it.uploadFiles=function(vi){var Ln=Array.prototype.slice.call(vi);Ln.map(function(Mn){return Mn.uid=h(),Mn}).forEach(function(Mn){it.upload(Mn,Ln)})},it.saveFileInput=function(vi){it.fileInput=vi},ft),k(it,Or)}return T(tr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(ft,it){var Or=this,an=this.props;if(!an.beforeUpload)return setTimeout(function(){return Or.post(ft)},0);var En=an.beforeUpload(ft,it);En&&En.then?En.then(function(Bn){var vi=Object.prototype.toString.call(Bn);return vi==="[object File]"||vi==="[object Blob]"?Or.post(Bn):Or.post(ft)}).catch(function(Bn){console.log(Bn)}):En!==!1&&setTimeout(function(){return Or.post(ft)},0);return}},{key:"post",value:function(ft){var it=this;if(!this._isMounted)return;var Or=this.props,an=Or.onStart,En=Or.onProgress,Bn=Or.transformFile,vi=Bn===void 0?function(Ln){return Ln}:Bn;new Promise(function(Ln){var Mn=Or.action;return typeof Mn=="function"&&(Mn=Mn(ft)),Ln(Mn)}).then(function(Ln){var Mn=ft.uid,Xt=Or.customRequest||n,wt=Promise.resolve(vi(ft)).then(function(De){var Re=Or.data;return typeof Re=="function"&&(Re=Re(De)),Promise.all([De,Re])}).catch(function(De){console.error(De)});wt.then(function(De){var Re=_(De,2),Me=Re[0],nt=Re[1],yt={action:Ln,filename:Or.name,data:nt,file:Me,headers:Or.headers,withCredentials:Or.withCredentials,method:Or.method||"post",onProgress:En?function(sr){En(sr,ft)}:null,onSuccess:function(Nr,mn){delete it.reqs[Mn],Or.onSuccess(Nr,ft,mn)},onError:function(Nr,mn){delete it.reqs[Mn],Or.onError(Nr,mn,ft)}};an(ft),it.reqs[Mn]=Xt(yt)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(ft){var it=this.reqs;if(ft){var Or=ft;ft&&ft.uid&&(Or=ft.uid),it[Or]&&it[Or].abort&&it[Or].abort(),delete it[Or]}else Object.keys(it).forEach(function(an){it[an]&&it[an].abort&&it[an].abort(),delete it[an]})}},{key:"render",value:function(){var ft,it=this.props,Or=it.component,an=it.prefixCls,En=it.className,Bn=it.disabled,vi=it.id,Ln=it.style,Mn=it.multiple,Xt=it.accept,wt=it.children,De=it.directory,Re=it.openFileDialogOnClick,Me=it.onMouseEnter,nt=it.onMouseLeave,yt=O(it,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),sr=s()((ft={},w(ft,an,!0),w(ft,an+"-disabled",Bn),w(ft,En,En),ft)),Nr=Bn?{}:{onClick:Re?this.onClick:function(){},onKeyDown:Re?this.onKeyDown:function(){},onMouseEnter:Me,onMouseLeave:nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return i.a.createElement(Or,C({},Nr,{className:sr,role:"button",style:Ln}),i.a.createElement("input",C({},U(yt),{id:vi,type:"file",ref:this.saveFileInput,onClick:function(Yn){return Yn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Xt,directory:De?"directory":null,webkitdirectory:De?"webkitdirectory":null,multiple:Mn,onChange:this.onChange})),wt)}}]),tr}(a.Component),X=P,F=Object.assign||function(kt){for(var tr=1;tr<arguments.length;tr++){var Bt=arguments[tr];for(var ft in Bt)Object.prototype.hasOwnProperty.call(Bt,ft)&&(kt[ft]=Bt[ft])}return kt},j=function(){function kt(tr,Bt){for(var ft=0;ft<Bt.length;ft++){var it=Bt[ft];it.enumerable=it.enumerable||!1,it.configurable=!0,"value"in it&&(it.writable=!0),Object.defineProperty(tr,it.key,it)}}return function(tr,Bt,ft){return Bt&&kt(tr.prototype,Bt),ft&&kt(tr,ft),tr}}();function K(kt,tr){if(!(kt instanceof tr))throw new TypeError("Cannot call a class as a function")}function z(kt,tr){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tr&&(typeof tr=="object"||typeof tr=="function")?tr:kt}function V(kt,tr){if(typeof tr!="function"&&tr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof tr);kt.prototype=Object.create(tr&&tr.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),tr&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,tr):kt.__proto__=tr)}function Q(){}var G=function(kt){V(tr,kt);function tr(){var Bt,ft,it,Or;K(this,tr);for(var an=arguments.length,En=Array(an),Bn=0;Bn<an;Bn++)En[Bn]=arguments[Bn];return Or=(ft=(it=z(this,(Bt=tr.__proto__||Object.getPrototypeOf(tr)).call.apply(Bt,[this].concat(En))),it),it.saveUploader=function(vi){it.uploader=vi},ft),z(it,Or)}return j(tr,[{key:"abort",value:function(ft){this.uploader.abort(ft)}},{key:"render",value:function(){return i.a.createElement(X,F({},this.props,{ref:this.saveUploader}))}}]),tr}(a.Component);G.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Q,onError:Q,onSuccess:Q,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ee=G,se=ee,ye=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},he=function(tr,Bt){var ft=tr.style,it=tr.height,Or=ye(tr,["style","height"]);return a.createElement($t,p()({ref:Bt},Or,{type:"drag",style:p()(p()({},ft),{height:it})}))},ke=a.forwardRef(he);ke.displayName="Dragger";var Pe=ke,Ue=r("UmKh"),$e=r("zU+y"),Ge=r.n($e),ht=r("5W0v"),Fe=r.n(ht),oe=r("eokw"),rt=r.n(oe),fe=r("n0Ed"),J=r.n(fe),Y=r("meAc"),$=r.n(Y),de=r("H2oc"),we=r.n(de),Ce=r("k773"),Se=r.n(Ce),le=r("0n0R");function pe(){return!0}function _e(kt){return p()(p()({},kt),{lastModified:kt.lastModified,lastModifiedDate:kt.lastModifiedDate,name:kt.name,size:kt.size,type:kt.type,uid:kt.uid,percent:0,originFileObj:kt})}function tt(kt,tr){var Bt=kt.uid!==void 0?"uid":"name";return tr.filter(function(ft){return ft[Bt]===kt[Bt]})[0]}function gt(kt,tr){var Bt=kt.uid!==void 0?"uid":"name",ft=tr.filter(function(it){return it[Bt]!==kt[Bt]});return ft.length===tr.length?null:ft}var ct=function(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Bt=tr.split("/"),ft=Bt[Bt.length-1],it=ft.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(it)||[""])[0]},je=function(tr){return tr.indexOf("image/")===0},Zt=function(tr){if(tr.type&&!tr.thumbUrl)return je(tr.type);var Bt=tr.thumbUrl||tr.url,ft=ct(Bt);return/^data:image\//.test(Bt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(ft)?!0:/^data:/.test(Bt)?!1:!ft},ut=200;function Ht(kt){return new Promise(function(tr){if(!kt.type||!je(kt.type)){tr("");return}var Bt=document.createElement("canvas");Bt.width=ut,Bt.height=ut,Bt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ut,"px; height: ").concat(ut,"px; z-index: 9999; display: none;"),document.body.appendChild(Bt);var ft=Bt.getContext("2d"),it=new Image;it.onload=function(){var Or=it.width,an=it.height,En=ut,Bn=ut,vi=0,Ln=0;Or<an?(Bn=an*(ut/Or),Ln=-(Bn-En)/2):(En=Or*(ut/an),vi=-(En-Bn)/2),ft.drawImage(it,vi,Ln,En,Bn);var Mn=Bt.toDataURL();document.body.removeChild(Bt),tr(Mn)},it.src=window.URL.createObjectURL(kt)})}var dr=r("3S7+"),Vt=r("CFYs"),Mt=r("H84U"),Gt=r("2/Rp"),Ve=r("hkKa"),me=function(tr,Bt){var ft,it=tr.listType,Or=tr.previewFile,an=tr.onPreview,En=tr.onDownload,Bn=tr.onRemove,vi=tr.locale,Ln=tr.iconRender,Mn=tr.isImageUrl,Xt=tr.prefixCls,wt=tr.items,De=wt===void 0?[]:wt,Re=tr.showPreviewIcon,Me=tr.showRemoveIcon,nt=tr.showDownloadIcon,yt=tr.removeIcon,sr=tr.downloadIcon,Nr=tr.progress,mn=Object(Ve.a)();a.useEffect(function(){if(it!=="picture"&&it!=="picture-card")return;(De||[]).forEach(function(Pr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Pr.originFileObj instanceof File||Pr.originFileObj instanceof Blob)||Pr.thumbUrl!==void 0)return;Pr.thumbUrl="",Or&&Or(Pr.originFileObj).then(function(Mr){Pr.thumbUrl=Mr||"",mn()})})},[it,De,Or]);var Yn=function(Mr,fn){return an?(fn.preventDefault(),an(Mr)):void 0},Jn=function(Mr){typeof En=="function"?En(Mr):Mr.url&&window.open(Mr.url)},ur=function(Mr){Bn&&Bn(Mr)},Tt=function(Mr){if(Ln)return Ln(Mr,it);var fn=Mr.status==="uploading",wn=Mn&&Mn(Mr)?a.createElement(rt.a,null):a.createElement(J.a,null),ai=fn?a.createElement(Ge.a,null):a.createElement(Fe.a,null);return it==="picture"?ai=fn?a.createElement(Ge.a,null):wn:it==="picture-card"&&(ai=fn?vi.uploading:wn),ai},Ct=function(Mr,fn,wn,ai){var ri={type:"text",size:"small",title:ai,onClick:function(Mi){fn(),Object(le.b)(Mr)&&Mr.props.onClick&&Mr.props.onClick(Mi)},className:"".concat(wn,"-list-item-card-actions-btn")};if(Object(le.b)(Mr)){var gi=Object(le.a)(Mr,p()(p()({},Mr.props),{onClick:function(){}}));return a.createElement(Gt.a,p()({},ri,{icon:gi}))}return a.createElement(Gt.a,ri,a.createElement("span",null,Mr))};a.useImperativeHandle(Bt,function(){return{handlePreview:Yn,handleDownload:Jn}});var Ar=a.useContext(Mt.b),er=Ar.getPrefixCls,Ft=Ar.direction,ir=er("upload",Xt),Pt=De.map(function(Pr){var Mr,fn,wn,ai=Tt(Pr),ri=a.createElement("div",{className:"".concat(ir,"-text-icon")},ai);if(it==="picture"||it==="picture-card")if(Pr.status==="uploading"||!Pr.thumbUrl&&!Pr.url){var gi,Ii=s()((gi={},f()(gi,"".concat(ir,"-list-item-thumbnail"),!0),f()(gi,"".concat(ir,"-list-item-file"),Pr.status!=="uploading"),gi));ri=a.createElement("div",{className:Ii},ai)}else{var Mi,Qi=Mn&&Mn(Pr)?a.createElement("img",{src:Pr.thumbUrl||Pr.url,alt:Pr.name,className:"".concat(ir,"-list-item-image")}):ai,ot=s()((Mi={},f()(Mi,"".concat(ir,"-list-item-thumbnail"),!0),f()(Mi,"".concat(ir,"-list-item-file"),Mn&&!Mn(Pr)),Mi));ri=a.createElement("a",{className:ot,onClick:function(vn){return Yn(Pr,vn)},href:Pr.url||Pr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qi)}if(Pr.status==="uploading"){var Ne="percent"in Pr?a.createElement(Vt.a,p()({},Nr,{type:"line",percent:Pr.percent})):null;wn=a.createElement("div",{className:"".concat(ir,"-list-item-progress"),key:"progress"},Ne)}var He=s()((Mr={},f()(Mr,"".concat(ir,"-list-item"),!0),f()(Mr,"".concat(ir,"-list-item-").concat(Pr.status),!0),f()(Mr,"".concat(ir,"-list-item-list-type-").concat(it),!0),Mr)),Ye=typeof Pr.linkProps=="string"?JSON.parse(Pr.linkProps):Pr.linkProps,at=Me?Ct(yt||a.createElement(we.a,null),function(){return ur(Pr)},ir,vi.removeFile):null,qe=nt&&Pr.status==="done"?Ct(sr||a.createElement(Se.a,null),function(){return Jn(Pr)},ir,vi.downloadFile):null,lt=it!=="picture-card"&&a.createElement("span",{key:"download-delete",className:"".concat(ir,"-list-item-card-actions ").concat(it==="picture"?"picture":"")},qe,at),Et=s()((fn={},f()(fn,"".concat(ir,"-list-item-name"),!0),f()(fn,"".concat(ir,"-list-item-name-icon-count-").concat([qe,at].filter(function(Fn){return Fn}).length),!0),fn)),At=Pr.url?[a.createElement("a",p()({key:"view",target:"_blank",rel:"noopener noreferrer",className:Et,title:Pr.name},Ye,{href:Pr.url,onClick:function(vn){return Yn(Pr,vn)}}),Pr.name),lt]:[a.createElement("span",{key:"view",className:Et,onClick:function(vn){return Yn(Pr,vn)},title:Pr.name},Pr.name),lt],fr={pointerEvents:"none",opacity:.5},Jr=Re?a.createElement("a",{href:Pr.url||Pr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Pr.url||Pr.thumbUrl?void 0:fr,onClick:function(vn){return Yn(Pr,vn)},title:vi.previewFile},a.createElement($.a,null)):null,Vr=it==="picture-card"&&Pr.status!=="uploading"&&a.createElement("span",{className:"".concat(ir,"-list-item-actions")},Jr,Pr.status==="done"&&qe,at),dn;Pr.response&&typeof Pr.response=="string"?dn=Pr.response:dn=Pr.error&&Pr.error.statusText||vi.uploadError;var gr=a.createElement("span",null,ri,At),Wn=a.createElement("div",{className:He},a.createElement("div",{className:"".concat(ir,"-list-item-info")},gr),Vr,a.createElement(Ue.a,{transitionName:"fade",component:""},wn)),kr=s()(f()({},"".concat(ir,"-list-picture-card-container"),it==="picture-card"));return a.createElement("div",{key:Pr.uid,className:kr},Pr.status==="error"?a.createElement(dr.a,{title:dn,getPopupContainer:function(vn){return vn.parentNode}},Wn):a.createElement("span",null,Wn))}),rr=s()((ft={},f()(ft,"".concat(ir,"-list"),!0),f()(ft,"".concat(ir,"-list-").concat(it),!0),f()(ft,"".concat(ir,"-list-rtl"),Ft==="rtl"),ft)),Yr=it==="picture-card"?"animate-inline":"animate";return a.createElement(Ue.a,{transitionName:"".concat(ir,"-").concat(Yr),component:"div",className:rr},Pt)},te=a.forwardRef(me);te.displayName="UploadList",te.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Ht,isImageUrl:Zt};var Ze=te,Xe=r("YMnH"),ue=r("ZvpZ"),St=r("uaoM"),Qt=r("sPtV"),dt=function(tr,Bt){var ft,it=tr.fileList,Or=tr.defaultFileList,an=tr.onRemove,En=tr.showUploadList,Bn=tr.listType,vi=tr.onPreview,Ln=tr.onDownload,Mn=tr.previewFile,Xt=tr.disabled,wt=tr.locale,De=tr.iconRender,Re=tr.isImageUrl,Me=tr.progress,nt=tr.prefixCls,yt=tr.className,sr=tr.type,Nr=tr.children,mn=tr.style,Yn=Object(Qt.a)(it||Or||[]),Jn=u()(Yn,2),ur=Jn[0],Tt=Jn[1],Ct=a.useState("drop"),Ar=u()(Ct,2),er=Ar[0],Ft=Ar[1],ir=a.useRef();a.useEffect(function(){Tt(it||Or||[]),Object(St.a)("fileList"in tr||!("value"in tr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),a.useEffect(function(){"fileList"in tr&&Tt(it||[])},[it]);var Pt=function(At){"fileList"in tr||Tt(At.fileList);var fr=tr.onChange;fr&&fr(p()(p()({},At),{fileList:A()(At.fileList)}))},rr=function(At){var fr=_e(At);fr.status="uploading";var Jr=ur().concat(),Vr=Jr.findIndex(function(dn){var gr=dn.uid;return gr===fr.uid});Vr===-1?Jr.push(fr):Jr[Vr]=fr,Pt({file:fr,fileList:Jr})},Yr=function(At,fr,Jr){try{typeof At=="string"&&(At=JSON.parse(At))}catch(dn){}var Vr=tt(fr,ur());if(!Vr)return;Vr.status="done",Vr.response=At,Vr.xhr=Jr,Pt({file:p()({},Vr),fileList:ur().concat()})},Pr=function(At,fr){var Jr=tt(fr,ur());if(!Jr)return;Jr.percent=At.percent,Pt({event:At,file:p()({},Jr),fileList:ur().concat()})},Mr=function(At,fr,Jr){var Vr=tt(Jr,ur());if(!Vr)return;Vr.error=At,Vr.response=fr,Vr.status="error",Pt({file:p()({},Vr),fileList:ur().concat()})},fn=function(At){Promise.resolve(typeof an=="function"?an(At):an).then(function(fr){if(fr===!1)return;var Jr=gt(At,ur());Jr&&(At.status="removed",ir.current&&ir.current.abort(At),Pt({file:At,fileList:Jr}))})},wn=function(At){Ft(At.type)},ai=function(At,fr){var Jr=tr.beforeUpload;if(!Jr)return!0;var Vr=Jr(At,fr);if(Vr===!1){var dn=[];return ur().concat(fr.map(_e)).forEach(function(gr){dn.every(function(Wn){return Wn.uid!==gr.uid})&&dn.push(gr)}),Pt({file:At,fileList:dn}),!1}return Vr&&Vr.then?Vr:!0},ri=Object(Ve.a)();a.useImperativeHandle(Bt,function(){return{onStart:rr,onSuccess:Yr,onProgress:Pr,onError:Mr,fileList:ur(),upload:ir.current,forceUpdate:ri}});var gi=function(At){var fr=En.showRemoveIcon,Jr=En.showPreviewIcon,Vr=En.showDownloadIcon,dn=En.removeIcon,gr=En.downloadIcon;return a.createElement(Ze,{listType:Bn,items:ur(),previewFile:Mn,onPreview:vi,onDownload:Ln,onRemove:fn,showRemoveIcon:!Xt&&fr,showPreviewIcon:Jr,showDownloadIcon:Vr,removeIcon:dn,downloadIcon:gr,iconRender:De,locale:p()(p()({},At),wt),isImageUrl:Re,progress:Me})},Ii=a.useContext(Mt.b),Mi=Ii.getPrefixCls,Qi=Ii.direction,ot=Mi("upload",nt),Ne=p()(p()({onStart:rr,onError:Mr,onProgress:Pr,onSuccess:Yr},tr),{prefixCls:ot,beforeUpload:ai});delete Ne.className,delete Ne.style,(!Nr||Xt)&&delete Ne.id;var He=En?a.createElement(Xe.a,{componentName:"Upload",defaultLocale:ue.a.Upload},gi):null;if(sr==="drag"){var Ye,at=s()(ot,(Ye={},f()(Ye,"".concat(ot,"-drag"),!0),f()(Ye,"".concat(ot,"-drag-uploading"),ur().some(function(Et){return Et.status==="uploading"})),f()(Ye,"".concat(ot,"-drag-hover"),er==="dragover"),f()(Ye,"".concat(ot,"-disabled"),Xt),f()(Ye,"".concat(ot,"-rtl"),Qi==="rtl"),Ye),yt);return a.createElement("span",null,a.createElement("div",{className:at,onDrop:wn,onDragOver:wn,onDragLeave:wn,style:mn},a.createElement(se,p()({},Ne,{ref:ir,className:"".concat(ot,"-btn")}),a.createElement("div",{className:"".concat(ot,"-drag-container")},Nr))),He)}var qe=s()(ot,(ft={},f()(ft,"".concat(ot,"-select"),!0),f()(ft,"".concat(ot,"-select-").concat(Bn),!0),f()(ft,"".concat(ot,"-disabled"),Xt),f()(ft,"".concat(ot,"-rtl"),Qi==="rtl"),ft)),lt=a.createElement("div",{className:qe,style:Nr?void 0:{display:"none"}},a.createElement(se,p()({},Ne,{ref:ir})));return Bn==="picture-card"?a.createElement("span",{className:s()(yt,"".concat(ot,"-picture-card-wrapper"))},He,lt):a.createElement("span",{className:yt},lt,He)},Jt=a.forwardRef(dt);Jt.Dragger=Pe,Jt.displayName="Upload",Jt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:pe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var $t=Jt;$t.Dragger=Pe;var tn=L.a=$t},"98bh":function(R,L,r){var y=r("ProS"),f=r("5GtS"),x=r("bYtY"),A=r("4NO4"),m=r("OELB"),p=m.getPercentWithPrecision,d=r("cCMj"),u=r("KxfA"),a=u.retrieveRawAttr,i=r("D5nY"),t=i.makeSeriesEncodeForNameBased,s=r("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(n){e.superApply(this,"init",arguments),this.legendVisualProvider=new s(x.bind(this.getData,this),x.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(n)},mergeOption:function(n){e.superCall(this,"mergeOption",n),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(n,o){return f(this,{coordDimensions:["value"],encodeDefaulter:x.curry(t,this)})},_createSelectableList:function(){for(var n=this.getRawData(),o=n.mapDimension("value"),c=[],h=0,g=n.count();h<g;h++)c.push({name:n.getName(h),value:n.get(o,h),selected:a(n,h,"selected")});return c},getDataParams:function(n){var o=this.getData(),c=e.superCall(this,"getDataParams",n),h=[];return o.each(o.mapDimension("value"),function(g){h.push(g)}),c.percent=p(h,n,o.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(n){A.defaultEmphasis(n,"labelLine",["show"]);var o=n.labelLine,c=n.emphasis.labelLine;o.show=o.show&&n.label.show,c.show=c.show&&n.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});x.mixin(e,d);var l=e;R.exports=l},"9H2F":function(R,L,r){var y=r("bYtY"),f=y.assert,x=y.isArray,A=r("Tghj"),m=A.__DEV__;function p(s){return new d(s)}function d(s){s=s||{},this._reset=s.reset,this._plan=s.plan,this._count=s.count,this._onDirty=s.onDirty,this._dirty=!0,this.context}var u=d.prototype;u.perform=function(s){var e=this._upstream,l=s&&s.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!l&&(o=this._plan(this.context));var c=b(this._modBy),h=this._modDataCount||0,g=b(s&&s.modBy),v=s&&s.modDataCount||0;(c!==g||h!==v)&&(o="reset");function b(I){return!(I>=1)&&(I=1),I}var S;(this._dirty||o==="reset")&&(this._dirty=!1,S=t(this,l)),this._modBy=g,this._modDataCount=v;var E=s&&s.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var C=this._dueIndex,_=Math.min(E!=null?this._dueIndex+E:Infinity,this._dueEnd);if(!l&&(S||C<_)){var T=this._progress;if(x(T))for(var w=0;w<T.length;w++)i(this,T[w],C,_,g,v);else i(this,T,C,_,g,v)}this._dueIndex=_;var O=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var a=function(){var s,e,l,n,o,c={reset:function(v,b,S,E){e=v,s=b,l=S,n=E,o=Math.ceil(n/l),c.next=l>1&&n>0?g:h}};return c;function h(){return e<s?e++:null}function g(){var v=e%o*l+Math.ceil(e/o),b=e>=s?null:v<n?v:e;return e++,b}}();u.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function i(s,e,l,n,o,c){a.reset(l,n,o,c),s._callingProgress=e,s._callingProgress({start:l,end:n,count:n-l,next:a.next},s.context)}function t(s,e){s._dueIndex=s._outputDueEnd=s._dueEnd=0,s._settedOutputEnd=null;var l,n;!e&&s._reset&&(l=s._reset(s.context),l&&l.progress&&(n=l.forceFirstProgress,l=l.progress),x(l)&&!l.length&&(l=null)),s._progress=l,s._modBy=s._modDataCount=null;var o=s._downstream;return o&&o.dirty(),n}u.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},u.pipe=function(s){(this._downstream!==s||this._dirty)&&(this._downstream=s,s._upstream=this,s.dirty())},u.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},u.getUpstream=function(){return this._upstream},u.getDownstream=function(){return this._downstream},u.setOutputEnd=function(s){this._outputDueEnd=this._settedOutputEnd=s},L.createTask=p},"9KIM":function(R,L,r){var y=r("mFDi"),f=r("xSat"),x=f.onIrrelevantElement,A=r("IwbS");function m(a){return a=u(a),function(i,t){return A.clipPointsByRect(i,a)}}function p(a,i){return a=u(a),function(t){var s=i!=null?i:t,e=s?a.width:a.height,l=s?a.x:a.y;return[l,l+(e||0)]}}function d(a,i,t){return a=u(a),function(s,e,l){return a.contain(e[0],e[1])&&!x(s,i,t)}}function u(a){return y.create(a)}L.makeRectPanelClipPath=m,L.makeLinearBrushOtherExtent=p,L.makeRectIsTargetByCursor=d},"9NmV":function(R,L){var r="\\ud800-\\udfff",y="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+f+x,m="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",d="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",a="\\u2000-\\u206f",i=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",t="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",e=d+u+a+i,l="['\u2019]",n="["+e+"]",o="["+A+"]",c="\\d+",h="["+m+"]",g="["+p+"]",v="[^"+r+e+c+m+p+t+"]",b="\\ud83c[\\udffb-\\udfff]",S="(?:"+o+"|"+b+")",E="[^"+r+"]",C="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+t+"]",w="\\u200d",O="(?:"+g+"|"+v+")",I="(?:"+T+"|"+v+")",k="(?:"+l+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+l+"(?:D|LL|M|RE|S|T|VE))?",U=S+"?",P="["+s+"]?",X="(?:"+w+"(?:"+[E,C,_].join("|")+")"+P+U+")*",F="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",j="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",K=P+U+X,z="(?:"+[h,C,_].join("|")+")"+K,V=RegExp([T+"?"+g+"+"+k+"(?="+[n,T,"$"].join("|")+")",I+"+"+M+"(?="+[n,T+O,"$"].join("|")+")",T+"?"+O+"+"+k,T+"+"+M,j,F,c,z].join("|"),"g");function Q(G){return G.match(V)||[]}R.exports=Q},"9OqN":function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.mode.CTR=function(){var f=y.lib.BlockCipherMode.extend(),x=f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0);var t=i.slice(0);d.encryptBlock(t,0),i[u-1]=i[u-1]+1|0;for(var s=0;s<u;s++)m[p+s]^=t[s]}});return f.Decryptor=x,f}(),y.mode.CTR})},"9ama":function(R,L,r){},"9eas":function(R,L,r){r("HM/N"),r("tBnm")},"9hCq":function(R,L,r){var y=r("IwbS"),f=r("+TT/"),x=r("bYtY"),A=r("VaxA"),m=A.wrapTreePathInfo,p=8,d=8,u=5;function a(e){this.group=new y.Group,e.add(this.group)}a.prototype={constructor:a,render:function(e,l,n,o){var c=e.getModel("breadcrumb"),h=this.group;if(h.removeAll(),!c.get("show")||!n)return;var g=c.getModel("itemStyle"),v=g.getModel("textStyle"),b={pos:{left:c.get("left"),right:c.get("right"),top:c.get("top"),bottom:c.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:c.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,b,v),this._renderContent(e,b,g,v,o),f.positionElement(h,b.pos,b.box)},_prepare:function(e,l,n){for(var o=e;o;o=o.parentNode){var c=o.getModel().get("name"),h=n.getTextRect(c),g=Math.max(h.width+p*2,l.emptyItemWidth);l.totalWidth+=g+d,l.renderList.push({node:o,text:c,width:g})}},_renderContent:function(e,l,n,o,c){for(var h=0,g=l.emptyItemWidth,v=e.get("breadcrumb.height"),b=f.getAvailableSize(l.pos,l.box),S=l.totalWidth,E=l.renderList,C=E.length-1;C>=0;C--){var _=E[C],T=_.node,w=_.width,O=_.text;S>b.width&&(S-=w-g,w=g,O=null);var I=new y.Polygon({shape:{points:i(h,0,w,v,C===E.length-1,C===0)},style:x.defaults(n.getItemStyle(),{lineJoin:"bevel",text:O,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:x.curry(c,T)});this.group.add(I),t(I,e,T),h+=w+d}},remove:function(){this.group.removeAll()}};function i(e,l,n,o,c,h){var g=[[c?e:e-u,l],[e+n,l],[e+n,l+o],[c?e:e-u,l+o]];return!h&&g.splice(2,0,[e+n+u,l+o/2]),!c&&g.push([e,l+o/2]),g}function t(e,l,n){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&m(n,l)}}var s=a;R.exports=s},"9u0u":function(R,L,r){var y=r("bYtY");function f(A,m){var p={};return y.each(A,function(d){d.each(d.mapDimension("value"),function(u,a){var i="ec-"+d.getName(a);p[i]=p[i]||[],isNaN(u)||p[i].push(u)})}),A[0].map(A[0].mapDimension("value"),function(d,u){for(var a="ec-"+A[0].getName(u),i=0,t=Infinity,s=-Infinity,e=p[a].length,l=0;l<e;l++)t=Math.min(t,p[a][l]),s=Math.max(s,p[a][l]),i+=p[a][l];var n;return m==="min"?n=t:m==="max"?n=s:m==="average"?n=i/e:n=i,e===0?NaN:n})}function x(A){var m={};A.eachSeriesByType("map",function(p){var d=p.getHostGeoModel(),u=d?"o"+d.id:"i"+p.getMapType();(m[u]=m[u]||[]).push(p)}),y.each(m,function(p,d){for(var u=f(y.map(p,function(i){return i.getData()}),p[0].get("mapValueCalculation")),a=0;a<p.length;a++)p[a].originalData=p[a].getData();for(var a=0;a<p.length;a++)p[a].seriesGroup=p,p[a].needsDrawMap=a===0&&!p[a].getHostGeoModel(),p[a].setData(u.cloneShallow()),p[a].mainSeries=p[0]})}R.exports=x},"9wZj":function(R,L,r){var y=r("IwbS"),f=r("FBjb"),x=r("bYtY"),A=x.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||f}var p=m.prototype;function d(t,s,e,l){return s&&!isNaN(s[0])&&!isNaN(s[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(s[0],s[1]))&&t.getItemVisual(e,"symbol")!=="none"}p.updateData=function(t,s){s=u(s);var e=this.group,l=t.hostModel,n=this._data,o=this._symbolCtor,c=a(t);n||e.removeAll(),t.diff(n).add(function(h){var g=t.getItemLayout(h);if(d(t,g,h,s)){var v=new o(t,h,c);v.attr("position",g),t.setItemGraphicEl(h,v),e.add(v)}}).update(function(h,g){var v=n.getItemGraphicEl(g),b=t.getItemLayout(h);if(!d(t,b,h,s)){e.remove(v);return}v?(v.updateData(t,h,c),y.updateProps(v,{position:b},l)):(v=new o(t,h),v.attr("position",b)),e.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var g=n.getItemGraphicEl(h);g&&g.fadeOut(function(){e.remove(g)})}).execute(),this._data=t},p.isPersistent=function(){return!0},p.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(s,e){var l=t.getItemLayout(e);s.attr("position",l)})},p.incrementalPrepareUpdate=function(t){this._seriesScope=a(t),this._data=null,this.group.removeAll()},p.incrementalUpdate=function(t,s,e){e=u(e);function l(h){h.isGroup||(h.incremental=h.useHoverLayer=!0)}for(var n=t.start;n<t.end;n++){var o=s.getItemLayout(n);if(d(s,o,n,e)){var c=new this._symbolCtor(s,n,this._seriesScope);c.traverse(l),c.attr("position",o),this.group.add(c),s.setItemGraphicEl(n,c)}}};function u(t){return t!=null&&!A(t)&&(t={isIgnore:t}),t||{}}p.remove=function(t){var s=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(l){l.fadeOut(function(){s.remove(l)})}):s.removeAll()};function a(t){var s=t.hostModel;return{itemStyle:s.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:s.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:s.get("symbolRotate"),symbolOffset:s.get("symbolOffset"),hoverAnimation:s.get("hoverAnimation"),labelModel:s.getModel("label"),hoverLabelModel:s.getModel("emphasis.label"),cursorStyle:s.get("cursor")}}var i=m;R.exports=i},"9yH6":function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("q1tI"),p=r("x1Ya"),d=r("TSYQ"),u=r.n(d),a=r("H84U"),i=m.createContext(null),t=i.Provider,s=i,e=r("ID/q"),l=r("uaoM"),n=function(k,M){var U={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(U[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(U[P[X]]=k[P[X]]);return U},o=function(M,U){var P,X=m.useContext(s),F=m.useContext(a.b),j=F.getPrefixCls,K=F.direction,z=m.useRef(),V=Object(e.a)(U,z);m.useEffect(function(){Object(l.a)(!("optionType"in M),"Radio","`optionType` is only support in Radio.Group.")},[]);var Q=function(Ge){M.onChange&&M.onChange(Ge),(X==null?void 0:X.onChange)&&X.onChange(Ge)},G=M.prefixCls,ee=M.className,se=M.children,ye=M.style,he=n(M,["prefixCls","className","children","style"]),ke=j("radio",G),Pe=A()({},he);X&&(Pe.name=X.name,Pe.onChange=Q,Pe.checked=M.value===X.value,Pe.disabled=M.disabled||X.disabled);var Ue=u()(ee,(P={},f()(P,"".concat(ke,"-wrapper"),!0),f()(P,"".concat(ke,"-wrapper-checked"),Pe.checked),f()(P,"".concat(ke,"-wrapper-disabled"),Pe.disabled),f()(P,"".concat(ke,"-wrapper-rtl"),K==="rtl"),P));return m.createElement("label",{className:Ue,style:ye,onMouseEnter:M.onMouseEnter,onMouseLeave:M.onMouseLeave},m.createElement(p.a,A()({},Pe,{prefixCls:ke,ref:V})),se!==void 0?m.createElement("span",null,se):null)},c=m.forwardRef(o);c.displayName="Radio",c.defaultProps={type:"radio"};var h=c,g=r("J4zp"),v=r.n(g),b=r("6cGi"),S=r("3Nzz"),E=m.forwardRef(function(k,M){var U=m.useContext(a.b),P=U.getPrefixCls,X=U.direction,F=m.useContext(S.b),j=Object(b.a)(k.defaultValue,{value:k.value}),K=v()(j,2),z=K[0],V=K[1],Q=function(se){var ye=z,he=se.target.value;"value"in k||V(he);var ke=k.onChange;ke&&he!==ye&&ke(se)},G=function(){var se,ye=k.prefixCls,he=k.className,ke=he===void 0?"":he,Pe=k.options,Ue=k.optionType,$e=k.buttonStyle,Ge=k.disabled,ht=k.children,Fe=k.size,oe=k.style,rt=k.id,fe=k.onMouseEnter,J=k.onMouseLeave,Y=P("radio",ye),$="".concat(Y,"-group"),de=ht;if(Pe&&Pe.length>0){var we=Ue==="button"?"".concat(Y,"-button"):Y;de=Pe.map(function(le){return typeof le=="string"?m.createElement(h,{ref:M,key:le,prefixCls:we,disabled:Ge,value:le,checked:z===le},le):m.createElement(h,{ref:M,key:"radio-group-value-options-".concat(le.value),prefixCls:we,disabled:le.disabled||Ge,value:le.value,checked:z===le.value,style:le.style},le.label)})}var Ce=Fe||F,Se=u()($,"".concat($,"-").concat($e),(se={},f()(se,"".concat($,"-").concat(Ce),Ce),f()(se,"".concat($,"-rtl"),X==="rtl"),se),ke);return m.createElement("div",{className:Se,style:oe,onMouseEnter:fe,onMouseLeave:J,id:rt},de)};return m.createElement(t,{value:{onChange:Q,value:z,disabled:k.disabled,name:k.name}},G())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),_=function(k,M){var U={};for(var P in k)Object.prototype.hasOwnProperty.call(k,P)&&M.indexOf(P)<0&&(U[P]=k[P]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,P=Object.getOwnPropertySymbols(k);X<P.length;X++)M.indexOf(P[X])<0&&Object.prototype.propertyIsEnumerable.call(k,P[X])&&(U[P[X]]=k[P[X]]);return U},T=function(M,U){var P=m.useContext(s),X=m.useContext(a.b),F=X.getPrefixCls,j=M.prefixCls,K=_(M,["prefixCls"]),z=F("radio-button",j);return P&&(K.checked=M.value===P.value,K.disabled=M.disabled||P.disabled),m.createElement(h,A()({prefixCls:z},K,{type:"radio",ref:U}))},w=m.forwardRef(T),O=h;O.Button=w,O.Group=C;var I=L.a=O},A1Ka:function(R,L,r){var y=r("bLfw"),f=r("sS/r"),x=r("D5nY"),A=x.detectSourceFormat,m=r("k9D9"),p=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:p,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),f.extend({type:"dataset"})},A90E:function(R,L,r){var y=r("6sVZ"),f=r("V6Ve"),x=Object.prototype,A=x.hasOwnProperty;function m(p){if(!y(p))return f(p);var d=[];for(var u in Object(p))A.call(p,u)&&u!="constructor"&&d.push(u);return d}R.exports=m},AE9C:function(R,L,r){var y=r("bYtY"),f=r("crZl"),x=r("IwbS"),A=r("oVpE"),m=A.createSymbol,p=r("+TT/"),d=r("y7Aq"),u=f.extend({type:"visualMap.piecewise",doRender:function(){var i=this.group;i.removeAll();var t=this.visualMapModel,s=t.get("textGap"),e=t.textStyleModel,l=e.getFont(),n=e.getTextColor(),o=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),g=h.endsText,v=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(i,g[0],c,v,o),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(i,g[1],c,v,o),p.box(t.get("orient"),i,t.get("itemGap")),this.renderBackground(i),this.positionGroup(i);function b(S){var E=S.piece,C=new x.Group;C.onclick=y.bind(this._onItemClick,this,E),this._enableHoverLink(C,S.indexInModelPieceList);var _=t.getRepresentValue(E);if(this._createItemSymbol(C,_,[0,0,c[0],c[1]]),v){var T=this.visualMapModel.getValueState(_);C.add(new x.Text({style:{x:o==="right"?-s:c[0]+s,y:c[1]/2,text:E.text,textVerticalAlign:"middle",textAlign:o,textFont:l,textFill:n,opacity:T==="outOfRange"?.5:1}}))}i.add(C)}},_enableHoverLink:function(i,t){i.on("mouseover",y.bind(s,this,"highlight")).on("mouseout",y.bind(s,this,"downplay"));function s(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(l.findTargetDataIndices(t),l)})}},_getItemAlign:function(){var i=this.visualMapModel,t=i.option;if(t.orient==="vertical")return d.getItemAlign(i,this.api,i.itemSize);var s=t.align;return(!s||s==="auto")&&(s="left"),s},_renderEndsText:function(i,t,s,e,l){if(!t)return;var n=new x.Group,o=this.visualMapModel.textStyleModel;n.add(new x.Text({style:{x:e?l==="right"?s[0]:0:s[0]/2,y:s[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:t,textFont:o.getFont(),textFill:o.getTextColor()}})),i.add(n)},_getViewData:function(){var i=this.visualMapModel,t=y.map(i.getPieceList(),function(n,o){return{piece:n,indexInModelPieceList:o}}),s=i.get("text"),e=i.get("orient"),l=i.get("inverse");return(e==="horizontal"?l:!l)?t.reverse():s&&(s=s.slice().reverse()),{viewPieceList:t,endsText:s}},_createItemSymbol:function(i,t,s){i.add(m(this.getControllerVisual(t,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(t,"color")))},_onItemClick:function(i){var t=this.visualMapModel,s=t.option,e=y.clone(s.selected),l=t.getSelectedMapKey(i);s.selectedMode==="single"?(e[l]=!0,y.each(e,function(n,o){e[o]=o===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),a=u;R.exports=a},AEZ6:function(R,L,r){var y=r("bYtY"),f=y.each,x=y.createHashMap,A=r("T4UG"),m=r("MwEJ"),p=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(a,i){var t=this.getSource();return d(t,this),m(t,this)},getRawIndicesByActiveState:function(a){var i=this.coordinateSystem,t=this.getData(),s=[];return i.eachActiveState(t,function(e,l){a===e&&s.push(t.getRawIndex(l))}),s},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function d(a,i){if(a.encodeDefine)return;var t=i.ecModel.getComponent("parallel",i.get("parallelIndex"));if(!t)return;var s=a.encodeDefine=x();f(t.dimensions,function(e){var l=u(e);s.set(e,l)})}function u(a){return+a.replace("dim","")}R.exports=p},AH3D:function(R,L,r){var y=r("ProS");r("y4/Y"),r("qWt2"),r("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},AJpP:function(R,L,r){"use strict";r.r(L),r.d(L,"blue",function(){return Y}),r.d(L,"cyan",function(){return J}),r.d(L,"geekblue",function(){return $}),r.d(L,"generate",function(){return he}),r.d(L,"gold",function(){return ht}),r.d(L,"green",function(){return fe}),r.d(L,"grey",function(){return Ce}),r.d(L,"lime",function(){return rt}),r.d(L,"magenta",function(){return we}),r.d(L,"orange",function(){return Fe}),r.d(L,"presetDarkPalettes",function(){return Ue}),r.d(L,"presetPalettes",function(){return Pe}),r.d(L,"presetPrimaryColors",function(){return ke}),r.d(L,"purple",function(){return de}),r.d(L,"red",function(){return $e}),r.d(L,"volcano",function(){return Ge}),r.d(L,"yellow",function(){return oe});function y(Se,le){x(Se)&&(Se="100%");var pe=A(Se);return Se=le===360?Se:Math.min(le,Math.max(0,parseFloat(Se))),pe&&(Se=parseInt(String(Se*le),10)/100),Math.abs(Se-le)<1e-6?1:(le===360?Se=(Se<0?Se%le+le:Se%le)/parseFloat(String(le)):Se=Se%le/parseFloat(String(le)),Se)}function f(Se){return Math.min(1,Math.max(0,Se))}function x(Se){return typeof Se=="string"&&Se.indexOf(".")!==-1&&parseFloat(Se)===1}function A(Se){return typeof Se=="string"&&Se.indexOf("%")!==-1}function m(Se){return Se=parseFloat(Se),(isNaN(Se)||Se<0||Se>1)&&(Se=1),Se}function p(Se){return Se<=1?"".concat(Number(Se)*100,"%"):Se}function d(Se){return Se.length===1?"0"+Se:String(Se)}function u(Se,le,pe){return{r:y(Se,255)*255,g:y(le,255)*255,b:y(pe,255)*255}}function a(Se,le,pe){Se=y(Se,255),le=y(le,255),pe=y(pe,255);var _e=Math.max(Se,le,pe),tt=Math.min(Se,le,pe),gt=0,ct=0,je=(_e+tt)/2;if(_e===tt)ct=0,gt=0;else{var Zt=_e-tt;ct=je>.5?Zt/(2-_e-tt):Zt/(_e+tt);switch(_e){case Se:gt=(le-pe)/Zt+(le<pe?6:0);break;case le:gt=(pe-Se)/Zt+2;break;case pe:gt=(Se-le)/Zt+4;break;default:break}gt/=6}return{h:gt,s:ct,l:je}}function i(Se,le,pe){return pe<0&&(pe+=1),pe>1&&(pe-=1),pe<1/6?Se+(le-Se)*(6*pe):pe<1/2?le:pe<2/3?Se+(le-Se)*(2/3-pe)*6:Se}function t(Se,le,pe){var _e,tt,gt;if(Se=y(Se,360),le=y(le,100),pe=y(pe,100),le===0)tt=pe,gt=pe,_e=pe;else{var ct=pe<.5?pe*(1+le):pe+le-pe*le,je=2*pe-ct;_e=i(je,ct,Se+1/3),tt=i(je,ct,Se),gt=i(je,ct,Se-1/3)}return{r:_e*255,g:tt*255,b:gt*255}}function s(Se,le,pe){Se=y(Se,255),le=y(le,255),pe=y(pe,255);var _e=Math.max(Se,le,pe),tt=Math.min(Se,le,pe),gt=0,ct=_e,je=_e-tt,Zt=_e===0?0:je/_e;if(_e===tt)gt=0;else{switch(_e){case Se:gt=(le-pe)/je+(le<pe?6:0);break;case le:gt=(pe-Se)/je+2;break;case pe:gt=(Se-le)/je+4;break;default:break}gt/=6}return{h:gt,s:Zt,v:ct}}function e(Se,le,pe){Se=y(Se,360)*6,le=y(le,100),pe=y(pe,100);var _e=Math.floor(Se),tt=Se-_e,gt=pe*(1-le),ct=pe*(1-tt*le),je=pe*(1-(1-tt)*le),Zt=_e%6,ut=[pe,ct,gt,gt,je,pe][Zt],Ht=[je,pe,pe,ct,gt,gt][Zt],dr=[gt,gt,je,pe,pe,ct][Zt];return{r:ut*255,g:Ht*255,b:dr*255}}function l(Se,le,pe,_e){var tt=[d(Math.round(Se).toString(16)),d(Math.round(le).toString(16)),d(Math.round(pe).toString(16))];return _e&&tt[0].startsWith(tt[0].charAt(1))&&tt[1].startsWith(tt[1].charAt(1))&&tt[2].startsWith(tt[2].charAt(1))?tt[0].charAt(0)+tt[1].charAt(0)+tt[2].charAt(0):tt.join("")}function n(Se,le,pe,_e,tt){var gt=[d(Math.round(Se).toString(16)),d(Math.round(le).toString(16)),d(Math.round(pe).toString(16)),d(c(_e))];return tt&&gt[0].startsWith(gt[0].charAt(1))&&gt[1].startsWith(gt[1].charAt(1))&&gt[2].startsWith(gt[2].charAt(1))&&gt[3].startsWith(gt[3].charAt(1))?gt[0].charAt(0)+gt[1].charAt(0)+gt[2].charAt(0)+gt[3].charAt(0):gt.join("")}function o(Se,le,pe,_e){var tt=[d(c(_e)),d(Math.round(Se).toString(16)),d(Math.round(le).toString(16)),d(Math.round(pe).toString(16))];return tt.join("")}function c(Se){return Math.round(parseFloat(Se)*255).toString(16)}function h(Se){return g(Se)/255}function g(Se){return parseInt(Se,16)}function v(Se){return{r:Se>>16,g:(Se&65280)>>8,b:Se&255}}var b={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function S(Se){var le={r:0,g:0,b:0},pe=1,_e=null,tt=null,gt=null,ct=!1,je=!1;return typeof Se=="string"&&(Se=I(Se)),typeof Se=="object"&&(k(Se.r)&&k(Se.g)&&k(Se.b)?(le=u(Se.r,Se.g,Se.b),ct=!0,je=String(Se.r).substr(-1)==="%"?"prgb":"rgb"):k(Se.h)&&k(Se.s)&&k(Se.v)?(_e=p(Se.s),tt=p(Se.v),le=e(Se.h,_e,tt),ct=!0,je="hsv"):k(Se.h)&&k(Se.s)&&k(Se.l)&&(_e=p(Se.s),gt=p(Se.l),le=t(Se.h,_e,gt),ct=!0,je="hsl"),Object.prototype.hasOwnProperty.call(Se,"a")&&(pe=Se.a)),pe=m(pe),{ok:ct,format:Se.format||je,r:Math.min(255,Math.max(le.r,0)),g:Math.min(255,Math.max(le.g,0)),b:Math.min(255,Math.max(le.b,0)),a:pe}}var E="[-\\+]?\\d+%?",C="[-\\+]?\\d*\\.\\d+%?",_="(?:".concat(C,")|(?:").concat(E,")"),T="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),w="[\\s|\\(]+(".concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")[,|\\s]+(").concat(_,")\\s*\\)?"),O={CSS_UNIT:new RegExp(_),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function I(Se){if(Se=Se.trim().toLowerCase(),Se.length===0)return!1;var le=!1;if(b[Se])Se=b[Se],le=!0;else if(Se==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var pe=O.rgb.exec(Se);return pe?{r:pe[1],g:pe[2],b:pe[3]}:(pe=O.rgba.exec(Se),pe?{r:pe[1],g:pe[2],b:pe[3],a:pe[4]}:(pe=O.hsl.exec(Se),pe?{h:pe[1],s:pe[2],l:pe[3]}:(pe=O.hsla.exec(Se),pe?{h:pe[1],s:pe[2],l:pe[3],a:pe[4]}:(pe=O.hsv.exec(Se),pe?{h:pe[1],s:pe[2],v:pe[3]}:(pe=O.hsva.exec(Se),pe?{h:pe[1],s:pe[2],v:pe[3],a:pe[4]}:(pe=O.hex8.exec(Se),pe?{r:g(pe[1]),g:g(pe[2]),b:g(pe[3]),a:h(pe[4]),format:le?"name":"hex8"}:(pe=O.hex6.exec(Se),pe?{r:g(pe[1]),g:g(pe[2]),b:g(pe[3]),format:le?"name":"hex"}:(pe=O.hex4.exec(Se),pe?{r:g(pe[1]+pe[1]),g:g(pe[2]+pe[2]),b:g(pe[3]+pe[3]),a:h(pe[4]+pe[4]),format:le?"name":"hex8"}:(pe=O.hex3.exec(Se),pe?{r:g(pe[1]+pe[1]),g:g(pe[2]+pe[2]),b:g(pe[3]+pe[3]),format:le?"name":"hex"}:!1)))))))))}function k(Se){return Boolean(O.CSS_UNIT.exec(String(Se)))}var M=2,U=.16,P=.05,X=.05,F=.15,j=5,K=4,z=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function V(Se){var le=Se.r,pe=Se.g,_e=Se.b,tt=s(le,pe,_e);return{h:tt.h*360,s:tt.s,v:tt.v}}function Q(Se){var le=Se.r,pe=Se.g,_e=Se.b;return"#".concat(l(le,pe,_e,!1))}function G(Se,le,pe){var _e=pe/100,tt={r:(le.r-Se.r)*_e+Se.r,g:(le.g-Se.g)*_e+Se.g,b:(le.b-Se.b)*_e+Se.b};return tt}function ee(Se,le,pe){var _e;return Math.round(Se.h)>=60&&Math.round(Se.h)<=240?_e=pe?Math.round(Se.h)-M*le:Math.round(Se.h)+M*le:_e=pe?Math.round(Se.h)+M*le:Math.round(Se.h)-M*le,_e<0?_e+=360:_e>=360&&(_e-=360),_e}function se(Se,le,pe){if(Se.h===0&&Se.s===0)return Se.s;var _e;return pe?_e=Se.s-U*le:le===K?_e=Se.s+U:_e=Se.s+P*le,_e>1&&(_e=1),pe&&le===j&&_e>.1&&(_e=.1),_e<.06&&(_e=.06),Number(_e.toFixed(2))}function ye(Se,le,pe){var _e;return pe?_e=Se.v+X*le:_e=Se.v-F*le,_e>1&&(_e=1),Number(_e.toFixed(2))}function he(Se){for(var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=[],_e=S(Se),tt=j;tt>0;tt-=1){var gt=V(_e),ct=Q(S({h:ee(gt,tt,!0),s:se(gt,tt,!0),v:ye(gt,tt,!0)}));pe.push(ct)}pe.push(Q(_e));for(var je=1;je<=K;je+=1){var Zt=V(_e),ut=Q(S({h:ee(Zt,je),s:se(Zt,je),v:ye(Zt,je)}));pe.push(ut)}return le.theme==="dark"?z.map(function(Ht){var dr=Ht.index,Vt=Ht.opacity,Mt=Q(G(S(le.backgroundColor||"#141414"),S(pe[dr]),Vt*100));return Mt}):pe}var ke={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Pe={},Ue={};Object.keys(ke).forEach(function(Se){Pe[Se]=he(ke[Se]),Pe[Se].primary=Pe[Se][5],Ue[Se]=he(ke[Se],{theme:"dark",backgroundColor:"#141414"}),Ue[Se].primary=Ue[Se][5]});var $e=Pe.red,Ge=Pe.volcano,ht=Pe.gold,Fe=Pe.orange,oe=Pe.yellow,rt=Pe.lime,fe=Pe.green,J=Pe.cyan,Y=Pe.blue,$=Pe.geekblue,de=Pe.purple,we=Pe.magenta,Ce=Pe.grey},ALo7:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("5GtS"),A=r("4NO4"),m=A.defaultEmphasis,p=r("D5nY"),d=p.makeSeriesEncodeForNameBased,u=r("xKMd"),a=y.extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendVisualProvider=new u(f.bind(this.getData,this),f.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,s){return x(this,{coordDimensions:["value"],encodeDefaulter:f.curry(d,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var s=t.labelLine,e=t.emphasis.labelLine;s.show=s.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var s=this.getData(),e=a.superCall(this,"getDataParams",t),l=s.mapDimension("value"),n=s.getSum(l);return e.percent=n?+(s.get(l,t)/n*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),i=a;R.exports=i},ALsQ:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.mode.CFB=function(){var f=y.lib.BlockCipherMode.extend();f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize;x.call(this,m,p,u,d),this._prevBlock=m.slice(p,p+u)}}),f.Decryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,a=m.slice(p,p+u);x.call(this,m,p,u,d),this._prevBlock=a}});function x(A,m,p,d){var u,a=this._iv;a?(u=a.slice(0),this._iv=void 0):u=this._prevBlock,d.encryptBlock(u,0);for(var i=0;i<p;i++)A[m+i]^=u[i]}return f}(),y.mode.CFB})},ANjR:function(R,L,r){var y=r("bYtY");function f(A,m){return m=m||[0,0],y.map([0,1],function(p){var d=m[p],u=A[p]/2,a=[],i=[];return a[p]=d-u,i[p]=d+u,a[1-p]=i[1-p]=m[1-p],Math.abs(this.dataToPoint(a)[p]-this.dataToPoint(i)[p])},this)}function x(A){var m=A.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:A.getZoom()},api:{coord:function(p){return A.dataToPoint(p)},size:y.bind(f,A)}}}R.exports=x},AOa7:function(R,L,r){},AUH6:function(R,L,r){var y=r("bYtY"),f=r("mFDi"),x=r("bMXI"),A=r("W4dC");function m(u,a,i,t){x.call(this,u),this.map=a;var s=A.load(a,i);this._nameCoordMap=s.nameCoordMap,this._regionsMap=s.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=s.regions,this._rect=s.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(u){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return!0;return!1},transformTo:function(u,a,i,t){var s=this.getBoundingRect(),e=this._invertLongitute;s=s.clone(),e&&(s.y=-s.y-s.height);var l=this._rawTransformable;if(l.transform=s.calculateTransform(new f(u,a,i,t)),l.decomposeTransform(),e){var n=l.scale;n[1]=-n[1]}l.updateTransform(),this._updateTransform()},getRegion:function(u){return this._regionsMap.get(u)},getRegionByCoord:function(u){for(var a=this.regions,i=0;i<a.length;i++)if(a[i].contain(u))return a[i]},addGeoCoord:function(u,a){this._nameCoordMap.set(u,a)},getGeoCoord:function(u){return this._nameCoordMap.get(u)},getBoundingRect:function(){return this._rect},dataToPoint:function(u,a,i){if(typeof u=="string"&&(u=this.getGeoCoord(u)),u)return x.prototype.dataToPoint.call(this,u,a,i)},convertToPixel:y.curry(p,"dataToPoint"),convertFromPixel:y.curry(p,"pointToData")},y.mixin(m,x);function p(u,a,i,t){var s=i.geoModel,e=i.seriesModel,l=s?s.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[u](t):null}var d=m;R.exports=d},AVZG:function(R,L,r){var y=r("bYtY");function f(x,A,m){m=m||{};var p=x.coordinateSystem,d=A.axis,u={},a=d.getAxesOnZeroOf()[0],i=d.position,t=a?"onZero":i,s=d.dim,e=p.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],n={left:0,right:1,top:0,bottom:1,onZero:2},o=A.get("offset")||0,c=s==="x"?[l[2]-o,l[3]+o]:[l[0]-o,l[1]+o];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));c[n.onZero]=Math.max(Math.min(h,c[1]),c[0])}u.position=[s==="y"?c[n[t]]:l[0],s==="x"?c[n[t]]:l[3]],u.rotation=Math.PI/2*(s==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=g[i],u.labelOffset=a?c[n[i]]-c[n.onZero]:0,A.get("axisTick.inside")&&(u.tickDirection=-u.tickDirection),y.retrieve(m.labelInside,A.get("axisLabel.inside"))&&(u.labelDirection=-u.labelDirection);var v=A.get("axisLabel.rotate");return u.labelRotate=t==="top"?-v:v,u.z2=1,u}L.layout=f},"Ae+d":function(R,L){function r(f,x,A){var m=f.target,p=m.position;p[0]+=x,p[1]+=A,m.dirty()}function y(f,x,A,m){var p=f.target,d=f.zoomLimit,u=p.position,a=p.scale,i=f.zoom=f.zoom||1;if(i*=x,d){var t=d.min||0,s=d.max||Infinity;i=Math.max(Math.min(s,i),t)}var e=i/f.zoom;f.zoom=i,u[0]-=(A-u[0])*(e-1),u[1]-=(m-u[1])*(e-1),a[0]*=e,a[1]*=e,p.dirty()}L.updateViewOnPan=r,L.updateViewOnZoom=y},Ae16:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS");r("Wqna"),r("rySg"),y.extendComponentView({type:"grid",render:function(A,m){this.group.removeAll(),A.get("show")&&this.group.add(new x.Rect({shape:A.coordinateSystem.getRect(),style:f.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("PQMj"),A=r.n(x)},"B+YJ":function(R,L,r){r("TYVI"),r("p1MT")},"B6l+":function(R,L,r){var y=r("Sq3C"),f=r("Z1HP"),x=r("Sxd8"),A=r("dt0z");function m(p,d,u){p=A(p),d=x(d);var a=d?f(p):0;return d&&a<d?p+y(d-a,u):p}R.exports=m},B8du:function(R,L){function r(){return!1}R.exports=r},B9cy:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("0XgM"),A=r.n(x)},B9fm:function(R,L,r){var y=r("bYtY"),f=r("Qe9p"),x=r("YH21"),A=r("Ze12"),m=r("ItGF"),p=r("7aKB"),d=y.each,u=p.toCamelCase,a=["","-webkit-","-moz-","-o-"],i="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function t(c){var h="cubic-bezier(0.23, 1, 0.32, 1)",g="left "+c+"s "+h+",top "+c+"s "+h;return y.map(a,function(v){return v+"transition:"+g}).join(";")}function s(c){var h=[],g=c.get("fontSize"),v=c.getTextColor();return v&&h.push("color:"+v),h.push("font:"+c.getFont()),g&&h.push("line-height:"+Math.round(g*3/2)+"px"),d(["decoration","align"],function(b){var S=c.get(b);S&&h.push("text-"+b+":"+S)}),h.join(";")}function e(c){var h=[],g=c.get("transitionDuration"),v=c.get("backgroundColor"),b=c.getModel("textStyle"),S=c.get("padding");return g&&h.push(t(g)),v&&(m.canvasSupported?h.push("background-Color:"+v):(h.push("background-Color:#"+f.toHex(v)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(E){var C="border-"+E,_=u(C),T=c.get(_);T!=null&&h.push(C+":"+T+(E==="color"?"":"px"))}),h.push(s(b)),S!=null&&h.push("padding:"+p.normalizeCssArray(S).join("px ")+"px"),h.join(";")+";"}function l(c,h,g,v,b){var S=h&&h.painter;if(g){var E=S&&S.getViewportRoot();E&&A.transformLocalCoord(c,E,document.body,v,b)}else{c[0]=v,c[1]=b;var C=S&&S.getViewportRootOffset();C&&(c[0]+=C.offsetLeft,c[1]+=C.offsetTop)}}function n(c,h,g){if(m.wxa)return null;var v=document.createElement("div");v.domBelongToZr=!0,this.el=v;var b=this._zr=h.getZr(),S=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,b,S,h.getWidth()/2,h.getHeight()/2),S?document.body.appendChild(v):c.appendChild(v),this._container=c,this._show=!1,this._hideTimeout;var E=this;v.onmouseenter=function(){E._enterable&&(clearTimeout(E._hideTimeout),E._show=!0),E._inContent=!0},v.onmousemove=function(C){if(C=C||window.event,!E._enterable){var _=b.handler,T=b.painter.getViewportRoot();x.normalizeEvent(T,C,!0),_.dispatch("mousemove",C)}},v.onmouseleave=function(){E._enterable&&(E._show&&E.hideLater(E._hideDelay)),E._inContent=!1}}n.prototype={constructor:n,_enterable:!0,update:function(){var c=this._container,h=c.currentStyle||document.defaultView.getComputedStyle(c),g=c.style;g.position!=="absolute"&&h.position!=="absolute"&&(g.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var h=this.el,g=this._styleCoord;h.style.cssText=i+e(c)+";left:"+g[0]+"px;top:"+g[1]+"px;"+(c.get("extraCssText")||""),h.style.display=h.innerHTML?"block":"none",h.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(c){this.el.innerHTML=c==null?"":c},setEnterable:function(c){this._enterable=c},getSize:function(){var c=this.el;return[c.clientWidth,c.clientHeight]},moveTo:function(c,h){var g=this._styleCoord;l(g,this._zr,this._appendToBody,c,h);var v=this.el.style;v.left=g[0]+"px",v.top=g[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(c){this._show&&!(this._inContent&&this._enterable)&&(c?(this._hideDelay=c,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),c)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var c=this.el.clientWidth,h=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(this.el);g&&(c+=parseInt(g.borderLeftWidth,10)+parseInt(g.borderRightWidth,10),h+=parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10))}return{width:c,height:h}}};var o=n;R.exports=o},BPZU:function(R,L){var r=32,y=7,f=256;function x(t){for(var s=0;t>=r;)s|=t&1,t>>=1;return t+s}function A(t,s,e,l){var n=s+1;if(n===e)return 1;if(l(t[n++],t[s])<0){for(;n<e&&l(t[n],t[n-1])<0;)n++;m(t,s,n)}else for(;n<e&&l(t[n],t[n-1])>=0;)n++;return n-s}function m(t,s,e){for(e--;s<e;){var l=t[s];t[s++]=t[e],t[e--]=l}}function p(t,s,e,l,n){for(l===s&&l++;l<e;l++){for(var o=t[l],c=s,h=l,g;c<h;)g=c+h>>>1,n(o,t[g])<0?h=g:c=g+1;var v=l-c;switch(v){case 3:t[c+3]=t[c+2];case 2:t[c+2]=t[c+1];case 1:t[c+1]=t[c];break;default:for(;v>0;)t[c+v]=t[c+v-1],v--}t[c]=o}}function d(t,s,e,l,n,o){var c=0,h=0,g=1;if(o(t,s[e+n])>0){for(h=l-n;g<h&&o(t,s[e+n+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=n,g+=n}else{for(h=n+1;g<h&&o(t,s[e+n-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var v=c;c=n-g,g=n-v}for(c++;c<g;){var b=c+(g-c>>>1);o(t,s[e+b])>0?c=b+1:g=b}return g}function u(t,s,e,l,n,o){var c=0,h=0,g=1;if(o(t,s[e+n])<0){for(h=n+1;g<h&&o(t,s[e+n-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var v=c;c=n-g,g=n-v}else{for(h=l-n;g<h&&o(t,s[e+n+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=n,g+=n}for(c++;c<g;){var b=c+(g-c>>>1);o(t,s[e+b])<0?g=b:c=b+1}return g}function a(t,s){var e=y,l=0,n=f,o=0,c,h,g=0;l=t.length,l<2*f&&(n=l>>>1);var v=[];o=l<120?5:l<1542?10:l<119151?19:40,c=[],h=[];function b(w,O){c[g]=w,h[g]=O,g+=1}function S(){for(;g>1;){var w=g-2;if(w>=1&&h[w-1]<=h[w]+h[w+1]||w>=2&&h[w-2]<=h[w]+h[w-1])h[w-1]<h[w+1]&&w--;else if(h[w]>h[w+1])break;C(w)}}function E(){for(;g>1;){var w=g-2;w>0&&h[w-1]<h[w+1]&&w--,C(w)}}function C(w){var O=c[w],I=h[w],k=c[w+1],M=h[w+1];h[w]=I+M,w===g-3&&(c[w+1]=c[w+2],h[w+1]=h[w+2]),g--;var U=u(t[k],t,O,I,0,s);if(O+=U,I-=U,I===0)return;if(M=d(t[O+I-1],t,k,M,M-1,s),M===0)return;I<=M?_(O,I,k,M):T(O,I,k,M)}function _(w,O,I,k){var M=0;for(M=0;M<O;M++)v[M]=t[w+M];var U=0,P=I,X=w;if(t[X++]=t[P++],--k===0){for(M=0;M<O;M++)t[X+M]=v[U+M];return}if(O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=v[U];return}for(var F=e,j,K,z;;){j=0,K=0,z=!1;do if(s(t[P],v[U])<0){if(t[X++]=t[P++],K++,j=0,--k===0){z=!0;break}}else if(t[X++]=v[U++],j++,K=0,--O===1){z=!0;break}while((j|K)<F);if(z)break;do{if(j=u(t[P],v,U,O,0,s),j!==0){for(M=0;M<j;M++)t[X+M]=v[U+M];if(X+=j,U+=j,O-=j,O<=1){z=!0;break}}if(t[X++]=t[P++],--k===0){z=!0;break}if(K=d(v[U],t,P,k,0,s),K!==0){for(M=0;M<K;M++)t[X+M]=t[P+M];if(X+=K,P+=K,k-=K,k===0){z=!0;break}}if(t[X++]=v[U++],--O===1){z=!0;break}F--}while(j>=y||K>=y);if(z)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),O===1){for(M=0;M<k;M++)t[X+M]=t[P+M];t[X+k]=v[U]}else{if(O===0)throw new Error;for(M=0;M<O;M++)t[X+M]=v[U+M]}}function T(w,O,I,k){var M=0;for(M=0;M<k;M++)v[M]=t[I+M];var U=w+O-1,P=k-1,X=I+k-1,F=0,j=0;if(t[X--]=t[U--],--O===0){for(F=X-(k-1),M=0;M<k;M++)t[F+M]=v[M];return}if(k===1){for(X-=O,U-=O,j=X+1,F=U+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=v[P];return}for(var K=e;;){var z=0,V=0,Q=!1;do if(s(v[P],t[U])<0){if(t[X--]=t[U--],z++,V=0,--O===0){Q=!0;break}}else if(t[X--]=v[P--],V++,z=0,--k===1){Q=!0;break}while((z|V)<K);if(Q)break;do{if(z=O-u(v[P],t,w,O,O-1,s),z!==0){for(X-=z,U-=z,O-=z,j=X+1,F=U+1,M=z-1;M>=0;M--)t[j+M]=t[F+M];if(O===0){Q=!0;break}}if(t[X--]=v[P--],--k===1){Q=!0;break}if(V=k-d(t[U],v,0,k,k-1,s),V!==0){for(X-=V,P-=V,k-=V,j=X+1,F=P+1,M=0;M<V;M++)t[j+M]=v[F+M];if(k<=1){Q=!0;break}}if(t[X--]=t[U--],--O===0){Q=!0;break}K--}while(z>=y||V>=y);if(Q)break;K<0&&(K=0),K+=2}if(e=K,e<1&&(e=1),k===1){for(X-=O,U-=O,j=X+1,F=U+1,M=O-1;M>=0;M--)t[j+M]=t[F+M];t[X]=v[P]}else{if(k===0)throw new Error;for(F=X-(k-1),M=0;M<k;M++)t[F+M]=v[M]}}this.mergeRuns=S,this.forceMergeRuns=E,this.pushRun=b}function i(t,s,e,l){e||(e=0),l||(l=t.length);var n=l-e;if(n<2)return;var o=0;if(n<r){o=A(t,e,l,s),p(t,e,l,e+o,s);return}var c=new a(t,s),h=x(n);do{if(o=A(t,e,l,s),o<h){var g=n;g>h&&(g=h),p(t,e,e+g,e+o,s),o=g}c.pushRun(e,o),c.mergeRuns(),n-=o,e+=o}while(n!==0);c.forceMergeRuns()}R.exports=i},Bd2K:function(R,L,r){(function(y){y(r("VrN/"),r("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(a,i,t){if(t!=y.Init&&t&&a.removeKeyMap("autoCloseTags"),!i)return;var s={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing!==!1)&&(s["'/'"]=function(e){return p(e)}),(typeof i!="object"||i.whenOpening!==!1)&&(s["'>'"]=function(e){return A(e)}),a.addKeyMap(s)});var f=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],x=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function A(a){if(a.getOption("disableInput"))return y.Pass;for(var i=a.listSelections(),t=[],s=a.getOption("autoCloseTags"),e=0;e<i.length;e++){if(!i[e].empty())return y.Pass;var l=i[e].head,n=a.getTokenAt(l),o=y.innerMode(a.getMode(),n.state),c=o.state,h=o.mode.xmlCurrentTag&&o.mode.xmlCurrentTag(c),g=h&&h.name;if(!g)return y.Pass;var v=o.mode.configuration=="html",b=typeof s=="object"&&s.dontCloseTags||v&&f,S=typeof s=="object"&&s.indentTags||v&&x;n.end>l.ch&&(g=g.slice(0,g.length-n.end+l.ch));var E=g.toLowerCase();if(!g||n.type=="string"&&(n.end!=l.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&h.close||n.string.indexOf("/")==l.ch-n.start-1||b&&d(b,E)>-1||u(a,o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(c)||[],g,l,!0))return y.Pass;var C=typeof s=="object"&&s.emptyTags;if(C&&d(C,g)>-1){t[e]={text:"/>",newPos:y.Pos(l.line,l.ch+2)};continue}var _=S&&d(S,E)>-1;t[e]={indent:_,text:">"+(_?`
`:"")+"</"+g+">",newPos:_?y.Pos(l.line+1,0):y.Pos(l.line,l.ch+1)}}for(var T=typeof s=="object"&&s.dontIndentOnAutoClose,e=i.length-1;e>=0;e--){var w=t[e];a.replaceRange(w.text,i[e].head,i[e].anchor,"+insert");var O=a.listSelections().slice(0);O[e]={head:w.newPos,anchor:w.newPos},a.setSelections(O),!T&&w.indent&&(a.indentLine(w.newPos.line,null,!0),a.indentLine(w.newPos.line+1,null,!0))}}function m(a,i){for(var t=a.listSelections(),s=[],e=i?"/":"</",l=a.getOption("autoCloseTags"),n=typeof l=="object"&&l.dontIndentOnSlash,o=0;o<t.length;o++){if(!t[o].empty())return y.Pass;var c=t[o].head,h=a.getTokenAt(c),g=y.innerMode(a.getMode(),h.state),v=g.state;if(i&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,S=g.mode.name!="xml"&&a.getMode().name=="htmlmixed";if(S&&g.mode.name=="javascript")b=e+"script";else if(S&&g.mode.name=="css")b=e+"style";else{var E=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(v);if(!E||E.length&&u(a,E,E[E.length-1],c))return y.Pass;b=e+E[E.length-1]}a.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),s[o]=b}if(a.replaceSelections(s),t=a.listSelections(),!n)for(var o=0;o<t.length;o++)(o==t.length-1||t[o].head.line<t[o+1].head.line)&&a.indentLine(t[o].head.line)}function p(a){return a.getOption("disableInput")?y.Pass:m(a,!0)}y.commands.closeTag=function(a){return m(a)};function d(a,i){if(a.indexOf)return a.indexOf(i);for(var t=0,s=a.length;t<s;++t)if(a[t]==i)return t;return-1}function u(a,i,t,s,e){if(!y.scanForClosingTag)return!1;var l=Math.min(a.lastLine()+1,s.line+500),n=y.scanForClosingTag(a,s,null,l);if(!n||n.tag!=t)return!1;for(var o=e?1:0,c=i.length-1;c>=0&&i[c]==t;c--)++o;s=n.to;for(var c=1;c<o;c++){var h=y.scanForClosingTag(a,s,null,l);if(!h||h.tag!=t)return!1;s=h.to}return!0}})},BlVb:function(R,L,r){var y=r("hyiK"),f=1e-8;function x(m,p){return Math.abs(m-p)<f}function A(m,p,d){var u=0,a=m[0];if(!a)return!1;for(var i=1;i<m.length;i++){var t=m[i];u+=y(a[0],a[1],t[0],t[1],p,d),a=t}var s=m[0];return(!x(a[0],s[0])||!x(a[1],s[1]))&&(u+=y(a[0],a[1],s[0],s[1],p,d)),u!==0}L.contain=A},BoS7:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("czTT"),A=r.n(x)},Bq2U:function(R,L,r){var y=r("RDYZ"),f=r("Qe9p"),x=r("bYtY"),A=x.isArrayLike,m=Array.prototype.slice;function p(b,S){return b[S]}function d(b,S,E){b[S]=E}function u(b,S,E){return(S-b)*E+b}function a(b,S,E){return E>.5?S:b}function i(b,S,E,C,_){var T=b.length;if(_===1)for(var w=0;w<T;w++)C[w]=u(b[w],S[w],E);else for(var O=T&&b[0].length,w=0;w<T;w++)for(var I=0;I<O;I++)C[w][I]=u(b[w][I],S[w][I],E)}function t(b,S,E){var C=b.length,_=S.length;if(C!==_){var T=C>_;if(T)b.length=_;else for(var w=C;w<_;w++)b.push(E===1?S[w]:m.call(S[w]))}for(var O=b[0]&&b[0].length,w=0;w<b.length;w++)if(E===1)isNaN(b[w])&&(b[w]=S[w]);else for(var I=0;I<O;I++)isNaN(b[w][I])&&(b[w][I]=S[w][I])}function s(b,S,E){if(b===S)return!0;var C=b.length;if(C!==S.length)return!1;if(E===1){for(var _=0;_<C;_++)if(b[_]!==S[_])return!1}else for(var T=b[0].length,_=0;_<C;_++)for(var w=0;w<T;w++)if(b[_][w]!==S[_][w])return!1;return!0}function e(b,S,E,C,_,T,w,O,I){var k=b.length;if(I===1)for(var M=0;M<k;M++)O[M]=l(b[M],S[M],E[M],C[M],_,T,w);else for(var U=b[0].length,M=0;M<k;M++)for(var P=0;P<U;P++)O[M][P]=l(b[M][P],S[M][P],E[M][P],C[M][P],_,T,w)}function l(b,S,E,C,_,T,w){var O=(E-b)*.5,I=(C-S)*.5;return(2*(S-E)+O+I)*w+(-3*(S-E)-2*O-I)*T+O*_+S}function n(b){if(A(b)){var S=b.length;if(A(b[0])){for(var E=[],C=0;C<S;C++)E.push(m.call(b[C]));return E}return m.call(b)}return b}function o(b){return b[0]=Math.floor(b[0]),b[1]=Math.floor(b[1]),b[2]=Math.floor(b[2]),"rgba("+b.join(",")+")"}function c(b){var S=b[b.length-1].value;return A(S&&S[0])?2:1}function h(b,S,E,C,_,T){var w=b._getter,O=b._setter,I=S==="spline",k=C.length;if(!k)return;var M=C[0].value,U=A(M),P=!1,X=!1,F=U?c(C):0,j;C.sort(function(J,Y){return J.time-Y.time}),j=C[k-1].time;for(var K=[],z=[],V=C[0].value,Q=!0,G=0;G<k;G++){K.push(C[G].time/j);var ee=C[G].value;if(U&&s(ee,V,F)||!U&&ee===V||(Q=!1),V=ee,typeof ee=="string"){var se=f.parse(ee);se?(ee=se,P=!0):X=!0}z.push(ee)}if(!T&&Q)return;for(var ye=z[k-1],G=0;G<k-1;G++)U?t(z[G],ye,F):isNaN(z[G])&&!isNaN(ye)&&!X&&!P&&(z[G]=ye);U&&t(w(b._target,_),ye,F);var he=0,ke=0,Pe,Ue,$e,Ge,ht,Fe;if(P)var oe=[0,0,0,0];var rt=function(Y,$){var de;if($<0)de=0;else if($<ke){for(Pe=Math.min(he+1,k-1),de=Pe;de>=0&&!(K[de]<=$);de--);de=Math.min(de,k-2)}else{for(de=he;de<k&&!(K[de]>$);de++);de=Math.min(de-1,k-2)}he=de,ke=$;var we=K[de+1]-K[de];if(we===0)return;if(Ue=($-K[de])/we,I)if(Ge=z[de],$e=z[de===0?de:de-1],ht=z[de>k-2?k-1:de+1],Fe=z[de>k-3?k-1:de+2],U)e($e,Ge,ht,Fe,Ue,Ue*Ue,Ue*Ue*Ue,w(Y,_),F);else{var Ce;if(P)Ce=e($e,Ge,ht,Fe,Ue,Ue*Ue,Ue*Ue*Ue,oe,1),Ce=o(oe);else{if(X)return a(Ge,ht,Ue);Ce=l($e,Ge,ht,Fe,Ue,Ue*Ue,Ue*Ue*Ue)}O(Y,_,Ce)}else if(U)i(z[de],z[de+1],Ue,w(Y,_),F);else{var Ce;if(P)i(z[de],z[de+1],Ue,oe,1),Ce=o(oe);else{if(X)return a(z[de],z[de+1],Ue);Ce=u(z[de],z[de+1],Ue)}O(Y,_,Ce)}},fe=new y({target:b._target,life:j,loop:b._loop,delay:b._delay,onframe:rt,ondestroy:E});return S&&S!=="spline"&&(fe.easing=S),fe}var g=function(S,E,C,_){this._tracks={},this._target=S,this._loop=E||!1,this._getter=C||p,this._setter=_||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(S,E){var C=this._tracks;for(var _ in E){if(!E.hasOwnProperty(_))continue;if(!C[_]){C[_]=[];var T=this._getter(this._target,_);if(T==null)continue;S!==0&&C[_].push({time:0,value:n(T)})}C[_].push({time:S,value:E[_]})}return this},during:function(S){return this._onframeList.push(S),this},pause:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].pause();this._paused=!0},resume:function(){for(var S=0;S<this._clipList.length;S++)this._clipList[S].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var S=this._doneList,E=S.length,C=0;C<E;C++)S[C].call(this)},start:function(S,E){var C=this,_=0,T=function(){_--,_||C._doneCallback()},w;for(var O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=h(this,S,T,this._tracks[O],O,E);I&&(this._clipList.push(I),_++,this.animation&&this.animation.addClip(I),w=I)}if(w){var k=w.onframe;w.onframe=function(M,U){k(M,U);for(var P=0;P<C._onframeList.length;P++)C._onframeList[P](M,U)}}return _||this._doneCallback(),this},stop:function(S){for(var E=this._clipList,C=this.animation,_=0;_<E.length;_++){var T=E[_];S&&T.onframe(this._target,1),C&&C.removeClip(T)}E.length=0},delay:function(S){return this._delay=S,this},done:function(S){return S&&this._doneList.push(S),this},getClips:function(){return this._clipList}};var v=g;R.exports=v},Bqw1:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"minus-square",theme:"outlined"};L.default=y},Bsck:function(R,L,r){var y=r("bYtY"),f=r("Qxkt"),x=r("Mdki"),A=r("YXkt"),m=r("sdST"),p=function(i,t){this.name=i||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};p.prototype={constructor:p,isRemoved:function(){return this.dataIndex<0},eachNode:function(i,t,s){typeof i=="function"&&(s=t,t=i,i=null),i=i||{},y.isString(i)&&(i={order:i});var e=i.order||"preorder",l=this[i.attr||"children"],n;e==="preorder"&&(n=t.call(s,this));for(var o=0;!n&&o<l.length;o++)l[o].eachNode(i,t,s);e==="postorder"&&t.call(s,this)},updateDepthAndHeight:function(i){var t=0;this.depth=i;for(var s=0;s<this.children.length;s++){var e=this.children[s];e.updateDepthAndHeight(i+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(i){if(this.getId()===i)return this;for(var t=0,s=this.children,e=s.length;t<e;t++){var l=s[t].getNodeById(i);if(l)return l}},contains:function(i){if(i===this)return!0;for(var t=0,s=this.children,e=s.length;t<e;t++){var l=s[t].contains(i);if(l)return l}},getAncestors:function(i){for(var t=[],s=i?this:this.parentNode;s;)t.push(s),s=s.parentNode;return t.reverse(),t},getValue:function(i){var t=this.hostTree.data;return t.get(t.getDimension(i||"value"),this.dataIndex)},setLayout:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(i){if(this.dataIndex<0)return;var t=this.hostTree,s=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?s.getModel(i,e.getModel(i)):s.getModel(i)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(i,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,t)},getVisual:function(i,t){return this.hostTree.data.getItemVisual(this.dataIndex,i,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(i){for(var t=i.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(i){return i!==this&&i.isAncestorOf(this)}};function d(i,t){this.root,this.data,this._nodes=[],this.hostModel=i,this.levelModels=y.map(t||[],function(s){return new f(s,i,i.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(i,t,s){this.root.eachNode(i,t,s)},getNodeByDataIndex:function(i){var t=this.data.getRawIndex(i);return this._nodes[t]},getNodeByName:function(i){return this.root.getNodeByName(i)},update:function(){for(var i=this.data,t=this._nodes,s=0,e=t.length;s<e;s++)t[s].dataIndex=-1;for(var s=0,e=i.count();s<e;s++)t[i.getRawIndex(s)].dataIndex=s},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(i,t,s,e){var l=new d(t,s&&s.levels),n=[],o=1;c(i);function c(v,b){var S=v.value;o=Math.max(o,y.isArray(S)?S.length:1),n.push(v);var E=new p(v.name,l);b?u(E,b):l.root=E,l._nodes.push(E);var C=v.children;if(C)for(var _=0;_<C.length;_++)c(C[_],E)}l.root.updateDepthAndHeight(0);var h=m(n,{coordDimensions:["value"],dimensionsCount:o}),g=new A(h,t);return g.initData(n),e&&e(g),x({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};function u(i,t){var s=t.children;if(i.parentNode===t)return;s.push(i),i.parentNode=t}var a=d;R.exports=a},BtR2:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="LikeOutlined";var d=L.a=f.forwardRef(p)},BuqR:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("6uqw"),m=r("XxSj"),p=r("YOMW"),d=r("OELB"),u=d.reformIntervals,a=A.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,l){a.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();i[this._mode].call(this),this._resetSelected(e,l);var o=this.option.categories;this.resetVisual(function(c,h){n==="categories"?(c.mappingMethod="category",c.categories=x.clone(o)):(c.dataExtent=this.getExtent(),c.mappingMethod="piecewise",c.pieceList=x.map(this._pieceList,function(g){var g=x.clone(g);return h!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,l={},n=m.listVisualTypes(),o=this.isCategory();x.each(e.pieces,function(h){x.each(n,function(g){h.hasOwnProperty(g)&&(l[g]=1)})}),x.each(l,function(h,g){var v=0;x.each(this.stateList,function(b){v|=c(e,b,g)||c(e.target,b,g)},this),!v&&x.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=p.get(g,b==="inRange"?"active":"inactive",o)})},this);function c(h,g,v){return h&&h[g]&&(x.isObject(h[g])?h[g].hasOwnProperty(v):h[g]===v)}A.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var n=this.option,o=this._pieceList,c=(l?n:e).selected||{};if(n.selected=c,x.each(o,function(g,v){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),n.selectedMode==="single"){var h=!1;x.each(o,function(g,v){var b=this.getSelectedMapKey(g);c[b]&&(h?c[b]=!1:h=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=x.clone(e)},getValueState:function(e){var l=m.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(n){var o=[],c=n.getData();c.each(this.getDataDimension(c),function(h,g){var v=m.findPieceIndex(h,this._pieceList);v===e&&o.push(g)},this),l.push({seriesId:n.id,dataIndex:o})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var n=e.interval||[];l=n[0]===-Infinity&&n[1]===Infinity?0:(n[0]+n[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],n=[],o=this;function c(b,S){var E=o.getRepresentValue({interval:b});S||(S=o.getValueState(E));var C=e(E,S);b[0]===-Infinity?n[0]=C:b[1]===Infinity?n[1]=C:l.push({value:b[0],color:C},{value:b[1],color:C})}var h=this._pieceList.slice();if(!h.length)h.push({interval:[-Infinity,Infinity]});else{var g=h[0].interval[0];g!==-Infinity&&h.unshift({interval:[-Infinity,g]}),g=h[h.length-1].interval[1],g!==Infinity&&h.push({interval:[g,Infinity]})}var v=-Infinity;return x.each(h,function(b){var S=b.interval;S&&(S[0]>v&&c([v,S[0]],"outOfRange"),c(S.slice()),v=S[1])},this),{stops:l,outerColors:n}}}),i={splitNumber:function(){var e=this.option,l=this._pieceList,n=Math.min(e.precision,20),o=this.getExtent(),c=e.splitNumber;c=Math.max(parseInt(c,10),1),e.splitNumber=c;for(var h=(o[1]-o[0])/c;+h.toFixed(n)!==h&&n<5;)n++;e.precision=n,h=+h.toFixed(n),e.minOpen&&l.push({interval:[-Infinity,o[0]],close:[0,0]});for(var g=0,v=o[0];g<c;v+=h,g++){var b=g===c-1?o[1]:v+h;l.push({interval:[v,b],close:[1,1]})}e.maxOpen&&l.push({interval:[o[1],Infinity],close:[0,0]}),u(l),x.each(l,function(S,E){S.index=E,S.text=this.formatValueText(S.interval)},this)},categories:function(){var e=this.option;x.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),t(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;x.each(e.pieces,function(n,o){x.isObject(n)||(n={value:n});var c={text:"",index:o};if(n.label!=null&&(c.text=n.label),n.hasOwnProperty("value")){var h=c.value=n.value;c.interval=[h,h],c.close=[1,1]}else{for(var g=c.interval=[],v=c.close=[0,0],b=[1,0,1],S=[-Infinity,Infinity],E=[],C=0;C<2;C++){for(var _=[["gte","gt","min"],["lte","lt","max"]][C],T=0;T<3&&g[C]==null;T++)g[C]=n[_[T]],v[C]=b[T],E[C]=T===2;g[C]==null&&(g[C]=S[C])}E[0]&&g[1]===Infinity&&(v[0]=0),E[1]&&g[0]===-Infinity&&(v[1]=0),g[0]===g[1]&&v[0]&&v[1]&&(c.value=g[0])}c.visual=m.retrieveVisuals(n),l.push(c)},this),t(e,l),u(l),x.each(l,function(n){var o=n.close,c=[["<","\u2264"][o[1]],[">","\u2265"][o[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,c)},this)}};function t(e,l){var n=e.inverse;(e.orient==="vertical"?!n:n)&&l.reverse()}var s=a;R.exports=s},BvKs:function(R,L,r){"use strict";r.d(L,"a",function(){return ur});var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r("VTBJ"),n=r("1OyB"),o=r("vuIU"),c=r("JX7q"),h=r("Ji7U"),g=r("LK+K"),v=r("I8Z2"),b=r("BGR+"),S=r("wx14"),E=r("rePB"),C=r("4IlW"),_=r("2GS6"),T=r("Gytx"),w=r.n(T),O=r("TSYQ"),I=r.n(O),k=r("U8pU"),M=r("ODXe"),U=/iPhone/i,P=/iPod/i,X=/iPad/i,F=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,z=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,ee=/BB10/i,se=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,he=/Mobile(?:.+)Firefox\b/i;function ke(Tt,Ct){return Tt.test(Ct)}function Pe(Tt){var Ct=Tt||(typeof navigator!="undefined"?navigator.userAgent:""),Ar=Ct.split("[FBAN");if(typeof Ar[1]!="undefined"){var er=Ar,Ft=Object(M.a)(er,1);Ct=Ft[0]}if(Ar=Ct.split("Twitter"),typeof Ar[1]!="undefined"){var ir=Ar,Pt=Object(M.a)(ir,1);Ct=Pt[0]}var rr={apple:{phone:ke(U,Ct)&&!ke(V,Ct),ipod:ke(P,Ct),tablet:!ke(U,Ct)&&ke(X,Ct)&&!ke(V,Ct),device:(ke(U,Ct)||ke(P,Ct)||ke(X,Ct))&&!ke(V,Ct)},amazon:{phone:ke(K,Ct),tablet:!ke(K,Ct)&&ke(z,Ct),device:ke(K,Ct)||ke(z,Ct)},android:{phone:!ke(V,Ct)&&ke(K,Ct)||!ke(V,Ct)&&ke(F,Ct),tablet:!ke(V,Ct)&&!ke(K,Ct)&&!ke(F,Ct)&&(ke(z,Ct)||ke(j,Ct)),device:!ke(V,Ct)&&(ke(K,Ct)||ke(z,Ct)||ke(F,Ct)||ke(j,Ct))||ke(/\bokhttp\b/i,Ct)},windows:{phone:ke(V,Ct),tablet:ke(Q,Ct),device:ke(V,Ct)||ke(Q,Ct)},other:{blackberry:ke(G,Ct),blackberry10:ke(ee,Ct),opera:ke(se,Ct),firefox:ke(he,Ct),chrome:ke(ye,Ct),device:ke(G,Ct)||ke(ee,Ct)||ke(se,Ct)||ke(he,Ct)||ke(ye,Ct)},any:null,phone:null,tablet:null};return rr.any=rr.apple.device||rr.android.device||rr.windows.device||rr.other.device,rr.phone=rr.apple.phone||rr.android.phone||rr.windows.phone,rr.tablet=rr.apple.tablet||rr.android.tablet||rr.windows.tablet,rr}var Ue=Object(l.a)(Object(l.a)({},Pe()),{},{isMobile:Pe}),$e=Ue;function Ge(){}function ht(Tt,Ct,Ar){var er=Ct||"";return Tt.key||"".concat(er,"item_").concat(Ar)}function Fe(Tt){return"".concat(Tt,"-menu-")}function oe(Tt,Ct){var Ar=-1;e.Children.forEach(Tt,function(er){Ar+=1,er&&er.type&&er.type.isMenuItemGroup?e.Children.forEach(er.props.children,function(Ft){Ar+=1,Ct(Ft,Ar)}):Ct(er,Ar)})}function rt(Tt,Ct,Ar){if(!Tt||Ar.find)return;e.Children.forEach(Tt,function(er){if(er){var Ft=er.type;if(!Ft||!(Ft.isSubMenu||Ft.isMenuItem||Ft.isMenuItemGroup))return;Ct.indexOf(er.key)!==-1?Ar.find=!0:er.props.children&&rt(er.props.children,Ct,Ar)}})}var fe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],J=function(Ct){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=Ct&&typeof Ct.getBoundingClientRect=="function"&&Ct.getBoundingClientRect().width;if(er){if(Ar){var Ft=getComputedStyle(Ct),ir=Ft.marginLeft,Pt=Ft.marginRight;er+=+ir.replace("px","")+ +Pt.replace("px","")}er=+er.toFixed(6)}return er||0},Y=function(Ct,Ar,er){Ct&&Object(k.a)(Ct.style)==="object"&&(Ct.style[Ar]=er)},$=function(){return $e.any},de=r("KQm4"),we=r("Ff2n"),Ce=r("i8i4"),Se=r("bdgK"),le=r("Uaa1"),pe=r("HTfv"),_e={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:_e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:_e,offset:[4,0]}},gt={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:_e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:_e,offset:[4,0]}},ct=tt,je=0,Zt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ut=function(Ct,Ar,er){var Ft=Fe(Ar),ir=Ct.getState();Ct.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},ir.defaultActiveFirst),{},Object(E.a)({},Ft,er))})},Ht=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(er){var Ft;Object(n.a)(this,Ar),Ft=Ct.call(this,er),Ft.onDestroy=function(Mr){Ft.props.onDestroy(Mr)},Ft.onKeyDown=function(Mr){var fn=Mr.keyCode,wn=Ft.menuInstance,ai=Ft.props,ri=ai.isOpen,gi=ai.store;if(fn===C.a.ENTER)return Ft.onTitleClick(Mr),ut(gi,Ft.props.eventKey,!0),!0;if(fn===C.a.RIGHT)return ri?wn.onKeyDown(Mr):(Ft.triggerOpenChange(!0),ut(gi,Ft.props.eventKey,!0)),!0;if(fn===C.a.LEFT){var Ii;if(ri)Ii=wn.onKeyDown(Mr);else return;return Ii||(Ft.triggerOpenChange(!1),Ii=!0),Ii}return ri&&(fn===C.a.UP||fn===C.a.DOWN)?wn.onKeyDown(Mr):void 0},Ft.onOpenChange=function(Mr){Ft.props.onOpenChange(Mr)},Ft.onPopupVisibleChange=function(Mr){Ft.triggerOpenChange(Mr,Mr?"mouseenter":"mouseleave")},Ft.onMouseEnter=function(Mr){var fn=Ft.props,wn=fn.eventKey,ai=fn.onMouseEnter,ri=fn.store;ut(ri,Ft.props.eventKey,!1),ai({key:wn,domEvent:Mr})},Ft.onMouseLeave=function(Mr){var fn=Ft.props,wn=fn.parentMenu,ai=fn.eventKey,ri=fn.onMouseLeave;wn.subMenuInstance=Object(c.a)(Ft),ri({key:ai,domEvent:Mr})},Ft.onTitleMouseEnter=function(Mr){var fn=Ft.props,wn=fn.eventKey,ai=fn.onItemHover,ri=fn.onTitleMouseEnter;ai({key:wn,hover:!0}),ri({key:wn,domEvent:Mr})},Ft.onTitleMouseLeave=function(Mr){var fn=Ft.props,wn=fn.parentMenu,ai=fn.eventKey,ri=fn.onItemHover,gi=fn.onTitleMouseLeave;wn.subMenuInstance=Object(c.a)(Ft),ri({key:ai,hover:!1}),gi({key:ai,domEvent:Mr})},Ft.onTitleClick=function(Mr){var fn=Object(c.a)(Ft),wn=fn.props;if(wn.onTitleClick({key:wn.eventKey,domEvent:Mr}),wn.triggerSubMenuAction==="hover")return;Ft.triggerOpenChange(!wn.isOpen,"click"),ut(wn.store,Ft.props.eventKey,!1)},Ft.onSubMenuClick=function(Mr){typeof Ft.props.onClick=="function"&&Ft.props.onClick(Ft.addKeyPath(Mr))},Ft.onSelect=function(Mr){Ft.props.onSelect(Mr)},Ft.onDeselect=function(Mr){Ft.props.onDeselect(Mr)},Ft.getPrefixCls=function(){return"".concat(Ft.props.rootPrefixCls,"-submenu")},Ft.getActiveClassName=function(){return"".concat(Ft.getPrefixCls(),"-active")},Ft.getDisabledClassName=function(){return"".concat(Ft.getPrefixCls(),"-disabled")},Ft.getSelectedClassName=function(){return"".concat(Ft.getPrefixCls(),"-selected")},Ft.getOpenClassName=function(){return"".concat(Ft.props.rootPrefixCls,"-submenu-open")},Ft.saveMenuInstance=function(Mr){Ft.menuInstance=Mr},Ft.addKeyPath=function(Mr){return Object(l.a)(Object(l.a)({},Mr),{},{keyPath:(Mr.keyPath||[]).concat(Ft.props.eventKey)})},Ft.triggerOpenChange=function(Mr,fn){var wn=Ft.props.eventKey,ai=function(){Ft.onOpenChange({key:wn,item:Object(c.a)(Ft),trigger:fn,open:Mr})};fn==="mouseenter"?Ft.mouseenterTimeout=setTimeout(function(){ai()},0):ai()},Ft.isChildrenSelected=function(){var Mr={find:!1};return rt(Ft.props.children,Ft.props.selectedKeys,Mr),Mr.find},Ft.isOpen=function(){return Ft.props.openKeys.indexOf(Ft.props.eventKey)!==-1},Ft.adjustWidth=function(){if(!Ft.subMenuTitle||!Ft.menuInstance)return;var Mr=Ce.findDOMNode(Ft.menuInstance);if(Mr.offsetWidth>=Ft.subMenuTitle.offsetWidth)return;Mr.style.minWidth="".concat(Ft.subMenuTitle.offsetWidth,"px")},Ft.saveSubMenuTitle=function(Mr){Ft.subMenuTitle=Mr},Ft.getBaseProps=function(){var Mr=Object(c.a)(Ft),fn=Mr.props;return{mode:fn.mode==="horizontal"?"vertical":fn.mode,visible:Ft.props.isOpen,level:fn.level+1,inlineIndent:fn.inlineIndent,focusable:!1,onClick:Ft.onSubMenuClick,onSelect:Ft.onSelect,onDeselect:Ft.onDeselect,onDestroy:Ft.onDestroy,selectedKeys:fn.selectedKeys,eventKey:"".concat(fn.eventKey,"-menu-"),openKeys:fn.openKeys,motion:fn.motion,onOpenChange:Ft.onOpenChange,subMenuOpenDelay:fn.subMenuOpenDelay,parentMenu:Object(c.a)(Ft),subMenuCloseDelay:fn.subMenuCloseDelay,forceSubMenuRender:fn.forceSubMenuRender,triggerSubMenuAction:fn.triggerSubMenuAction,builtinPlacements:fn.builtinPlacements,defaultActiveFirst:fn.store.getState().defaultActiveFirst[Fe(fn.eventKey)],multiple:fn.multiple,prefixCls:fn.rootPrefixCls,id:Ft.internalMenuId,manualRef:Ft.saveMenuInstance,itemIcon:fn.itemIcon,expandIcon:fn.expandIcon,direction:fn.direction}},Ft.getMotion=function(Mr,fn){var wn=Object(c.a)(Ft),ai=wn.haveRendered,ri=Ft.props,gi=ri.motion,Ii=ri.rootPrefixCls,Mi=Object(l.a)(Object(l.a)({},gi),{},{leavedClassName:"".concat(Ii,"-hidden"),removeOnLeave:!1,motionAppear:ai||!fn||Mr!=="inline"});return Mi};var ir=er.store,Pt=er.eventKey,rr=ir.getState(),Yr=rr.defaultActiveFirst;Ft.isRootMenu=!1;var Pr=!1;return Yr&&(Pr=Yr[Pt]),ut(ir,Pt,Pr),Ft}return Object(o.a)(Ar,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ft=this,ir=this.props,Pt=ir.mode,rr=ir.parentMenu,Yr=ir.manualRef;if(Yr&&Yr(this),Pt!=="horizontal"||!rr.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ft.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ft=this.props,ir=Ft.onDestroy,Pt=Ft.eventKey;ir&&ir(Pt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ft){var ir=this,Pt=this.getBaseProps(),rr=this.getMotion(Pt.mode,Pt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Pt.visible||Pt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Yr=Pt.direction;return e.createElement(pe.default,Object.assign({visible:Pt.visible},rr),function(Pr){var Mr=Pr.className,fn=Pr.style,wn=I()("".concat(Pt.prefixCls,"-sub"),Mr,Object(E.a)({},"".concat(Pt.prefixCls,"-rtl"),Yr==="rtl"));return e.createElement(Jt,Object.assign({},Pt,{id:ir.internalMenuId,className:wn,style:fn}),Ft)})}},{key:"render",value:function(){var Ft,ir=Object(l.a)({},this.props),Pt=ir.isOpen,rr=this.getPrefixCls(),Yr=ir.mode==="inline",Pr=I()(rr,"".concat(rr,"-").concat(ir.mode),(Ft={},Object(E.a)(Ft,ir.className,!!ir.className),Object(E.a)(Ft,this.getOpenClassName(),Pt),Object(E.a)(Ft,this.getActiveClassName(),ir.active||Pt&&!Yr),Object(E.a)(Ft,this.getDisabledClassName(),ir.disabled),Object(E.a)(Ft,this.getSelectedClassName(),this.isChildrenSelected()),Ft));this.internalMenuId||(ir.eventKey?this.internalMenuId="".concat(ir.eventKey,"$Menu"):(je+=1,this.internalMenuId="$__$".concat(je,"$Menu")));var Mr={},fn={},wn={};ir.disabled||(Mr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},fn={onClick:this.onTitleClick},wn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ai={},ri=ir.direction;Yr&&(ri==="rtl"?ai.paddingRight=ir.inlineIndent*ir.level:ai.paddingLeft=ir.inlineIndent*ir.level);var gi={};this.props.isOpen&&(gi={"aria-owns":this.internalMenuId});var Ii=null;ir.mode!=="horizontal"&&(Ii=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ii=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var Mi=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ai,className:"".concat(rr,"-title"),role:"button"},wn,fn,{"aria-expanded":Pt},gi,{"aria-haspopup":"true",title:typeof ir.title=="string"?ir.title:void 0}),ir.title,Ii||e.createElement("i",{className:"".concat(rr,"-arrow")})),Qi=this.renderChildren(ir.children),ot=ir.parentMenu.isRootMenu?ir.parentMenu.props.getPopupContainer:function(Vr){return Vr.parentNode},Ne=Zt[ir.mode],He=ir.popupOffset?{offset:ir.popupOffset}:{},Ye=ir.mode==="inline"?"":ir.popupClassName;Ye+=ri==="rtl"?" ".concat(rr,"-rtl"):"";var at=ir.disabled,qe=ir.triggerSubMenuAction,lt=ir.subMenuOpenDelay,Et=ir.forceSubMenuRender,At=ir.subMenuCloseDelay,fr=ir.builtinPlacements;fe.forEach(function(Vr){return delete ir[Vr]}),delete ir.onClick;var Jr=ri==="rtl"?Object.assign({},gt,fr):Object.assign({},tt,fr);return delete ir.direction,e.createElement("li",Object.assign({},ir,Mr,{className:Pr,role:"menuitem"}),Yr&&Mi,Yr&&Qi,!Yr&&e.createElement(le.a,{prefixCls:rr,popupClassName:I()("".concat(rr,"-popup"),Ye),getPopupContainer:ot,builtinPlacements:Jr,popupPlacement:Ne,popupVisible:Pt,popupAlign:He,popup:Qi,action:at?[]:[qe],mouseEnterDelay:lt,mouseLeaveDelay:At,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Et},Mi))}}]),Ar}(e.Component);Ht.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var dr=Object(v.b)(function(Tt,Ct){var Ar=Tt.openKeys,er=Tt.activeKey,Ft=Tt.selectedKeys,ir=Ct.eventKey,Pt=Ct.subMenuKey;return{isOpen:Ar.indexOf(ir)>-1,active:er[Pt]===ir,selectedKeys:Ft}})(Ht);dr.isSubMenu=!0;var Vt=dr,Mt="menuitem-overflowed",Gt=.5,Ve=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(){var er;return Object(n.a)(this,Ar),er=Ct.apply(this,arguments),er.resizeObserver=null,er.mutationObserver=null,er.originalTotalWidth=0,er.overflowedItems=[],er.menuItemSizes=[],er.cancelFrameId=null,er.state={lastVisibleIndex:void 0},er.getMenuItemNodes=function(){var Ft=er.props.prefixCls,ir=Ce.findDOMNode(Object(c.a)(er));return ir?[].slice.call(ir.children).filter(function(Pt){return Pt.className.split(" ").indexOf("".concat(Ft,"-overflowed-submenu"))<0}):[]},er.getOverflowedSubMenuItem=function(Ft,ir,Pt){var rr=er.props,Yr=rr.overflowedIndicator,Pr=rr.level,Mr=rr.mode,fn=rr.prefixCls,wn=rr.theme;if(Pr!==1||Mr!=="horizontal")return null;var ai=er.props.children[0],ri=ai.props,gi=ri.children,Ii=ri.title,Mi=ri.style,Qi=Object(we.a)(ri,["children","title","style"]),ot=Object(l.a)({},Mi),Ne="".concat(Ft,"-overflowed-indicator"),He="".concat(Ft,"-overflowed-indicator");ir.length===0&&Pt!==!0?ot=Object(l.a)(Object(l.a)({},ot),{},{display:"none"}):Pt&&(ot=Object(l.a)(Object(l.a)({},ot),{},{visibility:"hidden",position:"absolute"}),Ne="".concat(Ne,"-placeholder"),He="".concat(He,"-placeholder"));var Ye=wn?"".concat(fn,"-").concat(wn):"",at={};return fe.forEach(function(qe){Qi[qe]!==void 0&&(at[qe]=Qi[qe])}),e.createElement(Vt,Object.assign({title:Yr,className:"".concat(fn,"-overflowed-submenu"),popupClassName:Ye},at,{key:Ne,eventKey:He,disabled:!1,style:ot}),ir)},er.setChildrenWidthAndResize=function(){if(er.props.mode!=="horizontal")return;var Ft=Ce.findDOMNode(Object(c.a)(er));if(!Ft)return;var ir=Ft.children;if(!ir||ir.length===0)return;var Pt=Ft.children[ir.length-1];Y(Pt,"display","inline-block");var rr=er.getMenuItemNodes(),Yr=rr.filter(function(Pr){return Pr.className.split(" ").indexOf(Mt)>=0});Yr.forEach(function(Pr){Y(Pr,"display","inline-block")}),er.menuItemSizes=rr.map(function(Pr){return J(Pr,!0)}),Yr.forEach(function(Pr){Y(Pr,"display","none")}),er.overflowedIndicatorWidth=J(Ft.children[Ft.children.length-1],!0),er.originalTotalWidth=er.menuItemSizes.reduce(function(Pr,Mr){return Pr+Mr},0),er.handleResize(),Y(Pt,"display","none")},er.handleResize=function(){if(er.props.mode!=="horizontal")return;var Ft=Ce.findDOMNode(Object(c.a)(er));if(!Ft)return;var ir=J(Ft);er.overflowedItems=[];var Pt=0,rr;er.originalTotalWidth>ir+Gt&&(rr=-1,er.menuItemSizes.forEach(function(Yr){Pt+=Yr,Pt+er.overflowedIndicatorWidth<=ir&&(rr+=1)})),er.setState({lastVisibleIndex:rr})},er}return Object(o.a)(Ar,[{key:"componentDidMount",value:function(){var Ft=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ir=Ce.findDOMNode(this);if(!ir)return;this.resizeObserver=new Se.default(function(Pt){Pt.forEach(function(){var rr=Ft.cancelFrameId;cancelAnimationFrame(rr),Ft.cancelFrameId=requestAnimationFrame(Ft.setChildrenWidthAndResize)})}),[].slice.call(ir.children).concat(ir).forEach(function(Pt){Ft.resizeObserver.observe(Pt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ft.resizeObserver.disconnect(),[].slice.call(ir.children).concat(ir).forEach(function(Pt){Ft.resizeObserver.observe(Pt)}),Ft.setChildrenWidthAndResize()}),this.mutationObserver.observe(ir,{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(Ft){var ir=this,Pt=this.state.lastVisibleIndex;return(Ft||[]).reduce(function(rr,Yr,Pr){var Mr=Yr;if(ir.props.mode==="horizontal"){var fn=ir.getOverflowedSubMenuItem(Yr.props.eventKey,[]);Pt!==void 0&&ir.props.className.indexOf("".concat(ir.props.prefixCls,"-root"))!==-1&&(Pr>Pt&&(Mr=e.cloneElement(Yr,{style:{display:"none"},eventKey:"".concat(Yr.props.eventKey,"-hidden"),className:"".concat(Mt)})),Pr===Pt+1&&(ir.overflowedItems=Ft.slice(Pt+1).map(function(ai){return e.cloneElement(ai,{key:ai.props.eventKey,mode:"vertical-left"})}),fn=ir.getOverflowedSubMenuItem(Yr.props.eventKey,ir.overflowedItems)));var wn=[].concat(Object(de.a)(rr),[fn,Mr]);return Pr===Ft.length-1&&wn.push(ir.getOverflowedSubMenuItem(Yr.props.eventKey,[],!0)),wn}return[].concat(Object(de.a)(rr),[Mr])},[])}},{key:"render",value:function(){var Ft=this.props,ir=Ft.visible,Pt=Ft.prefixCls,rr=Ft.overflowedIndicator,Yr=Ft.mode,Pr=Ft.level,Mr=Ft.tag,fn=Ft.children,wn=Ft.theme,ai=Object(we.a)(Ft,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ri=Mr;return e.createElement(ri,Object.assign({},ai),this.renderChildren(fn))}}]),Ar}(e.Component);Ve.defaultProps={tag:"div",className:""};var me=Ve;function te(Tt){return Tt.length?Tt.every(function(Ct){return!!Ct.props.disabled}):!0}function Ze(Tt,Ct,Ar){var er=Tt.getState();Tt.setState({activeKey:Object(l.a)(Object(l.a)({},er.activeKey),{},Object(E.a)({},Ct,Ar))})}function Xe(Tt){return Tt.eventKey||"0-menu-"}function ue(Tt,Ct){var Ar=Ct,er=Tt.children,Ft=Tt.eventKey;if(Ar){var ir;if(oe(er,function(Pt,rr){Pt&&Pt.props&&!Pt.props.disabled&&Ar===ht(Pt,Ft,rr)&&(ir=!0)}),ir)return Ar}return Ar=null,Tt.defaultActiveFirst&&oe(er,function(Pt,rr){!Ar&&Pt&&!Pt.props.disabled&&(Ar=ht(Pt,Ft,rr))}),Ar}function St(Tt){if(Tt){var Ct=this.instanceArray.indexOf(Tt);Ct!==-1?this.instanceArray[Ct]=Tt:this.instanceArray.push(Tt)}}var Qt=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(er){var Ft;return Object(n.a)(this,Ar),Ft=Ct.call(this,er),Ft.onKeyDown=function(ir,Pt){var rr=ir.keyCode,Yr;if(Ft.getFlatInstanceArray().forEach(function(Mr){Mr&&Mr.props.active&&Mr.onKeyDown&&(Yr=Mr.onKeyDown(ir))}),Yr)return 1;var Pr=null;return(rr===C.a.UP||rr===C.a.DOWN)&&(Pr=Ft.step(rr===C.a.UP?-1:1)),Pr?(ir.preventDefault(),Ze(Ft.props.store,Xe(Ft.props),Pr.props.eventKey),typeof Pt=="function"&&Pt(Pr),1):void 0},Ft.onItemHover=function(ir){var Pt=ir.key,rr=ir.hover;Ze(Ft.props.store,Xe(Ft.props),rr?Pt:null)},Ft.onDeselect=function(ir){Ft.props.onDeselect(ir)},Ft.onSelect=function(ir){Ft.props.onSelect(ir)},Ft.onClick=function(ir){Ft.props.onClick(ir)},Ft.onOpenChange=function(ir){Ft.props.onOpenChange(ir)},Ft.onDestroy=function(ir){Ft.props.onDestroy(ir)},Ft.getFlatInstanceArray=function(){return Ft.instanceArray},Ft.step=function(ir){var Pt=Ft.getFlatInstanceArray(),rr=Ft.props.store.getState().activeKey[Xe(Ft.props)],Yr=Pt.length;if(!Yr)return null;ir<0&&(Pt=Pt.concat().reverse());var Pr=-1;if(Pt.every(function(ai,ri){return ai&&ai.props.eventKey===rr?(Pr=ri,!1):!0}),!Ft.props.defaultActiveFirst&&Pr!==-1&&te(Pt.slice(Pr,Yr-1)))return;var Mr=(Pr+1)%Yr,fn=Mr;do{var wn=Pt[fn];if(!wn||wn.props.disabled)fn=(fn+1)%Yr;else return wn}while(fn!==Mr);return null},Ft.renderCommonMenuItem=function(ir,Pt,rr){var Yr=Ft.props.store.getState(),Pr=Object(c.a)(Ft),Mr=Pr.props,fn=ht(ir,Mr.eventKey,Pt),wn=ir.props;if(!wn||typeof ir.type=="string")return ir;var ai=fn===Yr.activeKey,ri=Object(l.a)(Object(l.a)({mode:wn.mode||Mr.mode,level:Mr.level,inlineIndent:Mr.inlineIndent,renderMenuItem:Ft.renderMenuItem,rootPrefixCls:Mr.prefixCls,index:Pt,parentMenu:Mr.parentMenu,manualRef:wn.disabled?void 0:Object(_.a)(ir.ref,St.bind(Object(c.a)(Ft))),eventKey:fn,active:!wn.disabled&&ai,multiple:Mr.multiple,onClick:function(Ii){(wn.onClick||Ge)(Ii),Ft.onClick(Ii)},onItemHover:Ft.onItemHover,motion:Mr.motion,subMenuOpenDelay:Mr.subMenuOpenDelay,subMenuCloseDelay:Mr.subMenuCloseDelay,forceSubMenuRender:Mr.forceSubMenuRender,onOpenChange:Ft.onOpenChange,onDeselect:Ft.onDeselect,onSelect:Ft.onSelect,builtinPlacements:Mr.builtinPlacements,itemIcon:wn.itemIcon||Ft.props.itemIcon,expandIcon:wn.expandIcon||Ft.props.expandIcon},rr),{},{direction:Mr.direction});return(Mr.mode==="inline"||$())&&(ri.triggerSubMenuAction="click"),e.cloneElement(ir,ri)},Ft.renderMenuItem=function(ir,Pt,rr){if(!ir)return null;var Yr=Ft.props.store.getState(),Pr={openKeys:Yr.openKeys,selectedKeys:Yr.selectedKeys,triggerSubMenuAction:Ft.props.triggerSubMenuAction,subMenuKey:rr};return Ft.renderCommonMenuItem(ir,Pt,Pr)},er.store.setState({activeKey:Object(l.a)(Object(l.a)({},er.store.getState().activeKey),{},Object(E.a)({},er.eventKey,ue(er,er.activeKey)))}),Ft.instanceArray=[],Ft}return Object(o.a)(Ar,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ft){return this.props.visible||Ft.visible||this.props.className!==Ft.className||!w()(this.props.style,Ft.style)}},{key:"componentDidUpdate",value:function(Ft){var ir=this.props,Pt="activeKey"in ir?ir.activeKey:ir.store.getState().activeKey[Xe(ir)],rr=ue(ir,Pt);if(rr!==Pt)Ze(ir.store,Xe(ir),rr);else if("activeKey"in Ft){var Yr=ue(Ft,Ft.activeKey);rr!==Yr&&Ze(ir.store,Xe(ir),rr)}}},{key:"render",value:function(){var Ft=this,ir=Object(S.a)({},this.props);this.instanceArray=[];var Pt=I()(ir.prefixCls,ir.className,"".concat(ir.prefixCls,"-").concat(ir.mode)),rr={className:Pt,role:ir.role||"menu"};ir.id&&(rr.id=ir.id),ir.focusable&&(rr.tabIndex=0,rr.onKeyDown=this.onKeyDown);var Yr=ir.prefixCls,Pr=ir.eventKey,Mr=ir.visible,fn=ir.level,wn=ir.mode,ai=ir.overflowedIndicator,ri=ir.theme;return fe.forEach(function(gi){return delete ir[gi]}),delete ir.onClick,e.createElement(me,Object.assign({},ir,{prefixCls:Yr,mode:wn,tag:"ul",level:fn,theme:ri,visible:Mr,overflowedIndicator:ai},rr),e.Children.map(ir.children,function(gi,Ii){return Ft.renderMenuItem(gi,Ii,Pr||"0-menu-")}))}}]),Ar}(e.Component);Qt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var dt=Object(v.b)()(Qt),Jt=dt,$t=r("Kwbf");function tn(Tt,Ct,Ar){var er=Tt.prefixCls,Ft=Tt.motion,ir=Tt.defaultMotions,Pt=ir===void 0?{}:ir,rr=Tt.openAnimation,Yr=Tt.openTransitionName,Pr=Ct.switchingModeFromInline;if(Ft)return Ft;if(Object(k.a)(rr)==="object"&&rr)Object($t.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof rr=="string")return{motionName:"".concat(er,"-open-").concat(rr)};if(Yr)return{motionName:Yr};var Mr=Pt[Ar];return Mr||(Pr?null:Pt.other)}var kt=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(er){var Ft;Object(n.a)(this,Ar),Ft=Ct.call(this,er),Ft.inlineOpenKeys=[],Ft.onSelect=function(rr){var Yr=Object(c.a)(Ft),Pr=Yr.props;if(Pr.selectable){var Mr=Ft.store.getState(),fn=Mr.selectedKeys,wn=rr.key;Pr.multiple?fn=fn.concat([wn]):fn=[wn],"selectedKeys"in Pr||Ft.store.setState({selectedKeys:fn}),Pr.onSelect(Object(l.a)(Object(l.a)({},rr),{},{selectedKeys:fn}))}},Ft.onClick=function(rr){var Yr=Ft.getRealMenuMode(),Pr=Object(c.a)(Ft),Mr=Pr.store,fn=Pr.props.onOpenChange;Yr!=="inline"&&!("openKeys"in Ft.props)&&(Mr.setState({openKeys:[]}),fn([])),Ft.props.onClick(rr)},Ft.onKeyDown=function(rr,Yr){Ft.innerMenu.getWrappedInstance().onKeyDown(rr,Yr)},Ft.onOpenChange=function(rr){var Yr=Object(c.a)(Ft),Pr=Yr.props,Mr=Ft.store.getState().openKeys.concat(),fn=!1,wn=function(ri){var gi=!1;if(ri.open)gi=Mr.indexOf(ri.key)===-1,gi&&Mr.push(ri.key);else{var Ii=Mr.indexOf(ri.key);gi=Ii!==-1,gi&&Mr.splice(Ii,1)}fn=fn||gi};Array.isArray(rr)?rr.forEach(wn):wn(rr),fn&&("openKeys"in Ft.props||Ft.store.setState({openKeys:Mr}),Pr.onOpenChange(Mr))},Ft.onDeselect=function(rr){var Yr=Object(c.a)(Ft),Pr=Yr.props;if(Pr.selectable){var Mr=Ft.store.getState().selectedKeys.concat(),fn=rr.key,wn=Mr.indexOf(fn);wn!==-1&&Mr.splice(wn,1),"selectedKeys"in Pr||Ft.store.setState({selectedKeys:Mr}),Pr.onDeselect(Object(l.a)(Object(l.a)({},rr),{},{selectedKeys:Mr}))}},Ft.onMouseEnter=function(rr){Ft.restoreModeVerticalFromInline();var Yr=Ft.props.onMouseEnter;Yr&&Yr(rr)},Ft.onTransitionEnd=function(rr){var Yr=rr.propertyName==="width"&&rr.target===rr.currentTarget,Pr=rr.target.className,Mr=Object.prototype.toString.call(Pr)==="[object SVGAnimatedString]"?Pr.animVal:Pr,fn=rr.propertyName==="font-size"&&Mr.indexOf("anticon")>=0;(Yr||fn)&&Ft.restoreModeVerticalFromInline()},Ft.setInnerMenu=function(rr){Ft.innerMenu=rr},Ft.isRootMenu=!0;var ir=er.defaultSelectedKeys,Pt=er.defaultOpenKeys;return"selectedKeys"in er&&(ir=er.selectedKeys||[]),"openKeys"in er&&(Pt=er.openKeys||[]),Ft.store=Object(v.c)({selectedKeys:ir,openKeys:Pt,activeKey:{"0-menu-":ue(er,er.activeKey)}}),Ft.state={switchingModeFromInline:!1},Ft}return Object(o.a)(Ar,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ft){this.updateOpentKeysWhenSwitchMode(Ft),this.updateMiniStore();var ir=this.props,Pt=ir.siderCollapsed,rr=ir.inlineCollapsed,Yr=ir.onOpenChange;(!Ft.inlineCollapsed&&rr||!Ft.siderCollapsed&&Pt)&&Yr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ft){var ir=this.props,Pt=this.store,rr=this.inlineOpenKeys,Yr=Pt.getState(),Pr={};Ft.mode==="inline"&&ir.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in ir||((ir.inlineCollapsed&&!Ft.inlineCollapsed||ir.siderCollapsed&&!Ft.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Yr.openKeys.concat(),Pr.openKeys=[]),(!ir.inlineCollapsed&&Ft.inlineCollapsed||!ir.siderCollapsed&&Ft.siderCollapsed)&&(Pr.openKeys=rr,this.inlineOpenKeys=[])),Object.keys(Pr).length&&Pt.setState(Pr)}},{key:"updateMenuDisplay",value:function(){var Ft=this.props.collapsedWidth,ir=this.store,Pt=this.prevOpenKeys,rr=this.getInlineCollapsed()&&(Ft===0||Ft==="0"||Ft==="0px");rr?(this.prevOpenKeys=ir.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Pt&&(this.store.setState({openKeys:Pt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ft=this.props.mode,ir=this.state.switchingModeFromInline,Pt=this.getInlineCollapsed();return ir&&Pt?"inline":Pt?"vertical":Ft}},{key:"getInlineCollapsed",value:function(){var Ft=this.props,ir=Ft.inlineCollapsed,Pt=Ft.siderCollapsed;return Pt!==void 0?Pt:ir}},{key:"restoreModeVerticalFromInline",value:function(){var Ft=this.state.switchingModeFromInline;Ft&&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 Ft=Object(l.a)({},Object(b.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ir=this.getRealMenuMode();return Ft.className+=" ".concat(Ft.prefixCls,"-root"),Ft.direction==="rtl"&&(Ft.className+=" ".concat(Ft.prefixCls,"-rtl")),Ft=Object(l.a)(Object(l.a)({},Ft),{},{mode:ir,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:tn(this.props,this.state,ir)}),delete Ft.openAnimation,delete Ft.openTransitionName,e.createElement(v.a,{store:this.store},e.createElement(Jt,Object.assign({},Ft,{ref:this.setInnerMenu}),this.props.children))}}]),Ar}(e.Component);kt.defaultProps={selectable:!0,onClick:Ge,onSelect:Ge,onOpenChange:Ge,onDeselect:Ge,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var tr=kt,Bt=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(){var er;return Object(n.a)(this,Ar),er=Ct.apply(this,arguments),er.onKeyDown=function(Ft){var ir=Ft.keyCode;return ir===C.a.ENTER?(er.onClick(Ft),!0):void 0},er.onMouseLeave=function(Ft){var ir=er.props,Pt=ir.eventKey,rr=ir.onItemHover,Yr=ir.onMouseLeave;rr({key:Pt,hover:!1}),Yr({key:Pt,domEvent:Ft})},er.onMouseEnter=function(Ft){var ir=er.props,Pt=ir.eventKey,rr=ir.onItemHover,Yr=ir.onMouseEnter;rr({key:Pt,hover:!0}),Yr({key:Pt,domEvent:Ft})},er.onClick=function(Ft){var ir=er.props,Pt=ir.eventKey,rr=ir.multiple,Yr=ir.onClick,Pr=ir.onSelect,Mr=ir.onDeselect,fn=ir.isSelected,wn={key:Pt,keyPath:[Pt],item:Object(c.a)(er),domEvent:Ft};Yr(wn),rr?fn?Mr(wn):Pr(wn):fn||Pr(wn)},er.saveNode=function(Ft){er.node=Ft},er}return Object(o.a)(Ar,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ft=this.props;Ft.onDestroy&&Ft.onDestroy(Ft.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 Ft,ir=Object(l.a)({},this.props),Pt=I()(this.getPrefixCls(),ir.className,(Ft={},Object(E.a)(Ft,this.getActiveClassName(),!ir.disabled&&ir.active),Object(E.a)(Ft,this.getSelectedClassName(),ir.isSelected),Object(E.a)(Ft,this.getDisabledClassName(),ir.disabled),Ft)),rr=Object(l.a)(Object(l.a)({},ir.attribute),{},{title:typeof ir.title=="string"?ir.title:void 0,className:Pt,role:ir.role||"menuitem","aria-disabled":ir.disabled});ir.role==="option"?rr=Object(l.a)(Object(l.a)({},rr),{},{role:"option","aria-selected":ir.isSelected}):(ir.role===null||ir.role==="none")&&(rr.role="none");var Yr={onClick:ir.disabled?null:this.onClick,onMouseLeave:ir.disabled?null:this.onMouseLeave,onMouseEnter:ir.disabled?null:this.onMouseEnter},Pr=Object(l.a)({},ir.style);ir.mode==="inline"&&(ir.direction==="rtl"?Pr.paddingRight=ir.inlineIndent*ir.level:Pr.paddingLeft=ir.inlineIndent*ir.level),fe.forEach(function(fn){return delete ir[fn]}),delete ir.direction;var Mr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Mr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(ir,["onClick","onMouseEnter","onMouseLeave","onSelect"]),rr,Yr,{style:Pr,ref:this.saveNode}),ir.children,Mr)}}]),Ar}(e.Component);Bt.isMenuItem=!0,Bt.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var ft=Object(v.b)(function(Tt,Ct){var Ar=Tt.activeKey,er=Tt.selectedKeys,Ft=Ct.eventKey,ir=Ct.subMenuKey;return{active:Ar[ir]===Ft,isSelected:er.indexOf(Ft)!==-1}})(Bt),it=ft,Or=function(Tt){Object(h.a)(Ar,Tt);var Ct=Object(g.a)(Ar);function Ar(){var er;return Object(n.a)(this,Ar),er=Ct.apply(this,arguments),er.renderInnerMenuItem=function(Ft){var ir=er.props,Pt=ir.renderMenuItem,rr=ir.index;return Pt(Ft,rr,er.props.subMenuKey)},er}return Object(o.a)(Ar,[{key:"render",value:function(){var Ft=Object(S.a)({},this.props),ir=Ft.className,Pt=ir===void 0?"":ir,rr=Ft.rootPrefixCls,Yr="".concat(rr,"-item-group-title"),Pr="".concat(rr,"-item-group-list"),Mr=Ft.title,fn=Ft.children;return fe.forEach(function(wn){return delete Ft[wn]}),delete Ft.onClick,delete Ft.direction,e.createElement("li",Object.assign({},Ft,{className:"".concat(Pt," ").concat(rr,"-item-group")}),e.createElement("div",{className:Yr,title:typeof Mr=="string"?Mr:void 0},Mr),e.createElement("ul",{className:Pr},e.Children.map(fn,this.renderInnerMenuItem)))}}]),Ar}(e.Component);Or.isMenuItemGroup=!0,Or.defaultProps={disabled:!0};var an=Or,En=function(Ct){var Ar=Ct.className,er=Ct.rootPrefixCls,Ft=Ct.style;return e.createElement("li",{className:"".concat(Ar," ").concat(er,"-item-divider"),style:Ft})};En.defaultProps={disabled:!0,className:"",style:{}};var Bn=En,vi=tr,Ln=Object(e.createContext)({inlineCollapsed:!1}),Mn=Ln,Xt=r("0n0R"),wt=function(Tt){i()(Ar,Tt);var Ct=s()(Ar);function Ar(){return p()(this,Ar),Ct.apply(this,arguments)}return u()(Ar,[{key:"renderTitle",value:function(Ft){var ir=this.props,Pt=ir.icon,rr=ir.title,Yr=ir.level,Pr=ir.rootPrefixCls;if(!Pt)return Ft&&Yr===1&&rr&&typeof rr=="string"?e.createElement("div",{className:"".concat(Pr,"-inline-collapsed-noicon")},rr.charAt(0)):rr;var Mr=Object(Xt.b)(rr)&&rr.type==="span";return e.createElement(e.Fragment,null,Pt,Mr?rr:e.createElement("span",null,rr))}},{key:"render",value:function(){var Ft=this,ir=this.props,Pt=ir.rootPrefixCls,rr=ir.popupClassName;return e.createElement(Mn.Consumer,null,function(Yr){var Pr=Yr.inlineCollapsed,Mr=Yr.antdMenuTheme;return e.createElement(Vt,f()({},Object(b.default)(Ft.props,["icon"]),{title:Ft.renderTitle(Pr),popupClassName:I()(Pt,"".concat(Pt,"-").concat(Mr),rr)}))})}}]),Ar}(e.Component);wt.contextType=Mn,wt.isSubMenu=1;var De=wt,Re=r("Zm9Q"),Me=r("3S7+"),nt=r("ZX9x"),yt=function(Tt,Ct){var Ar={};for(var er in Tt)Object.prototype.hasOwnProperty.call(Tt,er)&&Ct.indexOf(er)<0&&(Ar[er]=Tt[er]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,er=Object.getOwnPropertySymbols(Tt);Ft<er.length;Ft++)Ct.indexOf(er[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Tt,er[Ft])&&(Ar[er[Ft]]=Tt[er[Ft]]);return Ar},sr=function(Tt){i()(Ar,Tt);var Ct=s()(Ar);function Ar(){var er;return p()(this,Ar),er=Ct.apply(this,arguments),er.renderItem=function(Ft){var ir=Ft.siderCollapsed,Pt=er.props,rr=Pt.level,Yr=Pt.className,Pr=Pt.children,Mr=Pt.rootPrefixCls,fn=er.props,wn=fn.title,ai=fn.icon,ri=fn.danger,gi=yt(fn,["title","icon","danger"]);return e.createElement(Mn.Consumer,null,function(Ii){var Mi,Qi=Ii.inlineCollapsed,ot=Ii.direction,Ne=wn;typeof wn=="undefined"?Ne=rr===1?Pr:"":wn===!1&&(Ne="");var He={title:Ne};!ir&&!Qi&&(He.title=null,He.visible=!1);var Ye=Object(Re.a)(Pr).length;return e.createElement(Me.a,f()({},He,{placement:ot==="rtl"?"left":"right",overlayClassName:"".concat(Mr,"-inline-collapsed-tooltip")}),e.createElement(it,f()({},gi,{className:I()(Yr,(Mi={},A()(Mi,"".concat(Mr,"-item-danger"),ri),A()(Mi,"".concat(Mr,"-item-only-child"),(ai?Ye+1:Ye)===1),Mi)),title:wn}),ai,er.renderItemChildren(Qi)))})},er}return u()(Ar,[{key:"renderItemChildren",value:function(Ft){var ir=this.props,Pt=ir.icon,rr=ir.children,Yr=ir.level,Pr=ir.rootPrefixCls;return!Pt||Object(Xt.b)(rr)&&rr.type==="span"?rr&&Ft&&Yr===1&&typeof rr=="string"?e.createElement("div",{className:"".concat(Pr,"-inline-collapsed-noicon")},rr.charAt(0)):rr:e.createElement("span",null,rr)}},{key:"render",value:function(){return e.createElement(nt.a.Consumer,null,this.renderItem)}}]),Ar}(e.Component);sr.isMenuItem=!0;var Nr=r("H84U"),mn=r("uaoM"),Yn=r("EXcs"),Jn=function(Tt){i()(Ar,Tt);var Ct=s()(Ar);function Ar(er){var Ft;return p()(this,Ar),Ft=Ct.call(this,er),Ft.renderMenu=function(ir){var Pt=ir.getPopupContainer,rr=ir.getPrefixCls,Yr=ir.direction,Pr=Ft.props,Mr=Pr.prefixCls,fn=Pr.className,wn=Pr.theme,ai={horizontal:{motionName:"slide-up"},inline:Yn.a,other:{motionName:"zoom-big"}},ri=rr("menu",Mr),gi=I()(fn,"".concat(ri,"-").concat(wn),A()({},"".concat(ri,"-inline-collapsed"),Ft.getInlineCollapsed()));return e.createElement(Mn.Provider,{value:{inlineCollapsed:Ft.getInlineCollapsed()||!1,antdMenuTheme:wn,direction:Yr}},e.createElement(vi,f()({getPopupContainer:Pt},Ft.props,{className:gi,prefixCls:ri,direction:Yr,defaultMotions:ai})))},Object(mn.a)(!("inlineCollapsed"in er&&er.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(mn.a)(!(er.siderCollapsed!==void 0&&"inlineCollapsed"in er),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Ft}return u()(Ar,[{key:"getInlineCollapsed",value:function(){var Ft=this.props,ir=Ft.inlineCollapsed,Pt=Ft.siderCollapsed;return Pt!==void 0?Pt:ir}},{key:"render",value:function(){return e.createElement(Nr.a,null,this.renderMenu)}}]),Ar}(e.Component);Jn.defaultProps={className:"",theme:"light",focusable:!1};var ur=function(Tt){i()(Ar,Tt);var Ct=s()(Ar);function Ar(){return p()(this,Ar),Ct.apply(this,arguments)}return u()(Ar,[{key:"render",value:function(){var Ft=this;return e.createElement(nt.a.Consumer,null,function(ir){return e.createElement(Jn,f()({},Ft.props,ir))})}}]),Ar}(e.Component);ur.Divider=Bn,ur.Item=sr,ur.SubMenu=De,ur.ItemGroup=an},C0SR:function(R,L,r){var y=r("YH21"),f=function(){this._track=[]};f.prototype={constructor:f,recognize:function(u,a,i){return this._doTrack(u,a,i),this._recognize(u)},clear:function(){return this._track.length=0,this},_doTrack:function(u,a,i){var t=u.touches;if(!t)return;for(var s={points:[],touches:[],target:a,event:u},e=0,l=t.length;e<l;e++){var n=t[e],o=y.clientToLocal(i,n,{});s.points.push([o.zrX,o.zrY]),s.touches.push(n)}this._track.push(s)},_recognize:function(u){for(var a in m)if(m.hasOwnProperty(a)){var i=m[a](this._track,u);if(i)return i}}};function x(d){var u=d[1][0]-d[0][0],a=d[1][1]-d[0][1];return Math.sqrt(u*u+a*a)}function A(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var m={pinch:function(u,a){var i=u.length;if(!i)return;var t=(u[i-1]||{}).points,s=(u[i-2]||{}).points||t;if(s&&s.length>1&&t&&t.length>1){var e=x(t)/x(s);!isFinite(e)&&(e=1),a.pinchScale=e;var l=A(t);return a.pinchX=l[0],a.pinchY=l[1],{type:"pinch",target:u[0].target,event:a}}}},p=f;R.exports=p},C0tN:function(R,L,r){r("0o9m"),r("8Uz6"),r("Ducp"),r("6/nd")},CBdT:function(R,L,r){var y=r("ProS");r("8waO"),r("AEZ6"),r("YNf1");var f=r("q3GZ");y.registerVisual(f)},CF2D:function(R,L,r){var y=r("ProS");r("vZI5"),r("GeKi");var f=r("6r85"),x=r("TJmX"),A=r("CbHG");y.registerPreprocessor(f),y.registerVisual(x),y.registerLayout(A)},CFYs:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("PJYZ"),i=r.n(a),t=r("7W2i"),s=r.n(t),e=r("LQ03"),l=r.n(e),n=r("q1tI"),o=r.n(n),c=r("TSYQ"),h=r.n(c),g=r("BGR+"),v=r("1S0Z"),b=r.n(v),S=r("Eh2f"),E=r.n(S),C=r("hfce"),_=r.n(C),T=r("f0uV"),w=r.n(T),O=r("H84U"),I=r("CWQg"),k=r("uaoM"),M=r("hNzZ");function U(te){return!te||te<0?0:te>100?100:te}function P(te){var Ze=te.success,Xe=te.successPercent,ue=Xe;return Ze&&"progress"in Ze&&(Object(k.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),ue=Ze.progress),Ze&&"percent"in Ze&&(ue=Ze.percent),ue}var X=function(te,Ze){var Xe={};for(var ue in te)Object.prototype.hasOwnProperty.call(te,ue)&&Ze.indexOf(ue)<0&&(Xe[ue]=te[ue]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,ue=Object.getOwnPropertySymbols(te);St<ue.length;St++)Ze.indexOf(ue[St])<0&&Object.prototype.propertyIsEnumerable.call(te,ue[St])&&(Xe[ue[St]]=te[ue[St]]);return Xe},F=function(Ze){var Xe=[];return Object.keys(Ze).forEach(function(ue){var St=parseFloat(ue.replace(/%/g,""));isNaN(St)||Xe.push({key:St,value:Ze[ue]})}),Xe=Xe.sort(function(ue,St){return ue.key-St.key}),Xe.map(function(ue){var St=ue.key,Qt=ue.value;return"".concat(Qt," ").concat(St,"%")}).join(", ")},j=function(Ze){var Xe=Ze.from,ue=Xe===void 0?M.presetPrimaryColors.blue:Xe,St=Ze.to,Qt=St===void 0?M.presetPrimaryColors.blue:St,dt=Ze.direction,Jt=dt===void 0?"to right":dt,$t=X(Ze,["from","to","direction"]);if(Object.keys($t).length!==0){var tn=F($t);return{backgroundImage:"linear-gradient(".concat(Jt,", ").concat(tn,")")}}return{backgroundImage:"linear-gradient(".concat(Jt,", ").concat(ue,", ").concat(Qt,")")}},K=function(Ze){var Xe=Ze.prefixCls,ue=Ze.percent,St=Ze.strokeWidth,Qt=Ze.size,dt=Ze.strokeColor,Jt=Ze.strokeLinecap,$t=Ze.children,tn=Ze.trailColor,kt=Ze.success,tr=dt&&typeof dt!="string"?j(dt):{background:dt},Bt=tn?{backgroundColor:tn}:void 0,ft=A()({width:"".concat(U(ue),"%"),height:St||(Qt==="small"?6:8),borderRadius:Jt==="square"?0:""},tr),it=P(Ze),Or={width:"".concat(U(it),"%"),height:St||(Qt==="small"?6:8),borderRadius:Jt==="square"?0:"",backgroundColor:kt==null?void 0:kt.strokeColor},an=it!==void 0?n.createElement("div",{className:"".concat(Xe,"-success-bg"),style:Or}):null;return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(Xe,"-outer")},n.createElement("div",{className:"".concat(Xe,"-inner"),style:Bt},n.createElement("div",{className:"".concat(Xe,"-bg"),style:ft}),an)),$t)},z=K,V={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Q=function(Ze){var Xe=Ze.map(function(){return Object(n.useRef)()}),ue=Object(n.useRef)();return Object(n.useEffect)(function(){var St=Date.now(),Qt=!1;Object.keys(Xe).forEach(function(dt){var Jt=Xe[dt].current;if(!Jt)return;Qt=!0;var $t=Jt.style;$t.transitionDuration=".3s, .3s, .3s, .06s",ue.current&&St-ue.current<100&&($t.transitionDuration="0s, 0s")}),Qt&&(ue.current=Date.now())}),[Xe]};function G(){return G=Object.assign||function(te){for(var Ze=1;Ze<arguments.length;Ze++){var Xe=arguments[Ze];for(var ue in Xe)Object.prototype.hasOwnProperty.call(Xe,ue)&&(te[ue]=Xe[ue])}return te},G.apply(this,arguments)}function ee(te,Ze){return Pe(te)||ke(te,Ze)||ye(te,Ze)||se()}function se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(te,Ze){if(!te)return;if(typeof te=="string")return he(te,Ze);var Xe=Object.prototype.toString.call(te).slice(8,-1);if(Xe==="Object"&&te.constructor&&(Xe=te.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(te);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return he(te,Ze)}function he(te,Ze){(Ze==null||Ze>te.length)&&(Ze=te.length);for(var Xe=0,ue=new Array(Ze);Xe<Ze;Xe++)ue[Xe]=te[Xe];return ue}function ke(te,Ze){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(te)))return;var Xe=[],ue=!0,St=!1,Qt=void 0;try{for(var dt=te[Symbol.iterator](),Jt;!(ue=(Jt=dt.next()).done)&&!(Xe.push(Jt.value),Ze&&Xe.length===Ze);ue=!0);}catch($t){St=!0,Qt=$t}finally{try{!ue&&dt.return!=null&&dt.return()}finally{if(St)throw Qt}}return Xe}function Pe(te){if(Array.isArray(te))return te}function Ue(te,Ze){if(te==null)return{};var Xe=$e(te,Ze),ue,St;if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(te);for(St=0;St<Qt.length;St++){if(ue=Qt[St],Ze.indexOf(ue)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(te,ue))continue;Xe[ue]=te[ue]}}return Xe}function $e(te,Ze){if(te==null)return{};var Xe={},ue=Object.keys(te),St,Qt;for(Qt=0;Qt<ue.length;Qt++){if(St=ue[Qt],Ze.indexOf(St)>=0)continue;Xe[St]=te[St]}return Xe}var Ge=function(Ze){var Xe=Ze.className,ue=Ze.percent,St=Ze.prefixCls,Qt=Ze.strokeColor,dt=Ze.strokeLinecap,Jt=Ze.strokeWidth,$t=Ze.style,tn=Ze.trailColor,kt=Ze.trailWidth,tr=Ze.transition,Bt=Ue(Ze,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Bt.gapPosition;var ft=Array.isArray(ue)?ue:[ue],it=Array.isArray(Qt)?Qt:[Qt],Or=Q(ft),an=ee(Or,1),En=an[0],Bn=Jt/2,vi=100-Jt/2,Ln="M ".concat(dt==="round"?Bn:0,",").concat(Bn,`
L `).concat(dt==="round"?vi:100,",").concat(Bn),Mn="0 0 100 ".concat(Jt),Xt=0;return o.a.createElement("svg",G({className:h()("".concat(St,"-line"),Xe),viewBox:Mn,preserveAspectRatio:"none",style:$t},Bt),o.a.createElement("path",{className:"".concat(St,"-line-trail"),d:Ln,strokeLinecap:dt,stroke:tn,strokeWidth:kt||Jt,fillOpacity:"0"}),ft.map(function(wt,De){var Re={strokeDasharray:"".concat(wt,"px, 100px"),strokeDashoffset:"-".concat(Xt,"px"),transition:tr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Me=it[De]||it[it.length-1];return Xt+=wt,o.a.createElement("path",{key:De,className:"".concat(St,"-line-path"),d:Ln,strokeLinecap:dt,stroke:Me,strokeWidth:Jt,fillOpacity:"0",ref:En[De],style:Re})}))};Ge.defaultProps=V;var ht=Ge;function Fe(){return Fe=Object.assign||function(te){for(var Ze=1;Ze<arguments.length;Ze++){var Xe=arguments[Ze];for(var ue in Xe)Object.prototype.hasOwnProperty.call(Xe,ue)&&(te[ue]=Xe[ue])}return te},Fe.apply(this,arguments)}function oe(te,Ze){return $(te)||Y(te,Ze)||fe(te,Ze)||rt()}function rt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(te,Ze){if(!te)return;if(typeof te=="string")return J(te,Ze);var Xe=Object.prototype.toString.call(te).slice(8,-1);if(Xe==="Object"&&te.constructor&&(Xe=te.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(te);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return J(te,Ze)}function J(te,Ze){(Ze==null||Ze>te.length)&&(Ze=te.length);for(var Xe=0,ue=new Array(Ze);Xe<Ze;Xe++)ue[Xe]=te[Xe];return ue}function Y(te,Ze){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(te)))return;var Xe=[],ue=!0,St=!1,Qt=void 0;try{for(var dt=te[Symbol.iterator](),Jt;!(ue=(Jt=dt.next()).done)&&!(Xe.push(Jt.value),Ze&&Xe.length===Ze);ue=!0);}catch($t){St=!0,Qt=$t}finally{try{!ue&&dt.return!=null&&dt.return()}finally{if(St)throw Qt}}return Xe}function $(te){if(Array.isArray(te))return te}function de(te,Ze){if(te==null)return{};var Xe=we(te,Ze),ue,St;if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(te);for(St=0;St<Qt.length;St++){if(ue=Qt[St],Ze.indexOf(ue)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(te,ue))continue;Xe[ue]=te[ue]}}return Xe}function we(te,Ze){if(te==null)return{};var Xe={},ue=Object.keys(te),St,Qt;for(Qt=0;Qt<ue.length;Qt++){if(St=ue[Qt],Ze.indexOf(St)>=0)continue;Xe[St]=te[St]}return Xe}var Ce=0;function Se(te){return+te.replace("%","")}function le(te){return Array.isArray(te)?te:[te]}function pe(te,Ze,Xe,ue){var St=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Qt=arguments.length>5?arguments[5]:void 0,dt=50-ue/2,Jt=0,$t=-dt,tn=0,kt=-2*dt;switch(Qt){case"left":Jt=-dt,$t=0,tn=2*dt,kt=0;break;case"right":Jt=dt,$t=0,tn=-2*dt,kt=0;break;case"bottom":$t=dt,kt=2*dt;break;default:}var tr="M 50,50 m ".concat(Jt,",").concat($t,`
a `).concat(dt,",").concat(dt," 0 1 1 ").concat(tn,",").concat(-kt,`
a `).concat(dt,",").concat(dt," 0 1 1 ").concat(-tn,",").concat(kt),Bt=Math.PI*2*dt,ft={stroke:Xe,strokeDasharray:"".concat(Ze/100*(Bt-St),"px ").concat(Bt,"px"),strokeDashoffset:"-".concat(St/2+te/100*(Bt-St),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:tr,pathStyle:ft}}var _e=function(Ze){var Xe=Ze.prefixCls,ue=Ze.strokeWidth,St=Ze.trailWidth,Qt=Ze.gapDegree,dt=Ze.gapPosition,Jt=Ze.trailColor,$t=Ze.strokeLinecap,tn=Ze.style,kt=Ze.className,tr=Ze.strokeColor,Bt=Ze.percent,ft=de(Ze,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),it=Object(n.useMemo)(function(){return Ce+=1,Ce},[]),Or=pe(0,100,Jt,ue,Qt,dt),an=Or.pathString,En=Or.pathStyle,Bn=le(Bt),vi=le(tr),Ln=vi.find(function(Re){return Object.prototype.toString.call(Re)==="[object Object]"}),Mn=Q(Bn),Xt=oe(Mn,1),wt=Xt[0],De=function(){var Me=0;return Bn.map(function(nt,yt){var sr=vi[yt]||vi[vi.length-1],Nr=Object.prototype.toString.call(sr)==="[object Object]"?"url(#".concat(Xe,"-gradient-").concat(it,")"):"",mn=pe(Me,nt,sr,ue,Qt,dt);return Me+=nt,o.a.createElement("path",{key:yt,className:"".concat(Xe,"-circle-path"),d:mn.pathString,stroke:Nr,strokeLinecap:$t,strokeWidth:ue,opacity:nt===0?0:1,fillOpacity:"0",style:mn.pathStyle,ref:wt[yt]})})};return o.a.createElement("svg",Fe({className:h()("".concat(Xe,"-circle"),kt),viewBox:"0 0 100 100",style:tn},ft),Ln&&o.a.createElement("defs",null,o.a.createElement("linearGradient",{id:"".concat(Xe,"-gradient-").concat(it),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Ln).sort(function(Re,Me){return Se(Re)-Se(Me)}).map(function(Re,Me){return o.a.createElement("stop",{key:Me,offset:Re,stopColor:Ln[Re]})}))),o.a.createElement("path",{className:"".concat(Xe,"-circle-trail"),d:an,stroke:Jt,strokeLinecap:$t,strokeWidth:St||ue,fillOpacity:"0",style:En}),De().reverse())};_e.defaultProps=V;var tt=_e,gt={Line:ht,Circle:tt};function ct(te){var Ze=te.percent,Xe=te.success,ue=te.successPercent,St=U(Ze),Qt=P({success:Xe,successPercent:ue});return Qt?[U(Qt),U(St-U(Qt))]:St}function je(te){var Ze=te.success,Xe=te.strokeColor,ue=te.successPercent,St=Xe||null,Qt=P({success:Ze,successPercent:ue});return Qt?[M.presetPrimaryColors.green,St]:St}var Zt=function(Ze){var Xe=Ze.prefixCls,ue=Ze.width,St=Ze.strokeWidth,Qt=Ze.trailColor,dt=Ze.strokeLinecap,Jt=Ze.gapPosition,$t=Ze.gapDegree,tn=Ze.type,kt=Ze.children,tr=ue||120,Bt={width:tr,height:tr,fontSize:tr*.15+6},ft=St||6,it=Jt||tn==="dashboard"&&"bottom"||"top",Or=function(){return $t||$t===0?$t:tn==="dashboard"?75:void 0},an=je(Ze),En=Object.prototype.toString.call(an)==="[object Object]",Bn=h()("".concat(Xe,"-inner"),f()({},"".concat(Xe,"-circle-gradient"),En));return n.createElement("div",{className:Bn,style:Bt},n.createElement(tt,{percent:ct(Ze),strokeWidth:ft,trailWidth:ft,strokeColor:an,strokeLinecap:dt,trailColor:Qt,prefixCls:Xe,gapDegree:Or(),gapPosition:it}),kt)},ut=Zt,Ht=function(Ze){for(var Xe=Ze.size,ue=Ze.steps,St=Ze.percent,Qt=St===void 0?0:St,dt=Ze.strokeWidth,Jt=dt===void 0?8:dt,$t=Ze.strokeColor,tn=Ze.trailColor,kt=Ze.prefixCls,tr=Ze.children,Bt=Math.floor(ue*(Qt/100)),ft=Xe==="small"?2:14,it=[],Or=0;Or<ue;Or+=1)it.push(n.createElement("div",{key:Or,className:h()("".concat(kt,"-steps-item"),f()({},"".concat(kt,"-steps-item-active"),Or<=Bt-1)),style:{backgroundColor:Or<=Bt-1?$t:tn,width:ft,height:Jt}}));return n.createElement("div",{className:"".concat(kt,"-steps-outer")},it,tr)},dr=Ht,Vt=function(te,Ze){var Xe={};for(var ue in te)Object.prototype.hasOwnProperty.call(te,ue)&&Ze.indexOf(ue)<0&&(Xe[ue]=te[ue]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,ue=Object.getOwnPropertySymbols(te);St<ue.length;St++)Ze.indexOf(ue[St])<0&&Object.prototype.propertyIsEnumerable.call(te,ue[St])&&(Xe[ue[St]]=te[ue[St]]);return Xe},Mt=Object(I.a)("line","circle","dashboard"),Gt=Object(I.a)("normal","exception","active","success"),Ve=function(te){s()(Xe,te);var Ze=l()(Xe);function Xe(){var ue;return p()(this,Xe),ue=Ze.apply(this,arguments),ue.renderProgress=function(St){var Qt,dt=St.getPrefixCls,Jt=St.direction,$t=i()(ue),tn=$t.props,kt=tn.prefixCls,tr=tn.className,Bt=tn.size,ft=tn.type,it=tn.steps,Or=tn.showInfo,an=tn.strokeColor,En=Vt(tn,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),Bn=dt("progress",kt),vi=ue.getProgressStatus(),Ln=ue.renderProcessInfo(Bn,vi);Object(k.a)(!("successPercent"in tn),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var Mn;ft==="line"?Mn=it?n.createElement(dr,A()({},ue.props,{strokeColor:typeof an=="string"?an:void 0,prefixCls:Bn,steps:it}),Ln):n.createElement(z,A()({},ue.props,{prefixCls:Bn}),Ln):(ft==="circle"||ft==="dashboard")&&(Mn=n.createElement(ut,A()({},ue.props,{prefixCls:Bn,progressStatus:vi}),Ln));var Xt=h()(Bn,(Qt={},f()(Qt,"".concat(Bn,"-").concat(ft==="dashboard"&&"circle"||it&&"steps"||ft),!0),f()(Qt,"".concat(Bn,"-status-").concat(vi),!0),f()(Qt,"".concat(Bn,"-show-info"),Or),f()(Qt,"".concat(Bn,"-").concat(Bt),Bt),f()(Qt,"".concat(Bn,"-rtl"),Jt==="rtl"),Qt),tr);return n.createElement("div",A()({},Object(g.default)(En,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:Xt}),Mn)},ue}return u()(Xe,[{key:"getPercentNumber",value:function(){var St=this.props.percent,Qt=St===void 0?0:St,dt=P(this.props);return parseInt(dt!==void 0?dt.toString():Qt.toString(),10)}},{key:"getProgressStatus",value:function(){var St=this.props.status;return Gt.indexOf(St)<0&&this.getPercentNumber()>=100?"success":St||"normal"}},{key:"renderProcessInfo",value:function(St,Qt){var dt=this.props,Jt=dt.showInfo,$t=dt.format,tn=dt.type,kt=dt.percent,tr=P(this.props);if(!Jt)return null;var Bt,ft=$t||function(Or){return"".concat(Or,"%")},it=tn==="line";return $t||Qt!=="exception"&&Qt!=="success"?Bt=ft(U(kt),U(tr)):Qt==="exception"?Bt=it?n.createElement(w.a,null):n.createElement(b.a,null):Qt==="success"&&(Bt=it?n.createElement(_.a,null):n.createElement(E.a,null)),n.createElement("span",{className:"".concat(St,"-text"),title:typeof Bt=="string"?Bt:void 0},Bt)}},{key:"render",value:function(){return n.createElement(O.a,null,this.renderProgress)}}]),Xe}(n.Component);Ve.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var me=L.a=Ve},CH3K:function(R,L){function r(y,f){for(var x=-1,A=f.length,m=y.length;++x<A;)y[m+x]=f[x];return y}R.exports=r},"CMP+":function(R,L,r){var y=r("bYtY"),f=r("hM6l"),x=function(m,p,d,u){f.call(this,m,p,d),this.type=u||"value",this.model=null};x.prototype={constructor:x,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},y.inherits(x,f);var A=x;R.exports=A},CP8R:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};L.default=y},CRcw:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("h7i7"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"CWI+":function(R,L,r){},CbHG:function(R,L,r){var y=r("IwbS"),f=y.subPixelOptimize,x=r("zM3Q"),A=r("OELB"),m=A.parsePercent,p=r("bYtY"),d=p.retrieve2,u=typeof Float32Array!="undefined"?Float32Array:Array,a={seriesType:"candlestick",plan:x(),reset:function(s){var e=s.coordinateSystem,l=s.getData(),n=t(s,l),o=0,c=1,h=["x","y"],g=l.mapDimension(h[o]),v=l.mapDimension(h[c],!0),b=v[0],S=v[1],E=v[2],C=v[3];if(l.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),g==null||v.length<4)return;return{progress:s.pipelineContext.large?T:_};function _(w,O){for(var I;(I=w.next())!=null;){var k=O.get(g,I),M=O.get(b,I),U=O.get(S,I),P=O.get(E,I),X=O.get(C,I),F=Math.min(M,U),j=Math.max(M,U),K=ee(F,k),z=ee(j,k),V=ee(P,k),Q=ee(X,k),G=[];se(G,z,0),se(G,K,1),G.push(he(Q),he(z),he(V),he(K)),O.setItemLayout(I,{sign:i(O,I,M,U,S),initBaseline:M>U?z[c]:K[c],ends:G,brushRect:ye(P,X,k)})}function ee(ke,Pe){var Ue=[];return Ue[o]=Pe,Ue[c]=ke,isNaN(Pe)||isNaN(ke)?[NaN,NaN]:e.dataToPoint(Ue)}function se(ke,Pe,Ue){var $e=Pe.slice(),Ge=Pe.slice();$e[o]=f($e[o]+n/2,1,!1),Ge[o]=f(Ge[o]-n/2,1,!0),Ue?ke.push($e,Ge):ke.push(Ge,$e)}function ye(ke,Pe,Ue){var $e=ee(ke,Ue),Ge=ee(Pe,Ue);return $e[o]-=n/2,Ge[o]-=n/2,{x:$e[0],y:$e[1],width:c?n:Ge[0]-$e[0],height:c?Ge[1]-$e[1]:n}}function he(ke){return ke[o]=f(ke[o],1),ke}}function T(w,O){for(var I=new u(w.count*4),k=0,M,U=[],P=[],X;(X=w.next())!=null;){var F=O.get(g,X),j=O.get(b,X),K=O.get(S,X),z=O.get(E,X),V=O.get(C,X);if(isNaN(F)||isNaN(z)||isNaN(V)){I[k++]=NaN,k+=3;continue}I[k++]=i(O,X,j,K,S),U[o]=F,U[c]=z,M=e.dataToPoint(U,null,P),I[k++]=M?M[0]:NaN,I[k++]=M?M[1]:NaN,U[c]=V,M=e.dataToPoint(U,null,P),I[k++]=M?M[1]:NaN}O.setLayout("largePoints",I)}}};function i(s,e,l,n,o){var c;return l>n?c=-1:l<n?c=1:c=e>0?s.get(o,e-1)<=n?1:-1:1,c}function t(s,e){var l=s.getBaseAxis(),n,o=l.type==="category"?l.getBandWidth():(n=l.getExtent(),Math.abs(n[1]-n[0])/e.count()),c=m(d(s.get("barMaxWidth"),o),o),h=m(d(s.get("barMinWidth"),1),o),g=s.get("barWidth");return g!=null?m(g,o):Math.max(Math.min(o/2,c),h)}R.exports=a},CiB2:function(R,L,r){"use strict";r.d(L,"a",function(){return y});function y(f){if(f==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(R,L,r){r("5NHt"),r("f3JH")},CrYA:function(R,L,r){var y=r("MFOe"),f=y.Global;R.exports={name:"sessionStorage",read:A,write:m,each:p,remove:d,clearAll:u};function x(){return f.sessionStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function p(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function d(a){return x().removeItem(a)}function u(){return x().clear()}},Cwc5:function(R,L,r){var y=r("NKxu"),f=r("Npjl");function x(A,m){var p=f(A,m);return y(p)?p:void 0}R.exports=x},D1WM:function(R,L,r){var y=r("bYtY"),f=r("hM6l"),x=function(m,p,d,u,a){f.call(this,m,p,d),this.type=u||"value",this.axisIndex=a};x.prototype={constructor:x,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(x,f);var A=x;R.exports=A},D5nY:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("4NO4"),A=x.makeInner,m=x.getDataItemValue,p=r("bYtY"),d=p.createHashMap,u=p.each,a=p.map,i=p.isArray,t=p.isString,s=p.isObject,e=p.isTypedArray,l=p.isArrayLike,n=p.extend,o=p.assert,c=r("7G+c"),h=r("k9D9"),g=h.SOURCE_FORMAT_ORIGINAL,v=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,S=h.SOURCE_FORMAT_KEYED_COLUMNS,E=h.SOURCE_FORMAT_UNKNOWN,C=h.SOURCE_FORMAT_TYPED_ARRAY,_=h.SERIES_LAYOUT_BY_ROW,T={Must:1,Might:2,Not:3},w=A();function O(G){var ee=G.option.source,se=E;if(e(ee))se=C;else if(i(ee)){ee.length===0&&(se=v);for(var ye=0,he=ee.length;ye<he;ye++){var ke=ee[ye];if(ke==null)continue;if(i(ke)){se=v;break}else if(s(ke)){se=b;break}}}else if(s(ee)){for(var Pe in ee)if(ee.hasOwnProperty(Pe)&&l(ee[Pe])){se=S;break}}else if(ee!=null)throw new Error("Invalid data");w(G).sourceFormat=se}function I(G){return w(G).source}function k(G){w(G).datasetMap=d()}function M(G){var ee=G.option,se=ee.data,ye=e(se)?C:g,he=!1,ke=ee.seriesLayoutBy,Pe=ee.sourceHeader,Ue=ee.dimensions,$e=z(G);if($e){var Ge=$e.option;se=Ge.source,ye=w($e).sourceFormat,he=!0,ke=ke||Ge.seriesLayoutBy,Pe==null&&(Pe=Ge.sourceHeader),Ue=Ue||Ge.dimensions}var ht=U(se,ye,ke,Pe,Ue);w(G).source=new c({data:se,fromDataset:he,seriesLayoutBy:ke,sourceFormat:ye,dimensionsDefine:ht.dimensionsDefine,startIndex:ht.startIndex,dimensionsDetectCount:ht.dimensionsDetectCount,encodeDefine:ee.encode})}function U(G,ee,se,ye,he){if(!G)return{dimensionsDefine:P(he)};var ke,Pe;if(ee===v)ye==="auto"||ye==null?X(function($e){$e!=null&&$e!=="-"&&(t($e)?Pe==null&&(Pe=1):Pe=0)},se,G,10):Pe=ye?1:0,!he&&Pe===1&&(he=[],X(function($e,Ge){he[Ge]=$e!=null?$e:""},se,G)),ke=he?he.length:se===_?G.length:G[0]?G[0].length:null;else if(ee===b)he||(he=F(G));else if(ee===S)he||(he=[],u(G,function($e,Ge){he.push(Ge)}));else if(ee===g){var Ue=m(G[0]);ke=i(Ue)&&Ue.length||1}else ee===C;return{startIndex:Pe,dimensionsDefine:P(he),dimensionsDetectCount:ke}}function P(G){if(!G)return;var ee=d();return a(G,function(se,ye){if(se=n({},s(se)?se:{name:se}),se.name==null)return se;se.name+="",se.displayName==null&&(se.displayName=se.name);var he=ee.get(se.name);return he?se.name+="-"+he.count++:ee.set(se.name,{count:1}),se})}function X(G,ee,se,ye){if(ye==null&&(ye=Infinity),ee===_)for(var he=0;he<se.length&&he<ye;he++)G(se[he]?se[he][0]:null,he);else for(var ke=se[0]||[],he=0;he<ke.length&&he<ye;he++)G(ke[he],he)}function F(G){for(var ee=0,se;ee<G.length&&!(se=G[ee++]););if(se){var ye=[];return u(se,function(he,ke){ye.push(ke)}),ye}}function j(G,ee,se){var ye={},he=z(ee);if(!he||!G)return ye;var ke=[],Pe=[],Ue=ee.ecModel,$e=w(Ue).datasetMap,Ge=he.uid+"_"+se.seriesLayoutBy,ht,Fe;G=G.slice(),u(G,function(J,Y){!s(J)&&(G[Y]={name:J}),J.type==="ordinal"&&ht==null&&(ht=Y,Fe=fe(G[Y])),ye[J.name]=[]});var oe=$e.get(Ge)||$e.set(Ge,{categoryWayDim:Fe,valueWayDim:0});u(G,function(J,Y){var $=J.name,de=fe(J);if(ht==null){var we=oe.valueWayDim;rt(ye[$],we,de),rt(Pe,we,de),oe.valueWayDim+=de}else if(ht===Y)rt(ye[$],0,de),rt(ke,0,de);else{var we=oe.categoryWayDim;rt(ye[$],we,de),rt(Pe,we,de),oe.categoryWayDim+=de}});function rt(J,Y,$){for(var de=0;de<$;de++)J.push(Y+de)}function fe(J){var Y=J.dimsDef;return Y?Y.length:1}return ke.length&&(ye.itemName=ke),Pe.length&&(ye.seriesName=Pe),ye}function K(G,ee,se){var ye={},he=z(G);if(!he)return ye;var ke=ee.sourceFormat,Pe=ee.dimensionsDefine,Ue;(ke===b||ke===S)&&u(Pe,function(ht,Fe){(s(ht)?ht.name:ht)==="name"&&(Ue=Fe)});var $e=function(){for(var ht={},Fe={},oe=[],rt=0,fe=Math.min(5,se);rt<fe;rt++){var J=Q(ee.data,ke,ee.seriesLayoutBy,Pe,ee.startIndex,rt);oe.push(J);var Y=J===T.Not;if(Y&&ht.v==null&&rt!==Ue&&(ht.v=rt),(ht.n==null||ht.n===ht.v||!Y&&oe[ht.n]===T.Not)&&(ht.n=rt),$(ht)&&oe[ht.n]!==T.Not)return ht;Y||(J===T.Might&&Fe.v==null&&rt!==Ue&&(Fe.v=rt),(Fe.n==null||Fe.n===Fe.v)&&(Fe.n=rt))}function $(de){return de.v!=null&&de.n!=null}return $(ht)?ht:$(Fe)?Fe:null}();if($e){ye.value=$e.v;var Ge=Ue!=null?Ue:$e.n;ye.itemName=[Ge],ye.seriesName=[Ge]}return ye}function z(G){var ee=G.option,se=ee.data;if(!se)return G.ecModel.getComponent("dataset",ee.datasetIndex||0)}function V(G,ee){return Q(G.data,G.sourceFormat,G.seriesLayoutBy,G.dimensionsDefine,G.startIndex,ee)}function Q(G,ee,se,ye,he,ke){var Pe,Ue=5;if(e(G))return T.Not;var $e,Ge;if(ye){var ht=ye[ke];s(ht)?($e=ht.name,Ge=ht.type):t(ht)&&($e=ht)}if(Ge!=null)return Ge==="ordinal"?T.Must:T.Not;if(ee===v)if(se===_){for(var Fe=G[ke],oe=0;oe<(Fe||[]).length&&oe<Ue;oe++)if((Pe=Y(Fe[he+oe]))!=null)return Pe}else for(var oe=0;oe<G.length&&oe<Ue;oe++){var rt=G[he+oe];if(rt&&(Pe=Y(rt[ke]))!=null)return Pe}else if(ee===b){if(!$e)return T.Not;for(var oe=0;oe<G.length&&oe<Ue;oe++){var fe=G[oe];if(fe&&(Pe=Y(fe[$e]))!=null)return Pe}}else if(ee===S){if(!$e)return T.Not;var Fe=G[$e];if(!Fe||e(Fe))return T.Not;for(var oe=0;oe<Fe.length&&oe<Ue;oe++)if((Pe=Y(Fe[oe]))!=null)return Pe}else if(ee===g)for(var oe=0;oe<G.length&&oe<Ue;oe++){var fe=G[oe],J=m(fe);if(!i(J))return T.Not;if((Pe=Y(J[ke]))!=null)return Pe}function Y($){var de=t($);if($!=null&&isFinite($)&&$!=="")return de?T.Might:T.Not;if(de&&$!=="-")return T.Must}return T.Not}L.BE_ORDINAL=T,L.detectSourceFormat=O,L.getSource=I,L.resetSourceDefaulter=k,L.prepareSource=M,L.makeSeriesEncodeForAxisCoordSys=j,L.makeSeriesEncodeForNameBased=K,L.guessOrdinal=V},D9ME:function(R,L,r){var y=r("IwbS"),f=r("fls0"),x=r("bYtY"),A=r("oVpE"),m=A.createSymbol,p=r("QBsz"),d=r("Sj9i");function u(t,s,e){y.Group.call(this),this.add(this.createLine(t,s,e)),this._updateEffectSymbol(t,s)}var a=u.prototype;a.createLine=function(t,s,e){return new f(t,s,e)},a._updateEffectSymbol=function(t,s){var e=t.getItemModel(s),l=e.getModel("effect"),n=l.get("symbolSize"),o=l.get("symbol");x.isArray(n)||(n=[n,n]);var c=l.get("color")||t.getItemVisual(s,"color"),h=this.childAt(1);if(this._symbolType!==o&&(this.remove(h),h=m(o,-.5,-.5,1,1,c),h.z2=100,h.culling=!0,this.add(h)),!h)return;h.setStyle("shadowColor",c),h.setStyle(l.getItemStyle(["color"])),h.attr("scale",n),h.setColor(c),h.attr("scale",n),this._symbolType=o,this._symbolScale=n,this._updateEffectAnimation(t,l,s)},a._updateEffectAnimation=function(t,s,e){var l=this.childAt(1);if(!l)return;var n=this,o=t.getItemLayout(e),c=s.get("period")*1e3,h=s.get("loop"),g=s.get("constantSpeed"),v=x.retrieve(s.get("delay"),function(C){return C/t.count()*c/3}),b=typeof v=="function";if(l.ignore=!0,this.updateAnimationPoints(l,o),g>0&&(c=this.getLineLength(l)/g*1e3),c!==this._period||h!==this._loop){l.stopAnimation();var S=v;b&&(S=v(e)),l.__t>0&&(S=-c*l.__t),l.__t=0;var E=l.animate("",h).when(c,{__t:1}).delay(S).during(function(){n.updateSymbolPosition(l)});h||E.done(function(){n.remove(l)}),E.start()}this._period=c,this._loop=h},a.getLineLength=function(t){return p.dist(t.__p1,t.__cp1)+p.dist(t.__cp1,t.__p2)},a.updateAnimationPoints=function(t,s){t.__p1=s[0],t.__p2=s[1],t.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},a.updateData=function(t,s,e){this.childAt(0).updateData(t,s,e),this._updateEffectSymbol(t,s)},a.updateSymbolPosition=function(t){var s=t.__p1,e=t.__p2,l=t.__cp1,n=t.__t,o=t.position,c=[o[0],o[1]],h=d.quadraticAt,g=d.quadraticDerivativeAt;o[0]=h(s[0],l[0],e[0],n),o[1]=h(s[1],l[1],e[1],n);var v=g(s[0],l[0],e[0],n),b=g(s[1],l[1],e[1],n);if(t.rotation=-Math.atan2(b,v)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var S=p.dist(c,o)*1.05;t.attr("scale",[t.scale[0],S]),n===1&&(o[0]=c[0]+(o[0]-c[0])/2,o[1]=c[1]+(o[1]-c[1])/2)}else if(t.__lastT===1){var S=2*p.dist(s,o);t.attr("scale",[t.scale[0],S])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},a.updateLayout=function(t,s){this.childAt(0).updateLayout(t,s);var e=t.getItemModel(s).getModel("effect");this._updateEffectAnimation(t,e,s)},x.inherits(u,y.Group);var i=u;R.exports=i},DBLp:function(R,L){function r(){}r.prototype={diff:function(p,d,u){u||(u=function(b,S){return b===S}),this.equals=u;var a=this;p=p.slice(),d=d.slice();var i=d.length,t=p.length,s=1,e=i+t,l=[{newPos:-1,components:[]}],n=this.extractCommon(l[0],d,p,0);if(l[0].newPos+1>=i&&n+1>=t){for(var o=[],c=0;c<d.length;c++)o.push(c);return[{indices:o,count:d.length}]}function h(){for(var v=-1*s;v<=s;v+=2){var b,S=l[v-1],E=l[v+1],C=(E?E.newPos:0)-v;S&&(l[v-1]=void 0);var _=S&&S.newPos+1<i,T=E&&0<=C&&C<t;if(!_&&!T){l[v]=void 0;continue}if(!_||T&&S.newPos<E.newPos?(b=f(E),a.pushComponent(b.components,void 0,!0)):(b=S,b.newPos++,a.pushComponent(b.components,!0,void 0)),C=a.extractCommon(b,d,p,v),b.newPos+1>=i&&C+1>=t)return y(a,b.components,d,p);l[v]=b}s++}for(;s<=e;){var g=h();if(g)return g}},pushComponent:function(p,d,u){var a=p[p.length-1];a&&a.added===d&&a.removed===u?p[p.length-1]={count:a.count+1,added:d,removed:u}:p.push({count:1,added:d,removed:u})},extractCommon:function(p,d,u,a){for(var i=d.length,t=u.length,s=p.newPos,e=s-a,l=0;s+1<i&&e+1<t&&this.equals(d[s+1],u[e+1]);)s++,e++,l++;return l&&p.components.push({count:l}),p.newPos=s,e},tokenize:function(p){return p.slice()},join:function(p){return p.slice()}};function y(m,p,d,u){for(var a=0,i=p.length,t=0,s=0;a<i;a++){var e=p[a];if(e.removed){for(var l=[],n=s;n<s+e.count;n++)l.push(n);e.indices=l,s+=e.count}else{for(var l=[],n=t;n<t+e.count;n++)l.push(n);e.indices=l,t+=e.count,e.added||(s+=e.count)}}return p}function f(m){return{newPos:m.newPos,components:m.components.slice(0)}}var x=new r;function A(m,p,d){return x.diff(m,p,d)}R.exports=A},DEFe:function(R,L,r){var y=r("bYtY"),f=r("SgGq"),x=r("Ae+d"),A=r("xSat"),m=A.onIrrelevantElement,p=r("IwbS"),d=r("W4dC"),u=r("iRjW"),a=u.getUID,i=r("DN4a");function t(o){var c=o.getItemStyle(),h=o.get("areaColor");return h!=null&&(c.fill=h),c}function s(o,c,h,g,v){h.off("click"),h.off("mousedown"),c.get("selectedMode")&&(h.on("mousedown",function(){o._mouseDownFlag=!0}),h.on("click",function(b){if(!o._mouseDownFlag)return;o._mouseDownFlag=!1;for(var S=b.target;!S.__regions;)S=S.parent;if(!S)return;var E={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(S.__regions,function(C){return{name:C.name,from:v.uid}})};E[c.mainType+"Id"]=c.id,g.dispatchAction(E),e(c,h)}))}function e(o,c){c.eachChild(function(h){y.each(h.__regions,function(g){h.trigger(o.isSelected(g.name)?"emphasis":"normal")})})}function l(o,c){var h=new p.Group;this.uid=a("ec_map_draw"),this._controller=new f(o.getZr()),this._controllerHost={target:c?h:null},this.group=h,this._updateGroup=c,this._mouseDownFlag,this._mapName,this._initialized,h.add(this._regionsGroup=new p.Group),h.add(this._backgroundGroup=new p.Group)}l.prototype={constructor:l,draw:function(o,c,h,g,v){var b=o.mainType==="geo",S=o.getData&&o.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(z){!S&&z.getHostGeoModel()===o&&(S=z.getData())});var E=o.coordinateSystem;this._updateBackground(E);var C=this._regionsGroup,_=this.group,T=E.getTransformInfo(),w=!C.childAt(0)||v,O;if(w)_.transform=T.roamTransform,_.decomposeTransform(),_.dirty();else{var I=new i;I.transform=T.roamTransform,I.decomposeTransform();var k={scale:I.scale,position:I.position};O=I.scale,p.updateProps(_,k,o)}var M=T.rawScale,U=T.rawPosition;C.removeAll();var P=["itemStyle"],X=["emphasis","itemStyle"],F=["label"],j=["emphasis","label"],K=y.createHashMap();y.each(E.regions,function(z){var V=K.get(z.name)||K.set(z.name,new p.Group),Q=new p.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=o.getRegionModel(z.name)||o,ee=G.getModel(P),se=G.getModel(X),ye=t(ee),he=t(se),ke=G.getModel(F),Pe=G.getModel(j),Ue;if(S){Ue=S.indexOfName(z.name);var $e=S.getItemVisual(Ue,"color",!0);$e&&(ye.fill=$e)}var Ge=function(we){return[we[0]*M[0]+U[0],we[1]*M[1]+U[1]]};y.each(z.geometries,function(we){if(we.type!=="polygon")return;for(var Ce=[],Se=0;Se<we.exterior.length;++Se)Ce.push(Ge(we.exterior[Se]));Q.shape.paths.push(new p.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Se=0;Se<(we.interiors?we.interiors.length:0);++Se){for(var le=we.interiors[Se],Ce=[],pe=0;pe<le.length;++pe)Ce.push(Ge(le[pe]));Q.shape.paths.push(new p.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),Q.setStyle(ye),Q.style.strokeNoScale=!0,Q.culling=!0;var ht=ke.get("show"),Fe=Pe.get("show"),oe=S&&isNaN(S.get(S.mapDimension("value"),Ue)),rt=S&&S.getItemLayout(Ue);if(b||oe&&(ht||Fe)||rt&&rt.showLabel){var fe=b?z.name:Ue,J;(!S||Ue>=0)&&(J=o);var Y=new p.Text({position:Ge(z.center.slice()),scale:[1/_.scale[0],1/_.scale[1]],z2:10,silent:!0});if(p.setLabelStyle(Y.style,Y.hoverStyle={},ke,Pe,{labelFetcher:J,labelDataIndex:fe,defaultText:z.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var $=[1/O[0],1/O[1]];p.updateProps(Y,{scale:$},o)}V.add(Y)}if(S)S.setItemGraphicEl(Ue,V);else{var G=o.getRegionModel(z.name);Q.eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:z.name,region:G&&G.option||{}}}var de=V.__regions||(V.__regions=[]);de.push(z),V.highDownSilentOnTouch=!!o.get("selectedMode"),p.setHoverStyle(V,he),C.add(V)}),this._updateController(o,c,h),s(this,o,C,h,g),e(o,C)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&d.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(o){var c=o.map;this._mapName!==c&&y.each(d.makeGraphic(c,this.uid),function(h){this._backgroundGroup.add(h)},this),this._mapName=c},_updateController:function(o,c,h){var g=o.coordinateSystem,v=this._controller,b=this._controllerHost;b.zoomLimit=o.get("scaleLimit"),b.zoom=g.getZoom(),v.enable(o.get("roam")||!1);var S=o.mainType;function E(){var C={type:"geoRoam",componentType:S};return C[S+"Id"]=o.id,C}v.off("pan").on("pan",function(C){this._mouseDownFlag=!1,x.updateViewOnPan(b,C.dx,C.dy),h.dispatchAction(y.extend(E(),{dx:C.dx,dy:C.dy}))},this),v.off("zoom").on("zoom",function(C){if(this._mouseDownFlag=!1,x.updateViewOnZoom(b,C.scale,C.originX,C.originY),h.dispatchAction(y.extend(E(),{zoom:C.scale,originX:C.originX,originY:C.originY})),this._updateGroup){var _=this.group.scale;this._regionsGroup.traverse(function(T){T.type==="text"&&T.attr("scale",[1/_[0],1/_[1]])})}},this),v.setPointerChecker(function(C,_,T){return g.getViewRectAfterRoam().contain(_,T)&&!m(C,h,o)})}};var n=l;R.exports=n},DFOY:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("PJYZ"),i=r.n(a),t=r("7W2i"),s=r.n(t),e=r("LQ03"),l=r.n(e),n=r("q1tI"),o=r.n(n),c=r("VTBJ"),h=r("1OyB"),g=r("vuIU"),v=r("JX7q"),b=r("Ji7U"),S=r("LK+K"),E=r("i8i4"),C=r.n(E),_=r("l4aY"),T=r("m+aA"),w=r("c+Xe"),O=r("zT1h"),I=r("QC+M"),k=r("TSYQ"),M=r.n(k);function U(Wt,Ot,Rt){return Rt?Wt[0]===Ot[0]:Wt[0]===Ot[0]&&Wt[1]===Ot[1]}function P(Wt,Ot,Rt){var Ut=Wt[Ot]||{};return Object(c.a)(Object(c.a)({},Ut),Rt)}function X(Wt,Ot,Rt,Ut){for(var Kt=Rt.points,Lt=Object.keys(Wt),cr=0;cr<Lt.length;cr+=1){var vr=Lt[cr];if(U(Wt[vr].points,Kt,Ut))return"".concat(Ot,"-placement-").concat(vr)}return""}var F=r("Ff2n"),j=r("xEkU"),K=r.n(j),z=r("9mu1"),V=r("rePB"),Q=r("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function ee(Wt,Ot){var Rt={};return Rt[Wt.toLowerCase()]=Ot.toLowerCase(),Rt["Webkit".concat(Wt)]="webkit".concat(Ot),Rt["Moz".concat(Wt)]="moz".concat(Ot),Rt["ms".concat(Wt)]="MS".concat(Ot),Rt["O".concat(Wt)]="o".concat(Ot.toLowerCase()),Rt}function se(Wt,Ot){var Rt={animationend:ee("Animation","AnimationEnd"),transitionend:ee("Transition","TransitionEnd")};return Wt&&("AnimationEvent"in Ot||delete Rt.animationend.animation,"TransitionEvent"in Ot||delete Rt.transitionend.transition),Rt}var ye=se(G,typeof window!="undefined"?window:{}),he={};if(G){var ke=document.createElement("div");he=ke.style}var Pe={};function Ue(Wt){if(Pe[Wt])return Pe[Wt];var Ot=ye[Wt];if(Ot)for(var Rt=Object.keys(Ot),Ut=Rt.length,Kt=0;Kt<Ut;Kt+=1){var Lt=Rt[Kt];if(Object.prototype.hasOwnProperty.call(Ot,Lt)&&Lt in he)return Pe[Wt]=Ot[Lt],Pe[Wt]}return""}var $e=Ue("animationend"),Ge=Ue("transitionend"),ht=!!($e&&Ge);function Fe(Wt,Ot){if(!Wt)return null;if(Object(Q.a)(Wt)==="object"){var Rt=Ot.replace(/-\w/g,function(Ut){return Ut[1].toUpperCase()});return Wt[Rt]}return"".concat(Wt,"-").concat(Ot)}var oe="none",rt="appear",fe="enter",J="leave";function Y(Wt){var Ot=Wt,Rt=!!n.forwardRef;Object(Q.a)(Wt)==="object"&&(Ot=Wt.transitionSupport,Rt="forwardRef"in Wt?Wt.forwardRef:Rt);function Ut(Lt){return!!(Lt.motionName&&Ot)}var Kt=function(Lt){Object(b.a)(vr,Lt);var cr=Object(S.a)(vr);function vr(){var yr;return Object(h.a)(this,vr),yr=cr.apply(this,arguments),yr.$cacheEle=null,yr.node=null,yr.raf=null,yr.destroyed=!1,yr.deadlineId=null,yr.state={status:oe,statusActive:!1,newStatus:!1,statusStyle:null},yr.onDomUpdate=function(){var Rr=yr.state,Vn=Rr.status,kn=Rr.newStatus,di=yr.props,pn=di.onAppearStart,Br=di.onEnterStart,_n=di.onLeaveStart,Xn=di.onAppearActive,$n=di.onEnterActive,oi=di.onLeaveActive,Ti=di.motionAppear,Ri=di.motionEnter,Di=di.motionLeave;if(!Ut(yr.props))return;var oa=yr.getElement();yr.$cacheEle!==oa&&(yr.removeEventListener(yr.$cacheEle),yr.addEventListener(oa),yr.$cacheEle=oa),kn&&Vn===rt&&Ti?yr.updateStatus(pn,null,null,function(){yr.updateActiveStatus(Xn,rt)}):kn&&Vn===fe&&Ri?yr.updateStatus(Br,null,null,function(){yr.updateActiveStatus($n,fe)}):kn&&Vn===J&&Di&&yr.updateStatus(_n,null,null,function(){yr.updateActiveStatus(oi,J)})},yr.onMotionEnd=function(Rr){if(Rr&&!Rr.deadline&&Rr.target!==yr.getElement())return;var Vn=yr.state,kn=Vn.status,di=Vn.statusActive,pn=yr.props,Br=pn.onAppearEnd,_n=pn.onEnterEnd,Xn=pn.onLeaveEnd;kn===rt&&di?yr.updateStatus(Br,{status:oe},Rr):kn===fe&&di?yr.updateStatus(_n,{status:oe},Rr):kn===J&&di&&yr.updateStatus(Xn,{status:oe},Rr)},yr.setNodeRef=function(Rr){var Vn=yr.props.internalRef;yr.node=Rr,Object(w.b)(Vn,Rr)},yr.getElement=function(){try{return Object(T.a)(yr.node||Object(v.a)(yr))}catch(Rr){return yr.$cacheEle}},yr.addEventListener=function(Rr){if(!Rr)return;Rr.addEventListener(Ge,yr.onMotionEnd),Rr.addEventListener($e,yr.onMotionEnd)},yr.removeEventListener=function(Rr){if(!Rr)return;Rr.removeEventListener(Ge,yr.onMotionEnd),Rr.removeEventListener($e,yr.onMotionEnd)},yr.updateStatus=function(Rr,Vn,kn,di){var pn=Rr?Rr(yr.getElement(),kn):null;if(pn===!1||yr.destroyed)return;var Br;di&&(Br=function(){yr.nextFrame(di)}),yr.setState(Object(c.a)({statusStyle:Object(Q.a)(pn)==="object"?pn:null,newStatus:!1},Vn),Br)},yr.updateActiveStatus=function(Rr,Vn){yr.nextFrame(function(){var kn=yr.state.status;if(kn!==Vn)return;var di=yr.props.motionDeadline;yr.updateStatus(Rr,{statusActive:!0}),di>0&&(yr.deadlineId=setTimeout(function(){yr.onMotionEnd({deadline:!0})},di))})},yr.nextFrame=function(Rr){yr.cancelNextFrame(),yr.raf=K()(Rr)},yr.cancelNextFrame=function(){yr.raf&&(K.a.cancel(yr.raf),yr.raf=null)},yr}return Object(g.a)(vr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Rr,Vn=this.state,kn=Vn.status,di=Vn.statusActive,pn=Vn.statusStyle,Br=this.props,_n=Br.children,Xn=Br.motionName,$n=Br.visible,oi=Br.removeOnLeave,Ti=Br.leavedClassName,Ri=Br.eventProps;return _n?kn===oe||!Ut(this.props)?$n?_n(Object(c.a)({},Ri),this.setNodeRef):oi?null:_n(Object(c.a)(Object(c.a)({},Ri),{},{className:Ti}),this.setNodeRef):_n(Object(c.a)(Object(c.a)({},Ri),{},{className:M()(Fe(Xn,kn),(Rr={},Object(V.a)(Rr,Fe(Xn,"".concat(kn,"-active")),di),Object(V.a)(Rr,Xn,typeof Xn=="string"),Rr)),style:pn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Rr,Vn){var kn=Vn.prevProps,di=Vn.status;if(!Ut(Rr))return{};var pn=Rr.visible,Br=Rr.motionAppear,_n=Rr.motionEnter,Xn=Rr.motionLeave,$n=Rr.motionLeaveImmediately,oi={prevProps:Rr};return(di===rt&&!Br||di===fe&&!_n||di===J&&!Xn)&&(oi.status=oe,oi.statusActive=!1,oi.newStatus=!1),!kn&&pn&&Br&&(oi.status=rt,oi.statusActive=!1,oi.newStatus=!0),kn&&!kn.visible&&pn&&_n&&(oi.status=fe,oi.statusActive=!1,oi.newStatus=!0),(kn&&kn.visible&&!pn&&Xn||!kn&&$n&&!pn&&Xn)&&(oi.status=J,oi.statusActive=!1,oi.newStatus=!0),oi}}]),vr}(n.Component);return Kt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Rt?n.forwardRef(function(Lt,cr){return n.createElement(Kt,Object.assign({internalRef:cr},Lt))}):Kt}var $=Y(ht),de="add",we="keep",Ce="remove",Se="removed";function le(Wt){var Ot;return Wt&&Object(Q.a)(Wt)==="object"&&"key"in Wt?Ot=Wt:Ot={key:Wt},Object(c.a)(Object(c.a)({},Ot),{},{key:String(Ot.key)})}function pe(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Wt.map(le)}function _e(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Rt=[],Ut=0,Kt=Ot.length,Lt=pe(Wt),cr=pe(Ot);Lt.forEach(function(Rr){for(var Vn=!1,kn=Ut;kn<Kt;kn+=1){var di=cr[kn];if(di.key===Rr.key){Ut<kn&&(Rt=Rt.concat(cr.slice(Ut,kn).map(function(pn){return Object(c.a)(Object(c.a)({},pn),{},{status:de})})),Ut=kn),Rt.push(Object(c.a)(Object(c.a)({},di),{},{status:we})),Ut+=1,Vn=!0;break}}Vn||Rt.push(Object(c.a)(Object(c.a)({},Rr),{},{status:Ce}))}),Ut<Kt&&(Rt=Rt.concat(cr.slice(Ut).map(function(Rr){return Object(c.a)(Object(c.a)({},Rr),{},{status:de})})));var vr={};Rt.forEach(function(Rr){var Vn=Rr.key;vr[Vn]=(vr[Vn]||0)+1});var yr=Object.keys(vr).filter(function(Rr){return vr[Rr]>1});return yr.forEach(function(Rr){Rt=Rt.filter(function(Vn){var kn=Vn.key,di=Vn.status;return kn!==Rr||di!==Ce}),Rt.forEach(function(Vn){Vn.key===Rr&&(Vn.status=we)})}),Rt}var tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gt(Wt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,Rt=function(Ut){Object(b.a)(Lt,Ut);var Kt=Object(S.a)(Lt);function Lt(){var cr;return Object(h.a)(this,Lt),cr=Kt.apply(this,arguments),cr.state={keyEntities:[]},cr.removeKey=function(vr){cr.setState(function(yr){var Rr=yr.keyEntities;return{keyEntities:Rr.map(function(Vn){return Vn.key!==vr?Vn:Object(c.a)(Object(c.a)({},Vn),{},{status:Se})})}})},cr}return Object(g.a)(Lt,[{key:"render",value:function(){var vr=this,yr=this.state.keyEntities,Rr=this.props,Vn=Rr.component,kn=Rr.children,di=Object(F.a)(Rr,["component","children"]),pn=Vn||n.Fragment,Br={};return tt.forEach(function(_n){Br[_n]=di[_n],delete di[_n]}),delete di.keys,n.createElement(pn,Object.assign({},di),yr.map(function(_n){var Xn=_n.status,$n=Object(F.a)(_n,["status"]),oi=Xn===de||Xn===we;return n.createElement(Ot,Object.assign({},Br,{key:$n.key,visible:oi,eventProps:$n,onLeaveEnd:function(){Br.onLeaveEnd&&Br.onLeaveEnd.apply(Br,arguments),vr.removeKey($n.key)}}),kn)}))}}],[{key:"getDerivedStateFromProps",value:function(vr,yr){var Rr=vr.keys,Vn=yr.keyEntities,kn=pe(Rr);if(!Wt)return{keyEntities:kn.map(function(Br){return Object(c.a)(Object(c.a)({},Br),{},{status:we})})};var di=_e(Vn,kn),pn=Vn.length;return{keyEntities:di.filter(function(Br){for(var _n=null,Xn=0;Xn<pn;Xn+=1){var $n=Vn[Xn];if($n.key===Br.key){_n=$n;break}}return!(_n&&_n.status===Se&&Br.status===Ce)})}}}]),Lt}(n.Component);return Rt.defaultProps={component:"div"},Rt}var ct=gt(ht),je=$,Zt=function(Ot,Rt){var Ut=Ot.prefixCls,Kt=Ot.className,Lt=Ot.style,cr=Ot.children,vr=Ot.onMouseEnter,yr=Ot.onMouseLeave,Rr=Ot.onMouseDown,Vn=Ot.onTouchStart,kn=cr;return n.Children.count(cr)>1&&(kn=n.createElement("div",{className:"".concat(Ut,"-content")},cr)),n.createElement("div",{ref:Rt,className:Kt,onMouseEnter:vr,onMouseLeave:yr,onMouseDown:Rr,onTouchStart:Vn,style:Lt},kn)},ut=n.forwardRef(Zt);ut.displayName="PopupInner";var Ht=ut;function dr(Wt){var Ot=Wt.prefixCls,Rt=Wt.motion,Ut=Wt.animation,Kt=Wt.transitionName;return Rt||(Ut?{motionName:"".concat(Ot,"-").concat(Ut)}:Kt?{motionName:Kt}:null)}function Vt(Wt){return Wt&&Wt.motionName}var Mt=function(Wt){Object(b.a)(Rt,Wt);var Ot=Object(S.a)(Rt);function Rt(){var Ut;return Object(h.a)(this,Rt),Ut=Ot.apply(this,arguments),Ut.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Ut.popupRef=o.a.createRef(),Ut.alignRef=o.a.createRef(),Ut.nextFrameState=null,Ut.nextFrameId=null,Ut.onAlign=function(Kt,Lt){var cr=Ut.state.status,vr=Ut.props,yr=vr.getClassNameFromAlign,Rr=vr.onAlign,Vn=yr(Lt);cr==="align"?Ut.setState({alignClassName:Vn,status:"aligned"},function(){Ut.alignRef.current.forceAlign()}):cr==="aligned"?(Ut.setState({alignClassName:Vn,status:"afterAlign"}),Rr(Kt,Lt)):Ut.setState({alignClassName:Vn})},Ut.onMotionEnd=function(){var Kt=Ut.props.visible;Ut.setState({status:Kt?"AfterMotion":"stable",inMotion:!1})},Ut.setStateOnNextFrame=function(Kt){Ut.cancelFrameState(),Ut.nextFrameState=Object(c.a)(Object(c.a)({},Ut.nextFrameState),Kt),Ut.nextFrameId=K()(function(){var Lt=Object(c.a)({},Ut.nextFrameState);Ut.nextFrameState=null,Ut.setState(Lt)})},Ut.getMotion=function(){return Object(c.a)({},dr(Ut.props))},Ut.getAlignTarget=function(){var Kt=Ut.props,Lt=Kt.point,cr=Kt.getRootDomNode;return Lt||cr},Ut.cancelFrameState=function(){K.a.cancel(Ut.nextFrameId)},Ut.renderPopupElement=function(){var Kt=Ut.state,Lt=Kt.status,cr=Kt.targetHeight,vr=Kt.targetWidth,yr=Kt.alignClassName,Rr=Ut.props,Vn=Rr.prefixCls,kn=Rr.className,di=Rr.style,pn=Rr.stretch,Br=Rr.visible,_n=Rr.align,Xn=Rr.destroyPopupOnHide,$n=Rr.onMouseEnter,oi=Rr.onMouseLeave,Ti=Rr.onMouseDown,Ri=Rr.onTouchStart,Di=Rr.children,oa=M()(Vn,kn,yr),ma="".concat(Vn,"-hidden"),aa={};pn&&(pn.indexOf("height")!==-1?aa.height=cr:pn.indexOf("minHeight")!==-1&&(aa.minHeight=cr),pn.indexOf("width")!==-1?aa.width=vr:pn.indexOf("minWidth")!==-1&&(aa.minWidth=vr));var ba=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},aa),Ut.getZIndexStyle()),di),{},{opacity:Lt==="stable"||!Br?void 0:0,pointerEvents:Lt==="stable"||!Br?void 0:"none"}),bi=Ut.getMotion(),Rn=Br;Br&&Lt!=="beforeMotion"&&Lt!=="motion"&&Lt!=="stable"&&(bi.motionAppear=!1,bi.motionEnter=!1,bi.motionLeave=!1),(Lt==="afterAlign"||Lt==="beforeMotion")&&(Rn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ra=bi==null?void 0:bi[ta];bi[ta]=function(){for(var Ir=arguments.length,Sr=new Array(Ir),Tn=0;Tn<Ir;Tn++)Sr[Tn]=arguments[Tn];ra==null||ra.apply(void 0,Sr),Ut.setState({inMotion:!0})}});var ji=!Br||Lt!=="align"&&Lt!=="aligned"&&Lt!=="stable",ha=!0;return Lt==="stable"&&(ha=Br),Xn&&!ha?null:o.a.createElement(je,Object.assign({visible:Rn},bi,{removeOnLeave:!1,onEnterEnd:Ut.onMotionEnd,onLeaveEnd:Ut.onMotionEnd,leavedClassName:ma}),function(ta,ra){var Ir=ta.style,Sr=ta.className;return o.a.createElement(z.a,{target:Ut.getAlignTarget(),key:"popup",ref:Ut.alignRef,monitorWindowResize:!0,disabled:ji,align:_n,onAlign:Ut.onAlign},o.a.createElement(Ht,{prefixCls:Vn,className:M()(oa,Sr),ref:Object(w.a)(ra,Ut.popupRef),onMouseEnter:$n,onMouseLeave:oi,onMouseDown:Ti,onTouchStart:Ri,style:Object(c.a)(Object(c.a)({},ba),Ir)},Di))})},Ut.renderMaskElement=function(){var Kt=Ut.props,Lt=Kt.mask,cr=Kt.maskMotion,vr=Kt.maskTransitionName,yr=Kt.maskAnimation,Rr=Kt.prefixCls,Vn=Kt.visible;if(!Lt)return null;var kn={};return cr&&cr.motionName&&(kn=Object(c.a)({motionAppear:!0},dr({motion:cr,prefixCls:Rr,transitionName:vr,animation:yr}))),o.a.createElement(je,Object.assign({},kn,{visible:Vn,removeOnLeave:!0}),function(di){var pn=di.className;return o.a.createElement("div",{style:Ut.getZIndexStyle(),key:"mask",className:M()("".concat(Rr,"-mask"),pn)})})},Ut}return Object(g.a)(Rt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Kt=this.state.status,Lt=this.props,cr=Lt.getRootDomNode,vr=Lt.visible,yr=Lt.stretch;if(this.cancelFrameState(),vr&&Kt!=="stable")switch(Kt){case null:{this.setStateOnNextFrame({status:yr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Vt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Rr=["measure","align",null,"beforeMotion","motion"],Vn=Rr.indexOf(Kt),kn=Rr[Vn+1];Vn!==-1&&kn&&this.setStateOnNextFrame({status:kn})}}if(Kt==="measure"){var di=cr();di&&this.setStateOnNextFrame({targetHeight:di.offsetHeight,targetWidth:di.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Kt=this.props.zIndex;return{zIndex:Kt}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Kt,Lt){var cr=Kt.visible,vr=Object(F.a)(Kt,["visible"]),yr=Lt.prevVisible,Rr=Lt.status,Vn=Lt.inMotion,kn={prevVisible:cr,status:Rr},di=dr(vr);return yr===null&&cr===!1?(kn.status="stable",kn.inMotion=!1):cr!==yr&&(kn.inMotion=!1,cr||Vt(di)&&Vn?kn.status=null:kn.status="stable",cr&&(kn.alignClassName=null)),kn}}]),Rt}(n.Component),Gt=Mt,Ve=n.createContext(null),me=Ve;function te(){}function Ze(){return""}function Xe(){return window.document}var ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function St(Wt){var Ot=function(Rt){Object(b.a)(Kt,Rt);var Ut=Object(S.a)(Kt);function Kt(Lt){var cr;Object(h.a)(this,Kt),cr=Ut.call(this,Lt),cr.popupRef=o.a.createRef(),cr.triggerRef=o.a.createRef(),cr.onMouseEnter=function(yr){var Rr=cr.props.mouseEnterDelay;cr.fireEvents("onMouseEnter",yr),cr.delaySetPopupVisible(!0,Rr,Rr?null:yr)},cr.onMouseMove=function(yr){cr.fireEvents("onMouseMove",yr),cr.setPoint(yr)},cr.onMouseLeave=function(yr){cr.fireEvents("onMouseLeave",yr),cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onPopupMouseEnter=function(){cr.clearDelayTimer()},cr.onPopupMouseLeave=function(yr){if(yr.relatedTarget&&!yr.relatedTarget.setTimeout&&cr.popupRef.current&&cr.popupRef.current.popupRef.current&&Object(_.a)(cr.popupRef.current.popupRef.current,yr.relatedTarget))return;cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onFocus=function(yr){cr.fireEvents("onFocus",yr),cr.clearDelayTimer(),cr.isFocusToShow()&&(cr.focusTime=Date.now(),cr.delaySetPopupVisible(!0,cr.props.focusDelay))},cr.onMouseDown=function(yr){cr.fireEvents("onMouseDown",yr),cr.preClickTime=Date.now()},cr.onTouchStart=function(yr){cr.fireEvents("onTouchStart",yr),cr.preTouchTime=Date.now()},cr.onBlur=function(yr){cr.fireEvents("onBlur",yr),cr.clearDelayTimer(),cr.isBlurToHide()&&cr.delaySetPopupVisible(!1,cr.props.blurDelay)},cr.onContextMenu=function(yr){yr.preventDefault(),cr.fireEvents("onContextMenu",yr),cr.setPopupVisible(!0,yr)},cr.onContextMenuClose=function(){cr.isContextMenuToShow()&&cr.close()},cr.onClick=function(yr){if(cr.fireEvents("onClick",yr),cr.focusTime){var Rr;if(cr.preClickTime&&cr.preTouchTime?Rr=Math.min(cr.preClickTime,cr.preTouchTime):cr.preClickTime?Rr=cr.preClickTime:cr.preTouchTime&&(Rr=cr.preTouchTime),Math.abs(Rr-cr.focusTime)<20)return;cr.focusTime=0}cr.preClickTime=0,cr.preTouchTime=0,cr.isClickToShow()&&(cr.isClickToHide()||cr.isBlurToHide())&&yr&&yr.preventDefault&&yr.preventDefault();var Vn=!cr.state.popupVisible;(cr.isClickToHide()&&!Vn||Vn&&cr.isClickToShow())&&cr.setPopupVisible(!cr.state.popupVisible,yr)},cr.onPopupMouseDown=function(){if(cr.hasPopupMouseDown=!0,clearTimeout(cr.mouseDownTimeout),cr.mouseDownTimeout=window.setTimeout(function(){cr.hasPopupMouseDown=!1},0),cr.context){var yr;(yr=cr.context).onPopupMouseDown.apply(yr,arguments)}},cr.onDocumentClick=function(yr){if(cr.props.mask&&!cr.props.maskClosable)return;var Rr=yr.target,Vn=cr.getRootDomNode(),kn=cr.getPopupDomNode();!Object(_.a)(Vn,Rr)&&!Object(_.a)(kn,Rr)&&!cr.hasPopupMouseDown&&cr.close()},cr.getRootDomNode=function(){var yr=cr.props.getTriggerDOMNode;if(yr)return yr(cr.triggerRef.current);try{var Rr=Object(T.a)(cr.triggerRef.current);if(Rr)return Rr}catch(Vn){}return C.a.findDOMNode(Object(v.a)(cr))},cr.getPopupClassNameFromAlign=function(yr){var Rr=[],Vn=cr.props,kn=Vn.popupPlacement,di=Vn.builtinPlacements,pn=Vn.prefixCls,Br=Vn.alignPoint,_n=Vn.getPopupClassNameFromAlign;return kn&&di&&Rr.push(X(di,pn,yr,Br)),_n&&Rr.push(_n(yr)),Rr.join(" ")},cr.getComponent=function(){var yr=cr.props,Rr=yr.prefixCls,Vn=yr.destroyPopupOnHide,kn=yr.popupClassName,di=yr.onPopupAlign,pn=yr.popupMotion,Br=yr.popupAnimation,_n=yr.popupTransitionName,Xn=yr.popupStyle,$n=yr.mask,oi=yr.maskAnimation,Ti=yr.maskTransitionName,Ri=yr.maskMotion,Di=yr.zIndex,oa=yr.popup,ma=yr.stretch,aa=yr.alignPoint,ba=cr.state,bi=ba.popupVisible,Rn=ba.point,ji=cr.getPopupAlign(),ha={};return cr.isMouseEnterToShow()&&(ha.onMouseEnter=cr.onPopupMouseEnter),cr.isMouseLeaveToHide()&&(ha.onMouseLeave=cr.onPopupMouseLeave),ha.onMouseDown=cr.onPopupMouseDown,ha.onTouchStart=cr.onPopupMouseDown,o.a.createElement(Gt,Object.assign({prefixCls:Rr,destroyPopupOnHide:Vn,visible:bi,point:aa&&Rn,className:kn,align:ji,onAlign:di,animation:Br,getClassNameFromAlign:cr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:cr.getRootDomNode,style:Xn,mask:$n,zIndex:Di,transitionName:_n,maskAnimation:oi,maskTransitionName:Ti,maskMotion:Ri,ref:cr.popupRef,motion:pn}),typeof oa=="function"?oa():oa)},cr.getContainer=function(){var yr=Object(v.a)(cr),Rr=yr.props,Vn=document.createElement("div");Vn.style.position="absolute",Vn.style.top="0",Vn.style.left="0",Vn.style.width="100%";var kn=Rr.getPopupContainer?Rr.getPopupContainer(cr.getRootDomNode()):Rr.getDocument().body;return kn.appendChild(Vn),Vn},cr.setPoint=function(yr){var Rr=cr.props.alignPoint;if(!Rr||!yr)return;cr.setState({point:{pageX:yr.pageX,pageY:yr.pageY}})},cr.handlePortalUpdate=function(){cr.state.prevPopupVisible!==cr.state.popupVisible&&cr.props.afterPopupVisibleChange(cr.state.popupVisible)};var vr;return"popupVisible"in Lt?vr=!!Lt.popupVisible:vr=!!Lt.defaultPopupVisible,cr.state={prevPopupVisible:vr,popupVisible:vr},ue.forEach(function(yr){cr["fire".concat(yr)]=function(Rr){cr.fireEvents(yr,Rr)}}),cr}return Object(g.a)(Kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var cr=this.props,vr=this.state;if(vr.popupVisible){var yr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yr=cr.getDocument(),this.clickOutsideHandler=Object(O.a)(yr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yr=yr||cr.getDocument(),this.touchOutsideHandler=Object(O.a)(yr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yr=yr||cr.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(yr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var cr=this.props,vr=cr.popupPlacement,yr=cr.popupAlign,Rr=cr.builtinPlacements;return vr&&Rr?P(Rr,vr,yr):yr}},{key:"setPopupVisible",value:function(cr,vr){var yr=this.props.alignPoint,Rr=this.state.popupVisible;this.clearDelayTimer(),Rr!==cr&&("popupVisible"in this.props||this.setState({popupVisible:cr,prevPopupVisible:Rr}),this.props.onPopupVisibleChange(cr)),yr&&vr&&this.setPoint(vr)}},{key:"delaySetPopupVisible",value:function(cr,vr,yr){var Rr=this,Vn=vr*1e3;if(this.clearDelayTimer(),Vn){var kn=yr?{pageX:yr.pageX,pageY:yr.pageY}:null;this.delayTimer=window.setTimeout(function(){Rr.setPopupVisible(cr,kn),Rr.clearDelayTimer()},Vn)}else this.setPopupVisible(cr,yr)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(cr){var vr=this.props.children.props,yr=this.props;return vr[cr]&&yr[cr]?this["fire".concat(cr)]:vr[cr]||yr[cr]}},{key:"isClickToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("contextMenu")!==-1||yr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("hover")!==-1||yr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("hover")!==-1||yr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("focus")!==-1||yr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("focus")!==-1||yr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(cr,vr){var yr=this.props.children.props[cr];yr&&yr(vr);var Rr=this.props[cr];Rr&&Rr(vr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var cr=this.state.popupVisible,vr=this.props,yr=vr.children,Rr=vr.forceRender,Vn=vr.alignPoint,kn=vr.className,di=vr.autoDestroy,pn=o.a.Children.only(yr),Br={key:"trigger"};this.isContextMenuToShow()?Br.onContextMenu=this.onContextMenu:Br.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Br.onClick=this.onClick,Br.onMouseDown=this.onMouseDown,Br.onTouchStart=this.onTouchStart):(Br.onClick=this.createTwoChains("onClick"),Br.onMouseDown=this.createTwoChains("onMouseDown"),Br.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Br.onMouseEnter=this.onMouseEnter,Vn&&(Br.onMouseMove=this.onMouseMove)):Br.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Br.onMouseLeave=this.onMouseLeave:Br.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Br.onFocus=this.onFocus,Br.onBlur=this.onBlur):(Br.onFocus=this.createTwoChains("onFocus"),Br.onBlur=this.createTwoChains("onBlur"));var _n=M()(pn&&pn.props&&pn.props.className,kn);_n&&(Br.className=_n);var Xn=Object(c.a)({},Br);Object(w.c)(pn)&&(Xn.ref=Object(w.a)(this.triggerRef,pn.ref));var $n=o.a.cloneElement(pn,Xn),oi;return(cr||this.popupRef.current||Rr)&&(oi=o.a.createElement(Wt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!cr&&di&&(oi=null),o.a.createElement(me.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},$n,oi)}}],[{key:"getDerivedStateFromProps",value:function(cr,vr){var yr=cr.popupVisible,Rr={};return yr!==void 0&&vr.popupVisible!==yr&&(Rr.popupVisible=yr,Rr.prevPopupVisible=vr.popupVisible),Rr}}]),Kt}(o.a.Component);return Ot.contextType=me,Ot.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ze,getDocument:Xe,onPopupVisibleChange:te,afterPopupVisibleChange:te,onPopupAlign:te,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ot}var Qt=St(I.a),dt=r("2W6z"),Jt=r.n(dt),$t=r("4IlW"),tn=r("uK0f"),kt=r.n(tn);function tr(Wt,Ot){if(Wt===Ot)return!0;if(!Wt||!Ot)return!1;var Rt=Wt.length;if(Ot.length!==Rt)return!1;for(var Ut=0;Ut<Rt;Ut++)if(Wt[Ut]!==Ot[Ut])return!1;return!0}function Bt(Wt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bt=function(Rt){return typeof Rt}:Bt=function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},Bt(Wt)}function ft(Wt,Ot){if(!(Wt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function it(Wt,Ot){for(var Rt=0;Rt<Ot.length;Rt++){var Ut=Ot[Rt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(Wt,Ut.key,Ut)}}function Or(Wt,Ot,Rt){return Ot&&it(Wt.prototype,Ot),Rt&&it(Wt,Rt),Wt}function an(Wt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Ot&&En(Wt,Ot)}function En(Wt,Ot){return En=Object.setPrototypeOf||function(Ut,Kt){return Ut.__proto__=Kt,Ut},En(Wt,Ot)}function Bn(Wt){var Ot=Mn();return function(){var Rt=Xt(Wt),Ut;if(Ot){var Kt=Xt(this).constructor;Ut=Reflect.construct(Rt,arguments,Kt)}else Ut=Rt.apply(this,arguments);return vi(this,Ut)}}function vi(Wt,Ot){return Ot&&(Bt(Ot)==="object"||typeof Ot=="function")?Ot:Ln(Wt)}function Ln(Wt){if(Wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt}function Mn(){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(Wt){return!1}}function Xt(Wt){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(Rt){return Rt.__proto__||Object.getPrototypeOf(Rt)},Xt(Wt)}var wt=function(){var Wt=function(Ot){an(Ut,Ot);var Rt=Bn(Ut);function Ut(){var Kt;return ft(this,Ut),Kt=Rt.apply(this,arguments),Kt.menuItems={},Kt.saveMenuItem=function(Lt){return function(cr){Kt.menuItems[Lt]=cr}},Kt}return Or(Ut,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Lt){!Lt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Lt){var cr=this.props,vr=cr.fieldNames,yr=cr.defaultFieldNames;return vr[Lt]||yr[Lt]}},{key:"getOption",value:function(Lt,cr){var vr=this.props,yr=vr.prefixCls,Rr=vr.expandTrigger,Vn=vr.expandIcon,kn=vr.loadingIcon,di=this.props.onSelect.bind(this,Lt,cr),pn=this.props.onItemDoubleClick.bind(this,Lt,cr),Br={onClick:di,onDoubleClick:pn},_n="".concat(yr,"-menu-item"),Xn=null,$n=Lt[this.getFieldName("children")]&&Lt[this.getFieldName("children")].length>0;($n||Lt.isLeaf===!1)&&(_n+=" ".concat(yr,"-menu-item-expand"),Lt.loading||(Xn=n.createElement("span",{className:"".concat(yr,"-menu-item-expand-icon")},Vn))),Rr==="hover"&&($n||Lt.isLeaf===!1)&&(Br={onMouseEnter:this.delayOnSelect.bind(this,di),onMouseLeave:this.delayOnSelect.bind(this),onClick:di}),this.isActiveOption(Lt,cr)&&(_n+=" ".concat(yr,"-menu-item-active"),Br.ref=this.saveMenuItem(cr)),Lt.disabled&&(_n+=" ".concat(yr,"-menu-item-disabled"));var oi=null;Lt.loading&&(_n+=" ".concat(yr,"-menu-item-loading"),oi=kn||null);var Ti="";return"title"in Lt?Ti=Lt.title:typeof Lt[this.getFieldName("label")]=="string"&&(Ti=Lt[this.getFieldName("label")]),n.createElement("li",Object.assign({key:Lt[this.getFieldName("value")],className:_n,title:Ti},Br,{role:"menuitem",onMouseDown:function(Di){return Di.preventDefault()}}),Lt[this.getFieldName("label")],Xn,oi)}},{key:"getActiveOptions",value:function(Lt){var cr=this,vr=this.props.options,yr=Lt||this.props.activeValue;return kt()(vr,function(Rr,Vn){return Rr[cr.getFieldName("value")]===yr[Vn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Lt=this,cr=this.props.options,vr=this.getActiveOptions().map(function(yr){return yr[Lt.getFieldName("children")]}).filter(function(yr){return!!yr});return vr.unshift(cr),vr}},{key:"delayOnSelect",value:function(Lt){for(var cr=this,vr=arguments.length,yr=new Array(vr>1?vr-1:0),Rr=1;Rr<vr;Rr++)yr[Rr-1]=arguments[Rr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Lt=="function"&&(this.delayTimer=window.setTimeout(function(){Lt(yr),cr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Lt=this.getShowOptions().length,cr=0;cr<Lt;cr++){var vr=this.menuItems[cr];vr&&vr.parentElement&&(vr.parentElement.scrollTop=vr.offsetTop)}}},{key:"isActiveOption",value:function(Lt,cr){var vr=this.props.activeValue,yr=vr===void 0?[]:vr;return yr[cr]===Lt[this.getFieldName("value")]}},{key:"render",value:function(){var Lt=this,cr=this.props,vr=cr.prefixCls,yr=cr.dropdownMenuColumnStyle;return n.createElement("div",null,this.getShowOptions().map(function(Rr,Vn){return n.createElement("ul",{className:"".concat(vr,"-menu"),key:Vn,style:yr},Rr.map(function(kn){return Lt.getOption(kn,Vn)}))}))}}]),Ut}(n.Component);return Wt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Wt}(),De=wt,Re={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},Me=Re;function nt(Wt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(Rt){return typeof Rt}:nt=function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},nt(Wt)}function yt(Wt,Ot){if(Wt==null)return{};var Rt=sr(Wt,Ot),Ut,Kt;if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(Wt);for(Kt=0;Kt<Lt.length;Kt++){if(Ut=Lt[Kt],Ot.indexOf(Ut)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Wt,Ut))continue;Rt[Ut]=Wt[Ut]}}return Rt}function sr(Wt,Ot){if(Wt==null)return{};var Rt={},Ut=Object.keys(Wt),Kt,Lt;for(Lt=0;Lt<Ut.length;Lt++){if(Kt=Ut[Lt],Ot.indexOf(Kt)>=0)continue;Rt[Kt]=Wt[Kt]}return Rt}function Nr(Wt){return ur(Wt)||Jn(Wt)||Yn(Wt)||mn()}function mn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(Wt,Ot){if(!Wt)return;if(typeof Wt=="string")return Tt(Wt,Ot);var Rt=Object.prototype.toString.call(Wt).slice(8,-1);if(Rt==="Object"&&Wt.constructor&&(Rt=Wt.constructor.name),Rt==="Map"||Rt==="Set")return Array.from(Wt);if(Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt))return Tt(Wt,Ot)}function Jn(Wt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Wt))return Array.from(Wt)}function ur(Wt){if(Array.isArray(Wt))return Tt(Wt)}function Tt(Wt,Ot){(Ot==null||Ot>Wt.length)&&(Ot=Wt.length);for(var Rt=0,Ut=new Array(Ot);Rt<Ot;Rt++)Ut[Rt]=Wt[Rt];return Ut}function Ct(Wt,Ot){if(!(Wt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function Ar(Wt,Ot){for(var Rt=0;Rt<Ot.length;Rt++){var Ut=Ot[Rt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(Wt,Ut.key,Ut)}}function er(Wt,Ot,Rt){return Ot&&Ar(Wt.prototype,Ot),Rt&&Ar(Wt,Rt),Wt}function Ft(Wt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Ot&&ir(Wt,Ot)}function ir(Wt,Ot){return ir=Object.setPrototypeOf||function(Ut,Kt){return Ut.__proto__=Kt,Ut},ir(Wt,Ot)}function Pt(Wt){var Ot=Pr();return function(){var Rt=Mr(Wt),Ut;if(Ot){var Kt=Mr(this).constructor;Ut=Reflect.construct(Rt,arguments,Kt)}else Ut=Rt.apply(this,arguments);return rr(this,Ut)}}function rr(Wt,Ot){return Ot&&(nt(Ot)==="object"||typeof Ot=="function")?Ot:Yr(Wt)}function Yr(Wt){if(Wt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt}function Pr(){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(Wt){return!1}}function Mr(Wt){return Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(Rt){return Rt.__proto__||Object.getPrototypeOf(Rt)},Mr(Wt)}var fn=function(){var Wt=function(Ot){Ft(Ut,Ot);var Rt=Pt(Ut);function Ut(Kt){var Lt;Ct(this,Ut),Lt=Rt.call(this,Kt),Lt.setPopupVisible=function(vr){var yr=Lt.state.value;"popupVisible"in Lt.props||Lt.setState({popupVisible:vr}),vr&&!Lt.state.popupVisible&&Lt.setState({activeValue:yr}),Lt.props.onPopupVisibleChange(vr)},Lt.handleChange=function(vr,yr,Rr){var Vn=yr.visible;(Rr.type!=="keydown"||Rr.keyCode===$t.a.ENTER)&&(Lt.props.onChange(vr.map(function(kn){return kn[Lt.getFieldName("value")]}),vr),Lt.setPopupVisible(Vn))},Lt.handlePopupVisibleChange=function(vr){Lt.setPopupVisible(vr)},Lt.handleMenuSelect=function(vr,yr,Rr){var Vn=Lt.trigger.getRootDomNode();Vn&&Vn.focus&&Vn.focus();var kn=Lt.props,di=kn.changeOnSelect,pn=kn.loadData,Br=kn.expandTrigger;if(!vr||vr.disabled)return;var _n=Lt.state.activeValue;_n=_n.slice(0,yr+1),_n[yr]=vr[Lt.getFieldName("value")];var Xn=Lt.getActiveOptions(_n);if(vr.isLeaf===!1&&!vr[Lt.getFieldName("children")]&&pn){di&&Lt.handleChange(Xn,{visible:!0},Rr),Lt.setState({activeValue:_n}),pn(Xn);return}var $n={};!vr[Lt.getFieldName("children")]||!vr[Lt.getFieldName("children")].length?(Lt.handleChange(Xn,{visible:!1},Rr),$n.value=_n):di&&(Rr.type==="click"||Rr.type==="keydown")&&(Br==="hover"?Lt.handleChange(Xn,{visible:!1},Rr):Lt.handleChange(Xn,{visible:!0},Rr),$n.value=_n),$n.activeValue=_n,("value"in Lt.props||Rr.type==="keydown"&&Rr.keyCode!==$t.a.ENTER)&&delete $n.value,Lt.setState($n)},Lt.handleItemDoubleClick=function(){var vr=Lt.props.changeOnSelect;vr&&Lt.setPopupVisible(!1)},Lt.handleKeyDown=function(vr){var yr=Lt.props.children;if(yr&&yr.props.onKeyDown){yr.props.onKeyDown(vr);return}var Rr=Nr(Lt.state.activeValue),Vn=Rr.length-1<0?0:Rr.length-1,kn=Lt.getCurrentLevelOptions(),di=kn.map(function(Xn){return Xn[Lt.getFieldName("value")]}).indexOf(Rr[Vn]);if(vr.keyCode!==$t.a.DOWN&&vr.keyCode!==$t.a.UP&&vr.keyCode!==$t.a.LEFT&&vr.keyCode!==$t.a.RIGHT&&vr.keyCode!==$t.a.ENTER&&vr.keyCode!==$t.a.SPACE&&vr.keyCode!==$t.a.BACKSPACE&&vr.keyCode!==$t.a.ESC&&vr.keyCode!==$t.a.TAB)return;if(!Lt.state.popupVisible&&vr.keyCode!==$t.a.BACKSPACE&&vr.keyCode!==$t.a.LEFT&&vr.keyCode!==$t.a.RIGHT&&vr.keyCode!==$t.a.ESC&&vr.keyCode!==$t.a.TAB){Lt.setPopupVisible(!0);return}if(vr.keyCode===$t.a.DOWN||vr.keyCode===$t.a.UP){vr.preventDefault();var pn=di;pn!==-1?vr.keyCode===$t.a.DOWN?(pn+=1,pn=pn>=kn.length?0:pn):(pn-=1,pn=pn<0?kn.length-1:pn):pn=0,Rr[Vn]=kn[pn][Lt.getFieldName("value")]}else if(vr.keyCode===$t.a.LEFT||vr.keyCode===$t.a.BACKSPACE)vr.preventDefault(),Rr.splice(Rr.length-1,1);else if(vr.keyCode===$t.a.RIGHT)vr.preventDefault(),kn[di]&&kn[di][Lt.getFieldName("children")]&&Rr.push(kn[di][Lt.getFieldName("children")][0][Lt.getFieldName("value")]);else if(vr.keyCode===$t.a.ESC||vr.keyCode===$t.a.TAB){Lt.setPopupVisible(!1);return}(!Rr||Rr.length===0)&&Lt.setPopupVisible(!1);var Br=Lt.getActiveOptions(Rr),_n=Br[Br.length-1];Lt.handleMenuSelect(_n,Br.length-1,vr),Lt.props.onKeyDown&&Lt.props.onKeyDown(vr)},Lt.saveTrigger=function(vr){Lt.trigger=vr};var cr=[];return"value"in Kt?cr=Kt.value||[]:"defaultValue"in Kt&&(cr=Kt.defaultValue||[]),Jt()(!("filedNames"in Kt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Lt.state={popupVisible:Kt.popupVisible,activeValue:cr,value:cr,prevProps:Kt},Lt.defaultFieldNames={label:"label",value:"value",children:"children"},Lt}return er(Ut,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Lt){var cr=this.defaultFieldNames,vr=this.props,yr=vr.fieldNames,Rr=vr.filedNames;return"filedNames"in this.props?Rr[Lt]||cr[Lt]:yr[Lt]||cr[Lt]}},{key:"getFieldNames",value:function(){var Lt=this.props,cr=Lt.fieldNames,vr=Lt.filedNames;return"filedNames"in this.props?vr:cr}},{key:"getCurrentLevelOptions",value:function(){var Lt=this,cr=this.props.options,vr=cr===void 0?[]:cr,yr=this.state.activeValue,Rr=yr===void 0?[]:yr,Vn=kt()(vr,function(kn,di){return kn[Lt.getFieldName("value")]===Rr[di]},{childrenKeyName:this.getFieldName("children")});return Vn[Vn.length-2]?Vn[Vn.length-2][this.getFieldName("children")]:Nr(vr).filter(function(kn){return!kn.disabled})}},{key:"getActiveOptions",value:function(Lt){var cr=this;return kt()(this.props.options||[],function(vr,yr){return vr[cr.getFieldName("value")]===Lt[yr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Lt=this.props,cr=Lt.prefixCls,vr=Lt.transitionName,yr=Lt.popupClassName,Rr=Lt.options,Vn=Rr===void 0?[]:Rr,kn=Lt.disabled,di=Lt.builtinPlacements,pn=Lt.popupPlacement,Br=Lt.children,_n=Lt.dropdownRender,Xn=yt(Lt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),$n=n.createElement("div",null),oi="";Vn&&Vn.length>0?$n=n.createElement(De,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):oi=" ".concat(cr,"-menus-empty");var Ti=$n;return _n&&(Ti=_n($n)),n.createElement(Qt,Object.assign({ref:this.saveTrigger},Xn,{popupPlacement:pn,builtinPlacements:di,popupTransitionName:vr,action:kn?[]:["click"],popupVisible:kn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(cr,"-menus"),popupClassName:yr+oi,popup:Ti}),n.cloneElement(Br,{onKeyDown:this.handleKeyDown,tabIndex:kn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,cr){var vr=cr.prevProps,yr=vr===void 0?{}:vr,Rr={prevProps:Lt};return"value"in Lt&&!tr(yr.value,Lt.value)&&(Rr.value=Lt.value||[],"loadData"in Lt||(Rr.activeValue=Lt.value||[])),"popupVisible"in Lt&&(Rr.popupVisible=Lt.popupVisible),Rr}}]),Ut}(n.Component);return Wt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Me,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Wt}(),wn=fn,ai=wn,ri=r("BGR+"),gi=r("f0uV"),Ii=r.n(gi),Mi=r("Ved0"),Qi=r.n(Mi),ot=r("nyS3"),Ne=r.n(ot),He=r("cpPs"),Ye=r.n(He),at=r("FRVV"),qe=r.n(at),lt=r("5rEg"),Et=r("H84U"),At=r("YMnH"),fr=r("uaoM"),Jr=r("3Nzz"),Vr=r("0n0R"),dn=function(Wt,Ot){var Rt={};for(var Ut in Wt)Object.prototype.hasOwnProperty.call(Wt,Ut)&&Ot.indexOf(Ut)<0&&(Rt[Ut]=Wt[Ut]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Ut=Object.getOwnPropertySymbols(Wt);Kt<Ut.length;Kt++)Ot.indexOf(Ut[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ut[Kt])&&(Rt[Ut[Kt]]=Wt[Ut[Kt]]);return Rt},gr=50;function Wn(Wt,Ot,Rt){return Wt.split(Ot).map(function(Ut,Kt){return Kt===0?Ut:[n.createElement("span",{className:"".concat(Rt,"-menu-item-keyword"),key:"seperator"},Ot),Ut]})}function kr(Wt,Ot,Rt){return Ot.some(function(Ut){return Ut[Rt.label].indexOf(Wt)>-1})}function Fn(Wt,Ot,Rt,Ut){return Ot.map(function(Kt,Lt){var cr=Kt[Ut.label],vr=cr.indexOf(Wt)>-1?Wn(cr,Wt,Rt):cr;return Lt===0?vr:[" / ",vr]})}function vn(Wt,Ot,Rt,Ut){function Kt(Lt){return Lt[Ut.label].indexOf(Rt)>-1}return Wt.findIndex(Kt)-Ot.findIndex(Kt)}function $r(Wt){var Ot=Wt.fieldNames;return Ot}function ei(Wt){var Ot=$r(Wt)||{},Rt={children:Ot.children||"children",label:Ot.label||"label",value:Ot.value||"value"};return Rt}function fi(Wt,Ot){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ut=ei(Ot),Kt=[],Lt=Ut.children;return Wt.forEach(function(cr){var vr=Rt.concat(cr);(Ot.changeOnSelect||!cr[Lt]||!cr[Lt].length)&&Kt.push(vr),cr[Lt]&&(Kt=Kt.concat(fi(cr[Lt],Ot,vr)))}),Kt}var Pi=function(Ot){return Ot.join(" / ")};function Zr(Wt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Wt||[]).forEach(function(Rt){var Ut=Ot.value||"value";Object(fr.a)(Ut in Rt,"Cascader","Not found `value` in `options`."),Zr(Rt[Ot.children||"children"],Ot)})}var Sn=function(Wt){s()(Rt,Wt);var Ot=l()(Rt);function Rt(Ut){var Kt;return p()(this,Rt),Kt=Ot.call(this,Ut),Kt.cachedOptions=[],Kt.setValue=function(Lt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Kt.props||Kt.setState({value:Lt});var vr=Kt.props.onChange;vr&&vr(Lt,cr)},Kt.saveInput=function(Lt){Kt.input=Lt},Kt.handleChange=function(Lt,cr){if(Kt.setState({inputValue:""}),cr[0].__IS_FILTERED_OPTION){var vr=Lt[0],yr=cr[0].path;Kt.setValue(vr,yr);return}Kt.setValue(Lt,cr)},Kt.handlePopupVisibleChange=function(Lt){"popupVisible"in Kt.props||Kt.setState(function(vr){return{popupVisible:Lt,inputFocused:Lt,inputValue:Lt?vr.inputValue:""}});var cr=Kt.props.onPopupVisibleChange;cr&&cr(Lt)},Kt.handleInputBlur=function(){Kt.setState({inputFocused:!1})},Kt.handleInputClick=function(Lt){var cr=Kt.state,vr=cr.inputFocused,yr=cr.popupVisible;(vr||yr)&&Lt.stopPropagation()},Kt.handleKeyDown=function(Lt){(Lt.keyCode===$t.a.BACKSPACE||Lt.keyCode===$t.a.SPACE)&&Lt.stopPropagation()},Kt.handleInputChange=function(Lt){var cr=Kt.state.popupVisible,vr=Lt.target.value;cr||Kt.handlePopupVisibleChange(!0),Kt.setState({inputValue:vr})},Kt.clearSelection=function(Lt){var cr=Kt.state.inputValue;Lt.preventDefault(),Lt.stopPropagation(),cr?Kt.setState({inputValue:""}):(Kt.handlePopupVisibleChange(!1),Kt.clearSelectionTimeout=setTimeout(function(){Kt.setValue([])},200))},Kt.renderCascader=function(Lt,cr){var vr=Lt.getPopupContainer,yr=Lt.getPrefixCls,Rr=Lt.renderEmpty,Vn=Lt.direction;return n.createElement(Jr.b.Consumer,null,function(kn){var di,pn,Br,_n,Xn=i()(Kt),$n=Xn.props,oi=Xn.state,Ti=$n.prefixCls,Ri=$n.inputPrefixCls,Di=$n.children,oa=$n.placeholder,ma=oa===void 0?cr.placeholder||"Please select":oa,aa=$n.size,ba=$n.disabled,bi=$n.className,Rn=$n.style,ji=$n.allowClear,ha=$n.showSearch,ta=ha===void 0?!1:ha,ra=$n.suffixIcon,Ir=$n.expandIcon,Sr=$n.notFoundContent,Tn=$n.popupClassName,pr=$n.bordered,Dr=$n.dropdownRender,Wr=dn($n,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),ln=aa||kn,Pn=oi.value,_t=oi.inputFocused,_r=Vn==="rtl",Lr=yr("cascader",Ti),en=yr("input",Ri),bn=M()((di={},A()(di,"".concat(en,"-lg"),ln==="large"),A()(di,"".concat(en,"-sm"),ln==="small"),di)),On=ji&&!ba&&Pn.length>0||oi.inputValue?n.createElement(Ii.a,{className:"".concat(Lr,"-picker-clear"),onClick:Kt.clearSelection}):null,yn=M()((pn={},A()(pn,"".concat(Lr,"-picker-arrow"),!0),A()(pn,"".concat(Lr,"-picker-arrow-expand"),oi.popupVisible),pn)),qn=M()(bi,"".concat(Lr,"-picker"),(Br={},A()(Br,"".concat(Lr,"-picker-rtl"),_r),A()(Br,"".concat(Lr,"-picker-with-value"),oi.inputValue),A()(Br,"".concat(Lr,"-picker-disabled"),ba),A()(Br,"".concat(Lr,"-picker-").concat(ln),!!ln),A()(Br,"".concat(Lr,"-picker-show-search"),!!ta),A()(Br,"".concat(Lr,"-picker-focused"),_t),A()(Br,"".concat(Lr,"-picker-borderless"),!pr),Br)),Hn=Object(ri.default)(Wr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),pi=$n.options,Fi=ei(Kt.props);if(pi&&pi.length>0)oi.inputValue&&(pi=Kt.generateFilteredOptions(Lr,Rr));else{var wi;pi=[(wi={},A()(wi,Fi.label,Sr||Rr("Cascader")),A()(wi,Fi.value,"ANT_CASCADER_NOT_FOUND"),wi)]}oi.popupVisible?Kt.cachedOptions=pi:pi=Kt.cachedOptions;var Oi={},zi=(pi||[]).length===1&&pi[0].isEmptyNode;zi&&(Oi.height="auto");var ea=ta.matchInputWidth!==!1;ea&&(oi.inputValue||zi)&&Kt.input&&(Oi.width=Kt.input.input.offsetWidth);var Gi;ra?Gi=Object(Vr.c)(ra,n.createElement("span",{className:"".concat(Lr,"-picker-arrow")},ra),function(){var Pa;return{className:M()((Pa={},A()(Pa,ra.props.className,ra.props.className),A()(Pa,"".concat(Lr,"-picker-arrow"),!0),Pa))}}):Gi=n.createElement(Qi.a,{className:yn});var Wi=Di||n.createElement("span",{style:Rn,className:qn},n.createElement("span",{className:"".concat(Lr,"-picker-label")},Kt.getLabel()),n.createElement(lt.a,f()({},Hn,{tabIndex:"-1",ref:Kt.saveInput,prefixCls:en,placeholder:Pn&&Pn.length>0?void 0:ma,className:"".concat(Lr,"-input ").concat(bn),value:oi.inputValue,disabled:ba,readOnly:!ta,autoComplete:Hn.autoComplete||"off",onClick:ta?Kt.handleInputClick:void 0,onBlur:ta?Kt.handleInputBlur:void 0,onKeyDown:Kt.handleKeyDown,onChange:ta?Kt.handleInputChange:void 0})),On,Gi),Hi;Ir?Hi=Ir:Hi=_r?n.createElement(qe.a,null):n.createElement(Ne.a,null);var Ji=n.createElement("span",{className:"".concat(Lr,"-menu-item-loading-icon")},n.createElement(Ye.a,{spin:!0})),ca=$n.getPopupContainer||vr,Ca=Object(ri.default)($n,["inputIcon","expandIcon","loadingIcon","bordered"]),na=M()(Tn,(_n={},A()(_n,"".concat(Lr,"-menu-").concat(Vn),Vn==="rtl"),A()(_n,"".concat(Lr,"-menu-empty"),pi.length===1&&pi[0].value==="ANT_CASCADER_NOT_FOUND"),_n));return n.createElement(ai,f()({},Ca,{prefixCls:Lr,getPopupContainer:ca,options:pi,value:Pn,popupVisible:oi.popupVisible,onPopupVisibleChange:Kt.handlePopupVisibleChange,onChange:Kt.handleChange,dropdownMenuColumnStyle:Oi,expandIcon:Hi,loadingIcon:Ji,popupClassName:na,popupPlacement:Kt.getPopupPlacement(Vn),dropdownRender:Dr}),Wi)})},Kt.state={value:Ut.value||Ut.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Ut.popupVisible,flattenOptions:Ut.showSearch?fi(Ut.options,Ut):void 0,prevProps:Ut},Kt}return u()(Rt,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Kt=this.props,Lt=Kt.options,cr=Kt.displayRender,vr=cr===void 0?Pi:cr,yr=ei(this.props),Rr=this.state.value,Vn=Array.isArray(Rr[0])?Rr[0]:Rr,kn=kt()(Lt,function(pn,Br){return pn[yr.value]===Vn[Br]},{childrenKeyName:yr.children}),di=kn.length?kn.map(function(pn){return pn[yr.label]}):Rr;return vr(di,kn)}},{key:"generateFilteredOptions",value:function(Kt,Lt){var cr=this,vr,yr=this.props,Rr=yr.showSearch,Vn=yr.notFoundContent,kn=ei(this.props),di=Rr.filter,pn=di===void 0?kr:di,Br=Rr.render,_n=Br===void 0?Fn:Br,Xn=Rr.sort,$n=Xn===void 0?vn:Xn,oi=Rr.limit,Ti=oi===void 0?gr:oi,Ri=this.state,Di=Ri.flattenOptions,oa=Di===void 0?[]:Di,ma=Ri.inputValue,aa;if(Ti>0){aa=[];var ba=0;oa.some(function(bi){var Rn=pn(cr.state.inputValue,bi,kn);return Rn&&(aa.push(bi),ba+=1),ba>=Ti})}else Object(fr.a)(typeof Ti!="number","Cascader","'limit' of showSearch should be positive number or false."),aa=oa.filter(function(bi){return pn(cr.state.inputValue,bi,kn)});return aa=aa.sort(function(bi,Rn){return $n(bi,Rn,ma,kn)}),aa.length>0?aa.map(function(bi){var Rn;return Rn={__IS_FILTERED_OPTION:!0,path:bi},A()(Rn,kn.value,bi.map(function(ji){return ji[kn.value]})),A()(Rn,kn.label,_n(ma,bi,Kt,kn)),A()(Rn,"disabled",bi.some(function(ji){return!!ji.disabled})),A()(Rn,"isEmptyNode",!0),Rn}):[(vr={},A()(vr,kn.value,"ANT_CASCADER_NOT_FOUND"),A()(vr,kn.label,Vn||Lt("Cascader")),A()(vr,"disabled",!0),A()(vr,"isEmptyNode",!0),vr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Lt=this.props.popupPlacement;return Lt!==void 0?Lt:Kt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Kt=this;return n.createElement(Et.a,null,function(Lt){return n.createElement(At.a,null,function(cr){return Kt.renderCascader(Lt,cr)})})}}],[{key:"getDerivedStateFromProps",value:function(Kt,Lt){var cr=Lt.prevProps,vr={prevProps:Kt};return"value"in Kt&&(vr.value=Kt.value||[]),"popupVisible"in Kt&&(vr.popupVisible=Kt.popupVisible),Kt.showSearch&&cr.options!==Kt.options&&(vr.flattenOptions=fi(Kt.options,Kt)),vr}}]),Rt}(n.Component);Sn.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Gn=L.a=Sn},DL4k:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},DN4a:function(R,L,r){var y=r("Fofx"),f=r("QBsz"),x=y.identity,A=5e-5;function m(s){return s>A||s<-A}var p=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},d=p.prototype;d.transform=null,d.needLocalTransform=function(){return m(this.rotation)||m(this.position[0])||m(this.position[1])||m(this.scale[0]-1)||m(this.scale[1]-1)};var u=[];d.updateTransform=function(){var s=this.parent,e=s&&s.transform,l=this.needLocalTransform(),n=this.transform;if(!(l||e)){n&&x(n);return}n=n||y.create(),l?this.getLocalTransform(n):x(n),e&&(l?y.mul(n,s.transform,n):y.copy(n,s.transform)),this.transform=n;var o=this.globalScaleRatio;if(o!=null&&o!==1){this.getGlobalScale(u);var c=u[0]<0?-1:1,h=u[1]<0?-1:1,g=((u[0]-c)*o+c)/u[0]||0,v=((u[1]-h)*o+h)/u[1]||0;n[0]*=g,n[1]*=g,n[2]*=v,n[3]*=v}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,n)},d.getLocalTransform=function(s){return p.getLocalTransform(this,s)},d.setTransform=function(s){var e=this.transform,l=s.dpr||1;e?s.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):s.setTransform(l,0,0,l,0,0)},d.restoreTransform=function(s){var e=s.dpr||1;s.setTransform(e,0,0,e,0,0)};var a=[],i=y.create();d.setLocalTransform=function(s){if(!s)return;var e=s[0]*s[0]+s[1]*s[1],l=s[2]*s[2]+s[3]*s[3],n=this.position,o=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(l-1)&&(l=Math.sqrt(l)),s[0]<0&&(e=-e),s[3]<0&&(l=-l),n[0]=s[4],n[1]=s[5],o[0]=e,o[1]=l,this.rotation=Math.atan2(-s[1]/l,s[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var s=this.parent,e=this.transform;s&&s.transform&&(y.mul(a,s.invTransform,e),e=a);var l=this.origin;l&&(l[0]||l[1])&&(i[4]=l[0],i[5]=l[1],y.mul(a,e,i),a[4]-=l[0],a[5]-=l[1],e=a),this.setLocalTransform(e)},d.getGlobalScale=function(s){var e=this.transform;return s=s||[],e?(s[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),s[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(s[0]=-s[0]),e[3]<0&&(s[1]=-s[1]),s):(s[0]=1,s[1]=1,s)},d.transformCoordToLocal=function(s,e){var l=[s,e],n=this.invTransform;return n&&f.applyTransform(l,l,n),l},d.transformCoordToGlobal=function(s,e){var l=[s,e],n=this.transform;return n&&f.applyTransform(l,l,n),l},p.getLocalTransform=function(s,e){e=e||[],x(e);var l=s.origin,n=s.scale||[1,1],o=s.rotation||0,c=s.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),y.scale(e,e,n),o&&y.rotate(e,e,o),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=c[0],e[5]+=c[1],e};var t=p;R.exports=t},DO2E:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},DSRE:function(R,L,r){(function(y){var f=r("Kz5y"),x=r("B8du"),A=L&&!L.nodeType&&L,m=A&&typeof y=="object"&&y&&!y.nodeType&&y,p=m&&m.exports===A,d=p?f.Buffer:void 0,u=d?d.isBuffer:void 0,a=u||x;y.exports=a}).call(this,r("YuTi")(R))},DYRE:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("OPEp"),A=r.n(x)},DZo9:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("JGo8"),A=r.n(x),m=r("+L6B"),p=r("MXD1"),d=r("5Dmo")},Dagg:function(R,L,r){var y=r("Gev7"),f=r("mFDi"),x=r("bYtY"),A=r("Xnb7");function m(d){y.call(this,d)}m.prototype={constructor:m,type:"image",brush:function(u,a){var i=this.style,t=i.image;i.bind(u,this,a);var s=this._image=A.createOrUpdateImage(t,this._image,this,this.onload);if(!s||!A.isImageReady(s))return;var e=i.x||0,l=i.y||0,n=i.width,o=i.height,c=s.width/s.height;if(n==null&&o!=null?n=o*c:o==null&&n!=null?o=n/c:n==null&&o==null&&(n=s.width,o=s.height),this.setTransform(u),i.sWidth&&i.sHeight){var h=i.sx||0,g=i.sy||0;u.drawImage(s,h,g,i.sWidth,i.sHeight,e,l,n,o)}else if(i.sx&&i.sy){var h=i.sx,g=i.sy,v=n-h,b=o-g;u.drawImage(s,h,g,v,b,e,l,n,o)}else u.drawImage(s,e,l,n,o);i.text!=null&&(this.restoreTransform(u),this.drawRectText(u,this.getBoundingRect()))},getBoundingRect:function(){var u=this.style;return this._rect||(this._rect=new f(u.x||0,u.y||0,u.width||0,u.height||0)),this._rect}},x.inherits(m,y);var p=m;R.exports=p},Dg8C:function(R,L,r){var y=r("XxSj"),f=r("bYtY");function x(A,m){A.eachSeriesByType("sankey",function(p){var d=p.getGraph(),u=d.nodes;if(u.length){var a=Infinity,i=-Infinity;f.each(u,function(t){var s=t.getLayout().value;s<a&&(a=s),s>i&&(i=s)}),f.each(u,function(t){var s=new y({type:"color",mappingMethod:"linear",dataExtent:[a,i],visual:p.get("color")}),e=s.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");l!=null?t.setVisual("color",l):t.setVisual("color",e)})}})}R.exports=x},DjyN:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("Urep"),A=r.n(x),m=r("OaEy")},DlQD:function(R,L,r){(function(y,f){R.exports=f()})(this,function(){"use strict";function y(Vt,Mt){for(var Gt=0;Gt<Mt.length;Gt++){var Ve=Mt[Gt];Ve.enumerable=Ve.enumerable||!1,Ve.configurable=!0,"value"in Ve&&(Ve.writable=!0),Object.defineProperty(Vt,Ve.key,Ve)}}function f(Vt,Mt,Gt){return Mt&&y(Vt.prototype,Mt),Gt&&y(Vt,Gt),Vt}function x(Vt,Mt){if(!Vt)return;if(typeof Vt=="string")return A(Vt,Mt);var Gt=Object.prototype.toString.call(Vt).slice(8,-1);if(Gt==="Object"&&Vt.constructor&&(Gt=Vt.constructor.name),Gt==="Map"||Gt==="Set")return Array.from(Vt);if(Gt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return A(Vt,Mt)}function A(Vt,Mt){(Mt==null||Mt>Vt.length)&&(Mt=Vt.length);for(var Gt=0,Ve=new Array(Mt);Gt<Mt;Gt++)Ve[Gt]=Vt[Gt];return Ve}function m(Vt,Mt){var Gt;if(typeof Symbol=="undefined"||Vt[Symbol.iterator]==null){if(Array.isArray(Vt)||(Gt=x(Vt))||Mt&&Vt&&typeof Vt.length=="number"){Gt&&(Vt=Gt);var Ve=0;return function(){return Ve>=Vt.length?{done:!0}:{done:!1,value:Vt[Ve++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Gt=Vt[Symbol.iterator](),Gt.next.bind(Gt)}function p(Vt,Mt){return Mt={exports:{}},Vt(Mt,Mt.exports),Mt.exports}var d=p(function(Vt){function Mt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Gt(Ve){Vt.exports.defaults=Ve}Vt.exports={defaults:Mt(),getDefaults:Mt,changeDefaults:Gt}}),u=d.defaults,a=d.getDefaults,i=d.changeDefaults,t=/[&<>"']/,s=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},o=function(Mt){return n[Mt]};function c(Vt,Mt){if(Mt){if(t.test(Vt))return Vt.replace(s,o)}else if(e.test(Vt))return Vt.replace(l,o);return Vt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Vt){return Vt.replace(h,function(Mt,Gt){return Gt=Gt.toLowerCase(),Gt==="colon"?":":Gt.charAt(0)==="#"?Gt.charAt(1)==="x"?String.fromCharCode(parseInt(Gt.substring(2),16)):String.fromCharCode(+Gt.substring(1)):""})}var v=/(^|[^\[])\^/g;function b(Vt,Mt){Vt=Vt.source||Vt,Mt=Mt||"";var Gt={replace:function(me,te){return te=te.source||te,te=te.replace(v,"$1"),Vt=Vt.replace(me,te),Gt},getRegex:function(){return new RegExp(Vt,Mt)}};return Gt}var S=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(Vt,Mt,Gt){if(Vt){var Ve;try{Ve=decodeURIComponent(g(Gt)).replace(S,"").toLowerCase()}catch(me){return null}if(Ve.indexOf("javascript:")===0||Ve.indexOf("vbscript:")===0||Ve.indexOf("data:")===0)return null}Mt&&!E.test(Gt)&&(Gt=I(Mt,Gt));try{Gt=encodeURI(Gt).replace(/%25/g,"%")}catch(me){return null}return Gt}var _={},T=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Vt,Mt){_[" "+Vt]||(T.test(Vt)?_[" "+Vt]=Vt+"/":_[" "+Vt]=P(Vt,"/",!0)),Vt=_[" "+Vt];var Gt=Vt.indexOf(":")===-1;return Mt.substring(0,2)==="//"?Gt?Mt:Vt.replace(w,"$1")+Mt:Mt.charAt(0)==="/"?Gt?Mt:Vt.replace(O,"$1")+Mt:Vt+Mt}var k={exec:function(){}};function M(Vt){for(var Mt=1,Gt,Ve;Mt<arguments.length;Mt++){Gt=arguments[Mt];for(Ve in Gt)Object.prototype.hasOwnProperty.call(Gt,Ve)&&(Vt[Ve]=Gt[Ve])}return Vt}function U(Vt,Mt){var Gt=Vt.replace(/\|/g,function(te,Ze,Xe){for(var ue=!1,St=Ze;--St>=0&&Xe[St]==="\\";)ue=!ue;return ue?"|":" |"}),Ve=Gt.split(/ \|/),me=0;if(Ve.length>Mt)Ve.splice(Mt);else for(;Ve.length<Mt;)Ve.push("");for(;me<Ve.length;me++)Ve[me]=Ve[me].trim().replace(/\\\|/g,"|");return Ve}function P(Vt,Mt,Gt){var Ve=Vt.length;if(Ve===0)return"";for(var me=0;me<Ve;){var te=Vt.charAt(Ve-me-1);if(te===Mt&&!Gt)me++;else if(te!==Mt&&Gt)me++;else break}return Vt.substr(0,Ve-me)}function X(Vt,Mt){if(Vt.indexOf(Mt[1])===-1)return-1;for(var Gt=Vt.length,Ve=0,me=0;me<Gt;me++)if(Vt[me]==="\\")me++;else if(Vt[me]===Mt[0])Ve++;else if(Vt[me]===Mt[1]&&(Ve--,Ve<0))return me;return-1}function F(Vt){Vt&&Vt.sanitize&&!Vt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var j={escape:c,unescape:g,edit:b,cleanUrl:C,resolveUrl:I,noopTest:k,merge:M,splitCells:U,rtrim:P,findClosingBracket:X,checkSanitizeDeprecation:F},K=d.defaults,z=j.rtrim,V=j.splitCells,Q=j.escape,G=j.findClosingBracket;function ee(Vt,Mt,Gt){var Ve=Mt.href,me=Mt.title?Q(Mt.title):null,te=Vt[1].replace(/\\([\[\]])/g,"$1");return Vt[0].charAt(0)!=="!"?{type:"link",raw:Gt,href:Ve,title:me,text:te}:{type:"image",raw:Gt,href:Ve,title:me,text:Q(te)}}function se(Vt,Mt){var Gt=Vt.match(/^(\s+)(?:```)/);if(Gt===null)return Mt;var Ve=Gt[1];return Mt.split(`
`).map(function(me){var te=me.match(/^\s+/);if(te===null)return me;var Ze=te[0];return Ze.length>=Ve.length?me.slice(Ve.length):me}).join(`
`)}var ye=function(){function Vt(Gt){this.options=Gt||K}var Mt=Vt.prototype;return Mt.space=function(Ve){var me=this.rules.block.newline.exec(Ve);if(me)return me[0].length>1?{type:"space",raw:me[0]}:{raw:`
`}},Mt.code=function(Ve,me){var te=this.rules.block.code.exec(Ve);if(te){var Ze=me[me.length-1];if(Ze&&Ze.type==="paragraph")return{raw:te[0],text:te[0].trimRight()};var Xe=te[0].replace(/^ {4}/gm,"");return{type:"code",raw:te[0],codeBlockStyle:"indented",text:this.options.pedantic?Xe:z(Xe,`
`)}}},Mt.fences=function(Ve){var me=this.rules.block.fences.exec(Ve);if(me){var te=me[0],Ze=se(te,me[3]||"");return{type:"code",raw:te,lang:me[2]?me[2].trim():me[2],text:Ze}}},Mt.heading=function(Ve){var me=this.rules.block.heading.exec(Ve);if(me)return{type:"heading",raw:me[0],depth:me[1].length,text:me[2]}},Mt.nptable=function(Ve){var me=this.rules.block.nptable.exec(Ve);if(me){var te={type:"table",header:V(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[],raw:me[0]};if(te.header.length===te.align.length){var Ze=te.align.length,Xe;for(Xe=0;Xe<Ze;Xe++)/^ *-+: *$/.test(te.align[Xe])?te.align[Xe]="right":/^ *:-+: *$/.test(te.align[Xe])?te.align[Xe]="center":/^ *:-+ *$/.test(te.align[Xe])?te.align[Xe]="left":te.align[Xe]=null;for(Ze=te.cells.length,Xe=0;Xe<Ze;Xe++)te.cells[Xe]=V(te.cells[Xe],te.header.length);return te}}},Mt.hr=function(Ve){var me=this.rules.block.hr.exec(Ve);if(me)return{type:"hr",raw:me[0]}},Mt.blockquote=function(Ve){var me=this.rules.block.blockquote.exec(Ve);if(me){var te=me[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:me[0],text:te}}},Mt.list=function(Ve){var me=this.rules.block.list.exec(Ve);if(me){for(var te=me[0],Ze=me[2],Xe=Ze.length>1,ue=Ze[Ze.length-1]===")",St={type:"list",raw:te,ordered:Xe,start:Xe?+Ze.slice(0,-1):"",loose:!1,items:[]},Qt=me[0].match(this.rules.block.item),dt=!1,Jt,$t,tn,kt,tr,Bt,ft,it=Qt.length,Or=0;Or<it;Or++)Jt=Qt[Or],te=Jt,$t=Jt.length,Jt=Jt.replace(/^ *([*+-]|\d+[.)]) */,""),~Jt.indexOf(`
`)&&($t-=Jt.length,Jt=this.options.pedantic?Jt.replace(/^ {1,4}/gm,""):Jt.replace(new RegExp("^ {1,"+$t+"}","gm"),"")),Or!==it-1&&(tn=this.rules.block.bullet.exec(Qt[Or+1])[0],(Xe?tn.length===1||!ue&&tn[tn.length-1]===")":tn.length>1||this.options.smartLists&&tn!==Ze)&&(kt=Qt.slice(Or+1).join(`
`),St.raw=St.raw.substring(0,St.raw.length-kt.length),Or=it-1)),tr=dt||/\n\n(?!\s*$)/.test(Jt),Or!==it-1&&(dt=Jt.charAt(Jt.length-1)===`
`,tr||(tr=dt)),tr&&(St.loose=!0),Bt=/^\[[ xX]\] /.test(Jt),ft=void 0,Bt&&(ft=Jt[1]!==" ",Jt=Jt.replace(/^\[[ xX]\] +/,"")),St.items.push({type:"list_item",raw:te,task:Bt,checked:ft,loose:tr,text:Jt});return St}},Mt.html=function(Ve){var me=this.rules.block.html.exec(Ve);if(me)return{type:this.options.sanitize?"paragraph":"html",raw:me[0],pre:!this.options.sanitizer&&(me[1]==="pre"||me[1]==="script"||me[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):Q(me[0]):me[0]}},Mt.def=function(Ve){var me=this.rules.block.def.exec(Ve);if(me){me[3]&&(me[3]=me[3].substring(1,me[3].length-1));var te=me[1].toLowerCase().replace(/\s+/g," ");return{tag:te,raw:me[0],href:me[2],title:me[3]}}},Mt.table=function(Ve){var me=this.rules.block.table.exec(Ve);if(me){var te={type:"table",header:V(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[]};if(te.header.length===te.align.length){te.raw=me[0];var Ze=te.align.length,Xe;for(Xe=0;Xe<Ze;Xe++)/^ *-+: *$/.test(te.align[Xe])?te.align[Xe]="right":/^ *:-+: *$/.test(te.align[Xe])?te.align[Xe]="center":/^ *:-+ *$/.test(te.align[Xe])?te.align[Xe]="left":te.align[Xe]=null;for(Ze=te.cells.length,Xe=0;Xe<Ze;Xe++)te.cells[Xe]=V(te.cells[Xe].replace(/^ *\| *| *\| *$/g,""),te.header.length);return te}}},Mt.lheading=function(Ve){var me=this.rules.block.lheading.exec(Ve);if(me)return{type:"heading",raw:me[0],depth:me[2].charAt(0)==="="?1:2,text:me[1]}},Mt.paragraph=function(Ve){var me=this.rules.block.paragraph.exec(Ve);if(me)return{type:"paragraph",raw:me[0],text:me[1].charAt(me[1].length-1)===`
`?me[1].slice(0,-1):me[1]}},Mt.text=function(Ve,me){var te=this.rules.block.text.exec(Ve);if(te){var Ze=me[me.length-1];return Ze&&Ze.type==="text"?{raw:te[0],text:te[0]}:{type:"text",raw:te[0],text:te[0]}}},Mt.escape=function(Ve){var me=this.rules.inline.escape.exec(Ve);if(me)return{type:"escape",raw:me[0],text:Q(me[1])}},Mt.tag=function(Ve,me,te){var Ze=this.rules.inline.tag.exec(Ve);if(Ze)return!me&&/^<a /i.test(Ze[0])?me=!0:me&&/^<\/a>/i.test(Ze[0])&&(me=!1),!te&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ze[0])?te=!0:te&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ze[0])&&(te=!1),{type:this.options.sanitize?"text":"html",raw:Ze[0],inLink:me,inRawBlock:te,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ze[0]):Q(Ze[0]):Ze[0]}},Mt.link=function(Ve){var me=this.rules.inline.link.exec(Ve);if(me){var te=G(me[2],"()");if(te>-1){var Ze=me[0].indexOf("!")===0?5:4,Xe=Ze+me[1].length+te;me[2]=me[2].substring(0,te),me[0]=me[0].substring(0,Xe).trim(),me[3]=""}var ue=me[2],St="";if(this.options.pedantic){var Qt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ue);Qt?(ue=Qt[1],St=Qt[3]):St=""}else St=me[3]?me[3].slice(1,-1):"";ue=ue.trim().replace(/^<([\s\S]*)>$/,"$1");var dt=ee(me,{href:ue&&ue.replace(this.rules.inline._escapes,"$1"),title:St&&St.replace(this.rules.inline._escapes,"$1")},me[0]);return dt}},Mt.reflink=function(Ve,me){var te;if((te=this.rules.inline.reflink.exec(Ve))||(te=this.rules.inline.nolink.exec(Ve))){var Ze=(te[2]||te[1]).replace(/\s+/g," ");if(Ze=me[Ze.toLowerCase()],!Ze||!Ze.href){var Xe=te[0].charAt(0);return{type:"text",raw:Xe,text:Xe}}var ue=ee(te,Ze,te[0]);return ue}},Mt.strong=function(Ve,me,te){te===void 0&&(te="");var Ze=this.rules.inline.strong.start.exec(Ve);if(Ze&&(!Ze[1]||Ze[1]&&(te===""||this.rules.inline.punctuation.exec(te)))){me=me.slice(-1*Ve.length);var Xe=Ze[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Xe.lastIndex=0;for(var ue;(Ze=Xe.exec(me))!=null;)if(ue=this.rules.inline.strong.middle.exec(me.slice(0,Ze.index+3)),ue)return{type:"strong",raw:Ve.slice(0,ue[0].length),text:Ve.slice(2,ue[0].length-2)}}},Mt.em=function(Ve,me,te){te===void 0&&(te="");var Ze=this.rules.inline.em.start.exec(Ve);if(Ze&&(!Ze[1]||Ze[1]&&(te===""||this.rules.inline.punctuation.exec(te)))){me=me.slice(-1*Ve.length);var Xe=Ze[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Xe.lastIndex=0;for(var ue;(Ze=Xe.exec(me))!=null;)if(ue=this.rules.inline.em.middle.exec(me.slice(0,Ze.index+2)),ue)return{type:"em",raw:Ve.slice(0,ue[0].length),text:Ve.slice(1,ue[0].length-1)}}},Mt.codespan=function(Ve){var me=this.rules.inline.code.exec(Ve);if(me){var te=me[2].replace(/\n/g," "),Ze=/[^ ]/.test(te),Xe=te.startsWith(" ")&&te.endsWith(" ");return Ze&&Xe&&(te=te.substring(1,te.length-1)),te=Q(te,!0),{type:"codespan",raw:me[0],text:te}}},Mt.br=function(Ve){var me=this.rules.inline.br.exec(Ve);if(me)return{type:"br",raw:me[0]}},Mt.del=function(Ve){var me=this.rules.inline.del.exec(Ve);if(me)return{type:"del",raw:me[0],text:me[1]}},Mt.autolink=function(Ve,me){var te=this.rules.inline.autolink.exec(Ve);if(te){var Ze,Xe;return te[2]==="@"?(Ze=Q(this.options.mangle?me(te[1]):te[1]),Xe="mailto:"+Ze):(Ze=Q(te[1]),Xe=Ze),{type:"link",raw:te[0],text:Ze,href:Xe,tokens:[{type:"text",raw:Ze,text:Ze}]}}},Mt.url=function(Ve,me){var te;if(te=this.rules.inline.url.exec(Ve)){var Ze,Xe;if(te[2]==="@")Ze=Q(this.options.mangle?me(te[0]):te[0]),Xe="mailto:"+Ze;else{var ue;do ue=te[0],te[0]=this.rules.inline._backpedal.exec(te[0])[0];while(ue!==te[0]);Ze=Q(te[0]),te[1]==="www."?Xe="http://"+Ze:Xe=Ze}return{type:"link",raw:te[0],text:Ze,href:Xe,tokens:[{type:"text",raw:Ze,text:Ze}]}}},Mt.inlineText=function(Ve,me,te){var Ze=this.rules.inline.text.exec(Ve);if(Ze){var Xe;return me?Xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ze[0]):Q(Ze[0]):Ze[0]:Xe=Q(this.options.smartypants?te(Ze[0]):Ze[0]),{type:"text",raw:Ze[0],text:Xe}}},Vt}(),he=j.noopTest,ke=j.edit,Pe=j.merge,Ue={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:he,table:he,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ue._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ue._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ue.def=ke(Ue.def).replace("label",Ue._label).replace("title",Ue._title).getRegex(),Ue.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ue.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ue.item=ke(Ue.item,"gm").replace(/bull/g,Ue.bullet).getRegex(),Ue.list=ke(Ue.list).replace(/bull/g,Ue.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ue.def.source+")").getRegex(),Ue._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ue._comment=/<!--(?!-?>)[\s\S]*?-->/,Ue.html=ke(Ue.html,"i").replace("comment",Ue._comment).replace("tag",Ue._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ue.paragraph=ke(Ue._paragraph).replace("hr",Ue.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ue._tag).getRegex(),Ue.blockquote=ke(Ue.blockquote).replace("paragraph",Ue.paragraph).getRegex(),Ue.normal=Pe({},Ue),Ue.gfm=Pe({},Ue.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ue.gfm.nptable=ke(Ue.gfm.nptable).replace("hr",Ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ue._tag).getRegex(),Ue.gfm.table=ke(Ue.gfm.table).replace("hr",Ue.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ue._tag).getRegex(),Ue.pedantic=Pe({},Ue.normal,{html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ue._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:he,paragraph:ke(Ue.normal._paragraph).replace("hr",Ue.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ue.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $e={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:he,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:he,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};$e._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$e.punctuation=ke($e.punctuation).replace(/punctuation/g,$e._punctuation).getRegex(),$e._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",$e._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",$e.em.start=ke($e.em.start).replace(/punctuation/g,$e._punctuation).getRegex(),$e.em.middle=ke($e.em.middle).replace(/punctuation/g,$e._punctuation).replace(/overlapSkip/g,$e._overlapSkip).getRegex(),$e.em.endAst=ke($e.em.endAst,"g").replace(/punctuation/g,$e._punctuation).getRegex(),$e.em.endUnd=ke($e.em.endUnd,"g").replace(/punctuation/g,$e._punctuation).getRegex(),$e.strong.start=ke($e.strong.start).replace(/punctuation/g,$e._punctuation).getRegex(),$e.strong.middle=ke($e.strong.middle).replace(/punctuation/g,$e._punctuation).replace(/blockSkip/g,$e._blockSkip).getRegex(),$e.strong.endAst=ke($e.strong.endAst,"g").replace(/punctuation/g,$e._punctuation).getRegex(),$e.strong.endUnd=ke($e.strong.endUnd,"g").replace(/punctuation/g,$e._punctuation).getRegex(),$e.blockSkip=ke($e._blockSkip,"g").getRegex(),$e.overlapSkip=ke($e._overlapSkip,"g").getRegex(),$e._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$e._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$e._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$e.autolink=ke($e.autolink).replace("scheme",$e._scheme).replace("email",$e._email).getRegex(),$e._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$e.tag=ke($e.tag).replace("comment",Ue._comment).replace("attribute",$e._attribute).getRegex(),$e._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$e._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,$e._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$e.link=ke($e.link).replace("label",$e._label).replace("href",$e._href).replace("title",$e._title).getRegex(),$e.reflink=ke($e.reflink).replace("label",$e._label).getRegex(),$e.reflinkSearch=ke($e.reflinkSearch,"g").replace("reflink",$e.reflink).replace("nolink",$e.nolink).getRegex(),$e.normal=Pe({},$e),$e.pedantic=Pe({},$e.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",$e._label).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$e._label).getRegex()}),$e.gfm=Pe({},$e.normal,{escape:ke($e.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),$e.gfm.url=ke($e.gfm.url,"i").replace("email",$e.gfm._extended_email).getRegex(),$e.breaks=Pe({},$e.gfm,{br:ke($e.br).replace("{2,}","*").getRegex(),text:ke($e.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ge={block:Ue,inline:$e},ht=d.defaults,Fe=Ge.block,oe=Ge.inline;function rt(Vt){return Vt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function fe(Vt){var Mt="",Gt,Ve,me=Vt.length;for(Gt=0;Gt<me;Gt++)Ve=Vt.charCodeAt(Gt),Math.random()>.5&&(Ve="x"+Ve.toString(16)),Mt+="&#"+Ve+";";return Mt}var J=function(){function Vt(Gt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Gt||ht,this.options.tokenizer=this.options.tokenizer||new ye,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ve={block:Fe.normal,inline:oe.normal};this.options.pedantic?(Ve.block=Fe.pedantic,Ve.inline=oe.pedantic):this.options.gfm&&(Ve.block=Fe.gfm,this.options.breaks?Ve.inline=oe.breaks:Ve.inline=oe.gfm),this.tokenizer.rules=Ve}Vt.lex=function(Ve,me){var te=new Vt(me);return te.lex(Ve)};var Mt=Vt.prototype;return Mt.lex=function(Ve){return Ve=Ve.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ve,this.tokens,!0),this.inline(this.tokens),this.tokens},Mt.blockTokens=function(Ve,me,te){me===void 0&&(me=[]),te===void 0&&(te=!0),Ve=Ve.replace(/^ +$/gm,"");for(var Ze,Xe,ue,St;Ve;){if(Ze=this.tokenizer.space(Ve)){Ve=Ve.substring(Ze.raw.length),Ze.type&&me.push(Ze);continue}if(Ze=this.tokenizer.code(Ve,me)){Ve=Ve.substring(Ze.raw.length),Ze.type?me.push(Ze):(St=me[me.length-1],St.raw+=`
`+Ze.raw,St.text+=`
`+Ze.text);continue}if(Ze=this.tokenizer.fences(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.heading(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.nptable(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.hr(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.blockquote(Ve)){Ve=Ve.substring(Ze.raw.length),Ze.tokens=this.blockTokens(Ze.text,[],te),me.push(Ze);continue}if(Ze=this.tokenizer.list(Ve)){for(Ve=Ve.substring(Ze.raw.length),ue=Ze.items.length,Xe=0;Xe<ue;Xe++)Ze.items[Xe].tokens=this.blockTokens(Ze.items[Xe].text,[],!1);me.push(Ze);continue}if(Ze=this.tokenizer.html(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(te&&(Ze=this.tokenizer.def(Ve))){Ve=Ve.substring(Ze.raw.length),this.tokens.links[Ze.tag]||(this.tokens.links[Ze.tag]={href:Ze.href,title:Ze.title});continue}if(Ze=this.tokenizer.table(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.lheading(Ve)){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(te&&(Ze=this.tokenizer.paragraph(Ve))){Ve=Ve.substring(Ze.raw.length),me.push(Ze);continue}if(Ze=this.tokenizer.text(Ve,me)){Ve=Ve.substring(Ze.raw.length),Ze.type?me.push(Ze):(St=me[me.length-1],St.raw+=`
`+Ze.raw,St.text+=`
`+Ze.text);continue}if(Ve){var Qt="Infinite loop on byte: "+Ve.charCodeAt(0);if(this.options.silent){console.error(Qt);break}else throw new Error(Qt)}}return me},Mt.inline=function(Ve){var me,te,Ze,Xe,ue,St,Qt=Ve.length;for(me=0;me<Qt;me++){St=Ve[me];switch(St.type){case"paragraph":case"text":case"heading":{St.tokens=[],this.inlineTokens(St.text,St.tokens);break}case"table":{for(St.tokens={header:[],cells:[]},Xe=St.header.length,te=0;te<Xe;te++)St.tokens.header[te]=[],this.inlineTokens(St.header[te],St.tokens.header[te]);for(Xe=St.cells.length,te=0;te<Xe;te++)for(ue=St.cells[te],St.tokens.cells[te]=[],Ze=0;Ze<ue.length;Ze++)St.tokens.cells[te][Ze]=[],this.inlineTokens(ue[Ze],St.tokens.cells[te][Ze]);break}case"blockquote":{this.inline(St.tokens);break}case"list":{for(Xe=St.items.length,te=0;te<Xe;te++)this.inline(St.items[te].tokens);break}}}return Ve},Mt.inlineTokens=function(Ve,me,te,Ze,Xe){me===void 0&&(me=[]),te===void 0&&(te=!1),Ze===void 0&&(Ze=!1),Xe===void 0&&(Xe="");var ue,St=Ve,Qt;if(this.tokens.links){var dt=Object.keys(this.tokens.links);if(dt.length>0)for(;(Qt=this.tokenizer.rules.inline.reflinkSearch.exec(St))!=null;)dt.includes(Qt[0].slice(Qt[0].lastIndexOf("[")+1,-1))&&(St=St.slice(0,Qt.index)+"["+"a".repeat(Qt[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Qt=this.tokenizer.rules.inline.blockSkip.exec(St))!=null;)St=St.slice(0,Qt.index)+"["+"a".repeat(Qt[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ve;){if(ue=this.tokenizer.escape(Ve)){Ve=Ve.substring(ue.raw.length),me.push(ue);continue}if(ue=this.tokenizer.tag(Ve,te,Ze)){Ve=Ve.substring(ue.raw.length),te=ue.inLink,Ze=ue.inRawBlock,me.push(ue);continue}if(ue=this.tokenizer.link(Ve)){Ve=Ve.substring(ue.raw.length),ue.type==="link"&&(ue.tokens=this.inlineTokens(ue.text,[],!0,Ze)),me.push(ue);continue}if(ue=this.tokenizer.reflink(Ve,this.tokens.links)){Ve=Ve.substring(ue.raw.length),ue.type==="link"&&(ue.tokens=this.inlineTokens(ue.text,[],!0,Ze)),me.push(ue);continue}if(ue=this.tokenizer.strong(Ve,St,Xe)){Ve=Ve.substring(ue.raw.length),ue.tokens=this.inlineTokens(ue.text,[],te,Ze),me.push(ue);continue}if(ue=this.tokenizer.em(Ve,St,Xe)){Ve=Ve.substring(ue.raw.length),ue.tokens=this.inlineTokens(ue.text,[],te,Ze),me.push(ue);continue}if(ue=this.tokenizer.codespan(Ve)){Ve=Ve.substring(ue.raw.length),me.push(ue);continue}if(ue=this.tokenizer.br(Ve)){Ve=Ve.substring(ue.raw.length),me.push(ue);continue}if(ue=this.tokenizer.del(Ve)){Ve=Ve.substring(ue.raw.length),ue.tokens=this.inlineTokens(ue.text,[],te,Ze),me.push(ue);continue}if(ue=this.tokenizer.autolink(Ve,fe)){Ve=Ve.substring(ue.raw.length),me.push(ue);continue}if(!te&&(ue=this.tokenizer.url(Ve,fe))){Ve=Ve.substring(ue.raw.length),me.push(ue);continue}if(ue=this.tokenizer.inlineText(Ve,Ze,rt)){Ve=Ve.substring(ue.raw.length),Xe=ue.raw.slice(-1),me.push(ue);continue}if(Ve){var Jt="Infinite loop on byte: "+Ve.charCodeAt(0);if(this.options.silent){console.error(Jt);break}else throw new Error(Jt)}}return me},f(Vt,null,[{key:"rules",get:function(){return{block:Fe,inline:oe}}}]),Vt}(),Y=d.defaults,$=j.cleanUrl,de=j.escape,we=function(){function Vt(Gt){this.options=Gt||Y}var Mt=Vt.prototype;return Mt.code=function(Ve,me,te){var Ze=(me||"").match(/\S*/)[0];if(this.options.highlight){var Xe=this.options.highlight(Ve,Ze);Xe!=null&&Xe!==Ve&&(te=!0,Ve=Xe)}return Ze?'<pre><code class="'+this.options.langPrefix+de(Ze,!0)+'">'+(te?Ve:de(Ve,!0))+`</code></pre>
`:"<pre><code>"+(te?Ve:de(Ve,!0))+`</code></pre>
`},Mt.blockquote=function(Ve){return`<blockquote>
`+Ve+`</blockquote>
`},Mt.html=function(Ve){return Ve},Mt.heading=function(Ve,me,te,Ze){return this.options.headerIds?"<h"+me+' id="'+this.options.headerPrefix+Ze.slug(te)+'">'+Ve+"</h"+me+`>
`:"<h"+me+">"+Ve+"</h"+me+`>
`},Mt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Mt.list=function(Ve,me,te){var Ze=me?"ol":"ul",Xe=me&&te!==1?' start="'+te+'"':"";return"<"+Ze+Xe+`>
`+Ve+"</"+Ze+`>
`},Mt.listitem=function(Ve){return"<li>"+Ve+`</li>
`},Mt.checkbox=function(Ve){return"<input "+(Ve?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Mt.paragraph=function(Ve){return"<p>"+Ve+`</p>
`},Mt.table=function(Ve,me){return me&&(me="<tbody>"+me+"</tbody>"),`<table>
<thead>
`+Ve+`</thead>
`+me+`</table>
`},Mt.tablerow=function(Ve){return`<tr>
`+Ve+`</tr>
`},Mt.tablecell=function(Ve,me){var te=me.header?"th":"td",Ze=me.align?"<"+te+' align="'+me.align+'">':"<"+te+">";return Ze+Ve+"</"+te+`>
`},Mt.strong=function(Ve){return"<strong>"+Ve+"</strong>"},Mt.em=function(Ve){return"<em>"+Ve+"</em>"},Mt.codespan=function(Ve){return"<code>"+Ve+"</code>"},Mt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Mt.del=function(Ve){return"<del>"+Ve+"</del>"},Mt.link=function(Ve,me,te){if(Ve=$(this.options.sanitize,this.options.baseUrl,Ve),Ve===null)return te;var Ze='<a href="'+de(Ve)+'"';return me&&(Ze+=' title="'+me+'"'),Ze+=">"+te+"</a>",Ze},Mt.image=function(Ve,me,te){if(Ve=$(this.options.sanitize,this.options.baseUrl,Ve),Ve===null)return te;var Ze='<img src="'+Ve+'" alt="'+te+'"';return me&&(Ze+=' title="'+me+'"'),Ze+=this.options.xhtml?"/>":">",Ze},Mt.text=function(Ve){return Ve},Vt}(),Ce=function(){function Vt(){}var Mt=Vt.prototype;return Mt.strong=function(Ve){return Ve},Mt.em=function(Ve){return Ve},Mt.codespan=function(Ve){return Ve},Mt.del=function(Ve){return Ve},Mt.html=function(Ve){return Ve},Mt.text=function(Ve){return Ve},Mt.link=function(Ve,me,te){return""+te},Mt.image=function(Ve,me,te){return""+te},Mt.br=function(){return""},Vt}(),Se=function(){function Vt(){this.seen={}}var Mt=Vt.prototype;return Mt.slug=function(Ve){var me=Ve.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(me)){var te=me;do this.seen[te]++,me=te+"-"+this.seen[te];while(this.seen.hasOwnProperty(me))}return this.seen[me]=0,me},Vt}(),le=d.defaults,pe=j.unescape,_e=function(){function Vt(Gt){this.options=Gt||le,this.options.renderer=this.options.renderer||new we,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Se}Vt.parse=function(Ve,me){var te=new Vt(me);return te.parse(Ve)};var Mt=Vt.prototype;return Mt.parse=function(Ve,me){me===void 0&&(me=!0);var te="",Ze,Xe,ue,St,Qt,dt,Jt,$t,tn,kt,tr,Bt,ft,it,Or,an,En,Bn,vi=Ve.length;for(Ze=0;Ze<vi;Ze++){kt=Ve[Ze];switch(kt.type){case"space":continue;case"hr":{te+=this.renderer.hr();continue}case"heading":{te+=this.renderer.heading(this.parseInline(kt.tokens),kt.depth,pe(this.parseInline(kt.tokens,this.textRenderer)),this.slugger);continue}case"code":{te+=this.renderer.code(kt.text,kt.lang,kt.escaped);continue}case"table":{for($t="",Jt="",St=kt.header.length,Xe=0;Xe<St;Xe++)Jt+=this.renderer.tablecell(this.parseInline(kt.tokens.header[Xe]),{header:!0,align:kt.align[Xe]});for($t+=this.renderer.tablerow(Jt),tn="",St=kt.cells.length,Xe=0;Xe<St;Xe++){for(dt=kt.tokens.cells[Xe],Jt="",Qt=dt.length,ue=0;ue<Qt;ue++)Jt+=this.renderer.tablecell(this.parseInline(dt[ue]),{header:!1,align:kt.align[ue]});tn+=this.renderer.tablerow(Jt)}te+=this.renderer.table($t,tn);continue}case"blockquote":{tn=this.parse(kt.tokens),te+=this.renderer.blockquote(tn);continue}case"list":{for(tr=kt.ordered,Bt=kt.start,ft=kt.loose,St=kt.items.length,tn="",Xe=0;Xe<St;Xe++)Or=kt.items[Xe],an=Or.checked,En=Or.task,it="",Or.task&&(Bn=this.renderer.checkbox(an),ft?Or.tokens.length>0&&Or.tokens[0].type==="text"?(Or.tokens[0].text=Bn+" "+Or.tokens[0].text,Or.tokens[0].tokens&&Or.tokens[0].tokens.length>0&&Or.tokens[0].tokens[0].type==="text"&&(Or.tokens[0].tokens[0].text=Bn+" "+Or.tokens[0].tokens[0].text)):Or.tokens.unshift({type:"text",text:Bn}):it+=Bn),it+=this.parse(Or.tokens,ft),tn+=this.renderer.listitem(it,En,an);te+=this.renderer.list(tn,tr,Bt);continue}case"html":{te+=this.renderer.html(kt.text);continue}case"paragraph":{te+=this.renderer.paragraph(this.parseInline(kt.tokens));continue}case"text":{for(tn=kt.tokens?this.parseInline(kt.tokens):kt.text;Ze+1<vi&&Ve[Ze+1].type==="text";)kt=Ve[++Ze],tn+=`
`+(kt.tokens?this.parseInline(kt.tokens):kt.text);te+=me?this.renderer.paragraph(tn):tn;continue}default:{var Ln='Token with "'+kt.type+'" type was not found.';if(this.options.silent){console.error(Ln);return}else throw new Error(Ln)}}}return te},Mt.parseInline=function(Ve,me){me=me||this.renderer;var te="",Ze,Xe,ue=Ve.length;for(Ze=0;Ze<ue;Ze++){Xe=Ve[Ze];switch(Xe.type){case"escape":{te+=me.text(Xe.text);break}case"html":{te+=me.html(Xe.text);break}case"link":{te+=me.link(Xe.href,Xe.title,this.parseInline(Xe.tokens,me));break}case"image":{te+=me.image(Xe.href,Xe.title,Xe.text);break}case"strong":{te+=me.strong(this.parseInline(Xe.tokens,me));break}case"em":{te+=me.em(this.parseInline(Xe.tokens,me));break}case"codespan":{te+=me.codespan(Xe.text);break}case"br":{te+=me.br();break}case"del":{te+=me.del(this.parseInline(Xe.tokens,me));break}case"text":{te+=me.text(Xe.text);break}default:{var St='Token with "'+Xe.type+'" type was not found.';if(this.options.silent){console.error(St);return}else throw new Error(St)}}}return te},Vt}(),tt=j.merge,gt=j.checkSanitizeDeprecation,ct=j.escape,je=d.getDefaults,Zt=d.changeDefaults,ut=d.defaults;function Ht(Vt,Mt,Gt){if(typeof Vt=="undefined"||Vt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Vt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Vt)+", string expected");if(typeof Mt=="function"&&(Gt=Mt,Mt=null),Mt=tt({},Ht.defaults,Mt||{}),gt(Mt),Gt){var Ve=Mt.highlight,me;try{me=J.lex(Vt,Mt)}catch(ue){return Gt(ue)}var te=function(St){var Qt;if(!St)try{Qt=_e.parse(me,Mt)}catch(dt){St=dt}return Mt.highlight=Ve,St?Gt(St):Gt(null,Qt)};if(!Ve||Ve.length<3)return te();if(delete Mt.highlight,!me.length)return te();var Ze=0;Ht.walkTokens(me,function(ue){ue.type==="code"&&(Ze++,setTimeout(function(){Ve(ue.text,ue.lang,function(St,Qt){if(St)return te(St);Qt!=null&&Qt!==ue.text&&(ue.text=Qt,ue.escaped=!0),Ze--,Ze===0&&te()})},0))}),Ze===0&&te();return}try{var Xe=J.lex(Vt,Mt);return Mt.walkTokens&&Ht.walkTokens(Xe,Mt.walkTokens),_e.parse(Xe,Mt)}catch(ue){if(ue.message+=`
Please report this to https://github.com/markedjs/marked.`,Mt.silent)return"<p>An error occurred:</p><pre>"+ct(ue.message+"",!0)+"</pre>";throw ue}}Ht.options=Ht.setOptions=function(Vt){return tt(Ht.defaults,Vt),Zt(Ht.defaults),Ht},Ht.getDefaults=je,Ht.defaults=ut,Ht.use=function(Vt){var Mt=tt({},Vt);if(Vt.renderer&&function(){var Ve=Ht.defaults.renderer||new we,me=function(Xe){var ue=Ve[Xe];Ve[Xe]=function(){for(var St=arguments.length,Qt=new Array(St),dt=0;dt<St;dt++)Qt[dt]=arguments[dt];var Jt=Vt.renderer[Xe].apply(Ve,Qt);return Jt===!1&&(Jt=ue.apply(Ve,Qt)),Jt}};for(var te in Vt.renderer)me(te);Mt.renderer=Ve}(),Vt.tokenizer&&function(){var Ve=Ht.defaults.tokenizer||new ye,me=function(Xe){var ue=Ve[Xe];Ve[Xe]=function(){for(var St=arguments.length,Qt=new Array(St),dt=0;dt<St;dt++)Qt[dt]=arguments[dt];var Jt=Vt.tokenizer[Xe].apply(Ve,Qt);return Jt===!1&&(Jt=ue.apply(Ve,Qt)),Jt}};for(var te in Vt.tokenizer)me(te);Mt.tokenizer=Ve}(),Vt.walkTokens){var Gt=Ht.defaults.walkTokens;Mt.walkTokens=function(Ve){Vt.walkTokens(Ve),Gt&&Gt(Ve)}}Ht.setOptions(Mt)},Ht.walkTokens=function(Vt,Mt){for(var Gt=m(Vt),Ve;!(Ve=Gt()).done;){var me=Ve.value;Mt(me);switch(me.type){case"table":{for(var te=m(me.tokens.header),Ze;!(Ze=te()).done;){var Xe=Ze.value;Ht.walkTokens(Xe,Mt)}for(var ue=m(me.tokens.cells),St;!(St=ue()).done;)for(var Qt=St.value,dt=m(Qt),Jt;!(Jt=dt()).done;){var $t=Jt.value;Ht.walkTokens($t,Mt)}break}case"list":{Ht.walkTokens(me.items,Mt);break}default:me.tokens&&Ht.walkTokens(me.tokens,Mt)}}},Ht.Parser=_e,Ht.parser=_e.parse,Ht.Renderer=we,Ht.TextRenderer=Ce,Ht.Lexer=J,Ht.lexer=J.lex,Ht.Tokenizer=ye,Ht.Slugger=Se,Ht.parse=Ht;var dr=Ht;return dr})},"DlR+":function(R,L,r){var y=r("MFOe"),f=y.Global,x=y.trim;R.exports={name:"cookieStorage",read:m,write:d,each:p,remove:u,clearAll:a};var A=f.document;function m(t){if(!t||!i(t))return null;var s="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(s),"$1"))}function p(t){for(var s=A.cookie.split(/; ?/g),e=s.length-1;e>=0;e--){if(!x(s[e]))continue;var l=s[e].split("="),n=unescape(l[0]),o=unescape(l[1]);t(o,n)}}function d(t,s){if(!t)return;A.cookie=escape(t)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function u(t){if(!t||!i(t))return;A.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function a(){p(function(t,s){u(s)})}function i(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("+TT/"),A=r("XpcN"),m=f.Group,p=["width","height"],d=["x","y"],u=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new m),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new m),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(i,t,s,e,l,n,o){var c=this;u.superCall(this,"renderInner",i,t,s,e,l,n,o);var h=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var v=t.getModel("pageTextStyle");h.add(new f.Text({name:"pageText",style:{textFill:v.getTextColor(),font:v.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(S,E){var C=S+"DataIndex",_=f.createIcon(t.get("pageIcons",!0)[t.getOrient().name][E],{onclick:y.bind(c._pageGo,c,C,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});_.name=S,h.add(_)}},layoutInner:function(i,t,s,e,l,n){var o=this.getSelectorGroup(),c=i.getOrient().index,h=p[c],g=d[c],v=p[1-c],b=d[1-c];l&&x.box("horizontal",o,i.get("selectorItemGap",!0));var S=i.get("selectorButtonGap",!0),E=o.getBoundingRect(),C=[-E.x,-E.y],_=y.clone(s);l&&(_[h]=s[h]-E[h]-S);var T=this._layoutContentAndController(i,e,_,c,h,v,b);if(l){if(n==="end")C[c]+=T[h]+S;else{var w=E[h]+S;C[c]-=w,T[g]-=w}T[h]+=E[h]+S,C[1-c]+=T[b]+T[v]/2-E[v]/2,T[v]=Math.max(T[v],E[v]),T[b]=Math.min(T[b],E[b]+C[1-c]),o.attr("position",C)}return T},_layoutContentAndController:function(i,t,s,e,l,n,o){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;x.box(i.get("orient"),c,i.get("itemGap"),e?s.width:null,e?null:s.height),x.box("horizontal",g,i.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),b=g.getBoundingRect(),S=this._showController=v[l]>s[l],E=[-v.x,-v.y];t||(E[e]=c.position[e]);var C=[0,0],_=[-b.x,-b.y],T=y.retrieve2(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(S){var w=i.get("pageButtonPosition",!0);w==="end"?_[e]+=s[l]-b[l]:C[e]+=b[l]+T}_[1-e]+=v[n]/2-b[n]/2,c.attr("position",E),h.attr("position",C),g.attr("position",_);var O={x:0,y:0};if(O[l]=S?s[l]:v[l],O[n]=Math.max(v[n],b[n]),O[o]=Math.min(0,b[o]+_[1-e]),h.__rectSize=s[l],S){var I={x:0,y:0};I[l]=Math.max(s[l]-b[l]-T,0),I[n]=O[n],h.setClipPath(new f.Rect({shape:I})),h.__rectSize=I[l]}else g.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(i);return k.pageIndex!=null&&f.updateProps(c,{position:k.contentPosition},S?i:!1),this._updatePageInfoView(i,k),O},_pageGo:function(i,t,s){var e=this._getPageInfo(t)[i];e!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(i,t){var s=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var g=t[h+"DataIndex"]!=null,v=s.childOfName(h);v&&(v.setStyle("fill",g?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),v.cursor=g?"pointer":"default")});var e=s.childOfName("pageText"),l=i.get("pageFormatter"),n=t.pageIndex,o=n!=null?n+1:0,c=t.pageCount;e&&l&&e.setStyle("text",y.isString(l)?l.replace("{current}",o).replace("{total}",c):l({current:o,total:c}))},_getPageInfo:function(i){var t=i.get("scrollDataIndex",!0),s=this.getContentGroup(),e=this._containerGroup.__rectSize,l=i.getOrient().index,n=p[l],o=d[l],c=this._findTargetItemIndex(t),h=s.children(),g=h[c],v=h.length,b=v?1:0,S={contentPosition:s.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return S;var E=O(g);S.contentPosition[l]=-E.s;for(var C=c+1,_=E,T=E,w=null;C<=v;++C)w=O(h[C]),(!w&&T.e>_.s+e||w&&!I(w,_.s))&&(T.i>_.i?_=T:_=w,_&&(S.pageNextDataIndex==null&&(S.pageNextDataIndex=_.i),++S.pageCount)),T=w;for(var C=c-1,_=E,T=E,w=null;C>=-1;--C)w=O(h[C]),(!w||!I(T,w.s))&&_.i<T.i&&(T=_,S.pagePrevDataIndex==null&&(S.pagePrevDataIndex=_.i),++S.pageCount,++S.pageIndex),_=w;return S;function O(k){if(k){var M=k.getBoundingRect(),U=M[o]+k.position[l];return{s:U,e:U+M[n],i:k.__legendDataIndex}}}function I(k,M){return k.e>=M&&k.s<=M+e}},_findTargetItemIndex:function(i){if(!this._showController)return 0;var t,s=this.getContentGroup(),e;return s.eachChild(function(l,n){var o=l.__legendDataIndex;e==null&&o!=null&&(e=n),o===i&&(t=n)}),t!=null?t:e}}),a=u;R.exports=a},DxGw:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("GtAB"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"E/ki":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};L.default=y},E2g8:function(R,L,r){(function(y,f){/*!
* @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.8+1e68dce6
*/(function(x,A){R.exports=A()})(this,function(){"use strict";function x(we){var Ce=typeof we;return we!==null&&(Ce==="object"||Ce==="function")}function A(we){return typeof we=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var p=m,d=0,u=void 0,a=void 0,i=function(Ce,Se){E[d]=Ce,E[d+1]=Se,d+=2,d===2&&(a?a(C):T())};function t(we){a=we}function s(we){i=we}var e=typeof window!="undefined"?window:void 0,l=e||{},n=l.MutationObserver||l.WebKitMutationObserver,o=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",c=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function h(){return function(){return y.nextTick(C)}}function g(){return typeof u!="undefined"?function(){u(C)}:S()}function v(){var we=0,Ce=new n(C),Se=document.createTextNode("");return Ce.observe(Se,{characterData:!0}),function(){Se.data=we=++we%2}}function b(){var we=new MessageChannel;return we.port1.onmessage=C,function(){return we.port2.postMessage(0)}}function S(){var we=setTimeout;return function(){return we(C,1)}}var E=new Array(1e3);function C(){for(var we=0;we<d;we+=2){var Ce=E[we],Se=E[we+1];Ce(Se),E[we]=void 0,E[we+1]=void 0}d=0}function _(){try{var we=Function("return this")().require("vertx");return u=we.runOnLoop||we.runOnContext,g()}catch(Ce){return S()}}var T=void 0;o?T=h():n?T=v():c?T=b():e===void 0&&!0?T=_():T=S();function w(we,Ce){var Se=this,le=new this.constructor(k);le[I]===void 0&&Ge(le);var pe=Se._state;if(pe){var _e=arguments[pe-1];i(function(){return ke(pe,le,_e,Se._result)})}else ye(Se,le,we,Ce);return le}function O(we){var Ce=this;if(we&&typeof we=="object"&&we.constructor===Ce)return we;var Se=new Ce(k);return Q(Se,we),Se}var I=Math.random().toString(36).substring(2);function k(){}var M=void 0,U=1,P=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function j(we,Ce,Se,le){try{we.call(Ce,Se,le)}catch(pe){return pe}}function K(we,Ce,Se){i(function(le){var pe=!1,_e=j(Se,Ce,function(tt){if(pe)return;pe=!0,Ce!==tt?Q(le,tt):ee(le,tt)},function(tt){if(pe)return;pe=!0,se(le,tt)},"Settle: "+(le._label||" unknown promise"));!pe&&_e&&(pe=!0,se(le,_e))},we)}function z(we,Ce){Ce._state===U?ee(we,Ce._result):Ce._state===P?se(we,Ce._result):ye(Ce,void 0,function(Se){return Q(we,Se)},function(Se){return se(we,Se)})}function V(we,Ce,Se){Ce.constructor===we.constructor&&Se===w&&Ce.constructor.resolve===O?z(we,Ce):Se===void 0?ee(we,Ce):A(Se)?K(we,Ce,Se):ee(we,Ce)}function Q(we,Ce){if(we===Ce)se(we,X());else if(x(Ce)){var Se=void 0;try{Se=Ce.then}catch(le){se(we,le);return}V(we,Ce,Se)}else ee(we,Ce)}function G(we){we._onerror&&we._onerror(we._result),he(we)}function ee(we,Ce){if(we._state!==M)return;we._result=Ce,we._state=U,we._subscribers.length!==0&&i(he,we)}function se(we,Ce){if(we._state!==M)return;we._state=P,we._result=Ce,i(G,we)}function ye(we,Ce,Se,le){var pe=we._subscribers,_e=pe.length;we._onerror=null,pe[_e]=Ce,pe[_e+U]=Se,pe[_e+P]=le,_e===0&&we._state&&i(he,we)}function he(we){var Ce=we._subscribers,Se=we._state;if(Ce.length===0)return;for(var le=void 0,pe=void 0,_e=we._result,tt=0;tt<Ce.length;tt+=3)le=Ce[tt],pe=Ce[tt+Se],le?ke(Se,le,pe,_e):pe(_e);we._subscribers.length=0}function ke(we,Ce,Se,le){var pe=A(Se),_e=void 0,tt=void 0,gt=!0;if(pe){try{_e=Se(le)}catch(ct){gt=!1,tt=ct}if(Ce===_e){se(Ce,F());return}}else _e=le;Ce._state!==M||(pe&&gt?Q(Ce,_e):gt===!1?se(Ce,tt):we===U?ee(Ce,_e):we===P&&se(Ce,_e))}function Pe(we,Ce){try{Ce(function(le){Q(we,le)},function(le){se(we,le)})}catch(Se){se(we,Se)}}var Ue=0;function $e(){return Ue++}function Ge(we){we[I]=Ue++,we._state=void 0,we._result=void 0,we._subscribers=[]}function ht(){return new Error("Array Methods must be provided an Array")}var Fe=function(){function we(Ce,Se){this._instanceConstructor=Ce,this.promise=new Ce(k),this.promise[I]||Ge(this.promise),p(Se)?(this.length=Se.length,this._remaining=Se.length,this._result=new Array(this.length),this.length===0?ee(this.promise,this._result):(this.length=this.length||0,this._enumerate(Se),this._remaining===0&&ee(this.promise,this._result))):se(this.promise,ht())}return we.prototype._enumerate=function(Se){for(var le=0;this._state===M&&le<Se.length;le++)this._eachEntry(Se[le],le)},we.prototype._eachEntry=function(Se,le){var pe=this._instanceConstructor,_e=pe.resolve;if(_e===O){var tt=void 0,gt=void 0,ct=!1;try{tt=Se.then}catch(Zt){ct=!0,gt=Zt}if(tt===w&&Se._state!==M)this._settledAt(Se._state,le,Se._result);else if(typeof tt!="function")this._remaining--,this._result[le]=Se;else if(pe===$){var je=new pe(k);ct?se(je,gt):V(je,Se,tt),this._willSettleAt(je,le)}else this._willSettleAt(new pe(function(Zt){return Zt(Se)}),le)}else this._willSettleAt(_e(Se),le)},we.prototype._settledAt=function(Se,le,pe){var _e=this.promise;_e._state===M&&(this._remaining--,Se===P?se(_e,pe):this._result[le]=pe),this._remaining===0&&ee(_e,this._result)},we.prototype._willSettleAt=function(Se,le){var pe=this;ye(Se,void 0,function(_e){return pe._settledAt(U,le,_e)},function(_e){return pe._settledAt(P,le,_e)})},we}();function oe(we){return new Fe(this,we).promise}function rt(we){var Ce=this;return p(we)?new Ce(function(Se,le){for(var pe=we.length,_e=0;_e<pe;_e++)Ce.resolve(we[_e]).then(Se,le)}):new Ce(function(Se,le){return le(new TypeError("You must pass an array to race."))})}function fe(we){var Ce=this,Se=new Ce(k);return se(Se,we),Se}function J(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $=function(){function we(Ce){this[I]=$e(),this._result=this._state=void 0,this._subscribers=[],k!==Ce&&(typeof Ce!="function"&&J(),this instanceof we?Pe(this,Ce):Y())}return we.prototype.catch=function(Se){return this.then(null,Se)},we.prototype.finally=function(Se){var le=this,pe=le.constructor;return A(Se)?le.then(function(_e){return pe.resolve(Se()).then(function(){return _e})},function(_e){return pe.resolve(Se()).then(function(){throw _e})}):le.then(Se,Se)},we}();$.prototype.then=w,$.all=oe,$.race=rt,$.resolve=O,$.reject=fe,$._setScheduler=t,$._setAsap=s,$._asap=i;function de(){var we=void 0;if(typeof f!="undefined")we=f;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(le){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=we.Promise;if(Ce){var Se=null;try{Se=Object.prototype.toString.call(Ce.resolve())}catch(le){}if(Se==="[object Promise]"&&!Ce.cast)return}we.Promise=$}return $.polyfill=de,$.Promise=$,$})}).call(this,r("Q2Ig"),r("yLpj"))},E2jh:function(R,L,r){var y=r("2gN3"),f=function(){var A=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function x(A){return!!f&&f in A}R.exports=x},E4JC:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.StreamCipher,m=f.algo,p=[],d=[],u=[],a=m.Rabbit=A.extend({_doReset:function(){for(var s=this._key.words,e=this.cfg.iv,l=0;l<4;l++)s[l]=(s[l]<<8|s[l]>>>24)&16711935|(s[l]<<24|s[l]>>>8)&4278255360;var n=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],o=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var l=0;l<4;l++)i.call(this);for(var l=0;l<8;l++)o[l]^=n[l+4&7];if(e){var c=e.words,h=c[0],g=c[1],v=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;o[0]^=v,o[1]^=S,o[2]^=b,o[3]^=E,o[4]^=v,o[5]^=S,o[6]^=b,o[7]^=E;for(var l=0;l<4;l++)i.call(this)}},_doProcessBlock:function(s,e){var l=this._X;i.call(this),p[0]=l[0]^l[5]>>>16^l[3]<<16,p[1]=l[2]^l[7]>>>16^l[5]<<16,p[2]=l[4]^l[1]>>>16^l[7]<<16,p[3]=l[6]^l[3]>>>16^l[1]<<16;for(var n=0;n<4;n++)p[n]=(p[n]<<8|p[n]>>>24)&16711935|(p[n]<<24|p[n]>>>8)&4278255360,s[e+n]^=p[n]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,s=this._C,e=0;e<8;e++)d[e]=s[e];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+s[e],n=l&65535,o=l>>>16,c=((n*n>>>17)+n*o>>>15)+o*o,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}f.Rabbit=A._createHelper(a)}(),y.Rabbit})},E9nw:function(R,L){R.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var y=document.activeElement,f=[],x=0;x<r.rangeCount;x++)f.push(r.getRangeAt(x));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||f.forEach(function(A){r.addRange(A)}),y&&y.focus()}}},ELLl:function(R,L,r){(function(y){y(r("VrN/"))})(function(y){var f={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=y.Pos;y.defineOption("autoCloseBrackets",!1,function(n,o,c){c&&c!=y.Init&&(n.removeKeyMap(m),n.state.closeBrackets=null),o&&(p(A(o,"pairs")),n.state.closeBrackets=o,n.addKeyMap(m))});function A(n,o){return o=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[o]!=null?n[o]:f[o]}var m={Backspace:a,Enter:i};function p(n){for(var o=0;o<n.length;o++){var c=n.charAt(o),h="'"+c+"'";m[h]||(m[h]=d(c))}}p(f.pairs+"`");function d(n){return function(o){return s(o,n)}}function u(n){var o=n.state.closeBrackets;if(!o||o.override)return o;var c=n.getModeAt(n.getCursor());return c.closeBrackets||o}function a(n){var o=u(n);if(!o||n.getOption("disableInput"))return y.Pass;for(var c=A(o,"pairs"),h=n.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var v=e(n,h[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}for(var g=h.length-1;g>=0;g--){var b=h[g].head;n.replaceRange("",x(b.line,b.ch-1),x(b.line,b.ch+1),"+delete")}}function i(n){var o=u(n),c=o&&A(o,"explode");if(!c||n.getOption("disableInput"))return y.Pass;for(var h=n.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var v=e(n,h[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}n.operation(function(){var b=n.lineSeparator()||`
`;n.replaceSelection(b+b,null),n.execCommand("goCharLeft"),h=n.listSelections();for(var S=0;S<h.length;S++){var E=h[S].head.line;n.indentLine(E,null,!0),n.indentLine(E+1,null,!0)}})}function t(n){var o=y.cmpPos(n.anchor,n.head)>0;return{anchor:new x(n.anchor.line,n.anchor.ch+(o?-1:1)),head:new x(n.head.line,n.head.ch+(o?1:-1))}}function s(n,o){var c=u(n);if(!c||n.getOption("disableInput"))return y.Pass;var h=A(c,"pairs"),g=h.indexOf(o);if(g==-1)return y.Pass;for(var v=A(c,"closeBefore"),b=A(c,"triples"),S=h.charAt(g+1)==o,E=n.listSelections(),C=g%2==0,_,T=0;T<E.length;T++){var w=E[T],O=w.head,I,k=n.getRange(O,x(O.line,O.ch+1));if(C&&!w.empty())I="surround";else if((S||!C)&&k==o)S&&l(n,O)?I="both":b.indexOf(o)>=0&&n.getRange(O,x(O.line,O.ch+3))==o+o+o?I="skipThree":I="skip";else if(S&&O.ch>1&&b.indexOf(o)>=0&&n.getRange(x(O.line,O.ch-2),O)==o+o){if(O.ch>2&&/\bstring/.test(n.getTokenTypeAt(x(O.line,O.ch-2))))return y.Pass;I="addFour"}else if(S){var M=O.ch==0?" ":n.getRange(x(O.line,O.ch-1),O);if(!y.isWordChar(k)&&M!=o&&!y.isWordChar(M))I="both";else return y.Pass}else if(C&&(k.length===0||/\s/.test(k)||v.indexOf(k)>-1))I="both";else return y.Pass;if(!_)_=I;else if(_!=I)return y.Pass}var U=g%2?h.charAt(g-1):o,P=g%2?o:h.charAt(g+1);n.operation(function(){if(_=="skip")n.execCommand("goCharRight");else if(_=="skipThree")for(var X=0;X<3;X++)n.execCommand("goCharRight");else if(_=="surround"){for(var F=n.getSelections(),X=0;X<F.length;X++)F[X]=U+F[X]+P;n.replaceSelections(F,"around"),F=n.listSelections().slice();for(var X=0;X<F.length;X++)F[X]=t(F[X]);n.setSelections(F)}else _=="both"?(n.replaceSelection(U+P,null),n.triggerElectric(U+P),n.execCommand("goCharLeft")):_=="addFour"&&(n.replaceSelection(U+U+U+U,"before"),n.execCommand("goCharRight"))})}function e(n,o){var c=n.getRange(x(o.line,o.ch-1),x(o.line,o.ch+1));return c.length==2?c:null}function l(n,o){var c=n.getTokenAt(x(o.line,o.ch+1));return/\bstring/.test(c.type)&&c.start==o.ch&&(o.ch==0||!/\bstring/.test(n.getTokenTypeAt(o)))}})},ELcG:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(f){var x=y,A=x.lib,m=A.WordArray,p=A.Hasher,d=x.algo,u=m.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=m.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=m.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),t=m.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),s=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),l=d.RIPEMD160=p.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(S,E){for(var C=0;C<16;C++){var _=E+C,T=S[_];S[_]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var w=this._hash.words,O=s.words,I=e.words,k=u.words,M=a.words,U=i.words,P=t.words,X,F,j,K,z,V,Q,G,ee,se;V=X=w[0],Q=F=w[1],G=j=w[2],ee=K=w[3],se=z=w[4];for(var ye,C=0;C<80;C+=1)ye=X+S[E+k[C]]|0,C<16?ye+=n(F,j,K)+O[0]:C<32?ye+=o(F,j,K)+O[1]:C<48?ye+=c(F,j,K)+O[2]:C<64?ye+=h(F,j,K)+O[3]:ye+=g(F,j,K)+O[4],ye=ye|0,ye=v(ye,U[C]),ye=ye+z|0,X=z,z=K,K=v(j,10),j=F,F=ye,ye=V+S[E+M[C]]|0,C<16?ye+=g(Q,G,ee)+I[0]:C<32?ye+=h(Q,G,ee)+I[1]:C<48?ye+=c(Q,G,ee)+I[2]:C<64?ye+=o(Q,G,ee)+I[3]:ye+=n(Q,G,ee)+I[4],ye=ye|0,ye=v(ye,P[C]),ye=ye+se|0,V=se,se=ee,ee=v(G,10),G=Q,Q=ye;ye=w[1]+j+ee|0,w[1]=w[2]+K+se|0,w[2]=w[3]+z+V|0,w[3]=w[4]+X+Q|0,w[4]=w[0]+F+G|0,w[0]=ye},_doFinalize:function(){var S=this._data,E=S.words,C=this._nDataBytes*8,_=S.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S.sigBytes=(E.length+1)*4,this._process();for(var T=this._hash,w=T.words,O=0;O<5;O++){var I=w[O];w[O]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return T},clone:function(){var S=p.clone.call(this);return S._hash=this._hash.clone(),S}});function n(b,S,E){return b^S^E}function o(b,S,E){return b&S|~b&E}function c(b,S,E){return(b|~S)^E}function h(b,S,E){return b&E|S&~E}function g(b,S,E){return b^(S|~E)}function v(b,S){return b<<S|b>>>32-S}x.RIPEMD160=p._createHelper(l),x.HmacRIPEMD160=p._createHmacHelper(l)}(Math),y.RIPEMD160})},EMyp:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("mFDi"),A=r("K4ya"),m=r("qJCg"),p=r("iLNv"),d=r("vZ6x"),u=["inBrush","outOfBrush"],a="__ecBrushSelect",i="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,S,E){b.eachComponent({mainType:"brush"},function(C){E&&E.type==="takeGlobalCursor"&&C.setBrushOption(E.key==="brush"?E.brushOption:{brushType:!1})}),s(b)});function s(b){b.eachComponent({mainType:"brush"},function(S){var E=S.brushTargetManager=new d(S.option,b);E.setInputRanges(S.areas,b)})}y.registerVisual(t,function(b,S,E){var C=[],_,T;b.eachComponent({mainType:"brush"},function(w,O){var I={brushId:w.id,brushIndex:O,brushName:w.name,areas:f.clone(w.areas),selected:[]};C.push(I);var k=w.option,M=k.brushLink,U=[],P=[],X=[],F=0;O||(_=k.throttleType,T=k.throttleDelay);var j=f.map(w.areas,function(ee){return h(f.defaults({boundingRect:g[ee.brushType](ee)},ee))}),K=A.createVisualMappings(w.option,u,function(ee){ee.mappingMethod="fixed"});f.isArray(M)&&f.each(M,function(ee){U[ee]=1});function z(ee){return M==="all"||U[ee]}function V(ee){return!!ee.length}b.eachSeries(function(ee,se){var ye=X[se]=[];ee.subType==="parallel"?Q(ee,se,ye):G(ee,se,ye)});function Q(ee,se){var ye=ee.coordinateSystem;F|=ye.hasAxisBrushed(),z(se)&&ye.eachActiveState(ee.getData(),function(he,ke){he==="active"&&(P[ke]=1)})}function G(ee,se,ye){var he=o(ee);if(!he||c(w,se))return;if(f.each(j,function(Pe){he[Pe.brushType]&&w.brushTargetManager.controlSeries(Pe,ee,b)&&ye.push(Pe),F|=V(ye)}),z(se)&&V(ye)){var ke=ee.getData();ke.each(function(Pe){n(he,ye,ke,Pe)&&(P[Pe]=1)})}}b.eachSeries(function(ee,se){var ye={seriesId:ee.id,seriesIndex:se,seriesName:ee.name,dataIndex:[]};I.selected.push(ye);var he=o(ee),ke=X[se],Pe=ee.getData(),Ue=z(se)?function($e){return P[$e]?(ye.dataIndex.push(Pe.getRawIndex($e)),"inBrush"):"outOfBrush"}:function($e){return n(he,ke,Pe,$e)?(ye.dataIndex.push(Pe.getRawIndex($e)),"inBrush"):"outOfBrush"};(z(se)?F:V(ke))&&A.applyVisual(u,K,Pe,Ue)})}),e(S,_,T,C,E)});function e(b,S,E,C,_){if(!_)return;var T=b.getZr();if(T[i])return;T[a]||(T[a]=l);var w=p.createOrUpdate(T,a,E,S);w(b,C)}function l(b,S){if(!b.isDisposed()){var E=b.getZr();E[i]=!0,b.dispatchAction({type:"brushSelect",batch:S}),E[i]=!1}}function n(b,S,E,C){for(var _=0,T=S.length;_<T;_++){var w=S[_];if(b[w.brushType](C,E,w.selectors,w))return!0}}function o(b){var S=b.brushSelector;if(f.isString(S)){var E=[];return f.each(m,function(_,T){E[T]=function(w,O,I,k){var M=O.getItemLayout(w);return _[S](M,I,k)}}),E}else if(f.isFunction(S)){var C={};return f.each(m,function(_,T){C[T]=S}),C}return S}function c(b,S){var E=b.option.seriesIndex;return E!=null&&E!=="all"&&(f.isArray(E)?f.indexOf(E,S)<0:S!==E)}function h(b){var S=b.selectors={};return f.each(m[b.brushType],function(E,C){S[C]=function(_){return E(_,S,b)}}),b}var g={lineX:f.noop,lineY:f.noop,rect:function(b){return v(b.range)},polygon:function(b){for(var S,E=b.range,C=0,_=E.length;C<_;C++){S=S||[[Infinity,-Infinity],[Infinity,-Infinity]];var T=E[C];T[0]<S[0][0]&&(S[0][0]=T[0]),T[0]>S[0][1]&&(S[0][1]=T[0]),T[1]<S[1][0]&&(S[1][0]=T[1]),T[1]>S[1][1]&&(S[1][1]=T[1])}return S&&v(S)}};function v(b){return new x(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}L.layoutCovers=s},ERHi:function(R,L,r){var y=r("ProS");r("Z6js"),r("R4Th");var f=r("f5Yq"),x=r("h8O9");y.registerVisual(f("effectScatter","circle")),y.registerLayout(x("effectScatter"))},ETIr:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=f.enc,p=m.Base64={stringify:function(a){var i=a.words,t=a.sigBytes,s=this._map;a.clamp();for(var e=[],l=0;l<t;l+=3)for(var n=i[l>>>2]>>>24-l%4*8&255,o=i[l+1>>>2]>>>24-(l+1)%4*8&255,c=i[l+2>>>2]>>>24-(l+2)%4*8&255,h=n<<16|o<<8|c,g=0;g<4&&l+g*.75<t;g++)e.push(s.charAt(h>>>6*(3-g)&63));var v=s.charAt(64);if(v)for(;e.length%4;)e.push(v);return e.join("")},parse:function(a){var i=a.length,t=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var e=0;e<t.length;e++)s[t.charCodeAt(e)]=e}var l=t.charAt(64);if(l){var n=a.indexOf(l);n!==-1&&(i=n)}return d(a,i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(u,a,i){for(var t=[],s=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,n=i[u.charCodeAt(e)]>>>6-e%4*2,o=l|n;t[s>>>2]|=o<<24-s%4*8,s++}return A.create(t,s)}}(),y.enc.Base64})},EWH9:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("YXTf"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},EXcs:function(R,L,r){"use strict";var y=function(){return{height:0,opacity:0}},f=function(d){return{height:d.scrollHeight,opacity:1}},x=function(d){return{height:d.offsetHeight}},A=function(d,u){return u.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:f,onEnterActive:f,onLeaveStart:x,onLeaveActive:y,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};L.a=m},Eh2f:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("0PSX"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},Em2t:function(R,L,r){var y=r("bahg"),f=r("quyA"),x=r("0JQy");function A(m){return f(m)?x(m):y(m)}R.exports=A},EpBk:function(R,L){function r(y){var f=typeof y;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?y!=="__proto__":y===null}R.exports=r},Ez2D:function(R,L,r){var y=r("bYtY"),f=r("4NO4");function x(A,m){var p=[],d=A.seriesIndex,u;if(d==null||!(u=m.getSeriesByIndex(d)))return{point:[]};var a=u.getData(),i=f.queryDataIndex(a,A);if(i==null||i<0||y.isArray(i))return{point:[]};var t=a.getItemGraphicEl(i),s=u.coordinateSystem;if(u.getTooltipPosition)p=u.getTooltipPosition(i)||[];else if(s&&s.dataToPoint)p=s.dataToPoint(a.getValues(y.map(s.dimensions,function(l){return a.mapDimension(l)}),i,!0))||[];else if(t){var e=t.getBoundingRect().clone();e.applyTransform(t.transform),p=[e.x+e.width/2,e.y+e.height/2]}return{point:p,el:t}}R.exports=x},"F+F2":function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var f=y,x=f.lib,A=x.WordArray,m=A.init,p=A.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var u=d.byteLength,a=[],i=0;i<u;i++)a[i>>>2]|=d[i]<<24-i%4*8;m.call(this,a,u)}else m.apply(this,arguments)};p.prototype=A}(),y.lib.WordArray})},F0hE:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("ca2m"),A=r("Qxkt"),m=r("ICMv"),p=x.valueAxis;function d(i,t){return f.defaults({show:t},i)}var u=y.extendComponentModel({type:"radar",optionUpdated:function(){var i=this.get("boundaryGap"),t=this.get("splitNumber"),s=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),n=this.get("axisType"),o=this.get("axisLabel"),c=this.get("name"),h=this.get("name.show"),g=this.get("name.formatter"),v=this.get("nameGap"),b=this.get("triggerEvent"),S=f.map(this.get("indicator")||[],function(E){E.max!=null&&E.max>0&&!E.min?E.min=0:E.min!=null&&E.min<0&&!E.max&&(E.max=0);var C=c;if(E.color!=null&&(C=f.defaults({color:E.color},c)),E=f.merge(f.clone(E),{boundaryGap:i,splitNumber:t,scale:s,axisLine:e,axisTick:l,axisType:n,axisLabel:o,name:E.text,nameLocation:"end",nameGap:v,nameTextStyle:C,triggerEvent:b},!1),h||(E.name=""),typeof g=="string"){var _=E.name;E.name=g.replace("{value}",_!=null?_:"")}else typeof g=="function"&&(E.name=g(E.name,E));var T=f.extend(new A(E,null,this.ecModel),m);return T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this.getIndicatorModels=function(){return S}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:f.merge({lineStyle:{color:"#bbb"}},p.axisLine),axisLabel:d(p.axisLabel,!1),axisTick:d(p.axisTick,!1),axisType:"interval",splitLine:d(p.splitLine,!0),splitArea:d(p.splitArea,!0),indicator:[]}}),a=u;R.exports=a},F5Ls:function(R,L){var r={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(f,x){if(f==="china"){var A=r[x.name];if(A){var m=x.center;m[0]+=A[0]/10.5,m[1]+=-A[1]/(10.5/.75)}}}R.exports=y},F7hV:function(R,L,r){var y=r("MBQ8"),f=y.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var x=this.get("progressiveThreshold"),A=this.get("largeThreshold");return A>x&&(x=A),x},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});R.exports=f},F9bG:function(R,L,r){var y=r("bYtY"),f=r("ItGF"),x=r("4NO4"),A=x.makeInner,m=A(),p=y.each;function d(l,n,o){if(f.node)return;var c=n.getZr();m(c).records||(m(c).records={}),u(c,n);var h=m(c).records[l]||(m(c).records[l]={});h.handler=o}function u(l,n){if(m(l).initialized)return;m(l).initialized=!0,o("click",y.curry(t,"click")),o("mousemove",y.curry(t,"mousemove")),o("globalout",i);function o(c,h){l.on(c,function(g){var v=s(n);p(m(l).records,function(b){b&&h(b,g,v.dispatchAction)}),a(v.pendings,n)})}}function a(l,n){var o=l.showTip.length,c=l.hideTip.length,h;o?h=l.showTip[o-1]:c&&(h=l.hideTip[c-1]),h&&(h.dispatchAction=null,n.dispatchAction(h))}function i(l,n,o){l.handler("leave",null,o)}function t(l,n,o,c){n.handler(l,o,c)}function s(l){var n={showTip:[],hideTip:[]},o=function(c){var h=n[c.type];h?h.push(c):(c.dispatchAction=o,l.dispatchAction(c))};return{dispatchAction:o,pendings:n}}function e(l,n){if(f.node)return;var o=n.getZr(),c=(m(o).records||{})[l];c&&(m(o).records[l]=null)}L.register=d,L.unregister=e},FBjb:function(R,L,r){var y=r("bYtY"),f=r("oVpE"),x=f.createSymbol,A=r("IwbS"),m=r("OELB"),p=m.parsePercent,d=r("x3X8"),u=d.getDefaultLabel;function a(v,b,S){A.Group.call(this),this.updateData(v,b,S)}var i=a.prototype,t=a.getSymbolSize=function(v,b){var S=v.getItemVisual(b,"symbolSize");return S instanceof Array?S.slice():[+S,+S]};function s(v){return[v[0]/2,v[1]/2]}function e(v,b){this.parent.drift(v,b)}i._createSymbol=function(v,b,S,E,C){this.removeAll();var _=b.getItemVisual(S,"color"),T=x(v,-1,-1,2,2,_,C);T.attr({z2:100,culling:!0,scale:s(E)}),T.drift=e,this._symbolType=v,this.add(T)},i.stopSymbolAnimation=function(v){this.childAt(0).stopAnimation(v)},i.getSymbolPath=function(){return this.childAt(0)},i.getScale=function(){return this.childAt(0).scale},i.highlight=function(){this.childAt(0).trigger("emphasis")},i.downplay=function(){this.childAt(0).trigger("normal")},i.setZ=function(v,b){var S=this.childAt(0);S.zlevel=v,S.z=b},i.setDraggable=function(v){var b=this.childAt(0);b.draggable=v,b.cursor=v?"move":b.cursor},i.updateData=function(v,b,S){this.silent=!1;var E=v.getItemVisual(b,"symbol")||"circle",C=v.hostModel,_=t(v,b),T=E!==this._symbolType;if(T){var w=v.getItemVisual(b,"symbolKeepAspect");this._createSymbol(E,v,b,_,w)}else{var O=this.childAt(0);O.silent=!1,A.updateProps(O,{scale:s(_)},C,b)}if(this._updateCommon(v,b,_,S),T){var O=this.childAt(0),I=S&&S.fadeIn,k={scale:O.scale.slice()};I&&(k.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),A.initProps(O,k,C,b)}this._seriesModel=C};var l=["itemStyle"],n=["emphasis","itemStyle"],o=["label"],c=["emphasis","label"];i._updateCommon=function(v,b,S,E){var C=this.childAt(0),_=v.hostModel,T=v.getItemVisual(b,"color");C.type!=="image"?C.useStyle({strokeNoScale:!0}):C.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=E&&E.itemStyle,O=E&&E.hoverItemStyle,I=E&&E.symbolOffset,k=E&&E.labelModel,M=E&&E.hoverLabelModel,U=E&&E.hoverAnimation,P=E&&E.cursorStyle;if(!E||v.hasItemOption){var X=E&&E.itemModel?E.itemModel:v.getItemModel(b);w=X.getModel(l).getItemStyle(["color"]),O=X.getModel(n).getItemStyle(),I=X.getShallow("symbolOffset"),k=X.getModel(o),M=X.getModel(c),U=X.getShallow("hoverAnimation"),P=X.getShallow("cursor")}else O=y.extend({},O);var F=C.style,j=v.getItemVisual(b,"symbolRotate");C.attr("rotation",(j||0)*Math.PI/180||0),I&&C.attr("position",[p(I[0],S[0]),p(I[1],S[1])]),P&&C.attr("cursor",P),C.setColor(T,E&&E.symbolInnerColor),C.setStyle(w);var K=v.getItemVisual(b,"opacity");K!=null&&(F.opacity=K);var z=v.getItemVisual(b,"liftZ"),V=C.__z2Origin;z!=null?V==null&&(C.__z2Origin=C.z2,C.z2+=z):V!=null&&(C.z2=V,C.__z2Origin=null);var Q=E&&E.useNameLabel;A.setLabelStyle(F,O,k,M,{labelFetcher:_,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:T});function G(ee,se){return Q?v.getName(ee):u(v,ee)}C.__symbolOriginalScale=s(S),C.hoverStyle=O,C.highDownOnUpdate=U&&_.isAnimationEnabled()?h:null,A.setHoverStyle(C)};function h(v,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var S=this.__symbolOriginalScale,E=S[1]/S[0],C={scale:[Math.max(S[0]*1.1,S[0]+3),Math.max(S[1]*1.1,S[1]+3*E)]};this.animateTo(C,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}i.fadeOut=function(v,b){var S=this.childAt(0);this.silent=S.silent=!0,!(b&&b.keepLabel)&&(S.style.text=null),A.updateProps(S,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,v)},y.inherits(a,A.Group);var g=a;R.exports=g},FGaS:function(R,L,r){var y=r("ProS"),f=r("IwbS"),x=r("bYtY"),A=r("oVpE");function m(d){return x.isArray(d)||(d=[+d,+d]),d}var p=y.extendChartView({type:"radar",render:function(d,u,a){var i=d.coordinateSystem,t=this.group,s=d.getData(),e=this._data;function l(c,h){var g=c.getItemVisual(h,"symbol")||"circle",v=c.getItemVisual(h,"color");if(g==="none")return;var b=m(c.getItemVisual(h,"symbolSize")),S=A.createSymbol(g,-1,-1,2,2,v);return S.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),S}function n(c,h,g,v,b,S){g.removeAll();for(var E=0;E<h.length-1;E++){var C=l(v,b);C&&(C.__dimIdx=E,c[E]?(C.attr("position",c[E]),f[S?"initProps":"updateProps"](C,{position:h[E]},d,b)):C.attr("position",h[E]),g.add(C))}}function o(c){return x.map(c,function(h){return[i.cx,i.cy]})}s.diff(e).add(function(c){var h=s.getItemLayout(c);if(!h)return;var g=new f.Polygon,v=new f.Polyline,b={shape:{points:h}};g.shape.points=o(h),v.shape.points=o(h),f.initProps(g,b,d,c),f.initProps(v,b,d,c);var S=new f.Group,E=new f.Group;S.add(v),S.add(g),S.add(E),n(v.shape.points,h,E,s,c,!0),s.setItemGraphicEl(c,S)}).update(function(c,h){var g=e.getItemGraphicEl(h),v=g.childAt(0),b=g.childAt(1),S=g.childAt(2),E={shape:{points:s.getItemLayout(c)}};if(!E.shape.points)return;n(v.shape.points,E.shape.points,S,s,c,!1),f.updateProps(v,E,d),f.updateProps(b,E,d),s.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var g=s.getItemModel(h),v=c.childAt(0),b=c.childAt(1),S=c.childAt(2),E=s.getItemVisual(h,"color");t.add(c),v.useStyle(x.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:E})),v.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var C=g.getModel("areaStyle"),_=g.getModel("emphasis.areaStyle"),T=C.isEmpty()&&C.parentModel.isEmpty(),w=_.isEmpty()&&_.parentModel.isEmpty();w=w&&T,b.ignore=T,b.useStyle(x.defaults(C.getAreaStyle(),{fill:E,opacity:.7})),b.hoverStyle=_.getAreaStyle();var O=g.getModel("itemStyle").getItemStyle(["color"]),I=g.getModel("emphasis.itemStyle").getItemStyle(),k=g.getModel("label"),M=g.getModel("emphasis.label");S.eachChild(function(U){U.setStyle(O),U.hoverStyle=x.clone(I);var P=s.get(s.dimensions[U.__dimIdx],h);(P==null||isNaN(P))&&(P=""),f.setLabelStyle(U.style,U.hoverStyle,k,M,{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:U.__dimIdx,defaultText:P,autoColor:E,isRectText:!0})}),c.highDownOnUpdate=function(U,P){b.attr("ignore",P==="emphasis"?w:T)},f.setHoverStyle(c)}),this._data=s},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});R.exports=p},FJo9:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("8txm"),A=r.n(x),m=r("MXD1")},FNN5:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("+rIm"),A=r("Znkb"),m=["axisLine","axisTickLabel","axisName"],p=["splitLine","splitArea","minorSplitLine"],d=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(a,i){if(this.group.removeAll(),!a.get("show"))return;var t=a.axis,s=t.polar,e=s.getAngleAxis(),l=t.getTicksCoords(),n=t.getMinorTicksCoords(),o=e.getExtent()[0],c=t.getExtent(),h=u(s,a,o),g=new x(a,h);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(p,function(v){a.get(v+".show")&&!t.scale.isBlank()&&this["_"+v](a,s,o,c,l,n)},this)},_splitLine:function(a,i,t,s,e){var l=a.getModel("splitLine"),n=l.getModel("lineStyle"),o=n.get("color"),c=0;o=o instanceof Array?o:[o];for(var h=[],g=0;g<e.length;g++){var v=c++%o.length;h[v]=h[v]||[],h[v].push(new f.Circle({shape:{cx:i.cx,cy:i.cy,r:e[g].coord}}))}for(var g=0;g<h.length;g++)this.group.add(f.mergePath(h[g],{style:y.defaults({stroke:o[g%o.length],fill:null},n.getLineStyle()),silent:!0}))},_minorSplitLine:function(a,i,t,s,e,l){if(!l.length)return;for(var n=a.getModel("minorSplitLine"),o=n.getModel("lineStyle"),c=[],h=0;h<l.length;h++)for(var g=0;g<l[h].length;g++)c.push(new f.Circle({shape:{cx:i.cx,cy:i.cy,r:l[h][g].coord}}));this.group.add(f.mergePath(c,{style:y.defaults({fill:null},o.getLineStyle()),silent:!0}))},_splitArea:function(a,i,t,s,e){if(!e.length)return;var l=a.getModel("splitArea"),n=l.getModel("areaStyle"),o=n.get("color"),c=0;o=o instanceof Array?o:[o];for(var h=[],g=e[0].coord,v=1;v<e.length;v++){var b=c++%o.length;h[b]=h[b]||[],h[b].push(new f.Sector({shape:{cx:i.cx,cy:i.cy,r0:g,r:e[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[v].coord}for(var v=0;v<h.length;v++)this.group.add(f.mergePath(h[v],{style:y.defaults({fill:o[v%o.length]},n.getAreaStyle()),silent:!0}))}});function u(a,i,t){return{position:[a.cx,a.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:i.getModel("axisLabel").get("rotate"),z2:1}}R.exports=d},FRVV:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("fk+n"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},FTAc:function(R,L,r){"use strict";r.d(L,"a",function(){return x});var y=r("q1tI"),f=r.n(y),x=y.createContext(null)},FUi9:function(R,L,r){var y=r("bYtY"),f=r("MwEJ"),x=r("aX7z"),A=r("ICMv"),m=r("Qxkt"),p=r("+TT/"),d=p.getLayoutRect;L.getLayoutRect=p.getLayoutRect;var u=r("7hqr"),a=u.enableDataStack,i=u.isDimensionStacked,t=u.getStackedDimension,s=r("hi0g");L.completeDimensions=s;var e=r("sdST");L.createDimensions=e;var l=r("oVpE");L.createSymbol=l.createSymbol;function n(g){return f(g.getSource(),g)}var o={isDimensionStacked:i,enableDataStack:a,getStackedDimension:t};function c(g,v){var b=v;m.isInstance(v)||(b=new m(v),y.mixin(b,A));var S=x.createScaleByModel(b);return S.setExtent(g[0],g[1]),x.niceScaleExtent(S,b),S}function h(g){y.mixin(g,A)}L.createList=n,L.dataStack=o,L.createScale=c,L.mixinAxisModelCommonMethods=h},"Fa/5":function(R,L,r){var y=r("ProS");r("y2l5"),r("q/+u");var f=r("f5Yq"),x=r("h8O9");r("Ae16"),y.registerVisual(f("scatter","circle")),y.registerLayout(x("scatter"))},FhB9:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};L.default=y},Fofx:function(R,L){var r=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var i=new r(6);return f(i),i}function f(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function x(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function A(i,t,s){var e=t[0]*s[0]+t[2]*s[1],l=t[1]*s[0]+t[3]*s[1],n=t[0]*s[2]+t[2]*s[3],o=t[1]*s[2]+t[3]*s[3],c=t[0]*s[4]+t[2]*s[5]+t[4],h=t[1]*s[4]+t[3]*s[5]+t[5];return i[0]=e,i[1]=l,i[2]=n,i[3]=o,i[4]=c,i[5]=h,i}function m(i,t,s){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+s[0],i[5]=t[5]+s[1],i}function p(i,t,s){var e=t[0],l=t[2],n=t[4],o=t[1],c=t[3],h=t[5],g=Math.sin(s),v=Math.cos(s);return i[0]=e*v+o*g,i[1]=-e*g+o*v,i[2]=l*v+c*g,i[3]=-l*g+v*c,i[4]=v*n+g*h,i[5]=v*h-g*n,i}function d(i,t,s){var e=s[0],l=s[1];return i[0]=t[0]*e,i[1]=t[1]*l,i[2]=t[2]*e,i[3]=t[3]*l,i[4]=t[4]*e,i[5]=t[5]*l,i}function u(i,t){var s=t[0],e=t[2],l=t[4],n=t[1],o=t[3],c=t[5],h=s*o-n*e;return h?(h=1/h,i[0]=o*h,i[1]=-n*h,i[2]=-e*h,i[3]=s*h,i[4]=(e*c-o*l)*h,i[5]=(n*l-s*c)*h,i):null}function a(i){var t=y();return x(t,i),t}L.create=y,L.identity=f,L.copy=x,L.mul=A,L.translate=m,L.rotate=p,L.scale=d,L.invert=u,L.clone=a},Fv0C:function(R,L,r){"use strict";function y(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(o){return typeof o}:y=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},y(l)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=a(r("Lo0S")),x=r("vewr"),A=a(r("8CQX")),m=d(r("mHUz")),p=a(r("GdRQ"));function d(l){return l&&l.__esModule?l:{default:l}}function u(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return u=function(){return l},l}function a(l){if(l&&l.__esModule)return l;if(l===null||y(l)!=="object"&&typeof l!="function")return{default:l};var n=u();if(n&&n.has(l))return n.get(l);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in l)if(Object.prototype.hasOwnProperty.call(l,h)){var g=c?Object.getOwnPropertyDescriptor(l,h):null;g&&(g.get||g.set)?Object.defineProperty(o,h,g):o[h]=l[h]}return o.default=l,n&&n.set(l,o),o}function i(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")}function t(l,n){for(var o=0;o<n.length;o++){var c=n[o];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(l,c.key,c)}}function s(l,n,o){return n&&t(l.prototype,n),o&&t(l,o),l}var e=function(){function l(n){i(this,l),this._target=n||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return s(l,[{key:"_sendKeyEvent",value:function(o,c,h){if(h)this._keyDownList[c]=o;else{if(!(c in this._keyDownList))return;delete this._keyDownList[c]}f.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+o,", code: "+c),this.onkeyevent(o,c,h)}},{key:"_getKeyCode",value:function(o){var c=A.getKeycode(o);if(c!=="Unidentified")return c;if(o.keyCode&&o.type!=="keypress"&&o.keyCode!==229)return"Platform"+o.keyCode;if(o.keyIdentifier){if(o.keyIdentifier.substr(0,2)!=="U+")return o.keyIdentifier;var h=parseInt(o.keyIdentifier.substr(2),16),g=String.fromCharCode(h).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(o){var c=this._getKeyCode(o),h=A.getKeysym(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&o.timeStamp-this._altGrCtrlTime<50?h=m.default.XK_ISO_Level3_Shift:this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),c==="Unidentified"){h&&(this._sendKeyEvent(h,c,!0),this._sendKeyEvent(h,c,!1)),(0,x.stopEvent)(o);return}if(p.isMac()||p.isIOS())switch(h){case m.default.XK_Super_L:h=m.default.XK_Alt_L;break;case m.default.XK_Super_R:h=m.default.XK_Super_L;break;case m.default.XK_Alt_L:h=m.default.XK_Mode_switch;break;case m.default.XK_Alt_R:h=m.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(h=this._keyDownList[c]),(p.isMac()||p.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1),(0,x.stopEvent)(o);return}if(!h&&(!o.key||p.isIE()||p.isEdge())){this._pendingKey=c,setTimeout(this._handleKeyPressTimeout.bind(this),10,o);return}if(this._pendingKey=null,(0,x.stopEvent)(o),c==="ControlLeft"&&p.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=o.timeStamp;return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPress",value:function(o){if((0,x.stopEvent)(o),this._pendingKey===null)return;var c=this._getKeyCode(o),h=A.getKeysym(o);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){f.Info("keypress with no keysym:",o);return}this._sendKeyEvent(h,c,!0)}},{key:"_handleKeyPressTimeout",value:function(o){if(this._pendingKey===null)return;var c,h=this._pendingKey;if(this._pendingKey=null,o.keyCode>=48&&o.keyCode<=57)c=o.keyCode;else if(o.keyCode>=65&&o.keyCode<=90){var g=String.fromCharCode(o.keyCode);o.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.charCodeAt()}else c=0;this._sendKeyEvent(c,h,!0)}},{key:"_handleKeyUp",value:function(o){(0,x.stopEvent)(o);var c=this._getKeyCode(o);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)),(p.isMac()||p.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[c],c,!1),p.isWindows()&&(c==="ShiftLeft"||c==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(m.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){f.Debug(">> Keyboard.allKeysUp");for(var o in this._keyDownList)this._sendKeyEvent(this._keyDownList[o],o,!1);f.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(o){if(o.skipCheckAlt)return;if(o.altKey)return;var c=this._target,h=this._keyDownList;["AltLeft","AltRight"].forEach(function(g){if(!(g in h))return;var v=new KeyboardEvent("keyup",{key:h[g],code:g});v.skipCheckAlt=!0,c.dispatchEvent(v)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),p.isWindows()&&p.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.addEventListener(c,o,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(p.isWindows()&&p.isFirefox()){var o=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(c){return document.removeEventListener(c,o)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),l}();L.default=e},FxDU:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.createSensor=void 0;var y=r("QO+J"),f=r("j5sG"),x=typeof ResizeObserver!="undefined"?f.createSensor:y.createSensor;L.createSensor=x},GIiI:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="PoweroffOutlined";var d=L.a=f.forwardRef(p)},GMDS:function(R,L,r){var y=r("bYtY"),f=r("4NgU"),x=r("jkPA"),A=f.prototype,m=f.extend({type:"ordinal",init:function(d,u){(!d||y.isArray(d))&&(d=new x({categories:d})),this._ordinalMeta=d,this._extent=u||[0,d.categories.length-1]},parse:function(d){return typeof d=="string"?this._ordinalMeta.getOrdinal(d):Math.round(d)},contain:function(d){return d=this.parse(d),A.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return A.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(A.scale.call(this,d))},getTicks:function(){for(var d=[],u=this._extent,a=u[0];a<=u[1];)d.push(a),a++;return d},getLabel:function(d){if(!this.isBlank())return this._ordinalMeta.categories[d]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(d,u){this.unionExtent(d.getApproximateExtent(u))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:y.noop,niceExtent:y.noop});m.create=function(){return new m};var p=m;R.exports=p},GQ8N:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.toUnsigned32bit=y,L.toSigned32bit=f;function y(x){return x>>>0}function f(x){return x|0}},GRuw:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("lPiR"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=f.algo,p=m.SHA256,d=m.SHA224=p.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=p._doFinalize.call(this);return a.sigBytes-=4,a}});f.SHA224=p._createHelper(d),f.HmacSHA224=p._createHmacHelper(d)}(),y.SHA224})},GUcZ:function(R,L,r){"use strict";var y=r("fWQN"),f=r("mtLc"),x=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(De,Re){return De.__proto__=Re,De},Object.assign=Object.assign||function(De){if(De==null)throw new TypeError("Cannot convert undefined or null to object");for(var Re=Object(De),Me=1;Me<arguments.length;Me++){var nt=arguments[Me];if(nt!=null)for(var yt in nt)nt.hasOwnProperty(yt)&&(Re[yt]=nt[yt])}return Re},typeof self.Promise!="function"&&r("E2g8").polyfill()}}]),Xt}();x.install();var A=x,m=r("+qE3"),p=r.n(m),d=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"e",value:function(De,Re){(!De||Xt.FORCE_GLOBAL_TAG)&&(De=Xt.GLOBAL_TAG);var Me="[".concat(De,"] > ").concat(Re);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","error",Me),!Xt.ENABLE_ERROR)return;console.error?console.error(Me):console.warn?console.warn(Me):console.log(Me)}},{key:"i",value:function(De,Re){(!De||Xt.FORCE_GLOBAL_TAG)&&(De=Xt.GLOBAL_TAG);var Me="[".concat(De,"] > ").concat(Re);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","info",Me),!Xt.ENABLE_INFO)return;console.info?console.info(Me):console.log(Me)}},{key:"w",value:function(De,Re){(!De||Xt.FORCE_GLOBAL_TAG)&&(De=Xt.GLOBAL_TAG);var Me="[".concat(De,"] > ").concat(Re);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","warn",Me),!Xt.ENABLE_WARN)return;console.warn?console.warn(Me):console.log(Me)}},{key:"d",value:function(De,Re){(!De||Xt.FORCE_GLOBAL_TAG)&&(De=Xt.GLOBAL_TAG);var Me="[".concat(De,"] > ").concat(Re);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","debug",Me),!Xt.ENABLE_DEBUG)return;console.debug?console.debug(Me):console.log(Me)}},{key:"v",value:function(De,Re){(!De||Xt.FORCE_GLOBAL_TAG)&&(De=Xt.GLOBAL_TAG);var Me="[".concat(De,"] > ").concat(Re);if(Xt.ENABLE_CALLBACK&&Xt.emitter.emit("log","verbose",Me),!Xt.ENABLE_VERBOSE)return;console.log(Me)}}]),Xt}();d.GLOBAL_TAG="flv.js",d.FORCE_GLOBAL_TAG=!1,d.ENABLE_ERROR=!0,d.ENABLE_INFO=!0,d.ENABLE_WARN=!0,d.ENABLE_DEBUG=!0,d.ENABLE_VERBOSE=!0,d.ENABLE_CALLBACK=!1,d.emitter=new p.a;var u=d,a=function(){function Xt(){Object(y.a)(this,Xt),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(f.a)(Xt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(De){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=De,this._totalBytes+=De):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=De,this._totalBytes+=De):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=De,this._totalBytes+=De,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var De=(this._now()-this._lastCheckpoint)/1e3;return De==0&&(De=1),this._intervalBytes/De/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var De=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/De/1024}}]),Xt}(),i=a,t=r("yKVA"),s=r("879j"),e=function(){function Xt(wt){Object(y.a)(this,Xt),this._message=wt}return Object(f.a)(Xt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Xt}(),l=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re){return Object(y.a)(this,De),wt.call(this,Re)}return Object(f.a)(De,[{key:"name",get:function(){return"IllegalStateException"}}]),De}(e),n=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re){return Object(y.a)(this,De),wt.call(this,Re)}return Object(f.a)(De,[{key:"name",get:function(){return"InvalidArgumentException"}}]),De}(e),o=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re){return Object(y.a)(this,De),wt.call(this,Re)}return Object(f.a)(De,[{key:"name",get:function(){return"NotImplementedException"}}]),De}(e),c={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},h={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},g=function(){function Xt(wt){Object(y.a)(this,Xt),this._type=wt||"undefined",this._status=c.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._status=c.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===c.kConnecting||this._status===c.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(De){this._onContentLengthKnown=De}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(De){this._onURLRedirect=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"open",value:function(De,Re){throw new o("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new o("Unimplemented abstract function!")}}]),Xt}(),v=r("w4Tj"),b=r("oZsa"),S={};function E(){var Xt=self.navigator.userAgent.toLowerCase(),wt=/(edge)\/([\w.]+)/.exec(Xt)||/(opr)[\/]([\w.]+)/.exec(Xt)||/(chrome)[ \/]([\w.]+)/.exec(Xt)||/(iemobile)[\/]([\w.]+)/.exec(Xt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Xt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Xt)||/(webkit)[ \/]([\w.]+)/.exec(Xt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Xt)||/(msie) ([\w.]+)/.exec(Xt)||Xt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Xt)||Xt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Xt)||[],De=/(ipad)/.exec(Xt)||/(ipod)/.exec(Xt)||/(windows phone)/.exec(Xt)||/(iphone)/.exec(Xt)||/(kindle)/.exec(Xt)||/(android)/.exec(Xt)||/(windows)/.exec(Xt)||/(mac)/.exec(Xt)||/(linux)/.exec(Xt)||/(cros)/.exec(Xt)||[],Re={browser:wt[5]||wt[3]||wt[1]||"",version:wt[2]||wt[4]||"0",majorVersion:wt[4]||wt[2]||"0",platform:De[0]||""},Me={};if(Re.browser){Me[Re.browser]=!0;var nt=Re.majorVersion.split(".");Me.version={major:parseInt(Re.majorVersion,10),string:Re.version},nt.length>1&&(Me.version.minor=parseInt(nt[1],10)),nt.length>2&&(Me.version.build=parseInt(nt[2],10))}if(Re.platform&&(Me[Re.platform]=!0),(Me.chrome||Me.opr||Me.safari)&&(Me.webkit=!0),Me.rv||Me.iemobile){Me.rv&&delete Me.rv;var yt="msie";Re.browser=yt,Me[yt]=!0}if(Me.edge){delete Me.edge;var sr="msedge";Re.browser=sr,Me[sr]=!0}if(Me.opr){var Nr="opera";Re.browser=Nr,Me[Nr]=!0}if(Me.safari&&Me.android){var mn="android";Re.browser=mn,Me[mn]=!0}Me.name=Re.browser,Me.platform=Re.platform;for(var Yn in S)S.hasOwnProperty(Yn)&&delete S[Yn];Object.assign(S,Me)}E();var C=S,_=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re,Me){var nt;return Object(y.a)(this,De),nt=wt.call(this,"fetch-stream-loader"),nt.TAG="FetchStreamLoader",nt._seekHandler=Re,nt._config=Me,nt._needStash=!0,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(v.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Me,nt){var yt=this;this._dataSource=Me,this._range=nt;var sr=Me.url;this._config.reuseRedirectedURL&&Me.redirectedURL!=null&&(sr=Me.redirectedURL);var Nr=this._seekHandler.getConfig(sr,nt),mn=new self.Headers;if(typeof Nr.headers=="object"){var Yn=Nr.headers;for(var Jn in Yn)Yn.hasOwnProperty(Jn)&&mn.append(Jn,Yn[Jn])}var ur={method:"GET",headers:mn,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var Tt in this._config.headers)mn.append(Tt,this._config.headers[Tt]);Me.cors===!1&&(ur.mode="same-origin"),Me.withCredentials&&(ur.credentials="include"),Me.referrerPolicy&&(ur.referrerPolicy=Me.referrerPolicy),this._status=c.kConnecting,self.fetch(Nr.url,ur).then(function(Ct){if(yt._requestAbort){yt._requestAbort=!1,yt._status=c.kIdle;return}if(Ct.ok&&Ct.status>=200&&Ct.status<=299){if(Ct.url!==Nr.url&&yt._onURLRedirect){var Ar=yt._seekHandler.removeURLParameters(Ct.url);yt._onURLRedirect(Ar)}var er=Ct.headers.get("Content-Length");return er!=null&&(yt._contentLength=parseInt(er),yt._contentLength!==0&&(yt._onContentLengthKnown&&yt._onContentLengthKnown(yt._contentLength))),yt._pump.call(yt,Ct.body.getReader())}else if(yt._status=c.kError,yt._onError)yt._onError(h.HTTP_STATUS_CODE_INVALID,{code:Ct.status,msg:Ct.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+Ct.status+" "+Ct.statusText)}).catch(function(Ct){if(yt._status=c.kError,yt._onError)yt._onError(h.EXCEPTION,{code:-1,msg:Ct.message});else throw Ct})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Me){var nt=this;return Me.read().then(function(yt){if(yt.done)if(nt._contentLength!==null&&nt._receivedLength<nt._contentLength){nt._status=c.kError;var sr=h.EARLY_EOF,Nr={code:-1,msg:"Fetch stream meet Early-EOF"};if(nt._onError)nt._onError(sr,Nr);else throw new e(Nr.msg)}else nt._status=c.kComplete,nt._onComplete&&nt._onComplete(nt._range.from,nt._range.from+nt._receivedLength-1);else{if(nt._requestAbort===!0)return nt._requestAbort=!1,nt._status=c.kComplete,Me.cancel();nt._status=c.kBuffering;var mn=yt.value.buffer,Yn=nt._range.from+nt._receivedLength;nt._receivedLength+=mn.byteLength,nt._onDataArrival&&nt._onDataArrival(mn,Yn,nt._receivedLength),nt._pump(Me)}}).catch(function(yt){if(yt.code===11&&C.msedge)return;nt._status=c.kError;var sr=0,Nr=null;if((yt.code===19||yt.message==="network error")&&(nt._contentLength===null||nt._contentLength!==null&&nt._receivedLength<nt._contentLength)?(sr=h.EARLY_EOF,Nr={code:yt.code,msg:"Fetch stream meet Early-EOF"}):(sr=h.EXCEPTION,Nr={code:yt.code,msg:yt.message}),nt._onError)nt._onError(sr,Nr);else throw new e(Nr.msg)})}}],[{key:"isSupported",value:function(){try{var Me=C.msedge&&C.version.minor>=15048,nt=C.msedge?Me:!0;return self.fetch&&self.ReadableStream&&nt}catch(yt){return!1}}}]),De}(g),T=_,w=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re,Me){var nt;return Object(y.a)(this,De),nt=wt.call(this,"xhr-moz-chunked-loader"),nt.TAG="MozChunkedLoader",nt._seekHandler=Re,nt._config=Me,nt._needStash=!0,nt._xhr=null,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Me,nt){this._dataSource=Me,this._range=nt;var yt=Me.url;this._config.reuseRedirectedURL&&Me.redirectedURL!=null&&(yt=Me.redirectedURL);var sr=this._seekHandler.getConfig(yt,nt);this._requestURL=sr.url;var Nr=this._xhr=new XMLHttpRequest;if(Nr.open("GET",sr.url,!0),Nr.responseType="moz-chunked-arraybuffer",Nr.onreadystatechange=this._onReadyStateChange.bind(this),Nr.onprogress=this._onProgress.bind(this),Nr.onloadend=this._onLoadEnd.bind(this),Nr.onerror=this._onXhrError.bind(this),Me.withCredentials&&(Nr.withCredentials=!0),typeof sr.headers=="object"){var mn=sr.headers;for(var Yn in mn)mn.hasOwnProperty(Yn)&&Nr.setRequestHeader(Yn,mn[Yn])}if(typeof this._config.headers=="object"){var Jn=this._config.headers;for(var ur in Jn)Jn.hasOwnProperty(ur)&&Nr.setRequestHeader(ur,Jn[ur])}this._status=c.kConnecting,Nr.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Me){var nt=Me.target;if(nt.readyState===2){if(nt.responseURL!=null&&nt.responseURL!==this._requestURL&&this._onURLRedirect){var yt=this._seekHandler.removeURLParameters(nt.responseURL);this._onURLRedirect(yt)}if(nt.status!==0&&(nt.status<200||nt.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+nt.status+" "+nt.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Me){if(this._status===c.kError)return;this._contentLength===null&&(Me.total!==null&&Me.total!==0&&(this._contentLength=Me.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var nt=Me.target.response,yt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,yt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Me){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===c.kError)return;this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Me){this._status=c.kError;var nt=0,yt=null;if(this._contentLength&&Me.loaded<this._contentLength?(nt=h.EARLY_EOF,yt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(nt=h.EXCEPTION,yt={code:-1,msg:Me.constructor.name+" "+Me.type}),this._onError)this._onError(nt,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{var Me=new XMLHttpRequest;return Me.open("GET","https://example.com",!0),Me.responseType="moz-chunked-arraybuffer",Me.responseType==="moz-chunked-arraybuffer"}catch(nt){return u.w("MozChunkedLoader",nt.message),!1}}}]),De}(g),O=w,I=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re,Me){var nt;return Object(y.a)(this,De),nt=wt.call(this,"xhr-msstream-loader"),nt.TAG="MSStreamLoader",nt._seekHandler=Re,nt._config=Me,nt._needStash=!0,nt._xhr=null,nt._reader=null,nt._totalRange=null,nt._currentRange=null,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._contentLength=null,nt._receivedLength=0,nt._bufferLimit=16*1024*1024,nt._lastTimeBufferSize=0,nt._isReconnecting=!1,nt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),Object(v.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Me,nt){this._internalOpen(Me,nt,!1)}},{key:"_internalOpen",value:function(Me,nt,yt){this._dataSource=Me,yt?this._currentRange=nt:this._totalRange=nt;var sr=Me.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?sr=this._currentRedirectedURL:Me.redirectedURL!=null&&(sr=Me.redirectedURL));var Nr=this._seekHandler.getConfig(sr,nt);this._currentRequestURL=Nr.url;var mn=this._reader=new self.MSStreamReader;mn.onprogress=this._msrOnProgress.bind(this),mn.onload=this._msrOnLoad.bind(this),mn.onerror=this._msrOnError.bind(this);var Yn=this._xhr=new XMLHttpRequest;if(Yn.open("GET",Nr.url,!0),Yn.responseType="ms-stream",Yn.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Yn.onerror=this._xhrOnError.bind(this),Me.withCredentials&&(Yn.withCredentials=!0),typeof Nr.headers=="object"){var Jn=Nr.headers;for(var ur in Jn)Jn.hasOwnProperty(ur)&&Yn.setRequestHeader(ur,Jn[ur])}if(typeof this._config.headers=="object"){var Tt=this._config.headers;for(var Ct in Tt)Tt.hasOwnProperty(Ct)&&Yn.setRequestHeader(Ct,Tt[Ct])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,Yn.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Me){var nt=Me.target;if(nt.readyState===2)if(nt.status>=200&&nt.status<=299){if(this._status=c.kBuffering,nt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}var sr=nt.getResponseHeader("Content-Length");if(sr!=null&&this._contentLength==null){var Nr=parseInt(sr);Nr>0&&(this._contentLength=Nr,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+nt.status+" "+nt.statusText);else if(nt.readyState===3&&(nt.status>=200&&nt.status<=299)){this._status=c.kBuffering;var mn=nt.response;this._reader.readAsArrayBuffer(mn)}}},{key:"_xhrOnError",value:function(Me){this._status=c.kError;var nt=h.EXCEPTION,yt={code:-1,msg:Me.constructor.name+" "+Me.type};if(this._onError)this._onError(nt,yt);else throw new e(yt.msg)}},{key:"_msrOnProgress",value:function(Me){var nt=Me.target,yt=nt.result;if(yt==null){this._doReconnectIfNeeded();return}var sr=yt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=yt.byteLength;var Nr=this._totalRange.from+this._receivedLength;this._receivedLength+=sr.byteLength,this._onDataArrival&&this._onDataArrival(sr,Nr,this._receivedLength),yt.byteLength>=this._bufferLimit&&(u.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Nr+sr.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var Me={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Me,!0)}}},{key:"_msrOnLoad",value:function(Me){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Me){this._status=c.kError;var nt=0,yt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(nt=h.EARLY_EOF,yt={code:-1,msg:"MSStream meet Early-Eof"}):(nt=h.EARLY_EOF,yt={code:-1,msg:Me.constructor.name+" "+Me.type}),this._onError)this._onError(nt,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Me=new XMLHttpRequest;return Me.open("GET","https://example.com",!0),Me.responseType="ms-stream",Me.responseType==="ms-stream"}catch(nt){return u.w("MSStreamLoader",nt.message),!1}}}]),De}(g),k=I,M=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(Re,Me){var nt;return Object(y.a)(this,De),nt=wt.call(this,"xhr-range-loader"),nt.TAG="RangeLoader",nt._seekHandler=Re,nt._config=Me,nt._needStash=!1,nt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],nt._currentChunkSizeKB=384,nt._currentSpeedNormalized=0,nt._zeroSpeedChunkCount=0,nt._xhr=null,nt._speedSampler=new i,nt._requestAbort=!1,nt._waitForTotalLength=!1,nt._totalLengthReceived=!1,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._currentRequestRange=null,nt._totalLength=null,nt._contentLength=null,nt._receivedLength=0,nt._lastTimeLoaded=0,nt}return Object(f.a)(De,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),Object(v.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Me,nt){this._dataSource=Me,this._range=nt,this._status=c.kConnecting;var yt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(yt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!yt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Me=this._currentChunkSizeKB*1024,nt=this._range.from+this._receivedLength,yt=nt+Me;this._contentLength!=null&&(yt-this._range.from>=this._contentLength&&(yt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:nt,to:yt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Me,nt){this._lastTimeLoaded=0;var yt=Me.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?yt=this._currentRedirectedURL:Me.redirectedURL!=null&&(yt=Me.redirectedURL));var sr=this._seekHandler.getConfig(yt,nt);this._currentRequestURL=sr.url;var Nr=this._xhr=new XMLHttpRequest;if(Nr.open("GET",sr.url,!0),Nr.responseType="arraybuffer",Nr.onreadystatechange=this._onReadyStateChange.bind(this),Nr.onprogress=this._onProgress.bind(this),Nr.onload=this._onLoad.bind(this),Nr.onerror=this._onXhrError.bind(this),Me.withCredentials&&(Nr.withCredentials=!0),typeof sr.headers=="object"){var mn=sr.headers;for(var Yn in mn)mn.hasOwnProperty(Yn)&&Nr.setRequestHeader(Yn,mn[Yn])}if(typeof this._config.headers=="object"){var Jn=this._config.headers;for(var ur in Jn)Jn.hasOwnProperty(ur)&&Nr.setRequestHeader(ur,Jn[ur])}Nr.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=c.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Me){var nt=Me.target;if(nt.readyState===2){if(nt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}if(nt.status>=200&&nt.status<=299){if(this._waitForTotalLength)return;this._status=c.kBuffering}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("RangeLoader: Http code invalid, "+nt.status+" "+nt.statusText)}}},{key:"_onProgress",value:function(Me){if(this._status===c.kError)return;if(this._contentLength===null){var nt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,nt=!0;var yt=Me.total;this._internalAbort(),yt!=null&yt!==0&&(this._totalLength=yt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,nt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var sr=Me.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Me.loaded,this._speedSampler.addBytes(sr)}},{key:"_normalizeSpeed",value:function(Me){var nt=this._chunkSizeKBList,yt=nt.length-1,sr=0,Nr=0,mn=yt;if(Me<nt[0])return nt[0];for(;Nr<=mn;){if(sr=Nr+Math.floor((mn-Nr)/2),sr===yt||Me>=nt[sr]&&Me<nt[sr+1])return nt[sr];nt[sr]<Me?Nr=sr+1:mn=sr-1}}},{key:"_onLoad",value:function(Me){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var nt=this._speedSampler.lastSecondKBps;if(nt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(nt=this._speedSampler.currentKBps)),nt!==0){var yt=this._normalizeSpeed(nt);this._currentSpeedNormalized!==yt&&(this._currentSpeedNormalized=yt,this._currentChunkSizeKB=yt)}var sr=Me.target.response,Nr=this._range.from+this._receivedLength;this._receivedLength+=sr.byteLength;var mn=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():mn=!0,this._onDataArrival&&this._onDataArrival(sr,Nr,this._receivedLength),mn&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Me){this._status=c.kError;var nt=0,yt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(nt=h.EARLY_EOF,yt={code:-1,msg:"RangeLoader meet Early-Eof"}):(nt=h.EXCEPTION,yt={code:-1,msg:Me.constructor.name+" "+Me.type}),this._onError)this._onError(nt,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{var Me=new XMLHttpRequest;return Me.open("GET","https://example.com",!0),Me.responseType="arraybuffer",Me.responseType==="arraybuffer"}catch(nt){return u.w("RangeLoader",nt.message),!1}}}]),De}(g),U=M,P=function(Xt){Object(t.a)(De,Xt);var wt=Object(s.a)(De);function De(){var Re;return Object(y.a)(this,De),Re=wt.call(this,"websocket-loader"),Re.TAG="WebSocketLoader",Re._needStash=!0,Re._ws=null,Re._requestAbort=!1,Re._receivedLength=0,Re}return Object(f.a)(De,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(v.a)(Object(b.a)(De.prototype),"destroy",this).call(this)}},{key:"open",value:function(Me){try{var nt=this._ws=new self.WebSocket(Me.url);nt.binaryType="arraybuffer",nt.onopen=this._onWebSocketOpen.bind(this),nt.onclose=this._onWebSocketClose.bind(this),nt.onmessage=this._onWebSocketMessage.bind(this),nt.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(sr){this._status=c.kError;var yt={code:sr.code,msg:sr.message};if(this._onError)this._onError(h.EXCEPTION,yt);else throw new e(yt.msg)}}},{key:"abort",value:function(){var Me=this._ws;Me&&(Me.readyState===0||Me.readyState===1)&&(this._requestAbort=!0,Me.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Me){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Me){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Me){var nt=this;if(Me.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Me.data);else if(Me.data instanceof Blob){var yt=new FileReader;yt.onload=function(){nt._dispatchArrayBuffer(yt.result)},yt.readAsArrayBuffer(Me.data)}else{this._status=c.kError;var sr={code:-1,msg:"Unsupported WebSocket message type: "+Me.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,sr);else throw new e(sr.msg)}}},{key:"_dispatchArrayBuffer",value:function(Me){var nt=Me,yt=this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,yt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Me){this._status=c.kError;var nt={code:Me.code,msg:Me.message};if(this._onError)this._onError(h.EXCEPTION,nt);else throw new e(nt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Me){return!1}}}]),De}(g),X=P,F=function(){function Xt(wt){Object(y.a)(this,Xt),this._zeroStart=wt||!1}return Object(f.a)(Xt,[{key:"getConfig",value:function(De,Re){var Me={};if(Re.from!==0||Re.to!==-1){var nt;Re.to!==-1?nt="bytes=".concat(Re.from.toString(),"-").concat(Re.to.toString()):nt="bytes=".concat(Re.from.toString(),"-"),Me.Range=nt}else this._zeroStart&&(Me.Range="bytes=0-");return{url:De,headers:Me}}},{key:"removeURLParameters",value:function(De){return De}}]),Xt}(),j=F,K=function(){function Xt(wt,De){Object(y.a)(this,Xt),this._startName=wt,this._endName=De}return Object(f.a)(Xt,[{key:"getConfig",value:function(De,Re){var Me=De;if(Re.from!==0||Re.to!==-1){var nt=!0;Me.indexOf("?")===-1&&(Me+="?",nt=!1),nt&&(Me+="&"),Me+="".concat(this._startName,"=").concat(Re.from.toString()),Re.to!==-1&&(Me+="&".concat(this._endName,"=").concat(Re.to.toString()))}return{url:Me,headers:{}}}},{key:"removeURLParameters",value:function(De){var Re=De.split("?")[0],Me=void 0,nt=De.indexOf("?");nt!==-1&&(Me=De.substring(nt+1));var yt="";if(Me!=null&&Me.length>0)for(var sr=Me.split("&"),Nr=0;Nr<sr.length;Nr++){var mn=sr[Nr].split("="),Yn=Nr>0;mn[0]!==this._startName&&mn[0]!==this._endName&&(Yn&&(yt+="&"),yt+=sr[Nr])}return yt.length===0?Re:Re+"?"+yt}}]),Xt}(),z=K,V=function(){function Xt(wt,De,Re){Object(y.a)(this,Xt),this.TAG="IOController",this._config=De,this._extraData=Re,this._stashInitialSize=1024*384,De.stashInitialSize!=null&&De.stashInitialSize>0&&(this._stashInitialSize=De.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,De.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=wt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(wt.url),this._refTotalLength=wt.filesize?wt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new i,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(De){this._extraData=De}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(De){this._onDataArrival=De}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(De){this._onSeeked=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onComplete",get:function(){return this._onComplete},set:function(De){this._onComplete=De}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(De){this._onRedirect=De}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(De){this._onRecoveredEarlyEof=De}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===U?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var De=this._config;if(De.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(De.seekType==="param"){var Re=De.seekParamStart||"bstart",Me=De.seekParamEnd||"bend";this._seekHandler=new z(Re,Me)}else if(De.seekType==="custom"){if(typeof De.customSeekHandler!="function")throw new n("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new De.customSeekHandler}else throw new n("Invalid seekType in config: ".concat(De.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(T.isSupported())this._loaderClass=T;else if(O.isSupported())this._loaderClass=O;else if(U.isSupported())this._loaderClass=U;else throw new e("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(De){this._currentRange={from:0,to:-1},De&&(this._currentRange.from=De),this._speedSampler.reset(),De||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var De=this._resumeFrom;this._resumeFrom=0,this._internalSeek(De,!0)}}},{key:"seek",value:function(De){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(De,!0)}},{key:"_internalSeek",value:function(De,Re){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Re),this._loader.destroy(),this._loader=null;var Me={from:De,to:-1};this._currentRange={from:Me.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Me),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(De){if(!De||typeof De!="string"||De.length===0)throw new n("Url must be a non-empty string!");this._dataSource.url=De}},{key:"_expandBuffer",value:function(De){for(var Re=this._stashSize;Re+1024*1024*1<De;)Re*=2;if(Re+=1024*1024*1,Re===this._bufferSize)return;var Me=new ArrayBuffer(Re);if(this._stashUsed>0){var nt=new Uint8Array(this._stashBuffer,0,this._stashUsed),yt=new Uint8Array(Me,0,Re);yt.set(nt,0)}this._stashBuffer=Me,this._bufferSize=Re}},{key:"_normalizeSpeed",value:function(De){var Re=this._speedNormalizeList,Me=Re.length-1,nt=0,yt=0,sr=Me;if(De<Re[0])return Re[0];for(;yt<=sr;){if(nt=yt+Math.floor((sr-yt)/2),nt===Me||De>=Re[nt]&&De<Re[nt+1])return Re[nt];Re[nt]<De?yt=nt+1:sr=nt-1}}},{key:"_adjustStashSize",value:function(De){var Re=0;this._config.isLive||De<512?Re=De:De>=512&&De<=1024?Re=Math.floor(De*1.5):Re=De*2,Re>8192&&(Re=8192);var Me=Re*1024+1024*1024*1;this._bufferSize<Me&&this._expandBuffer(Me),this._stashSize=Re*1024}},{key:"_dispatchChunks",value:function(De,Re){return this._currentRange.to=Re+De.byteLength-1,this._onDataArrival(De,Re)}},{key:"_onURLRedirect",value:function(De){this._redirectedURL=De,this._onRedirect&&this._onRedirect(De)}},{key:"_onContentLengthKnown",value:function(De){De&&this._fullRequestFlag&&(this._totalLength=De,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(De,Re,Me){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(De.byteLength);var nt=this._speedSampler.lastSecondKBps;if(nt!==0){var yt=this._normalizeSpeed(nt);this._speedNormalized!==yt&&(this._speedNormalized=yt,this._adjustStashSize(yt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Re),this._stashUsed+De.byteLength<=this._stashSize){var Tt=new Uint8Array(this._stashBuffer,0,this._stashSize);Tt.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var Ct=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Ar=this._stashBuffer.slice(0,this._stashUsed),er=this._dispatchChunks(Ar,this._stashByteStart);if(er<Ar.byteLength){if(er>0){var Ft=new Uint8Array(Ar,er);Ct.set(Ft,0),this._stashUsed=Ft.byteLength,this._stashByteStart+=er}}else this._stashUsed=0,this._stashByteStart+=er;this._stashUsed+De.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+De.byteLength),Ct=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ct.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength}else{var ir=this._dispatchChunks(De,Re);if(ir<De.byteLength){var Pt=De.byteLength-ir;Pt>this._bufferSize&&(this._expandBuffer(Pt),Ct=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ct.set(new Uint8Array(De,ir),0),this._stashUsed+=Pt,this._stashByteStart=Re+ir}}}else if(this._stashUsed===0){var sr=this._dispatchChunks(De,Re);if(sr<De.byteLength){var Nr=De.byteLength-sr;Nr>this._bufferSize&&this._expandBuffer(Nr);var mn=new Uint8Array(this._stashBuffer,0,this._bufferSize);mn.set(new Uint8Array(De,sr),0),this._stashUsed+=Nr,this._stashByteStart=Re+sr}}else{this._stashUsed+De.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+De.byteLength);var Yn=new Uint8Array(this._stashBuffer,0,this._bufferSize);Yn.set(new Uint8Array(De),this._stashUsed),this._stashUsed+=De.byteLength;var Jn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Jn<this._stashUsed&&Jn>0){var ur=new Uint8Array(this._stashBuffer,Jn);Yn.set(ur,0)}this._stashUsed-=Jn,this._stashByteStart+=Jn}}},{key:"_flushStashBuffer",value:function(De){if(this._stashUsed>0){var Re=this._stashBuffer.slice(0,this._stashUsed),Me=this._dispatchChunks(Re,this._stashByteStart),nt=Re.byteLength-Me;if(Me<Re.byteLength)if(De)u.w(this.TAG,"".concat(nt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Me>0){var yt=new Uint8Array(this._stashBuffer,0,this._bufferSize),sr=new Uint8Array(Re,Me);yt.set(sr,0),this._stashUsed=sr.byteLength,this._stashByteStart+=Me}return 0}return this._stashUsed=0,this._stashByteStart=0,nt}return 0}},{key:"_onLoaderComplete",value:function(De,Re){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(De,Re){u.e(this.TAG,"Loader error, code = ".concat(Re.code,", msg = ").concat(Re.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,De=h.UNRECOVERABLE_EARLY_EOF);switch(De){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Me=this._currentRange.to+1;Me<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Me,!1));return}De=h.UNRECOVERABLE_EARLY_EOF;break}case h.UNRECOVERABLE_EARLY_EOF:case h.CONNECTING_TIMEOUT:case h.HTTP_STATUS_CODE_INVALID:case h.EXCEPTION:break}if(this._onError)this._onError(De,Re);else throw new e("IOException: "+Re.msg)}}]),Xt}(),Q=V,G={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function ee(){return Object.assign({},G)}var se=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var De=new Q({},ee()),Re=De.loaderType;return De.destroy(),Re=="fetch-stream-loader"||Re=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var De=new Q({},ee()),Re=De.loaderType;return De.destroy(),Re}},{key:"supportNativeMediaPlayback",value:function(De){Xt.videoElement==null&&(Xt.videoElement=window.document.createElement("video"));var Re=Xt.videoElement.canPlayType(De);return Re==="probably"||Re=="maybe"}},{key:"getFeatureList",value:function(){var De={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return De.mseFlvPlayback=Xt.supportMSEH264Playback(),De.networkStreamIO=Xt.supportNetworkStreamIO(),De.networkLoaderName=Xt.getNetworkLoaderTypeName(),De.mseLiveFlvPlayback=De.mseFlvPlayback&&De.networkStreamIO,De.nativeMP4H264Playback=Xt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),De.nativeWebmVP8Playback=Xt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),De.nativeWebmVP9Playback=Xt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),De}}]),Xt}(),ye=se,he={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},ke=he,Pe=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"forceGlobalTag",get:function(){return u.FORCE_GLOBAL_TAG},set:function(De){u.FORCE_GLOBAL_TAG=De,Xt._notifyChange()}},{key:"globalTag",get:function(){return u.GLOBAL_TAG},set:function(De){u.GLOBAL_TAG=De,Xt._notifyChange()}},{key:"enableAll",get:function(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR},set:function(De){u.ENABLE_VERBOSE=De,u.ENABLE_DEBUG=De,u.ENABLE_INFO=De,u.ENABLE_WARN=De,u.ENABLE_ERROR=De,Xt._notifyChange()}},{key:"enableDebug",get:function(){return u.ENABLE_DEBUG},set:function(De){u.ENABLE_DEBUG=De,Xt._notifyChange()}},{key:"enableVerbose",get:function(){return u.ENABLE_VERBOSE},set:function(De){u.ENABLE_VERBOSE=De,Xt._notifyChange()}},{key:"enableInfo",get:function(){return u.ENABLE_INFO},set:function(De){u.ENABLE_INFO=De,Xt._notifyChange()}},{key:"enableWarn",get:function(){return u.ENABLE_WARN},set:function(De){u.ENABLE_WARN=De,Xt._notifyChange()}},{key:"enableError",get:function(){return u.ENABLE_ERROR},set:function(De){u.ENABLE_ERROR=De,Xt._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(De){u.GLOBAL_TAG=De.globalTag,u.FORCE_GLOBAL_TAG=De.forceGlobalTag,u.ENABLE_VERBOSE=De.enableVerbose,u.ENABLE_DEBUG=De.enableDebug,u.ENABLE_INFO=De.enableInfo,u.ENABLE_WARN=De.enableWarn,u.ENABLE_ERROR=De.enableError,u.ENABLE_CALLBACK=De.enableCallback}},{key:"_notifyChange",value:function(){var De=Xt.emitter;if(De.listenerCount("change")>0){var Re=Xt.getConfig();De.emit("change",Re)}}},{key:"registerListener",value:function(De){Xt.emitter.addListener("change",De)}},{key:"removeListener",value:function(De){Xt.emitter.removeListener("change",De)}},{key:"addLogListener",value:function(De){u.emitter.addListener("log",De),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,Xt._notifyChange())}},{key:"removeLogListener",value:function(De){u.emitter.removeListener("log",De),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,Xt._notifyChange())}}]),Xt}();Pe.emitter=new p.a;var Ue=Pe,$e=function(){function Xt(){Object(y.a)(this,Xt),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(f.a)(Xt,[{key:"isComplete",value:function(){var De=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Re=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&De&&Re}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(De){if(this.keyframesIndex==null)return null;var Re=this.keyframesIndex,Me=this._search(Re.times,De);return{index:Me,milliseconds:Re.times[Me],fileposition:Re.filepositions[Me]}}},{key:"_search",value:function(De,Re){var Me=0,nt=De.length-1,yt=0,sr=0,Nr=nt;for(Re<De[0]&&(Me=0,sr=Nr+1);sr<=Nr;)if(yt=sr+Math.floor((Nr-sr)/2),yt===nt||Re>=De[yt]&&Re<De[yt+1]){Me=yt;break}else De[yt]<Re?sr=yt+1:Nr=yt-1;return Me}}]),Xt}(),Ge=$e;function ht(Xt,wt,De){var Re=Xt;if(wt+De<Re.length){for(;De--;)if((Re[++wt]&192)!==128)return!1;return!0}else return!1}function Fe(Xt){for(var wt=[],De=Xt,Re=0,Me=Xt.length;Re<Me;){if(De[Re]<128){wt.push(String.fromCharCode(De[Re])),++Re;continue}else if(!(De[Re]<192)){if(De[Re]<224){if(ht(De,Re,1)){var nt=(De[Re]&31)<<6|De[Re+1]&63;if(nt>=128){wt.push(String.fromCharCode(nt&65535)),Re+=2;continue}}}else if(De[Re]<240){if(ht(De,Re,2)){var yt=(De[Re]&15)<<12|(De[Re+1]&63)<<6|De[Re+2]&63;if(yt>=2048&&(yt&63488)!==55296){wt.push(String.fromCharCode(yt&65535)),Re+=3;continue}}}else if(De[Re]<248&&ht(De,Re,3)){var sr=(De[Re]&7)<<18|(De[Re+1]&63)<<12|(De[Re+2]&63)<<6|De[Re+3]&63;if(sr>65536&&sr<1114112){sr-=65536,wt.push(String.fromCharCode(sr>>>10|55296)),wt.push(String.fromCharCode(sr&1023|56320)),Re+=4;continue}}}wt.push(String.fromCharCode(65533)),++Re}return wt.join("")}var oe=Fe,rt=function(){var Xt=new ArrayBuffer(2);return new DataView(Xt).setInt16(0,256,!0),new Int16Array(Xt)[0]===256}(),fe=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"parseScriptData",value:function(De,Re,Me){var nt={};try{var yt=Xt.parseValue(De,Re,Me),sr=Xt.parseValue(De,Re+yt.size,Me-yt.size);nt[yt.data]=sr.data}catch(Nr){u.e("AMF",Nr.toString())}return nt}},{key:"parseObject",value:function(De,Re,Me){if(Me<3)throw new l("Data not enough when parse ScriptDataObject");var nt=Xt.parseString(De,Re,Me),yt=Xt.parseValue(De,Re+nt.size,Me-nt.size),sr=yt.objectEnd;return{data:{name:nt.data,value:yt.data},size:nt.size+yt.size,objectEnd:sr}}},{key:"parseVariable",value:function(De,Re,Me){return Xt.parseObject(De,Re,Me)}},{key:"parseString",value:function(De,Re,Me){if(Me<2)throw new l("Data not enough when parse String");var nt=new DataView(De,Re,Me),yt=nt.getUint16(0,!rt),sr;return yt>0?sr=oe(new Uint8Array(De,Re+2,yt)):sr="",{data:sr,size:2+yt}}},{key:"parseLongString",value:function(De,Re,Me){if(Me<4)throw new l("Data not enough when parse LongString");var nt=new DataView(De,Re,Me),yt=nt.getUint32(0,!rt),sr;return yt>0?sr=oe(new Uint8Array(De,Re+4,yt)):sr="",{data:sr,size:4+yt}}},{key:"parseDate",value:function(De,Re,Me){if(Me<10)throw new l("Data size invalid when parse Date");var nt=new DataView(De,Re,Me),yt=nt.getFloat64(0,!rt),sr=nt.getInt16(8,!rt);return yt+=sr*60*1e3,{data:new Date(yt),size:8+2}}},{key:"parseValue",value:function(De,Re,Me){if(Me<1)throw new l("Data not enough when parse Value");var nt=new DataView(De,Re,Me),yt=1,sr=nt.getUint8(0),Nr,mn=!1;try{switch(sr){case 0:Nr=nt.getFloat64(1,!rt),yt+=8;break;case 1:{var Yn=nt.getUint8(1);Nr=!!Yn,yt+=1;break}case 2:{var Jn=Xt.parseString(De,Re+1,Me-1);Nr=Jn.data,yt+=Jn.size;break}case 3:{Nr={};var ur=0;for((nt.getUint32(Me-4,!rt)&16777215)===9&&(ur=3);yt<Me-4;){var Tt=Xt.parseObject(De,Re+yt,Me-yt-ur);if(Tt.objectEnd)break;Nr[Tt.data.name]=Tt.data.value,yt+=Tt.size}if(yt<=Me-3){var Ct=nt.getUint32(yt-1,!rt)&16777215;Ct===9&&(yt+=3)}break}case 8:{Nr={},yt+=4;var Ar=0;for((nt.getUint32(Me-4,!rt)&16777215)===9&&(Ar=3);yt<Me-8;){var er=Xt.parseVariable(De,Re+yt,Me-yt-Ar);if(er.objectEnd)break;Nr[er.data.name]=er.data.value,yt+=er.size}if(yt<=Me-3){var Ft=nt.getUint32(yt-1,!rt)&16777215;Ft===9&&(yt+=3)}break}case 9:Nr=void 0,yt=1,mn=!0;break;case 10:{Nr=[];var ir=nt.getUint32(1,!rt);yt+=4;for(var Pt=0;Pt<ir;Pt++){var rr=Xt.parseValue(De,Re+yt,Me-yt);Nr.push(rr.data),yt+=rr.size}break}case 11:{var Yr=Xt.parseDate(De,Re+1,Me-1);Nr=Yr.data,yt+=Yr.size;break}case 12:{var Pr=Xt.parseString(De,Re+1,Me-1);Nr=Pr.data,yt+=Pr.size;break}default:yt=Me,u.w("AMF","Unsupported AMF value type "+sr)}}catch(Mr){u.e("AMF",Mr.toString())}return{data:Nr,size:yt,objectEnd:mn}}}]),Xt}(),J=fe,Y=function(){function Xt(wt){Object(y.a)(this,Xt),this.TAG="ExpGolomb",this._buffer=wt,this._buffer_index=0,this._total_bytes=wt.byteLength,this._total_bits=wt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var De=this._total_bytes-this._buffer_index;if(De<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Re=Math.min(4,De),Me=new Uint8Array(4);Me.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Re)),this._current_word=new DataView(Me.buffer).getUint32(0,!1),this._buffer_index+=Re,this._current_word_bits_left=Re*8}},{key:"readBits",value:function(De){if(De>32)throw new n("ExpGolomb: readBits() bits exceeded max 32bits!");if(De<=this._current_word_bits_left){var Re=this._current_word>>>32-De;return this._current_word<<=De,this._current_word_bits_left-=De,Re}var Me=this._current_word_bits_left?this._current_word:0;Me=Me>>>32-this._current_word_bits_left;var nt=De-this._current_word_bits_left;this._fillCurrentWord();var yt=Math.min(nt,this._current_word_bits_left),sr=this._current_word>>>32-yt;return this._current_word<<=yt,this._current_word_bits_left-=yt,Me=Me<<yt|sr,Me}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var De;for(De=0;De<this._current_word_bits_left;De++)if((this._current_word&2147483648>>>De)!==0)return this._current_word<<=De,this._current_word_bits_left-=De,De;return this._fillCurrentWord(),De+this._skipLeadingZero()}},{key:"readUEG",value:function(){var De=this._skipLeadingZero();return this.readBits(De+1)-1}},{key:"readSEG",value:function(){var De=this.readUEG();return De&1?De+1>>>1:-1*(De>>>1)}}]),Xt}(),$=Y,de=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"_ebsp2rbsp",value:function(De){for(var Re=De,Me=Re.byteLength,nt=new Uint8Array(Me),yt=0,sr=0;sr<Me;sr++){if(sr>=2&&(Re[sr]===3&&Re[sr-1]===0&&Re[sr-2]===0))continue;nt[yt]=Re[sr],yt++}return new Uint8Array(nt.buffer,0,yt)}},{key:"parseSPS",value:function(De){var Re=Xt._ebsp2rbsp(De),Me=new $(Re);Me.readByte();var nt=Me.readByte();Me.readByte();var yt=Me.readByte();Me.readUEG();var sr=Xt.getProfileString(nt),Nr=Xt.getLevelString(yt),mn=1,Yn=420,Jn=[0,420,422,444],ur=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&(mn=Me.readUEG(),mn===3&&Me.readBits(1),mn<=3&&(Yn=Jn[mn]),ur=Me.readUEG()+8,Me.readUEG(),Me.readBits(1),Me.readBool()))for(var Tt=mn!==3?8:12,Ct=0;Ct<Tt;Ct++)Me.readBool()&&(Ct<6?Xt._skipScalingList(Me,16):Xt._skipScalingList(Me,64));Me.readUEG();var Ar=Me.readUEG();if(Ar===0)Me.readUEG();else if(Ar===1){Me.readBits(1),Me.readSEG(),Me.readSEG();for(var er=Me.readUEG(),Ft=0;Ft<er;Ft++)Me.readSEG()}var ir=Me.readUEG();Me.readBits(1);var Pt=Me.readUEG(),rr=Me.readUEG(),Yr=Me.readBits(1);Yr===0&&Me.readBits(1),Me.readBits(1);var Pr=0,Mr=0,fn=0,wn=0,ai=Me.readBool();ai&&(Pr=Me.readUEG(),Mr=Me.readUEG(),fn=Me.readUEG(),wn=Me.readUEG());var ri=1,gi=1,Ii=0,Mi=!0,Qi=0,ot=0,Ne=Me.readBool();if(Ne){if(Me.readBool()){var He=Me.readByte(),Ye=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],at=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];He>0&&He<16?(ri=Ye[He-1],gi=at[He-1]):He===255&&(ri=Me.readByte()<<8|Me.readByte(),gi=Me.readByte()<<8|Me.readByte())}if(Me.readBool()&&Me.readBool(),Me.readBool()&&(Me.readBits(4),Me.readBool()&&Me.readBits(24)),Me.readBool()&&(Me.readUEG(),Me.readUEG()),Me.readBool()){var qe=Me.readBits(32),lt=Me.readBits(32);Mi=Me.readBool(),Qi=lt,ot=qe*2,Ii=Qi/ot}}var Et=1;(ri!==1||gi!==1)&&(Et=ri/gi);var At=0,fr=0;if(mn===0)At=1,fr=2-Yr;else{var Jr=mn===3?1:2,Vr=mn===1?2:1;At=Jr,fr=Vr*(2-Yr)}var dn=(Pt+1)*16,gr=(2-Yr)*((rr+1)*16);dn-=(Pr+Mr)*At,gr-=(fn+wn)*fr;var Wn=Math.ceil(dn*Et);return Me.destroy(),Me=null,{profile_string:sr,level_string:Nr,bit_depth:ur,ref_frames:ir,chroma_format:Yn,chroma_format_string:Xt.getChromaFormatString(Yn),frame_rate:{fixed:Mi,fps:Ii,fps_den:ot,fps_num:Qi},sar_ratio:{width:ri,height:gi},codec_size:{width:dn,height:gr},present_size:{width:Wn,height:gr}}}},{key:"_skipScalingList",value:function(De,Re){for(var Me=8,nt=8,yt=0,sr=0;sr<Re;sr++)nt!==0&&(yt=De.readSEG(),nt=(Me+yt+256)%256),Me=nt===0?Me:nt}},{key:"getProfileString",value:function(De){switch(De){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(De){return(De/10).toFixed(1)}},{key:"getChromaFormatString",value:function(De){switch(De){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Xt}(),we=de,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Se=Ce;function le(Xt){return Xt>>>8&255|(Xt&255)<<8}function pe(Xt){return(Xt&4278190080)>>>24|(Xt&16711680)>>>8|(Xt&65280)<<8|(Xt&255)<<24}function _e(Xt,wt){return Xt[wt]<<24|Xt[wt+1]<<16|Xt[wt+2]<<8|Xt[wt+3]}var tt=function(){function Xt(wt,De){Object(y.a)(this,Xt),this.TAG="FLVDemuxer",this._config=De,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=wt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=wt.hasAudioTrack,this._hasVideo=wt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ge,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var Re=new ArrayBuffer(2);return new DataView(Re).setInt16(0,256,!0),new Int16Array(Re)[0]===256}()}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(De){return De.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(De){this._onTrackMetadata=De}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(De){this._onMediaInfo=De}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(De){this._onMetaDataArrived=De}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(De){this._onScriptDataArrived=De}},{key:"onError",get:function(){return this._onError},set:function(De){this._onError=De}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(De){this._onDataAvailable=De}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(De){this._timestampBase=De}},{key:"overridedDuration",get:function(){return this._duration},set:function(De){this._durationOverrided=!0,this._duration=De,this._mediaInfo.duration=De}},{key:"overridedHasAudio",set:function(De){this._hasAudioFlagOverrided=!0,this._hasAudio=De,this._mediaInfo.hasAudio=De}},{key:"overridedHasVideo",set:function(De){this._hasVideoFlagOverrided=!0,this._hasVideo=De,this._mediaInfo.hasVideo=De}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Ge}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(De,Re){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Me=0,nt=this._littleEndian;if(Re===0)if(De.byteLength>13){var yt=Xt.probe(De);Me=yt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Re+Me!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var sr=new DataView(De,Me),Nr=sr.getUint32(0,!nt);Nr!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Me+=4}for(;Me<De.byteLength;){this._dispatch=!0;var mn=new DataView(De,Me);if(Me+11+4>De.byteLength)break;var Yn=mn.getUint8(0),Jn=mn.getUint32(0,!nt)&16777215;if(Me+11+Jn+4>De.byteLength)break;if(Yn!==8&&Yn!==9&&Yn!==18){u.w(this.TAG,"Unsupported tag type ".concat(Yn,", skipped")),Me+=11+Jn+4;continue}var ur=mn.getUint8(4),Tt=mn.getUint8(5),Ct=mn.getUint8(6),Ar=mn.getUint8(7),er=Ct|Tt<<8|ur<<16|Ar<<24,Ft=mn.getUint32(7,!nt)&16777215;Ft!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var ir=Me+11;switch(Yn){case 8:this._parseAudioData(De,ir,Jn,er);break;case 9:this._parseVideoData(De,ir,Jn,er,Re+Me);break;case 18:this._parseScriptData(De,ir,Jn);break}var Pt=mn.getUint32(11+Jn,!nt);Pt!==11+Jn&&u.w(this.TAG,"Invalid PrevTagSize ".concat(Pt)),Me+=11+Jn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Me}},{key:"_parseScriptData",value:function(De,Re,Me){var nt=J.parseScriptData(De,Re,Me);if(nt.hasOwnProperty("onMetaData")){if(nt.onMetaData==null||typeof nt.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=nt;var yt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},yt)),typeof yt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=yt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof yt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=yt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof yt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=yt.audiodatarate),typeof yt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=yt.videodatarate),typeof yt.width=="number"&&(this._mediaInfo.width=yt.width),typeof yt.height=="number"&&(this._mediaInfo.height=yt.height),typeof yt.duration=="number"){if(!this._durationOverrided){var sr=Math.floor(yt.duration*this._timescale);this._duration=sr,this._mediaInfo.duration=sr}}else this._mediaInfo.duration=0;if(typeof yt.framerate=="number"){var Nr=Math.floor(yt.framerate*1e3);if(Nr>0){var mn=Nr/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=mn,this._referenceFrameRate.fps_num=Nr,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=mn}}if(typeof yt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Yn=yt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Yn),yt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=yt,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(nt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},nt)))}},{key:"_parseKeyframesIndex",value:function(De){for(var Re=[],Me=[],nt=1;nt<De.times.length;nt++){var yt=this._timestampBase+Math.floor(De.times[nt]*1e3);Re.push(yt),Me.push(De.filepositions[nt])}return{times:Re,filepositions:Me}}},{key:"_parseAudioData",value:function(De,Re,Me,nt){if(Me<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var yt=this._littleEndian,sr=new DataView(De,Re,Me),Nr=sr.getUint8(0),mn=Nr>>>4;if(mn!==2&&mn!==10){this._onError(Se.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+mn);return}var Yn=0,Jn=(Nr&12)>>>2;if(Jn>=0&&Jn<=4)Yn=this._flvSoundRateTable[Jn];else{this._onError(Se.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Jn);return}var ur=(Nr&2)>>>1,Tt=Nr&1,Ct=this._audioMetadata,Ar=this._audioTrack;if(Ct||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ct=this._audioMetadata={},Ct.type="audio",Ct.id=Ar.id,Ct.timescale=this._timescale,Ct.duration=this._duration,Ct.audioSampleRate=Yn,Ct.channelCount=Tt===0?1:2),mn===10){var er=this._parseAACAudioData(De,Re+1,Me-1);if(er==null)return;if(er.packetType===0){Ct.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var Ft=er.data;Ct.audioSampleRate=Ft.samplingRate,Ct.channelCount=Ft.channelCount,Ct.codec=Ft.codec,Ct.originalCodec=Ft.originalCodec,Ct.config=Ft.config,Ct.refSampleDuration=1024/Ct.audioSampleRate*Ct.timescale,u.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Ct);var ir=this._mediaInfo;ir.audioCodec=Ct.originalCodec,ir.audioSampleRate=Ct.audioSampleRate,ir.audioChannelCount=Ct.channelCount,ir.hasVideo?ir.videoCodec!=null&&(ir.mimeType='video/x-flv; codecs="'+ir.videoCodec+","+ir.audioCodec+'"'):ir.mimeType='video/x-flv; codecs="'+ir.audioCodec+'"',ir.isComplete()&&this._onMediaInfo(ir)}else if(er.packetType===1){var Pt=this._timestampBase+nt,rr={unit:er.data,length:er.data.byteLength,dts:Pt,pts:Pt};Ar.samples.push(rr),Ar.length+=er.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(er.packetType))}else if(mn===2){if(!Ct.codec){var Yr=this._parseMP3AudioData(De,Re+1,Me-1,!0);if(Yr==null)return;Ct.audioSampleRate=Yr.samplingRate,Ct.channelCount=Yr.channelCount,Ct.codec=Yr.codec,Ct.originalCodec=Yr.originalCodec,Ct.refSampleDuration=1152/Ct.audioSampleRate*Ct.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ct);var Pr=this._mediaInfo;Pr.audioCodec=Ct.codec,Pr.audioSampleRate=Ct.audioSampleRate,Pr.audioChannelCount=Ct.channelCount,Pr.audioDataRate=Yr.bitRate,Pr.hasVideo?Pr.videoCodec!=null&&(Pr.mimeType='video/x-flv; codecs="'+Pr.videoCodec+","+Pr.audioCodec+'"'):Pr.mimeType='video/x-flv; codecs="'+Pr.audioCodec+'"',Pr.isComplete()&&this._onMediaInfo(Pr)}var Mr=this._parseMP3AudioData(De,Re+1,Me-1,!1);if(Mr==null)return;var fn=this._timestampBase+nt,wn={unit:Mr,length:Mr.byteLength,dts:fn,pts:fn};Ar.samples.push(wn),Ar.length+=Mr.length}}},{key:"_parseAACAudioData",value:function(De,Re,Me){if(Me<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var nt={},yt=new Uint8Array(De,Re,Me);return nt.packetType=yt[0],yt[0]===0?nt.data=this._parseAACAudioSpecificConfig(De,Re+1,Me-1):nt.data=yt.subarray(1),nt}},{key:"_parseAACAudioSpecificConfig",value:function(De,Re,Me){var nt=new Uint8Array(De,Re,Me),yt=null,sr=0,Nr=0,mn=null,Yn=0,Jn=null;if(sr=Nr=nt[0]>>>3,Yn=(nt[0]&7)<<1|nt[1]>>>7,Yn<0||Yn>=this._mpegSamplingRates.length){this._onError(Se.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var ur=this._mpegSamplingRates[Yn],Tt=(nt[1]&120)>>>3;if(Tt<0||Tt>=8){this._onError(Se.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}sr===5&&(Jn=(nt[1]&7)<<1|nt[2]>>>7,mn=(nt[2]&124)>>>2);var Ct=self.navigator.userAgent.toLowerCase();return Ct.indexOf("firefox")!==-1?Yn>=6?(sr=5,yt=new Array(4),Jn=Yn-3):(sr=2,yt=new Array(2),Jn=Yn):Ct.indexOf("android")!==-1?(sr=2,yt=new Array(2),Jn=Yn):(sr=5,Jn=Yn,yt=new Array(4),Yn>=6?Jn=Yn-3:Tt===1&&(sr=2,yt=new Array(2),Jn=Yn)),yt[0]=sr<<3,yt[0]|=(Yn&15)>>>1,yt[1]=(Yn&15)<<7,yt[1]|=(Tt&15)<<3,sr===5&&(yt[1]|=(Jn&15)>>>1,yt[2]=(Jn&1)<<7,yt[2]|=2<<2,yt[3]=0),{config:yt,samplingRate:ur,channelCount:Tt,codec:"mp4a.40."+sr,originalCodec:"mp4a.40."+Nr}}},{key:"_parseMP3AudioData",value:function(De,Re,Me,nt){if(Me<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var yt=this._littleEndian,sr=new Uint8Array(De,Re,Me),Nr=null;if(nt){if(sr[0]!==255)return;var mn=sr[1]>>>3&3,Yn=(sr[1]&6)>>1,Jn=(sr[2]&240)>>>4,ur=(sr[2]&12)>>>2,Tt=sr[3]>>>6&3,Ct=Tt!==3?2:1,Ar=0,er=0,Ft=34,ir="mp3";switch(mn){case 0:Ar=this._mpegAudioV25SampleRateTable[ur];break;case 2:Ar=this._mpegAudioV20SampleRateTable[ur];break;case 3:Ar=this._mpegAudioV10SampleRateTable[ur];break}switch(Yn){case 1:Ft=34,Jn<this._mpegAudioL3BitRateTable.length&&(er=this._mpegAudioL3BitRateTable[Jn]);break;case 2:Ft=33,Jn<this._mpegAudioL2BitRateTable.length&&(er=this._mpegAudioL2BitRateTable[Jn]);break;case 3:Ft=32,Jn<this._mpegAudioL1BitRateTable.length&&(er=this._mpegAudioL1BitRateTable[Jn]);break}Nr={bitRate:er,samplingRate:Ar,channelCount:Ct,codec:ir,originalCodec:ir}}else Nr=sr;return Nr}},{key:"_parseVideoData",value:function(De,Re,Me,nt,yt){if(Me<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var sr=new Uint8Array(De,Re,Me)[0],Nr=(sr&240)>>>4,mn=sr&15;if(mn!==7){this._onError(Se.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(mn));return}this._parseAVCVideoPacket(De,Re+1,Me-1,nt,yt,Nr)}},{key:"_parseAVCVideoPacket",value:function(De,Re,Me,nt,yt,sr){if(Me<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Nr=this._littleEndian,mn=new DataView(De,Re,Me),Yn=mn.getUint8(0),Jn=mn.getUint32(0,!Nr)&16777215,ur=Jn<<8>>8;if(Yn===0)this._parseAVCDecoderConfigurationRecord(De,Re+4,Me-4);else if(Yn===1)this._parseAVCVideoData(De,Re+4,Me-4,nt,yt,sr,ur);else if(!(Yn===2)){this._onError(Se.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Yn));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(De,Re,Me){if(Me<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var nt=this._videoMetadata,yt=this._videoTrack,sr=this._littleEndian,Nr=new DataView(De,Re,Me);nt?typeof nt.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),nt=this._videoMetadata={},nt.type="video",nt.id=yt.id,nt.timescale=this._timescale,nt.duration=this._duration);var mn=Nr.getUint8(0),Yn=Nr.getUint8(1),Jn=Nr.getUint8(2),ur=Nr.getUint8(3);if(mn!==1||Yn===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Nr.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Se.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var Tt=Nr.getUint8(5)&31;if(Tt===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Tt>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(Tt));for(var Ct=6,Ar=0;Ar<Tt;Ar++){var er=Nr.getUint16(Ct,!sr);if(Ct+=2,er===0)continue;var Ft=new Uint8Array(De,Re+Ct,er);Ct+=er;var ir=we.parseSPS(Ft);if(Ar!==0)continue;nt.codecWidth=ir.codec_size.width,nt.codecHeight=ir.codec_size.height,nt.presentWidth=ir.present_size.width,nt.presentHeight=ir.present_size.height,nt.profile=ir.profile_string,nt.level=ir.level_string,nt.bitDepth=ir.bit_depth,nt.chromaFormat=ir.chroma_format,nt.sarRatio=ir.sar_ratio,nt.frameRate=ir.frame_rate,(ir.frame_rate.fixed===!1||ir.frame_rate.fps_num===0||ir.frame_rate.fps_den===0)&&(nt.frameRate=this._referenceFrameRate);var Pt=nt.frameRate.fps_den,rr=nt.frameRate.fps_num;nt.refSampleDuration=nt.timescale*(Pt/rr);for(var Yr=Ft.subarray(1,4),Pr="avc1.",Mr=0;Mr<3;Mr++){var fn=Yr[Mr].toString(16);fn.length<2&&(fn="0"+fn),Pr+=fn}nt.codec=Pr;var wn=this._mediaInfo;wn.width=nt.codecWidth,wn.height=nt.codecHeight,wn.fps=nt.frameRate.fps,wn.profile=nt.profile,wn.level=nt.level,wn.refFrames=ir.ref_frames,wn.chromaFormat=ir.chroma_format_string,wn.sarNum=nt.sarRatio.width,wn.sarDen=nt.sarRatio.height,wn.videoCodec=Pr,wn.hasAudio?wn.audioCodec!=null&&(wn.mimeType='video/x-flv; codecs="'+wn.videoCodec+","+wn.audioCodec+'"'):wn.mimeType='video/x-flv; codecs="'+wn.videoCodec+'"',wn.isComplete()&&this._onMediaInfo(wn)}var ai=Nr.getUint8(Ct);if(ai===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ai>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ai));Ct++;for(var ri=0;ri<ai;ri++){var gi=Nr.getUint16(Ct,!sr);if(Ct+=2,gi===0)continue;Ct+=gi}nt.avcc=new Uint8Array(Me),nt.avcc.set(new Uint8Array(De,Re,Me),0),u.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",nt)}},{key:"_parseAVCVideoData",value:function(De,Re,Me,nt,yt,sr,Nr){for(var mn=this._littleEndian,Yn=new DataView(De,Re,Me),Jn=[],ur=0,Tt=0,Ct=this._naluLengthSize,Ar=this._timestampBase+nt,er=sr===1;Tt<Me;){if(Tt+4>=Me){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(Ar,", offset = ").concat(Tt,", dataSize = ").concat(Me));break}var Ft=Yn.getUint32(Tt,!mn);if(Ct===3&&(Ft>>>=8),Ft>Me-Ct){u.w(this.TAG,"Malformed Nalus near timestamp ".concat(Ar,", NaluSize > DataSize!"));return}var ir=Yn.getUint8(Tt+Ct)&31;ir===5&&(er=!0);var Pt=new Uint8Array(De,Re+Tt,Ct+Ft),rr={type:ir,data:Pt};Jn.push(rr),ur+=Pt.byteLength,Tt+=Ct+Ft}if(Jn.length){var Yr=this._videoTrack,Pr={units:Jn,length:ur,isKeyframe:er,dts:Ar,cts:Nr,pts:Ar+Nr};er&&(Pr.fileposition=yt),Yr.samples.push(Pr),Yr.length+=ur}}}],[{key:"probe",value:function(De){var Re=new Uint8Array(De),Me={match:!1};if(Re[0]!==70||Re[1]!==76||Re[2]!==86||Re[3]!==1)return Me;var nt=(Re[4]&4)>>>2!==0,yt=(Re[4]&1)!==0,sr=_e(Re,5);return sr<9?Me:{match:!0,consumed:sr,dataOffset:sr,hasAudioTrack:nt,hasVideoTrack:yt}}}]),Xt}(),gt=tt,ct=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"init",value:function(){Xt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var De in Xt.types)Xt.types.hasOwnProperty(De)&&(Xt.types[De]=[De.charCodeAt(0),De.charCodeAt(1),De.charCodeAt(2),De.charCodeAt(3)]);var Re=Xt.constants={};Re.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Re.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Re.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Re.STSC=Re.STCO=Re.STTS,Re.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Re.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Re.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Re.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Re.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Re.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(De){for(var Re=8,Me=null,nt=Array.prototype.slice.call(arguments,1),yt=nt.length,sr=0;sr<yt;sr++)Re+=nt[sr].byteLength;Me=new Uint8Array(Re),Me[0]=Re>>>24&255,Me[1]=Re>>>16&255,Me[2]=Re>>>8&255,Me[3]=Re&255,Me.set(De,4);for(var Nr=8,mn=0;mn<yt;mn++)Me.set(nt[mn],Nr),Nr+=nt[mn].byteLength;return Me}},{key:"generateInitSegment",value:function(De){var Re=Xt.box(Xt.types.ftyp,Xt.constants.FTYP),Me=Xt.moov(De),nt=new Uint8Array(Re.byteLength+Me.byteLength);return nt.set(Re,0),nt.set(Me,Re.byteLength),nt}},{key:"moov",value:function(De){var Re=Xt.mvhd(De.timescale,De.duration),Me=Xt.trak(De),nt=Xt.mvex(De);return Xt.box(Xt.types.moov,Re,Me,nt)}},{key:"mvhd",value:function(De,Re){return Xt.box(Xt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(De){return Xt.box(Xt.types.trak,Xt.tkhd(De),Xt.mdia(De))}},{key:"tkhd",value:function(De){var Re=De.id,Me=De.duration,nt=De.presentWidth,yt=De.presentHeight;return Xt.box(Xt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,nt>>>8&255,nt&255,0,0,yt>>>8&255,yt&255,0,0]))}},{key:"mdia",value:function(De){return Xt.box(Xt.types.mdia,Xt.mdhd(De),Xt.hdlr(De),Xt.minf(De))}},{key:"mdhd",value:function(De){var Re=De.timescale,Me=De.duration;return Xt.box(Xt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,85,196,0,0]))}},{key:"hdlr",value:function(De){var Re=null;return De.type==="audio"?Re=Xt.constants.HDLR_AUDIO:Re=Xt.constants.HDLR_VIDEO,Xt.box(Xt.types.hdlr,Re)}},{key:"minf",value:function(De){var Re=null;return De.type==="audio"?Re=Xt.box(Xt.types.smhd,Xt.constants.SMHD):Re=Xt.box(Xt.types.vmhd,Xt.constants.VMHD),Xt.box(Xt.types.minf,Re,Xt.dinf(),Xt.stbl(De))}},{key:"dinf",value:function(){var De=Xt.box(Xt.types.dinf,Xt.box(Xt.types.dref,Xt.constants.DREF));return De}},{key:"stbl",value:function(De){var Re=Xt.box(Xt.types.stbl,Xt.stsd(De),Xt.box(Xt.types.stts,Xt.constants.STTS),Xt.box(Xt.types.stsc,Xt.constants.STSC),Xt.box(Xt.types.stsz,Xt.constants.STSZ),Xt.box(Xt.types.stco,Xt.constants.STCO));return Re}},{key:"stsd",value:function(De){return De.type==="audio"?De.codec==="mp3"?Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.mp3(De)):Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.mp4a(De)):Xt.box(Xt.types.stsd,Xt.constants.STSD_PREFIX,Xt.avc1(De))}},{key:"mp3",value:function(De){var Re=De.channelCount,Me=De.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,Me>>>8&255,Me&255,0,0]);return Xt.box(Xt.types[".mp3"],nt)}},{key:"mp4a",value:function(De){var Re=De.channelCount,Me=De.audioSampleRate,nt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Re,0,16,0,0,0,0,Me>>>8&255,Me&255,0,0]);return Xt.box(Xt.types.mp4a,nt,Xt.esds(De))}},{key:"esds",value:function(De){var Re=De.config||[],Me=Re.length,nt=new Uint8Array([0,0,0,0,3,23+Me,0,1,0,4,15+Me,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Me]).concat(Re).concat([6,1,2]));return Xt.box(Xt.types.esds,nt)}},{key:"avc1",value:function(De){var Re=De.avcc,Me=De.codecWidth,nt=De.codecHeight,yt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Me>>>8&255,Me&255,nt>>>8&255,nt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Xt.box(Xt.types.avc1,yt,Xt.box(Xt.types.avcC,Re))}},{key:"mvex",value:function(De){return Xt.box(Xt.types.mvex,Xt.trex(De))}},{key:"trex",value:function(De){var Re=De.id,Me=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Xt.box(Xt.types.trex,Me)}},{key:"moof",value:function(De,Re){return Xt.box(Xt.types.moof,Xt.mfhd(De.sequenceNumber),Xt.traf(De,Re))}},{key:"mfhd",value:function(De){var Re=new Uint8Array([0,0,0,0,De>>>24&255,De>>>16&255,De>>>8&255,De&255]);return Xt.box(Xt.types.mfhd,Re)}},{key:"traf",value:function(De,Re){var Me=De.id,nt=Xt.box(Xt.types.tfhd,new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255])),yt=Xt.box(Xt.types.tfdt,new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255])),sr=Xt.sdtp(De),Nr=Xt.trun(De,sr.byteLength+16+16+8+16+8+8);return Xt.box(Xt.types.traf,nt,yt,Nr,sr)}},{key:"sdtp",value:function(De){for(var Re=De.samples||[],Me=Re.length,nt=new Uint8Array(4+Me),yt=0;yt<Me;yt++){var sr=Re[yt].flags;nt[yt+4]=sr.isLeading<<6|sr.dependsOn<<4|sr.isDependedOn<<2|sr.hasRedundancy}return Xt.box(Xt.types.sdtp,nt)}},{key:"trun",value:function(De,Re){var Me=De.samples||[],nt=Me.length,yt=12+16*nt,sr=new Uint8Array(yt);Re+=8+yt,sr.set([0,0,15,1,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255],0);for(var Nr=0;Nr<nt;Nr++){var mn=Me[Nr].duration,Yn=Me[Nr].size,Jn=Me[Nr].flags,ur=Me[Nr].cts;sr.set([mn>>>24&255,mn>>>16&255,mn>>>8&255,mn&255,Yn>>>24&255,Yn>>>16&255,Yn>>>8&255,Yn&255,Jn.isLeading<<2|Jn.dependsOn,Jn.isDependedOn<<6|Jn.hasRedundancy<<4|Jn.isNonSync,0,0,ur>>>24&255,ur>>>16&255,ur>>>8&255,ur&255],12+16*Nr)}return Xt.box(Xt.types.trun,sr)}},{key:"mdat",value:function(De){return Xt.box(Xt.types.mdat,De)}}]),Xt}();ct.init();var je=ct,Zt=function(){function Xt(){Object(y.a)(this,Xt)}return Object(f.a)(Xt,null,[{key:"getSilentFrame",value:function(De,Re){if(De==="mp4a.40.2"){if(Re===1)return new Uint8Array([0,200,0,128,35,128]);if(Re===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Re===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Re===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Re===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(Re===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(Re===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Re===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Re===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),Xt}(),ut=Zt,Ht=Object(f.a)(function Xt(wt,De,Re,Me,nt){Object(y.a)(this,Xt),this.dts=wt,this.pts=De,this.duration=Re,this.originalDts=Me,this.isSyncPoint=nt,this.fileposition=null}),dr=function(){function Xt(){Object(y.a)(this,Xt),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(f.a)(Xt,[{key:"appendSyncPoint",value:function(De){De.isSyncPoint=!0,this.syncPoints.push(De)}}]),Xt}(),Vt=function(){function Xt(){Object(y.a)(this,Xt),this._list=[]}return Object(f.a)(Xt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(De){var Re=this._list;if(De.length===0)return;Re.length>0&&De[0].originalDts<Re[Re.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Re,De)}},{key:"getLastSyncPointBeforeDts",value:function(De){if(this._list.length==0)return null;var Re=this._list,Me=0,nt=Re.length-1,yt=0,sr=0,Nr=nt;for(De<Re[0].dts&&(Me=0,sr=Nr+1);sr<=Nr;)if(yt=sr+Math.floor((Nr-sr)/2),yt===nt||De>=Re[yt].dts&&De<Re[yt+1].dts){Me=yt;break}else Re[yt].dts<De?sr=yt+1:Nr=yt-1;return this._list[Me]}}]),Xt}(),Mt=function(){function Xt(wt){Object(y.a)(this,Xt),this._type=wt,this._list=[],this._lastAppendLocation=-1}return Object(f.a)(Xt,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}},{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(De){var Re=this._list;if(Re.length===0)return-2;var Me=Re.length-1,nt=0,yt=0,sr=Me,Nr=0;if(De<Re[0].originalBeginDts)return Nr=-1,Nr;for(;yt<=sr;)if(nt=yt+Math.floor((sr-yt)/2),nt===Me||De>Re[nt].lastSample.originalDts&&De<Re[nt+1].originalBeginDts){Nr=nt;break}else Re[nt].originalBeginDts<De?yt=nt+1:sr=nt-1;return Nr}},{key:"_searchNearestSegmentAfter",value:function(De){return this._searchNearestSegmentBefore(De)+1}},{key:"append",value:function(De){var Re=this._list,Me=De,nt=this._lastAppendLocation,yt=0;nt!==-1&&nt<Re.length&&Me.originalBeginDts>=Re[nt].lastSample.originalDts&&(nt===Re.length-1||nt<Re.length-1&&Me.originalBeginDts<Re[nt+1].originalBeginDts)?yt=nt+1:Re.length>0&&(yt=this._searchNearestSegmentBefore(Me.originalBeginDts)+1),this._lastAppendLocation=yt,this._list.splice(yt,0,Me)}},{key:"getLastSegmentBefore",value:function(De){var Re=this._searchNearestSegmentBefore(De);return Re>=0?this._list[Re]:null}},{key:"getLastSampleBefore",value:function(De){var Re=this.getLastSegmentBefore(De);return Re!=null?Re.lastSample:null}},{key:"getLastSyncPointBefore",value:function(De){for(var Re=this._searchNearestSegmentBefore(De),Me=this._list[Re].syncPoints;Me.length===0&&Re>0;)Re--,Me=this._list[Re].syncPoints;return Me.length>0?Me[Me.length-1]:null}}]),Xt}(),Gt=function(){function Xt(wt){Object(y.a)(this,Xt),this.TAG="MP4Remuxer",this._config=wt,this._isLive=wt.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Mt("audio"),this._videoSegmentInfoList=new Mt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(De){return De.onDataAvailable=this.remux.bind(this),De.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(De){this._onInitSegment=De}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(De){this._onMediaSegment=De}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(De){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(De,Re){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(De,Re),this._remuxVideo(Re),this._remuxAudio(De)}},{key:"_onTrackMetadataReceived",value:function(De,Re){var Me=null,nt="mp4",yt=Re.codec;if(De==="audio")this._audioMeta=Re,Re.codec==="mp3"&&this._mp3UseMpegAudio?(nt="mpeg",yt="",Me=new Uint8Array):Me=je.generateInitSegment(Re);else if(De==="video")this._videoMeta=Re,Me=je.generateInitSegment(Re);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(De,{type:De,data:Me.buffer,codec:yt,container:"".concat(De,"/").concat(nt),mediaDuration:Re.duration})}},{key:"_calculateDtsBase",value:function(De,Re){if(this._dtsBaseInited)return;De.samples&&De.samples.length&&(this._audioDtsBase=De.samples[0].dts),Re.samples&&Re.samples.length&&(this._videoDtsBase=Re.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var De=this._videoStashedLastSample,Re=this._audioStashedLastSample,Me={type:"video",id:1,sequenceNumber:0,samples:[],length:0};De!=null&&(Me.samples.push(De),Me.length=De.length);var nt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Re!=null&&(nt.samples.push(Re),nt.length=Re.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Me,!0),this._remuxAudio(nt,!0)}},{key:"_remuxAudio",value:function(De,Re){if(this._audioMeta==null)return;var Me=De,nt=Me.samples,yt=void 0,sr=-1,Nr=-1,mn=-1,Yn=this._audioMeta.refSampleDuration,Jn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,ur=this._dtsBaseInited&&this._audioNextDts===void 0,Tt=!1;if(!nt||nt.length===0)return;if(nt.length===1&&!Re)return;var Ct=0,Ar=null,er=0;Jn?(Ct=0,er=Me.length):(Ct=8,er=8+Me.length);var Ft=null;if(nt.length>1&&(Ft=nt.pop(),er-=Ft.length),this._audioStashedLastSample!=null){var ir=this._audioStashedLastSample;this._audioStashedLastSample=null,nt.unshift(ir),er+=ir.length}Ft!=null&&(this._audioStashedLastSample=Ft);var Pt=nt[0].dts-this._dtsBase;if(this._audioNextDts)yt=Pt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())yt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(Tt=!0));else{var rr=this._audioSegmentInfoList.getLastSampleBefore(Pt);if(rr!=null){var Yr=Pt-(rr.originalDts+rr.duration);Yr<=3&&(Yr=0);var Pr=rr.dts+rr.duration+Yr;yt=Pt-Pr}else yt=0}if(Tt){var Mr=Pt-yt,fn=this._videoSegmentInfoList.getLastSegmentBefore(Pt);if(fn!=null&&fn.beginDts<Mr){var wn=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(wn){var ai=fn.beginDts,ri=Mr-fn.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ai,", duration: ").concat(ri)),nt.unshift({unit:wn,dts:ai,pts:ai}),er+=wn.byteLength}}else Tt=!1}for(var gi=[],Ii=0;Ii<nt.length;Ii++){var Mi=nt[Ii],Qi=Mi.unit,ot=Mi.dts-this._dtsBase,Ne=ot-yt;sr===-1&&(sr=Ne);var He=0;if(Ii!==nt.length-1){var Ye=nt[Ii+1].dts-this._dtsBase-yt;He=Ye-Ne}else if(Ft!=null){var at=Ft.dts-this._dtsBase-yt;He=at-Ne}else gi.length>=1?He=gi[gi.length-1].duration:He=Math.floor(Yn);var qe=!1,lt=null;if(He>Yn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){qe=!0;var Et=Math.abs(He-Yn),At=Math.ceil(Et/Yn),fr=Ne+Yn;u.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
`+"dts: ".concat(Ne+He," ms, expected: ").concat(Ne+Math.round(Yn)," ms, ")+"delta: ".concat(Math.round(Et)," ms, generate: ").concat(At," frames"));var Jr=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Jr==null&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Jr=Qi),lt=[];for(var Vr=0;Vr<At;Vr++){var dn=Math.round(fr);if(lt.length>0){var gr=lt[lt.length-1];gr.duration=dn-gr.dts}var Wn={dts:dn,pts:dn,cts:0,unit:Jr,size:Jr.byteLength,duration:0,originalDts:ot,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};lt.push(Wn),er+=Wn.size,fr+=Yn}var kr=lt[lt.length-1];kr.duration=Ne+He-kr.dts,He=Math.round(Yn)}gi.push({dts:Ne,pts:Ne,cts:0,unit:Mi.unit,size:Mi.unit.byteLength,duration:He,originalDts:ot,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),qe&&gi.push.apply(gi,lt)}Jn?Ar=new Uint8Array(er):(Ar=new Uint8Array(er),Ar[0]=er>>>24&255,Ar[1]=er>>>16&255,Ar[2]=er>>>8&255,Ar[3]=er&255,Ar.set(je.types.mdat,4));for(var Fn=0;Fn<gi.length;Fn++){var vn=gi[Fn].unit;Ar.set(vn,Ct),Ct+=vn.byteLength}var $r=gi[gi.length-1];Nr=$r.dts+$r.duration,this._audioNextDts=Nr;var ei=new dr;ei.beginDts=sr,ei.endDts=Nr,ei.beginPts=sr,ei.endPts=Nr,ei.originalBeginDts=gi[0].originalDts,ei.originalEndDts=$r.originalDts+$r.duration,ei.firstSample=new Ht(gi[0].dts,gi[0].pts,gi[0].duration,gi[0].originalDts,!1),ei.lastSample=new Ht($r.dts,$r.pts,$r.duration,$r.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ei),Me.samples=gi,Me.sequenceNumber++;var fi=null;Jn?fi=new Uint8Array:fi=je.moof(Me,sr),Me.samples=[],Me.length=0;var Pi={type:"audio",data:this._mergeBoxes(fi,Ar).buffer,sampleCount:gi.length,info:ei};Jn&&ur&&(Pi.timestampOffset=sr),this._onMediaSegment("audio",Pi)}},{key:"_remuxVideo",value:function(De,Re){if(this._videoMeta==null)return;var Me=De,nt=Me.samples,yt=void 0,sr=-1,Nr=-1,mn=-1,Yn=-1;if(!nt||nt.length===0)return;if(nt.length===1&&!Re)return;var Jn=8,ur=null,Tt=8+De.length,Ct=null;if(nt.length>1&&(Ct=nt.pop(),Tt-=Ct.length),this._videoStashedLastSample!=null){var Ar=this._videoStashedLastSample;this._videoStashedLastSample=null,nt.unshift(Ar),Tt+=Ar.length}Ct!=null&&(this._videoStashedLastSample=Ct);var er=nt[0].dts-this._dtsBase;if(this._videoNextDts)yt=er-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())yt=0;else{var Ft=this._videoSegmentInfoList.getLastSampleBefore(er);if(Ft!=null){var ir=er-(Ft.originalDts+Ft.duration);ir<=3&&(ir=0);var Pt=Ft.dts+Ft.duration+ir;yt=er-Pt}else yt=0}for(var rr=new dr,Yr=[],Pr=0;Pr<nt.length;Pr++){var Mr=nt[Pr],fn=Mr.dts-this._dtsBase,wn=Mr.isKeyframe,ai=fn-yt,ri=Mr.cts,gi=ai+ri;sr===-1&&(sr=ai,mn=gi);var Ii=0;if(Pr!==nt.length-1){var Mi=nt[Pr+1].dts-this._dtsBase-yt;Ii=Mi-ai}else if(Ct!=null){var Qi=Ct.dts-this._dtsBase-yt;Ii=Qi-ai}else Yr.length>=1?Ii=Yr[Yr.length-1].duration:Ii=Math.floor(this._videoMeta.refSampleDuration);if(wn){var ot=new Ht(ai,gi,Ii,Mr.dts,!0);ot.fileposition=Mr.fileposition,rr.appendSyncPoint(ot)}Yr.push({dts:ai,pts:gi,cts:ri,units:Mr.units,size:Mr.length,isKeyframe:wn,duration:Ii,originalDts:fn,flags:{isLeading:0,dependsOn:wn?2:1,isDependedOn:wn?1:0,hasRedundancy:0,isNonSync:wn?0:1}})}ur=new Uint8Array(Tt),ur[0]=Tt>>>24&255,ur[1]=Tt>>>16&255,ur[2]=Tt>>>8&255,ur[3]=Tt&255,ur.set(je.types.mdat,4);for(var Ne=0;Ne<Yr.length;Ne++)for(var He=Yr[Ne].units;He.length;){var Ye=He.shift(),at=Ye.data;ur.set(at,Jn),Jn+=at.byteLength}var qe=Yr[Yr.length-1];if(Nr=qe.dts+qe.duration,Yn=qe.pts+qe.duration,this._videoNextDts=Nr,rr.beginDts=sr,rr.endDts=Nr,rr.beginPts=mn,rr.endPts=Yn,rr.originalBeginDts=Yr[0].originalDts,rr.originalEndDts=qe.originalDts+qe.duration,rr.firstSample=new Ht(Yr[0].dts,Yr[0].pts,Yr[0].duration,Yr[0].originalDts,Yr[0].isKeyframe),rr.lastSample=new Ht(qe.dts,qe.pts,qe.duration,qe.originalDts,qe.isKeyframe),this._isLive||this._videoSegmentInfoList.append(rr),Me.samples=Yr,Me.sequenceNumber++,this._forceFirstIDR){var lt=Yr[0].flags;lt.dependsOn=2,lt.isNonSync=0}var Et=je.moof(Me,sr);Me.samples=[],Me.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Et,ur).buffer,sampleCount:Yr.length,info:rr})}},{key:"_mergeBoxes",value:function(De,Re){var Me=new Uint8Array(De.byteLength+Re.byteLength);return Me.set(De,0),Me.set(Re,De.byteLength),Me}}]),Xt}(),Ve=Gt,me={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},te=me,Ze=function(){function Xt(wt,De){Object(y.a)(this,Xt),this.TAG="TransmuxingController",this._emitter=new p.a,this._config=De,wt.segments||(wt.segments=[{duration:wt.duration,filesize:wt.filesize,url:wt.url}]),typeof wt.cors!="boolean"&&(wt.cors=!0),typeof wt.withCredentials!="boolean"&&(wt.withCredentials=!1),this._mediaDataSource=wt,this._currentSegmentIndex=0;var Re=0;this._mediaDataSource.segments.forEach(function(Me){Me.timestampBase=Re,Re+=Me.duration,Me.cors=wt.cors,Me.withCredentials=wt.withCredentials,De.referrerPolicy&&(Me.referrerPolicy=De.referrerPolicy)}),!isNaN(Re)&&this._mediaDataSource.duration!==Re&&(this._mediaDataSource.duration=Re),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(De,Re){this._currentSegmentIndex=De;var Me=this._mediaDataSource.segments[De],nt=this._ioctl=new Q(Me,this._config,De);nt.onError=this._onIOException.bind(this),nt.onSeeked=this._onIOSeeked.bind(this),nt.onComplete=this._onIOComplete.bind(this),nt.onRedirect=this._onIORedirect.bind(this),nt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Re?this._demuxer.bindDataSource(this._ioctl):nt.onDataArrival=this._onInitChunkArrival.bind(this),nt.open(Re)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(De){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Re=this._searchSegmentIndexContains(De);if(Re===this._currentSegmentIndex){var Me=this._mediaInfo.segments[Re];if(Me==null)this._pendingSeekTime=De;else{var nt=Me.getNearestKeyframe(De);this._remuxer.seek(nt.milliseconds),this._ioctl.seek(nt.fileposition),this._pendingResolveSeekPoint=nt.milliseconds}}else{var yt=this._mediaInfo.segments[Re];if(yt==null)this._pendingSeekTime=De,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Re);else{var sr=yt.getNearestKeyframe(De);this._internalAbort(),this._remuxer.seek(De),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Re].timestampBase,this._loadSegment(Re,sr.fileposition),this._pendingResolveSeekPoint=sr.milliseconds,this._reportSegmentMediaInfo(Re)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(De){for(var Re=this._mediaDataSource.segments,Me=Re.length-1,nt=0;nt<Re.length;nt++)if(De<Re[nt].timestampBase){Me=nt-1;break}return Me}},{key:"_onInitChunkArrival",value:function(De,Re){var Me=this,nt=null,yt=0;if(Re>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,yt=this._demuxer.parseChunks(De,Re);else if((nt=gt.probe(De)).match){this._demuxer=new gt(nt,this._config),this._remuxer||(this._remuxer=new Ve(this._config));var sr=this._mediaDataSource;sr.duration!=null&&!isNaN(sr.duration)&&(this._demuxer.overridedDuration=sr.duration),typeof sr.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=sr.hasAudio),typeof sr.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=sr.hasVideo),this._demuxer.timestampBase=sr.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),yt=this._demuxer.parseChunks(De,Re)}else nt=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Me._internalAbort()}),this._emitter.emit(te.DEMUX_ERROR,Se.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),yt=0;return yt}},{key:"_onMediaInfo",value:function(De){var Re=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},De),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ge.prototype));var Me=Object.assign({},De);Object.setPrototypeOf(Me,Ge.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Me,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var nt=Re._pendingSeekTime;Re._pendingSeekTime=null,Re.seek(nt)})}},{key:"_onMetaDataArrived",value:function(De){this._emitter.emit(te.METADATA_ARRIVED,De)}},{key:"_onScriptDataArrived",value:function(De){this._emitter.emit(te.SCRIPTDATA_ARRIVED,De)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(De){var Re=De,Me=Re+1;Me<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Me)):(this._remuxer.flushStashedSamples(),this._emitter.emit(te.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(De){var Re=this._ioctl.extraData;this._mediaDataSource.segments[Re].redirectedURL=De}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(te.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(De,Re){u.e(this.TAG,"IOException: type = ".concat(De,", code = ").concat(Re.code,", msg = ").concat(Re.msg)),this._emitter.emit(te.IO_ERROR,De,Re),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(De,Re){u.e(this.TAG,"DemuxException: type = ".concat(De,", info = ").concat(Re)),this._emitter.emit(te.DEMUX_ERROR,De,Re)}},{key:"_onRemuxerInitSegmentArrival",value:function(De,Re){this._emitter.emit(te.INIT_SEGMENT,De,Re)}},{key:"_onRemuxerMediaSegmentArrival",value:function(De,Re){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(te.MEDIA_SEGMENT,De,Re),this._pendingResolveSeekPoint!=null&&De==="video"){var Me=Re.info.syncPoints,nt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&Me.length>0&&Me[0].originalDts===nt&&(nt=Me[0].pts),this._emitter.emit(te.RECOMMEND_SEEKPOINT,nt)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(De){var Re=this._mediaInfo.segments[De],Me=Object.assign({},Re);Me.duration=this._mediaInfo.duration,Me.segmentCount=this._mediaInfo.segmentCount,delete Me.segments,delete Me.keyframesIndex,this._emitter.emit(te.MEDIA_INFO,Me)}},{key:"_reportStatisticsInfo",value:function(){var De={};De.url=this._ioctl.currentURL,De.hasRedirect=this._ioctl.hasRedirect,De.hasRedirect&&(De.redirectedURL=this._ioctl.currentRedirectedURL),De.speed=this._ioctl.currentSpeed,De.loaderType=this._ioctl.loaderType,De.currentSegmentIndex=this._currentSegmentIndex,De.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(te.STATISTICS_INFO,De)}}]),Xt}(),Xe=Ze,ue=function(wt){var De="TransmuxingWorker",Re=null,Me=er.bind(this);A.install(),wt.addEventListener("message",function(Ft){switch(Ft.data.cmd){case"init":Re=new Xe(Ft.data.param[0],Ft.data.param[1]),Re.on(te.IO_ERROR,Tt.bind(this)),Re.on(te.DEMUX_ERROR,Ct.bind(this)),Re.on(te.INIT_SEGMENT,nt.bind(this)),Re.on(te.MEDIA_SEGMENT,yt.bind(this)),Re.on(te.LOADING_COMPLETE,sr.bind(this)),Re.on(te.RECOVERED_EARLY_EOF,Nr.bind(this)),Re.on(te.MEDIA_INFO,mn.bind(this)),Re.on(te.METADATA_ARRIVED,Yn.bind(this)),Re.on(te.SCRIPTDATA_ARRIVED,Jn.bind(this)),Re.on(te.STATISTICS_INFO,ur.bind(this)),Re.on(te.RECOMMEND_SEEKPOINT,Ar.bind(this));break;case"destroy":Re&&(Re.destroy(),Re=null),wt.postMessage({msg:"destroyed"});break;case"start":Re.start();break;case"stop":Re.stop();break;case"seek":Re.seek(Ft.data.param);break;case"pause":Re.pause();break;case"resume":Re.resume();break;case"logging_config":{var ir=Ft.data.param;Ue.applyConfig(ir),ir.enableCallback===!0?Ue.addLogListener(Me):Ue.removeLogListener(Me);break}}});function nt(Ft,ir){var Pt={msg:te.INIT_SEGMENT,data:{type:Ft,data:ir}};wt.postMessage(Pt,[ir.data])}function yt(Ft,ir){var Pt={msg:te.MEDIA_SEGMENT,data:{type:Ft,data:ir}};wt.postMessage(Pt,[ir.data])}function sr(){var Ft={msg:te.LOADING_COMPLETE};wt.postMessage(Ft)}function Nr(){var Ft={msg:te.RECOVERED_EARLY_EOF};wt.postMessage(Ft)}function mn(Ft){var ir={msg:te.MEDIA_INFO,data:Ft};wt.postMessage(ir)}function Yn(Ft){var ir={msg:te.METADATA_ARRIVED,data:Ft};wt.postMessage(ir)}function Jn(Ft){var ir={msg:te.SCRIPTDATA_ARRIVED,data:Ft};wt.postMessage(ir)}function ur(Ft){var ir={msg:te.STATISTICS_INFO,data:Ft};wt.postMessage(ir)}function Tt(Ft,ir){wt.postMessage({msg:te.IO_ERROR,data:{type:Ft,info:ir}})}function Ct(Ft,ir){wt.postMessage({msg:te.DEMUX_ERROR,data:{type:Ft,info:ir}})}function Ar(Ft){wt.postMessage({msg:te.RECOMMEND_SEEKPOINT,data:Ft})}function er(Ft,ir){wt.postMessage({msg:"logcat_callback",data:{type:Ft,logcat:ir}})}},St=ue,Qt=function(){function Xt(wt,De){if(Object(y.a)(this,Xt),this.TAG="Transmuxer",this._emitter=new p.a,De.enableWorker&&typeof Worker!="undefined")try{var Re=r("0r65");this._worker=Re(St),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[wt,De]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Ue.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Ue.getConfig()})}catch(nt){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Xe(wt,De)}else this._controller=new Xe(wt,De);if(this._controller){var Me=this._controller;Me.on(te.IO_ERROR,this._onIOError.bind(this)),Me.on(te.DEMUX_ERROR,this._onDemuxError.bind(this)),Me.on(te.INIT_SEGMENT,this._onInitSegment.bind(this)),Me.on(te.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Me.on(te.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Me.on(te.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Me.on(te.MEDIA_INFO,this._onMediaInfo.bind(this)),Me.on(te.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Me.on(te.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Me.on(te.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Me.on(te.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Ue.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(De){this._worker?this._worker.postMessage({cmd:"seek",param:De}):this._controller.seek(De)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(De,Re){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(te.INIT_SEGMENT,De,Re)})}},{key:"_onMediaSegment",value:function(De,Re){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(te.MEDIA_SEGMENT,De,Re)})}},{key:"_onLoadingComplete",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(te.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var De=this;Promise.resolve().then(function(){De._emitter.emit(te.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(te.MEDIA_INFO,De)})}},{key:"_onMetaDataArrived",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(te.METADATA_ARRIVED,De)})}},{key:"_onScriptDataArrived",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(te.SCRIPTDATA_ARRIVED,De)})}},{key:"_onStatisticsInfo",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(te.STATISTICS_INFO,De)})}},{key:"_onIOError",value:function(De,Re){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(te.IO_ERROR,De,Re)})}},{key:"_onDemuxError",value:function(De,Re){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(te.DEMUX_ERROR,De,Re)})}},{key:"_onRecommendSeekpoint",value:function(De){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(te.RECOMMEND_SEEKPOINT,De)})}},{key:"_onLoggingConfigChanged",value:function(De){this._worker&&this._worker.postMessage({cmd:"logging_config",param:De})}},{key:"_onWorkerMessage",value:function(De){var Re=De.data,Me=Re.data;if(Re.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Re.msg){case te.INIT_SEGMENT:case te.MEDIA_SEGMENT:this._emitter.emit(Re.msg,Me.type,Me.data);break;case te.LOADING_COMPLETE:case te.RECOVERED_EARLY_EOF:this._emitter.emit(Re.msg);break;case te.MEDIA_INFO:Object.setPrototypeOf(Me,Ge.prototype),this._emitter.emit(Re.msg,Me);break;case te.METADATA_ARRIVED:case te.SCRIPTDATA_ARRIVED:case te.STATISTICS_INFO:this._emitter.emit(Re.msg,Me);break;case te.IO_ERROR:case te.DEMUX_ERROR:this._emitter.emit(Re.msg,Me.type,Me.info);break;case te.RECOMMEND_SEEKPOINT:this._emitter.emit(Re.msg,Me);break;case"logcat_callback":u.emitter.emit("log",Me.type,Me.logcat);break;default:break}}}]),Xt}(),dt=Qt,Jt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},$t=Jt,tn=function(){function Xt(wt){Object(y.a)(this,Xt),this.TAG="MSEController",this._config=wt,this._emitter=new p.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Vt}return Object(f.a)(Xt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var Re=this._mediaSource=new window.MediaSource;Re.addEventListener("sourceopen",this.e.onSourceOpen),Re.addEventListener("sourceended",this.e.onSourceEnded),Re.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=De,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),De.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var De=this._mediaSource;for(var Re in this._sourceBuffers){var Me=this._pendingSegments[Re];Me.splice(0,Me.length),this._pendingSegments[Re]=null,this._pendingRemoveRanges[Re]=null,this._lastInitSegments[Re]=null;var nt=this._sourceBuffers[Re];if(nt){if(De.readyState!=="closed"){try{De.removeSourceBuffer(nt)}catch(yt){u.e(this.TAG,yt.message)}nt.removeEventListener("error",this.e.onSourceBufferError),nt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Re]=null,this._sourceBuffers[Re]=null}}if(De.readyState==="open")try{De.endOfStream()}catch(yt){u.e(this.TAG,yt.message)}De.removeEventListener("sourceopen",this.e.onSourceOpen),De.removeEventListener("sourceended",this.e.onSourceEnded),De.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(De,Re){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(De),this._pendingSegments[De.type].push(De);return}var Me=De,nt="".concat(Me.container);Me.codec&&Me.codec.length>0&&(nt+=";codecs=".concat(Me.codec));var yt=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+nt),this._lastInitSegments[Me.type]=Me,nt!==this._mimeTypes[Me.type]){if(this._mimeTypes[Me.type])u.v(this.TAG,"Notice: ".concat(Me.type," mimeType changed, origin: ").concat(this._mimeTypes[Me.type],", target: ").concat(nt));else{yt=!0;try{var sr=this._sourceBuffers[Me.type]=this._mediaSource.addSourceBuffer(nt);sr.addEventListener("error",this.e.onSourceBufferError),sr.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Nr){u.e(this.TAG,Nr.message),this._emitter.emit($t.ERROR,{code:Nr.code,msg:Nr.message});return}}this._mimeTypes[Me.type]=nt}Re||this._pendingSegments[Me.type].push(Me),yt||this._sourceBuffers[Me.type]&&!this._sourceBuffers[Me.type].updating&&this._doAppendSegments(),C.safari&&Me.container==="audio/mpeg"&&Me.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Me.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(De){var Re=De;this._pendingSegments[Re.type].push(Re),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Me=this._sourceBuffers[Re.type];Me&&!Me.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(De){for(var Re in this._sourceBuffers){if(!this._sourceBuffers[Re])continue;var Me=this._sourceBuffers[Re];if(this._mediaSource.readyState==="open")try{Me.abort()}catch(Yn){u.e(this.TAG,Yn.message)}this._idrList.clear();var nt=this._pendingSegments[Re];if(nt.splice(0,nt.length),this._mediaSource.readyState==="closed")continue;for(var yt=0;yt<Me.buffered.length;yt++){var sr=Me.buffered.start(yt),Nr=Me.buffered.end(yt);this._pendingRemoveRanges[Re].push({start:sr,end:Nr})}if(Me.updating||this._doRemoveRanges(),C.safari){var mn=this._lastInitSegments[Re];mn&&(this._pendingSegments[Re].push(mn),Me.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var De=this._mediaSource,Re=this._sourceBuffers;if(!De||De.readyState!=="open"){De&&De.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Re.video&&Re.video.updating||Re.audio&&Re.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,De.endOfStream())}},{key:"getNearestKeyframe",value:function(De){return this._idrList.getLastSyncPointBeforeDts(De)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var De=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var Me=this._sourceBuffers[Re];if(Me){var nt=Me.buffered;if(nt.length>=1&&De-nt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var De=this._mediaElement.currentTime;for(var Re in this._sourceBuffers){var Me=this._sourceBuffers[Re];if(Me){for(var nt=Me.buffered,yt=!1,sr=0;sr<nt.length;sr++){var Nr=nt.start(sr),mn=nt.end(sr);if(Nr<=De&&De<mn+3){if(De-Nr>=this._config.autoCleanupMaxBackwardDuration){yt=!0;var Yn=De-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Re].push({start:Nr,end:Yn})}}else mn<De&&(yt=!0,this._pendingRemoveRanges[Re].push({start:Nr,end:mn}))}yt&&!Me.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var De=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(De.video&&De.video.updating||De.audio&&De.audio.updating)return;var Re=this._mediaSource.duration,Me=this._pendingMediaDuration;Me>0&&(isNaN(Re)||Me>Re)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(Re," to ").concat(Me)),this._mediaSource.duration=Me),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var De in this._pendingRemoveRanges){if(!this._sourceBuffers[De]||this._sourceBuffers[De].updating)continue;for(var Re=this._sourceBuffers[De],Me=this._pendingRemoveRanges[De];Me.length&&!Re.updating;){var nt=Me.shift();Re.remove(nt.start,nt.end)}}}},{key:"_doAppendSegments",value:function(){var De=this._pendingSegments;for(var Re in De){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;if(De[Re].length>0){var Me=De[Re].shift();if(Me.timestampOffset){var nt=this._sourceBuffers[Re].timestampOffset,yt=Me.timestampOffset/1e3,sr=Math.abs(nt-yt);sr>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(nt," to ").concat(yt)),this._sourceBuffers[Re].timestampOffset=yt),delete Me.timestampOffset}if(!Me.data||Me.data.byteLength===0)continue;try{this._sourceBuffers[Re].appendBuffer(Me.data),this._isBufferFull=!1,Re==="video"&&Me.hasOwnProperty("info")&&this._idrList.appendArray(Me.info.syncPoints)}catch(Nr){this._pendingSegments[Re].unshift(Me),Nr.code===22?(this._isBufferFull||this._emitter.emit($t.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,Nr.message),this._emitter.emit($t.ERROR,{code:Nr.code,msg:Nr.message}))}}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var De=this._pendingSourceBufferInit;De.length;){var Re=De.shift();this.appendInitSegment(Re,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit($t.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var De=this._pendingSegments;return De.video.length>0||De.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var De=this._pendingRemoveRanges;return De.video.length>0||De.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit($t.UPDATE_END)}},{key:"_onSourceBufferError",value:function(De){u.e(this.TAG,"SourceBuffer Error: ".concat(De))}}]),Xt}(),kt=tn,tr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Bt={NETWORK_EXCEPTION:h.EXCEPTION,NETWORK_STATUS_CODE_INVALID:h.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:h.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:h.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Se.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Se.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Se.CODEC_UNSUPPORTED},ft=function(){function Xt(wt,De){if(Object(y.a)(this,Xt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new p.a,this._config=ee(),typeof De=="object"&&Object.assign(this._config,De),wt.type.toLowerCase()!=="flv")throw new n("FlvPlayer requires an flv MediaDataSource input!");wt.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=wt,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var Re=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(Re||C.msedge||C.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){var Me=this;De===ke.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Me._emitter.emit(ke.MEDIA_INFO,Me.mediaInfo)}):De===ke.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Me._emitter.emit(ke.STATISTICS_INFO,Me.statisticsInfo)})),this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){var Re=this;if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),De.addEventListener("seeking",this.e.onvSeeking),De.addEventListener("canplay",this.e.onvCanPlay),De.addEventListener("stalled",this.e.onvStalled),De.addEventListener("progress",this.e.onvProgress),this._msectl=new kt(this._config),this._msectl.on($t.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on($t.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on($t.SOURCE_OPEN,function(){Re._mseSourceOpened=!0,Re._hasPendingLoad&&(Re._hasPendingLoad=!1,Re.load())}),this._msectl.on($t.ERROR,function(Me){Re._emitter.emit(ke.ERROR,tr.MEDIA_ERROR,Bt.MEDIA_MSE_ERROR,Me)}),this._msectl.attachMediaElement(De),this._pendingSeekTime!=null)try{De.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Me){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var De=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new dt(this._mediaDataSource,this._config),this._transmuxer.on(te.INIT_SEGMENT,function(Re,Me){De._msectl.appendInitSegment(Me)}),this._transmuxer.on(te.MEDIA_SEGMENT,function(Re,Me){if(De._msectl.appendMediaSegment(Me),De._config.lazyLoad&&!De._config.isLive){var nt=De._mediaElement.currentTime;Me.info.endDts>=(nt+De._config.lazyLoadMaxDuration)*1e3&&(De._progressChecker==null&&(u.v(De.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),De._suspendTransmuxer()))}}),this._transmuxer.on(te.LOADING_COMPLETE,function(){De._msectl.endOfStream(),De._emitter.emit(ke.LOADING_COMPLETE)}),this._transmuxer.on(te.RECOVERED_EARLY_EOF,function(){De._emitter.emit(ke.RECOVERED_EARLY_EOF)}),this._transmuxer.on(te.IO_ERROR,function(Re,Me){De._emitter.emit(ke.ERROR,tr.NETWORK_ERROR,Re,Me)}),this._transmuxer.on(te.DEMUX_ERROR,function(Re,Me){De._emitter.emit(ke.ERROR,tr.MEDIA_ERROR,Re,{code:-1,msg:Me})}),this._transmuxer.on(te.MEDIA_INFO,function(Re){De._mediaInfo=Re,De._emitter.emit(ke.MEDIA_INFO,Object.assign({},Re))}),this._transmuxer.on(te.METADATA_ARRIVED,function(Re){De._emitter.emit(ke.METADATA_ARRIVED,Re)}),this._transmuxer.on(te.SCRIPTDATA_ARRIVED,function(Re){De._emitter.emit(ke.SCRIPTDATA_ARRIVED,Re)}),this._transmuxer.on(te.STATISTICS_INFO,function(Re){De._statisticsInfo=De._fillStatisticsInfo(Re),De._emitter.emit(ke.STATISTICS_INFO,Object.assign({},De._statisticsInfo))}),this._transmuxer.on(te.RECOMMEND_SEEKPOINT,function(Re){De._mediaElement&&!De._config.accurateSeek&&(De._requestSetTime=!0,De._mediaElement.currentTime=Re/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._internalSeek(De):this._pendingSeekTime=De}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(De){if(De.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return De;var Re=!0,Me=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Me=yt.totalVideoFrames,nt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Me=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(De.decodedFrames=Me,De.droppedFrames=nt),De}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var De=this._mediaElement.buffered,Re=this._mediaElement.currentTime,Me=0,nt=0,yt=0;yt<De.length;yt++){var sr=De.start(yt),Nr=De.end(yt);if(sr<=Re&&Re<Nr){Me=sr,nt=Nr;break}}nt>=Re+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){u.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var De=this._mediaElement.currentTime,Re=this._mediaElement.buffered,Me=!1,nt=0;nt<Re.length;nt++){var yt=Re.start(nt),sr=Re.end(nt);if(De>=yt&&De<sr){De>=sr-this._config.lazyLoadRecoverDuration&&(Me=!0);break}}Me&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Me&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(De){for(var Re=this._mediaElement.buffered,Me=0;Me<Re.length;Me++){var nt=Re.start(Me),yt=Re.end(Me);if(De>=nt&&De<yt)return!0}return!1}},{key:"_internalSeek",value:function(De){var Re=this._isTimepointBuffered(De),Me=!1,nt=0;if(De<1&&this._mediaElement.buffered.length>0){var yt=this._mediaElement.buffered.start(0);(yt<1&&De<yt||C.safari)&&(Me=!0,nt=C.safari?.1:yt)}if(Me)this._requestSetTime=!0,this._mediaElement.currentTime=nt;else if(Re){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=De;else{var sr=this._msectl.getNearestKeyframe(Math.floor(De*1e3));this._requestSetTime=!0,sr!=null?this._mediaElement.currentTime=sr.dts/1e3:this._mediaElement.currentTime=De}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var De=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(De)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(De),this._transmuxer.seek(Math.floor(De*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=De))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(De){var Re=this._mediaElement;if(De||!this._receivedCanPlay||Re.readyState<2){var Me=Re.buffered;Me.length>0&&Re.currentTime<Me.start(0)&&(u.w(this.TAG,"Playback seems stuck at ".concat(Re.currentTime,", seek to ").concat(Me.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Me.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(De){var Re=this._mediaElement.currentTime,Me=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Re<1&&Me.length>0){var nt=Me.start(0);if(nt<1&&Re<nt||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:nt;return}}if(this._isTimepointBuffered(Re)){if(this._alwaysSeekKeyframe){var yt=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));yt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=yt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Re,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(De){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(De){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(De){this._checkAndResumeStuckPlayback()}}]),Xt}(),it=ft,Or=function(){function Xt(wt,De){if(Object(y.a)(this,Xt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new p.a,this._config=ee(),typeof De=="object"&&Object.assign(this._config,De),wt.type.toLowerCase()==="flv")throw new n("NativePlayer does't support flv MediaDataSource input!");if(wt.hasOwnProperty("segments"))throw new n("NativePlayer(".concat(wt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=wt,this._mediaElement=null}return Object(f.a)(Xt,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(De,Re){var Me=this;De===ke.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Me._emitter.emit(ke.MEDIA_INFO,Me.mediaInfo)}):De===ke.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Me._emitter.emit(ke.STATISTICS_INFO,Me.statisticsInfo)})),this._emitter.addListener(De,Re)}},{key:"off",value:function(De,Re){this._emitter.removeListener(De,Re)}},{key:"attachMediaElement",value:function(De){if(this._mediaElement=De,De.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{De.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Re){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(De){this._mediaElement.volume=De}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(De){this._mediaElement.muted=De}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(De){this._mediaElement?this._mediaElement.currentTime=De:this._pendingSeekTime=De}},{key:"mediaInfo",get:function(){var De=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Re={mimeType:De+this._mediaDataSource.type};return this._mediaElement&&(Re.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Re.width=this._mediaElement.videoWidth,Re.height=this._mediaElement.videoHeight)),Re}},{key:"statisticsInfo",get:function(){var De={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return De;var Re=!0,Me=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Me=yt.totalVideoFrames,nt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Me=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Re=!1;return Re&&(De.decodedFrames=Me,De.droppedFrames=nt),De}},{key:"_onvLoadedMetadata",value:function(De){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ke.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ke.STATISTICS_INFO,this.statisticsInfo)}}]),Xt}(),an=Or;A.install();function En(Xt,wt){var De=Xt;if(De==null||typeof De!="object")throw new n("MediaDataSource must be an javascript object!");if(!De.hasOwnProperty("type"))throw new n("MediaDataSource must has type field to indicate video file type!");switch(De.type){case"flv":return new it(De,wt);default:return new an(De,wt)}}function Bn(){return ye.supportMSEH264Playback()}function vi(){return ye.getFeatureList()}var Ln={};Ln.createPlayer=En,Ln.isSupported=Bn,Ln.getFeatureList=vi,Ln.BaseLoader=g,Ln.LoaderStatus=c,Ln.LoaderErrors=h,Ln.Events=ke,Ln.ErrorTypes=tr,Ln.ErrorDetails=Bt,Ln.FlvPlayer=it,Ln.NativePlayer=an,Ln.LoggingControl=Ue,Object.defineProperty(Ln,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Mn=L.a=Ln},GVMX:function(R,L,r){var y=r("JEkh"),f=y.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});R.exports=f},GdRQ:function(R,L,r){"use strict";function y(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(T){return typeof T}:y=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},y(C)}Object.defineProperty(L,"__esModule",{value:!0}),L.isMac=c,L.isWindows=h,L.isIOS=g,L.isSafari=v,L.isIE=b,L.isEdge=S,L.isFirefox=E,L.hasScrollbarGutter=L.supportsImageMetadata=L.supportsCursorURIs=L.dragThreshold=L.isTouchDevice=void 0;var f=A(r("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var C=new WeakMap;return x=function(){return C},C}function A(C){if(C&&C.__esModule)return C;if(C===null||y(C)!=="object"&&typeof C!="function")return{default:C};var _=x();if(_&&_.has(C))return _.get(C);var T={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in C)if(Object.prototype.hasOwnProperty.call(C,O)){var I=w?Object.getOwnPropertyDescriptor(C,O):null;I&&(I.get||I.set)?Object.defineProperty(T,O,I):T[O]=C[O]}return T.default=C,_&&_.set(C,T),T}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;L.isTouchDevice=m,window.addEventListener("touchstart",function C(){L.isTouchDevice=m=!0,window.removeEventListener("touchstart",C,!1)},!1);var p=10*(window.devicePixelRatio||1);L.dragThreshold=p;var d=!1;try{var u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',u.style.cursor.indexOf("url")===0?(f.Info("Data URI scheme cursor supported"),d=!0):f.Warn("Data URI scheme cursor not supported")}catch(C){f.Error("Data URI scheme cursor test exception: "+C)}var a=d;L.supportsCursorURIs=a;var i=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),i=!0}catch(C){}var t=i;L.supportsImageMetadata=t;var s=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var l=document.createElement("div");e.appendChild(l);var n=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),s=n!=0}catch(C){f.Error("Scrollbar test exception: "+C)}var o=s;L.hasScrollbarGutter=o;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function h(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function v(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function S(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function E(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(R,L,r){var y=r("bYtY"),f=r("6Ic6"),x=r("IwbS"),A=r("y+Vt"),m=r("sK/D"),p=m.createClipPath,d=["itemStyle"],u=["emphasis","itemStyle"],a=["color","color0","borderColor","borderColor0"],i=f.extend({type:"candlestick",render:function(v,b,S){this.group.removeClipPath(),this._updateDrawMode(v),this._isLargeDraw?this._renderLarge(v):this._renderNormal(v)},incrementalPrepareRender:function(v,b,S){this._clear(),this._updateDrawMode(v)},incrementalRender:function(v,b,S,E){this._isLargeDraw?this._incrementalRenderLarge(v,b):this._incrementalRenderNormal(v,b)},_updateDrawMode:function(v){var b=v.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(v){var b=v.getData(),S=this._data,E=this.group,C=b.getLayout("isSimpleBox"),_=v.get("clip",!0),T=v.coordinateSystem,w=T.getArea&&T.getArea();this._data||E.removeAll(),b.diff(S).add(function(O){if(b.hasValue(O)){var I,k=b.getItemLayout(O);if(_&&e(w,k))return;I=s(k,O,!0),x.initProps(I,{shape:{points:k.ends}},v,O),l(I,b,O,C),E.add(I),b.setItemGraphicEl(O,I)}}).update(function(O,I){var k=S.getItemGraphicEl(I);if(!b.hasValue(O)){E.remove(k);return}var M=b.getItemLayout(O);if(_&&e(w,M)){E.remove(k);return}k?x.updateProps(k,{shape:{points:M.ends}},v,O):k=s(M,O),l(k,b,O,C),E.add(k),b.setItemGraphicEl(O,k)}).remove(function(O){var I=S.getItemGraphicEl(O);I&&E.remove(I)}).execute(),this._data=b},_renderLarge:function(v){this._clear(),c(v,this.group);var b=v.get("clip",!0)?p(v.coordinateSystem,!1,v):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(v,b){for(var S=b.getData(),E=S.getLayout("isSimpleBox"),C;(C=v.next())!=null;){var _,T=S.getItemLayout(C);_=s(T,C),l(_,S,C,E),_.incremental=!0,this.group.add(_)}},_incrementalRenderLarge:function(v,b){c(b,this.group,!0)},remove:function(v){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(v,b){var S=b.points;this.__simpleBox?(v.moveTo(S[4][0],S[4][1]),v.lineTo(S[6][0],S[6][1])):(v.moveTo(S[0][0],S[0][1]),v.lineTo(S[1][0],S[1][1]),v.lineTo(S[2][0],S[2][1]),v.lineTo(S[3][0],S[3][1]),v.closePath(),v.moveTo(S[4][0],S[4][1]),v.lineTo(S[5][0],S[5][1]),v.moveTo(S[6][0],S[6][1]),v.lineTo(S[7][0],S[7][1]))}});function s(v,b,S){var E=v.ends;return new t({shape:{points:S?n(E,v):E},z2:100})}function e(v,b){for(var S=!0,E=0;E<b.ends.length;E++)if(v.contain(b.ends[E][0],b.ends[E][1])){S=!1;break}return S}function l(v,b,S,E){var C=b.getItemModel(S),_=C.getModel(d),T=b.getItemVisual(S,"color"),w=b.getItemVisual(S,"borderColor")||T,O=_.getItemStyle(a);v.useStyle(O),v.style.strokeNoScale=!0,v.style.fill=T,v.style.stroke=w,v.__simpleBox=E;var I=C.getModel(u).getItemStyle();x.setHoverStyle(v,I)}function n(v,b){return y.map(v,function(S){return S=S.slice(),S[1]=b.initBaseline,S})}var o=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(v,b){for(var S=b.points,E=0;E<S.length;)if(this.__sign===S[E++]){var C=S[E++];v.moveTo(C,S[E++]),v.lineTo(C,S[E++])}else E+=3}});function c(v,b,S){var E=v.getData(),C=E.getLayout("largePoints"),_=new o({shape:{points:C},__sign:1});b.add(_);var T=new o({shape:{points:C},__sign:-1});b.add(T),h(1,_,v,E),h(-1,T,v,E),S&&(_.incremental=!0,T.incremental=!0)}function h(v,b,S,E){var C=v>0?"P":"N",_=E.getVisual("borderColor"+C)||E.getVisual("color"+C),T=S.getModel(d).getItemStyle(a);b.useStyle(T),b.style.fill=null,b.style.stroke=_}var g=i;R.exports=g},Gev7:function(R,L,r){var y=r("bYtY"),f=r("K2GJ"),x=r("1bdT"),A=r("ni6a");function m(d){d=d||{},x.call(this,d);for(var u in d)d.hasOwnProperty(u)&&u!=="style"&&(this[u]=d[u]);this.style=new f(d.style,this),this._rect=null,this.__clipPaths=null}m.prototype={constructor:m,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(u){},afterBrush:function(u){},brush:function(u,a){},getBoundingRect:function(){},contain:function(u,a){return this.rectContain(u,a)},traverse:function(u,a){u.call(a,this)},rectContain:function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();return t.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(u){return this.animate("style",u)},attrKV:function(u,a){u!=="style"?x.prototype.attrKV.call(this,u,a):this.style.set(a)},setStyle:function(u,a){return this.style.set(u,a),this.dirty(!1),this},useStyle:function(u){return this.style=new f(u,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,x),y.mixin(m,A);var p=m;R.exports=p},Gfru:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("a7Wl")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CaretUpOutlined";var i=A.forwardRef(a);L.default=i},GrNh:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("6Ic6");function A(i,t,s,e){var l=t.getData(),n=this.dataIndex,o=l.getName(n),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:i,name:o,seriesId:t.id}),l.each(function(h){m(l.getItemGraphicEl(h),l.getItemLayout(h),t.isSelected(l.getName(h)),c,s)})}function m(i,t,s,e,l){var n=(t.startAngle+t.endAngle)/2,o=Math.cos(n),c=Math.sin(n),h=s?e:0,g=[o*h,c*h];l?i.animate().when(200,{position:g}).start("bounceOut"):i.attr("position",g)}function p(i,t){f.Group.call(this);var s=new f.Sector({z2:2}),e=new f.Polyline,l=new f.Text;this.add(s),this.add(e),this.add(l),this.updateData(i,t,!0)}var d=p.prototype;d.updateData=function(i,t,s){var e=this.childAt(0),l=this.childAt(1),n=this.childAt(2),o=i.hostModel,c=i.getItemModel(t),h=i.getItemLayout(t),g=y.extend({},h);g.label=null;var v=o.getShallow("animationTypeUpdate");if(s){e.setShape(g);var b=o.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,f.initProps(e,{shape:{r:h.r}},o,t)):(e.shape.endAngle=h.startAngle,f.updateProps(e,{shape:{endAngle:h.endAngle}},o,t))}else v==="expansion"?e.setShape(g):f.updateProps(e,{shape:g},o,t);var S=i.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:S},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var E=c.getShallow("cursor");E&&e.attr("cursor",E),m(this,i.getItemLayout(t),o.isSelected(i.getName(t)),o.get("selectedOffset"),o.get("animation"));var C=!s&&v==="transition";this._updateLabel(i,t,C),this.highDownOnUpdate=o.get("silent")?null:function(_,T){var w=o.isAnimationEnabled()&&c.get("hoverAnimation");T==="emphasis"?(l.ignore=l.hoverIgnore,n.ignore=n.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+o.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,n.ignore=n.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},f.setHoverStyle(this)},d._updateLabel=function(i,t,s){var e=this.childAt(1),l=this.childAt(2),n=i.hostModel,o=i.getItemModel(t),c=i.getItemLayout(t),h=c.label,g=i.getItemVisual(t,"color");if(!h||isNaN(h.x)||isNaN(h.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var v={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},b={x:h.x,y:h.y};s?(f.updateProps(e,{shape:v},n,t),f.updateProps(l,{style:b},n,t)):(e.attr({shape:v}),l.attr({style:b})),l.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var S=o.getModel("label"),E=o.getModel("emphasis.label"),C=o.getModel("labelLine"),_=o.getModel("emphasis.labelLine"),g=i.getItemVisual(t,"color");f.setLabelStyle(l.style,l.hoverStyle={},S,E,{labelFetcher:i.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:i.getItemVisual(t,"opacity")}),l.ignore=l.normalIgnore=!S.get("show"),l.hoverIgnore=!E.get("show"),e.ignore=e.normalIgnore=!C.get("show"),e.hoverIgnore=!_.get("show"),e.setStyle({stroke:g,opacity:i.getItemVisual(t,"opacity")}),e.setStyle(C.getModel("lineStyle").getLineStyle()),e.hoverStyle=_.getModel("lineStyle").getLineStyle();var T=C.get("smooth");T&&T===!0&&(T=.4),e.setShape({smooth:T})},y.inherits(p,f.Group);var u=x.extend({type:"pie",init:function(){var i=new f.Group;this._sectorGroup=i},render:function(i,t,s,e){if(e&&e.from===this.uid)return;var l=i.getData(),n=this._data,o=this.group,c=t.get("animation"),h=!n,g=i.get("animationType"),v=i.get("animationTypeUpdate"),b=y.curry(A,this.uid,i,c,s),S=i.get("selectedMode");if(l.diff(n).add(function(w){var O=new p(l,w);h&&g!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),S&&O.on("click",b),l.setItemGraphicEl(w,O),o.add(O)}).update(function(w,O){var I=n.getItemGraphicEl(O);!h&&v!=="transition"&&I.eachChild(function(k){k.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),S&&I.on("click",b),o.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var O=n.getItemGraphicEl(w);o.remove(O)}).execute(),c&&l.count()>0&&(h?g!=="scale":v!=="transition")){for(var E=l.getItemLayout(0),C=1;isNaN(E.startAngle)&&C<l.count();++C)E=l.getItemLayout(C);var _=Math.max(s.getWidth(),s.getHeight())/2,T=y.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(E.cx,E.cy,_,E.startAngle,E.clockwise,T,i,h))}else o.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(i,t,s,e,l,n,o,c){var h=new f.Sector({shape:{cx:i,cy:t,r0:0,r:s,startAngle:e,endAngle:e,clockwise:l}}),g=c?f.initProps:f.updateProps;return g(h,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},o,n),h},containPoint:function(i,t){var s=t.getData(),e=s.getItemLayout(0);if(e){var l=i[0]-e.cx,n=i[1]-e.cy,o=Math.sqrt(l*l+n*n);return o<=e.r&&o>=e.r0}}}),a=u;R.exports=a},GtAB:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("gKaM")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="DoubleLeftOutlined";var i=A.forwardRef(a);L.default=i},Gytx:function(R,L){R.exports=function(y,f,x,A){var m=x?x.call(A,y,f):void 0;if(m!==void 0)return!!m;if(y===f)return!0;if(typeof y!="object"||!y||typeof f!="object"||!f)return!1;var p=Object.keys(y),d=Object.keys(f);if(p.length!==d.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(f),a=0;a<p.length;a++){var i=p[a];if(!u(i))return!1;var t=y[i],s=f[i];if(m=x?x.call(A,t,s,i):void 0,m===!1||m===void 0&&t!==s)return!1}return!0}},GzdX:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("q1tI"),A=r.n(x),m=r("rePB"),p=r("1OyB"),d=r("vuIU"),u=r("Ji7U"),a=r("md7G"),i=r("foSv"),t=r("m+aA"),s=r("TSYQ"),e=r.n(s),l=r("4IlW");function n(j){var K=j.pageXOffset,z="scrollLeft";if(typeof K!="number"){var V=j.document;K=V.documentElement[z],typeof K!="number"&&(K=V.body[z])}return K}function o(j){var K,z,V=j.ownerDocument,Q=V.body,G=V&&V.documentElement,ee=j.getBoundingClientRect();return K=ee.left,z=ee.top,K-=G.clientLeft||Q.clientLeft||0,z-=G.clientTop||Q.clientTop||0,{left:K,top:z}}function c(j){var K=o(j),z=j.ownerDocument,V=z.defaultView||z.parentWindow;return K.left+=n(V),K.left}function h(j){var K=g();return function(){var V=Object(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}var v=function(j){Object(u.a)(z,j);var K=h(z);function z(){var V;return Object(p.a)(this,z),V=K.apply(this,arguments),V.onHover=function(Q){var G=V.props,ee=G.onHover,se=G.index;ee(Q,se)},V.onClick=function(Q){var G=V.props,ee=G.onClick,se=G.index;ee(Q,se)},V.onKeyDown=function(Q){var G=V.props,ee=G.onClick,se=G.index;Q.keyCode===13&&ee(Q,se)},V}return Object(d.a)(z,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,ee=Q.index,se=Q.value,ye=Q.allowHalf,he=Q.focused,ke=ee+1,Pe=G;return se===0&&ee===0&&he?Pe+=" ".concat(G,"-focused"):ye&&se+.5>=ke&&se<ke?(Pe+=" ".concat(G,"-half ").concat(G,"-active"),he&&(Pe+=" ".concat(G,"-focused"))):(Pe+=ke<=se?" ".concat(G,"-full"):" ".concat(G,"-zero"),ke===se&&he&&(Pe+=" ".concat(G,"-focused"))),Pe}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,ee=this.onKeyDown,se=this.props,ye=se.disabled,he=se.prefixCls,ke=se.character,Pe=se.characterRender,Ue=se.index,$e=se.count,Ge=se.value,ht=typeof ke=="function"?ke(this.props):ke,Fe=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:ye?null:G,onKeyDown:ye?null:ee,onMouseMove:ye?null:Q,role:"radio","aria-checked":Ge>Ue?"true":"false","aria-posinset":Ue+1,"aria-setsize":$e,tabIndex:ye?-1:0},A.a.createElement("div",{className:"".concat(he,"-first")},ht),A.a.createElement("div",{className:"".concat(he,"-second")},ht)));return Pe&&(Fe=Pe(Fe,this.props)),Fe}}]),z}(A.a.Component);function b(j,K){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);K&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),z.push.apply(z,V)}return z}function S(j){for(var K=1;K<arguments.length;K++){var z=arguments[K]!=null?arguments[K]:{};K%2?b(Object(z),!0).forEach(function(V){Object(m.a)(j,V,z[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(z)):b(Object(z)).forEach(function(V){Object.defineProperty(j,V,Object.getOwnPropertyDescriptor(z,V))})}return j}function E(j){var K=C();return function(){var V=Object(i.a)(j),Q;if(K){var G=Object(i.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(a.a)(this,Q)}}function C(){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(j){return!1}}function _(){}var T=function(j){Object(u.a)(z,j);var K=E(z);function z(V){var Q;Object(p.a)(this,z),Q=K.call(this,V),Q.onHover=function(ee,se){var ye=Q.props.onHoverChange,he=Q.getStarValue(se,ee.pageX),ke=Q.state.cleanedValue;he!==ke&&Q.setState({hoverValue:he,cleanedValue:null}),ye(he)},Q.onMouseLeave=function(){var ee=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),ee(void 0)},Q.onClick=function(ee,se){var ye=Q.props.allowClear,he=Q.state.value,ke=Q.getStarValue(se,ee.pageX),Pe=!1;ye&&(Pe=ke===he),Q.onMouseLeave(),Q.changeValue(Pe?0:ke),Q.setState({cleanedValue:Pe?ke:null})},Q.onFocus=function(){var ee=Q.props.onFocus;Q.setState({focused:!0}),ee&&ee()},Q.onBlur=function(){var ee=Q.props.onBlur;Q.setState({focused:!1}),ee&&ee()},Q.onKeyDown=function(ee){var se=ee.keyCode,ye=Q.props,he=ye.count,ke=ye.allowHalf,Pe=ye.onKeyDown,Ue=ye.direction,$e=Ue==="rtl",Ge=Q.state.value;se===l.a.RIGHT&&Ge<he&&!$e?(ke?Ge+=.5:Ge+=1,Q.changeValue(Ge),ee.preventDefault()):se===l.a.LEFT&&Ge>0&&!$e||se===l.a.RIGHT&&Ge>0&&$e?(ke?Ge-=.5:Ge-=1,Q.changeValue(Ge),ee.preventDefault()):se===l.a.LEFT&&Ge<he&&$e&&(ke?Ge+=.5:Ge+=1,Q.changeValue(Ge),ee.preventDefault()),Pe&&Pe(ee)},Q.saveRef=function(ee){return function(se){Q.stars[ee]=se}},Q.saveRate=function(ee){Q.rate=ee};var G=V.value;return G===void 0&&(G=V.defaultValue),Q.stars={},Q.state={value:G,focused:!1,cleanedValue:null},Q}return Object(d.a)(z,[{key:"componentDidMount",value:function(){var Q=this.props,G=Q.autoFocus,ee=Q.disabled;G&&!ee&&this.focus()}},{key:"getStarDOM",value:function(Q){return Object(t.a)(this.stars[Q])}},{key:"getStarValue",value:function(Q,G){var ee=this.props,se=ee.allowHalf,ye=ee.direction,he=ye==="rtl",ke=Q+1;if(se){var Pe=this.getStarDOM(Q),Ue=c(Pe),$e=Pe.clientWidth;(he&&G-Ue>$e/2||!he&&G-Ue<$e/2)&&(ke-=.5)}return ke}},{key:"focus",value:function(){var Q=this.props.disabled;Q||this.rate.focus()}},{key:"blur",value:function(){var Q=this.props.disabled;Q||this.rate.blur()}},{key:"changeValue",value:function(Q){var G=this.props.onChange;"value"in this.props||this.setState({value:Q}),G(Q)}},{key:"render",value:function(){for(var Q=this.props,G=Q.count,ee=Q.allowHalf,se=Q.style,ye=Q.prefixCls,he=Q.disabled,ke=Q.className,Pe=Q.character,Ue=Q.characterRender,$e=Q.tabIndex,Ge=Q.direction,ht=this.state,Fe=ht.value,oe=ht.hoverValue,rt=ht.focused,fe=[],J=he?"".concat(ye,"-disabled"):"",Y=0;Y<G;Y+=1)fe.push(A.a.createElement(v,{ref:this.saveRef(Y),index:Y,count:G,disabled:he,prefixCls:"".concat(ye,"-star"),allowHalf:ee,value:oe===void 0?Fe:oe,onClick:this.onClick,onHover:this.onHover,key:Y,character:Pe,characterRender:Ue,focused:rt}));var $=e()(ye,J,ke,Object(m.a)({},"".concat(ye,"-rtl"),Ge==="rtl"));return A.a.createElement("ul",{className:$,style:se,onMouseLeave:he?null:this.onMouseLeave,tabIndex:he?-1:$e,onFocus:he?null:this.onFocus,onBlur:he?null:this.onBlur,onKeyDown:he?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},fe)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?S(S({},G),{},{value:Q.value}):G}}]),z}(A.a.Component);T.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:_,character:"\u2605",onHoverChange:_,tabIndex:0,direction:"ltr"};var w=T,O=w,I=r("S3Q+"),k=r.n(I),M=r("3S7+"),U=r("H84U"),P=function(j,K){var z={};for(var V in j)Object.prototype.hasOwnProperty.call(j,V)&&K.indexOf(V)<0&&(z[V]=j[V]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(j);Q<V.length;Q++)K.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(j,V[Q])&&(z[V[Q]]=j[V[Q]]);return z},X=x.forwardRef(function(j,K){var z=j.prefixCls,V=j.tooltips,Q=P(j,["prefixCls","tooltips"]),G=function(Pe,Ue){var $e=Ue.index;return V?x.createElement(M.a,{title:V[$e]},Pe):Pe},ee=x.useContext(U.b),se=ee.getPrefixCls,ye=ee.direction,he=se("rate",z);return x.createElement(O,f()({ref:K,characterRender:G},Q,{prefixCls:he,direction:ye}))});X.displayName="Rate",X.defaultProps={character:x.createElement(k.a,null)};var F=L.a=X},H2oc:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("zzLK"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},H6uX:function(R,L){var r=Array.prototype.slice,y=function(p){this._$handlers={},this._$eventProcessor=p};y.prototype={constructor:y,one:function(p,d,u,a){return x(this,p,d,u,a,!0)},on:function(p,d,u,a){return x(this,p,d,u,a,!1)},isSilent:function(p){var d=this._$handlers;return!d[p]||!d[p].length},off:function(p,d){var u=this._$handlers;if(!p)return this._$handlers={},this;if(d){if(u[p]){for(var a=[],i=0,t=u[p].length;i<t;i++)u[p][i].h!==d&&a.push(u[p][i]);u[p]=a}u[p]&&u[p].length===0&&delete u[p]}else delete u[p];return this},trigger:function(p){var d=this._$handlers[p],u=this._$eventProcessor;if(d){var a=arguments,i=a.length;i>3&&(a=r.call(a,1));for(var t=d.length,s=0;s<t;){var e=d[s];if(u&&u.filter&&e.query!=null&&!u.filter(p,e.query)){s++;continue}switch(i){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,a[1]);break;case 3:e.h.call(e.ctx,a[1],a[2]);break;default:e.h.apply(e.ctx,a);break}e.one?(d.splice(s,1),t--):s++}}return u&&u.afterTrigger&&u.afterTrigger(p),this},triggerWithContext:function(p){var d=this._$handlers[p],u=this._$eventProcessor;if(d){var a=arguments,i=a.length;i>4&&(a=r.call(a,1,a.length-1));for(var t=a[a.length-1],s=d.length,e=0;e<s;){var l=d[e];if(u&&u.filter&&l.query!=null&&!u.filter(p,l.query)){e++;continue}switch(i){case 1:l.h.call(t);break;case 2:l.h.call(t,a[1]);break;case 3:l.h.call(t,a[1],a[2]);break;default:l.h.apply(t,a);break}l.one?(d.splice(e,1),s--):e++}}return u&&u.afterTrigger&&u.afterTrigger(p),this}};function f(m,p){var d=m._$eventProcessor;return p!=null&&d&&d.normalizeQuery&&(p=d.normalizeQuery(p)),p}function x(m,p,d,u,a,i){var t=m._$handlers;if(typeof d=="function"&&(a=u,u=d,d=null),!u||!p)return m;d=f(m,d),t[p]||(t[p]=[]);for(var s=0;s<t[p].length;s++)if(t[p][s].h===u)return m;var e={h:u,one:i,query:d,ctx:a||m,callAtLast:u.zrEventfulCallAtLast},l=t[p].length-1,n=t[p][l];return n&&n.callAtLast?t[p].splice(l,0,e):t[p].push(e),m}var A=y;R.exports=A},H7XF:function(R,L,r){"use strict";L.byteLength=u,L.toByteArray=i,L.fromByteArray=e;for(var y=[],f=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,p=A.length;m<p;++m)y[m]=A[m],f[A.charCodeAt(m)]=m;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63;function d(l){var n=l.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=l.indexOf("=");o===-1&&(o=n);var c=o===n?0:4-o%4;return[o,c]}function u(l){var n=d(l),o=n[0],c=n[1];return(o+c)*3/4-c}function a(l,n,o){return(n+o)*3/4-o}function i(l){var n,o=d(l),c=o[0],h=o[1],g=new x(a(l,c,h)),v=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)n=f[l.charCodeAt(S)]<<18|f[l.charCodeAt(S+1)]<<12|f[l.charCodeAt(S+2)]<<6|f[l.charCodeAt(S+3)],g[v++]=n>>16&255,g[v++]=n>>8&255,g[v++]=n&255;return h===2&&(n=f[l.charCodeAt(S)]<<2|f[l.charCodeAt(S+1)]>>4,g[v++]=n&255),h===1&&(n=f[l.charCodeAt(S)]<<10|f[l.charCodeAt(S+1)]<<4|f[l.charCodeAt(S+2)]>>2,g[v++]=n>>8&255,g[v++]=n&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function s(l,n,o){for(var c,h=[],g=n;g<o;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var n,o=l.length,c=o%3,h=[],g=16383,v=0,b=o-c;v<b;v+=g)h.push(s(l,v,v+g>b?b:v+g));return c===1?(n=l[o-1],h.push(y[n>>2]+y[n<<4&63]+"==")):c===2&&(n=(l[o-2]<<8)+l[o-1],h.push(y[n>>10]+y[n>>4&63]+y[n<<2&63]+"=")),h.join("")}},H8j4:function(R,L,r){var y=r("QkVE");function f(x,A){var m=y(this,x),p=m.size;return m.set(x,A),this.size+=m.size==p?0:1,this}R.exports=f},HBhm:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};L.default=y},HDXh:function(R,L,r){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var f=r("H7XF"),x=r("kVK+"),A=r("49sm");L.Buffer=u,L.SlowBuffer=h,L.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:m(),L.kMaxLength=p();function m(){try{var fe=new Uint8Array(1);return fe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},fe.foo()===42&&typeof fe.subarray=="function"&&fe.subarray(1,1).byteLength===0}catch(J){return!1}}function p(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(fe,J){if(p()<J)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(fe=new Uint8Array(J),fe.__proto__=u.prototype):(fe===null&&(fe=new u(J)),fe.length=J),fe}function u(fe,J,Y){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(fe,J,Y);if(typeof fe=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,fe)}return a(this,fe,J,Y)}u.poolSize=8192,u._augment=function(fe){return fe.__proto__=u.prototype,fe};function a(fe,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?n(fe,J,Y,$):typeof J=="string"?e(fe,J,Y):o(fe,J)}u.from=function(fe,J,Y){return a(null,fe,J,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}));function i(fe){if(typeof fe!="number")throw new TypeError('"size" argument must be a number');if(fe<0)throw new RangeError('"size" argument must not be negative')}function t(fe,J,Y,$){return i(J),J<=0?d(fe,J):Y!==void 0?typeof $=="string"?d(fe,J).fill(Y,$):d(fe,J).fill(Y):d(fe,J)}u.alloc=function(fe,J,Y){return t(null,fe,J,Y)};function s(fe,J){if(i(J),fe=d(fe,J<0?0:c(J)|0),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)fe[Y]=0;return fe}u.allocUnsafe=function(fe){return s(null,fe)},u.allocUnsafeSlow=function(fe){return s(null,fe)};function e(fe,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!u.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;fe=d(fe,$);var de=fe.write(J,Y);return de!==$&&(fe=fe.slice(0,de)),fe}function l(fe,J){var Y=J.length<0?0:c(J.length)|0;fe=d(fe,Y);for(var $=0;$<Y;$+=1)fe[$]=J[$]&255;return fe}function n(fe,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),u.TYPED_ARRAY_SUPPORT?(fe=J,fe.__proto__=u.prototype):fe=l(fe,J),fe}function o(fe,J){if(u.isBuffer(J)){var Y=c(J.length)|0;return fe=d(fe,Y),fe.length===0||J.copy(fe,0,0,Y),fe}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||rt(J.length)?d(fe,0):l(fe,J);if(J.type==="Buffer"&&A(J.data))return l(fe,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(fe){if(fe>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return fe|0}function h(fe){return+fe!=fe&&(fe=0),u.alloc(+fe)}u.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},u.compare=function(J,Y){if(!u.isBuffer(J)||!u.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,we=0,Ce=Math.min($,de);we<Ce;++we)if(J[we]!==Y[we]){$=J[we],de=Y[we];break}return $<de?-1:de<$?1:0},u.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(J,Y){if(!A(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return u.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=u.allocUnsafe(Y),we=0;for($=0;$<J.length;++$){var Ce=J[$];if(!u.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,we),we+=Ce.length}return de};function g(fe,J){if(u.isBuffer(fe))return fe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(fe)||fe instanceof ArrayBuffer))return fe.byteLength;typeof fe!="string"&&(fe=""+fe);var Y=fe.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return $e(fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(fe).length;default:if($)return $e(fe).length;J=(""+J).toLowerCase(),$=!0}}u.byteLength=g;function v(fe,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(fe||(fe="utf8");;)switch(fe){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+fe);fe=(fe+"").toLowerCase(),$=!0}}u.prototype._isBuffer=!0;function b(fe,J,Y){var $=fe[J];fe[J]=fe[Y],fe[Y]=$}u.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},u.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},u.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},u.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},u.prototype.equals=function(J){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:u.compare(this,J)===0},u.prototype.inspect=function(){var J="",Y=L.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},u.prototype.compare=function(J,Y,$,de,we){if(!u.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),we===void 0&&(we=this.length),Y<0||$>J.length||de<0||we>this.length)throw new RangeError("out of range index");if(de>=we&&Y>=$)return 0;if(de>=we)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,we>>>=0,this===J)return 0;for(var Ce=we-de,Se=$-Y,le=Math.min(Ce,Se),pe=this.slice(de,we),_e=J.slice(Y,$),tt=0;tt<le;++tt)if(pe[tt]!==_e[tt]){Ce=pe[tt],Se=_e[tt];break}return Ce<Se?-1:Se<Ce?1:0};function S(fe,J,Y,$,de){if(fe.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:fe.length-1),Y<0&&(Y=fe.length+Y),Y>=fe.length){if(de)return-1;Y=fe.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=u.from(J,$)),u.isBuffer(J))return J.length===0?-1:E(fe,J,Y,$,de);if(typeof J=="number")return J=J&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(fe,J,Y):Uint8Array.prototype.lastIndexOf.call(fe,J,Y):E(fe,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(fe,J,Y,$,de){var we=1,Ce=fe.length,Se=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(fe.length<2||J.length<2)return-1;we=2,Ce/=2,Se/=2,Y/=2}function le(ct,je){return we===1?ct[je]:ct.readUInt16BE(je*we)}var pe;if(de){var _e=-1;for(pe=Y;pe<Ce;pe++)if(le(fe,pe)===le(J,_e===-1?0:pe-_e)){if(_e===-1&&(_e=pe),pe-_e+1===Se)return _e*we}else _e!==-1&&(pe-=pe-_e),_e=-1}else for(Y+Se>Ce&&(Y=Ce-Se),pe=Y;pe>=0;pe--){for(var tt=!0,gt=0;gt<Se;gt++)if(le(fe,pe+gt)!==le(J,gt)){tt=!1;break}if(tt)return pe}return-1}u.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},u.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},u.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(fe,J,Y,$){Y=Number(Y)||0;var de=fe.length-Y;$?($=Number($),$>de&&($=de)):$=de;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");$>we/2&&($=we/2);for(var Ce=0;Ce<$;++Ce){var Se=parseInt(J.substr(Ce*2,2),16);if(isNaN(Se))return Ce;fe[Y+Ce]=Se}return Ce}function _(fe,J,Y,$){return oe($e(J,fe.length-Y),fe,Y,$)}function T(fe,J,Y,$){return oe(Ge(J),fe,Y,$)}function w(fe,J,Y,$){return T(fe,J,Y,$)}function O(fe,J,Y,$){return oe(Fe(J),fe,Y,$)}function I(fe,J,Y,$){return oe(ht(J,fe.length-Y),fe,Y,$)}u.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if(($===void 0||$>we)&&($=we),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(fe,J,Y){return J===0&&Y===fe.length?f.fromByteArray(fe):f.fromByteArray(fe.slice(J,Y))}function M(fe,J,Y){Y=Math.min(fe.length,Y);for(var $=[],de=J;de<Y;){var we=fe[de],Ce=null,Se=we>239?4:we>223?3:we>191?2:1;if(de+Se<=Y){var le,pe,_e,tt;switch(Se){case 1:we<128&&(Ce=we);break;case 2:le=fe[de+1],(le&192)===128&&(tt=(we&31)<<6|le&63,tt>127&&(Ce=tt));break;case 3:le=fe[de+1],pe=fe[de+2],(le&192)===128&&(pe&192)===128&&(tt=(we&15)<<12|(le&63)<<6|pe&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:le=fe[de+1],pe=fe[de+2],_e=fe[de+3],(le&192)===128&&(pe&192)===128&&(_e&192)===128&&(tt=(we&15)<<18|(le&63)<<12|(pe&63)<<6|_e&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,Se=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Se}return P($)}var U=4096;function P(fe){var J=fe.length;if(J<=U)return String.fromCharCode.apply(String,fe);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,fe.slice($,$+=U));return Y}function X(fe,J,Y){var $="";Y=Math.min(fe.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(fe[de]&127);return $}function F(fe,J,Y){var $="";Y=Math.min(fe.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(fe[de]);return $}function j(fe,J,Y){var $=fe.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",we=J;we<Y;++we)de+=Ue(fe[we]);return de}function K(fe,J,Y){for(var $=fe.slice(J,Y),de="",we=0;we<$.length;we+=2)de+=String.fromCharCode($[we]+$[we+1]*256);return de}u.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(u.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=u.prototype;else{var we=Y-J;de=new u(we,void 0);for(var Ce=0;Ce<we;++Ce)de[Ce]=this[Ce+J]}return de};function z(fe,J,Y){if(fe%1!==0||fe<0)throw new RangeError("offset is not uint");if(fe+J>Y)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)de+=this[J+Ce]*we;return de},u.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],we=1;Y>0&&(we*=256);)de+=this[J+--Y]*we;return de},u.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},u.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},u.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},u.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},u.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},u.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)de+=this[J+Ce]*we;return we*=128,de>=we&&(de-=Math.pow(2,8*Y)),de},u.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,we=1,Ce=this[J+--de];de>0&&(we*=256);)Ce+=this[J+--de]*we;return we*=128,Ce>=we&&(Ce-=Math.pow(2,8*Y)),Ce},u.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},u.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},u.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},u.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},u.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},u.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!0,23,4)},u.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),x.read(this,J,!1,23,4)},u.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!0,52,8)},u.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),x.read(this,J,!1,52,8)};function V(fe,J,Y,$,de,we){if(!u.isBuffer(fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+$>fe.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ce=1,Se=0;for(this[Y]=J&255;++Se<$&&(Ce*=256);)this[Y+Se]=J/Ce&255;return Y+$},u.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ce=$-1,Se=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Se*=256);)this[Y+Ce]=J/Se&255;return Y+$},u.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(fe,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,we=Math.min(fe.length-Y,2);de<we;++de)fe[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}u.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(fe,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,we=Math.min(fe.length-Y,4);de<we;++de)fe[Y+de]=J>>>($?de:3-de)*8&255}u.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},u.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},u.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ce=0,Se=1,le=0;for(this[Y]=J&255;++Ce<$&&(Se*=256);)J<0&&le===0&&this[Y+Ce-1]!==0&&(le=1),this[Y+Ce]=(J/Se>>0)-le&255;return Y+$},u.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ce=$-1,Se=1,le=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Se*=256);)J<0&&le===0&&this[Y+Ce+1]!==0&&(le=1),this[Y+Ce]=(J/Se>>0)-le&255;return Y+$},u.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),u.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},u.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},u.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},u.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},u.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),u.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function ee(fe,J,Y,$,de,we){if(Y+$>fe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function se(fe,J,Y,$,de){return de||ee(fe,J,Y,4,34028234663852886e22,-34028234663852886e22),x.write(fe,J,Y,$,23,4),Y+4}u.prototype.writeFloatLE=function(J,Y,$){return se(this,J,Y,!0,$)},u.prototype.writeFloatBE=function(J,Y,$){return se(this,J,Y,!1,$)};function ye(fe,J,Y,$,de){return de||ee(fe,J,Y,8,17976931348623157e292,-17976931348623157e292),x.write(fe,J,Y,$,52,8),Y+8}u.prototype.writeDoubleLE=function(J,Y,$){return ye(this,J,Y,!0,$)},u.prototype.writeDoubleBE=function(J,Y,$){return ye(this,J,Y,!1,$)},u.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var we=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=we-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(we<1e3||!u.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<we;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+we),Y);return we},u.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!u.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Se=u.isBuffer(J)?J:$e(new u(J,de).toString()),le=Se.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Se[Ce%le]}return this};var he=/[^+\/0-9A-Za-z-_]/g;function ke(fe){if(fe=Pe(fe).replace(he,""),fe.length<2)return"";for(;fe.length%4!==0;)fe=fe+"=";return fe}function Pe(fe){return fe.trim?fe.trim():fe.replace(/^\s+|\s+$/g,"")}function Ue(fe){return fe<16?"0"+fe.toString(16):fe.toString(16)}function $e(fe,J){J=J||Infinity;for(var Y,$=fe.length,de=null,we=[],Ce=0;Ce<$;++Ce){if(Y=fe.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&we.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&we.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function Ge(fe){for(var J=[],Y=0;Y<fe.length;++Y)J.push(fe.charCodeAt(Y)&255);return J}function ht(fe,J){for(var Y,$,de,we=[],Ce=0;Ce<fe.length&&!((J-=2)<0);++Ce)Y=fe.charCodeAt(Ce),$=Y>>8,de=Y%256,we.push(de),we.push($);return we}function Fe(fe){return f.toByteArray(ke(fe))}function oe(fe,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=fe.length);++de)J[de+Y]=fe[de];return de}function rt(fe){return fe!==fe}}).call(this,r("yLpj"))},HDyB:function(R,L,r){var y=r("nmnc"),f=r("JHRd"),x=r("ljhN"),A=r("or5M"),m=r("7fqy"),p=r("rEGp"),d=1,u=2,a="[object Boolean]",i="[object Date]",t="[object Error]",s="[object Map]",e="[object Number]",l="[object RegExp]",n="[object Set]",o="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",v=y?y.prototype:void 0,b=v?v.valueOf:void 0;function S(E,C,_,T,w,O,I){switch(_){case g:if(E.byteLength!=C.byteLength||E.byteOffset!=C.byteOffset)return!1;E=E.buffer,C=C.buffer;case h:return!(E.byteLength!=C.byteLength||!O(new f(E),new f(C)));case a:case i:case e:return x(+E,+C);case t:return E.name==C.name&&E.message==C.message;case l:case o:return E==C+"";case s:var k=m;case n:var M=T&d;if(k||(k=p),E.size!=C.size&&!M)return!1;var U=I.get(E);if(U)return U==C;T|=u,I.set(E,C);var P=A(k(E),k(C),T,w,O,I);return I.delete(E),P;case c:if(b)return b.call(E)==b.call(C)}return!1}R.exports=S},"HF/U":function(R,L,r){var y=r("QBsz");function f(A){var m=A.coordinateSystem;if(m&&m.type!=="view")return;var p=A.getGraph();p.eachNode(function(d){var u=d.getModel();d.setLayout([+u.get("x"),+u.get("y")])}),x(p)}function x(A){A.eachEdge(function(m){var p=m.getModel().get("lineStyle.curveness")||0,d=y.clone(m.node1.getLayout()),u=y.clone(m.node2.getLayout()),a=[d,u];+p&&a.push([(d[0]+u[0])/2-(d[1]-u[1])*p,(d[1]+u[1])/2-(u[0]-d[0])*p]),m.setLayout(a)})}L.simpleLayout=f,L.simpleLayoutEdge=x},"HM/N":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("/SeX"),m=r("OELB"),p=m.parsePercent,d=r("aX7z"),u=d.createScaleByModel,a=d.niceScaleExtent,i=r("IDmD"),t=r("7hqr"),s=t.getStackedDimension;r("ePAk");function e(c,h,g){var v=h.get("center"),b=g.getWidth(),S=g.getHeight();c.cx=p(v[0],b),c.cy=p(v[1],S);var E=c.getRadiusAxis(),C=Math.min(b,S)/2,_=h.get("radius");_==null?_=[0,"100%"]:x.isArray(_)||(_=[0,_]),_=[p(_[0],C),p(_[1],C)],E.inverse?E.setExtent(_[1],_[0]):E.setExtent(_[0],_[1])}function l(c,h){var g=this,v=g.getAngleAxis(),b=g.getRadiusAxis();if(v.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(C){if(C.coordinateSystem===g){var _=C.getData();x.each(_.mapDimension("radius",!0),function(T){b.scale.unionExtentFromData(_,s(_,T))}),x.each(_.mapDimension("angle",!0),function(T){v.scale.unionExtentFromData(_,s(_,T))})}}),a(v.scale,v.model),a(b.scale,b.model),v.type==="category"&&!v.onBand){var S=v.getExtent(),E=360/v.scale.count();v.inverse?S[1]+=E:S[1]-=E,v.setExtent(S[0],S[1])}}function n(c,h){if(c.type=h.get("type"),c.scale=u(h),c.onBand=h.get("boundaryGap")&&c.type==="category",c.inverse=h.get("inverse"),h.mainType==="angleAxis"){c.inverse^=h.get("clockwise");var g=h.get("startAngle");c.setExtent(g,g+(c.inverse?-360:360))}h.axis=c,c.model=h}var o={dimensions:A.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(v,b){var S=new A(b);S.update=l;var E=S.getRadiusAxis(),C=S.getAngleAxis(),_=v.findAxisModel("radiusAxis"),T=v.findAxisModel("angleAxis");n(E,_),n(C,T),e(S,v,h),g.push(S),v.coordinateSystem=S,S.model=v}),c.eachSeries(function(v){if(v.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:v.get("polarIndex"),id:v.get("polarId")})[0];v.coordinateSystem=b.coordinateSystem}}),g}};i.register("polar",o)},HOxn:function(R,L,r){var y=r("Cwc5"),f=r("Kz5y"),x=y(f,"Promise");R.exports=x},HQLL:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("DL4k")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CaretDownOutlined";var i=A.forwardRef(a);L.default=i},"HT/e":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("rYzl"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},HjIi:function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=f.parsePercent,A=r("7hqr"),m=A.isDimensionStacked;function p(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,s){return s.dim+t.model.componentIndex}function u(t,s,e){var l={},n=a(y.filter(s.getSeriesByType(t),function(o){return!s.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));s.eachSeriesByType(t,function(o){if(o.coordinateSystem.type!=="polar")return;var c=o.getData(),h=o.coordinateSystem,g=h.getBaseAxis(),v=d(h,g),b=p(o),S=n[v][b],E=S.offset,C=S.width,_=h.getOtherAxis(g),T=o.coordinateSystem.cx,w=o.coordinateSystem.cy,O=o.get("barMinHeight")||0,I=o.get("barMinAngle")||0;l[b]=l[b]||[];for(var k=c.mapDimension(_.dim),M=c.mapDimension(g.dim),U=m(c,k),P=g.dim!=="radius"||!o.get("roundCap",!0),X=_.getExtent()[0],F=0,j=c.count();F<j;F++){var K=c.get(k,F),z=c.get(M,F),V=K>=0?"p":"n",Q=X;U&&(l[b][z]||(l[b][z]={p:X,n:X}),Q=l[b][z][V]);var G,ee,se,ye;if(_.dim==="radius"){var he=_.dataToRadius(K)-X,ke=g.dataToAngle(z);Math.abs(he)<O&&(he=(he<0?-1:1)*O),G=Q,ee=Q+he,se=ke-E,ye=se-C,U&&(l[b][z][V]=ee)}else{var Pe=_.dataToAngle(K,P)-X,Ue=g.dataToRadius(z);Math.abs(Pe)<I&&(Pe=(Pe<0?-1:1)*I),G=Ue+E,ee=G+C,se=Q,ye=Q+Pe,U&&(l[b][z][V]=ye)}c.setItemLayout(F,{cx:T,cy:w,r0:G,r:ee,startAngle:-se*Math.PI/180,endAngle:-ye*Math.PI/180})}},this)}function a(t,s){var e={};y.each(t,function(n,o){var c=n.getData(),h=n.coordinateSystem,g=h.getBaseAxis(),v=d(h,g),b=g.getExtent(),S=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),E=e[v]||{bandWidth:S,remainedWidth:S,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},C=E.stacks;e[v]=E;var _=p(n);C[_]||E.autoWidthCount++,C[_]=C[_]||{width:0,maxWidth:0};var T=x(n.get("barWidth"),S),w=x(n.get("barMaxWidth"),S),O=n.get("barGap"),I=n.get("barCategoryGap");T&&!C[_].width&&(T=Math.min(E.remainedWidth,T),C[_].width=T,E.remainedWidth-=T),w&&(C[_].maxWidth=w),O!=null&&(E.gap=O),I!=null&&(E.categoryGap=I)});var l={};return y.each(e,function(n,o){l[o]={};var c=n.stacks,h=n.bandWidth,g=x(n.categoryGap,h),v=x(n.gap,1),b=n.remainedWidth,S=n.autoWidthCount,E=(b-g)/(S+(S-1)*v);E=Math.max(E,0),y.each(c,function(w,O){var I=w.maxWidth;I&&I<E&&(I=Math.min(I,b),w.width&&(I=Math.min(I,w.width)),b-=I,w.width=I,S--)}),E=(b-g)/(S+(S-1)*v),E=Math.max(E,0);var C=0,_;y.each(c,function(w,O){w.width||(w.width=E),_=w,C+=w.width*(1+v)}),_&&(C-=_.width*v);var T=-C/2;y.each(c,function(w,O){l[o][O]=l[o][O]||{offset:T,width:w.width},T+=w.width*(1+v)})}),l}var i=u;R.exports=i},HjOm:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},f=y;L.default=f},Hvzi:function(R,L){function r(y){var f=this.has(y)&&delete this.__data__[y];return this.size-=f?1:0,f}R.exports=r},Hw7h:function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(x,A){var m=Math.cos,p=Math.sin,d=A.r,u=A.width,a=A.angle,i=A.x-m(a)*u*(u>=d/3?1:2),t=A.y-p(a)*u*(u>=d/3?1:2);a=A.angle-Math.PI/2,x.moveTo(i,t),x.lineTo(A.x+m(a)*u,A.y+p(a)*u),x.lineTo(A.x+m(A.angle)*d,A.y+p(A.angle)*d),x.lineTo(A.x-m(a)*u,A.y-p(a)*u),x.lineTo(i,t);return}});R.exports=f},Hxpc:function(R,L,r){var y=r("bYtY"),f=r("4NO4"),x=r("bLfw"),A=r("Qxkt"),m=r("cCMj"),p=r("7uqq"),d=x.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(a){x.prototype.init.apply(this,arguments),f.defaultEmphasis(a,"label",["show"])},optionUpdated:function(){var a=this.option,i=this;a.regions=p.getFilledRegions(a.regions,a.map,a.nameMap),this._optionModelMap=y.reduce(a.regions||[],function(t,s){return s.name&&t.set(s.name,new A(s,i)),t},y.createHashMap()),this.updateSelectedMap(a.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(a){return this._optionModelMap.get(a)||new A(null,this,this.ecModel)},getFormattedLabel:function(a,i){var t=this.getRegionModel(a),s=t.get("label"+(i==="normal"?".":i+".")+"formatter"),e={name:a};if(typeof s=="function")return e.status=i,s(e);if(typeof s=="string")return s.replace("{a}",a!=null?a:"")},setZoom:function(a){this.option.zoom=a},setCenter:function(a){this.option.center=a}});y.mixin(d,m);var u=d;R.exports=u},"I+77":function(R,L,r){var y=r("ProS");r("h54F"),r("lwQL"),r("10cm");var f=r("Z1r0"),x=r("f5Yq"),A=r("KUOm"),m=r("3m61"),p=r("01d+"),d=r("rdor"),u=r("WGYa"),a=r("ewwo");y.registerProcessor(f),y.registerVisual(x("graph","circle",null)),y.registerVisual(A),y.registerVisual(m),y.registerLayout(p),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,d),y.registerLayout(u),y.registerCoordinateSystem("graphView",{create:a})},"I+Bx":function(R,L,r){var y=r("bYtY"),f=r("eIcI"),x=r("ieMj"),A=r("OELB"),m=r("aX7z"),p=m.getScaleExtent,d=m.niceScaleExtent,u=r("IDmD"),a=r("jCoz");function i(s,e,l){this._model=s,this.dimensions=[],this._indicatorAxes=y.map(s.getIndicatorModels(),function(n,o){var c="indicator_"+o,h=new f(c,n.get("axisType")==="log"?new a:new x);return h.name=n.get("name"),h.model=n,n.axis=h,this.dimensions.push(c),h},this),this.resize(s,l),this.cx,this.cy,this.r,this.r0,this.startAngle}i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(s,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(s),e)},i.prototype.coordToPoint=function(s,e){var l=this._indicatorAxes[e],n=l.angle,o=this.cx+s*Math.cos(n),c=this.cy-s*Math.sin(n);return[o,c]},i.prototype.pointToData=function(s){var e=s[0]-this.cx,l=s[1]-this.cy,n=Math.sqrt(e*e+l*l);e/=n,l/=n;for(var o=Math.atan2(-l,e),c=Infinity,h,g=-1,v=0;v<this._indicatorAxes.length;v++){var b=this._indicatorAxes[v],S=Math.abs(o-b.angle);S<c&&(h=b,g=v,c=S)}return[g,+(h&&h.coordToData(n))]},i.prototype.resize=function(s,e){var l=s.get("center"),n=e.getWidth(),o=e.getHeight(),c=Math.min(n,o)/2;this.cx=A.parsePercent(l[0],n),this.cy=A.parsePercent(l[1],o),this.startAngle=s.get("startAngle")*Math.PI/180;var h=s.get("radius");(typeof h=="string"||typeof h=="number")&&(h=[0,h]),this.r0=A.parsePercent(h[0],c),this.r=A.parsePercent(h[1],c),y.each(this._indicatorAxes,function(g,v){g.setExtent(this.r0,this.r);var b=this.startAngle+v*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},i.prototype.update=function(s,e){var l=this._indicatorAxes,n=this._model;y.each(l,function(h){h.scale.setExtent(Infinity,-Infinity)}),s.eachSeriesByType("radar",function(h,g){if(h.get("coordinateSystem")!=="radar"||s.getComponent("radar",h.get("radarIndex"))!==n)return;var v=h.getData();y.each(l,function(b){b.scale.unionExtentFromData(v,v.mapDimension(b.dim))})},this);var o=n.get("splitNumber");function c(h){var g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),v=h/g;return v===2?v=5:v*=2,v*g}y.each(l,function(h,g){var v=p(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,S=h.scale,E=b.getMin(),C=b.getMax(),_=S.getInterval();if(E!=null&&C!=null)S.setExtent(+E,+C),S.setInterval((C-E)/o);else if(E!=null){var T;do T=E+_*o,S.setExtent(+E,T),S.setInterval(_),_=c(_);while(T<v[1]&&isFinite(T)&&isFinite(v[1]))}else if(C!=null){var w;do w=C-_*o,S.setExtent(w,+C),S.setInterval(_),_=c(_);while(w>v[0]&&isFinite(w)&&isFinite(v[0]))}else{var O=S.getTicks().length-1;O>o&&(_=c(_));var T=Math.ceil(v[1]/_)*_,w=A.round(T-_*o);S.setExtent(w,T),S.setInterval(_)}})},i.dimensions=[],i.create=function(s,e){var l=[];return s.eachComponent("radar",function(n){var o=new i(n,s,e);l.push(o),n.coordinateSystem=o}),s.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=l[n.get("radarIndex")||0])}),l},u.register("radar",i);var t=i;R.exports=t},"I3/A":function(R,L,r){var y=r("bYtY"),f=r("YXkt"),x=r("c2i1"),A=r("Mdki"),m=r("sdST"),p=r("IDmD"),d=r("MwEJ");function u(a,i,t,s,e){for(var l=new x(s),n=0;n<a.length;n++)l.addNode(y.retrieve(a[n].id,a[n].name,n),n);for(var o=[],c=[],h=0,n=0;n<i.length;n++){var g=i[n],v=g.source,b=g.target;l.addEdge(v,b,h)&&(c.push(g),o.push(y.retrieve(g.id,v+" > "+b)),h++)}var S=t.get("coordinateSystem"),E;if(S==="cartesian2d"||S==="polar")E=d(a,t);else{var C=p.get(S),_=C&&C.type!=="view"?C.dimensions||[]:[];y.indexOf(_,"value")<0&&_.concat(["value"]);var T=m(a,{coordDimensions:_});E=new f(T,t),E.initData(a)}var w=new f(["value"],t);return w.initData(c,o),e&&e(E,w),A({mainData:E,struct:l,structAttr:"graph",datas:{node:E,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}R.exports=u},I8Z2:function(R,L,r){"use strict";r.d(L,"a",function(){return A}),r.d(L,"b",function(){return e}),r.d(L,"c",function(){return n});var y=r("q1tI"),f=function(){var o=function(h,g){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},o(h,g)};return function(c,h){o(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),x=y.createContext(null),A=function(o){f(c,o);function c(){return o!==null&&o.apply(this,arguments)||this}return c.prototype.render=function(){return y.createElement(x.Provider,{value:this.props.store},this.props.children)},c}(y.Component),m=r("Gytx"),p=r.n(m),d=r("2mql"),u=r.n(d),a=function(){var o=function(h,g){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var S in b)b.hasOwnProperty(S)&&(v[S]=b[S])},o(h,g)};return function(c,h){o(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),i=function(){return i=Object.assign||function(o){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(o[v]=c[v])}return o},i.apply(this,arguments)};function t(o){return o.displayName||o.name||"Component"}var s=function(){return{}};function e(o,c){c===void 0&&(c={});var h=!!o,g=o||s;return function(b){var S=function(C){a(_,C);function _(T,w){var O=C.call(this,T,w)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=g(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:g(O.store.getState(),T),store:O.store,props:T},O}return _.getDerivedStateFromProps=function(T,w){return o&&o.length===2&&T!==w.props?{subscribed:g(w.store.getState(),T),props:T}:{props:T}},_.prototype.componentDidMount=function(){this.trySubscribe()},_.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},_.prototype.shouldComponentUpdate=function(T,w){return!p()(this.props,T)||!p()(this.state.subscribed,w.subscribed)},_.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},_.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},_.prototype.render=function(){var T=i(i(i({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,i({},T,{ref:this.props.miniStoreForwardedRef}))},_.displayName="Connect("+t(b)+")",_.contextType=x,_}(y.Component);if(c.forwardRef){var E=y.forwardRef(function(C,_){return y.createElement(S,i({},C,{miniStoreForwardedRef:_}))});return u()(E,b)}return u()(S,b)}}var l=function(){return l=Object.assign||function(o){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(o[v]=c[v])}return o},l.apply(this,arguments)};function n(o){var c=o,h=[];function g(S){c=l(l({},c),S);for(var E=0;E<h.length;E++)h[E]()}function v(){return c}function b(S){return h.push(S),function(){var C=h.indexOf(S);h.splice(C,1)}}return{setState:g,getState:v,subscribe:b}}},I9IY:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("ZxNd")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="EditOutlined";var i=A.forwardRef(a);L.default=i},ICMv:function(R,L,r){var y=r("bYtY"),f={getMin:function(x){var A=this.option,m=!x&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(x){var A=this.option,m=!x&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var x=this.option;return x.rangeStart!=null||x.rangeEnd!=null?!1:!x.scale},getCoordSysModel:y.noop,setRange:function(x,A){this.option.rangeStart=x,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};R.exports=f},"ID/q":function(R,L,r){"use strict";r.d(L,"a",function(){return A});var y=r("cDf5"),f=r.n(y);function x(m,p){typeof m=="function"?m(p):f()(m)==="object"&&m&&"current"in m&&(m.current=p)}function A(){for(var m=arguments.length,p=new Array(m),d=0;d<m;d++)p[d]=arguments[d];return function(u){p.forEach(function(a){x(a,u)})}}},IDmD:function(R,L,r){var y=r("bYtY"),f={};function x(){this._coordinateSystems=[]}x.prototype={constructor:x,create:function(m,p){var d=[];y.each(f,function(u,a){var i=u.create(m,p);d=d.concat(i||[])}),this._coordinateSystems=d},update:function(m,p){y.each(this._coordinateSystems,function(d){d.update&&d.update(m,p)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},x.register=function(m,p){f[m]=p},x.get=function(m){return f[m]};var A=x;R.exports=A},IMiH:function(R,L,r){var y=r("Sj9i"),f=r("QBsz"),x=r("4mN7"),A=r("mFDi"),m=r("LPTA"),p=m.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],a=[],i=[],t=[],s=Math.min,e=Math.max,l=Math.cos,n=Math.sin,o=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",g=function(S){this._saveData=!(S||!1),this._saveData&&(this.data=[]),this._ctx=null};g.prototype={constructor:g,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(S,E,C){C=C||0,this._ux=c(C/p/S)||0,this._uy=c(C/p/E)||0},getContext:function(){return this._ctx},beginPath:function(S){return this._ctx=S,S&&S.beginPath(),S&&(this.dpr=S.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(S,E){return this.addData(d.M,S,E),this._ctx&&this._ctx.moveTo(S,E),this._x0=S,this._y0=E,this._xi=S,this._yi=E,this},lineTo:function(S,E){var C=c(S-this._xi)>this._ux||c(E-this._yi)>this._uy||this._len<5;return this.addData(d.L,S,E),this._ctx&&C&&(this._needsDash()?this._dashedLineTo(S,E):this._ctx.lineTo(S,E)),C&&(this._xi=S,this._yi=E),this},bezierCurveTo:function(S,E,C,_,T,w){return this.addData(d.C,S,E,C,_,T,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(S,E,C,_,T,w):this._ctx.bezierCurveTo(S,E,C,_,T,w)),this._xi=T,this._yi=w,this},quadraticCurveTo:function(S,E,C,_){return this.addData(d.Q,S,E,C,_),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(S,E,C,_):this._ctx.quadraticCurveTo(S,E,C,_)),this._xi=C,this._yi=_,this},arc:function(S,E,C,_,T,w){return this.addData(d.A,S,E,C,C,_,T-_,0,w?0:1),this._ctx&&this._ctx.arc(S,E,C,_,T,w),this._xi=l(T)*C+S,this._yi=n(T)*C+E,this},arcTo:function(S,E,C,_,T){return this._ctx&&this._ctx.arcTo(S,E,C,_,T),this},rect:function(S,E,C,_){return this._ctx&&this._ctx.rect(S,E,C,_),this.addData(d.R,S,E,C,_),this},closePath:function(){this.addData(d.Z);var S=this._ctx,E=this._x0,C=this._y0;return S&&(this._needsDash()&&this._dashedLineTo(E,C),S.closePath()),this._xi=E,this._yi=C,this},fill:function(S){S&&S.fill(),this.toStatic()},stroke:function(S){S&&S.stroke(),this.toStatic()},setLineDash:function(S){if(S instanceof Array){this._lineDash=S,this._dashIdx=0;for(var E=0,C=0;C<S.length;C++)E+=S[C];this._dashSum=E}return this},setLineDashOffset:function(S){return this._dashOffset=S,this},len:function(){return this._len},setData:function(S){var E=S.length;!(this.data&&this.data.length===E)&&h&&(this.data=new Float32Array(E));for(var C=0;C<E;C++)this.data[C]=S[C];this._len=E},appendPath:function(S){S instanceof Array||(S=[S]);for(var E=S.length,C=0,_=this._len,T=0;T<E;T++)C+=S[T].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(_+C));for(var T=0;T<E;T++)for(var w=S[T].data,O=0;O<w.length;O++)this.data[_++]=w[O];this._len=_},addData:function(S){if(!this._saveData)return;var E=this.data;this._len+arguments.length>E.length&&(this._expandData(),E=this.data);for(var C=0;C<arguments.length;C++)E[this._len++]=arguments[C];this._prevCmd=S},_expandData:function(){if(!(this.data instanceof Array)){for(var S=[],E=0;E<this._len;E++)S[E]=this.data[E];this.data=S}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(S,E){var C=this._dashSum,_=this._dashOffset,T=this._lineDash,w=this._ctx,O=this._xi,I=this._yi,k=S-O,M=E-I,U=o(k*k+M*M),P=O,X=I,F,j=T.length,K;for(k/=U,M/=U,_<0&&(_=C+_),_%=C,P-=_*k,X-=_*M;k>0&&P<=S||k<0&&P>=S||k===0&&(M>0&&X<=E||M<0&&X>=E);){if(K=this._dashIdx,F=T[K],P+=k*F,X+=M*F,this._dashIdx=(K+1)%j,k>0&&P<O||k<0&&P>O||M>0&&X<I||M<0&&X>I)continue;w[K%2?"moveTo":"lineTo"](k>=0?s(P,S):e(P,S),M>=0?s(X,E):e(X,E))}k=P-S,M=X-E,this._dashOffset=-o(k*k+M*M)},_dashedBezierTo:function(S,E,C,_,T,w){var O=this._dashSum,I=this._dashOffset,k=this._lineDash,M=this._ctx,U=this._xi,P=this._yi,X,F,j,K=y.cubicAt,z=0,V=this._dashIdx,Q=k.length,G,ee,se=0;for(I<0&&(I=O+I),I%=O,X=0;X<1;X+=.1)F=K(U,S,C,T,X+.1)-K(U,S,C,T,X),j=K(P,E,_,w,X+.1)-K(P,E,_,w,X),z+=o(F*F+j*j);for(;V<Q&&!(se+=k[V],se>I);V++);for(X=(se-I)/z;X<=1;)G=K(U,S,C,T,X),ee=K(P,E,_,w,X),V%2?M.moveTo(G,ee):M.lineTo(G,ee),X+=k[V]/z,V=(V+1)%Q;V%2!==0&&M.lineTo(T,w),F=T-G,j=w-ee,this._dashOffset=-o(F*F+j*j)},_dashedQuadraticTo:function(S,E,C,_){var T=C,w=_;C=(C+2*S)/3,_=(_+2*E)/3,S=(this._xi+2*S)/3,E=(this._yi+2*E)/3,this._dashedBezierTo(S,E,C,_,T,w)},toStatic:function(){var S=this.data;S instanceof Array&&(S.length=this._len,h&&(this.data=new Float32Array(S)))},getBoundingRect:function(){u[0]=u[1]=i[0]=i[1]=Number.MAX_VALUE,a[0]=a[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var S=this.data,E=0,C=0,_=0,T=0,w=0;w<S.length;){var O=S[w++];w===1&&(E=S[w],C=S[w+1],_=E,T=C);switch(O){case d.M:_=S[w++],T=S[w++],E=_,C=T,i[0]=_,i[1]=T,t[0]=_,t[1]=T;break;case d.L:x.fromLine(E,C,S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.C:x.fromCubic(E,C,S[w++],S[w++],S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.Q:x.fromQuadratic(E,C,S[w++],S[w++],S[w],S[w+1],i,t),E=S[w++],C=S[w++];break;case d.A:var I=S[w++],k=S[w++],M=S[w++],U=S[w++],P=S[w++],X=S[w++]+P;w+=1;var F=1-S[w++];w===1&&(_=l(P)*M+I,T=n(P)*U+k),x.fromArc(I,k,M,U,P,X,F,i,t),E=l(X)*M+I,C=n(X)*U+k;break;case d.R:_=E=S[w++],T=C=S[w++];var j=S[w++],K=S[w++];x.fromLine(_,T,_+j,T+K,i,t);break;case d.Z:E=_,C=T;break}f.min(u,u,i),f.max(a,a,t)}return w===0&&(u[0]=u[1]=a[0]=a[1]=0),new A(u[0],u[1],a[0]-u[0],a[1]-u[1])},rebuildPath:function(S){for(var E=this.data,C,_,T,w,O,I,k=this._ux,M=this._uy,U=this._len,P=0;P<U;){var X=E[P++];P===1&&(T=E[P],w=E[P+1],C=T,_=w);switch(X){case d.M:C=T=E[P++],_=w=E[P++],S.moveTo(T,w);break;case d.L:O=E[P++],I=E[P++],(c(O-T)>k||c(I-w)>M||P===U-1)&&(S.lineTo(O,I),T=O,w=I);break;case d.C:S.bezierCurveTo(E[P++],E[P++],E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.Q:S.quadraticCurveTo(E[P++],E[P++],E[P++],E[P++]),T=E[P-2],w=E[P-1];break;case d.A:var F=E[P++],j=E[P++],K=E[P++],z=E[P++],V=E[P++],Q=E[P++],G=E[P++],ee=E[P++],se=K>z?K:z,ye=K>z?1:K/z,he=K>z?z/K:1,ke=Math.abs(K-z)>.001,Pe=V+Q;ke?(S.translate(F,j),S.rotate(G),S.scale(ye,he),S.arc(0,0,se,V,Pe,1-ee),S.scale(1/ye,1/he),S.rotate(-G),S.translate(-F,-j)):S.arc(F,j,se,V,Pe,1-ee),P===1&&(C=l(V)*K+F,_=n(V)*z+j),T=l(Pe)*K+F,w=n(Pe)*z+j;break;case d.R:C=T=E[P],_=w=E[P+1],S.rect(E[P++],E[P++],E[P++],E[P++]);break;case d.Z:S.closePath(),T=C,w=_}}}},g.CMD=d;var v=g;R.exports=v},IUWy:function(R,L){var r={};function y(x,A){r[x]=A}function f(x){return r[x]}L.register=y,L.get=f},IWNH:function(R,L,r){var y=r("T4UG"),f=r("Bsck"),x=r("7aKB"),A=x.encodeHTML,m=r("Qxkt"),p=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var u={name:d.name,children:d.data},a=d.leaves||{},i=new m(a,this,this.ecModel),t=f.createTree(u,this,{},s);function s(o){o.wrapMethod("getItemModel",function(c,h){var g=t.getNodeByDataIndex(h);return(!g.children.length||!g.isExpand)&&(c.parentModel=i),c})}var e=0;t.eachNode("preorder",function(o){o.depth>e&&(e=o.depth)});var l=d.expandAndCollapse,n=l&&d.initialTreeDepth>=0?d.initialTreeDepth:e;return t.root.eachNode("preorder",function(o){var c=o.hostTree.data.getRawDataItem(o.dataIndex);o.isExpand=c&&c.collapsed!=null?!c.collapsed:o.depth<=n}),t.data},getOrient:function(){var d=this.get("orient");return d==="horizontal"?d="LR":d==="vertical"&&(d="TB"),d},setZoom:function(d){this.option.zoom=d},setCenter:function(d){this.option.center=d},formatTooltip:function(d){for(var u=this.getData().tree,a=u.root.children[0],i=u.getNodeByDataIndex(d),t=i.getValue(),s=i.name;i&&i!==a;)s=i.parentNode.name+"."+s,i=i.parentNode;return A(s+(isNaN(t)||t==null?"":" : "+t))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});R.exports=p},IWp7:function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=r("7aKB"),A=r("lE7J"),m=r("ieMj"),p=m.prototype,d=Math.ceil,u=Math.floor,a=1e3,i=a*60,t=i*60,s=t*24,e=function(c,h,g,v){for(;g<v;){var b=g+v>>>1;c[b][1]<h?g=b+1:v=b}return g},l=m.extend({type:"time",getLabel:function(c){var h=this._stepLvl,g=new Date(c);return x.formatTime(h[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var h=this._extent;if(h[0]===h[1]&&(h[0]-=s,h[1]+=s),h[1]===-Infinity&&h[0]===Infinity){var g=new Date;h[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),h[0]=h[1]-s}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var v=this._interval;c.fixMin||(h[0]=f.round(u(h[0]/v)*v)),c.fixMax||(h[1]=f.round(d(h[1]/v)*v))},niceTicks:function(c,h,g){c=c||10;var v=this._extent,b=v[1]-v[0],S=b/c;h!=null&&S<h&&(S=h),g!=null&&S>g&&(S=g);var E=n.length,C=e(n,S,0,E),_=n[Math.min(C,E-1)],T=_[1];if(_[0]==="year"){var w=b/T,O=f.nice(w/c,!0);T*=O}var I=this.getSetting("useUTC")?0:new Date(+v[0]||+v[1]).getTimezoneOffset()*60*1e3,k=[Math.round(d((v[0]-I)/T)*T+I),Math.round(u((v[1]-I)/T)*T+I)];A.fixExtent(k,v),this._stepLvl=_,this._interval=T,this._niceExtent=k},parse:function(c){return+f.parseDate(c)}});y.each(["contain","normalize"],function(c){l.prototype[c]=function(h){return p[c].call(this,this.parse(h))}});var n=[["hh:mm:ss",a],["hh:mm:ss",a*5],["hh:mm:ss",a*10],["hh:mm:ss",a*15],["hh:mm:ss",a*30],[`hh:mm
MM-dd`,i],[`hh:mm
MM-dd`,i*5],[`hh:mm
MM-dd`,i*10],[`hh:mm
MM-dd`,i*15],[`hh:mm
MM-dd`,i*30],[`hh:mm
MM-dd`,t],[`hh:mm
MM-dd`,t*2],[`hh:mm
MM-dd`,t*6],[`hh:mm
MM-dd`,t*12],[`MM-dd
yyyy`,s],[`MM-dd
yyyy`,s*2],[`MM-dd
yyyy`,s*3],[`MM-dd
yyyy`,s*4],[`MM-dd
yyyy`,s*5],[`MM-dd
yyyy`,s*6],["week",s*7],[`MM-dd
yyyy`,s*10],["week",s*14],["week",s*21],["month",s*31],["week",s*42],["month",s*62],["week",s*70],["quarter",s*95],["month",s*31*4],["month",s*31*5],["half-year",s*380/2],["month",s*31*8],["month",s*31*10],["year",s*380]];l.create=function(c){return new l({useUTC:c.ecModel.get("useUTC")})};var o=l;R.exports=o},IXuL:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("MwEJ"),A=r("T4UG"),m=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(p,d){return x(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});R.exports=m},IXyC:function(R,L,r){var y=r("bYtY"),f=r("bLfw");r("3zoK");var x=f.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){f.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var m=this.option;A&&y.merge(m,A,!0),this._initDimensions()},contains:function(A,m){var p=A.get("parallelIndex");return p!=null&&m.getComponent("parallel",p)===this},setAxisExpand:function(A){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){A.hasOwnProperty(m)&&(this.option[m]=A[m])},this)},_initDimensions:function(){var A=this.dimensions=[],m=this.parallelAxisIndex=[],p=y.filter(this.dependentModels.parallelAxis,function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);y.each(p,function(d){A.push("dim"+d.get("dim")),m.push(d.componentIndex)})}});R.exports=x},Ib8C:function(R,L,r){(function(y){(function(f,x){R.exports=L=x()})(this,function(){var f=f||function(x,A){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof y!="undefined"&&y.crypto&&(m=y.crypto),!m&&!0)try{m=r(4)}catch(g){}var p=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function g(){}return function(v){var b;return g.prototype=v,b=new g,g.prototype=null,b}}(),u={},a=u.lib={},i=a.Base=function(){return{extend:function(v){var b=d(this);return v&&b.mixIn(v),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=a.WordArray=i.extend({init:function(v,b){v=this.words=v||[],b!=A?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||e).stringify(this)},concat:function(v){var b=this.words,S=v.words,E=this.sigBytes,C=v.sigBytes;if(this.clamp(),E%4)for(var _=0;_<C;_++){var T=S[_>>>2]>>>24-_%4*8&255;b[E+_>>>2]|=T<<24-(E+_)%4*8}else for(var w=0;w<C;w+=4)b[E+w>>>2]=S[w>>>2];return this.sigBytes+=C,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=x.ceil(b/4)},clone:function(){var v=i.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],S=0;S<v;S+=4)b.push(p());return new t.init(b,v)}}),s=u.enc={},e=s.Hex={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E+=2)S[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new t.init(S,b/2)}},l=s.Latin1={stringify:function(v){for(var b=v.words,S=v.sigBytes,E=[],C=0;C<S;C++){var _=b[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(v){for(var b=v.length,S=[],E=0;E<b;E++)S[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new t.init(S,b)}},n=s.Utf8={stringify:function(v){try{return decodeURIComponent(escape(l.stringify(v)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(v){return l.parse(unescape(encodeURIComponent(v)))}},o=a.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=n.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,S=this._data,E=S.words,C=S.sigBytes,_=this.blockSize,T=_*4,w=C/T;v?w=x.ceil(w):w=x.max((w|0)-this._minBufferSize,0);var O=w*_,I=x.min(O*4,C);if(O){for(var k=0;k<O;k+=_)this._doProcessBlock(E,k);b=E.splice(0,O),S.sigBytes-=I}return new t.init(b,I)},clone:function(){var v=i.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0}),c=a.Hasher=o.extend({cfg:i.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){o.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(v){return function(b,S){return new v.init(S).finalize(b)}},_createHmacHelper:function(v){return function(b,S){return new h.HMAC.init(v,S).finalize(b)}}}),h=u.algo={};return u}(Math);return f})}).call(this,r("yLpj"))},ItGF:function(R,L){var r={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?r={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?r={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?r={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:r=f(navigator.userAgent);var y=r;function f(x){var A={},m={},p=x.match(/Firefox\/([\d.]+)/),d=x.match(/MSIE\s([\d.]+)/)||x.match(/Trident\/.+?rv:(([\d.]+))/),u=x.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(x);return p&&(m.firefox=!0,m.version=p[1]),d&&(m.ie=!0,m.version=d[1]),u&&(m.edge=!0,m.version=u[1]),a&&(m.weChat=!0),{browser:m,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}R.exports=y},ItS6:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=r("eP3c"),f=x(r("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function p(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var d=function(){function u(){A(this,u),this.strm=new f.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.inflateInit)(this.strm,this.windowBits)}return p(u,[{key:"setInput",value:function(i){i?(this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(i){i>this.chunkSize&&(this.chunkSize=i,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=i;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=i)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,y.inflateReset)(this.strm)}}]),u}();L.default=d},Itpr:function(R,L,r){var y=r("+TT/");function f(n){n.hierNode={defaultAncestor:null,ancestor:n,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o=[n],c,h;c=o.pop();)if(h=c.children,c.isExpand&&h.length)for(var g=h.length,v=g-1;v>=0;v--){var b=h[v];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:v,thread:null},o.push(b)}}function x(n,o){var c=n.isExpand?n.children:[],h=n.parentNode.children,g=n.hierNode.i?h[n.hierNode.i-1]:null;if(c.length){u(n);var v=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(n.hierNode.prelim=g.hierNode.prelim+o(n,g),n.hierNode.modifier=n.hierNode.prelim-v):n.hierNode.prelim=v}else g&&(n.hierNode.prelim=g.hierNode.prelim+o(n,g));n.parentNode.hierNode.defaultAncestor=a(n,g,n.parentNode.hierNode.defaultAncestor||h[0],o)}function A(n){var o=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:o},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function m(n){return arguments.length?n:l}function p(n,o){var c={};return n-=Math.PI/2,c.x=o*Math.cos(n),c.y=o*Math.sin(n),c}function d(n,o){return y.getLayoutRect(n.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})}function u(n){for(var o=n.children,c=o.length,h=0,g=0;--c>=0;){var v=o[c];v.hierNode.prelim+=h,v.hierNode.modifier+=h,g+=v.hierNode.change,h+=v.hierNode.shift+g}}function a(n,o,c,h){if(o){for(var g=n,v=n,b=v.parentNode.children[0],S=o,E=g.hierNode.modifier,C=v.hierNode.modifier,_=b.hierNode.modifier,T=S.hierNode.modifier;S=i(S),v=t(v),S&&v;){g=i(g),b=t(b),g.hierNode.ancestor=n;var w=S.hierNode.prelim+T-v.hierNode.prelim-C+h(S,v);w>0&&(e(s(S,n,c),n,w),C+=w,E+=w),T+=S.hierNode.modifier,C+=v.hierNode.modifier,E+=g.hierNode.modifier,_+=b.hierNode.modifier}S&&!i(g)&&(g.hierNode.thread=S,g.hierNode.modifier+=T-E),v&&!t(b)&&(b.hierNode.thread=v,b.hierNode.modifier+=C-_,c=n)}return c}function i(n){var o=n.children;return o.length&&n.isExpand?o[o.length-1]:n.hierNode.thread}function t(n){var o=n.children;return o.length&&n.isExpand?o[0]:n.hierNode.thread}function s(n,o,c){return n.hierNode.ancestor.parentNode===o.parentNode?n.hierNode.ancestor:c}function e(n,o,c){var h=c/(o.hierNode.i-n.hierNode.i);o.hierNode.change-=h,o.hierNode.shift+=c,o.hierNode.modifier+=c,o.hierNode.prelim+=c,n.hierNode.change+=h}function l(n,o){return n.parentNode===o.parentNode?1:2}L.init=f,L.firstWalk=x,L.secondWalk=A,L.separation=m,L.radialCoordinate=p,L.getViewRect=d},IwbS:function(R,L,r){var y=r("bYtY"),f=r("NC18"),x=r("Qe9p"),A=r("Fofx"),m=r("QBsz"),p=r("y+Vt"),d=r("DN4a"),u=r("Dagg");L.Image=u;var a=r("4fz+");L.Group=a;var i=r("dqUG");L.Text=i;var t=r("2fw6");L.Circle=t;var s=r("SqI9");L.Sector=s;var e=r("RXMa");L.Ring=e;var l=r("h7HQ");L.Polygon=l;var n=r("1Jh7");L.Polyline=n;var o=r("x6Kt");L.Rect=o;var c=r("yxFR");L.Line=c;var h=r("rA99");L.BezierCurve=h;var g=r("jTL6");L.Arc=g;var v=r("1MYJ");L.CompoundPath=v;var b=r("SKnc");L.LinearGradient=b;var S=r("3e3G");L.RadialGradient=S;var E=r("mFDi");L.BoundingRect=E;var C=r("OS9S");L.IncrementalDisplayable=C;var _=r("nPnh"),T=Math.max,w=Math.min,O={},I=1,k={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},M="emphasis",U="normal",P=1,X={},F={};function j(ft){return p.extend(ft)}function K(ft,it){return f.extendFromString(ft,it)}function z(ft,it){F[ft]=it}function V(ft){if(F.hasOwnProperty(ft))return F[ft]}function Q(ft,it,Or,an){var En=f.createFromString(ft,it);return Or&&(an==="center"&&(Or=ee(Or,En.getBoundingRect())),ye(En,Or)),En}function G(ft,it,Or){var an=new u({style:{image:ft,x:it.x,y:it.y,width:it.width,height:it.height},onload:function(En){if(Or==="center"){var Bn={width:En.width,height:En.height};an.setStyle(ee(it,Bn))}}});return an}function ee(ft,it){var Or=it.width/it.height,an=ft.height*Or,En;an<=ft.width?En=ft.height:(an=ft.width,En=an/Or);var Bn=ft.x+ft.width/2,vi=ft.y+ft.height/2;return{x:Bn-an/2,y:vi-En/2,width:an,height:En}}var se=f.mergePath;function ye(ft,it){if(!ft.applyTransform)return;var Or=ft.getBoundingRect(),an=Or.calculateTransform(it);ft.applyTransform(an)}function he(ft){return _.subPixelOptimizeLine(ft.shape,ft.shape,ft.style),ft}function ke(ft){return _.subPixelOptimizeRect(ft.shape,ft.shape,ft.style),ft}var Pe=_.subPixelOptimize;function Ue(ft){return ft!=null&&ft!=="none"}var $e=y.createHashMap(),Ge=0;function ht(ft){if(typeof ft!="string")return ft;var it=$e.get(ft);return it||(it=x.lift(ft,-.1),Ge<1e4&&($e.set(ft,it),Ge++)),it}function Fe(ft){if(!ft.__hoverStlDirty)return;ft.__hoverStlDirty=!1;var it=ft.__hoverStl;if(!it){ft.__cachedNormalStl=ft.__cachedNormalZ2=null;return}var Or=ft.__cachedNormalStl={};ft.__cachedNormalZ2=ft.z2;var an=ft.style;for(var En in it)it[En]!=null&&(Or[En]=an[En]);Or.fill=an.fill,Or.stroke=an.stroke}function oe(ft){var it=ft.__hoverStl;if(!it||ft.__highlighted)return;var Or=ft.__zr,an=ft.useHoverLayer&&Or&&Or.painter.type==="canvas";if(ft.__highlighted=an?"layer":"plain",ft.isGroup||!Or&&ft.useHoverLayer)return;var En=ft,Bn=ft.style;an&&(En=Or.addHover(ft),Bn=En.style),Gt(Bn),an||Fe(En),Bn.extendFrom(it),rt(Bn,it,"fill"),rt(Bn,it,"stroke"),Mt(Bn),an||(ft.dirty(!1),ft.z2+=I)}function rt(ft,it,Or){!Ue(it[Or])&&Ue(ft[Or])&&(ft[Or]=ht(ft[Or]))}function fe(ft){var it=ft.__highlighted;if(!it)return;if(ft.__highlighted=!1,ft.isGroup)return;if(it==="layer")ft.__zr&&ft.__zr.removeHover(ft);else{var Or=ft.style,an=ft.__cachedNormalStl;an&&(Gt(Or),ft.setStyle(an),Mt(Or));var En=ft.__cachedNormalZ2;En!=null&&ft.z2-En===I&&(ft.z2=En)}}function J(ft,it,Or){var an=U,En=U,Bn;ft.__highlighted&&(an=M,Bn=!0),it(ft,Or),ft.__highlighted&&(En=M,Bn=!0),ft.isGroup&&ft.traverse(function(vi){!vi.isGroup&&it(vi,Or)}),Bn&&ft.__highDownOnUpdate&&ft.__highDownOnUpdate(an,En)}function Y(ft,it){it=ft.__hoverStl=it!==!1&&(ft.hoverStyle||it||{}),ft.__hoverStlDirty=!0,ft.__highlighted&&(ft.__cachedNormalStl=null,fe(ft),oe(ft))}function $(ft){!Se(this,ft)&&!this.__highByOuter&&J(this,oe)}function de(ft){!Se(this,ft)&&!this.__highByOuter&&J(this,fe)}function we(ft){this.__highByOuter|=1<<(ft||0),J(this,oe)}function Ce(ft){!(this.__highByOuter&=~(1<<(ft||0)))&&J(this,fe)}function Se(ft,it){return ft.__highDownSilentOnTouch&&it.zrByTouch}function le(ft,it){pe(ft,!0),J(ft,Y,it)}function pe(ft,it){var Or=it===!1;if(ft.__highDownSilentOnTouch=ft.highDownSilentOnTouch,ft.__highDownOnUpdate=ft.highDownOnUpdate,!Or||ft.__highDownDispatcher){var an=Or?"off":"on";ft[an]("mouseover",$)[an]("mouseout",de),ft[an]("emphasis",we)[an]("normal",Ce),ft.__highByOuter=ft.__highByOuter||0,ft.__highDownDispatcher=!Or}}function _e(ft){return!!(ft&&ft.__highDownDispatcher)}function tt(ft){var it=X[ft];return it==null&&P<=32&&(it=X[ft]=P++),it}function gt(ft,it,Or,an,En,Bn,vi){En=En||O;var Ln=En.labelFetcher,Mn=En.labelDataIndex,Xt=En.labelDimIndex,wt=En.labelProp,De=Or.getShallow("show"),Re=an.getShallow("show"),Me;(De||Re)&&(Ln&&(Me=Ln.getFormattedLabel(Mn,"normal",null,Xt,wt)),Me==null&&(Me=y.isFunction(En.defaultText)?En.defaultText(Mn,En):En.defaultText));var nt=De?Me:null,yt=Re?y.retrieve2(Ln?Ln.getFormattedLabel(Mn,"emphasis",null,Xt,wt):null,Me):null;(nt!=null||yt!=null)&&(je(ft,Or,Bn,En),je(it,an,vi,En,!0)),ft.text=nt,it.text=yt}function ct(ft,it,Or){var an=ft.style;it&&(Gt(an),ft.setStyle(it),Mt(an)),an=ft.__hoverStl,Or&&an&&(Gt(an),y.extend(an,Or),Mt(an))}function je(ft,it,Or,an,En){return ut(ft,it,an,En),Or&&y.extend(ft,Or),ft}function Zt(ft,it,Or){var an={isRectText:!0},En;Or===!1?En=!0:an.autoColor=Or,ut(ft,it,an,En)}function ut(ft,it,Or,an){if(Or=Or||O,Or.isRectText){var En;Or.getTextPosition?En=Or.getTextPosition(it,an):(En=it.getShallow("position")||(an?null:"inside"),En==="outside"&&(En="top")),ft.textPosition=En,ft.textOffset=it.getShallow("offset");var Bn=it.getShallow("rotate");Bn!=null&&(Bn*=Math.PI/180),ft.textRotation=Bn,ft.textDistance=y.retrieve2(it.getShallow("distance"),an?null:5)}var vi=it.ecModel,Ln=vi&&vi.option.textStyle,Mn=Ht(it),Xt;if(Mn){Xt={};for(var wt in Mn)if(Mn.hasOwnProperty(wt)){var De=it.getModel(["rich",wt]);dr(Xt[wt]={},De,Ln,Or,an)}}return ft.rich=Xt,dr(ft,it,Ln,Or,an,!0),Or.forceRich&&!Or.textStyle&&(Or.textStyle={}),ft}function Ht(ft){for(var it;ft&&ft!==ft.ecModel;){var Or=(ft.option||O).rich;if(Or){it=it||{};for(var an in Or)Or.hasOwnProperty(an)&&(it[an]=1)}ft=ft.parentModel}return it}function dr(ft,it,Or,an,En,Bn){Or=!En&&Or||O,ft.textFill=Vt(it.getShallow("color"),an)||Or.color,ft.textStroke=Vt(it.getShallow("textBorderColor"),an)||Or.textBorderColor,ft.textStrokeWidth=y.retrieve2(it.getShallow("textBorderWidth"),Or.textBorderWidth),En||(Bn&&(ft.insideRollbackOpt=an,Mt(ft)),ft.textFill==null&&(ft.textFill=an.autoColor)),ft.fontStyle=it.getShallow("fontStyle")||Or.fontStyle,ft.fontWeight=it.getShallow("fontWeight")||Or.fontWeight,ft.fontSize=it.getShallow("fontSize")||Or.fontSize,ft.fontFamily=it.getShallow("fontFamily")||Or.fontFamily,ft.textAlign=it.getShallow("align"),ft.textVerticalAlign=it.getShallow("verticalAlign")||it.getShallow("baseline"),ft.textLineHeight=it.getShallow("lineHeight"),ft.textWidth=it.getShallow("width"),ft.textHeight=it.getShallow("height"),ft.textTag=it.getShallow("tag"),(!Bn||!an.disableBox)&&(ft.textBackgroundColor=Vt(it.getShallow("backgroundColor"),an),ft.textPadding=it.getShallow("padding"),ft.textBorderColor=Vt(it.getShallow("borderColor"),an),ft.textBorderWidth=it.getShallow("borderWidth"),ft.textBorderRadius=it.getShallow("borderRadius"),ft.textBoxShadowColor=it.getShallow("shadowColor"),ft.textBoxShadowBlur=it.getShallow("shadowBlur"),ft.textBoxShadowOffsetX=it.getShallow("shadowOffsetX"),ft.textBoxShadowOffsetY=it.getShallow("shadowOffsetY")),ft.textShadowColor=it.getShallow("textShadowColor")||Or.textShadowColor,ft.textShadowBlur=it.getShallow("textShadowBlur")||Or.textShadowBlur,ft.textShadowOffsetX=it.getShallow("textShadowOffsetX")||Or.textShadowOffsetX,ft.textShadowOffsetY=it.getShallow("textShadowOffsetY")||Or.textShadowOffsetY}function Vt(ft,it){return ft!=="auto"?ft:it&&it.autoColor?it.autoColor:null}function Mt(ft){var it=ft.textPosition,Or=ft.insideRollbackOpt,an;if(Or&&ft.textFill==null){var En=Or.autoColor,Bn=Or.isRectText,vi=Or.useInsideStyle,Ln=vi!==!1&&(vi===!0||Bn&&it&&typeof it=="string"&&it.indexOf("inside")>=0),Mn=!Ln&&En!=null;(Ln||Mn)&&(an={textFill:ft.textFill,textStroke:ft.textStroke,textStrokeWidth:ft.textStrokeWidth}),Ln&&(ft.textFill="#fff",ft.textStroke==null&&(ft.textStroke=En,ft.textStrokeWidth==null&&(ft.textStrokeWidth=2))),Mn&&(ft.textFill=En)}ft.insideRollback=an}function Gt(ft){var it=ft.insideRollback;it&&(ft.textFill=it.textFill,ft.textStroke=it.textStroke,ft.textStrokeWidth=it.textStrokeWidth,ft.insideRollback=null)}function Ve(ft,it){var Or=it&&it.getModel("textStyle");return y.trim([ft.fontStyle||Or&&Or.getShallow("fontStyle")||"",ft.fontWeight||Or&&Or.getShallow("fontWeight")||"",(ft.fontSize||Or&&Or.getShallow("fontSize")||12)+"px",ft.fontFamily||Or&&Or.getShallow("fontFamily")||"sans-serif"].join(" "))}function me(ft,it,Or,an,En,Bn){typeof En=="function"&&(Bn=En,En=null);var vi=an&&an.isAnimationEnabled();if(vi){var Ln=ft?"Update":"",Mn=an.getShallow("animationDuration"+Ln),Xt=an.getShallow("animationEasing"+Ln),wt=an.getShallow("animationDelay"+Ln);typeof wt=="function"&&(wt=wt(En,an.getAnimationDelayParams?an.getAnimationDelayParams(it,En):null)),typeof Mn=="function"&&(Mn=Mn(En)),Mn>0?it.animateTo(Or,Mn,wt||0,Xt,Bn,!!Bn):(it.stopAnimation(),it.attr(Or),Bn&&Bn())}else it.stopAnimation(),it.attr(Or),Bn&&Bn()}function te(ft,it,Or,an,En){me(!0,ft,it,Or,an,En)}function Ze(ft,it,Or,an,En){me(!1,ft,it,Or,an,En)}function Xe(ft,it){for(var Or=A.identity([]);ft&&ft!==it;)A.mul(Or,ft.getLocalTransform(),Or),ft=ft.parent;return Or}function ue(ft,it,Or){return it&&!y.isArrayLike(it)&&(it=d.getLocalTransform(it)),Or&&(it=A.invert([],it)),m.applyTransform([],ft,it)}function St(ft,it,Or){var an=it[4]===0||it[5]===0||it[0]===0?1:Math.abs(2*it[4]/it[0]),En=it[4]===0||it[5]===0||it[2]===0?1:Math.abs(2*it[4]/it[2]),Bn=[ft==="left"?-an:ft==="right"?an:0,ft==="top"?-En:ft==="bottom"?En:0];return Bn=ue(Bn,it,Or),Math.abs(Bn[0])>Math.abs(Bn[1])?Bn[0]>0?"right":"left":Bn[1]>0?"bottom":"top"}function Qt(ft,it,Or,an){if(!ft||!it)return;function En(Ln){var Mn={};return Ln.traverse(function(Xt){!Xt.isGroup&&Xt.anid&&(Mn[Xt.anid]=Xt)}),Mn}function Bn(Ln){var Mn={position:m.clone(Ln.position),rotation:Ln.rotation};return Ln.shape&&(Mn.shape=y.extend({},Ln.shape)),Mn}var vi=En(ft);it.traverse(function(Ln){if(!Ln.isGroup&&Ln.anid){var Mn=vi[Ln.anid];if(Mn){var Xt=Bn(Ln);Ln.attr(Bn(Mn)),te(Ln,Xt,Or,Ln.dataIndex)}}})}function dt(ft,it){return y.map(ft,function(Or){var an=Or[0];an=T(an,it.x),an=w(an,it.x+it.width);var En=Or[1];return En=T(En,it.y),En=w(En,it.y+it.height),[an,En]})}function Jt(ft,it){var Or=T(ft.x,it.x),an=w(ft.x+ft.width,it.x+it.width),En=T(ft.y,it.y),Bn=w(ft.y+ft.height,it.y+it.height);if(an>=Or&&Bn>=En)return{x:Or,y:En,width:an-Or,height:Bn-En}}function $t(ft,it,Or){it=y.extend({rectHover:!0},it);var an=it.style={strokeNoScale:!0};if(Or=Or||{x:-1,y:-1,width:2,height:2},ft)return ft.indexOf("image://")===0?(an.image=ft.slice(8),y.defaults(an,Or),new u(it)):Q(ft.replace("path://",""),it,Or,"center")}function tn(ft,it,Or,an,En){for(var Bn=0,vi=En[En.length-1];Bn<En.length;Bn++){var Ln=En[Bn];if(kt(ft,it,Or,an,Ln[0],Ln[1],vi[0],vi[1]))return!0;vi=Ln}}function kt(ft,it,Or,an,En,Bn,vi,Ln){var Mn=Or-ft,Xt=an-it,wt=vi-En,De=Ln-Bn,Re=tr(wt,De,Mn,Xt);if(Bt(Re))return!1;var Me=ft-En,nt=it-Bn,yt=tr(Me,nt,Mn,Xt)/Re;if(yt<0||yt>1)return!1;var sr=tr(Me,nt,wt,De)/Re;return!(sr<0||sr>1)}function tr(ft,it,Or,an){return ft*an-Or*it}function Bt(ft){return ft<=1e-6&&ft>=-1e-6}z("circle",t),z("sector",s),z("ring",e),z("polygon",l),z("polyline",n),z("rect",o),z("line",c),z("bezierCurve",h),z("arc",g),L.Z2_EMPHASIS_LIFT=I,L.CACHED_LABEL_STYLE_PROPERTIES=k,L.extendShape=j,L.extendPath=K,L.registerShape=z,L.getShapeClass=V,L.makePath=Q,L.makeImage=G,L.mergePath=se,L.resizePath=ye,L.subPixelOptimizeLine=he,L.subPixelOptimizeRect=ke,L.subPixelOptimize=Pe,L.setElementHoverStyle=Y,L.setHoverStyle=le,L.setAsHighDownDispatcher=pe,L.isHighDownDispatcher=_e,L.getHighlightDigit=tt,L.setLabelStyle=gt,L.modifyLabelStyle=ct,L.setTextStyle=je,L.setText=Zt,L.getFont=Ve,L.updateProps=te,L.initProps=Ze,L.getTransform=Xe,L.applyTransform=ue,L.transformDirection=St,L.groupTransition=Qt,L.clipPointsByRect=dt,L.clipRectByRect=Jt,L.createIcon=$t,L.linePolygonIntersect=tn,L.lineLineIntersect=kt},IyUQ:function(R,L,r){var y=r("bYtY"),f=r("YH21"),x=r("IwbS"),A=r("iLNv"),m=r("fc+c"),p=r("OELB"),d=r("+TT/"),u=r("72pK"),a=x.Rect,i=p.linearMap,t=p.asc,s=y.bind,e=y.each,l=7,n=1,o=30,c="horizontal",h="vertical",g=5,v=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(_,T){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=T},render:function(_,T,w,O){if(b.superApply(this,"render",arguments),A.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=_.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!O||O.type!=="dataZoom"||O.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var _=this.group;_.removeAll(),this._resetLocation(),this._resetInterval();var T=this._displayables.barGroup=new x.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),_.add(T),this._positionGroup()},_resetLocation:function(){var _=this.dataZoomModel,T=this.api,w=this._findCoordRect(),O={width:T.getWidth(),height:T.getHeight()},I=this._orient===c?{right:O.width-w.x-w.width,top:O.height-o-l,width:w.width,height:o}:{right:l,top:w.y,width:o,height:w.height},k=d.getLayoutParams(_.option);y.each(["right","top","width","height"],function(U){k[U]==="ph"&&(k[U]=I[U])});var M=d.getLayoutRect(k,O,_.padding);this._location={x:M.x,y:M.y},this._size=[M.width,M.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var _=this.group,T=this._location,w=this._orient,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),k=this._displayables.barGroup,M=(this._dataShadowInfo||{}).otherAxisInverse;k.attr(w===c&&!I?{scale:M?[1,1]:[1,-1]}:w===c&&I?{scale:M?[-1,1]:[-1,-1]}:w===h&&!I?{scale:M?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:M?[-1,-1]:[-1,1],rotation:Math.PI/2});var U=_.getBoundingRect([k]);_.attr("position",[T.x-U.x,T.y-U.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var _=this.dataZoomModel,T=this._size,w=this._displayables.barGroup;w.add(new a({silent:!0,shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:_.get("backgroundColor")},z2:-40})),w.add(new a({shape:{x:0,y:0,width:T[0],height:T[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var _=this._dataShadowInfo=this._prepareDataShadowInfo();if(!_)return;var T=this._size,w=_.series,O=w.getRawData(),I=w.getShadowDim?w.getShadowDim():_.otherDim;if(I==null)return;var k=O.getDataExtent(I),M=(k[1]-k[0])*.3;k=[k[0]-M,k[1]+M];var U=[0,T[1]],P=[0,T[0]],X=[[T[0],0],[0,0]],F=[],j=P[1]/(O.count()-1),K=0,z=Math.round(O.count()/T[0]),V;O.each([I],function(G,ee){if(z>0&&ee%z){K+=j;return}var se=G==null||isNaN(G)||G==="",ye=se?0:i(G,k,U,!0);se&&!V&&ee?(X.push([X[X.length-1][0],0]),F.push([F[F.length-1][0],0])):!se&&V&&(X.push([K,0]),F.push([K,0])),X.push([K,ye]),F.push([K,ye]),K+=j,V=se});var Q=this.dataZoomModel;this._displayables.barGroup.add(new x.Polygon({shape:{points:X},style:y.defaults({fill:Q.get("dataBackgroundColor")},Q.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new x.Polyline({shape:{points:F},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var _=this.dataZoomModel,T=_.get("showDataShadow");if(T===!1)return;var w,O=this.ecModel;return _.eachTargetAxis(function(I,k){var M=_.getAxisProxy(I.name,k).getTargetSeriesModels();y.each(M,function(U){if(w)return;if(T!==!0&&y.indexOf(v,U.get("type"))<0)return;var P=O.getComponent(I.axis,k).axis,X=S(I.name),F,j=U.coordinateSystem;X!=null&&j.getOtherAxis&&(F=j.getOtherAxis(P).inverse),X=U.getData().mapDimension(X),w={thisAxis:P,series:U,thisDim:I.name,otherDim:X,otherAxisInverse:F}},this)},this),w},_renderHandle:function(){var _=this._displayables,T=_.handles=[],w=_.handleLabels=[],O=this._displayables.barGroup,I=this._size,k=this.dataZoomModel;O.add(_.filler=new a({draggable:!0,cursor:E(this._orient),drift:s(this._onDragMove,this,"all"),ondragstart:s(this._showDataInfo,this,!0),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1),style:{fill:k.get("fillerColor"),textPosition:"inside"}})),O.add(new a({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:k.get("dataBackgroundColor")||k.get("borderColor"),lineWidth:n,fill:"rgba(0,0,0,0)"}})),e([0,1],function(M){var U=x.createIcon(k.get("handleIcon"),{cursor:E(this._orient),draggable:!0,drift:s(this._onDragMove,this,M),ondragend:s(this._onDragEnd,this),onmouseover:s(this._showDataInfo,this,!0),onmouseout:s(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),P=U.getBoundingRect();this._handleHeight=p.parsePercent(k.get("handleSize"),this._size[1]),this._handleWidth=P.width/P.height*this._handleHeight,U.setStyle(k.getModel("handleStyle").getItemStyle());var X=k.get("handleColor");X!=null&&(U.style.fill=X),O.add(T[M]=U);var F=k.textStyleModel;this.group.add(w[M]=new x.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:F.getTextColor(),textFont:F.getFont()},z2:10}))},this)},_resetInterval:function(){var _=this._range=this.dataZoomModel.getPercentRange(),T=this._getViewExtent();this._handleEnds=[i(_[0],[0,100],T,!0),i(_[1],[0,100],T,!0)]},_updateInterval:function(_,T){var w=this.dataZoomModel,O=this._handleEnds,I=this._getViewExtent(),k=w.findRepresentativeAxisProxy().getMinMaxSpan(),M=[0,100];u(T,O,I,w.get("zoomLock")?"all":_,k.minSpan!=null?i(k.minSpan,M,I,!0):null,k.maxSpan!=null?i(k.maxSpan,M,I,!0):null);var U=this._range,P=this._range=t([i(O[0],I,M,!0),i(O[1],I,M,!0)]);return!U||U[0]!==P[0]||U[1]!==P[1]},_updateView:function(_){var T=this._displayables,w=this._handleEnds,O=t(w.slice()),I=this._size;e([0,1],function(k){var M=T.handles[k],U=this._handleHeight;M.attr({scale:[U/2,U/2],position:[w[k],I[1]/2-U/2]})},this),T.filler.setShape({x:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(_)},_updateDataInfo:function(_){var T=this.dataZoomModel,w=this._displayables,O=w.handleLabels,I=this._orient,k=["",""];if(T.get("showDetail")){var M=T.findRepresentativeAxisProxy();if(M){var U=M.getAxisModel().axis,P=this._range,X=_?M.calculateDataWindow({start:P[0],end:P[1]}).valueWindow:M.getDataValueWindow();k=[this._formatLabel(X[0],U),this._formatLabel(X[1],U)]}}var F=t(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(K){var z=x.getTransform(w.handles[K].parent,this.group),V=x.transformDirection(K===0?"right":"left",z),Q=this._handleWidth/2+g,G=x.applyTransform([F[K]+(K===0?-Q:Q),this._size[1]/2],z);O[K].setStyle({x:G[0],y:G[1],textVerticalAlign:I===c?"middle":V,textAlign:I===c?V:"center",text:k[K]})}},_formatLabel:function(_,T){var w=this.dataZoomModel,O=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=T.getPixelPrecision());var k=_==null||isNaN(_)?"":T.type==="category"||T.type==="time"?T.scale.getLabel(Math.round(_)):_.toFixed(Math.min(I,20));return y.isFunction(O)?O(_,k):y.isString(O)?O.replace("{value}",k):k},_showDataInfo:function(_){_=this._dragging||_;var T=this._displayables.handleLabels;T[0].attr("invisible",!_),T[1].attr("invisible",!_)},_onDragMove:function(_,T,w,O){this._dragging=!0,f.stop(O.event);var I=this._displayables.barGroup.getLocalTransform(),k=x.applyTransform([T,w],I,!0),M=this._updateInterval(_,k[0]),U=this.dataZoomModel.get("realtime");this._updateView(!U),M&&U&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var _=this.dataZoomModel.get("realtime");!_&&this._dispatchZoomAction()},_onClickPanelClick:function(_){var T=this._size,w=this._displayables.barGroup.transformCoordToLocal(_.offsetX,_.offsetY);if(w[0]<0||w[0]>T[0]||w[1]<0||w[1]>T[1])return;var O=this._handleEnds,I=(O[0]+O[1])/2,k=this._updateInterval("all",w[0]-I);this._updateView(),k&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var _=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:_[0],end:_[1]})},_findCoordRect:function(){var _;if(e(this.getTargetCoordInfo(),function(O){if(!_&&O.length){var I=O[0].model.coordinateSystem;_=I.getRect&&I.getRect()}}),!_){var T=this.api.getWidth(),w=this.api.getHeight();_={x:T*.2,y:w*.2,width:T*.6,height:w*.6}}return _}});function S(_){var T={x:"y",y:"x",radius:"angle",angle:"radius"};return T[_]}function E(_){return _==="vertical"?"ns-resize":"ew-resize"}var C=b;R.exports=C},IzEo:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("lnY3"),A=r.n(x),m=r("Znn+"),p=r("14J3"),d=r("jCWc")},J66h:function(R,L,r){(function(y){var f,x;(function(A,m){R.exports=m(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(A){"use strict";A=A||{};var m=A.Base64,p="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=function(U){for(var P={},X=0,F=U.length;X<F;X++)P[U.charAt(X)]=X;return P}(d),a=String.fromCharCode,i=function(P){if(P.length<2){var X=P.charCodeAt(0);return X<128?P:X<2048?a(192|X>>>6)+a(128|X&63):a(224|X>>>12&15)+a(128|X>>>6&63)+a(128|X&63)}else{var X=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return a(240|X>>>18&7)+a(128|X>>>12&63)+a(128|X>>>6&63)+a(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,s=function(P){return P.replace(t,i)},e=function(P){var X=[0,2,1][P.length%3],F=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),j=[d.charAt(F>>>18),d.charAt(F>>>12&63),X>=2?"=":d.charAt(F>>>6&63),X>=1?"=":d.charAt(F&63)];return j.join("")},l=A.btoa&&typeof A.btoa=="function"?function(U){return A.btoa(U)}:function(U){if(U.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return U.replace(/[\s\S]{1,3}/g,e)},n=function(P){return l(s(String(P)))},o=function(P){return P.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(P,X){return X?o(n(P)):n(P)},h=function(P){return c(P,!0)},g;A.Uint8Array&&(g=function(P,X){for(var F="",j=0,K=P.length;j<K;j+=3){var z=P[j],V=P[j+1],Q=P[j+2],G=z<<16|V<<8|Q;F+=d.charAt(G>>>18)+d.charAt(G>>>12&63)+(typeof V!="undefined"?d.charAt(G>>>6&63):"=")+(typeof Q!="undefined"?d.charAt(G&63):"=")}return X?o(F):F});var v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(P){switch(P.length){case 4:var X=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),F=X-65536;return a((F>>>10)+55296)+a((F&1023)+56320);case 3:return a((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return a((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},S=function(P){return P.replace(v,b)},E=function(P){var X=P.length,F=X%4,j=(X>0?u[P.charAt(0)]<<18:0)|(X>1?u[P.charAt(1)]<<12:0)|(X>2?u[P.charAt(2)]<<6:0)|(X>3?u[P.charAt(3)]:0),K=[a(j>>>16),a(j>>>8&255),a(j&255)];return K.length-=[0,0,2,1][F],K.join("")},C=A.atob&&typeof A.atob=="function"?function(U){return A.atob(U)}:function(U){return U.replace(/\S{1,4}/g,E)},_=function(P){return C(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(P){return S(C(P))},w=function(P){return String(P).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(P){return T(w(P))},I;A.Uint8Array&&(I=function(P){return Uint8Array.from(_(w(P)),function(X){return X.charCodeAt(0)})});var k=function(){var P=A.Base64;return A.Base64=m,P};if(A.Base64={VERSION:p,atob:_,btoa:l,fromBase64:O,toBase64:c,utob:s,encode:c,encodeURI:h,btou:S,decode:O,noConflict:k,fromUint8Array:g,toUint8Array:I},typeof Object.defineProperty=="function"){var M=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",M(function(){return O(this)})),Object.defineProperty(String.prototype,"toBase64",M(function(U){return c(this,U)})),Object.defineProperty(String.prototype,"toBase64URI",M(function(){return c(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),R.exports?R.exports.Base64=A.Base64:!(f=[],x=function(){return A.Base64}.apply(L,f),x!==void 0&&(R.exports=x)),{Base64:A.Base64}})}).call(this,r("yLpj"))},JEkh:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("ItGF"),p=r("4NO4"),d=r("7aKB"),u=r("OKJ2"),a=d.addCommas,i=d.encodeHTML;function t(l){p.defaultEmphasis(l,"label",["show"])}var s=x.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,n,o){this.mergeDefaultAndTheme(l,o),this._mergeOption(l,o,!1,!0)},isAnimationEnabled:function(){if(m.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,n){this._mergeOption(l,n,!1,!1)},_mergeOption:function(l,n,o,c){var h=this.constructor,g=this.mainType+"Model";o||n.eachSeries(function(v){var b=v.get(this.mainType,!0),S=v[g];if(!b||!b.data){v[g]=null;return}S?S._mergeOption(b,n,!0):(c&&t(b),A.each(b.data,function(E){E instanceof Array?(t(E[0]),t(E[1])):t(E)}),S=new h(b,this,n),A.extend(S,{mainType:this.mainType,seriesIndex:v.seriesIndex,name:v.name,createdBySelf:!0}),S.__hostSeries=v),v[g]=S},this)},formatTooltip:function(l){var n=this.getData(),o=this.getRawValue(l),c=A.isArray(o)?A.map(o,a).join(", "):a(o),h=n.getName(l),g=i(this.name);return(o!=null||h)&&(g+="<br />"),h&&(g+=i(h),o!=null&&(g+=" : ")),o!=null&&(g+=i(c)),g},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(s,u);var e=s;R.exports=e},JGo8:function(R,L,r){},JHRd:function(R,L,r){var y=r("Kz5y"),f=y.Uint8Array;R.exports=f},JHgL:function(R,L,r){var y=r("QkVE");function f(x){return y(this,x).get(x)}R.exports=f},JLnu:function(R,L,r){var y=r("+TT/"),f=r("OELB"),x=f.parsePercent,A=f.linearMap;function m(a,i){return y.getLayoutRect(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function p(a,i){for(var t=a.mapDimension("value"),s=a.mapArray(t,function(c){return c}),e=[],l=i==="ascending",n=0,o=a.count();n<o;n++)e[n]=n;return typeof i=="function"?e.sort(i):i!=="none"&&e.sort(function(c,h){return l?s[c]-s[h]:s[h]-s[c]}),e}function d(a){a.each(function(i){var t=a.getItemModel(i),s=t.getModel("label"),e=s.get("position"),l=t.getModel("labelLine"),n=a.getItemLayout(i),o=n.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,g,v,b;if(c)e==="insideLeft"?(g=(o[0][0]+o[3][0])/2+5,v=(o[0][1]+o[3][1])/2,h="left"):e==="insideRight"?(g=(o[1][0]+o[2][0])/2-5,v=(o[1][1]+o[2][1])/2,h="right"):(g=(o[0][0]+o[1][0]+o[2][0]+o[3][0])/4,v=(o[0][1]+o[1][1]+o[2][1]+o[3][1])/4,h="center"),b=[[g,v],[g,v]];else{var S,E,C,_=l.get("length");e==="left"?(S=(o[3][0]+o[0][0])/2,E=(o[3][1]+o[0][1])/2,C=S-_,g=C-5,h="right"):e==="right"?(S=(o[1][0]+o[2][0])/2,E=(o[1][1]+o[2][1])/2,C=S+_,g=C+5,h="left"):e==="rightTop"?(S=o[1][0],E=o[1][1],C=S+_,g=C+5,h="top"):e==="rightBottom"?(S=o[2][0],E=o[2][1],C=S+_,g=C+5,h="bottom"):e==="leftTop"?(S=o[0][0],E=o[1][1],C=S-_,g=C-5,h="right"):e==="leftBottom"?(S=o[3][0],E=o[2][1],C=S-_,g=C-5,h="right"):(S=(o[1][0]+o[2][0])/2,E=(o[1][1]+o[2][1])/2,C=S+_,g=C+5,h="left");var T=E;b=[[S,E],[C,T]],v=T}n.label={linePoints:b,x:g,y:v,verticalAlign:"middle",textAlign:h,inside:c}})}function u(a,i,t){a.eachSeriesByType("funnel",function(s){var e=s.getData(),l=e.mapDimension("value"),n=s.get("sort"),o=m(s,i),c=p(e,n),h=[x(s.get("minSize"),o.width),x(s.get("maxSize"),o.width)],g=e.getDataExtent(l),v=s.get("min"),b=s.get("max");v==null&&(v=Math.min(g[0],0)),b==null&&(b=g[1]);var S=s.get("funnelAlign"),E=s.get("gap"),C=(o.height-E*(e.count()-1))/e.count(),_=o.y,T=function(X,F){var j=e.get(l,X)||0,K=A(j,[v,b],h,!0),z;switch(S){case"left":z=o.x;break;case"center":z=o.x+(o.width-K)/2;break;case"right":z=o.x+o.width-K;break}return[[z,F],[z+K,F]]};n==="ascending"&&(C=-C,E=-E,_+=o.height,c=c.reverse());for(var w=0;w<c.length;w++){var O=c[w],I=c[w+1],k=e.getItemModel(O),M=k.get("itemStyle.height");M==null?M=C:(M=x(M,o.height),n==="ascending"&&(M=-M));var U=T(O,_),P=T(I,_+M);_+=M+E,e.setItemLayout(O,{points:U.concat(P.slice().reverse())})}d(e)})}R.exports=u},JSQU:function(R,L,r){var y=r("YESw"),f="__lodash_hash_undefined__";function x(A,m){var p=this.__data__;return this.size+=this.has(A)?0:1,p[A]=y&&m===void 0?f:m,this}R.exports=x},JSwD:function(R,L,r){"use strict";function y(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(h){return typeof h}:y=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},y(o)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=n;var f=A(r("6BzB"));function x(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return x=function(){return o},o}function A(o){if(o&&o.__esModule)return o;if(o===null||y(o)!=="object"&&typeof o!="function")return{default:o};var c=x();if(c&&c.has(o))return c.get(o);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in o)if(Object.prototype.hasOwnProperty.call(o,v)){var b=g?Object.getOwnPropertyDescriptor(o,v):null;b&&(b.get||b.set)?Object.defineProperty(h,v,b):h[v]=o[v]}return h.default=o,c&&c.set(o,h),h}var m=15,p=852,d=592,u=0,a=1,i=2,t=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function n(o,c,h,g,v,b,S,E){var C=E.bits,_=0,T=0,w=0,O=0,I=0,k=0,M=0,U=0,P=0,X=0,F,j,K,z,V,Q=null,G=0,ee,se=new f.Buf16(m+1),ye=new f.Buf16(m+1),he=null,ke=0,Pe,Ue,$e;for(_=0;_<=m;_++)se[_]=0;for(T=0;T<g;T++)se[c[h+T]]++;for(I=C,O=m;O>=1&&!(se[O]!==0);O--);if(I>O&&(I=O),O===0)return v[b++]=1<<24|64<<16|0,v[b++]=1<<24|64<<16|0,E.bits=1,0;for(w=1;w<O&&!(se[w]!==0);w++);for(I<w&&(I=w),U=1,_=1;_<=m;_++)if(U<<=1,U-=se[_],U<0)return-1;if(U>0&&(o===u||O!==1))return-1;for(ye[1]=0,_=1;_<m;_++)ye[_+1]=ye[_]+se[_];for(T=0;T<g;T++)c[h+T]!==0&&(S[ye[c[h+T]]++]=T);if(o===u?(Q=he=S,ee=19):o===a?(Q=t,G-=257,he=s,ke-=257,ee=256):(Q=e,he=l,ee=-1),X=0,T=0,_=w,V=b,k=I,M=0,K=-1,P=1<<I,z=P-1,o===a&&P>p||o===i&&P>d)return 1;for(;;){Pe=_-M,S[T]<ee?(Ue=0,$e=S[T]):S[T]>ee?(Ue=he[ke+S[T]],$e=Q[G+S[T]]):(Ue=32+64,$e=0),F=1<<_-M,j=1<<k,w=j;do j-=F,v[V+(X>>M)+j]=Pe<<24|Ue<<16|$e|0;while(j!==0);for(F=1<<_-1;X&F;)F>>=1;if(F!==0?(X&=F-1,X+=F):X=0,T++,--se[_]===0){if(_===O)break;_=c[h+S[T]]}if(_>I&&(X&z)!==K){for(M===0&&(M=I),V+=w,k=_-M,U=1<<k;k+M<O&&!(U-=se[k+M],U<=0);)k++,U<<=1;if(P+=1<<k,o===a&&P>p||o===i&&P>d)return 1;K=X&z,v[K]=I<<24|k<<16|V-b|0}}return X!==0&&(v[V+X]=_-M<<24|64<<16|0),E.bits=I,0}},JTzB:function(R,L,r){var y=r("NykK"),f=r("ExA7"),x="[object Arguments]";function A(m){return f(m)&&y(m)==x}R.exports=A},JU1q:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("4xFK")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="DoubleRightOutlined";var i=A.forwardRef(a);L.default=i},JVwQ:function(R,L,r){var y=r("ProS"),f=r("1NG9"),x=f.Polygon,A=r("IwbS"),m=r("bYtY"),p=m.bind,d=m.extend,u=r("gPAo"),a=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,s,e){var l=t.getData(),n=this.group,o=t.getLayerSeries(),c=l.getLayout("layoutInfo"),h=c.rect,g=c.boundaryGap;n.attr("position",[0,h.y+g[0]]);function v(C){return C.name}var b=new u(this._layersSeries||[],o,v,v),S={};b.add(p(E,this,"add")).update(p(E,this,"update")).remove(p(E,this,"remove")).execute();function E(C,_,T){var w=this._layers;if(C==="remove"){n.remove(w[_]);return}for(var O=[],I=[],k,M=o[_].indices,U=0;U<M.length;U++){var P=l.getItemLayout(M[U]),X=P.x,F=P.y0,j=P.y;O.push([X,F]),I.push([X,F+j]),k=l.getItemVisual(M[U],"color")}var K,z,V=l.getItemLayout(M[0]),Q=l.getItemModel(M[U-1]),G=Q.getModel("label"),ee=G.get("margin");if(C==="add"){var se=S[_]=new A.Group;K=new x({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z=new A.Text({style:{x:V.x-ee,y:V.y0+V.y/2}}),se.add(K),se.add(z),n.add(se),K.setClipPath(i(K.getBoundingRect(),t,function(){K.removeClipPath()}))}else{var se=w[T];K=se.childAt(0),z=se.childAt(1),n.add(se),S[_]=se,A.updateProps(K,{shape:{points:O,stackedOnPoints:I}},t),A.updateProps(z,{style:{x:V.x-ee,y:V.y0+V.y/2}},t)}var ye=Q.getModel("emphasis.itemStyle"),he=Q.getModel("itemStyle");A.setTextStyle(z.style,G,{text:G.get("show")?t.getFormattedLabel(M[U-1],"normal")||l.getName(M[U-1]):null,textVerticalAlign:"middle"}),K.setStyle(d({fill:k},he.getItemStyle(["color"]))),A.setHoverStyle(K,ye.getItemStyle())}this._layersSeries=o,this._layers=S},dispose:function(){}});function i(t,s,e){var l=new A.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return A.initProps(l,{shape:{width:t.width+20,height:t.height+20}},s,e),l}R.exports=a},JgUQ:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};L.default=y},JiDT:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("JU1q"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},JsLm:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("PJYZ"),i=r.n(a),t=r("7W2i"),s=r.n(t),e=r("LQ03"),l=r.n(e),n=r("q1tI"),o=r("i8i4"),c=r("TSYQ"),h=r.n(c),g=r("zT1h"),v=r("cDf5"),b=r.n(v),S=r("BGR+"),E=r("6ner"),C=r("H84U"),_=r("RIqP"),T=r.n(_),w=r("xEkU"),O=r.n(w);function I(fe){var J,Y=function(we){return function(){J=null,fe.apply(void 0,T()(we))}},$=function(){if(J==null){for(var we=arguments.length,Ce=new Array(we),Se=0;Se<we;Se++)Ce[Se]=arguments[Se];J=O()(Y(Ce))}};return $.cancel=function(){return O.a.cancel(J)},$}function k(){return function(fe,J,Y){var $=Y.value,de=!1;return{configurable:!0,get:function(){if(de||this===fe.prototype||this.hasOwnProperty(J))return $;var Ce=I($.bind(this));return de=!0,Object.defineProperty(this,J,{value:Ce,configurable:!0,writable:!0}),de=!1,Ce}}}}function M(fe){return fe!==window?fe.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function U(fe,J,Y){return Y!==void 0&&J.top>fe.top-Y?Y+J.top:void 0}function P(fe,J,Y){if(Y!==void 0&&J.bottom<fe.bottom+Y){var $=window.innerHeight-J.bottom;return Y+$}return}var X=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],F=[];function j(){return F}function K(fe,J){if(!fe)return;var Y=F.find(function($){return $.target===fe});Y?Y.affixList.push(J):(Y={target:fe,affixList:[J],eventHandlers:{}},F.push(Y),X.forEach(function($){Y.eventHandlers[$]=Object(g.a)(fe,$,function(){Y.affixList.forEach(function(de){de.lazyUpdatePosition()})})}))}function z(fe){var J=F.find(function(Y){var $=Y.affixList.some(function(de){return de===fe});return $&&(Y.affixList=Y.affixList.filter(function(de){return de!==fe})),$});J&&J.affixList.length===0&&(F=F.filter(function(Y){return Y!==J}),X.forEach(function(Y){var $=J.eventHandlers[Y];$&&$.remove&&$.remove()}))}var V=function(fe,J,Y,$){var de=arguments.length,we=de<3?J:$===null?$=Object.getOwnPropertyDescriptor(J,Y):$,Ce;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(fe,J,Y,$);else for(var Se=fe.length-1;Se>=0;Se--)(Ce=fe[Se])&&(we=(de<3?Ce(we):de>3?Ce(J,Y,we):Ce(J,Y))||we);return de>3&&we&&Object.defineProperty(J,Y,we),we};function Q(){return typeof window!="undefined"?window:null}var G;(function(fe){fe[fe.None=0]="None",fe[fe.Prepare=1]="Prepare"})(G||(G={}));var ee=function(fe){s()(Y,fe);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.state={status:G.None,lastAffix:!1,prevTarget:null},$.getOffsetTop=function(){var de=$.props.offsetBottom,we=$.props.offsetTop;return de===void 0&&we===void 0&&(we=0),we},$.getOffsetBottom=function(){return $.props.offsetBottom},$.savePlaceholderNode=function(de){$.placeholderNode=de},$.saveFixedNode=function(de){$.fixedNode=de},$.measure=function(){var de=$.state,we=de.status,Ce=de.lastAffix,Se=$.props.onChange,le=$.getTargetFunc();if(we!==G.Prepare||!$.fixedNode||!$.placeholderNode||!le)return;var pe=$.getOffsetTop(),_e=$.getOffsetBottom(),tt=le();if(!tt)return;var gt={status:G.None},ct=M(tt),je=M($.placeholderNode),Zt=U(je,ct,pe),ut=P(je,ct,_e);Zt!==void 0?(gt.affixStyle={position:"fixed",top:Zt,width:je.width,height:je.height},gt.placeholderStyle={width:je.width,height:je.height}):ut!==void 0&&(gt.affixStyle={position:"fixed",bottom:ut,width:je.width,height:je.height},gt.placeholderStyle={width:je.width,height:je.height}),gt.lastAffix=!!gt.affixStyle,Se&&Ce!==gt.lastAffix&&Se(gt.lastAffix),$.setState(gt)},$.prepareMeasure=function(){if($.setState({status:G.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var de},$.render=function(){var de=$.context.getPrefixCls,we=$.state,Ce=we.affixStyle,Se=we.placeholderStyle,le=$.props,pe=le.prefixCls,_e=le.children,tt=h()(A()({},de("affix",pe),Ce)),gt=Object(S.default)($.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return n.createElement(E.a,{onResize:function(){$.updatePosition()}},n.createElement("div",f()({},gt,{ref:$.savePlaceholderNode}),Ce&&n.createElement("div",{style:Se,"aria-hidden":"true"}),n.createElement("div",{className:tt,ref:$.saveFixedNode,style:Ce},n.createElement(E.a,{onResize:function(){$.updatePosition()}},_e))))},$}return u()(Y,[{key:"getTargetFunc",value:function(){var de=this.context.getTargetContainer,we=this.props.target;return we!==void 0?we:de||Q}},{key:"componentDidMount",value:function(){var de=this,we=this.getTargetFunc();we&&(this.timeout=setTimeout(function(){K(we(),de),de.updatePosition()}))}},{key:"componentDidUpdate",value:function(de){var we=this.state.prevTarget,Ce=this.getTargetFunc(),Se=null;Ce&&(Se=Ce()||null),we!==Se&&(z(this),Se&&(K(Se,this),this.updatePosition()),this.setState({prevTarget:Se})),(de.offsetTop!==this.props.offsetTop||de.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),z(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var de=this.getTargetFunc(),we=this.state.affixStyle;if(de&&we){var Ce=this.getOffsetTop(),Se=this.getOffsetBottom(),le=de();if(le&&this.placeholderNode){var pe=M(le),_e=M(this.placeholderNode),tt=U(_e,pe,Ce),gt=P(_e,pe,Se);if(tt!==void 0&&we.top===tt||gt!==void 0&&we.bottom===gt)return}}this.prepareMeasure()}}]),Y}(n.Component);ee.contextType=C.b,V([k()],ee.prototype,"updatePosition",null),V([k()],ee.prototype,"lazyUpdatePosition",null);var se=ee,ye=r("zAh6"),he=r("i6bk"),ke=n.createContext(null),Pe=ke;function Ue(){return window}function $e(fe,J){if(!fe.getClientRects().length)return 0;var Y=fe.getBoundingClientRect();return Y.width||Y.height?J===window?(J=fe.ownerDocument.documentElement,Y.top-J.clientTop):Y.top-J.getBoundingClientRect().top:Y.top}var Ge=/#(\S+)$/,ht=function(fe){s()(Y,fe);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.state={activeLink:null},$.links=[],$.registerLink=function(de){$.links.includes(de)||$.links.push(de)},$.unregisterLink=function(de){var we=$.links.indexOf(de);we!==-1&&$.links.splice(we,1)},$.getContainer=function(){var de=$.context.getTargetContainer,we=$.props.getContainer,Ce=we||de||Ue;return Ce()},$.handleScrollTo=function(de){var we=$.props,Ce=we.offsetTop,Se=we.targetOffset;$.setCurrentActiveLink(de);var le=$.getContainer(),pe=Object(he.a)(le,!0),_e=Ge.exec(de);if(!_e)return;var tt=document.getElementById(_e[1]);if(!tt)return;var gt=$e(tt,le),ct=pe+gt;ct-=Se!==void 0?Se:Ce||0,$.animating=!0,Object(ye.a)(ct,{callback:function(){$.animating=!1},getContainer:$.getContainer})},$.saveInkNode=function(de){$.inkNode=de},$.setCurrentActiveLink=function(de){var we=$.state.activeLink,Ce=$.props.onChange;we!==de&&($.setState({activeLink:de}),Ce&&Ce(de))},$.handleScroll=function(){if($.animating)return;var de=$.props,we=de.offsetTop,Ce=de.bounds,Se=de.targetOffset,le=$.getCurrentAnchor(Se!==void 0?Se:we||0,Ce);$.setCurrentActiveLink(le)},$.updateInk=function(){var de=i()($),we=de.prefixCls,Ce=o.findDOMNode(i()($)),Se=Ce.getElementsByClassName("".concat(we,"-link-title-active"))[0];Se&&($.inkNode.style.top="".concat(Se.offsetTop+Se.clientHeight/2-4.5,"px"))},$.render=function(){var de=$.context,we=de.getPrefixCls,Ce=de.direction,Se=$.props,le=Se.prefixCls,pe=Se.className,_e=pe===void 0?"":pe,tt=Se.style,gt=Se.offsetTop,ct=Se.affix,je=Se.showInkInFixed,Zt=Se.children,ut=$.state.activeLink,Ht=we("anchor",le);$.prefixCls=Ht;var dr=h()("".concat(Ht,"-ink-ball"),{visible:ut}),Vt=h()(_e,"".concat(Ht,"-wrapper"),A()({},"".concat(Ht,"-rtl"),Ce==="rtl")),Mt=h()(Ht,{fixed:!ct&&!je}),Gt=f()({maxHeight:gt?"calc(100vh - ".concat(gt,"px)"):"100vh"},tt),Ve=n.createElement("div",{className:Vt,style:Gt},n.createElement("div",{className:Mt},n.createElement("div",{className:"".concat(Ht,"-ink")},n.createElement("span",{className:dr,ref:$.saveInkNode})),Zt));return n.createElement(Pe.Provider,{value:{registerLink:$.registerLink,unregisterLink:$.unregisterLink,activeLink:$.state.activeLink,scrollTo:$.handleScrollTo,onClick:$.props.onClick}},ct?n.createElement(se,{offsetTop:gt,target:$.getContainer},Ve):Ve)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var de=this.getContainer();this.scrollContainer!==de&&(this.scrollContainer=de,this.scrollEvent.remove(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ce=this.props.getCurrentAnchor;if(typeof Ce=="function")return Ce();var Se=[],le=this.getContainer();if(this.links.forEach(function(_e){var tt=Ge.exec(_e.toString());if(!tt)return;var gt=document.getElementById(tt[1]);if(gt){var ct=$e(gt,le);ct<de+we&&Se.push({link:_e,top:ct})}}),Se.length){var pe=Se.reduce(function(_e,tt){return tt.top>_e.top?tt:_e});return pe.link}return""}}]),Y}(n.Component);ht.defaultProps={affix:!0,showInkInFixed:!1},ht.contextType=C.b;var Fe=function(fe){s()(Y,fe);var J=l()(Y);function Y(){var $;return p()(this,Y),$=J.apply(this,arguments),$.handleClick=function(de){var we=$.context,Ce=we.scrollTo,Se=we.onClick,le=$.props,pe=le.href,_e=le.title;Se&&Se(de,{title:_e,href:pe}),Ce(pe)},$.renderAnchorLink=function(de){var we=de.getPrefixCls,Ce=$.props,Se=Ce.prefixCls,le=Ce.href,pe=Ce.title,_e=Ce.children,tt=Ce.className,gt=Ce.target,ct=we("anchor",Se),je=$.context.activeLink===le,Zt=h()(tt,"".concat(ct,"-link"),A()({},"".concat(ct,"-link-active"),je)),ut=h()("".concat(ct,"-link-title"),A()({},"".concat(ct,"-link-title-active"),je));return n.createElement("div",{className:Zt},n.createElement("a",{className:ut,href:le,title:typeof pe=="string"?pe:"",target:gt,onClick:$.handleClick},pe),_e)},$}return u()(Y,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(de){var we=de.href,Ce=this.props.href;we!==Ce&&(this.context.unregisterLink(we),this.context.registerLink(Ce))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return n.createElement(C.a,null,this.renderAnchorLink)}}]),Y}(n.Component);Fe.defaultProps={href:"#"},Fe.contextType=Pe;var oe=Fe;ht.Link=oe;var rt=L.a=ht},JuEJ:function(R,L,r){var y=r("bYtY"),f=r("4NO4"),x=y.each,A=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function p(n){var o=n&&n.itemStyle;if(!o)return;for(var c=0,h=m.length;c<h;c++){var g=m[c],v=o.normal,b=o.emphasis;v&&v[g]&&(n[g]=n[g]||{},n[g].normal?y.merge(n[g].normal,v[g]):n[g].normal=v[g],v[g]=null),b&&b[g]&&(n[g]=n[g]||{},n[g].emphasis?y.merge(n[g].emphasis,b[g]):n[g].emphasis=b[g],b[g]=null)}}function d(n,o,c){if(n&&n[o]&&(n[o].normal||n[o].emphasis)){var h=n[o].normal,g=n[o].emphasis;h&&(c?(n[o].normal=n[o].emphasis=null,y.defaults(n[o],h)):n[o]=h),g&&(n.emphasis=n.emphasis||{},n.emphasis[o]=g)}}function u(n){d(n,"itemStyle"),d(n,"lineStyle"),d(n,"areaStyle"),d(n,"label"),d(n,"labelLine"),d(n,"upperLabel"),d(n,"edgeLabel")}function a(n,o){var c=A(n)&&n[o],h=A(c)&&c.textStyle;if(h)for(var g=0,v=f.TEXT_STYLE_OPTIONS.length;g<v;g++){var o=f.TEXT_STYLE_OPTIONS[g];h.hasOwnProperty(o)&&(c[o]=h[o])}}function i(n){n&&(u(n),a(n,"label"),n.emphasis&&a(n.emphasis,"label"))}function t(n){if(!A(n))return;p(n),u(n),a(n,"label"),a(n,"upperLabel"),a(n,"edgeLabel"),n.emphasis&&(a(n.emphasis,"label"),a(n.emphasis,"upperLabel"),a(n.emphasis,"edgeLabel"));var o=n.markPoint;o&&(p(o),i(o));var c=n.markLine;c&&(p(c),i(c));var h=n.markArea;h&&i(h);var g=n.data;if(n.type==="graph"){g=g||n.nodes;var v=n.links||n.edges;if(v&&!y.isTypedArray(v))for(var b=0;b<v.length;b++)i(v[b]);y.each(n.categories,function(C){u(C)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)i(g[b]);var o=n.markPoint;if(o&&o.data)for(var S=o.data,b=0;b<S.length;b++)i(S[b]);var c=n.markLine;if(c&&c.data)for(var E=c.data,b=0;b<E.length;b++)y.isArray(E[b])?(i(E[b][0]),i(E[b][1])):i(E[b]);n.type==="gauge"?(a(n,"axisLabel"),a(n,"title"),a(n,"detail")):n.type==="treemap"?(d(n.breadcrumb,"itemStyle"),y.each(n.levels,function(C){u(C)})):n.type==="tree"&&u(n.leaves)}function s(n){return y.isArray(n)?n:n?[n]:[]}function e(n){return(y.isArray(n)?n[0]:n)||{}}function l(n,o){x(s(n.series),function(h){A(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];o&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),x(c,function(h){x(s(n[h]),function(g){g&&(a(g,"axisLabel"),a(g.axisPointer,"label"))})}),x(s(n.parallel),function(h){var g=h&&h.parallelAxisDefault;a(g,"axisLabel"),a(g&&g.axisPointer,"label")}),x(s(n.calendar),function(h){d(h,"itemStyle"),a(h,"dayLabel"),a(h,"monthLabel"),a(h,"yearLabel")}),x(s(n.radar),function(h){a(h,"name")}),x(s(n.geo),function(h){A(h)&&(i(h),x(s(h.regions),function(g){i(g)}))}),x(s(n.timeline),function(h){i(h),d(h,"label"),d(h,"itemStyle"),d(h,"controlStyle",!0);var g=h.data;y.isArray(g)&&y.each(g,function(v){y.isObject(v)&&(d(v,"label"),d(v,"itemStyle"))})}),x(s(n.toolbox),function(h){d(h,"iconStyle"),x(h.feature,function(g){d(g,"iconStyle")})}),a(e(n.axisPointer),"label"),a(e(n.tooltip).axisPointer,"label")}R.exports=l},K2GJ:function(R,L,r){var y=r("fW2E"),f=r("gut8"),x=f.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function p(s,e,l){var n=e.x==null?0:e.x,o=e.x2==null?1:e.x2,c=e.y==null?0:e.y,h=e.y2==null?0:e.y2;e.global||(n=n*l.width+l.x,o=o*l.width+l.x,c=c*l.height+l.y,h=h*l.height+l.y),n=isNaN(n)?0:n,o=isNaN(o)?1:o,c=isNaN(c)?0:c,h=isNaN(h)?0:h;var g=s.createLinearGradient(n,c,o,h);return g}function d(s,e,l){var n=l.width,o=l.height,c=Math.min(n,o),h=e.x==null?.5:e.x,g=e.y==null?.5:e.y,v=e.r==null?.5:e.r;e.global||(h=h*n+l.x,g=g*o+l.y,v=v*c);var b=s.createRadialGradient(h,g,0,h,g,v);return b}m.prototype={constructor:m,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,l,n){var o=this,c=n&&n.style,h=!c||e.__attrCachedBy!==x.STYLE_BIND;e.__attrCachedBy=x.STYLE_BIND;for(var g=0;g<A.length;g++){var v=A[g],b=v[0];(h||o[b]!==c[b])&&(e[b]=y(e,b,o[b]||v[1]))}if((h||o.fill!==c.fill)&&(e.fillStyle=o.fill),(h||o.stroke!==c.stroke)&&(e.strokeStyle=o.stroke),(h||o.opacity!==c.opacity)&&(e.globalAlpha=o.opacity==null?1:o.opacity),(h||o.blend!==c.blend)&&(e.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var S=o.lineWidth;e.lineWidth=S/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var n in e)e.hasOwnProperty(n)&&(l===!0||(l===!1?!this.hasOwnProperty(n):e[n]!=null))&&(this[n]=e[n])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,n){for(var o=l.type==="radial"?d:p,c=o(e,l,n),h=l.colorStops,g=0;g<h.length;g++)c.addColorStop(h[g].offset,h[g].color);return c}};for(var u=m.prototype,a=0;a<A.length;a++){var i=A[a];i[0]in u||(u[i[0]]=i[1])}m.getGradient=u.getGradient;var t=m;R.exports=t},K3mO:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("3y9D"),r("WYAk"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.Base,m=x.WordArray,p=f.algo,d=p.MD5,u=p.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:d,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,t){for(var s,e=this.cfg,l=e.hasher.create(),n=m.create(),o=n.words,c=e.keySize,h=e.iterations;o.length<c;){s&&l.update(s),s=l.update(i).finalize(t),l.reset();for(var g=1;g<h;g++)s=l.finalize(s),l.reset();n.concat(s)}return n.sigBytes=c*4,n}});f.EvpKDF=function(a,i,t){return u.create(t).compute(a,i)}}(),y.EvpKDF})},K4ya:function(R,L,r){var y=r("bYtY"),f=r("XxSj"),x=y.each;function A(a){if(a){for(var i in a)if(a.hasOwnProperty(i))return!0}}function m(a,i,t){var s={};return x(i,function(l){var n=s[l]=e();x(a[l],function(o,c){if(!f.isValidType(c))return;var h={type:c,visual:o};t&&t(h,l),n[c]=new f(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",n.__hidden.__alphaForOpacity=new f(h))})}),s;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var n=new l;return n}}function p(a,i,t){var s;y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])&&(s=!0)}),s&&y.each(t,function(e){i.hasOwnProperty(e)&&A(i[e])?a[e]=y.clone(i[e]):delete a[e]})}function d(a,i,t,s,e,l){var n={};y.each(a,function(v){var b=f.prepareVisualTypes(i[v]);n[v]=b});var o;function c(v){return t.getItemVisual(o,v)}function h(v,b){t.setItemVisual(o,v,b)}l==null?t.each(g):t.each([l],g);function g(v,b){o=l==null?v:b;var S=t.getRawDataItem(o);if(S&&S.visualMap===!1)return;for(var E=s.call(e,v),C=i[E],_=n[E],T=0,w=_.length;T<w;T++){var O=_[T];C[O]&&C[O].applyVisual(v,c,h)}}}function u(a,i,t,s){var e={};y.each(a,function(n){var o=f.prepareVisualTypes(i[n]);e[n]=o});function l(n,o){s!=null&&(s=o.getDimension(s));function c(O){return o.getItemVisual(g,O)}function h(O,I){o.setItemVisual(g,O,I)}for(var g;(g=n.next())!=null;){var v=o.getRawDataItem(g);if(v&&v.visualMap===!1)continue;for(var b=s!=null?o.get(s,g,!0):g,S=t(b),E=i[S],C=e[S],_=0,T=C.length;_<T;_++){var w=C[_];E[w]&&E[w].applyVisual(b,c,h)}}}return{progress:l}}L.createVisualMappings=m,L.replaceVisualOption=p,L.applyVisual=d,L.incrementalApplyVisual=u},KCsZ:function(R,L,r){var y=r("bYtY");function f(x){for(var A=0;A<x.length;A++)x[A][1]||(x[A][1]=x[A][0]);return function(m,p,d){for(var u={},a=0;a<x.length;a++){var i=x[a][1];if(p&&y.indexOf(p,i)>=0||d&&y.indexOf(d,i)<0)continue;var t=m.getShallow(i);t!=null&&(u[x[a][0]]=t)}return u}}R.exports=f},KMkd:function(R,L){function r(){this.__data__=[],this.size=0}R.exports=r},KPFz:function(R,L,r){},KQeH:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};L.default=y},KS52:function(R,L,r){var y=r("OELB"),f=y.parsePercent,x=y.linearMap,A=r("+TT/"),m=r("u3DP"),p=r("bYtY"),d=Math.PI*2,u=Math.PI/180;function a(t,s){return A.getLayoutRect(t.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})}function i(t,s,e,l){s.eachSeriesByType(t,function(n){var o=n.getData(),c=o.mapDimension("value"),h=a(n,e),g=n.get("center"),v=n.get("radius");p.isArray(v)||(v=[0,v]),p.isArray(g)||(g=[g,g]);var b=f(h.width,e.getWidth()),S=f(h.height,e.getHeight()),E=Math.min(b,S),C=f(g[0],b)+h.x,_=f(g[1],S)+h.y,T=f(v[0],E/2),w=f(v[1],E/2),O=-n.get("startAngle")*u,I=n.get("minAngle")*u,k=0;o.each(c,function(ee){!isNaN(ee)&&k++});var M=o.getSum(c),U=Math.PI/(M||k)*2,P=n.get("clockwise"),X=n.get("roseType"),F=n.get("stillShowZeroSum"),j=o.getDataExtent(c);j[0]=0;var K=d,z=0,V=O,Q=P?1:-1;if(o.each(c,function(ee,se){var ye;if(isNaN(ee)){o.setItemLayout(se,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:P,cx:C,cy:_,r0:T,r:X?NaN:w,viewRect:h});return}X!=="area"?ye=M===0&&F?U:ee*U:ye=d/k,ye<I?(ye=I,K-=I):z+=ee;var he=V+Q*ye;o.setItemLayout(se,{angle:ye,startAngle:V,endAngle:he,clockwise:P,cx:C,cy:_,r0:T,r:X?x(ee,j,[T,w]):w,viewRect:h}),V=he}),K<d&&k)if(K<=.001){var G=d/k;o.each(c,function(ee,se){if(!isNaN(ee)){var ye=o.getItemLayout(se);ye.angle=G,ye.startAngle=O+Q*se*G,ye.endAngle=O+Q*(se+1)*G}})}else U=K/z,V=O,o.each(c,function(ee,se){if(!isNaN(ee)){var ye=o.getItemLayout(se),he=ye.angle===I?I:ee*U;ye.startAngle=V,ye.endAngle=V+Q*he,V+=Q*he}});m(n,w,h.width,h.height,h.x,h.y)})}R.exports=i},KUOm:function(R,L){function r(y){var f={};y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getData(),p={};A.each(function(d){var u=A.getName(d);p["ec-"+u]=d;var a=A.getItemModel(d),i=a.get("itemStyle.color")||x.getColorFromPalette(u,f);A.setItemVisual(d,"color",i);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<t.length;s++){var e=a.getShallow(t[s],!0);e!=null&&A.setItemVisual(d,t[s],e)}}),A.count()&&m.each(function(d){var u=m.getItemModel(d),a=u.getShallow("category");if(a!=null){typeof a=="string"&&(a=p["ec-"+a]);for(var i=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<i.length;t++)m.getItemVisual(d,i[t],!0)==null&&m.setItemVisual(d,i[t],A.getItemVisual(a,i[t]))}})})}R.exports=r},Kagy:function(R,L){var r={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};R.exports=r},KamJ:function(R,L,r){var y=r("ProS"),f=r("szbU");r("vF/C"),r("qwVE"),r("BuqR"),r("AE9C"),r("1u/T"),y.registerPreprocessor(f)},KmYQ:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(x,A){var m=A*4;x.clamp(),x.sigBytes+=m-(x.sigBytes%m||m)},unpad:function(x){for(var A=x.words,m=x.sigBytes-1,m=x.sigBytes-1;m>=0;m--)if(A[m>>>2]>>>24-m%4*8&255){x.sigBytes=m+1;break}}},y.pad.ZeroPadding})},KrTs:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("cDf5"),A=r.n(x),m=r("pVnL"),p=r.n(m),d=r("q1tI"),u=r("UmKh"),a=r("TSYQ"),i=r.n(a),t=r("J4zp"),s=r.n(t),e=r("H84U"),l=r("0n0R"),n=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I};function o(w){return w?w.toString().split("").reverse().map(function(O){var I=Number(O);return isNaN(I)?O:I}):[]}function c(w,O){for(var I=[],k=0;k<30;k++)I.push(d.createElement("p",{key:k.toString(),className:i()(O,{current:w===k})},k%10));return I}var h=function(O){var I=O.prefixCls,k=O.count,M=O.className,U=O.style,P=O.title,X=O.component,F=X===void 0?"sup":X,j=O.displayComponent,K=O.onAnimated,z=K===void 0?function(){}:K,V=n(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=s()(Q,2),ee=G[0],se=G[1],ye=d.useState(k),he=s()(ye,2),ke=he[0],Pe=he[1],Ue=d.useState(k),$e=s()(Ue,2),Ge=$e[0],ht=$e[1],Fe=d.useState(k),oe=s()(Fe,2),rt=oe[0],fe=oe[1],J=d.useContext(e.b),Y=J.getPrefixCls,$=Y("scroll-number",I);Ge!==k&&(se(!0),ht(k)),d.useEffect(function(){fe(ke);var le;return ee&&(le=setTimeout(function(){se(!1),Pe(k),z()})),function(){le&&clearTimeout(le)}},[ee,k,z]);var de=function(pe,_e){var tt=Math.abs(Number(ke)),gt=Math.abs(Number(rt)),ct=Math.abs(o(ke)[_e]),je=Math.abs(o(gt)[_e]);return ee?10+pe:tt>gt?ct>=je?10+pe:20+pe:ct<=je?10+pe:pe},we=function(pe,_e){if(typeof pe=="number"){var tt=de(pe,_e),gt=ee||o(rt)[_e]===void 0;return d.createElement("span",{className:"".concat($,"-only"),style:{transition:gt?"none":void 0,msTransform:"translateY(".concat(-tt*100,"%)"),WebkitTransform:"translateY(".concat(-tt*100,"%)"),transform:"translateY(".concat(-tt*100,"%)")},key:_e},c(tt,"".concat($,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat($,"-symbol")},pe)},Ce=function(){return ke&&Number(ke)%1===0?o(ke).map(function(pe,_e){return we(pe,_e)}).reverse():ke},Se=p()(p()({},V),{style:U,className:i()($,M),title:P});return U&&U.borderColor&&(Se.style=p()(p()({},U),{boxShadow:"0 0 0 1px ".concat(U.borderColor," inset")})),j?Object(l.a)(j,{className:i()("".concat($,"-custom-component"),j.props&&j.props.className)}):d.createElement(F,Se,Ce())},g=h,v=r("09Wf");function b(w){return v.a.indexOf(w)!==-1}var S=function(O){var I,k=O.className,M=O.prefixCls,U=O.style,P=O.color,X=O.children,F=O.text,j=O.placement,K=j===void 0?"end":j,z=d.useContext(e.b),V=z.getPrefixCls,Q=z.direction,G=V("ribbon",M),ee=b(P),se=i()(G,k,"".concat(G,"-placement-").concat(K),(I={},f()(I,"".concat(G,"-rtl"),Q==="rtl"),f()(I,"".concat(G,"-color-").concat(P),ee),I)),ye={},he={};return P&&!ee&&(ye.background=P,he.color=P),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:se,style:p()(p()({},ye),U)},F,d.createElement("div",{className:"".concat(G,"-corner"),style:he})))},E=S,C=function(w,O){var I={};for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&O.indexOf(k)<0&&(I[k]=w[k]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(w);M<k.length;M++)O.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(w,k[M])&&(I[k[M]]=w[k[M]]);return I},_=function(O){var I,k,M=O.prefixCls,U=O.scrollNumberPrefixCls,P=O.children,X=O.status,F=O.text,j=O.color,K=O.count,z=K===void 0?null:K,V=O.overflowCount,Q=V===void 0?99:V,G=O.dot,ee=G===void 0?!1:G,se=O.size,ye=se===void 0?"default":se,he=O.title,ke=O.offset,Pe=O.style,Ue=O.className,$e=O.showZero,Ge=$e===void 0?!1:$e,ht=C(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Fe=d.useContext(e.b),oe=Fe.getPrefixCls,rt=Fe.direction,fe=oe("badge",M),J=function(){var dr=z>Q?"".concat(Q,"+"):z;return dr},Y=function(){return!!X||!!j},$=function(){var dr=J();return dr==="0"||dr===0},de=function(){return ee&&!$()||Y()},we=function(){return de()?"":J()},Ce=function(){return he||(typeof z=="string"||typeof z=="number"?z:void 0)},Se=function(){return rt==="rtl"?ke?p()({left:parseInt(ke[0],10),marginTop:ke[1]},Pe):Pe:ke?p()({right:-parseInt(ke[0],10),marginTop:ke[1]},Pe):Pe},le=function(){var dr=we(),Vt=dr==null||dr==="";return(Vt||$()&&!Ge)&&!de()},pe=function(){var dr=le();return dr||!F?null:d.createElement("span",{className:"".concat(fe,"-status-text")},F)},_e=function(){var dr=z;return!dr||A()(dr)!=="object"?void 0:Object(l.a)(dr,{style:p()(p()({},Se()),dr.props&&dr.props.style)})},tt=function(){var dr,Vt=oe("scroll-number",U),Mt=we(),Gt=de(),Ve=le(),me=i()((dr={},f()(dr,"".concat(fe,"-dot"),Gt),f()(dr,"".concat(fe,"-count"),!Gt),f()(dr,"".concat(fe,"-count-sm"),ye==="small"),f()(dr,"".concat(fe,"-multiple-words"),!Gt&&z&&z.toString&&z.toString().length>1),f()(dr,"".concat(fe,"-status-").concat(X),!!X),f()(dr,"".concat(fe,"-status-").concat(j),b(j)),dr)),te=Se();return j&&!b(j)&&(te=te||{},te.background=j),Ve?null:d.createElement(g,{prefixCls:Vt,"data-show":!Ve,className:me,count:Mt,displayComponent:_e(),title:Ce(),style:te,key:"scrollNumber"})},gt=i()((I={},f()(I,"".concat(fe,"-status-dot"),Y()),f()(I,"".concat(fe,"-status-").concat(X),!!X),f()(I,"".concat(fe,"-status-").concat(j),b(j)),I)),ct={};j&&!b(j)&&(ct.background=j);var je=i()(Ue,fe,(k={},f()(k,"".concat(fe,"-status"),Y()),f()(k,"".concat(fe,"-not-a-wrapper"),!P),f()(k,"".concat(fe,"-rtl"),rt==="rtl"),k));if(!P&&Y()){var Zt=Se(),ut=Zt&&Zt.color;return d.createElement("span",p()({},ht,{className:je,style:Zt}),d.createElement("span",{className:gt,style:ct}),d.createElement("span",{style:{color:ut},className:"".concat(fe,"-status-text")},F))}return d.createElement("span",p()({},ht,{className:je}),P,d.createElement(u.a,{component:"",showProp:"data-show",transitionName:P?"".concat(fe,"-zoom"):"",transitionAppear:!0},tt()),pe())};_.Ribbon=E;var T=L.a=_},Kvyg:function(R,L,r){},KxBF:function(R,L){function r(y,f,x){var A=-1,m=y.length;f<0&&(f=-f>m?0:m+f),x=x>m?m:x,x<0&&(x+=m),m=f>x?0:x-f>>>0,f>>>=0;for(var p=Array(m);++A<m;)p[A]=y[A+f];return p}R.exports=r},KxFI:function(R,L,r){},KxfA:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.isTypedArray,m=x.extend,p=x.assert,d=x.each,u=x.isObject,a=r("4NO4"),i=a.getDataItemValue,t=a.isDataItemOption,s=r("OELB"),e=s.parseDate,l=r("7G+c"),n=r("k9D9"),o=n.SOURCE_FORMAT_TYPED_ARRAY,c=n.SOURCE_FORMAT_ARRAY_ROWS,h=n.SOURCE_FORMAT_ORIGINAL,g=n.SOURCE_FORMAT_OBJECT_ROWS;function v(P,X){l.isInstance(P)||(P=l.seriesDataToSource(P)),this._source=P;var F=this._data=P.data,j=P.sourceFormat;j===o&&(this._offset=0,this._dimSize=X,this._data=F);var K=S[j===c?j+"_"+P.seriesLayoutBy:j];m(this,K)}var b=v.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(P){return this._data[P+this._source.startIndex]},appendData:_},arrayRows_row:{pure:!0,count:function(){var P=this._data[0];return P?Math.max(0,P.length-this._source.startIndex):0},getItem:function(P){P+=this._source.startIndex;for(var X=[],F=this._data,j=0;j<F.length;j++){var K=F[j];X.push(K?K[P]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:E,getItem:C,appendData:_},keyedColumns:{pure:!0,count:function(){var P=this._source.dimensionsDefine[0].name,X=this._data[P];return X?X.length:0},getItem:function(P){for(var X=[],F=this._source.dimensionsDefine,j=0;j<F.length;j++){var K=this._data[F[j].name];X.push(K?K[P]:null)}return X},appendData:function(P){var X=this._data;d(P,function(F,j){for(var K=X[j]||(X[j]=[]),z=0;z<(F||[]).length;z++)K.push(F[z])})}},original:{count:E,getItem:C,appendData:_},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(P,X){P=P-this._offset,X=X||[];for(var F=this._dimSize*P,j=0;j<this._dimSize;j++)X[j]=this._data[F+j];return X},appendData:function(P){this._data=P},clean:function(){this._offset+=this.count(),this._data=null}}};function E(){return this._data.length}function C(P){return this._data[P]}function _(P){for(var X=0;X<P.length;X++)this._data.push(P[X])}var T={arrayRows:w,objectRows:function(P,X,F,j){return F!=null?P[j]:P},keyedColumns:w,original:function(P,X,F,j){var K=i(P);return F==null||!(K instanceof Array)?K:K[F]},typedArray:w};function w(P,X,F,j){return F!=null?P[F]:P}var O={arrayRows:I,objectRows:function(P,X,F,j){return k(P[X],this._dimensionInfos[X])},keyedColumns:I,original:function(P,X,F,j){var K=P&&(P.value==null?P:P.value);return!this._rawData.pure&&t(P)&&(this.hasItemOption=!0),k(K instanceof Array?K[j]:K,this._dimensionInfos[X])},typedArray:function(P,X,F,j){return P[j]}};function I(P,X,F,j){return k(P[j],this._dimensionInfos[X])}function k(P,X){var F=X&&X.type;if(F==="ordinal"){var j=X&&X.ordinalMeta;return j?j.parseAndCollect(P):P}return F==="time"&&typeof P!="number"&&P!=null&&P!=="-"&&(P=+e(P)),P==null||P===""?NaN:+P}function M(P,X,F){if(!P)return;var j=P.getRawDataItem(X);if(j==null)return;var K=P.getProvider().getSource().sourceFormat,z,V,Q=P.getDimensionInfo(F);return Q&&(z=Q.name,V=Q.index),T[K](j,X,V,z)}function U(P,X,F){if(!P)return;var j=P.getProvider().getSource().sourceFormat;if(j!==h&&j!==g)return;var K=P.getRawDataItem(X);if(j===h&&!u(K)&&(K=null),K)return K[F]}L.DefaultDataProvider=v,L.defaultDimValueGetters=O,L.retrieveRawValue=M,L.retrieveRawAttr=U},L0Ub:function(R,L,r){var y=r("bYtY"),f=y.each,x=y.createHashMap,A=y.assert,m=r("Tghj"),p=m.__DEV__,d=x(["tooltip","label","itemName","itemId","seriesName"]);function u(s){var e={},l=e.encode={},n=x(),o=[],c=[],h=e.userOutput={dimensionNames:s.dimensions.slice(),encode:{}};f(s.dimensions,function(E){var C=s.getDimensionInfo(E),_=C.coordDim;if(_){var T=C.coordDimIndex;a(l,_)[T]=E,C.isExtraCoord||(n.set(_,1),t(C.type)&&(o[0]=E),a(h.encode,_)[T]=C.index),C.defaultTooltip&&c.push(E)}d.each(function(w,O){var I=a(l,O),k=C.otherDims[O];k!=null&&k!==!1&&(I[k]=C.name)})});var g=[],v={};n.each(function(E,C){var _=l[C];v[C]=_[0],g=g.concat(_)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=v;var b=l.label;b&&b.length&&(o=b.slice());var S=l.tooltip;return S&&S.length?c=S.slice():c.length||(c=o.slice()),l.defaultedLabel=o,l.defaultedTooltip=c,e}function a(s,e){return s.hasOwnProperty(e)||(s[e]=[]),s[e]}function i(s){return s==="category"?"ordinal":s==="time"?"time":"float"}function t(s){return!(s==="ordinal"||s==="time")}L.OTHER_DIMENSIONS=d,L.summarizeDimensions=u,L.getDimensionTypeByAxis=i},L3Oj:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("HjIi");r("HM/N"),r("9eas"),r("eS4l"),r("y4/Y"),r("as94"),y.registerLayout(f.curry(x,"bar")),y.extendComponentView({type:"polar"})},L41K:function(R,L,r){"use strict";r.d(L,"a",function(){return z});var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r.n(e),n=r("BGR+"),o=r("VTBJ"),c=r("rePB"),h=r("Ff2n"),g=r("1OyB"),v=r("vuIU"),b=r("Ji7U"),S=r("LK+K"),E=r("Zm9Q"),C=r("TSYQ"),_=r.n(C),T=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(V){return typeof V=="string"}var O=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onClick=function(){var se=ee.props,ye=se.onClick,he=se.onStepClick,ke=se.stepIndex;ye&&ye.apply(void 0,arguments),he(ke)},ee}return Object(v.a)(G,[{key:"renderIconNode",value:function(){var se,ye=this.props,he=ye.prefixCls,ke=ye.progressDot,Pe=ye.stepIcon,Ue=ye.stepNumber,$e=ye.status,Ge=ye.title,ht=ye.description,Fe=ye.icon,oe=ye.iconPrefix,rt=ye.icons,fe,J=_()("".concat(he,"-icon"),"".concat(oe,"icon"),(se={},Object(c.a)(se,"".concat(oe,"icon-").concat(Fe),Fe&&w(Fe)),Object(c.a)(se,"".concat(oe,"icon-check"),!Fe&&$e==="finish"&&(rt&&!rt.finish||!rt)),Object(c.a)(se,"".concat(oe,"icon-cross"),!Fe&&$e==="error"&&(rt&&!rt.error||!rt)),se)),Y=e.createElement("span",{className:"".concat(he,"-icon-dot")});return ke?typeof ke=="function"?fe=e.createElement("span",{className:"".concat(he,"-icon")},ke(Y,{index:Ue-1,status:$e,title:Ge,description:ht})):fe=e.createElement("span",{className:"".concat(he,"-icon")},Y):Fe&&!w(Fe)?fe=e.createElement("span",{className:"".concat(he,"-icon")},Fe):rt&&rt.finish&&$e==="finish"?fe=e.createElement("span",{className:"".concat(he,"-icon")},rt.finish):rt&&rt.error&&$e==="error"?fe=e.createElement("span",{className:"".concat(he,"-icon")},rt.error):Fe||$e==="finish"||$e==="error"?fe=e.createElement("span",{className:J}):fe=e.createElement("span",{className:"".concat(he,"-icon")},Ue),Pe&&(fe=Pe({index:Ue-1,status:$e,title:Ge,description:ht,node:fe})),fe}},{key:"render",value:function(){var se,ye=this.props,he=ye.className,ke=ye.prefixCls,Pe=ye.style,Ue=ye.active,$e=ye.status,Ge=$e===void 0?"wait":$e,ht=ye.iconPrefix,Fe=ye.icon,oe=ye.wrapperStyle,rt=ye.stepNumber,fe=ye.disabled,J=ye.description,Y=ye.title,$=ye.subTitle,de=ye.progressDot,we=ye.stepIcon,Ce=ye.tailContent,Se=ye.icons,le=ye.stepIndex,pe=ye.onStepClick,_e=ye.onClick,tt=Object(h.a)(ye,T),gt=_()("".concat(ke,"-item"),"".concat(ke,"-item-").concat(Ge),he,(se={},Object(c.a)(se,"".concat(ke,"-item-custom"),Fe),Object(c.a)(se,"".concat(ke,"-item-active"),Ue),Object(c.a)(se,"".concat(ke,"-item-disabled"),fe===!0),se)),ct=Object(o.a)({},Pe),je={};return pe&&!fe&&(je.role="button",je.tabIndex=0,je.onClick=this.onClick),e.createElement("div",Object.assign({},tt,{className:gt,style:ct}),e.createElement("div",Object.assign({onClick:_e},je,{className:"".concat(ke,"-item-container")}),e.createElement("div",{className:"".concat(ke,"-item-tail")},Ce),e.createElement("div",{className:"".concat(ke,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(ke,"-item-content")},e.createElement("div",{className:"".concat(ke,"-item-title")},Y,$&&e.createElement("div",{title:typeof $=="string"?$:void 0,className:"".concat(ke,"-item-subtitle")},$)),J&&e.createElement("div",{className:"".concat(ke,"-item-description")},J))))}}]),G}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],k=function(V){Object(b.a)(G,V);var Q=Object(S.a)(G);function G(){var ee;return Object(g.a)(this,G),ee=Q.apply(this,arguments),ee.onStepClick=function(se){var ye=ee.props,he=ye.onChange,ke=ye.current;he&&ke!==se&&he(se)},ee}return Object(v.a)(G,[{key:"render",value:function(){var se,ye=this,he=this.props,ke=he.prefixCls,Pe=he.style,Ue=Pe===void 0?{}:Pe,$e=he.className,Ge=he.children,ht=he.direction,Fe=he.type,oe=he.labelPlacement,rt=he.iconPrefix,fe=he.status,J=he.size,Y=he.current,$=he.progressDot,de=he.stepIcon,we=he.initial,Ce=he.icons,Se=he.onChange,le=Object(h.a)(he,I),pe=Fe==="navigation",_e=$?"vertical":oe,tt=_()(ke,"".concat(ke,"-").concat(ht),$e,(se={},Object(c.a)(se,"".concat(ke,"-").concat(J),J),Object(c.a)(se,"".concat(ke,"-label-").concat(_e),ht==="horizontal"),Object(c.a)(se,"".concat(ke,"-dot"),!!$),Object(c.a)(se,"".concat(ke,"-navigation"),pe),se));return l.a.createElement("div",Object.assign({className:tt,style:Ue},le),Object(E.a)(Ge).map(function(gt,ct){var je=we+ct,Zt=Object(o.a)({stepNumber:"".concat(je+1),stepIndex:je,key:je,prefixCls:ke,iconPrefix:rt,wrapperStyle:Ue,progressDot:$,stepIcon:de,icons:Ce,onStepClick:Se&&ye.onStepClick},gt.props);return fe==="error"&&ct===Y-1&&(Zt.className="".concat(ke,"-next-error")),gt.props.status||(je===Y?Zt.status=fe:je<Y?Zt.status="finish":Zt.status="wait"),Zt.active=je===Y,Object(e.cloneElement)(gt,Zt)}))}}]),G}(l.a.Component);k.Step=O,k.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var M=k,U=r("Eh2f"),P=r.n(U),X=r("1S0Z"),F=r.n(X),j=r("H84U"),K=r("CFYs"),z=function(V){i()(G,V);var Q=s()(G);function G(){var ee;return p()(this,G),ee=Q.apply(this,arguments),ee.renderSteps=function(se){var ye=se.getPrefixCls,he=se.direction,ke=ye("steps",ee.props.prefixCls),Pe=ye("",ee.props.iconPrefix),Ue=ee.props,$e=Ue.percent,Ge=Ue.size,ht=_()(ee.props.className,A()({},"".concat(ke,"-rtl"),he==="rtl")),Fe={finish:e.createElement(P.a,{className:"".concat(ke,"-finish-icon")}),error:e.createElement(F.a,{className:"".concat(ke,"-error-icon")})},oe=function(fe){var J=fe.node,Y=fe.status;if(Y==="process"&&$e!==void 0){var $=Ge==="small"?32:40,de=e.createElement("div",{className:"".concat(ke,"-progress-icon")},e.createElement(K.a,{type:"circle",percent:$e,width:$,strokeWidth:4,format:function(){return null}}),J);return de}return J};return e.createElement(M,f()({icons:Fe},Object(n.default)(ee.props,["progress"]),{stepIcon:oe,prefixCls:ke,iconPrefix:Pe,className:ht}))},ee}return u()(G,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),G}(e.Component);z.Step=M.Step,z.defaultProps={current:0}},L5E0:function(R,L){var r=["itemStyle","borderColor"];function y(f,x){var A=f.get("color");f.eachRawSeriesByType("boxplot",function(m){var p=A[m.seriesIndex%A.length],d=m.getData();d.setVisual({legendSymbol:"roundRect",color:m.get(r)||p}),f.isSeriesFiltered(m)||d.each(function(u){var a=d.getItemModel(u);d.setItemVisual(u,{color:a.get(r,!0)})})})}R.exports=y},L8xA:function(R,L){function r(y){var f=this.__data__,x=f.delete(y);return this.size=f.size,x}R.exports=r},LBfv:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=f.createHashMap,A=f.each;y.registerProcessor({getTargetSeries:function(m){var p=x();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,a,i){var t=i.getAxisProxy(u.name,a);A(t.getTargetSeriesModels(),function(s){p.set(s.uid,s)})})}),p},modifyOutputEnd:!0,overallReset:function(m,p){m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).reset(i,p)}),d.eachTargetAxis(function(u,a,i){i.getAxisProxy(u.name,a).filterData(i,p)})}),m.eachComponent("dataZoom",function(d){var u=d.findRepresentativeAxisProxy(),a=u.getDataPercentWindow(),i=u.getDataValueWindow();d.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})})}})},LCi9:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){for(var S=0;S<b.length;S++){var E=b[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,E.key,E)}}function x(v,b,S){return b&&f(v.prototype,b),S&&f(v,S),v}var A=0,m=1,p=2,d=4,u=8,a=16,i=32,t=64,s=127,e=50,l=90,n=250,o=1e3,c=1e3,h=50,g=function(){function v(){y(this,v),this._target=null,this._state=s,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return x(v,[{key:"attach",value:function(S){this.detach(),this._target=S,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(S){var E;S.stopPropagation(),S.preventDefault();switch(S.type){case"touchstart":E=this._touchStart;break;case"touchmove":E=this._touchMove;break;case"touchend":case"touchcancel":E=this._touchEnd;break}for(var C=0;C<S.changedTouches.length;C++){var _=S.changedTouches[C];E.call(this,_.identifier,_.clientX,_.clientY)}}},{key:"_touchStart",value:function(S,E,C){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(S);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>n){this._state=A,this._ignored.push(S);return}if(this._waitingRelease){this._state=A,this._ignored.push(S);return}this._tracked.push({id:S,started:Date.now(),active:!0,firstX:E,firstY:C,lastX:E,lastY:C,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|u|a),this._stopLongpressTimeout();break;case 3:this._state&=~(p|i|t);break;default:this._state=A}}},{key:"_touchMove",value:function(S,E,C){var _=this._tracked.find(function(M){return M.id===S});if(_===void 0)return;_.lastX=E,_.lastY=C;var T=E-_.firstX,w=C-_.firstY;if((_.firstX!==_.lastX||_.firstY!==_.lastY)&&(_.angle=Math.atan2(w,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,w)<e)return;if(this._state&=~(m|p|d|a),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~u),this._tracked.length!==2&&(this._state&=~(i|t)),this._tracked.length===2){var O=this._tracked.find(function(M){return M.id!==S}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var k=Math.abs(_.angle-O.angle);k=Math.abs((k+180)%360-180),k>l?this._state&=~i:this._state&=~t,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(S,E,C){if(this._ignored.indexOf(S)!==-1){this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=s,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=A),!this._hasDetectedGesture()&&(this._state&=~(u|i|t),this._state&=~a,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(p|d);break;case 2:this._state&=~(m|d);break}}if(this._waitingRelease){Date.now()-this._releaseStart>n&&(this._state=A),this._tracked.some(function(w){return Date.now()-w.started>o})&&(this._state=A);var _=this._tracked.find(function(w){return w.id===S});if(_.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=A,this._ignored.indexOf(S)!==-1&&this._ignored.splice(this._ignored.indexOf(S),1),this._ignored.length===0&&(this._state=s,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(m|p|d)&&this._tracked.some(function(S){return S.active}))}},{key:"_startLongpressTimeout",value:function(){var S=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return S._longpressTimeout()},c)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=a,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var S=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return S._twoTouchTimeout()},h)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var S=this._getAverageMovement(),E=Math.abs(S.x),C=Math.abs(S.y),_=this._getAverageDistance(),T=Math.abs(Math.hypot(_.first.x,_.first.y)-Math.hypot(_.last.x,_.last.y));C<T&&E<T?this._state=t:this._state=i,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(S){var E={type:this._stateToGesture(this._state)},C=this._getPosition(),_=C.last;S==="gesturestart"&&(_=C.first);switch(this._state){case i:case t:_=C.first;break}if(E.clientX=_.x,E.clientY=_.y,this._state===t){var T=this._getAverageDistance();S==="gesturestart"?(E.magnitudeX=T.first.x,E.magnitudeY=T.first.y):(E.magnitudeX=T.last.x,E.magnitudeY=T.last.y)}else if(this._state===i)if(S==="gesturestart")E.magnitudeX=0,E.magnitudeY=0;else{var w=this._getAverageMovement();E.magnitudeX=w.x,E.magnitudeY=w.y}var O=new CustomEvent(S,{detail:E});this._target.dispatchEvent(O)}},{key:"_stateToGesture",value:function(S){switch(S){case m:return"onetap";case p:return"twotap";case d:return"threetap";case u:return"drag";case a:return"longpress";case i:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+S)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var S=this._tracked.length,E=0,C=0,_=0,T=0,w=0;w<this._tracked.length;w++)E+=this._tracked[w].firstX,C+=this._tracked[w].firstY,_+=this._tracked[w].lastX,T+=this._tracked[w].lastY;return{first:{x:E/S,y:C/S},last:{x:_/S,y:T/S}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var S,E;S=E=0;for(var C=this._tracked.length,_=0;_<this._tracked.length;_++)S+=this._tracked[_].lastX-this._tracked[_].firstX,E+=this._tracked[_].lastY-this._tracked[_].firstY;return{x:S/C,y:E/C}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var S=this._tracked[0],E=this._tracked[this._tracked.length-1],C=Math.abs(E.firstX-S.firstX),_=Math.abs(E.firstY-S.firstY),T=Math.abs(E.lastX-S.lastX),w=Math.abs(E.lastY-S.lastY);return{first:{x:C,y:_},last:{x:T,y:w}}}}]),v}();L.default=g},LHiK:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("pl8g"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},LPTA:function(R,L){var r=1;typeof window!="undefined"&&(r=Math.max(window.devicePixelRatio||1,1));var y=0,f=r;L.debugMode=y,L.devicePixelRatio=f},LPzL:function(R,L,r){var y=r("ProS");r("QzjZ"),r("vL6D"),r("xiyX"),r("y4/Y"),r("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y=function(){function s(e,l){for(var n=0;n<l.length;n++){var o=l[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,l,n){return l&&s(e.prototype,l),n&&s(e,n),e}}(),f=r("q1tI"),x=p(f),A=r("17x9"),m=p(A);function p(s){return s&&s.__esModule?s:{default:s}}function d(s,e){var l={};for(var n in s){if(e.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(s,n))continue;l[n]=s[n]}return l}function u(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function a(s,e){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:s}function i(s,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e)}var t=function(s){i(e,s);function e(l){u(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return y(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var n=this.getParentElement(this.scrollComponent);n.scrollTop=n.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var n=!1,o={get passive(){n=!0}};try{document.addEventListener("test",null,o),document.removeEventListener("test",null,o)}catch(c){}return n}},{key:"eventListenerOptions",value:function(){var n=this.props.useCapture;return this.isPassiveSupported()&&(n={useCapture:this.props.useCapture,passive:!0}),n}},{key:"setDefaultLoader",value:function(n){this.defaultLoader=n}},{key:"detachMousewheelListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.scrollComponent.parentNode),n.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var n=window;this.props.useWindow===!1&&(n=this.getParentElement(this.scrollComponent)),n.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(n){var o=this.props.getScrollParent&&this.props.getScrollParent();return o!=null?o:n&&n.parentNode}},{key:"filterProps",value:function(n){return n}},{key:"attachScrollListener",value:function(){var n=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!n)return;var o=window;this.props.useWindow===!1&&(o=n),o.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),o.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(n){n.deltaY===1&&!this.isPassiveSupported()&&n.preventDefault()}},{key:"scrollListener",value:function(){var n=this.scrollComponent,o=window,c=this.getParentElement(n),h=void 0;if(this.props.useWindow){var g=document.documentElement||document.body.parentNode||document.body,v=o.pageYOffset!==void 0?o.pageYOffset:g.scrollTop;this.props.isReverse?h=v:h=this.calculateOffset(n,v)}else this.props.isReverse?h=c.scrollTop:h=n.scrollHeight-c.scrollTop-c.clientHeight;h<Number(this.props.threshold)&&n&&n.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=c.scrollHeight,this.beforeScrollTop=c.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(n,o){return n?this.calculateTopPosition(n)+(n.offsetHeight-o-window.innerHeight):0}},{key:"calculateTopPosition",value:function(n){return n?n.offsetTop+this.calculateTopPosition(n.offsetParent):0}},{key:"render",value:function(){var n=this,o=this.filterProps(this.props),c=o.children,h=o.element,g=o.hasMore,v=o.initialLoad,b=o.isReverse,S=o.loader,E=o.loadMore,C=o.pageStart,_=o.ref,T=o.threshold,w=o.useCapture,O=o.useWindow,I=o.getScrollParent,k=d(o,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);k.ref=function(U){n.scrollComponent=U,_&&_(U)};var M=[c];return g&&(S?b?M.unshift(S):M.push(S):this.defaultLoader&&(b?M.unshift(this.defaultLoader):M.push(this.defaultLoader))),x.default.createElement(h,k,M)}}]),e}(f.Component);t.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.default.bool},t.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},L.default=t,R.exports=L.default},LXxW:function(R,L){function r(y,f){for(var x=-1,A=y==null?0:y.length,m=0,p=[];++x<A;){var d=y[x];f(d,x,y)&&(p[m++]=d)}return p}R.exports=r},LlR5:function(R,L,r){"use strict";r.d(L,"b",function(){return b});var y=r("lSNA"),f=r.n(y),x=r("lwsE"),A=r.n(x),m=r("W8MJ"),p=r.n(m),d=r("7W2i"),u=r.n(d),a=r("LQ03"),i=r.n(a),t=r("q1tI"),s=r.n(t),e=r("TSYQ"),l=r.n(e),n=r("f0uV"),o=r.n(n),c=r("CWQg"),h=r("mh/l"),g=r("0n0R"),v=Object(c.a)("text","input");function b(E){return!!(E.prefix||E.suffix||E.allowClear)}var S=function(E){u()(_,E);var C=i()(_);function _(){var T;return A()(this,_),T=C.apply(this,arguments),T.containerRef=t.createRef(),T.onInputMouseUp=function(w){var O;if((O=T.containerRef.current)===null||O===void 0?void 0:O.contains(w.target)){var I=T.props.triggerFocus;I()}},T}return p()(_,[{key:"renderClearIcon",value:function(w){var O=this.props,I=O.allowClear,k=O.value,M=O.disabled,U=O.readOnly,P=O.inputType,X=O.handleReset;if(!I)return null;var F=!M&&!U&&k,j=P===v[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return t.createElement(o.a,{onClick:X,className:l()(j,f()({},"".concat(j,"-hidden"),!F)),role:"button"})}},{key:"renderSuffix",value:function(w){var O=this.props,I=O.suffix,k=O.allowClear;return I||k?t.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,O){var I,k=this.props,M=k.focused,U=k.value,P=k.prefix,X=k.className,F=k.size,j=k.suffix,K=k.disabled,z=k.allowClear,V=k.direction,Q=k.style,G=k.readOnly,ee=k.bordered,se=this.renderSuffix(w);if(!b(this.props))return Object(g.a)(O,{value:U});var ye=P?t.createElement("span",{className:"".concat(w,"-prefix")},P):null,he=l()(X,"".concat(w,"-affix-wrapper"),(I={},f()(I,"".concat(w,"-affix-wrapper-focused"),M),f()(I,"".concat(w,"-affix-wrapper-disabled"),K),f()(I,"".concat(w,"-affix-wrapper-sm"),F==="small"),f()(I,"".concat(w,"-affix-wrapper-lg"),F==="large"),f()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),j&&z&&U),f()(I,"".concat(w,"-affix-wrapper-rtl"),V==="rtl"),f()(I,"".concat(w,"-affix-wrapper-readonly"),G),f()(I,"".concat(w,"-affix-wrapper-borderless"),!ee),I));return t.createElement("span",{ref:this.containerRef,className:he,style:Q,onMouseUp:this.onInputMouseUp},ye,Object(g.a)(O,{style:null,value:U,className:Object(h.c)(w,ee,F,K)}),se)}},{key:"renderInputWithLabel",value:function(w,O){var I,k,M=this.props,U=M.addonBefore,P=M.addonAfter,X=M.style,F=M.size,j=M.className,K=M.direction;if(!U&&!P)return O;var z="".concat(w,"-group"),V="".concat(z,"-addon"),Q=U?t.createElement("span",{className:V},U):null,G=P?t.createElement("span",{className:V},P):null,ee=l()("".concat(w,"-wrapper"),(I={},f()(I,z,U||P),f()(I,"".concat(z,"-rtl"),K==="rtl"),I)),se=l()(j,"".concat(w,"-group-wrapper"),(k={},f()(k,"".concat(w,"-group-wrapper-sm"),F==="small"),f()(k,"".concat(w,"-group-wrapper-lg"),F==="large"),f()(k,"".concat(w,"-group-wrapper-rtl"),K==="rtl"),k));return t.createElement("span",{className:se,style:X},t.createElement("span",{className:ee},Q,Object(g.a)(O,{style:null}),G))}},{key:"renderTextAreaWithClearIcon",value:function(w,O){var I,k=this.props,M=k.value,U=k.allowClear,P=k.className,X=k.style,F=k.direction,j=k.bordered;if(!U)return Object(g.a)(O,{value:M});var K=l()(P,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},f()(I,"".concat(w,"-affix-wrapper-rtl"),F==="rtl"),f()(I,"".concat(w,"-affix-wrapper-borderless"),!j),I));return t.createElement("span",{className:K,style:X},Object(g.a)(O,{style:null,value:M}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,O=w.prefixCls,I=w.inputType,k=w.element;return I===v[0]?this.renderTextAreaWithClearIcon(O,k):this.renderInputWithLabel(O,this.renderLabeledIcon(O,k))}}]),_}(t.Component);L.a=S},Llu2:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="DeliveredProcedureOutlined";var d=L.a=f.forwardRef(p)},Lo0S:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.initLogging=p,L.getLogging=d,L.Error=L.Warn=L.Info=L.Debug=void 0;var y="warn",f=function(){};L.Debug=f;var x=function(){};L.Info=x;var A=function(){};L.Warn=A;var m=function(){};L.Error=m;function p(u){if(typeof u=="undefined"?u=y:y=u,L.Debug=f=L.Info=x=L.Warn=A=L.Error=m=function(){},typeof window.console!="undefined")switch(u){case"debug":L.Debug=f=console.debug.bind(window.console);case"info":L.Info=x=console.info.bind(window.console);case"warn":L.Warn=A=console.warn.bind(window.console);case"error":L.Error=m=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+u+"'")}}function d(){return y}p()},LtfV:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="InboxOutlined";var d=L.a=f.forwardRef(p)},Lyp1:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="QuestionCircleOutlined";var d=L.a=f.forwardRef(p)},LzGr:function(R,L,r){var y=r("ProS"),f=r("rnVJ");r("EMyp"),r("8x+h"),r("wt3j"),r("uOyE"),r("/stD"),y.registerPreprocessor(f)},MBQ8:function(R,L,r){var y=r("T4UG"),f=r("MwEJ"),x=y.extend({type:"series.__base_bar__",getInitialData:function(A,m){return f(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var m=this.coordinateSystem;if(m){var p=m.dataToPoint(m.clampData(A)),d=this.getData(),u=d.getLayout("offset"),a=d.getLayout("size"),i=m.getBaseAxis().isHorizontal()?0:1;return p[i]+=u+a/2,p}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});R.exports=x},MEGo:function(R,L,r){var y=r("4fz+"),f=r("Dagg"),x=r("dqUG"),A=r("2fw6"),m=r("x6Kt"),p=r("rmlV"),d=r("yxFR"),u=r("y+Vt"),a=r("h7HQ"),i=r("1Jh7"),t=r("SKnc"),s=r("K2GJ"),e=r("Fofx"),l=r("NC18"),n=l.createFromString,o=r("bYtY"),c=o.isString,h=o.extend,g=o.defaults,v=o.trim,b=o.each,S=/[\s,]+/;function E(Q){if(c(Q)){var G=new DOMParser;Q=G.parseFromString(Q,"text/xml")}for(Q.nodeType===9&&(Q=Q.firstChild);Q.nodeName.toLowerCase()!=="svg"||Q.nodeType!==1;)Q=Q.nextSibling;return Q}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(Q,G){G=G||{};var ee=E(Q);if(!ee)throw new Error("Illegal svg");var se=new y;this._root=se;var ye=ee.getAttribute("viewBox")||"",he=parseFloat(ee.getAttribute("width")||G.width),ke=parseFloat(ee.getAttribute("height")||G.height);isNaN(he)&&(he=null),isNaN(ke)&&(ke=null),M(ee,se,null,!0);for(var Pe=ee.firstChild;Pe;)this._parseNode(Pe,se),Pe=Pe.nextSibling;var Ue,$e;if(ye){var Ge=v(ye).split(S);Ge.length>=4&&(Ue={x:parseFloat(Ge[0]||0),y:parseFloat(Ge[1]||0),width:parseFloat(Ge[2]),height:parseFloat(Ge[3])})}if(Ue&&he!=null&&ke!=null&&($e=z(Ue,he,ke),!G.ignoreViewBox)){var ht=se;se=new y,se.add(ht),ht.scale=$e.scale.slice(),ht.position=$e.position.slice()}return!G.ignoreRootClip&&he!=null&&ke!=null&&se.setClipPath(new m({shape:{x:0,y:0,width:he,height:ke}})),{root:se,width:he,height:ke,viewBoxRect:Ue,viewBoxTransform:$e}},C.prototype._parseNode=function(Q,G){var ee=Q.nodeName.toLowerCase();ee==="defs"?this._isDefine=!0:ee==="text"&&(this._isText=!0);var se;if(this._isDefine){var ye=T[ee];if(ye){var he=ye.call(this,Q),ke=Q.getAttribute("id");ke&&(this._defs[ke]=he)}}else{var ye=_[ee];ye&&(se=ye.call(this,Q,G),G.add(se))}for(var Pe=Q.firstChild;Pe;)Pe.nodeType===1&&this._parseNode(Pe,se),Pe.nodeType===3&&this._isText&&this._parseText(Pe,se),Pe=Pe.nextSibling;ee==="defs"?this._isDefine=!1:ee==="text"&&(this._isText=!1)},C.prototype._parseText=function(Q,G){if(Q.nodeType===1){var ee=Q.getAttribute("dx")||0,se=Q.getAttribute("dy")||0;this._textX+=parseFloat(ee),this._textY+=parseFloat(se)}var ye=new x({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(G,ye),M(Q,ye,this._defs);var he=ye.style.fontSize;he&&he<9&&(ye.style.fontSize=9,ye.scale=ye.scale||[1,1],ye.scale[0]*=he/9,ye.scale[1]*=he/9);var ke=ye.getBoundingRect();return this._textX+=ke.width,G.add(ye),ye};var _={g:function(G,ee){var se=new y;return O(ee,se),M(G,se,this._defs),se},rect:function(G,ee){var se=new m;return O(ee,se),M(G,se,this._defs),se.setShape({x:parseFloat(G.getAttribute("x")||0),y:parseFloat(G.getAttribute("y")||0),width:parseFloat(G.getAttribute("width")||0),height:parseFloat(G.getAttribute("height")||0)}),se},circle:function(G,ee){var se=new A;return O(ee,se),M(G,se,this._defs),se.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),se},line:function(G,ee){var se=new d;return O(ee,se),M(G,se,this._defs),se.setShape({x1:parseFloat(G.getAttribute("x1")||0),y1:parseFloat(G.getAttribute("y1")||0),x2:parseFloat(G.getAttribute("x2")||0),y2:parseFloat(G.getAttribute("y2")||0)}),se},ellipse:function(G,ee){var se=new p;return O(ee,se),M(G,se,this._defs),se.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),rx:parseFloat(G.getAttribute("rx")||0),ry:parseFloat(G.getAttribute("ry")||0)}),se},polygon:function(G,ee){var se=G.getAttribute("points");se&&(se=I(se));var ye=new a({shape:{points:se||[]}});return O(ee,ye),M(G,ye,this._defs),ye},polyline:function(G,ee){var se=new u;O(ee,se),M(G,se,this._defs);var ye=G.getAttribute("points");ye&&(ye=I(ye));var he=new i({shape:{points:ye||[]}});return he},image:function(G,ee){var se=new f;return O(ee,se),M(G,se,this._defs),se.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),se},text:function(G,ee){var se=G.getAttribute("x")||0,ye=G.getAttribute("y")||0,he=G.getAttribute("dx")||0,ke=G.getAttribute("dy")||0;this._textX=parseFloat(se)+parseFloat(he),this._textY=parseFloat(ye)+parseFloat(ke);var Pe=new y;return O(ee,Pe),M(G,Pe,this._defs),Pe},tspan:function(G,ee){var se=G.getAttribute("x"),ye=G.getAttribute("y");se!=null&&(this._textX=parseFloat(se)),ye!=null&&(this._textY=parseFloat(ye));var he=G.getAttribute("dx")||0,ke=G.getAttribute("dy")||0,Pe=new y;return O(ee,Pe),M(G,Pe,this._defs),this._textX+=he,this._textY+=ke,Pe},path:function(G,ee){var se=G.getAttribute("d")||"",ye=n(se);return O(ee,ye),M(G,ye,this._defs),ye}},T={lineargradient:function(G){var ee=parseInt(G.getAttribute("x1")||0,10),se=parseInt(G.getAttribute("y1")||0,10),ye=parseInt(G.getAttribute("x2")||10,10),he=parseInt(G.getAttribute("y2")||0,10),ke=new t(ee,se,ye,he);return w(G,ke),ke},radialgradient:function(G){}};function w(Q,G){for(var ee=Q.firstChild;ee;){if(ee.nodeType===1){var se=ee.getAttribute("offset");se.indexOf("%")>0?se=parseInt(se,10)/100:se?se=parseFloat(se):se=0;var ye=ee.getAttribute("stop-color")||"#000000";G.addColorStop(se,ye)}ee=ee.nextSibling}}function O(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function I(Q){for(var G=v(Q).split(S),ee=[],se=0;se<G.length;se+=2){var ye=parseFloat(G[se]),he=parseFloat(G[se+1]);ee.push([ye,he])}return ee}var k={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function M(Q,G,ee,se){var ye=G.__inheritedStyle||{},he=G.type==="text";if(Q.nodeType===1&&(F(Q,G),h(ye,K(Q)),!se)){for(var ke in k)if(k.hasOwnProperty(ke)){var Pe=Q.getAttribute(ke);Pe!=null&&(ye[k[ke]]=Pe)}}var Ue=he?"textFill":"fill",$e=he?"textStroke":"stroke";G.style=G.style||new s;var Ge=G.style;ye.fill!=null&&Ge.set(Ue,P(ye.fill,ee)),ye.stroke!=null&&Ge.set($e,P(ye.stroke,ee)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ht){var Fe=ht==="lineWidth"&&he?"textStrokeWidth":ht;ye[ht]!=null&&Ge.set(Fe,parseFloat(ye[ht]))}),(!ye.textBaseline||ye.textBaseline==="auto")&&(ye.textBaseline="alphabetic"),ye.textBaseline==="alphabetic"&&(ye.textBaseline="bottom"),ye.textAlign==="start"&&(ye.textAlign="left"),ye.textAlign==="end"&&(ye.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ht){ye[ht]!=null&&Ge.set(ht,ye[ht])}),ye.lineDash&&(G.style.lineDash=v(ye.lineDash).split(S)),Ge[$e]&&Ge[$e]!=="none"&&(G[$e]=!0),G.__inheritedStyle=ye}var U=/url\(\s*#(.*?)\)/;function P(Q,G){var ee=G&&Q&&Q.match(U);if(ee){var se=v(ee[1]),ye=G[se];return ye}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(Q,G){var ee=Q.getAttribute("transform");if(ee){ee=ee.replace(/,/g," ");var se=null,ye=[];ee.replace(X,function(Ue,$e,Ge){ye.push($e,Ge)});for(var he=ye.length-1;he>0;he-=2){var ke=ye[he],Pe=ye[he-1];se=se||e.create();switch(Pe){case"translate":ke=v(ke).split(S),e.translate(se,se,[parseFloat(ke[0]),parseFloat(ke[1]||0)]);break;case"scale":ke=v(ke).split(S),e.scale(se,se,[parseFloat(ke[0]),parseFloat(ke[1]||ke[0])]);break;case"rotate":ke=v(ke).split(S),e.rotate(se,se,parseFloat(ke[0]));break;case"skew":ke=v(ke).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var ke=v(ke).split(S);se[0]=parseFloat(ke[0]),se[1]=parseFloat(ke[1]),se[2]=parseFloat(ke[2]),se[3]=parseFloat(ke[3]),se[4]=parseFloat(ke[4]),se[5]=parseFloat(ke[5]);break}}G.setLocalTransform(se)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function K(Q){var G=Q.getAttribute("style"),ee={};if(!G)return ee;var se={};j.lastIndex=0;for(var ye;(ye=j.exec(G))!=null;)se[ye[1]]=ye[2];for(var he in k)k.hasOwnProperty(he)&&se[he]!=null&&(ee[k[he]]=se[he]);return ee}function z(Q,G,ee){var se=G/Q.width,ye=ee/Q.height,he=Math.min(se,ye),ke=[he,he],Pe=[-(Q.x+Q.width/2)*he+G/2,-(Q.y+Q.height/2)*he+ee/2];return{scale:ke,position:Pe}}function V(Q,G){var ee=new C;return ee.parse(Q,G)}L.parseXML=E,L.makeViewBoxTransform=z,L.parseSVG=V},MFOe:function(R,L,r){(function(y){var f=p(),x=d(),A=u(),m=typeof window!="undefined"?window:y;R.exports={assign:f,create:x,trim:A,bind:a,slice:i,each:t,map:s,pluck:e,isList:l,isFunction:n,isObject:o,Global:m};function p(){return Object.assign?Object.assign:function(h,g,v,b){for(var S=1;S<arguments.length;S++)t(Object(arguments[S]),function(E,C){h[C]=E});return h}}function d(){if(Object.create)return function(g,v,b,S){var E=i(arguments,1);return f.apply(this,[Object.create(g)].concat(E))};var c=function(){};return function(g,v,b,S){var E=i(arguments,1);return c.prototype=g,f.apply(this,[new c].concat(E))}}function u(){return String.prototype.trim?function(h){return String.prototype.trim.call(h)}:function(h){return h.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function a(c,h){return function(){return h.apply(c,Array.prototype.slice.call(arguments,0))}}function i(c,h){return Array.prototype.slice.call(c,h||0)}function t(c,h){e(c,function(g,v){return h(g,v),!1})}function s(c,h){var g=l(c)?[]:{};return e(c,function(v,b){return g[b]=h(v,b),!1}),g}function e(c,h){if(l(c)){for(var g=0;g<c.length;g++)if(h(c[g],g))return c[g]}else for(var v in c)if(c.hasOwnProperty(v)&&h(c[v],v))return c[v]}function l(c){return c!=null&&typeof c!="function"&&typeof c.length=="number"}function n(c){return c&&{}.toString.call(c)==="[object Function]"}function o(c){return c&&{}.toString.call(c)==="[object Object]"}}).call(this,r("yLpj"))},MH26:function(R,L,r){var y=r("bYtY"),f=r("YXkt"),x=r("OELB"),A=r("kj2x"),m=r("c8qY"),p=r("iPDy"),d=r("7hqr"),u=d.getStackedDimension,a=function(o,c,h,g){var v=o.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var S,E;if(g.yAxis!=null||g.xAxis!=null)S=c.getAxis(g.yAxis!=null?"y":"x"),E=y.retrieve(g.yAxis,g.xAxis);else{var C=A.getAxisInfo(g,v,c,o);S=C.valueAxis;var _=u(v,C.valueDataDim);E=A.numCalculate(v,_,b)}var T=S.dim==="x"?0:1,w=1-T,O=y.clone(g),I={};O.type=null,O.coord=[],I.coord=[],O.coord[w]=-Infinity,I.coord[w]=Infinity;var k=h.get("precision");k>=0&&typeof E=="number"&&(E=+E.toFixed(Math.min(k,20))),O.coord[T]=I.coord[T]=E,g=[O,I,{type:b,valueIndex:g.valueIndex,value:E}]}return g=[A.dataTransform(o,g[0]),A.dataTransform(o,g[1]),y.extend({},g[2])],g[2].type=g[2].type||"",y.merge(g[2],g[0]),y.merge(g[2],g[1]),g};function i(o){return!isNaN(o)&&!isFinite(o)}function t(o,c,h,g){var v=1-o,b=g.dimensions[o];return i(c[v])&&i(h[v])&&c[o]===h[o]&&g.getAxis(b).containData(c[o])}function s(o,c){if(o.type==="cartesian2d"){var h=c[0].coord,g=c[1].coord;if(h&&g&&(t(1,h,g,o)||t(0,h,g,o)))return!0}return A.dataFilter(o,c[0])&&A.dataFilter(o,c[1])}function e(o,c,h,g,v){var b=g.coordinateSystem,S=o.getItemModel(c),E,C=x.parsePercent(S.get("x"),v.getWidth()),_=x.parsePercent(S.get("y"),v.getHeight());if(!isNaN(C)&&!isNaN(_))E=[C,_];else{if(g.getMarkerPosition)E=g.getMarkerPosition(o.getValues(o.dimensions,c));else{var T=b.dimensions,w=o.get(T[0],c),O=o.get(T[1],c);E=b.dataToPoint([w,O])}if(b.type==="cartesian2d"){var I=b.getAxis("x"),k=b.getAxis("y"),T=b.dimensions;i(o.get(T[0],c))?E[0]=I.toGlobalCoord(I.getExtent()[h?0:1]):i(o.get(T[1],c))&&(E[1]=k.toGlobalCoord(k.getExtent()[h?0:1]))}isNaN(C)||(E[0]=C),isNaN(_)||(E[1]=_)}o.setItemLayout(c,E)}var l=p.extend({type:"markLine",updateTransform:function(o,c,h){c.eachSeries(function(g){var v=g.markLineModel;if(v){var b=v.getData(),S=v.__from,E=v.__to;S.each(function(C){e(S,C,!0,g,h),e(E,C,!1,g,h)}),b.each(function(C){b.setItemLayout(C,[S.getItemLayout(C),E.getItemLayout(C)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(o,c,h,g){var v=o.coordinateSystem,b=o.id,S=o.getData(),E=this.markerGroupMap,C=E.get(b)||E.set(b,new m);this.group.add(C.group);var _=n(v,o,c),T=_.from,w=_.to,O=_.line;c.__from=T,c.__to=w,c.setData(O);var I=c.get("symbol"),k=c.get("symbolSize");y.isArray(I)||(I=[I,I]),typeof k=="number"&&(k=[k,k]),_.from.each(function(U){M(T,U,!0),M(w,U,!1)}),O.each(function(U){var P=O.getItemModel(U).get("lineStyle.color");O.setItemVisual(U,{color:P||T.getItemVisual(U,"color")}),O.setItemLayout(U,[T.getItemLayout(U),w.getItemLayout(U)]),O.setItemVisual(U,{fromSymbolSize:T.getItemVisual(U,"symbolSize"),fromSymbol:T.getItemVisual(U,"symbol"),toSymbolSize:w.getItemVisual(U,"symbolSize"),toSymbol:w.getItemVisual(U,"symbol")})}),C.updateData(O),_.line.eachItemGraphicEl(function(U,P){U.traverse(function(X){X.dataModel=c})});function M(U,P,X){var F=U.getItemModel(P);e(U,P,X,o,g),U.setItemVisual(P,{symbolSize:F.get("symbolSize")||k[X?0:1],symbol:F.get("symbol",!0)||I[X?0:1],color:F.get("itemStyle.color")||S.getVisual("color")})}C.__keep=!0,C.group.silent=c.get("silent")||o.get("silent")}});function n(o,c,h){var g;o?g=y.map(o&&o.dimensions,function(_){var T=c.getData().getDimensionInfo(c.getData().mapDimension(_))||{};return y.defaults({name:_},T)}):g=[{name:"value",type:"float"}];var v=new f(g,h),b=new f(g,h),S=new f([],h),E=y.map(h.get("data"),y.curry(a,c,o,h));o&&(E=y.filter(E,y.curry(s,o)));var C=o?A.dimValueGetter:function(_){return _.value};return v.initData(y.map(E,function(_){return _[0]}),null,C),b.initData(y.map(E,function(_){return _[1]}),null,C),S.initData(y.map(E,function(_){return _[2]})),S.hasItemOption=!0,{from:v,to:b,line:S}}R.exports=l},MHoB:function(R,L,r){var y=r("bYtY"),f=r("6uqw"),x=r("OELB"),A=[20,140],m=f.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(u,a){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var u=this.itemSize;this._orient==="horizontal"&&u.reverse(),(u[0]==null||isNaN(u[0]))&&(u[0]=A[0]),(u[1]==null||isNaN(u[1]))&&(u[1]=A[1])},_resetRange:function(){var u=this.getExtent(),a=this.option.range;!a||a.auto?(u.auto=1,this.option.range=u):y.isArray(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],u[0]),a[1]=Math.min(a[1],u[1]))},completeVisualOption:function(){f.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(u){var a=this.option.controller[u].symbolSize;a&&a[0]!==a[1]&&(a[0]=0)},this)},setSelected:function(u){this.option.range=u.slice(),this._resetRange()},getSelected:function(){var u=this.getExtent(),a=x.asc((this.get("range")||[]).slice());return a[0]>u[1]&&(a[0]=u[1]),a[1]>u[1]&&(a[1]=u[1]),a[0]<u[0]&&(a[0]=u[0]),a[1]<u[0]&&(a[1]=u[0]),a},getValueState:function(u){var a=this.option.range,i=this.getExtent();return(a[0]<=i[0]||a[0]<=u)&&(a[1]>=i[1]||u<=a[1])?"inRange":"outOfRange"},findTargetDataIndices:function(u){var a=[];return this.eachTargetSeries(function(i){var t=[],s=i.getData();s.each(this.getDataDimension(s),function(e,l){u[0]<=e&&e<=u[1]&&t.push(l)},this),a.push({seriesId:i.id,dataIndex:t})},this),a},getVisualMeta:function(u){var a=p(this,"outOfRange",this.getExtent()),i=p(this,"inRange",this.option.range.slice()),t=[];function s(g,v){t.push({value:g,color:u(g,v)})}for(var e=0,l=0,n=i.length,o=a.length;l<o&&(!i.length||a[l]<=i[0]);l++)a[l]<i[e]&&s(a[l],"outOfRange");for(var c=1;e<n;e++,c=0)c&&t.length&&s(i[e],"outOfRange"),s(i[e],"inRange");for(var c=1;l<o;l++)(!i.length||i[i.length-1]<a[l])&&(c&&(t.length&&s(t[t.length-1].value,"outOfRange"),c=0),s(a[l],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function p(u,a,i){if(i[0]===i[1])return i.slice();for(var t=200,s=(i[1]-i[0])/t,e=i[0],l=[],n=0;n<=t&&e<i[1];n++)l.push(e),e+=s;return l.push(i[1]),l}var d=m;R.exports=d},MHtr:function(R,L,r){var y=r("bYtY");function f(A,m){var p=this.getAxis(),d=m instanceof Array?m[0]:m,u=(A instanceof Array?A[0]:A)/2;return p.type==="category"?p.getBandWidth():Math.abs(p.dataToCoord(d-u)-p.dataToCoord(d+u))}function x(A){var m=A.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(p){return A.dataToPoint(p)},size:y.bind(f,A)}}}R.exports=x},MJZm:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("q1tI"),p=r("rePB"),d=r("VTBJ"),u=r("KQm4"),a=r("1OyB"),i=r("vuIU"),t=r("Ji7U"),s=r("LK+K"),e=r("4IlW"),l=r("Kwbf"),n=r("TSYQ"),o=r.n(n),c=r("FTAc"),h=r("wPhX"),g=r("c3jg"),v=r("ODXe"),b=r("Ff2n"),S=r("+nKL"),E=r("HTfv"),C=r("lr6o"),_=function(Mt,Gt){var Ve=Mt.className,me=Mt.style,te=Mt.motion,Ze=Mt.motionNodes,Xe=Mt.motionType,ue=Mt.onMotionStart,St=Mt.onMotionEnd,Qt=Mt.active,dt=Mt.treeNodeRequiredProps,Jt=Object(b.a)(Mt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),$t=m.useState(!0),tn=Object(v.a)($t,2),kt=tn[0],tr=tn[1],Bt=m.useContext(c.a),ft=Bt.prefixCls,it=m.useRef(!1),Or=function(){it.current||St(),it.current=!0};return Object(m.useEffect)(function(){Ze&&Xe==="hide"&&kt&&tr(!1)},[Ze]),Object(m.useEffect)(function(){return Ze&&ue(),function(){Ze&&Or()}},[]),Ze?m.createElement(E.default,Object.assign({ref:Gt,visible:kt},te,{motionAppear:Xe==="show",onAppearEnd:Or,onLeaveEnd:Or}),function(an,En){var Bn=an.className,vi=an.style;return m.createElement("div",{ref:En,className:o()("".concat(ft,"-treenode-motion"),Bn),style:vi},Ze.map(function(Ln){var Mn=Ln.data,Xt=Mn.key,wt=Object(b.a)(Mn,["key"]),De=Ln.isStart,Re=Ln.isEnd;delete wt.children;var Me=Object(g.f)(Xt,dt);return m.createElement(C.a,Object.assign({},wt,Me,{active:Qt,data:Ln.data,key:Xt,isStart:De,isEnd:Re}))}))}):m.createElement(C.a,Object.assign({domRef:Gt,className:Ve,style:me},Jt,{active:Qt}))};_.displayName="MotionTreeNode";var T=m.forwardRef(_),w=T;function O(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Gt=Vt.length,Ve=Mt.length;if(Math.abs(Gt-Ve)!==1)return{add:!1,key:null};function me(te,Ze){var Xe=new Map;te.forEach(function(St){Xe.set(St,!0)});var ue=Ze.filter(function(St){return!Xe.has(St)});return ue.length===1?ue[0]:null}return Gt<Ve?{add:!0,key:me(Vt,Mt)}:{add:!1,key:me(Mt,Vt)}}function I(Vt,Mt,Gt){var Ve=Vt.findIndex(function(Xe){var ue=Xe.data;return ue.key===Gt}),me=Vt[Ve+1],te=Mt.findIndex(function(Xe){var ue=Xe.data;return ue.key===Gt});if(me){var Ze=Mt.findIndex(function(Xe){var ue=Xe.data;return ue.key===me.data.key});return Mt.slice(te+1,Ze)}return Mt.slice(te+1)}var k={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},M=function(){},U="RC_TREE_MOTION_".concat(Math.random()),P={key:U},X={key:U,level:0,index:0,pos:"0",node:P},F={parent:null,children:[],pos:X.pos,data:P,isStart:[],isEnd:[]};function j(Vt,Mt,Gt,Ve){return Mt===!1||!Gt?Vt:Vt.slice(0,Math.ceil(Gt/Ve)+1)}function K(Vt){var Mt=Vt.data.key,Gt=Vt.pos;return Object(g.e)(Mt,Gt)}function z(Vt){for(var Mt=String(Vt.data.key),Gt=Vt;Gt.parent;)Gt=Gt.parent,Mt="".concat(Gt.data.key," > ").concat(Mt);return Mt}var V=function(Mt,Gt){var Ve=Mt.prefixCls,me=Mt.data,te=Mt.selectable,Ze=Mt.checkable,Xe=Mt.expandedKeys,ue=Mt.selectedKeys,St=Mt.checkedKeys,Qt=Mt.loadedKeys,dt=Mt.loadingKeys,Jt=Mt.halfCheckedKeys,$t=Mt.keyEntities,tn=Mt.disabled,kt=Mt.dragging,tr=Mt.dragOverNodeKey,Bt=Mt.dropPosition,ft=Mt.motion,it=Mt.height,Or=Mt.itemHeight,an=Mt.virtual,En=Mt.focusable,Bn=Mt.activeItem,vi=Mt.focused,Ln=Mt.tabIndex,Mn=Mt.onKeyDown,Xt=Mt.onFocus,wt=Mt.onBlur,De=Mt.onActiveChange,Re=Mt.onListChangeStart,Me=Mt.onListChangeEnd,nt=Object(b.a)(Mt,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),yt=m.useRef(null);m.useImperativeHandle(Gt,function(){return{scrollTo:function(Qi){yt.current.scrollTo(Qi)}}});var sr=m.useState(Xe),Nr=Object(v.a)(sr,2),mn=Nr[0],Yn=Nr[1],Jn=m.useState(me),ur=Object(v.a)(Jn,2),Tt=ur[0],Ct=ur[1],Ar=m.useState(me),er=Object(v.a)(Ar,2),Ft=er[0],ir=er[1],Pt=m.useState([]),rr=Object(v.a)(Pt,2),Yr=rr[0],Pr=rr[1],Mr=m.useState(null),fn=Object(v.a)(Mr,2),wn=fn[0],ai=fn[1];function ri(){Ct(me),ir(me),Pr([]),ai(null),Me()}m.useEffect(function(){Yn(Xe);var Mi=O(mn,Xe);if(Mi.key!==null)if(Mi.add){var Qi=Tt.findIndex(function(qe){var lt=qe.data.key;return lt===Mi.key}),ot=j(I(Tt,me,Mi.key),an,it,Or),Ne=Tt.slice();Ne.splice(Qi+1,0,F),ir(Ne),Pr(ot),ai("show")}else{var He=me.findIndex(function(qe){var lt=qe.data.key;return lt===Mi.key}),Ye=j(I(me,Tt,Mi.key),an,it,Or),at=me.slice();at.splice(He+1,0,F),ir(at),Pr(Ye),ai("hide")}else Tt!==me&&(Ct(me),ir(me))},[Xe,me]),m.useEffect(function(){kt||ri()},[kt]);var gi=ft?Ft:me,Ii={expandedKeys:Xe,selectedKeys:ue,loadedKeys:Qt,loadingKeys:dt,checkedKeys:St,halfCheckedKeys:Jt,dragOverNodeKey:tr,dropPosition:Bt,keyEntities:$t};return m.createElement(m.Fragment,null,vi&&Bn&&m.createElement("span",{style:k,"aria-live":"assertive"},z(Bn)),m.createElement("div",{role:"tree"},m.createElement("input",{style:k,disabled:En===!1||tn,tabIndex:En!==!1?Ln:null,onKeyDown:Mn,onFocus:Xt,onBlur:wt,value:"",onChange:M})),m.createElement(S.a,Object.assign({},nt,{data:gi,itemKey:K,height:it,fullHeight:!1,virtual:an,itemHeight:Or,prefixCls:"".concat(Ve,"-list"),ref:yt}),function(Mi){var Qi=Mi.pos,ot=Mi.data,Ne=ot.key,He=Object(b.a)(ot,["key"]),Ye=Mi.isStart,at=Mi.isEnd,qe=Object(g.e)(Ne,Qi);delete He.children;var lt=Object(g.f)(qe,Ii);return m.createElement(w,Object.assign({},He,lt,{active:Bn&&Ne===Bn.data.key,pos:Qi,data:Mi.data,isStart:Ye,isEnd:at,motion:ft,motionNodes:Ne===U?Yr:null,motionType:wn,onMotionStart:Re,onMotionEnd:ri,treeNodeRequiredProps:Ii,onMouseMove:function(){De(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,ee=r("qOx5"),se=function(Vt){Object(t.a)(Gt,Vt);var Mt=Object(s.a)(Gt);function Gt(){var Ve;return Object(a.a)(this,Gt),Ve=Mt.apply(this,arguments),Ve.destroyed=!1,Ve.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Ve.listRef=m.createRef(),Ve.onNodeDragStart=function(me,te){var Ze=Ve.state,Xe=Ze.expandedKeys,ue=Ze.keyEntities,St=Ve.props.onDragStart,Qt=te.props.eventKey;Ve.dragNode=te;var dt=Object(h.b)(Xe,Qt);Ve.setState({dragging:!0,dragNodesKeys:Object(h.g)(Qt,ue)}),Ve.setExpandedKeys(dt),St&&St({event:me,node:Object(g.b)(te.props)})},Ve.onNodeDragEnter=function(me,te){var Ze=Ve.state,Xe=Ze.expandedKeys,ue=Ze.keyEntities,St=Ze.dragNodesKeys,Qt=Ve.props.onDragEnter,dt=te.props,Jt=dt.pos,$t=dt.eventKey;if(!Ve.dragNode||St.indexOf($t)!==-1)return;var tn=Object(h.c)(me,te);if(Ve.dragNode.props.eventKey===$t&&tn===0){Ve.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ve.setState({dragOverNodeKey:$t,dropPosition:tn}),Ve.delayedDragEnterLogic||(Ve.delayedDragEnterLogic={}),Object.keys(Ve.delayedDragEnterLogic).forEach(function(kt){clearTimeout(Ve.delayedDragEnterLogic[kt])}),Ve.delayedDragEnterLogic[Jt]=window.setTimeout(function(){if(!Ve.state.dragging)return;var kt=Object(u.a)(Xe),tr=ue[$t];tr&&(tr.children||[]).length&&(kt=Object(h.a)(Xe,$t)),"expandedKeys"in Ve.props||Ve.setExpandedKeys(kt),Qt&&Qt({event:me,node:Object(g.b)(te.props),expandedKeys:kt})},400)},0)},Ve.onNodeDragOver=function(me,te){var Ze=Ve.state.dragNodesKeys,Xe=Ve.props.onDragOver,ue=te.props.eventKey;if(Ze.indexOf(ue)!==-1)return;if(Ve.dragNode&&ue===Ve.state.dragOverNodeKey){var St=Object(h.c)(me,te);if(St===Ve.state.dropPosition)return;Ve.setState({dropPosition:St})}Xe&&Xe({event:me,node:Object(g.b)(te.props)})},Ve.onNodeDragLeave=function(me,te){var Ze=Ve.props.onDragLeave;Ve.setState({dragOverNodeKey:""}),Ze&&Ze({event:me,node:Object(g.b)(te.props)})},Ve.onNodeDragEnd=function(me,te){var Ze=Ve.props.onDragEnd;Ve.setState({dragOverNodeKey:""}),Ve.cleanDragState(),Ze&&Ze({event:me,node:Object(g.b)(te.props)}),Ve.dragNode=null},Ve.onNodeDrop=function(me,te){var Ze=Ve.state,Xe=Ze.dragNodesKeys,ue=Xe===void 0?[]:Xe,St=Ze.dropPosition,Qt=Ve.props.onDrop,dt=te.props,Jt=dt.eventKey,$t=dt.pos;if(Ve.setState({dragOverNodeKey:""}),Ve.cleanDragState(),ue.indexOf(Jt)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var tn=Object(h.k)($t),kt={event:me,node:Object(g.b)(te.props),dragNode:Ve.dragNode?Object(g.b)(Ve.dragNode.props):null,dragNodesKeys:ue.slice(),dropPosition:St+Number(tn[tn.length-1]),dropToGap:!1};St!==0&&(kt.dropToGap=!0),Qt&&Qt(kt),Ve.dragNode=null},Ve.cleanDragState=function(){var me=Ve.state.dragging;me&&Ve.setState({dragging:!1})},Ve.onNodeClick=function(me,te){var Ze=Ve.props.onClick;Ze&&Ze(me,te)},Ve.onNodeDoubleClick=function(me,te){var Ze=Ve.props.onDoubleClick;Ze&&Ze(me,te)},Ve.onNodeSelect=function(me,te){var Ze=Ve.state.selectedKeys,Xe=Ve.state.keyEntities,ue=Ve.props,St=ue.onSelect,Qt=ue.multiple,dt=te.selected,Jt=te.key,$t=!dt;$t?Qt?Ze=Object(h.a)(Ze,Jt):Ze=[Jt]:Ze=Object(h.b)(Ze,Jt);var tn=Ze.map(function(kt){var tr=Xe[kt];return tr?tr.node:null}).filter(function(kt){return kt});Ve.setUncontrolledState({selectedKeys:Ze}),St&&St(Ze,{event:"select",selected:$t,node:te,selectedNodes:tn,nativeEvent:me.nativeEvent})},Ve.onNodeCheck=function(me,te,Ze){var Xe=Ve.state,ue=Xe.keyEntities,St=Xe.checkedKeys,Qt=Xe.halfCheckedKeys,dt=Ve.props,Jt=dt.checkStrictly,$t=dt.onCheck,tn=te.key,kt,tr={event:"check",node:te,checked:Ze,nativeEvent:me.nativeEvent};if(Jt){var Bt=Ze?Object(h.a)(St,tn):Object(h.b)(St,tn),ft=Object(h.b)(Qt,tn);kt={checked:Bt,halfChecked:ft},tr.checkedNodes=Bt.map(function(vi){return ue[vi]}).filter(function(vi){return vi}).map(function(vi){return vi.node}),Ve.setUncontrolledState({checkedKeys:Bt})}else{var it=Object(ee.a)([].concat(Object(u.a)(St),[tn]),!0,ue),Or=it.checkedKeys,an=it.halfCheckedKeys;if(!Ze){var En=new Set(Or);En.delete(tn);var Bn=Object(ee.a)(Array.from(En),{checked:!1,halfCheckedKeys:an},ue);Or=Bn.checkedKeys,an=Bn.halfCheckedKeys}kt=Or,tr.checkedNodes=[],tr.checkedNodesPositions=[],tr.halfCheckedKeys=an,Or.forEach(function(vi){var Ln=ue[vi];if(!Ln)return;var Mn=Ln.node,Xt=Ln.pos;tr.checkedNodes.push(Mn),tr.checkedNodesPositions.push({node:Mn,pos:Xt})}),Ve.setUncontrolledState({checkedKeys:Or},!1,{halfCheckedKeys:an})}$t&&$t(kt,tr)},Ve.onNodeLoad=function(me){return new Promise(function(te){Ve.setState(function(Ze){var Xe=Ze.loadedKeys,ue=Xe===void 0?[]:Xe,St=Ze.loadingKeys,Qt=St===void 0?[]:St,dt=Ve.props,Jt=dt.loadData,$t=dt.onLoad,tn=me.key;if(!Jt||ue.indexOf(tn)!==-1||Qt.indexOf(tn)!==-1)return{};var kt=Jt(me);return kt.then(function(){var tr=Ve.state,Bt=tr.loadedKeys,ft=tr.loadingKeys,it=Object(h.a)(Bt,tn),Or=Object(h.b)(ft,tn);$t&&$t(it,{event:"load",node:me}),Ve.setUncontrolledState({loadedKeys:it}),Ve.setState({loadingKeys:Or}),te()}),{loadingKeys:Object(h.a)(Qt,tn)}})})},Ve.onNodeMouseEnter=function(me,te){var Ze=Ve.props.onMouseEnter;Ze&&Ze({event:me,node:te})},Ve.onNodeMouseLeave=function(me,te){var Ze=Ve.props.onMouseLeave;Ze&&Ze({event:me,node:te})},Ve.onNodeContextMenu=function(me,te){var Ze=Ve.props.onRightClick;Ze&&(me.preventDefault(),Ze({event:me,node:te}))},Ve.onFocus=function(){var me=Ve.props.onFocus;Ve.setState({focused:!0}),me&&me.apply(void 0,arguments)},Ve.onBlur=function(){var me=Ve.props.onBlur;Ve.setState({focused:!1}),Ve.onActiveChange(null),me&&me.apply(void 0,arguments)},Ve.getTreeNodeRequiredProps=function(){var me=Ve.state,te=me.expandedKeys,Ze=me.selectedKeys,Xe=me.loadedKeys,ue=me.loadingKeys,St=me.checkedKeys,Qt=me.halfCheckedKeys,dt=me.dragOverNodeKey,Jt=me.dropPosition,$t=me.keyEntities;return{expandedKeys:te||[],selectedKeys:Ze||[],loadedKeys:Xe||[],loadingKeys:ue||[],checkedKeys:St||[],halfCheckedKeys:Qt||[],dragOverNodeKey:dt,dropPosition:Jt,keyEntities:$t}},Ve.setExpandedKeys=function(me){var te=Ve.state.treeData,Ze=Object(g.d)(te,me);Ve.setUncontrolledState({expandedKeys:me,flattenNodes:Ze},!0)},Ve.onNodeExpand=function(me,te){var Ze=Ve.state.expandedKeys,Xe=Ve.state.listChanging,ue=Ve.props,St=ue.onExpand,Qt=ue.loadData,dt=te.key,Jt=te.expanded;if(Xe)return;var $t=Ze.indexOf(dt),tn=!Jt;if(Object(l.a)(Jt&&$t!==-1||!Jt&&$t===-1,"Expand state not sync with index check"),tn?Ze=Object(h.a)(Ze,dt):Ze=Object(h.b)(Ze,dt),Ve.setExpandedKeys(Ze),St&&St(Ze,{node:te,expanded:tn,nativeEvent:me.nativeEvent}),tn&&Qt){var kt=Ve.onNodeLoad(te);kt&&kt.then(function(){var tr=Object(g.d)(Ve.state.treeData,Ze);Ve.setUncontrolledState({flattenNodes:tr})})}},Ve.onListChangeStart=function(){Ve.setUncontrolledState({listChanging:!0})},Ve.onListChangeEnd=function(){setTimeout(function(){Ve.setUncontrolledState({listChanging:!1})})},Ve.onActiveChange=function(me){var te=Ve.state.activeKey,Ze=Ve.props.onActiveChange;if(te===me)return;Ve.setState({activeKey:me}),me!==null&&Ve.scrollTo({key:me}),Ze&&Ze(me)},Ve.getActiveItem=function(){var me=Ve.state,te=me.activeKey,Ze=me.flattenNodes;return te===null?null:Ze.find(function(Xe){var ue=Xe.data.key;return ue===te})||null},Ve.offsetActiveKey=function(me){var te=Ve.state,Ze=te.flattenNodes,Xe=te.activeKey,ue=Ze.findIndex(function(dt){var Jt=dt.data.key;return Jt===Xe});ue===-1&&me<0&&(ue=Ze.length),ue=(ue+me+Ze.length)%Ze.length;var St=Ze[ue];if(St){var Qt=St.data.key;Ve.onActiveChange(Qt)}else Ve.onActiveChange(null)},Ve.onKeyDown=function(me){var te=Ve.state,Ze=te.activeKey,Xe=te.expandedKeys,ue=te.checkedKeys,St=Ve.props,Qt=St.onKeyDown,dt=St.checkable,Jt=St.selectable;switch(me.which){case e.a.UP:{Ve.offsetActiveKey(-1),me.preventDefault();break}case e.a.DOWN:{Ve.offsetActiveKey(1),me.preventDefault();break}}var $t=Ve.getActiveItem();if($t&&$t.data){var tn=Ve.getTreeNodeRequiredProps(),kt=$t.data.isLeaf===!1||!!($t.data.children||[]).length,tr=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(Ze,tn)),{},{data:$t.data,active:!0}));switch(me.which){case e.a.LEFT:{kt&&Xe.includes(Ze)?Ve.onNodeExpand({},tr):$t.parent&&Ve.onActiveChange($t.parent.data.key),me.preventDefault();break}case e.a.RIGHT:{kt&&!Xe.includes(Ze)?Ve.onNodeExpand({},tr):$t.children&&$t.children.length&&Ve.onActiveChange($t.children[0].data.key),me.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{dt&&!tr.disabled&&tr.checkable!==!1&&!tr.disableCheckbox?Ve.onNodeCheck({},tr,!ue.includes(Ze)):!dt&&Jt&&!tr.disabled&&tr.selectable!==!1&&Ve.onNodeSelect({},tr);break}}}Qt&&Qt(me)},Ve.setUncontrolledState=function(me){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ve.destroyed)return;var Xe=!1,ue=!0,St={};Object.keys(me).forEach(function(Qt){if(Qt in Ve.props){ue=!1;return}Xe=!0,St[Qt]=me[Qt]}),Xe&&(!te||ue)&&Ve.setState(Object(d.a)(Object(d.a)({},St),Ze))},Ve.scrollTo=function(me){Ve.listRef.current.scrollTo(me)},Ve}return Object(i.a)(Gt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var me,te=this.state,Ze=te.focused,Xe=te.flattenNodes,ue=te.keyEntities,St=te.dragging,Qt=te.activeKey,dt=this.props,Jt=dt.prefixCls,$t=dt.className,tn=dt.style,kt=dt.showLine,tr=dt.focusable,Bt=dt.tabIndex,ft=Bt===void 0?0:Bt,it=dt.selectable,Or=dt.showIcon,an=dt.icon,En=dt.switcherIcon,Bn=dt.draggable,vi=dt.checkable,Ln=dt.checkStrictly,Mn=dt.disabled,Xt=dt.motion,wt=dt.loadData,De=dt.filterTreeNode,Re=dt.height,Me=dt.itemHeight,nt=dt.virtual,yt=dt.titleRender,sr=dt.onContextMenu,Nr=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:Jt,selectable:it,showIcon:Or,icon:an,switcherIcon:En,draggable:Bn,checkable:vi,checkStrictly:Ln,disabled:Mn,keyEntities:ue,loadData:wt,filterTreeNode:De,titleRender:yt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:o()(Jt,$t,(me={},Object(p.a)(me,"".concat(Jt,"-show-line"),kt),Object(p.a)(me,"".concat(Jt,"-focused"),Ze),Object(p.a)(me,"".concat(Jt,"-active-focused"),Qt!==null),me))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:Jt,style:tn,data:Xe,disabled:Mn,selectable:it,checkable:!!vi,motion:Xt,dragging:St,height:Re,itemHeight:Me,virtual:nt,focusable:tr,focused:Ze,tabIndex:ft,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:sr},this.getTreeNodeRequiredProps(),Nr))))}}],[{key:"getDerivedStateFromProps",value:function(me,te){var Ze=te.prevProps,Xe={prevProps:me};function ue(an){return!Ze&&an in me||Ze&&Ze[an]!==me[an]}var St;if(ue("treeData")?St=me.treeData:ue("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),St=Object(g.c)(me.children)),St){Xe.treeData=St;var Qt=Object(g.a)(St);Xe.keyEntities=Object(d.a)(Object(p.a)({},U,X),Qt.keyEntities)}var dt=Xe.keyEntities||te.keyEntities;if(ue("expandedKeys")||Ze&&ue("autoExpandParent"))Xe.expandedKeys=me.autoExpandParent||!Ze&&me.defaultExpandParent?Object(h.e)(me.expandedKeys,dt):me.expandedKeys;else if(!Ze&&me.defaultExpandAll){var Jt=Object(d.a)({},dt);delete Jt[U],Xe.expandedKeys=Object.keys(Jt).map(function(an){return Jt[an].key})}else!Ze&&me.defaultExpandedKeys&&(Xe.expandedKeys=me.autoExpandParent||me.defaultExpandParent?Object(h.e)(me.defaultExpandedKeys,dt):me.defaultExpandedKeys);if(Xe.expandedKeys||delete Xe.expandedKeys,St||Xe.expandedKeys){var $t=Object(g.d)(St||te.treeData,Xe.expandedKeys||te.expandedKeys);Xe.flattenNodes=$t}if(me.selectable&&(ue("selectedKeys")?Xe.selectedKeys=Object(h.d)(me.selectedKeys,me):!Ze&&me.defaultSelectedKeys&&(Xe.selectedKeys=Object(h.d)(me.defaultSelectedKeys,me))),me.checkable){var tn;if(ue("checkedKeys")?tn=Object(h.j)(me.checkedKeys)||{}:!Ze&&me.defaultCheckedKeys?tn=Object(h.j)(me.defaultCheckedKeys)||{}:St&&(tn=Object(h.j)(me.checkedKeys)||{checkedKeys:te.checkedKeys,halfCheckedKeys:te.halfCheckedKeys}),tn){var kt=tn,tr=kt.checkedKeys,Bt=tr===void 0?[]:tr,ft=kt.halfCheckedKeys,it=ft===void 0?[]:ft;if(!me.checkStrictly){var Or=Object(ee.a)(Bt,!0,dt);Bt=Or.checkedKeys,it=Or.halfCheckedKeys}Xe.checkedKeys=Bt,Xe.halfCheckedKeys=it}}return ue("loadedKeys")&&(Xe.loadedKeys=me.loadedKeys),Xe}}]),Gt}(m.Component);se.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},se.TreeNode=C.a;var ye=se,he=ye,ke=r("RIqP"),Pe=r.n(ke),Ue=r("J4zp"),$e=r.n(Ue),Ge=r("sEfC"),ht=r.n(Ge),Fe=r("HT/e"),oe=r.n(Fe),rt=r("ydAt"),fe=r.n(rt),J=r("EWH9"),Y=r.n(J),$=r("H84U"),de;(function(Vt){Vt[Vt.None=0]="None",Vt[Vt.Start=1]="Start",Vt[Vt.End=2]="End"})(de||(de={}));function we(Vt,Mt){function Gt(Ve){var me=Ve.key,te=Ve.children;Mt(me,Ve)!==!1&&we(te||[],Mt)}Vt.forEach(Gt)}function Ce(Vt){var Mt=Vt.treeData,Gt=Vt.expandedKeys,Ve=Vt.startKey,me=Vt.endKey,te=[],Ze=de.None;if(Ve&&Ve===me)return[Ve];if(!Ve||!me)return[];function Xe(ue){return ue===Ve||ue===me}return we(Mt,function(ue){if(Ze===de.End)return!1;if(Xe(ue)){if(te.push(ue),Ze===de.None)Ze=de.Start;else if(Ze===de.Start)return Ze=de.End,!1}else Ze===de.Start&&te.push(ue);return!(Gt.indexOf(ue)===-1)}),te}function Se(Vt,Mt){var Gt=Pe()(Mt),Ve=[];return we(Vt,function(me,te){var Ze=Gt.indexOf(me);return Ze!==-1&&(Ve.push(te),Gt.splice(Ze,1)),!!Gt.length}),Ve}var le=function(Vt,Mt){var Gt={};for(var Ve in Vt)Object.prototype.hasOwnProperty.call(Vt,Ve)&&Mt.indexOf(Ve)<0&&(Gt[Ve]=Vt[Ve]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ve=Object.getOwnPropertySymbols(Vt);me<Ve.length;me++)Mt.indexOf(Ve[me])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Ve[me])&&(Gt[Ve[me]]=Vt[Ve[me]]);return Gt};function pe(Vt){var Mt=Vt.isLeaf,Gt=Vt.expanded;return Mt?m.createElement(oe.a,null):Gt?m.createElement(fe.a,null):m.createElement(Y.a,null)}function _e(Vt){var Mt=Vt.treeData,Gt=Vt.children;return Mt||Object(g.c)(Gt)}var tt=function(Mt,Gt){var Ve=Mt.defaultExpandAll,me=Mt.defaultExpandParent,te=Mt.defaultExpandedKeys,Ze=le(Mt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Xe=m.useRef(),ue=m.useRef(),St=m.createRef();m.useImperativeHandle(Gt,function(){return St.current});var Qt=function(){var sr=Object(g.a)(_e(Ze)),Nr=sr.keyEntities,mn;return Ve?mn=Object.keys(Nr):me?mn=Object(h.e)(Ze.expandedKeys||te,Nr):mn=Ze.expandedKeys||te,mn},dt=m.useState(Ze.selectedKeys||Ze.defaultSelectedKeys||[]),Jt=$e()(dt,2),$t=Jt[0],tn=Jt[1],kt=m.useState(Qt()),tr=$e()(kt,2),Bt=tr[0],ft=tr[1];m.useEffect(function(){"selectedKeys"in Ze&&tn(Ze.selectedKeys)},[Ze.selectedKeys]),m.useEffect(function(){"expandedKeys"in Ze&&ft(Ze.expandedKeys)},[Ze.expandedKeys]);var it=function(sr,Nr){var mn=Nr.isLeaf;if(mn||sr.shiftKey||sr.metaKey||sr.ctrlKey)return;St.current.onNodeExpand(sr,Nr)},Or=ht()(it,200,{leading:!0}),an=function(sr,Nr){return"expandedKeys"in Ze||ft(sr),Ze.onExpand?Ze.onExpand(sr,Nr):void 0},En=function(sr,Nr){var mn=Ze.expandAction;mn==="click"&&Or(sr,Nr),Ze.onClick&&Ze.onClick(sr,Nr)},Bn=function(sr,Nr){var mn=Ze.expandAction;mn==="doubleClick"&&Or(sr,Nr),Ze.onDoubleClick&&Ze.onDoubleClick(sr,Nr)},vi=function(sr,Nr){var mn=Ze.multiple,Yn=Nr.node,Jn=Nr.nativeEvent,ur=Yn.key,Tt=ur===void 0?"":ur,Ct=_e(Ze),Ar=A()(A()({},Nr),{selected:!0}),er=Jn.ctrlKey||Jn.metaKey,Ft=Jn.shiftKey,ir;mn&&er?(ir=sr,Xe.current=Tt,ue.current=ir,Ar.selectedNodes=Se(Ct,ir)):mn&&Ft?(ir=Array.from(new Set([].concat(Pe()(ue.current||[]),Pe()(Ce({treeData:Ct,expandedKeys:Bt,startKey:Tt,endKey:Xe.current}))))),Ar.selectedNodes=Se(Ct,ir)):(ir=[Tt],Xe.current=Tt,ue.current=ir,Ar.selectedNodes=Se(Ct,ir)),Ze.onSelect&&Ze.onSelect(ir,Ar),"selectedKeys"in Ze||tn(ir)},Ln=m.useContext($.b),Mn=Ln.getPrefixCls,Xt=Ln.direction,wt=Ze.prefixCls,De=Ze.className,Re=le(Ze,["prefixCls","className"]),Me=Mn("tree",wt),nt=o()("".concat(Me,"-directory"),De,f()({},"".concat(Me,"-directory-rtl"),Xt==="rtl"));return m.createElement(Ht,A()({icon:pe,ref:St,blockNode:!0},Re,{prefixCls:Me,className:nt,expandedKeys:Bt,selectedKeys:$t,onSelect:vi,onClick:En,onDoubleClick:Bn,onExpand:an}))},gt=m.forwardRef(tt);gt.displayName="DirectoryTree",gt.defaultProps={showIcon:!0,expandAction:"click"};var ct=gt,je=r("EXcs"),Zt=r("2jpz"),ut=m.forwardRef(function(Vt,Mt){var Gt,Ve=m.useContext($.b),me=Ve.getPrefixCls,te=Ve.direction,Ze=Ve.virtual,Xe=Vt.prefixCls,ue=Vt.className,St=Vt.showIcon,Qt=Vt.showLine,dt=Vt.switcherIcon,Jt=Vt.blockNode,$t=Vt.children,tn=Vt.checkable,kt=A()(A()({},Vt),{showLine:Boolean(Qt)}),tr=me("tree",Xe);return m.createElement(he,A()({itemHeight:20,ref:Mt,virtual:Ze},kt,{prefixCls:tr,className:o()(ue,(Gt={},f()(Gt,"".concat(tr,"-icon-hide"),!St),f()(Gt,"".concat(tr,"-block-node"),Jt),f()(Gt,"".concat(tr,"-rtl"),te==="rtl"),Gt)),checkable:tn&&m.createElement("span",{className:"".concat(tr,"-checkbox-inner")}),switcherIcon:function(ft){return Object(Zt.a)(tr,dt,Qt,ft)}}),$t)});ut.TreeNode=C.a,ut.DirectoryTree=ct,ut.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},je.a),{motionAppear:!1}),blockNode:!1};var Ht=ut,dr=L.a=Ht},MKOG:function(R,L,r){var y=r("bYtY"),f=r("YH21"),x=f.Dispatcher,A=r("mLcG"),m=r("Bq2U"),p=function(a){a=a||{},this.stage=a.stage||{},this.onframe=a.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,x.call(this)};p.prototype={constructor:p,addClip:function(a){this._clips.push(a)},addAnimator:function(a){a.animation=this;for(var i=a.getClips(),t=0;t<i.length;t++)this.addClip(i[t])},removeClip:function(a){var i=y.indexOf(this._clips,a);i>=0&&this._clips.splice(i,1)},removeAnimator:function(a){for(var i=a.getClips(),t=0;t<i.length;t++)this.removeClip(i[t]);a.animation=null},_update:function(){for(var a=new Date().getTime()-this._pausedTime,i=a-this._time,t=this._clips,s=t.length,e=[],l=[],n=0;n<s;n++){var o=t[n],c=o.step(a,i);c&&(e.push(c),l.push(o))}for(var n=0;n<s;)t[n]._needsRemove?(t[n]=t[s-1],t.pop(),s--):n++;s=e.length;for(var n=0;n<s;n++)l[n].fire(e[n]);this._time=a,this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update()},_startLoop:function(){var a=this;this._running=!0;function i(){a._running&&(A(i),!a._paused&&a._update())}A(i)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(a,i){i=i||{};var t=new m(a,i.loop,i.getter,i.setter);return this.addAnimator(t),t}},y.mixin(p,x);var d=p;R.exports=d},MMmD:function(R,L,r){var y=r("lSCD"),f=r("shjB");function x(A){return A!=null&&f(A.length)&&!y(A)}R.exports=x},MRoa:function(R,L,r){var y=r("ProS");r("0Bwj"),r("W2nI"),r("vcCh");var f=r("gawk"),x=r("Dg8C");y.registerLayout(f),y.registerVisual(x)},MT78:function(R,L,r){var y=r("ProS");(function(){for(var x in y){if(y==null||!y.hasOwnProperty(x)||x==="default"||x==="__esModule")return;L[x]=y[x]}})();var f=r("txkQ");(function(){for(var x in f){if(f==null||!f.hasOwnProperty(x)||x==="default"||x==="__esModule")return;L[x]=f[x]}})(),r("A1Ka"),r("75ce"),r("lLGD"),r("wDdD"),r("Fa/5"),r("jett"),r("Z1wy"),r("75ev"),r("2uGb"),r("I+77"),r("B+YJ"),r("pLH3"),r("CBdT"),r("MRoa"),r("+lIL"),r("CF2D"),r("ERHi"),r("p+If"),r("XOKv"),r("qt/9"),r("bBL8"),r("1xaR"),r("4Feb"),r("zRKj"),r("L3Oj"),r("0HBW"),r("LPzL"),r("8waO"),r("k5C7"),r("f1nB"),r("sRwP"),r("AH3D"),r("y4/Y"),r("LzGr"),r("Ynxi"),r("7pVf"),r("2w7y"),r("laiN"),r("fjKi"),r("C0tN"),r("0o9m"),r("Cm0C"),r("f3JH"),r("5NHt"),r("VFCP"),r("dBmv"),r("KamJ"),r("8XDt"),r("juDX")},MVse:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("HQLL"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},MXD1:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("Kvyg"),A=r.n(x)},MZdM:function(R,L,r){"use strict";function y(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(n){return typeof n}:y=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},y(e)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=u(r("Lo0S")),x=p(r("N/zr")),A=r("GdRQ"),m=r("GQ8N");function p(e){return e&&e.__esModule?e:{default:e}}function d(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return d=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(e===null||y(e)!=="object"&&typeof e!="function")return{default:e};var l=d();if(l&&l.has(e))return l.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var h=o?Object.getOwnPropertyDescriptor(e,c):null;h&&(h.get||h.set)?Object.defineProperty(n,c,h):n[c]=e[c]}return n.default=e,l&&l.set(e,n),n}function a(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function i(e,l){for(var n=0;n<l.length;n++){var o=l[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function t(e,l,n){return l&&i(e.prototype,l),n&&i(e,n),e}var s=function(){function e(l){if(a(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,f.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},f.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),f.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return t(e,[{key:"viewportChangePos",value:function(n,o){var c=this._viewportLoc;n=Math.floor(n),o=Math.floor(o),this._clipViewport||(n=-c.w,o=-c.h);var h=c.x+c.w-1,g=c.y+c.h-1;if(n<0&&c.x+n<0&&(n=-c.x),h+n>=this._fbWidth&&(n-=h+n-this._fbWidth+1),c.y+o<0&&(o=-c.y),g+o>=this._fbHeight&&(o-=g+o-this._fbHeight+1),n===0&&o===0)return;f.Debug("viewportChange deltaX: "+n+", deltaY: "+o),c.x+=n,c.y+=o,this._damage(c.x,c.y,c.w,c.h),this.flip()}},{key:"viewportChangeSize",value:function(n,o){(!this._clipViewport||typeof n=="undefined"||typeof o=="undefined")&&(f.Debug("Setting viewport to full display region"),n=this._fbWidth,o=this._fbHeight),n=Math.floor(n),o=Math.floor(o),n>this._fbWidth&&(n=this._fbWidth),o>this._fbHeight&&(o=this._fbHeight);var c=this._viewportLoc;if(c.w!==n||c.h!==o){c.w=n,c.h=o;var h=this._target;h.width=n,h.height=o,this.viewportChangePos(0,0),this._damage(c.x,c.y,c.w,c.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(n){return this._scale===0?0:(0,m.toSigned32bit)(n/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(n){return this._scale===0?0:(0,m.toSigned32bit)(n/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(n,o){this._prevDrawStyle="",this._fbWidth=n,this._fbHeight=o;var c=this._backbuffer;if(c.width!==n||c.height!==o){var h=null;c.width>0&&c.height>0&&(h=this._drawCtx.getImageData(0,0,c.width,c.height)),c.width!==n&&(c.width=n),c.height!==o&&(c.height=o),h&&this._drawCtx.putImageData(h,0,0)}var g=this._viewportLoc;this.viewportChangeSize(g.w,g.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(n,o,c,h){n<this._damageBounds.left&&(this._damageBounds.left=n),o<this._damageBounds.top&&(this._damageBounds.top=o),n+c>this._damageBounds.right&&(this._damageBounds.right=n+c),o+h>this._damageBounds.bottom&&(this._damageBounds.bottom=o+h)}},{key:"flip",value:function(n){if(this._renderQ.length!==0&&!n)this._renderQPush({type:"flip"});else{var o=this._damageBounds.left,c=this._damageBounds.top,h=this._damageBounds.right-o,g=this._damageBounds.bottom-c,v=o-this._viewportLoc.x,b=c-this._viewportLoc.y;v<0&&(h+=v,o-=v,v=0),b<0&&(g+=b,c-=b,b=0),v+h>this._viewportLoc.w&&(h=this._viewportLoc.w-v),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),h>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,o,c,h,g,v,b,h,g),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(n,o,c,h,g,v){this._renderQ.length!==0&&!v?this._renderQPush({type:"fill",x:n,y:o,width:c,height:h,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(n,o,c,h),this._damage(n,o,c,h))}},{key:"copyImage",value:function(n,o,c,h,g,v,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:n,oldY:o,x:c,y:h,width:g,height:v}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,n,o,g,v,c,h,g,v),this._damage(c,h,g,v))}},{key:"imageRect",value:function(n,o,c,h,g,v){if(c===0||h===0)return;var b=new Image;b.src="data: "+g+";base64,"+x.default.encode(v),this._renderQPush({type:"img",img:b,x:n,y:o,width:c,height:h})}},{key:"startTile",value:function(n,o,c,h,g){this._tileX=n,this._tileY=o,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var v=g[2],b=g[1],S=g[0],E=this._tile.data,C=0;C<c*h*4;C+=4)E[C]=v,E[C+1]=b,E[C+2]=S,E[C+3]=255}},{key:"subTile",value:function(n,o,c,h,g){for(var v=g[2],b=g[1],S=g[0],E=n+c,C=o+h,_=this._tile.data,T=this._tile.width,w=o;w<C;w++)for(var O=n;O<E;O++){var I=(O+w*T)*4;_[I]=v,_[I+1]=b,_[I+2]=S,_[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(n,o,c,h,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:n,y:o,width:c,height:h})}else this._bgrxImageData(n,o,c,h,g,v)}},{key:"blitRgbImage",value:function(n,o,c,h,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*3);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgb",data:S,x:n,y:o,width:c,height:h})}else this._rgbImageData(n,o,c,h,g,v)}},{key:"blitRgbxImage",value:function(n,o,c,h,g,v,b){if(this._renderQ.length!==0&&!b){var S=new Uint8Array(c*h*4);S.set(new Uint8Array(g.buffer,0,S.length)),this._renderQPush({type:"blitRgbx",data:S,x:n,y:o,width:c,height:h})}else this._rgbxImageData(n,o,c,h,g,v)}},{key:"drawImage",value:function(n,o,c){this._drawCtx.drawImage(n,o,c),this._damage(o,c,n.width,n.height)}},{key:"autoscale",value:function(n,o){var c;if(n===0||o===0)c=0;else{var h=this._viewportLoc,g=n/o,v=h.w/h.h;v>=g?c=n/h.w:c=o/h.h}this._rescale(c)}},{key:"_rescale",value:function(n){this._scale=n;var o=this._viewportLoc,c=n*o.w+"px",h=n*o.h+"px";(this._target.style.width!==c||this._target.style.height!==h)&&(this._target.style.width=c,this._target.style.height=h)}},{key:"_setFillColor",value:function(n){var o="rgb("+n[2]+","+n[1]+","+n[0]+")";o!==this._prevDrawStyle&&(this._drawCtx.fillStyle=o,this._prevDrawStyle=o)}},{key:"_rgbImageData",value:function(n,o,c,h,g,v){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=v;E<c*h*4;E+=4,C+=3)S[E]=g[C],S[E+1]=g[C+1],S[E+2]=g[C+2],S[E+3]=255;this._drawCtx.putImageData(b,n,o),this._damage(n,o,b.width,b.height)}},{key:"_bgrxImageData",value:function(n,o,c,h,g,v){for(var b=this._drawCtx.createImageData(c,h),S=b.data,E=0,C=v;E<c*h*4;E+=4,C+=4)S[E]=g[C+2],S[E+1]=g[C+1],S[E+2]=g[C],S[E+3]=255;this._drawCtx.putImageData(b,n,o),this._damage(n,o,b.width,b.height)}},{key:"_rgbxImageData",value:function(n,o,c,h,g,v){var b;A.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(g.buffer,g.byteOffset,c*h*4),c,h):(b=this._drawCtx.createImageData(c,h),b.data.set(new Uint8ClampedArray(g.buffer,g.byteOffset,c*h*4))),this._drawCtx.putImageData(b,n,o),this._damage(n,o,b.width,b.height)}},{key:"_renderQPush",value:function(n){this._renderQ.push(n),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var n=!0;n&&this._renderQ.length>0;){var o=this._renderQ[0];switch(o.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(o.oldX,o.oldY,o.x,o.y,o.width,o.height,!0);break;case"fill":this.fillRect(o.x,o.y,o.width,o.height,o.color,!0);break;case"blit":this.blitImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgb":this.blitRgbImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(o.x,o.y,o.width,o.height,o.data,0,!0);break;case"img":if(o.img.complete&&o.img.width!==0&&o.img.height!==0){if(o.img.width!==o.width||o.img.height!==o.height){f.Error("Decoded image has incorrect dimensions. Got "+o.img.width+"x"+o.img.height+". Expected "+o.width+"x"+o.height+".");return}this.drawImage(o.img,o.x,o.y)}else o.img._noVNCDisplay=this,o.img.addEventListener("load",this._resumeRenderQ),n=!1;break}n&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(n){this._rescale(n)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(n){this._clipViewport=n;var o=this._viewportLoc;this.viewportChangeSize(o.w,o.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();L.default=s},Mdki:function(R,L,r){var y=r("bYtY"),f=y.each,x="\0__link_datas",A="\0__link_mainData";function m(l){var n=l.mainData,o=l.datas;o||(o={main:n},l.datasAttr={main:"data"}),l.datas=l.mainData=null,t(n,o,l),f(o,function(c){f(n.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(p,l))})}),n.wrapMethod("cloneShallow",y.curry(u,l)),f(n.CHANGABLE_METHODS,function(c){n.wrapMethod(c,y.curry(d,l))}),y.assert(o[n.dataType]===n)}function p(l,n){if(i(this)){var o=y.extend({},this[x]);o[this.dataType]=n,t(n,o,l)}else s(n,this.dataType,this[A],l);return n}function d(l,n){return l.struct&&l.struct.update(this),n}function u(l,n){return f(n[x],function(o,c){o!==n&&s(o.cloneShallow(),c,n,l)}),n}function a(l){var n=this[A];return l==null||n==null?n:n[x][l]}function i(l){return l[A]===l}function t(l,n,o){l[x]={},f(n,function(c,h){s(c,h,l,o)})}function s(l,n,o,c){o[x][n]=l,l[A]=o,l.dataType=n,c.struct&&(l[c.structAttr]=c.struct,c.struct[c.datasAttr[n]]=l),l.getLinkedData=a}var e=m;R.exports=e},Mgri:function(R,L,r){for(var y=r("bYtY"),f=r("8nly"),x=[126,25],A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],m=0;m<A.length;m++)for(var p=0;p<A[m].length;p++)A[m][p][0]/=10.5,A[m][p][1]/=-10.5/.75,A[m][p][0]+=x[0],A[m][p][1]+=x[1];function d(u,a){u==="china"&&a.push(new f("\u5357\u6D77\u8BF8\u5C9B",y.map(A,function(i){return{type:"polygon",exterior:i}}),x))}R.exports=d},MlIO:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(f){var x=y,A=x.lib,m=A.Base,p=A.WordArray,d=x.x64={},u=d.Word=m.extend({init:function(t,s){this.high=t,this.low=s}}),a=d.WordArray=m.extend({init:function(t,s){t=this.words=t||[],s!=f?this.sigBytes=s:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,s=t.length,e=[],l=0;l<s;l++){var n=t[l];e.push(n.high),e.push(n.low)}return p.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),s=t.words=this.words.slice(0),e=s.length,l=0;l<e;l++)s[l]=s[l].clone();return t}})}(),y})},Mmt2:function(R,L,r){"use strict";function y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(e){return typeof e}:y=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(t)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=A(r("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return x=function(){return t},t}function A(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var s=x();if(s&&s.has(t))return s.get(t);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=l?Object.getOwnPropertyDescriptor(t,n):null;o&&(o.get||o.set)?Object.defineProperty(e,n,o):e[n]=t[n]}return e.default=t,s&&s.set(t,e),e}function m(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function p(t,s){for(var e=0;e<s.length;e++){var l=s[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,l.key,l)}}function d(t,s,e){return s&&p(t.prototype,s),e&&p(t,e),t}var u=!1,a=40*1024*1024,i=function(){function t(){m(this,t),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return d(t,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var l=0,n=e-1;n>=0;n--)l+=this._rQ[this._rQi++]<<n*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",n=0;n<e;n+=4096){var o=this.rQshiftBytes(Math.min(4096,e-n));l+=String.fromCharCode.apply(null,o)}return l}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,l){l===void 0&&(l=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,l)),this._rQi+=l}},{key:"rQslice",value:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,l-e)}},{key:"rQwait",value:function(e,l,n){if(this.rQlen<l){if(n){if(this._rQi<n)throw new Error("rQwait cannot backup "+n+" bytes");this._rQi-=n}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var n=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){f.Debug(">> WebSock.onopen"),n._websocket.protocol&&f.Info("Server choose sub-protocol: "+n._websocket.protocol),n._eventHandlers.open(),f.Debug("<< WebSock.onopen")},this._websocket.onclose=function(o){f.Debug(">> WebSock.onclose"),n._eventHandlers.close(o),f.Debug("<< WebSock.onclose")},this._websocket.onerror=function(o){f.Debug(">> WebSock.onerror: "+o),n._eventHandlers.error(o),f.Debug("<< WebSock.onerror: "+o)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(f.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var l=(this._rQlen-this._rQi+e)*8,n=this._rQbufferSize<l;if(n&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>a&&(this._rQbufferSize=a,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+a+" bytes, and the new message could not fit");if(n){var o=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(o,this._rQi,this._rQlen-this._rQi))}else u?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):f.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),t}();L.default=i},MqEG:function(R,L,r){var y=r("bYtY"),f=r("fc+c"),x=r("72pK"),A=r("VXYp"),m=y.bind,p=f.extend({type:"dataZoom.inside",init:function(t,s){this._range},render:function(t,s,e,l){p.superApply(this,"render",arguments),this._range=t.getPercentRange(),y.each(this.getTargetCoordInfo(),function(n,o){var c=y.map(n,function(h){return A.generateCoordId(h.model)});y.each(n,function(h){var g=h.model,v={};y.each(["pan","zoom","scrollMove"],function(b){v[b]=m(d[b],this,h,o)},this),A.register(e,{coordId:A.generateCoordId(g),allCoordIds:c,containsPoint:function(b,S,E){return g.coordinateSystem.containPoint([S,E])},dataZoomId:t.id,dataZoomModel:t,getRange:v})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),p.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,s,e,l){var n=this._range,o=n.slice(),c=t.axisModels[0];if(!c)return;var h=a[s](null,[l.originX,l.originY],c,e,t),g=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(o[1]-o[0])+o[0],v=Math.max(1/l.scale,0);o[0]=(o[0]-g)*v+g,o[1]=(o[1]-g)*v+g;var b=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(x(0,o,[0,100],0,b.minSpan,b.maxSpan),this._range=o,n[0]!==o[0]||n[1]!==o[1])return o},pan:u(function(t,s,e,l,n,o){var c=a[l]([o.oldX,o.oldY],[o.newX,o.newY],s,n,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:u(function(t,s,e,l,n,o){var c=a[l]([0,0],[o.scrollDelta,o.scrollDelta],s,n,e);return c.signal*(t[1]-t[0])*o.scrollDelta})};function u(t){return function(s,e,l,n){var o=this._range,c=o.slice(),h=s.axisModels[0];if(!h)return;var g=t(c,h,s,e,l,n);if(x(g,c,[0,100],"all"),this._range=c,o[0]!==c[0]||o[1]!==c[1])return c}}var a={grid:function(t,s,e,l,n){var o=e.axis,c={},h=n.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(c.pixel=s[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=o.inverse?1:-1):(c.pixel=s[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=o.inverse?-1:1),c},polar:function(t,s,e,l,n){var o=e.axis,c={},h=n.model.coordinateSystem,g=h.getRadiusAxis().getExtent(),v=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],s=h.pointToCoord(s),e.mainType==="radiusAxis"?(c.pixel=s[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=o.inverse?1:-1):(c.pixel=s[1]-t[1],c.pixelLength=v[1]-v[0],c.pixelStart=v[0],c.signal=o.inverse?-1:1),c},singleAxis:function(t,s,e,l,n){var o=e.axis,c=n.model.coordinateSystem.getRect(),h={};return t=t||[0,0],o.orient==="horizontal"?(h.pixel=s[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=o.inverse?1:-1):(h.pixel=s[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=o.inverse?-1:1),h}},i=p;R.exports=i},Mt2t:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("FhB9")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="SwapRightOutlined";var i=A.forwardRef(a);L.default=i},MvSz:function(R,L,r){var y=r("LXxW"),f=r("0ycA"),x=Object.prototype,A=x.propertyIsEnumerable,m=Object.getOwnPropertySymbols,p=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(u){return A.call(d,u)}))}:f;R.exports=p},MwEJ:function(R,L,r){var y=r("bYtY"),f=r("YXkt"),x=r("sdST"),A=r("k9D9"),m=A.SOURCE_FORMAT_ORIGINAL,p=r("L0Ub"),d=p.getDimensionTypeByAxis,u=r("4NO4"),a=u.getDataItemValue,i=r("IDmD"),t=r("i38C"),s=t.getCoordSysInfoBySeries,e=r("7G+c"),l=r("7hqr"),n=l.enableDataStack,o=r("D5nY"),c=o.makeSeriesEncodeForAxisCoordSys;function h(S,E,C){C=C||{},e.isInstance(S)||(S=e.seriesDataToSource(S));var _=E.get("coordinateSystem"),T=i.get(_),w=s(E),O;w&&(O=y.map(w.coordSysDims,function(F){var j={name:F},K=w.axisMap.get(F);if(K){var z=K.get("type");j.type=d(z)}return j})),O||(O=T&&(T.getDimensionsInfo?T.getDimensionsInfo():T.dimensions.slice())||["x","y"]);var I=x(S,{coordDimensions:O,generateCoord:C.generateCoord,encodeDefaulter:C.useEncodeDefaulter?y.curry(c,O,E):null}),k,M;w&&y.each(I,function(F,j){var K=F.coordDim,z=w.categoryAxisMap.get(K);z&&(k==null&&(k=j),F.ordinalMeta=z.getOrdinalMeta()),F.otherDims.itemName!=null&&(M=!0)}),!M&&k!=null&&(I[k].otherDims.itemName=0);var U=n(E,I),P=new f(I,E);P.setCalculationInfo(U);var X=k!=null&&g(S)?function(F,j,K,z){return z===k?K:this.defaultDimValueGetter(F,j,K,z)}:null;return P.hasItemOption=!1,P.initData(S,null,X),P}function g(S){if(S.sourceFormat===m){var E=v(S.data||[]);return E!=null&&!y.isArray(a(E))}}function v(S){for(var E=0;E<S.length&&S[E]==null;)E++;return S[E]}var b=h;R.exports=b},Mylv:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS"),A=r("oVpE"),m=A.createSymbol,p=r("OELB"),d=p.parsePercent,u=p.isNumeric,a=r("56rv"),i=a.setLabel,t=["itemStyle","borderWidth"],s=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new x.Circle,l=y.extendChartView({type:"pictorialBar",render:function(V,Q,G){var ee=this.group,se=V.getData(),ye=this._data,he=V.coordinateSystem,ke=he.getBaseAxis(),Pe=!!ke.isHorizontal(),Ue=he.grid.getRect(),$e={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:he,coordSysExtent:[[Ue.x,Ue.x+Ue.width],[Ue.y,Ue.y+Ue.height]],isHorizontal:Pe,valueDim:s[+Pe],categoryDim:s[1-Pe]};return se.diff(ye).add(function(Ge){if(!se.hasValue(Ge))return;var ht=T(se,Ge),Fe=n(se,Ge,ht,$e),oe=k(se,$e,Fe);se.setItemGraphicEl(Ge,oe),ee.add(oe),j(oe,$e,Fe)}).update(function(Ge,ht){var Fe=ye.getItemGraphicEl(ht);if(!se.hasValue(Ge)){ee.remove(Fe);return}var oe=T(se,Ge),rt=n(se,Ge,oe,$e),fe=P(se,rt);Fe&&fe!==Fe.__pictorialShapeStr&&(ee.remove(Fe),se.setItemGraphicEl(Ge,null),Fe=null),Fe?M(Fe,$e,rt):Fe=k(se,$e,rt,!0),se.setItemGraphicEl(Ge,Fe),Fe.__pictorialSymbolMeta=rt,ee.add(Fe),j(Fe,$e,rt)}).remove(function(Ge){var ht=ye.getItemGraphicEl(Ge);ht&&U(ye,Ge,ht.__pictorialSymbolMeta.animationModel,ht)}).execute(),this._data=se,this.group},dispose:f.noop,remove:function(V,Q){var G=this.group,ee=this._data;V.get("animation")?ee&&ee.eachItemGraphicEl(function(se){U(ee,se.dataIndex,V,se)}):G.removeAll()}});function n(V,Q,G,ee){var se=V.getItemLayout(Q),ye=G.get("symbolRepeat"),he=G.get("symbolClip"),ke=G.get("symbolPosition")||"start",Pe=G.get("symbolRotate"),Ue=(Pe||0)*Math.PI/180||0,$e=G.get("symbolPatternSize")||2,Ge=G.isAnimationEnabled(),ht={dataIndex:Q,layout:se,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:he,symbolRepeat:ye,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:$e,rotation:Ue,animationModel:Ge?G:null,hoverAnimation:Ge&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};o(G,ye,se,ee,ht),h(V,Q,se,ye,he,ht.boundingLength,ht.pxSign,$e,ee,ht),g(G,ht.symbolScale,Ue,ee,ht);var Fe=ht.symbolSize,oe=G.get("symbolOffset");return f.isArray(oe)&&(oe=[d(oe[0],Fe[0]),d(oe[1],Fe[1])]),v(G,Fe,se,ye,he,oe,ke,ht.valueLineWidth,ht.boundingLength,ht.repeatCutLength,ee,ht),ht}function o(V,Q,G,ee,se){var ye=ee.valueDim,he=V.get("symbolBoundingData"),ke=ee.coordSys.getOtherAxis(ee.coordSys.getBaseAxis()),Pe=ke.toGlobalCoord(ke.dataToCoord(0)),Ue=1-+(G[ye.wh]<=0),$e;if(f.isArray(he)){var Ge=[c(ke,he[0])-Pe,c(ke,he[1])-Pe];Ge[1]<Ge[0]&&Ge.reverse(),$e=Ge[Ue]}else he!=null?$e=c(ke,he)-Pe:Q?$e=ee.coordSysExtent[ye.index][Ue]-Pe:$e=G[ye.wh];se.boundingLength=$e,Q&&(se.repeatCutLength=G[ye.wh]),se.pxSign=$e>0?1:$e<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,ee,se,ye,he,ke,Pe,Ue){var $e=Pe.valueDim,Ge=Pe.categoryDim,ht=Math.abs(G[Ge.wh]),Fe=V.getItemVisual(Q,"symbolSize");f.isArray(Fe)?Fe=Fe.slice():(Fe==null&&(Fe="100%"),Fe=[Fe,Fe]),Fe[Ge.index]=d(Fe[Ge.index],ht),Fe[$e.index]=d(Fe[$e.index],ee?ht:Math.abs(ye)),Ue.symbolSize=Fe;var oe=Ue.symbolScale=[Fe[0]/ke,Fe[1]/ke];oe[$e.index]*=(Pe.isHorizontal?-1:1)*he}function g(V,Q,G,ee,se){var ye=V.get(t)||0;ye&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),ye/=e.getLineScale(),ye*=Q[ee.valueDim.index]),se.valueLineWidth=ye}function v(V,Q,G,ee,se,ye,he,ke,Pe,Ue,$e,Ge){var ht=$e.categoryDim,Fe=$e.valueDim,oe=Ge.pxSign,rt=Math.max(Q[Fe.index]+ke,0),fe=rt;if(ee){var J=Math.abs(Pe),Y=f.retrieve(V.get("symbolMargin"),"15%")+"",$=!1;Y.lastIndexOf("!")===Y.length-1&&($=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Fe.index]);var de=Math.max(rt+Y*2,0),we=$?0:Y*2,Ce=u(ee),Se=Ce?ee:K((J+we)/de),le=J-Se*rt;Y=le/2/($?Se:Se-1),de=rt+Y*2,we=$?0:Y*2,!Ce&&ee!=="fixed"&&(Se=Ue?K((Math.abs(Ue)+we)/de):0),fe=Se*de-we,Ge.repeatTimes=Se,Ge.symbolMargin=Y}var pe=oe*(fe/2),_e=Ge.pathPosition=[];_e[ht.index]=G[ht.wh]/2,_e[Fe.index]=he==="start"?pe:he==="end"?Pe-pe:Pe/2,ye&&(_e[0]+=ye[0],_e[1]+=ye[1]);var tt=Ge.bundlePosition=[];tt[ht.index]=G[ht.xy],tt[Fe.index]=G[Fe.xy];var gt=Ge.barRectShape=f.extend({},G);gt[Fe.wh]=oe*Math.max(Math.abs(G[Fe.wh]),Math.abs(_e[Fe.index]+pe)),gt[ht.wh]=G[ht.wh];var ct=Ge.clipShape={};ct[ht.xy]=-G[ht.xy],ct[ht.wh]=$e.ecSize[ht.wh],ct[Fe.xy]=0,ct[Fe.wh]=G[Fe.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function S(V,Q,G,ee){var se=V.__pictorialBundle,ye=G.symbolSize,he=G.valueLineWidth,ke=G.pathPosition,Pe=Q.valueDim,Ue=G.repeatTimes||0,$e=0,Ge=ye[Q.valueDim.index]+he+G.symbolMargin*2;for(X(V,function(J){J.__pictorialAnimationIndex=$e,J.__pictorialRepeatTimes=Ue,$e<Ue?F(J,null,oe($e),G,ee):F(J,null,{scale:[0,0]},G,ee,function(){se.remove(J)}),I(J,G),$e++});$e<Ue;$e++){var ht=b(G);ht.__pictorialAnimationIndex=$e,ht.__pictorialRepeatTimes=Ue,se.add(ht);var Fe=oe($e);F(ht,{position:Fe.position,scale:[0,0]},{scale:Fe.scale,rotation:Fe.rotation},G,ee),ht.on("mouseover",rt).on("mouseout",fe),I(ht,G)}function oe(J){var Y=ke.slice(),$=G.pxSign,de=J;return(G.symbolRepeatDirection==="start"?$>0:$<0)&&(de=Ue-1-J),Y[Pe.index]=Ge*(de-Ue/2+.5)+ke[Pe.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function rt(){X(V,function(J){J.trigger("emphasis")})}function fe(){X(V,function(J){J.trigger("normal")})}}function E(V,Q,G,ee){var se=V.__pictorialBundle,ye=V.__pictorialMainPath;ye?F(ye,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,ee):(ye=V.__pictorialMainPath=b(G),se.add(ye),F(ye,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,ee),ye.on("mouseover",he).on("mouseout",ke)),I(ye,G);function he(){this.trigger("emphasis")}function ke(){this.trigger("normal")}}function C(V,Q,G){var ee=f.extend({},Q.barRectShape),se=V.__pictorialBarRect;se?F(se,null,{shape:ee},Q,G):(se=V.__pictorialBarRect=new x.Rect({z2:2,shape:ee,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add(se))}function _(V,Q,G,ee){if(G.symbolClip){var se=V.__pictorialClipPath,ye=f.extend({},G.clipShape),he=Q.valueDim,ke=G.animationModel,Pe=G.dataIndex;if(se)x.updateProps(se,{shape:ye},ke,Pe);else{ye[he.wh]=0,se=new x.Rect({shape:ye}),V.__pictorialBundle.setClipPath(se),V.__pictorialClipPath=se;var Ue={};Ue[he.wh]=G.clipShape[he.wh],x[ee?"updateProps":"initProps"](se,{shape:Ue},ke,Pe)}}}function T(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=w,G.isAnimationEnabled=O,G}function w(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(V,Q){V.off("emphasis").off("normal");var G=Q.symbolScale.slice();Q.hoverAnimation&&V.on("emphasis",function(){this.animateTo({scale:[G[0]*1.1,G[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:G.slice()},400,"elasticOut")})}function k(V,Q,G,ee){var se=new x.Group,ye=new x.Group;return se.add(ye),se.__pictorialBundle=ye,ye.attr("position",G.bundlePosition.slice()),G.symbolRepeat?S(se,Q,G):E(se,Q,G),C(se,G,ee),_(se,Q,G,ee),se.__pictorialShapeStr=P(V,G),se.__pictorialSymbolMeta=G,se}function M(V,Q,G){var ee=G.animationModel,se=G.dataIndex,ye=V.__pictorialBundle;x.updateProps(ye,{position:G.bundlePosition.slice()},ee,se),G.symbolRepeat?S(V,Q,G,!0):E(V,Q,G,!0),C(V,G,!0),_(V,Q,G,!0)}function U(V,Q,G,ee){var se=ee.__pictorialBarRect;se&&(se.style.text=null);var ye=[];X(ee,function(he){ye.push(he)}),ee.__pictorialMainPath&&ye.push(ee.__pictorialMainPath),ee.__pictorialClipPath&&(G=null),f.each(ye,function(he){x.updateProps(he,{scale:[0,0]},G,Q,function(){ee.parent&&ee.parent.remove(ee)})}),V.setItemGraphicEl(Q,null)}function P(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){f.each(V.__pictorialBundle.children(),function(ee){ee!==V.__pictorialBarRect&&Q.call(G,ee)})}function F(V,Q,G,ee,se,ye){Q&&V.attr(Q),ee.symbolClip&&!se?G&&V.attr(G):G&&x[se?"updateProps":"initProps"](V,G,ee.animationModel,ee.dataIndex,ye)}function j(V,Q,G){var ee=G.color,se=G.dataIndex,ye=G.itemModel,he=ye.getModel("itemStyle").getItemStyle(["color"]),ke=ye.getModel("emphasis.itemStyle").getItemStyle(),Pe=ye.getShallow("cursor");X(V,function(ht){ht.setColor(ee),ht.setStyle(f.defaults({fill:ee,opacity:G.opacity},he)),x.setHoverStyle(ht,ke),Pe&&(ht.cursor=Pe),ht.z2=G.z2});var Ue={},$e=Q.valueDim.posDesc[+(G.boundingLength>0)],Ge=V.__pictorialBarRect;i(Ge.style,Ue,ye,ee,Q.seriesModel,se,$e),x.setHoverStyle(Ge,Ue)}function K(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var z=l;R.exports=z},"N/zr":function(R,L,r){"use strict";function y(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(u){return typeof u}:y=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},y(p)}Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=A(r("Lo0S"));function x(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return x=function(){return p},p}function A(p){if(p&&p.__esModule)return p;if(p===null||y(p)!=="object"&&typeof p!="function")return{default:p};var d=x();if(d&&d.has(p))return d.get(p);var u={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in p)if(Object.prototype.hasOwnProperty.call(p,i)){var t=a?Object.getOwnPropertyDescriptor(p,i):null;t&&(t.get||t.set)?Object.defineProperty(u,i,t):u[i]=p[i]}return u.default=p,d&&d.set(p,u),u}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var u="",a=d.length,i=a%3,t=0;t<a-2;t+=3)u+=this.toBase64Table[d[t]>>2],u+=this.toBase64Table[((d[t]&3)<<4)+(d[t+1]>>4)],u+=this.toBase64Table[((d[t+1]&15)<<2)+(d[t+2]>>6)],u+=this.toBase64Table[d[t+2]&63];var s=a-i;return i===2?(u+=this.toBase64Table[d[s]>>2],u+=this.toBase64Table[((d[s]&3)<<4)+(d[s+1]>>4)],u+=this.toBase64Table[(d[s+1]&15)<<2],u+=this.toBase64Table[64]):i===1&&(u+=this.toBase64Table[d[s]>>2],u+=this.toBase64Table[(d[s]&3)<<4],u+=this.toBase64Table[64],u+=this.toBase64Table[64]),u},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=d.indexOf("=")-u;a<0&&(a=d.length-u);for(var i=(a>>2)*3+Math.floor(a%4/1.5),t=new Array(i),s=0,e=0,l=0,n=u;n<d.length;n++){var o=this.toBinaryTable[d.charCodeAt(n)&127],c=d.charAt(n)===this.base64Pad;if(o===-1){f.Error("Illegal character code "+d.charCodeAt(n)+" at position "+n);continue}e=e<<6|o,s+=6,s>=8&&(s-=8,c||(t[l++]=e>>s&255),e&=(1<<s)-1)}if(s){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};L.default=m},N5BQ:function(R,L,r){var y=r("OlYY"),f=y.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),x=f;R.exports=x},NA0q:function(R,L,r){var y=r("bYtY"),f=r("6Ic6"),x=r("TkdX"),A=r("gPAo"),m=r("7aKB"),p=m.windowOpen,d="sunburstRootToNode",u=f.extend({type:"sunburst",init:function(){},render:function(i,t,s,e){var l=this;this.seriesModel=i,this.api=s,this.ecModel=t;var n=i.getData(),o=n.tree.root,c=i.getViewRoot(),h=this.group,g=i.get("renderLabelForZeroData"),v=[];c.eachNode(function(O){v.push(O)});var b=this._oldChildren||[];if(C(v,b),w(o,c),e&&e.highlight&&e.highlight.piece){var S=i.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(S)}else if(e&&e.unhighlight){var E=this.virtualPiece;!E&&o.children.length&&(E=o.children[0].piece),E&&E.onNormal()}this._initEvents(),this._oldChildren=v;function C(O,I){if(O.length===0&&I.length===0)return;new A(I,O,k,k).add(M).update(M).remove(y.curry(M,null)).execute();function k(U){return U.getId()}function M(U,P){var X=U==null?null:O[U],F=P==null?null:I[P];_(X,F)}}function _(O,I){if(!g&&O&&!O.getValue()&&(O=null),O!==o&&I!==o){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",i,t),n.setItemGraphicEl(O.dataIndex,I.piece)):T(I);else if(O){var k=new x(O,i,t);h.add(k),n.setItemGraphicEl(O.dataIndex,k)}}}function T(O){if(!O)return;O.piece&&(h.remove(O.piece),O.piece=null)}function w(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",i,t):(l.virtualPiece=new x(O,i,t),h.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var k=function(M){l._rootToNode(I.parentNode)};I.piece._onclickEvent=k,l.virtualPiece.on("click",k)}else l.virtualPiece&&(h.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var i=this,t=function(s){var e=!1,l=i.seriesModel.getViewRoot();l.eachNode(function(n){if(!e&&n.piece&&n.piece.childAt(0)===s.target){var o=n.getModel().get("nodeClick");if(o==="rootToNode")i._rootToNode(n);else if(o==="link"){var c=n.getModel(),h=c.get("link");if(h){var g=c.get("target",!0)||"_blank";p(h,g)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},containPoint:function(i,t){var s=t.getData(),e=s.getItemLayout(0);if(e){var l=i[0]-e.cx,n=i[1]-e.cy,o=Math.sqrt(l*l+n*n);return o<=e.r&&o>=e.r0}}}),a=u;R.exports=a},NBmB:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.encodingName=f,L.encodings=void 0;var y={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};L.encodings=y;function f(x){switch(x){case y.encodingRaw:return"Raw";case y.encodingCopyRect:return"CopyRect";case y.encodingRRE:return"RRE";case y.encodingHextile:return"Hextile";case y.encodingTight:return"Tight";case y.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+x+"]"}}},NC18:function(R,L,r){var y=r("y+Vt"),f=r("IMiH"),x=r("7oTu"),A=Math.sqrt,m=Math.sin,p=Math.cos,d=Math.PI,u=function(v){return Math.sqrt(v[0]*v[0]+v[1]*v[1])},a=function(v,b){return(v[0]*b[0]+v[1]*b[1])/(u(v)*u(b))},i=function(v,b){return(v[0]*b[1]<v[1]*b[0]?-1:1)*Math.acos(a(v,b))};function t(g,v,b,S,E,C,_,T,w,O,I){var k=w*(d/180),M=p(k)*(g-b)/2+m(k)*(v-S)/2,U=-1*m(k)*(g-b)/2+p(k)*(v-S)/2,P=M*M/(_*_)+U*U/(T*T);P>1&&(_*=A(P),T*=A(P));var X=(E===C?-1:1)*A((_*_*(T*T)-_*_*(U*U)-T*T*(M*M))/(_*_*(U*U)+T*T*(M*M)))||0,F=X*_*U/T,j=X*-T*M/_,K=(g+b)/2+p(k)*F-m(k)*j,z=(v+S)/2+m(k)*F+p(k)*j,V=i([1,0],[(M-F)/_,(U-j)/T]),Q=[(M-F)/_,(U-j)/T],G=[(-1*M-F)/_,(-1*U-j)/T],ee=i(Q,G);a(Q,G)<=-1&&(ee=d),a(Q,G)>=1&&(ee=0),C===0&&ee>0&&(ee=ee-2*d),C===1&&ee<0&&(ee=ee+2*d),I.addData(O,K,z,_,T,V,ee,k,C)}var s=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(g){if(!g)return new f;for(var v=0,b=0,S=v,E=b,C,_=new f,T=f.CMD,w=g.match(s),O=0;O<w.length;O++){for(var I=w[O],k=I.charAt(0),M,U=I.match(e)||[],P=U.length,X=0;X<P;X++)U[X]=parseFloat(U[X]);for(var F=0;F<P;){var j,K,z,V,Q,G,ee,se=v,ye=b;switch(k){case"l":v+=U[F++],b+=U[F++],M=T.L,_.addData(M,v,b);break;case"L":v=U[F++],b=U[F++],M=T.L,_.addData(M,v,b);break;case"m":v+=U[F++],b+=U[F++],M=T.M,_.addData(M,v,b),S=v,E=b,k="l";break;case"M":v=U[F++],b=U[F++],M=T.M,_.addData(M,v,b),S=v,E=b,k="L";break;case"h":v+=U[F++],M=T.L,_.addData(M,v,b);break;case"H":v=U[F++],M=T.L,_.addData(M,v,b);break;case"v":b+=U[F++],M=T.L,_.addData(M,v,b);break;case"V":b=U[F++],M=T.L,_.addData(M,v,b);break;case"C":M=T.C,_.addData(M,U[F++],U[F++],U[F++],U[F++],U[F++],U[F++]),v=U[F-2],b=U[F-1];break;case"c":M=T.C,_.addData(M,U[F++]+v,U[F++]+b,U[F++]+v,U[F++]+b,U[F++]+v,U[F++]+b),v+=U[F-2],b+=U[F-1];break;case"S":j=v,K=b;var he=_.len(),ke=_.data;C===T.C&&(j+=v-ke[he-4],K+=b-ke[he-3]),M=T.C,se=U[F++],ye=U[F++],v=U[F++],b=U[F++],_.addData(M,j,K,se,ye,v,b);break;case"s":j=v,K=b;var he=_.len(),ke=_.data;C===T.C&&(j+=v-ke[he-4],K+=b-ke[he-3]),M=T.C,se=v+U[F++],ye=b+U[F++],v+=U[F++],b+=U[F++],_.addData(M,j,K,se,ye,v,b);break;case"Q":se=U[F++],ye=U[F++],v=U[F++],b=U[F++],M=T.Q,_.addData(M,se,ye,v,b);break;case"q":se=U[F++]+v,ye=U[F++]+b,v+=U[F++],b+=U[F++],M=T.Q,_.addData(M,se,ye,v,b);break;case"T":j=v,K=b;var he=_.len(),ke=_.data;C===T.Q&&(j+=v-ke[he-4],K+=b-ke[he-3]),v=U[F++],b=U[F++],M=T.Q,_.addData(M,j,K,v,b);break;case"t":j=v,K=b;var he=_.len(),ke=_.data;C===T.Q&&(j+=v-ke[he-4],K+=b-ke[he-3]),v+=U[F++],b+=U[F++],M=T.Q,_.addData(M,j,K,v,b);break;case"A":z=U[F++],V=U[F++],Q=U[F++],G=U[F++],ee=U[F++],se=v,ye=b,v=U[F++],b=U[F++],M=T.A,t(se,ye,v,b,G,ee,z,V,Q,M,_);break;case"a":z=U[F++],V=U[F++],Q=U[F++],G=U[F++],ee=U[F++],se=v,ye=b,v+=U[F++],b+=U[F++],M=T.A,t(se,ye,v,b,G,ee,z,V,Q,M,_);break}}(k==="z"||k==="Z")&&(M=T.Z,_.addData(M),v=S,b=E),C=M}return _.toStatic(),_}function n(g,v){var b=l(g);return v=v||{},v.buildPath=function(S){if(S.setData){S.setData(b.data);var E=S.getContext();E&&S.rebuildPath(E)}else{var E=S;b.rebuildPath(E)}},v.applyTransform=function(S){x(b,S),this.dirty(!0)},v}function o(g,v){return new y(n(g,v))}function c(g,v){return y.extend(n(g,v))}function h(g,v){for(var b=[],S=g.length,E=0;E<S;E++){var C=g[E];C.path||C.createPathProxy(),C.__dirtyPath&&C.buildPath(C.path,C.shape,!0),b.push(C.path)}var _=new y(v);return _.createPathProxy(),_.buildPath=function(T){T.appendPath(b);var w=T.getContext();w&&T.rebuildPath(w)},_}L.createFromString=o,L.extendFromString=c,L.mergePath=h},NFKh:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("MlIO"),r("F+F2"),r("qM6L"),r("ETIr"),r("wbyO"),r("cv67"),r("3y9D"),r("lPiR"),r("GRuw"),r("1uat"),r("uGsb"),r("5hvy"),r("ELcG"),r("WYAk"),r("e7zE"),r("K3mO"),r("OLod"),r("ALsQ"),r("9OqN"),r("qu8F"),r("S6kV"),r("gb/T"),r("qBft"),r("oRuE"),r("jO9C"),r("KmYQ"),r("uGxW"),r("bQjk"),r("wZgz"),r("pA7S"),r("w7YG"),r("E4JC"),r("PVpz"))})(this,function(y){return y})},NH9N:function(R,L,r){var y=r("bYtY"),f=r("mFDi"),x=r("Fofx"),A=r("IwbS"),m=r("+TT/"),p=r("kzvK"),d=r("CMP+"),u=r("oVpE"),a=u.createSymbol,i=r("aX7z"),t=r("OELB"),s=r("7aKB"),e=s.encodeHTML,l=y.bind,n=y.each,o=Math.PI,c=p.extend({type:"timeline.slider",init:function(S,E){this.api=E,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(S,E,C,_){if(this.model=S,this.api=C,this.ecModel=E,this.group.removeAll(),S.get("show",!0)){var T=this._layout(S,C),w=this._createGroup("mainGroup"),O=this._createGroup("labelGroup"),I=this._axis=this._createAxis(T,S);S.formatTooltip=function(k){return e(I.scale.getLabel(k))},n(["AxisLine","AxisTick","Control","CurrentPointer"],function(k){this["_render"+k](T,w,I,S)},this),this._renderAxisLabel(T,O,I,S),this._position(T,S)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(S,E){var C=S.get("label.position"),_=S.get("orient"),T=h(S,E);C==null||C==="auto"?C=_==="horizontal"?T.y+T.height/2<E.getHeight()/2?"-":"+":T.x+T.width/2<E.getWidth()/2?"+":"-":isNaN(C)&&(C={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[_][C]);var w={horizontal:"center",vertical:C>=0||C==="+"?"left":"right"},O={horizontal:C>=0||C==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:o/2},k=_==="vertical"?T.height:T.width,M=S.getModel("controlStyle"),U=M.get("show",!0),P=U?M.get("itemSize"):0,X=U?M.get("itemGap"):0,F=P+X,j=S.get("label.rotate")||0;j=j*o/180;var K,z,V,Q,G=M.get("position",!0),ee=U&&M.get("showPlayBtn",!0),se=U&&M.get("showPrevBtn",!0),ye=U&&M.get("showNextBtn",!0),he=0,ke=k;return G==="left"||G==="bottom"?(ee&&(K=[0,0],he+=F),se&&(z=[he,0],he+=F),ye&&(V=[ke-P,0],ke-=F)):(ee&&(K=[ke-P,0],ke-=F),se&&(z=[0,0],he+=F),ye&&(V=[ke-P,0],ke-=F)),Q=[he,ke],S.get("inverse")&&Q.reverse(),{viewRect:T,mainLength:k,orient:_,rotation:I[_],labelRotation:j,labelPosOpt:C,labelAlign:S.get("label.align")||w[_],labelBaseline:S.get("label.verticalAlign")||S.get("label.baseline")||O[_],playPosition:K,prevBtnPosition:z,nextBtnPosition:V,axisExtent:Q,controlSize:P,controlGap:X}},_position:function(S,E){var C=this._mainGroup,_=this._labelGroup,T=S.viewRect;if(S.orient==="vertical"){var w=x.create(),O=T.x,I=T.y+T.height;x.translate(w,w,[-O,-I]),x.rotate(w,w,-o/2),x.translate(w,w,[O,I]),T=T.clone(),T.applyTransform(w)}var k=z(T),M=z(C.getBoundingRect()),U=z(_.getBoundingRect()),P=C.position,X=_.position;X[0]=P[0]=k[0][0];var F=S.labelPosOpt;if(isNaN(F)){var j=F==="+"?0:1;V(P,M,k,1,j),V(X,U,k,1,1-j)}else{var j=F>=0?0:1;V(P,M,k,1,j),X[1]=P[1]+F}C.attr("position",P),_.attr("position",X),C.rotation=_.rotation=S.rotation,K(C),K(_);function K(Q){var G=Q.position;Q.origin=[k[0][0]-G[0],k[1][0]-G[1]]}function z(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,ee,se,ye){Q[se]+=ee[se][ye]-G[se][ye]}},_createAxis:function(S,E){var C=E.getData(),_=E.get("axisType"),T=i.createScaleByModel(E,_);T.getTicks=function(){return C.mapArray(["value"],function(I){return I})};var w=C.getDataExtent("value");T.setExtent(w[0],w[1]),T.niceTicks();var O=new d("value",T,S.axisExtent,_);return O.model=E,O},_createGroup:function(S){var E=this["_"+S]=new A.Group;return this.group.add(E),E},_renderAxisLine:function(S,E,C,_){var T=C.getExtent();if(!_.get("lineStyle.show"))return;E.add(new A.Line({shape:{x1:T[0],y1:0,x2:T[1],y2:0},style:y.extend({lineCap:"round"},_.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(S,E,C,_){var T=_.getData(),w=C.scale.getTicks();n(w,function(O){var I=C.dataToCoord(O),k=T.getItemModel(O),M=k.getModel("itemStyle"),U=k.getModel("emphasis.itemStyle"),P={position:[I,0],onclick:l(this._changeTimeline,this,O)},X=v(k,M,E,P);A.setHoverStyle(X,U.getItemStyle()),k.get("tooltip")?(X.dataIndex=O,X.dataModel=_):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(S,E,C,_){var T=C.getLabelModel();if(!T.get("show"))return;var w=_.getData(),O=C.getViewLabels();n(O,function(I){var k=I.tickValue,M=w.getItemModel(k),U=M.getModel("label"),P=M.getModel("emphasis.label"),X=C.dataToCoord(I.tickValue),F=new A.Text({position:[X,0],rotation:S.labelRotation-S.rotation,onclick:l(this._changeTimeline,this,k),silent:!1});A.setTextStyle(F.style,U,{text:I.formattedLabel,textAlign:S.labelAlign,textVerticalAlign:S.labelBaseline}),E.add(F),A.setHoverStyle(F,A.setTextStyle({},P))},this)},_renderControl:function(S,E,C,_){var T=S.controlSize,w=S.rotation,O=_.getModel("controlStyle").getItemStyle(),I=_.getModel("emphasis.controlStyle").getItemStyle(),k=[0,-T/2,T,T],M=_.getPlayState(),U=_.get("inverse",!0);P(S.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,U?"-":"+")),P(S.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,U?"+":"-")),P(S.playPosition,"controlStyle."+(M?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!M),!0);function P(X,F,j,K){if(!X)return;var z={position:X,origin:[T/2,0],rotation:K?-w:0,rectHover:!0,style:O,onclick:j},V=g(_,F,k,z);E.add(V),A.setHoverStyle(V,I)}},_renderCurrentPointer:function(S,E,C,_){var T=_.getData(),w=_.getCurrentIndex(),O=T.getItemModel(w).getModel("checkpointStyle"),I=this,k={onCreate:function(M){M.draggable=!0,M.drift=l(I._handlePointerDrag,I),M.ondragend=l(I._handlePointerDragend,I),b(M,w,C,_,!0)},onUpdate:function(M){b(M,w,C,_)}};this._currentPointer=v(O,O,this._mainGroup,{},this._currentPointer,k)},_handlePlayClick:function(S){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:S,from:this.uid})},_handlePointerDrag:function(S,E,C){this._clearTimer(),this._pointerChangeTimeline([C.offsetX,C.offsetY])},_handlePointerDragend:function(S){this._pointerChangeTimeline([S.offsetX,S.offsetY],!0)},_pointerChangeTimeline:function(S,E){var C=this._toAxisCoord(S)[0],_=this._axis,T=t.asc(_.getExtent().slice());C>T[1]&&(C=T[1]),C<T[0]&&(C=T[0]),this._currentPointer.position[0]=C,this._currentPointer.dirty();var w=this._findNearestTick(C),O=this.model;(E||w!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(S,this),this.model.get("playInterval")));function S(){var E=this.model;this._changeTimeline(E.getCurrentIndex()+(E.get("rewind",!0)?-1:1))}},_toAxisCoord:function(S){var E=this._mainGroup.getLocalTransform();return A.applyTransform(S,E,!0)},_findNearestTick:function(S){var E=this.model.getData(),C=Infinity,_,T=this._axis;return E.each(["value"],function(w,O){var I=T.dataToCoord(w),k=Math.abs(I-S);k<C&&(C=k,_=O)}),_},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(S){var E=this.model.getCurrentIndex();S==="+"?S=E+1:S==="-"&&(S=E-1),this.api.dispatchAction({type:"timelineChange",currentIndex:S,from:this.uid})}});function h(S,E){return m.getLayoutRect(S.getBoxLayoutParams(),{width:E.getWidth(),height:E.getHeight()},S.get("padding"))}function g(S,E,C,_){var T=A.makePath(S.get(E).replace(/^path:\/\//,""),y.clone(_||{}),new f(C[0],C[1],C[2],C[3]),"center");return T}function v(S,E,C,_,T,w){var O=E.get("color");if(T)T.setColor(O),C.add(T),w&&w.onUpdate(T);else{var I=S.get("symbol");T=a(I,-1,-1,2,2,O),T.setStyle("strokeNoScale",!0),C.add(T),w&&w.onCreate(T)}var k=E.getItemStyle(["color","symbol","symbolSize"]);T.setStyle(k),_=y.merge({rectHover:!0,z2:100},_,!0);var M=S.get("symbolSize");M=M instanceof Array?M.slice():[+M,+M],M[0]/=2,M[1]/=2,_.scale=M;var U=S.get("symbolOffset");if(U){var P=_.position=_.position||[0,0];P[0]+=t.parsePercent(U[0],M[0]),P[1]+=t.parsePercent(U[1],M[1])}var X=S.get("symbolRotate");return _.rotation=(X||0)*Math.PI/180||0,T.attr(_),T.updateTransform(),T}function b(S,E,C,_,T){if(S.dragging)return;var w=_.getModel("checkpointStyle"),O=C.dataToCoord(_.getData().get(["value"],E));T||!w.get("animation",!0)?S.attr({position:[O,0]}):(S.stopAnimation(!0),S.animateTo({position:[O,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}R.exports=c},NJEC:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("J4zp"),A=r.n(x),m=r("q1tI"),p=r.n(m),d=r("TSYQ"),u=r.n(d),a=r("/TCm"),i=r.n(a),t=r("4IlW"),s=r("3S7+"),e=r("2/Rp"),l=r("zvFY"),n=r("YMnH"),o=r("ZvpZ"),c=r("H84U"),h=r("bogI"),g=r("0n0R"),v=void 0,b=function(E,C){var _={};for(var T in E)Object.prototype.hasOwnProperty.call(E,T)&&C.indexOf(T)<0&&(_[T]=E[T]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,T=Object.getOwnPropertySymbols(E);w<T.length;w++)C.indexOf(T[w])<0&&Object.prototype.propertyIsEnumerable.call(E,T[w])&&(_[T[w]]=E[T[w]]);return _},S=m.forwardRef(function(E,C){var _=m.useState(E.visible),T=A()(_,2),w=T[0],O=T[1];m.useEffect(function(){"visible"in E&&O(E.visible)},[E.visible]),m.useEffect(function(){"defaultVisible"in E&&O(E.defaultVisible)},[E.defaultVisible]);var I=function(Pe,Ue){"visible"in E||O(Pe),E.onVisibleChange&&E.onVisibleChange(Pe,Ue)},k=function(Pe){I(!1,Pe),E.onConfirm&&E.onConfirm.call(v,Pe)},M=function(Pe){I(!1,Pe),E.onCancel&&E.onCancel.call(v,Pe)},U=function(Pe){Pe.keyCode===t.a.ESC&&w&&I(!1,Pe)},P=function(Pe){var Ue=E.disabled;if(Ue)return;I(Pe)},X=function(Pe,Ue){var $e=E.okButtonProps,Ge=E.cancelButtonProps,ht=E.title,Fe=E.cancelText,oe=E.okText,rt=E.okType,fe=E.icon;return m.createElement("div",{className:"".concat(Pe,"-inner-content")},m.createElement("div",{className:"".concat(Pe,"-message")},fe,m.createElement("div",{className:"".concat(Pe,"-message-title")},Object(h.a)(ht))),m.createElement("div",{className:"".concat(Pe,"-buttons")},m.createElement(e.a,f()({onClick:M,size:"small"},Ge),Fe||Ue.cancelText),m.createElement(e.a,f()({onClick:k},Object(l.a)(rt),{size:"small"},$e),oe||Ue.okText)))},F=m.useContext(c.b),j=F.getPrefixCls,K=E.prefixCls,z=E.placement,V=E.children,Q=E.overlayClassName,G=b(E,["prefixCls","placement","children","overlayClassName"]),ee=j("popover",K),se=j("popconfirm",K),ye=u()(se,Q),he=m.createElement(n.a,{componentName:"Popconfirm",defaultLocale:o.a.Popconfirm},function(ke){return X(ee,ke)});return m.createElement(s.a,f()({},G,{prefixCls:ee,placement:z,onVisibleChange:P,visible:w,overlay:he,overlayClassName:ye,ref:C}),Object(g.a)(V,{onKeyDown:function(Pe){var Ue,$e;($e=V==null?void 0:(Ue=V.props).onKeyDown)===null||$e===void 0||$e.call(Ue,Pe),U(Pe)}}))});S.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(i.a,null),disabled:!1},L.a=S},NKxu:function(R,L,r){var y=r("lSCD"),f=r("E2jh"),x=r("GoyQ"),A=r("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,a=d.toString,i=u.hasOwnProperty,t=RegExp("^"+a.call(i).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function s(e){if(!x(e)||f(e))return!1;var l=y(e)?t:p;return l.test(A(e))}R.exports=s},NUBc:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("q1tI"),p=r.n(m),d=r("wx14"),u=r("rePB"),a=r("VTBJ"),i=r("1OyB"),t=r("vuIU"),s=r("Ji7U"),e=r("LK+K"),l=r("TSYQ"),n=r.n(l),o=function(Ue){var $e,Ge="".concat(Ue.rootPrefixCls,"-item"),ht=n()(Ge,"".concat(Ge,"-").concat(Ue.page),($e={},Object(u.a)($e,"".concat(Ge,"-active"),Ue.active),Object(u.a)($e,Ue.className,!!Ue.className),Object(u.a)($e,"".concat(Ge,"-disabled"),!Ue.page),$e)),Fe=function(){Ue.onClick(Ue.page)},oe=function(fe){Ue.onKeyPress(fe,Ue.onClick,Ue.page)};return p.a.createElement("li",{title:Ue.showTitle?Ue.page:null,className:ht,onClick:Fe,onKeyPress:oe,tabIndex:"0"},Ue.itemRender(Ue.page,"page",p.a.createElement("a",{rel:"nofollow"},Ue.page)))},c=o,h={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},g=function(Pe){Object(s.a)($e,Pe);var Ue=Object(e.a)($e);function $e(){var Ge;Object(i.a)(this,$e);for(var ht=arguments.length,Fe=new Array(ht),oe=0;oe<ht;oe++)Fe[oe]=arguments[oe];return Ge=Ue.call.apply(Ue,[this].concat(Fe)),Ge.state={goInputText:""},Ge.buildOptionText=function(rt){return"".concat(rt," ").concat(Ge.props.locale.items_per_page)},Ge.changeSize=function(rt){Ge.props.changeSize(Number(rt))},Ge.handleChange=function(rt){Ge.setState({goInputText:rt.target.value})},Ge.handleBlur=function(rt){var fe=Ge.props,J=fe.goButton,Y=fe.quickGo,$=fe.rootPrefixCls,de=Ge.state.goInputText;if(J||de==="")return;if(rt.relatedTarget&&(rt.relatedTarget.className.indexOf("".concat($,"-prev"))>=0||rt.relatedTarget.className.indexOf("".concat($,"-next"))>=0))return;Ge.setState({goInputText:""}),Y(Ge.getValidValue())},Ge.go=function(rt){var fe=Ge.state.goInputText;if(fe==="")return;(rt.keyCode===h.ENTER||rt.type==="click")&&(Ge.setState({goInputText:""}),Ge.props.quickGo(Ge.getValidValue()))},Ge}return Object(t.a)($e,[{key:"getValidValue",value:function(){var ht=this.state,Fe=ht.goInputText,oe=ht.current;return!Fe||isNaN(Fe)?oe:Number(Fe)}},{key:"getPageSizeOptions",value:function(){var ht=this.props,Fe=ht.pageSize,oe=ht.pageSizeOptions;return oe.some(function(rt){return rt.toString()===Fe.toString()})?oe:oe.concat([Fe.toString()]).sort(function(rt,fe){var J=isNaN(Number(rt))?0:Number(rt),Y=isNaN(Number(fe))?0:Number(fe);return J-Y})}},{key:"render",value:function(){var ht=this,Fe=this.props,oe=Fe.pageSize,rt=Fe.locale,fe=Fe.rootPrefixCls,J=Fe.changeSize,Y=Fe.quickGo,$=Fe.goButton,de=Fe.selectComponentClass,we=Fe.buildOptionText,Ce=Fe.selectPrefixCls,Se=Fe.disabled,le=this.state.goInputText,pe="".concat(fe,"-options"),_e=de,tt=null,gt=null,ct=null;if(!J&&!Y)return null;var je=this.getPageSizeOptions();if(J&&_e){var Zt=je.map(function(ut,Ht){return p.a.createElement(_e.Option,{key:Ht,value:ut.toString()},(we||ht.buildOptionText)(ut))});tt=p.a.createElement(_e,{disabled:Se,prefixCls:Ce,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(oe||je[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ht){return Ht.parentNode}},Zt)}return Y&&($&&(ct=typeof $=="boolean"?p.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Se,className:"".concat(pe,"-quick-jumper-button")},rt.jump_to_confirm):p.a.createElement("span",{onClick:this.go,onKeyUp:this.go},$)),gt=p.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},rt.jump_to,p.a.createElement("input",{disabled:Se,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),rt.page,ct)),p.a.createElement("li",{className:"".concat(pe)},tt,gt)}}]),$e}(p.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=g,b=r("N2Kk");function S(){}function E(Pe){return typeof Pe=="number"&&isFinite(Pe)&&Math.floor(Pe)===Pe}function C(Pe,Ue,$e){return $e}function _(Pe,Ue,$e){var Ge=typeof Pe=="undefined"?Ue.pageSize:Pe;return Math.floor(($e.total-1)/Ge)+1}var T=function(Pe){Object(s.a)($e,Pe);var Ue=Object(e.a)($e);function $e(Ge){var ht;Object(i.a)(this,$e),ht=Ue.call(this,Ge),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(_(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(J,Y){var $=ht.props.prefixCls,de=J||p.a.createElement("button",{type:"button","aria-label":Y,className:"".concat($,"-item-link")});return typeof J=="function"&&(de=p.a.createElement(J,Object(a.a)({},ht.props))),de},ht.savePaginationNode=function(J){ht.paginationNode=J},ht.isValid=function(J){return E(J)&&J!==ht.state.current},ht.shouldDisplayQuickJumper=function(){var J=ht.props,Y=J.showQuickJumper,$=J.pageSize,de=J.total;return de<=$?!1:Y},ht.handleKeyDown=function(J){(J.keyCode===h.ARROW_UP||J.keyCode===h.ARROW_DOWN)&&J.preventDefault()},ht.handleKeyUp=function(J){var Y=ht.getValidValue(J),$=ht.state.currentInputValue;Y!==$&&ht.setState({currentInputValue:Y}),J.keyCode===h.ENTER?ht.handleChange(Y):J.keyCode===h.ARROW_UP?ht.handleChange(Y-1):J.keyCode===h.ARROW_DOWN&&ht.handleChange(Y+1)},ht.changePageSize=function(J){var Y=ht.state.current,$=_(J,ht.state,ht.props);Y=Y>$?$:Y,$===0&&(Y=ht.state.current),typeof J=="number"&&("pageSize"in ht.props||ht.setState({pageSize:J}),"current"in ht.props||ht.setState({current:Y,currentInputValue:Y})),ht.props.onShowSizeChange(Y,J),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(Y,J)},ht.handleChange=function(J){var Y=ht.props.disabled,$=J;if(ht.isValid($)&&!Y){var de=_(void 0,ht.state,ht.props);$>de?$=de:$<1&&($=1),"current"in ht.props||ht.setState({current:$,currentInputValue:$});var we=ht.state.pageSize;return ht.props.onChange($,we),$}return ht.state.current},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<_(void 0,ht.state,ht.props)},ht.runIfEnter=function(J,Y){if(J.key==="Enter"||J.charCode===13){for(var $=arguments.length,de=new Array($>2?$-2:0),we=2;we<$;we++)de[we-2]=arguments[we];Y.apply(void 0,de)}},ht.runIfEnterPrev=function(J){ht.runIfEnter(J,ht.prev)},ht.runIfEnterNext=function(J){ht.runIfEnter(J,ht.next)},ht.runIfEnterJumpPrev=function(J){ht.runIfEnter(J,ht.jumpPrev)},ht.runIfEnterJumpNext=function(J){ht.runIfEnter(J,ht.jumpNext)},ht.handleGoTO=function(J){(J.keyCode===h.ENTER||J.type==="click")&&ht.handleChange(ht.state.currentInputValue)};var Fe=Ge.onChange!==S,oe="current"in Ge;oe&&!Fe&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var rt=Ge.defaultCurrent;"current"in Ge&&(rt=Ge.current);var fe=Ge.defaultPageSize;return"pageSize"in Ge&&(fe=Ge.pageSize),rt=Math.min(rt,_(fe,void 0,Ge)),ht.state={current:rt,currentInputValue:rt,pageSize:fe},ht}return Object(t.a)($e,[{key:"componentDidUpdate",value:function(ht,Fe){var oe=this.props.prefixCls;if(Fe.current!==this.state.current&&this.paginationNode){var rt=this.paginationNode.querySelector(".".concat(oe,"-item-").concat(Fe.current));rt&&document.activeElement===rt&&rt.blur()}}},{key:"getValidValue",value:function(ht){var Fe=ht.target.value,oe=_(void 0,this.state,this.props),rt=this.state.currentInputValue,fe;return Fe===""?fe=Fe:isNaN(Number(Fe))?fe=rt:Fe>=oe?fe=oe:fe=Number(Fe),fe}},{key:"getShowSizeChanger",value:function(){var ht=this.props,Fe=ht.showSizeChanger,oe=ht.total,rt=ht.totalBoundaryShowSizeChanger;return typeof Fe!="undefined"?Fe:oe>rt}},{key:"renderPrev",value:function(ht){var Fe=this.props,oe=Fe.prevIcon,rt=Fe.itemRender,fe=rt(ht,"prev",this.getItemIcon(oe,"prev page")),J=!this.hasPrev();return Object(m.isValidElement)(fe)?Object(m.cloneElement)(fe,{disabled:J}):fe}},{key:"renderNext",value:function(ht){var Fe=this.props,oe=Fe.nextIcon,rt=Fe.itemRender,fe=rt(ht,"next",this.getItemIcon(oe,"next page")),J=!this.hasNext();return Object(m.isValidElement)(fe)?Object(m.cloneElement)(fe,{disabled:J}):fe}},{key:"render",value:function(){var ht=this,Fe=this.props,oe=Fe.prefixCls,rt=Fe.className,fe=Fe.style,J=Fe.disabled,Y=Fe.hideOnSinglePage,$=Fe.total,de=Fe.locale,we=Fe.showQuickJumper,Ce=Fe.showLessItems,Se=Fe.showTitle,le=Fe.showTotal,pe=Fe.simple,_e=Fe.itemRender,tt=Fe.showPrevNextJumpers,gt=Fe.jumpPrevIcon,ct=Fe.jumpNextIcon,je=Fe.selectComponentClass,Zt=Fe.selectPrefixCls,ut=Fe.pageSizeOptions,Ht=this.state,dr=Ht.current,Vt=Ht.pageSize,Mt=Ht.currentInputValue;if(Y===!0&&$<=Vt)return null;var Gt=_(void 0,this.state,this.props),Ve=[],me=null,te=null,Ze=null,Xe=null,ue=null,St=we&&we.goButton,Qt=Ce?1:2,dt=dr-1>0?dr-1:0,Jt=dr+1<Gt?dr+1:Gt,$t=Object.keys(this.props).reduce(function(Mn,Xt){return(Xt.substr(0,5)==="data-"||Xt.substr(0,5)==="aria-"||Xt==="role")&&(Mn[Xt]=ht.props[Xt]),Mn},{});if(pe)return St&&(typeof St=="boolean"?ue=p.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):ue=p.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},St),ue=p.a.createElement("li",{title:Se?"".concat(de.jump_to).concat(dr,"/").concat(Gt):null,className:"".concat(oe,"-simple-pager")},ue)),p.a.createElement("ul",Object(d.a)({className:n()(oe,"".concat(oe,"-simple"),Object(u.a)({},"".concat(oe,"-disabled"),J),rt),style:fe,ref:this.savePaginationNode},$t),p.a.createElement("li",{title:Se?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:n()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(dt)),p.a.createElement("li",{title:Se?"".concat(dr,"/").concat(Gt):null,className:"".concat(oe,"-simple-pager")},p.a.createElement("input",{type:"text",value:Mt,disabled:J,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),p.a.createElement("span",{className:"".concat(oe,"-slash")},"/"),Gt),p.a.createElement("li",{title:Se?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:n()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Jt)),ue);if(Gt<=3+Qt*2){var tn={locale:de,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Se,itemRender:_e};Gt||Ve.push(p.a.createElement(c,Object(d.a)({},tn,{key:"noPager",page:Gt,className:"".concat(oe,"-disabled")})));for(var kt=1;kt<=Gt;kt+=1){var tr=dr===kt;Ve.push(p.a.createElement(c,Object(d.a)({},tn,{key:kt,page:kt,active:tr})))}}else{var Bt=Ce?de.prev_3:de.prev_5,ft=Ce?de.next_3:de.next_5;tt&&(me=p.a.createElement("li",{title:Se?Bt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:n()("".concat(oe,"-jump-prev"),Object(u.a)({},"".concat(oe,"-jump-prev-custom-icon"),!!gt))},_e(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(gt,"prev page"))),te=p.a.createElement("li",{title:Se?ft:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:n()("".concat(oe,"-jump-next"),Object(u.a)({},"".concat(oe,"-jump-next-custom-icon"),!!ct))},_e(this.getJumpNextPage(),"jump-next",this.getItemIcon(ct,"next page")))),Xe=p.a.createElement(c,{locale:de,last:!0,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Gt,page:Gt,active:!1,showTitle:Se,itemRender:_e}),Ze=p.a.createElement(c,{locale:de,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Se,itemRender:_e});var it=Math.max(1,dr-Qt),Or=Math.min(dr+Qt,Gt);dr-1<=Qt&&(Or=1+Qt*2),Gt-dr<=Qt&&(it=Gt-Qt*2);for(var an=it;an<=Or;an+=1){var En=dr===an;Ve.push(p.a.createElement(c,{locale:de,rootPrefixCls:oe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:an,page:an,active:En,showTitle:Se,itemRender:_e}))}dr-1>=Qt*2&&dr!==1+2&&(Ve[0]=Object(m.cloneElement)(Ve[0],{className:"".concat(oe,"-item-after-jump-prev")}),Ve.unshift(me)),Gt-dr>=Qt*2&&dr!==Gt-2&&(Ve[Ve.length-1]=Object(m.cloneElement)(Ve[Ve.length-1],{className:"".concat(oe,"-item-before-jump-next")}),Ve.push(te)),it!==1&&Ve.unshift(Ze),Or!==Gt&&Ve.push(Xe)}var Bn=null;le&&(Bn=p.a.createElement("li",{className:"".concat(oe,"-total-text")},le($,[$===0?0:(dr-1)*Vt+1,dr*Vt>$?$:dr*Vt])));var vi=!this.hasPrev()||!Gt,Ln=!this.hasNext()||!Gt;return p.a.createElement("ul",Object(d.a)({className:n()(oe,rt,Object(u.a)({},"".concat(oe,"-disabled"),J)),style:fe,unselectable:"unselectable",ref:this.savePaginationNode},$t),Bn,p.a.createElement("li",{title:Se?de.prev_page:null,onClick:this.prev,tabIndex:vi?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(oe,"-prev"),Object(u.a)({},"".concat(oe,"-disabled"),vi)),"aria-disabled":vi},this.renderPrev(dt)),Ve,p.a.createElement("li",{title:Se?de.next_page:null,onClick:this.next,tabIndex:Ln?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(oe,"-next"),Object(u.a)({},"".concat(oe,"-disabled"),Ln)),"aria-disabled":Ln},this.renderNext(Jt)),p.a.createElement(v,{disabled:J,locale:de,rootPrefixCls:oe,selectComponentClass:je,selectPrefixCls:Zt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:dr,pageSize:Vt,pageSizeOptions:ut,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:St}))}}],[{key:"getDerivedStateFromProps",value:function(ht,Fe){var oe={};if("current"in ht&&(oe.current=ht.current,ht.current!==Fe.current&&(oe.currentInputValue=oe.current)),"pageSize"in ht&&ht.pageSize!==Fe.pageSize){var rt=Fe.current,fe=_(ht.pageSize,Fe,ht);rt=rt>fe?fe:rt,"current"in ht||(oe.current=rt,oe.currentInputValue=rt),oe.pageSize=ht.pageSize}return oe}}]),$e}(p.a.Component);T.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:S,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:S,locale:b.a,style:{},itemRender:C,totalBoundaryShowSizeChanger:50};var w=T,O=r("H4fg"),I=r("FRVV"),k=r.n(I),M=r("nyS3"),U=r.n(M),P=r("DxGw"),X=r.n(P),F=r("JiDT"),j=r.n(F),K=r("2fM7"),z=function(Ue){return m.createElement(K.a,A()({size:"small"},Ue))};z.Option=K.a.Option;var V=z,Q=r("YMnH"),G=r("H84U"),ee=r("5OYt"),se=function(Pe,Ue){var $e={};for(var Ge in Pe)Object.prototype.hasOwnProperty.call(Pe,Ge)&&Ue.indexOf(Ge)<0&&($e[Ge]=Pe[Ge]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ge=Object.getOwnPropertySymbols(Pe);ht<Ge.length;ht++)Ue.indexOf(Ge[ht])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ge[ht])&&($e[Ge[ht]]=Pe[Ge[ht]]);return $e},ye=function(Ue){var $e=Ue.prefixCls,Ge=Ue.selectPrefixCls,ht=Ue.className,Fe=Ue.size,oe=Ue.locale,rt=se(Ue,["prefixCls","selectPrefixCls","className","size","locale"]),fe=Object(ee.a)(),J=fe.xs,Y=m.useContext(G.b),$=Y.getPrefixCls,de=Y.direction,we=$("pagination",$e),Ce=function(){var pe=m.createElement("span",{className:"".concat(we,"-item-ellipsis")},"\u2022\u2022\u2022"),_e=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(k.a,null)),tt=m.createElement("button",{className:"".concat(we,"-item-link"),type:"button",tabIndex:-1},m.createElement(U.a,null)),gt=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(X.a,{className:"".concat(we,"-item-link-icon")}),pe)),ct=m.createElement("a",{className:"".concat(we,"-item-link")},m.createElement("div",{className:"".concat(we,"-item-container")},m.createElement(j.a,{className:"".concat(we,"-item-link-icon")}),pe));if(de==="rtl"){var je=[tt,_e];_e=je[0],tt=je[1];var Zt=[ct,gt];gt=Zt[0],ct=Zt[1]}return{prevIcon:_e,nextIcon:tt,jumpPrevIcon:gt,jumpNextIcon:ct}},Se=function(pe){var _e=A()(A()({},pe),oe),tt=Fe==="small"||!!(J&&!Fe&&rt.responsive),gt=$("select",Ge),ct=n()(ht,f()({mini:tt},"".concat(we,"-rtl"),de==="rtl"));return m.createElement(w,A()({},rt,{prefixCls:we,selectPrefixCls:gt},Ce(),{className:ct,selectComponentClass:tt?V:K.a,locale:_e}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:O.a},Se)},he=ye,ke=L.a=he},NohK:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=function(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var p=this,d=arguments.length,u=new Array(d),a=0;a<d;a++)u[a]=arguments[a];clearTimeout(m),m=setTimeout(function(){x.apply(p,u)},A)}};L.default=y},Npjl:function(R,L){function r(y,f){return y==null?void 0:y[f]}R.exports=r},Nu4q:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:x}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:A}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:A}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:A}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:x}}]}},name:"picture",theme:"twotone"};L.default=y},"O/iA":function(R,L,r){},O0TS:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("KQeH")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="DownloadOutlined";var i=A.forwardRef(a);L.default=i},O3gP:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("O/iA"),A=r.n(x),m=r("OaEy")},O49L:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("q3R3"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},OELB:function(R,L,r){var y=r("bYtY"),f=1e-4;function x(E){return E.replace(/^\s+|\s+$/g,"")}function A(E,C,_,T){var w=C[1]-C[0],O=_[1]-_[0];if(w===0)return O===0?_[0]:(_[0]+_[1])/2;if(T)if(w>0){if(E<=C[0])return _[0];if(E>=C[1])return _[1]}else{if(E>=C[0])return _[0];if(E<=C[1])return _[1]}else{if(E===C[0])return _[0];if(E===C[1])return _[1]}return(E-C[0])/w*O+_[0]}function m(E,C){switch(E){case"center":case"middle":E="50%";break;case"left":case"top":E="0%";break;case"right":case"bottom":E="100%";break}return typeof E=="string"?x(E).match(/%$/)?parseFloat(E)/100*C:parseFloat(E):E==null?NaN:+E}function p(E,C,_){return C==null&&(C=10),C=Math.min(Math.max(0,C),20),E=(+E).toFixed(C),_?E:+E}function d(E){return E.sort(function(C,_){return C-_}),E}function u(E){if(E=+E,isNaN(E))return 0;for(var C=1,_=0;Math.round(E*C)/C!==E;)C*=10,_++;return _}function a(E){var C=E.toString(),_=C.indexOf("e");if(_>0){var T=+C.slice(_+1);return T<0?-T:0}else{var w=C.indexOf(".");return w<0?0:C.length-1-w}}function i(E,C){var _=Math.log,T=Math.LN10,w=Math.floor(_(E[1]-E[0])/T),O=Math.round(_(Math.abs(C[1]-C[0]))/T),I=Math.min(Math.max(-w+O,0),20);return isFinite(I)?I:20}function t(E,C,_){if(!E[C])return 0;var T=y.reduce(E,function(K,z){return K+(isNaN(z)?0:z)},0);if(T===0)return 0;for(var w=Math.pow(10,_),O=y.map(E,function(K){return(isNaN(K)?0:K)/T*w*100}),I=w*100,k=y.map(O,function(K){return Math.floor(K)}),M=y.reduce(k,function(K,z){return K+z},0),U=y.map(O,function(K,z){return K-k[z]});M<I;){for(var P=Number.NEGATIVE_INFINITY,X=null,F=0,j=U.length;F<j;++F)U[F]>P&&(P=U[F],X=F);++k[X],U[X]=0,++M}return k[C]/w}var s=9007199254740991;function e(E){var C=Math.PI*2;return(E%C+C)%C}function l(E){return E>-f&&E<f}var n=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function o(E){if(E instanceof Date)return E;if(typeof E=="string"){var C=n.exec(E);if(!C)return new Date(NaN);if(C[8]){var _=+C[4]||0;return C[8].toUpperCase()!=="Z"&&(_-=C[8].slice(0,3)),new Date(Date.UTC(+C[1],+(C[2]||1)-1,+C[3]||1,_,+(C[5]||0),+C[6]||0,+C[7]||0))}else return new Date(+C[1],+(C[2]||1)-1,+C[3]||1,+C[4]||0,+(C[5]||0),+C[6]||0,+C[7]||0)}else if(E==null)return new Date(NaN);return new Date(Math.round(E))}function c(E){return Math.pow(10,h(E))}function h(E){if(E===0)return 0;var C=Math.floor(Math.log(E)/Math.LN10);return E/Math.pow(10,C)>=10&&C++,C}function g(E,C){var _=h(E),T=Math.pow(10,_),w=E/T,O;return C?w<1.5?O=1:w<2.5?O=2:w<4?O=3:w<7?O=5:O=10:w<1?O=1:w<2?O=2:w<3?O=3:w<5?O=5:O=10,E=O*T,_>=-20?+E.toFixed(_<0?-_:0):E}function v(E,C){var _=(E.length-1)*C+1,T=Math.floor(_),w=+E[T-1],O=_-T;return O?w+O*(E[T]-w):w}function b(E){E.sort(function(M,U){return k(M,U,0)?-1:1});for(var C=-Infinity,_=1,T=0;T<E.length;){for(var w=E[T].interval,O=E[T].close,I=0;I<2;I++)w[I]<=C&&(w[I]=C,O[I]=I?1:1-_),C=w[I],_=O[I];w[0]===w[1]&&O[0]*O[1]!==1?E.splice(T,1):T++}return E;function k(M,U,P){return M.interval[P]<U.interval[P]||M.interval[P]===U.interval[P]&&(M.close[P]-U.close[P]===(P?-1:1)||!P&&k(M,U,1))}}function S(E){return E-parseFloat(E)>=0}L.linearMap=A,L.parsePercent=m,L.round=p,L.asc=d,L.getPrecision=u,L.getPrecisionSafe=a,L.getPixelPrecision=i,L.getPercentWithPrecision=t,L.MAX_SAFE_INTEGER=s,L.remRadian=e,L.isRadianAroundZero=l,L.parseDate=o,L.quantity=c,L.quantityExponent=h,L.nice=g,L.quantile=v,L.reformIntervals=b,L.isNumeric=S},OKJ2:function(R,L,r){var y=r("KxfA"),f=y.retrieveRawValue,x=r("7aKB"),A=x.getTooltipMarker,m=x.formatTpl,p=r("4NO4"),d=p.getTooltipRenderMode,u=/\{@(.+?)\}/g,a={getDataParams:function(i,t){var s=this.getData(t),e=this.getRawValue(i,t),l=s.getRawIndex(i),n=s.getName(i),o=s.getRawDataItem(i),c=s.getItemVisual(i,"color"),h=s.getItemVisual(i,"borderColor"),g=this.ecModel.getComponent("tooltip"),v=g&&g.get("renderMode"),b=d(v),S=this.mainType,E=S==="series",C=s.userOutput;return{componentType:S,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:E?this.subType:null,seriesIndex:this.seriesIndex,seriesId:E?this.id:null,seriesName:E?this.name:null,name:n,dataIndex:l,data:o,dataType:t,value:e,color:c,borderColor:h,dimensionNames:C?C.dimensionNames:null,encode:C?C.encode:null,marker:A({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(i,t,s,e,l){t=t||"normal";var n=this.getData(s),o=n.getItemModel(i),c=this.getDataParams(i,s);e!=null&&c.value instanceof Array&&(c.value=c.value[e]);var h=o.get(t==="normal"?[l||"label","formatter"]:[t,l||"label","formatter"]);if(typeof h=="function")return c.status=t,c.dimensionIndex=e,h(c);if(typeof h=="string"){var g=m(h,c);return g.replace(u,function(v,b){var S=b.length;return b.charAt(0)==="["&&b.charAt(S-1)==="]"&&(b=+b.slice(1,S-1)),f(n,i,b)})}},getRawValue:function(i,t){return f(this.getData(t),i)},formatTooltip:function(){}};R.exports=a},OLod:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("K3mO"))})(this,function(y){y.lib.Cipher||function(f){var x=y,A=x.lib,m=A.Base,p=A.WordArray,d=A.BufferedBlockAlgorithm,u=x.enc,a=u.Utf8,i=u.Base64,t=x.algo,s=t.EvpKDF,e=A.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(I,k){return this.create(this._ENC_XFORM_MODE,I,k)},createDecryptor:function(I,k){return this.create(this._DEC_XFORM_MODE,I,k)},init:function(I,k,M){this.cfg=this.cfg.extend(M),this._xformMode=I,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?w:C}return function(I){return{encrypt:function(M,U,P){return O(U).encrypt(I,M,U,P)},decrypt:function(M,U,P){return O(U).decrypt(I,M,U,P)}}}}()}),l=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),n=x.mode={},o=A.BlockCipherMode=m.extend({createEncryptor:function(I,k){return this.Encryptor.create(I,k)},createDecryptor:function(I,k){return this.Decryptor.create(I,k)},init:function(I,k){this._cipher=I,this._iv=k}}),c=n.CBC=function(){var O=o.extend();O.Encryptor=O.extend({processBlock:function(M,U){var P=this._cipher,X=P.blockSize;I.call(this,M,U,X),P.encryptBlock(M,U),this._prevBlock=M.slice(U,U+X)}}),O.Decryptor=O.extend({processBlock:function(M,U){var P=this._cipher,X=P.blockSize,F=M.slice(U,U+X);P.decryptBlock(M,U),I.call(this,M,U,X),this._prevBlock=F}});function I(k,M,U){var P,X=this._iv;X?(P=X,this._iv=f):P=this._prevBlock;for(var F=0;F<U;F++)k[M+F]^=P[F]}return O}(),h=x.pad={},g=h.Pkcs7={pad:function(I,k){for(var M=k*4,U=M-I.sigBytes%M,P=U<<24|U<<16|U<<8|U,X=[],F=0;F<U;F+=4)X.push(P);var j=p.create(X,U);I.concat(j)},unpad:function(I){var k=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=k}},v=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var I;e.reset.call(this);var k=this.cfg,M=k.iv,U=k.mode;this._xformMode==this._ENC_XFORM_MODE?I=U.createEncryptor:(I=U.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,M&&M.words):(this._mode=I.call(U,this,M&&M.words),this._mode.__creator=I)},_doProcessBlock:function(I,k){this._mode.processBlock(I,k)},_doFinalize:function(){var I,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),k.unpad(I)),I},blockSize:128/32}),b=A.CipherParams=m.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),S=x.format={},E=S.OpenSSL={stringify:function(I){var k,M=I.ciphertext,U=I.salt;return U?k=p.create([1398893684,1701076831]).concat(U).concat(M):k=M,k.toString(i)},parse:function(I){var k,M=i.parse(I),U=M.words;return U[0]==1398893684&&U[1]==1701076831&&(k=p.create(U.slice(2,4)),U.splice(0,4),M.sigBytes-=16),b.create({ciphertext:M,salt:k})}},C=A.SerializableCipher=m.extend({cfg:m.extend({format:E}),encrypt:function(I,k,M,U){U=this.cfg.extend(U);var P=I.createEncryptor(M,U),X=P.finalize(k),F=P.cfg;return b.create({ciphertext:X,key:M,iv:F.iv,algorithm:I,mode:F.mode,padding:F.padding,blockSize:I.blockSize,formatter:U.format})},decrypt:function(I,k,M,U){U=this.cfg.extend(U),k=this._parse(k,U.format);var P=I.createDecryptor(M,U).finalize(k.ciphertext);return P},_parse:function(I,k){return typeof I=="string"?k.parse(I,this):I}}),_=x.kdf={},T=_.OpenSSL={execute:function(I,k,M,U){U||(U=p.random(64/8));var P=s.create({keySize:k+M}).compute(I,U),X=p.create(P.words.slice(k),M*4);return P.sigBytes=k*4,b.create({key:P,iv:X,salt:U})}},w=A.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:T}),encrypt:function(I,k,M,U){U=this.cfg.extend(U);var P=U.kdf.execute(M,I.keySize,I.ivSize);U.iv=P.iv;var X=C.encrypt.call(this,I,k,P.key,U);return X.mixIn(P),X},decrypt:function(I,k,M,U){U=this.cfg.extend(U),k=this._parse(k,U.format);var P=U.kdf.execute(M,I.keySize,I.ivSize,k.salt);U.iv=P.iv;var X=C.decrypt.call(this,I,k,P.key,U);return X}})}()})},OPEp:function(R,L,r){},OQFs:function(R,L,r){var y=r("KCsZ"),f=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getLineStyle:function(A){var m=f(this,A);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(A){A==null&&(A=1);var m=this.get("type"),p=Math.max(A,2),d=A*4;return m==="solid"||m==null?!1:m==="dashed"?[d,d]:[p,p]}};R.exports=x},OS9S:function(R,L,r){var y=r("bYtY"),f=y.inherits,x=r("Gev7"),A=r("mFDi");function m(u){x.call(this,u),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}m.prototype.incremental=!0,m.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},m.prototype.addDisplayable=function(u,a){a?this._temporaryDisplayables.push(u):this._displayables.push(u),this.dirty()},m.prototype.addDisplayables=function(u,a){a=a||!1;for(var i=0;i<u.length;i++)this.addDisplayable(u[i],a)},m.prototype.eachPendingDisplayable=function(u){for(var a=this._cursor;a<this._displayables.length;a++)u&&u(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)u&&u(this._temporaryDisplayables[a])},m.prototype.update=function(){this.updateTransform();for(var u=this._cursor;u<this._displayables.length;u++){var a=this._displayables[u];a.parent=this,a.update(),a.parent=null}for(var u=0;u<this._temporaryDisplayables.length;u++){var a=this._temporaryDisplayables[u];a.parent=this,a.update(),a.parent=null}},m.prototype.brush=function(u,a){for(var i=this._cursor;i<this._displayables.length;i++){var t=this._displayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===this._cursor?null:this._displayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var t=this._temporaryDisplayables[i];t.beforeBrush&&t.beforeBrush(u),t.brush(u,i===0?null:this._temporaryDisplayables[i-1]),t.afterBrush&&t.afterBrush(u)}this._temporaryDisplayables=[],this.notClear=!0};var p=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var u=new A(Infinity,Infinity,-Infinity,-Infinity),a=0;a<this._displayables.length;a++){var i=this._displayables[a],t=i.getBoundingRect().clone();i.needLocalTransform()&&t.applyTransform(i.getLocalTransform(p)),u.union(t)}this._rect=u}return this._rect},m.prototype.contain=function(u,a){var i=this.transformCoordToLocal(u,a),t=this.getBoundingRect();if(t.contain(i[0],i[1]))for(var s=0;s<this._displayables.length;s++){var e=this._displayables[s];if(e.contain(u,a))return!0}return!1},f(m,x);var d=m;R.exports=d},OUJF:function(R,L,r){var y=r("ProS"),f=r("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(x,A){var m=A.getComponent("timeline");return m&&x.currentIndex!=null&&(m.setCurrentIndex(x.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),A.resetOption("timeline"),f.defaults({currentIndex:m.option.currentIndex},x)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(x,A){var m=A.getComponent("timeline");m&&x.playState!=null&&m.setPlayState(x.playState)})},OXB0:function(R,L,r){var y=r("T4UG"),f=r("MwEJ"),x=r("IDmD"),A=y.extend({type:"series.heatmap",getInitialData:function(m,p){return f(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=x.get(this.get("coordinateSystem"));if(m&&m.dimensions)return m.dimensions[0]==="lng"&&m.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});R.exports=A},OaEy:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("bKJz"),A=r.n(x),m=r("R9oj")},"Of+w":function(R,L,r){var y=r("Cwc5"),f=r("Kz5y"),x=y(f,"WeakMap");R.exports=x},Ol7k:function(R,L,r){"use strict";var y=r("PKem"),f=r("ZX9x");y.b.Sider=f.b,L.a=y.b},OlYY:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("ItGF"),p=r("4NO4"),d=r("UOVi"),u=r("zDms"),a=A.each,i=d.eachAxisDim,t=x.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(n,o,c){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var h=s(n);this.settledOption=h,this.mergeDefaultAndTheme(n,c),this.doInit(h)},mergeOption:function(n){var o=s(n);A.merge(this.option,n,!0),A.merge(this.settledOption,o,!0),this.doInit(o)},doInit:function(n){var o=this.option;m.canvasSupported||(o.realtime=!1),this._setDefaultThrottle(n),e(this,n);var c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(h,g){this._rangePropMode[g]==="value"&&(o[h[0]]=c[h[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var n=this._axisProxies;this.eachTargetAxis(function(o,c,h,g){var v=this.dependentModels[o.axis][c],b=v.__dzAxisProxy||(v.__dzAxisProxy=new u(o.name,c,this,g));n[o.name+"_"+c]=b},this)},_resetTarget:function(){var n=this.option,o=this._judgeAutoMode();i(function(c){var h=c.axisIndex;n[h]=p.normalizeToArray(n[h])},this),o==="axisIndex"?this._autoSetAxisIndex():o==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var n=this.option,o=!1;i(function(h){n[h.axisIndex]!=null&&(o=!0)},this);var c=n.orient;if(c==null&&o)return"orient";if(!o)return c==null&&(n.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var n=!0,o=this.get("orient",!0),c=this.option,h=this.dependentModels;if(n){var g=o==="vertical"?"y":"x";h[g+"Axis"].length?(c[g+"AxisIndex"]=[0],n=!1):a(h.singleAxis,function(v){n&&v.get("orient",!0)===o&&(c.singleAxisIndex=[v.componentIndex],n=!1)})}n&&i(function(v){if(!n)return;var b=[],S=this.dependentModels[v.axis];if(S.length&&!b.length)for(var E=0,C=S.length;E<C;E++)S[E].get("type")==="category"&&b.push(E);c[v.axisIndex]=b,b.length&&(n=!1)},this),n&&this.ecModel.eachSeries(function(v){this._isSeriesHasAllAxesTypeOf(v,"value")&&i(function(b){var S=c[b.axisIndex],E=v.get(b.axisIndex),C=v.get(b.axisId),_=v.ecModel.queryComponents({mainType:b.axis,index:E,id:C})[0];E=_.componentIndex,A.indexOf(S,E)<0&&S.push(E)})},this)},_autoSetOrient:function(){var n;this.eachTargetAxis(function(o){!n&&(n=o.name)},this),this.option.orient=n==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(n,o){var c=!0;return i(function(h){var g=n.get(h.axisIndex),v=this.dependentModels[h.axis][g];(!v||v.get("type")!==o)&&(c=!1)},this),c},_setDefaultThrottle:function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var n;return i(function(o){if(n==null){var c=this.get(o.axisIndex);c.length&&(n=this.dependentModels[o.axis][c[0]])}},this),n},eachTargetAxis:function(n,o){var c=this.ecModel;i(function(h){a(this.get(h.axisIndex),function(g){n.call(o,h,g,this,c)},this)},this)},getAxisProxy:function(n,o){return this._axisProxies[n+"_"+o]},getAxisModel:function(n,o){var c=this.getAxisProxy(n,o);return c&&c.getAxisModel()},setRawRange:function(n){var o=this.option,c=this.settledOption;a([["start","startValue"],["end","endValue"]],function(h){(n[h[0]]!=null||n[h[1]]!=null)&&(o[h[0]]=c[h[0]]=n[h[0]],o[h[1]]=c[h[1]]=n[h[1]])},this),e(this,n)},setCalculatedRange:function(n){var o=this.option;a(["start","startValue","end","endValue"],function(c){o[c]=n[c]})},getPercentRange:function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},getValueRange:function(n,o){if(n==null&&o==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(n,o).getDataValueWindow()},findRepresentativeAxisProxy:function(n){if(n)return n.__dzAxisProxy;var o=this._axisProxies;for(var c in o)if(o.hasOwnProperty(c)&&o[c].hostedBy(this))return o[c];for(var c in o)if(o.hasOwnProperty(c)&&!o[c].hostedBy(this))return o[c]},getRangePropMode:function(){return this._rangePropMode.slice()}});function s(n){var o={};return a(["start","end","startValue","endValue","throttle"],function(c){n.hasOwnProperty(c)&&(o[c]=n[c])}),o}function e(n,o){var c=n._rangePropMode,h=n.get("rangeMode");a([["start","startValue"],["end","endValue"]],function(g,v){var b=o[g[0]]!=null,S=o[g[1]]!=null;b&&!S?c[v]="percent":!b&&S?c[v]="value":h?c[v]=h[v]:b&&(c[v]="percent")})}var l=t;R.exports=l},OnYD:function(R,L,r){},"Oy/b":function(R,L,r){(function(f,x){R.exports=x()})(typeof self!="undefined"?self:this,function(){return function(y){var f={};function x(A){if(f[A])return f[A].exports;var m=f[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,x),m.l=!0,m.exports}return x.m=y,x.c=f,x.d=function(A,m,p){x.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:p})},x.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},x.t=function(A,m){if(m&1&&(A=x(A)),m&8)return A;if(m&4&&typeof A=="object"&&A&&A.__esModule)return A;var p=Object.create(null);if(x.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:A}),m&2&&typeof A!="string")for(var d in A)x.d(p,d,function(u){return A[u]}.bind(null,d));return p},x.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return x.d(m,"a",m),m},x.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},x.p="",x(x.s=1)}([function(y,f,x){},function(y,f,x){"use strict";x.r(f);var A=x(0),m=function(){function Nt(ce,xe,Ie){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=xe,this.end=Ie}return Nt.range=function(xe,Ie){return Ie?!xe||!xe.loc||!Ie.loc||xe.loc.lexer!==Ie.loc.lexer?null:new Nt(xe.loc.lexer,xe.loc.start,Ie.loc.end):xe&&xe.loc},Nt}(),p=function(){function Nt(xe,Ie){this.text=void 0,this.loc=void 0,this.text=xe,this.loc=Ie}var ce=Nt.prototype;return ce.range=function(Ie,Je){return new Nt(Je,m.range(this,Ie))},Nt}(),d=function Nt(ce,xe){this.position=void 0;var Ie="KaTeX parse error: "+ce,Je,Dt=xe&&xe.loc;if(Dt&&Dt.start<=Dt.end){var lr=Dt.lexer.input;Je=Dt.start;var Xr=Dt.end;Je===lr.length?Ie+=" at end of input: ":Ie+=" at position "+(Je+1)+": ";var hn=lr.slice(Je,Xr).replace(/[^]/g,"$&\u0332"),Nn;Je>15?Nn="\u2026"+lr.slice(Je-15,Je):Nn=lr.slice(0,Je);var ui;Xr+15<lr.length?ui=lr.slice(Xr,Xr+15)+"\u2026":ui=lr.slice(Xr),Ie+=Nn+hn+ui}var xi=new Error(Ie);return xi.name="ParseError",xi.__proto__=Nt.prototype,xi.position=Je,xi};d.prototype.__proto__=Error.prototype;var u=d,a=function(ce,xe){return ce.indexOf(xe)!==-1},i=function(ce,xe){return ce===void 0?xe:ce},t=/([A-Z])/g,s=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},l=/[&><"']/g;function n(Nt){return String(Nt).replace(l,function(ce){return e[ce]})}var o=function Nt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Nt(ce.body[0]):ce:ce.type==="font"?Nt(ce.body):ce},c=function(ce){var xe=o(ce);return xe.type==="mathord"||xe.type==="textord"||xe.type==="atom"},h=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},g=function(ce){var xe=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ce);return xe!=null?xe[1]:"_relative"},v={contains:a,deflt:i,escape:n,hyphenate:s,getBaseElem:o,isCharacterBox:c,protocolFromUrl:g},b=function(){function Nt(xe){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,xe=xe||{},this.displayMode=v.deflt(xe.displayMode,!1),this.output=v.deflt(xe.output,"htmlAndMathml"),this.leqno=v.deflt(xe.leqno,!1),this.fleqn=v.deflt(xe.fleqn,!1),this.throwOnError=v.deflt(xe.throwOnError,!0),this.errorColor=v.deflt(xe.errorColor,"#cc0000"),this.macros=xe.macros||{},this.minRuleThickness=Math.max(0,v.deflt(xe.minRuleThickness,0)),this.colorIsTextColor=v.deflt(xe.colorIsTextColor,!1),this.strict=v.deflt(xe.strict,"warn"),this.trust=v.deflt(xe.trust,!1),this.maxSize=Math.max(0,v.deflt(xe.maxSize,Infinity)),this.maxExpand=Math.max(0,v.deflt(xe.maxExpand,1e3))}var ce=Nt.prototype;return ce.reportNonstrict=function(Ie,Je,Dt){var lr=this.strict;if(typeof lr=="function"&&(lr=lr(Ie,Je,Dt)),!lr||lr==="ignore")return;if(lr===!0||lr==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(Je+" ["+Ie+"]"),Dt);lr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Je+" ["+Ie+"]"))},ce.useStrictBehavior=function(Ie,Je,Dt){var lr=this.strict;if(typeof lr=="function")try{lr=lr(Ie,Je,Dt)}catch(Xr){lr="error"}return!lr||lr==="ignore"?!1:lr===!0||lr==="error"?!0:lr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Je+" ["+Ie+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Je+" ["+Ie+"]")),!1)},ce.isTrusted=function(Ie){Ie.url&&!Ie.protocol&&(Ie.protocol=v.protocolFromUrl(Ie.url));var Je=typeof this.trust=="function"?this.trust(Ie):this.trust;return Boolean(Je)},Nt}(),S=function(){function Nt(xe,Ie,Je){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=xe,this.size=Ie,this.cramped=Je}var ce=Nt.prototype;return ce.sup=function(){return M[U[this.id]]},ce.sub=function(){return M[P[this.id]]},ce.fracNum=function(){return M[X[this.id]]},ce.fracDen=function(){return M[F[this.id]]},ce.cramp=function(){return M[j[this.id]]},ce.text=function(){return M[K[this.id]]},ce.isTight=function(){return this.size>=2},Nt}(),E=0,C=1,_=2,T=3,w=4,O=5,I=6,k=7,M=[new S(E,0,!1),new S(C,0,!0),new S(_,1,!1),new S(T,1,!0),new S(w,2,!1),new S(O,2,!0),new S(I,3,!1),new S(k,3,!0)],U=[w,O,w,O,I,k,I,k],P=[O,O,O,O,k,k,k,k],X=[_,T,w,O,I,k,I,k],F=[T,T,O,O,k,k,k,k],j=[C,C,T,T,O,O,k,k],K=[E,C,_,T,_,T,_,T],z={DISPLAY:M[E],TEXT:M[_],SCRIPT:M[w],SCRIPTSCRIPT:M[I]},V=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(Nt){for(var ce=0;ce<V.length;ce++)for(var xe=V[ce],Ie=0;Ie<xe.blocks.length;Ie++){var Je=xe.blocks[Ie];if(Nt>=Je[0]&&Nt<=Je[1])return xe.name}return null}var G=[];V.forEach(function(Nt){return Nt.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function ee(Nt){for(var ce=0;ce<G.length;ce+=2)if(Nt>=G[ce]&&Nt<=G[ce+1])return!0;return!1}var se=80,ye=function(ce,xe){return"M95,"+(622+ce+xe)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+ce/2.075+" -"+ce+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+ce)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+ce)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},he=function(ce,xe){return"M263,"+(601+ce+xe)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+ce/2.084+" -"+ce+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+ce)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+ce)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},ke=function(ce,xe){return"M983 "+(10+ce+xe)+`
l`+ce/3.13+" -"+ce+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+ce)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+ce)+" "+xe+"h400000v"+(40+ce)+"h-400000z"},Pe=function(ce,xe){return"M424,"+(2398+ce+xe)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+ce/4.223+" -"+ce+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+ce)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+ce)+" "+xe+`
h400000v`+(40+ce)+"h-400000z"},Ue=function(ce,xe){return"M473,"+(2713+ce+xe)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ce/5.298+" -"+ce+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ce)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+ce)+" "+xe+"h400000v"+(40+ce)+"H1017.7z"},$e=function(ce,xe,Ie){var Je=Ie-54-xe-ce;return"M702 "+(ce+xe)+"H400000"+(40+ce)+`
H742v`+Je+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+xe+"H400000v"+(40+ce)+"H742z"},Ge=function(ce,xe,Ie){xe=1e3*xe;var Je="";switch(ce){case"sqrtMain":Je=ye(xe,se);break;case"sqrtSize1":Je=he(xe,se);break;case"sqrtSize2":Je=ke(xe,se);break;case"sqrtSize3":Je=Pe(xe,se);break;case"sqrtSize4":Je=Ue(xe,se);break;case"sqrtTall":Je=$e(xe,se,Ie)}return Je},ht={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Fe=function(){function Nt(xe){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=xe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=Nt.prototype;return ce.hasClass=function(Ie){return v.contains(this.classes,Ie)},ce.toNode=function(){for(var Ie=document.createDocumentFragment(),Je=0;Je<this.children.length;Je++)Ie.appendChild(this.children[Je].toNode());return Ie},ce.toMarkup=function(){for(var Ie="",Je=0;Je<this.children.length;Je++)Ie+=this.children[Je].toMarkup();return Ie},ce.toText=function(){var Ie=function(Dt){return Dt.toText()};return this.children.map(Ie).join("")},Nt}(),oe=function(ce){return ce.filter(function(xe){return xe}).join(" ")},rt=function(ce,xe,Ie){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Ie||{},xe){xe.style.isTight()&&this.classes.push("mtight");var Je=xe.getColor();Je&&(this.style.color=Je)}},fe=function(ce){var xe=document.createElement(ce);xe.className=oe(this.classes);for(var Ie in this.style)this.style.hasOwnProperty(Ie)&&(xe.style[Ie]=this.style[Ie]);for(var Je in this.attributes)this.attributes.hasOwnProperty(Je)&&xe.setAttribute(Je,this.attributes[Je]);for(var Dt=0;Dt<this.children.length;Dt++)xe.appendChild(this.children[Dt].toNode());return xe},J=function(ce){var xe="<"+ce;this.classes.length&&(xe+=' class="'+v.escape(oe(this.classes))+'"');var Ie="";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie+=v.hyphenate(Je)+":"+this.style[Je]+";");Ie&&(xe+=' style="'+v.escape(Ie)+'"');for(var Dt in this.attributes)this.attributes.hasOwnProperty(Dt)&&(xe+=" "+Dt+'="'+v.escape(this.attributes[Dt])+'"');xe+=">";for(var lr=0;lr<this.children.length;lr++)xe+=this.children[lr].toMarkup();return xe+="</"+ce+">",xe},Y=function(){function Nt(xe,Ie,Je,Dt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,rt.call(this,xe,Je,Dt),this.children=Ie||[]}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return v.contains(this.classes,Ie)},ce.toNode=function(){return fe.call(this,"span")},ce.toMarkup=function(){return J.call(this,"span")},Nt}(),$=function(){function Nt(xe,Ie,Je,Dt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,rt.call(this,Ie,Dt),this.children=Je||[],this.setAttribute("href",xe)}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.hasClass=function(Ie){return v.contains(this.classes,Ie)},ce.toNode=function(){return fe.call(this,"a")},ce.toMarkup=function(){return J.call(this,"a")},Nt}(),de=function(){function Nt(xe,Ie,Je){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=Ie,this.src=xe,this.classes=["mord"],this.style=Je}var ce=Nt.prototype;return ce.hasClass=function(Ie){return v.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createElement("img");Ie.src=this.src,Ie.alt=this.alt,Ie.className="mord";for(var Je in this.style)this.style.hasOwnProperty(Je)&&(Ie.style[Je]=this.style[Je]);return Ie},ce.toMarkup=function(){var Ie="<img src='"+this.src+" 'alt='"+this.alt+"' ",Je="";for(var Dt in this.style)this.style.hasOwnProperty(Dt)&&(Je+=v.hyphenate(Dt)+":"+this.style[Dt]+";");return Je&&(Ie+=' style="'+v.escape(Je)+'"'),Ie+="'/>",Ie},Nt}(),we={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function Nt(xe,Ie,Je,Dt,lr,Xr,hn,Nn){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=xe,this.height=Ie||0,this.depth=Je||0,this.italic=Dt||0,this.skew=lr||0,this.width=Xr||0,this.classes=hn||[],this.style=Nn||{},this.maxFontSize=0;var ui=Q(this.text.charCodeAt(0));ui&&this.classes.push(ui+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=we[this.text])}var ce=Nt.prototype;return ce.hasClass=function(Ie){return v.contains(this.classes,Ie)},ce.toNode=function(){var Ie=document.createTextNode(this.text),Je=null;this.italic>0&&(Je=document.createElement("span"),Je.style.marginRight=this.italic+"em"),this.classes.length>0&&(Je=Je||document.createElement("span"),Je.className=oe(this.classes));for(var Dt in this.style)this.style.hasOwnProperty(Dt)&&(Je=Je||document.createElement("span"),Je.style[Dt]=this.style[Dt]);return Je?(Je.appendChild(Ie),Je):Ie},ce.toMarkup=function(){var Ie=!1,Je="<span";this.classes.length&&(Ie=!0,Je+=' class="',Je+=v.escape(oe(this.classes)),Je+='"');var Dt="";this.italic>0&&(Dt+="margin-right:"+this.italic+"em;");for(var lr in this.style)this.style.hasOwnProperty(lr)&&(Dt+=v.hyphenate(lr)+":"+this.style[lr]+";");Dt&&(Ie=!0,Je+=' style="'+v.escape(Dt)+'"');var Xr=v.escape(this.text);return Ie?(Je+=">",Je+=Xr,Je+="</span>",Je):Xr},Nt}(),Se=function(){function Nt(xe,Ie){this.children=void 0,this.attributes=void 0,this.children=xe||[],this.attributes=Ie||{}}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"svg");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Je.setAttribute(Dt,this.attributes[Dt]);for(var lr=0;lr<this.children.length;lr++)Je.appendChild(this.children[lr].toNode());return Je},ce.toMarkup=function(){var Ie="<svg";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");Ie+=">";for(var Dt=0;Dt<this.children.length;Dt++)Ie+=this.children[Dt].toMarkup();return Ie+="</svg>",Ie},Nt}(),le=function(){function Nt(xe,Ie){this.pathName=void 0,this.alternate=void 0,this.pathName=xe,this.alternate=Ie}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"path");return this.alternate?Je.setAttribute("d",this.alternate):Je.setAttribute("d",ht[this.pathName]),Je},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ht[this.pathName]+"'/>"},Nt}(),pe=function(){function Nt(xe){this.attributes=void 0,this.attributes=xe||{}}var ce=Nt.prototype;return ce.toNode=function(){var Ie="http://www.w3.org/2000/svg",Je=document.createElementNS(Ie,"line");for(var Dt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Dt)&&Je.setAttribute(Dt,this.attributes[Dt]);return Je},ce.toMarkup=function(){var Ie="<line";for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+"='"+this.attributes[Je]+"'");return Ie+="/>",Ie},Nt}();function _e(Nt){if(Nt instanceof Ce)return Nt;throw new Error("Expected symbolNode but got "+String(Nt)+".")}function tt(Nt){if(Nt instanceof Y)return Nt;throw new Error("Expected span<HtmlDomNode> but got "+String(Nt)+".")}var gt={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},ct={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},je={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Zt(Nt,ce){gt[Nt]=ce}function ut(Nt,ce,xe){if(!gt[ce])throw new Error("Font metrics not found for font: "+ce+".");var Ie=Nt.charCodeAt(0),Je=gt[ce][Ie];if(!Je&&Nt[0]in je&&(Ie=je[Nt[0]].charCodeAt(0),Je=gt[ce][Ie]),!Je&&xe==="text"&&(ee(Ie)&&(Je=gt[ce][77])),Je)return{depth:Je[0],height:Je[1],italic:Je[2],skew:Je[3],width:Je[4]}}var Ht={};function dr(Nt){var ce;if(Nt>=5?ce=0:Nt>=3?ce=1:ce=2,!Ht[ce]){var xe=Ht[ce]={cssEmPerMu:ct.quad[ce]/18};for(var Ie in ct)ct.hasOwnProperty(Ie)&&(xe[Ie]=ct[Ie][ce])}return Ht[ce]}var Vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Gt={math:{},text:{}},Ve=Gt;function me(Nt,ce,xe,Ie,Je,Dt){Gt[Nt][Je]={font:ce,group:xe,replace:Ie},Dt&&Ie&&(Gt[Nt][Ie]=Gt[Nt][Je])}var te="math",Ze="text",Xe="main",ue="ams",St="accent-token",Qt="bin",dt="close",Jt="inner",$t="mathord",tn="op-token",kt="open",tr="punct",Bt="rel",ft="spacing",it="textord";me(te,Xe,Bt,"\u2261","\\equiv",!0),me(te,Xe,Bt,"\u227A","\\prec",!0),me(te,Xe,Bt,"\u227B","\\succ",!0),me(te,Xe,Bt,"\u223C","\\sim",!0),me(te,Xe,Bt,"\u22A5","\\perp"),me(te,Xe,Bt,"\u2AAF","\\preceq",!0),me(te,Xe,Bt,"\u2AB0","\\succeq",!0),me(te,Xe,Bt,"\u2243","\\simeq",!0),me(te,Xe,Bt,"\u2223","\\mid",!0),me(te,Xe,Bt,"\u226A","\\ll",!0),me(te,Xe,Bt,"\u226B","\\gg",!0),me(te,Xe,Bt,"\u224D","\\asymp",!0),me(te,Xe,Bt,"\u2225","\\parallel"),me(te,Xe,Bt,"\u22C8","\\bowtie",!0),me(te,Xe,Bt,"\u2323","\\smile",!0),me(te,Xe,Bt,"\u2291","\\sqsubseteq",!0),me(te,Xe,Bt,"\u2292","\\sqsupseteq",!0),me(te,Xe,Bt,"\u2250","\\doteq",!0),me(te,Xe,Bt,"\u2322","\\frown",!0),me(te,Xe,Bt,"\u220B","\\ni",!0),me(te,Xe,Bt,"\u221D","\\propto",!0),me(te,Xe,Bt,"\u22A2","\\vdash",!0),me(te,Xe,Bt,"\u22A3","\\dashv",!0),me(te,Xe,Bt,"\u220B","\\owns"),me(te,Xe,tr,".","\\ldotp"),me(te,Xe,tr,"\u22C5","\\cdotp"),me(te,Xe,it,"#","\\#"),me(Ze,Xe,it,"#","\\#"),me(te,Xe,it,"&","\\&"),me(Ze,Xe,it,"&","\\&"),me(te,Xe,it,"\u2135","\\aleph",!0),me(te,Xe,it,"\u2200","\\forall",!0),me(te,Xe,it,"\u210F","\\hbar",!0),me(te,Xe,it,"\u2203","\\exists",!0),me(te,Xe,it,"\u2207","\\nabla",!0),me(te,Xe,it,"\u266D","\\flat",!0),me(te,Xe,it,"\u2113","\\ell",!0),me(te,Xe,it,"\u266E","\\natural",!0),me(te,Xe,it,"\u2663","\\clubsuit",!0),me(te,Xe,it,"\u2118","\\wp",!0),me(te,Xe,it,"\u266F","\\sharp",!0),me(te,Xe,it,"\u2662","\\diamondsuit",!0),me(te,Xe,it,"\u211C","\\Re",!0),me(te,Xe,it,"\u2661","\\heartsuit",!0),me(te,Xe,it,"\u2111","\\Im",!0),me(te,Xe,it,"\u2660","\\spadesuit",!0),me(Ze,Xe,it,"\xA7","\\S",!0),me(Ze,Xe,it,"\xB6","\\P",!0),me(te,Xe,it,"\u2020","\\dag"),me(Ze,Xe,it,"\u2020","\\dag"),me(Ze,Xe,it,"\u2020","\\textdagger"),me(te,Xe,it,"\u2021","\\ddag"),me(Ze,Xe,it,"\u2021","\\ddag"),me(Ze,Xe,it,"\u2021","\\textdaggerdbl"),me(te,Xe,dt,"\u23B1","\\rmoustache",!0),me(te,Xe,kt,"\u23B0","\\lmoustache",!0),me(te,Xe,dt,"\u27EF","\\rgroup",!0),me(te,Xe,kt,"\u27EE","\\lgroup",!0),me(te,Xe,Qt,"\u2213","\\mp",!0),me(te,Xe,Qt,"\u2296","\\ominus",!0),me(te,Xe,Qt,"\u228E","\\uplus",!0),me(te,Xe,Qt,"\u2293","\\sqcap",!0),me(te,Xe,Qt,"\u2217","\\ast"),me(te,Xe,Qt,"\u2294","\\sqcup",!0),me(te,Xe,Qt,"\u25EF","\\bigcirc"),me(te,Xe,Qt,"\u2219","\\bullet"),me(te,Xe,Qt,"\u2021","\\ddagger"),me(te,Xe,Qt,"\u2240","\\wr",!0),me(te,Xe,Qt,"\u2A3F","\\amalg"),me(te,Xe,Qt,"&","\\And"),me(te,Xe,Bt,"\u27F5","\\longleftarrow",!0),me(te,Xe,Bt,"\u21D0","\\Leftarrow",!0),me(te,Xe,Bt,"\u27F8","\\Longleftarrow",!0),me(te,Xe,Bt,"\u27F6","\\longrightarrow",!0),me(te,Xe,Bt,"\u21D2","\\Rightarrow",!0),me(te,Xe,Bt,"\u27F9","\\Longrightarrow",!0),me(te,Xe,Bt,"\u2194","\\leftrightarrow",!0),me(te,Xe,Bt,"\u27F7","\\longleftrightarrow",!0),me(te,Xe,Bt,"\u21D4","\\Leftrightarrow",!0),me(te,Xe,Bt,"\u27FA","\\Longleftrightarrow",!0),me(te,Xe,Bt,"\u21A6","\\mapsto",!0),me(te,Xe,Bt,"\u27FC","\\longmapsto",!0),me(te,Xe,Bt,"\u2197","\\nearrow",!0),me(te,Xe,Bt,"\u21A9","\\hookleftarrow",!0),me(te,Xe,Bt,"\u21AA","\\hookrightarrow",!0),me(te,Xe,Bt,"\u2198","\\searrow",!0),me(te,Xe,Bt,"\u21BC","\\leftharpoonup",!0),me(te,Xe,Bt,"\u21C0","\\rightharpoonup",!0),me(te,Xe,Bt,"\u2199","\\swarrow",!0),me(te,Xe,Bt,"\u21BD","\\leftharpoondown",!0),me(te,Xe,Bt,"\u21C1","\\rightharpoondown",!0),me(te,Xe,Bt,"\u2196","\\nwarrow",!0),me(te,Xe,Bt,"\u21CC","\\rightleftharpoons",!0),me(te,ue,Bt,"\u226E","\\nless",!0),me(te,ue,Bt,"\uE010","\\@nleqslant"),me(te,ue,Bt,"\uE011","\\@nleqq"),me(te,ue,Bt,"\u2A87","\\lneq",!0),me(te,ue,Bt,"\u2268","\\lneqq",!0),me(te,ue,Bt,"\uE00C","\\@lvertneqq"),me(te,ue,Bt,"\u22E6","\\lnsim",!0),me(te,ue,Bt,"\u2A89","\\lnapprox",!0),me(te,ue,Bt,"\u2280","\\nprec",!0),me(te,ue,Bt,"\u22E0","\\npreceq",!0),me(te,ue,Bt,"\u22E8","\\precnsim",!0),me(te,ue,Bt,"\u2AB9","\\precnapprox",!0),me(te,ue,Bt,"\u2241","\\nsim",!0),me(te,ue,Bt,"\uE006","\\@nshortmid"),me(te,ue,Bt,"\u2224","\\nmid",!0),me(te,ue,Bt,"\u22AC","\\nvdash",!0),me(te,ue,Bt,"\u22AD","\\nvDash",!0),me(te,ue,Bt,"\u22EA","\\ntriangleleft"),me(te,ue,Bt,"\u22EC","\\ntrianglelefteq",!0),me(te,ue,Bt,"\u228A","\\subsetneq",!0),me(te,ue,Bt,"\uE01A","\\@varsubsetneq"),me(te,ue,Bt,"\u2ACB","\\subsetneqq",!0),me(te,ue,Bt,"\uE017","\\@varsubsetneqq"),me(te,ue,Bt,"\u226F","\\ngtr",!0),me(te,ue,Bt,"\uE00F","\\@ngeqslant"),me(te,ue,Bt,"\uE00E","\\@ngeqq"),me(te,ue,Bt,"\u2A88","\\gneq",!0),me(te,ue,Bt,"\u2269","\\gneqq",!0),me(te,ue,Bt,"\uE00D","\\@gvertneqq"),me(te,ue,Bt,"\u22E7","\\gnsim",!0),me(te,ue,Bt,"\u2A8A","\\gnapprox",!0),me(te,ue,Bt,"\u2281","\\nsucc",!0),me(te,ue,Bt,"\u22E1","\\nsucceq",!0),me(te,ue,Bt,"\u22E9","\\succnsim",!0),me(te,ue,Bt,"\u2ABA","\\succnapprox",!0),me(te,ue,Bt,"\u2246","\\ncong",!0),me(te,ue,Bt,"\uE007","\\@nshortparallel"),me(te,ue,Bt,"\u2226","\\nparallel",!0),me(te,ue,Bt,"\u22AF","\\nVDash",!0),me(te,ue,Bt,"\u22EB","\\ntriangleright"),me(te,ue,Bt,"\u22ED","\\ntrianglerighteq",!0),me(te,ue,Bt,"\uE018","\\@nsupseteqq"),me(te,ue,Bt,"\u228B","\\supsetneq",!0),me(te,ue,Bt,"\uE01B","\\@varsupsetneq"),me(te,ue,Bt,"\u2ACC","\\supsetneqq",!0),me(te,ue,Bt,"\uE019","\\@varsupsetneqq"),me(te,ue,Bt,"\u22AE","\\nVdash",!0),me(te,ue,Bt,"\u2AB5","\\precneqq",!0),me(te,ue,Bt,"\u2AB6","\\succneqq",!0),me(te,ue,Bt,"\uE016","\\@nsubseteqq"),me(te,ue,Qt,"\u22B4","\\unlhd"),me(te,ue,Qt,"\u22B5","\\unrhd"),me(te,ue,Bt,"\u219A","\\nleftarrow",!0),me(te,ue,Bt,"\u219B","\\nrightarrow",!0),me(te,ue,Bt,"\u21CD","\\nLeftarrow",!0),me(te,ue,Bt,"\u21CF","\\nRightarrow",!0),me(te,ue,Bt,"\u21AE","\\nleftrightarrow",!0),me(te,ue,Bt,"\u21CE","\\nLeftrightarrow",!0),me(te,ue,Bt,"\u25B3","\\vartriangle"),me(te,ue,it,"\u210F","\\hslash"),me(te,ue,it,"\u25BD","\\triangledown"),me(te,ue,it,"\u25CA","\\lozenge"),me(te,ue,it,"\u24C8","\\circledS"),me(te,ue,it,"\xAE","\\circledR"),me(Ze,ue,it,"\xAE","\\circledR"),me(te,ue,it,"\u2221","\\measuredangle",!0),me(te,ue,it,"\u2204","\\nexists"),me(te,ue,it,"\u2127","\\mho"),me(te,ue,it,"\u2132","\\Finv",!0),me(te,ue,it,"\u2141","\\Game",!0),me(te,ue,it,"\u2035","\\backprime"),me(te,ue,it,"\u25B2","\\blacktriangle"),me(te,ue,it,"\u25BC","\\blacktriangledown"),me(te,ue,it,"\u25A0","\\blacksquare"),me(te,ue,it,"\u29EB","\\blacklozenge"),me(te,ue,it,"\u2605","\\bigstar"),me(te,ue,it,"\u2222","\\sphericalangle",!0),me(te,ue,it,"\u2201","\\complement",!0),me(te,ue,it,"\xF0","\\eth",!0),me(te,ue,it,"\u2571","\\diagup"),me(te,ue,it,"\u2572","\\diagdown"),me(te,ue,it,"\u25A1","\\square"),me(te,ue,it,"\u25A1","\\Box"),me(te,ue,it,"\u25CA","\\Diamond"),me(te,ue,it,"\xA5","\\yen",!0),me(Ze,ue,it,"\xA5","\\yen",!0),me(te,ue,it,"\u2713","\\checkmark",!0),me(Ze,ue,it,"\u2713","\\checkmark"),me(te,ue,it,"\u2136","\\beth",!0),me(te,ue,it,"\u2138","\\daleth",!0),me(te,ue,it,"\u2137","\\gimel",!0),me(te,ue,it,"\u03DD","\\digamma",!0),me(te,ue,it,"\u03F0","\\varkappa"),me(te,ue,kt,"\u250C","\\ulcorner",!0),me(te,ue,dt,"\u2510","\\urcorner",!0),me(te,ue,kt,"\u2514","\\llcorner",!0),me(te,ue,dt,"\u2518","\\lrcorner",!0),me(te,ue,Bt,"\u2266","\\leqq",!0),me(te,ue,Bt,"\u2A7D","\\leqslant",!0),me(te,ue,Bt,"\u2A95","\\eqslantless",!0),me(te,ue,Bt,"\u2272","\\lesssim",!0),me(te,ue,Bt,"\u2A85","\\lessapprox",!0),me(te,ue,Bt,"\u224A","\\approxeq",!0),me(te,ue,Qt,"\u22D6","\\lessdot"),me(te,ue,Bt,"\u22D8","\\lll",!0),me(te,ue,Bt,"\u2276","\\lessgtr",!0),me(te,ue,Bt,"\u22DA","\\lesseqgtr",!0),me(te,ue,Bt,"\u2A8B","\\lesseqqgtr",!0),me(te,ue,Bt,"\u2251","\\doteqdot"),me(te,ue,Bt,"\u2253","\\risingdotseq",!0),me(te,ue,Bt,"\u2252","\\fallingdotseq",!0),me(te,ue,Bt,"\u223D","\\backsim",!0),me(te,ue,Bt,"\u22CD","\\backsimeq",!0),me(te,ue,Bt,"\u2AC5","\\subseteqq",!0),me(te,ue,Bt,"\u22D0","\\Subset",!0),me(te,ue,Bt,"\u228F","\\sqsubset",!0),me(te,ue,Bt,"\u227C","\\preccurlyeq",!0),me(te,ue,Bt,"\u22DE","\\curlyeqprec",!0),me(te,ue,Bt,"\u227E","\\precsim",!0),me(te,ue,Bt,"\u2AB7","\\precapprox",!0),me(te,ue,Bt,"\u22B2","\\vartriangleleft"),me(te,ue,Bt,"\u22B4","\\trianglelefteq"),me(te,ue,Bt,"\u22A8","\\vDash",!0),me(te,ue,Bt,"\u22AA","\\Vvdash",!0),me(te,ue,Bt,"\u2323","\\smallsmile"),me(te,ue,Bt,"\u2322","\\smallfrown"),me(te,ue,Bt,"\u224F","\\bumpeq",!0),me(te,ue,Bt,"\u224E","\\Bumpeq",!0),me(te,ue,Bt,"\u2267","\\geqq",!0),me(te,ue,Bt,"\u2A7E","\\geqslant",!0),me(te,ue,Bt,"\u2A96","\\eqslantgtr",!0),me(te,ue,Bt,"\u2273","\\gtrsim",!0),me(te,ue,Bt,"\u2A86","\\gtrapprox",!0),me(te,ue,Qt,"\u22D7","\\gtrdot"),me(te,ue,Bt,"\u22D9","\\ggg",!0),me(te,ue,Bt,"\u2277","\\gtrless",!0),me(te,ue,Bt,"\u22DB","\\gtreqless",!0),me(te,ue,Bt,"\u2A8C","\\gtreqqless",!0),me(te,ue,Bt,"\u2256","\\eqcirc",!0),me(te,ue,Bt,"\u2257","\\circeq",!0),me(te,ue,Bt,"\u225C","\\triangleq",!0),me(te,ue,Bt,"\u223C","\\thicksim"),me(te,ue,Bt,"\u2248","\\thickapprox"),me(te,ue,Bt,"\u2AC6","\\supseteqq",!0),me(te,ue,Bt,"\u22D1","\\Supset",!0),me(te,ue,Bt,"\u2290","\\sqsupset",!0),me(te,ue,Bt,"\u227D","\\succcurlyeq",!0),me(te,ue,Bt,"\u22DF","\\curlyeqsucc",!0),me(te,ue,Bt,"\u227F","\\succsim",!0),me(te,ue,Bt,"\u2AB8","\\succapprox",!0),me(te,ue,Bt,"\u22B3","\\vartriangleright"),me(te,ue,Bt,"\u22B5","\\trianglerighteq"),me(te,ue,Bt,"\u22A9","\\Vdash",!0),me(te,ue,Bt,"\u2223","\\shortmid"),me(te,ue,Bt,"\u2225","\\shortparallel"),me(te,ue,Bt,"\u226C","\\between",!0),me(te,ue,Bt,"\u22D4","\\pitchfork",!0),me(te,ue,Bt,"\u221D","\\varpropto"),me(te,ue,Bt,"\u25C0","\\blacktriangleleft"),me(te,ue,Bt,"\u2234","\\therefore",!0),me(te,ue,Bt,"\u220D","\\backepsilon"),me(te,ue,Bt,"\u25B6","\\blacktriangleright"),me(te,ue,Bt,"\u2235","\\because",!0),me(te,ue,Bt,"\u22D8","\\llless"),me(te,ue,Bt,"\u22D9","\\gggtr"),me(te,ue,Qt,"\u22B2","\\lhd"),me(te,ue,Qt,"\u22B3","\\rhd"),me(te,ue,Bt,"\u2242","\\eqsim",!0),me(te,Xe,Bt,"\u22C8","\\Join"),me(te,ue,Bt,"\u2251","\\Doteq",!0),me(te,ue,Qt,"\u2214","\\dotplus",!0),me(te,ue,Qt,"\u2216","\\smallsetminus"),me(te,ue,Qt,"\u22D2","\\Cap",!0),me(te,ue,Qt,"\u22D3","\\Cup",!0),me(te,ue,Qt,"\u2A5E","\\doublebarwedge",!0),me(te,ue,Qt,"\u229F","\\boxminus",!0),me(te,ue,Qt,"\u229E","\\boxplus",!0),me(te,ue,Qt,"\u22C7","\\divideontimes",!0),me(te,ue,Qt,"\u22C9","\\ltimes",!0),me(te,ue,Qt,"\u22CA","\\rtimes",!0),me(te,ue,Qt,"\u22CB","\\leftthreetimes",!0),me(te,ue,Qt,"\u22CC","\\rightthreetimes",!0),me(te,ue,Qt,"\u22CF","\\curlywedge",!0),me(te,ue,Qt,"\u22CE","\\curlyvee",!0),me(te,ue,Qt,"\u229D","\\circleddash",!0),me(te,ue,Qt,"\u229B","\\circledast",!0),me(te,ue,Qt,"\u22C5","\\centerdot"),me(te,ue,Qt,"\u22BA","\\intercal",!0),me(te,ue,Qt,"\u22D2","\\doublecap"),me(te,ue,Qt,"\u22D3","\\doublecup"),me(te,ue,Qt,"\u22A0","\\boxtimes",!0),me(te,ue,Bt,"\u21E2","\\dashrightarrow",!0),me(te,ue,Bt,"\u21E0","\\dashleftarrow",!0),me(te,ue,Bt,"\u21C7","\\leftleftarrows",!0),me(te,ue,Bt,"\u21C6","\\leftrightarrows",!0),me(te,ue,Bt,"\u21DA","\\Lleftarrow",!0),me(te,ue,Bt,"\u219E","\\twoheadleftarrow",!0),me(te,ue,Bt,"\u21A2","\\leftarrowtail",!0),me(te,ue,Bt,"\u21AB","\\looparrowleft",!0),me(te,ue,Bt,"\u21CB","\\leftrightharpoons",!0),me(te,ue,Bt,"\u21B6","\\curvearrowleft",!0),me(te,ue,Bt,"\u21BA","\\circlearrowleft",!0),me(te,ue,Bt,"\u21B0","\\Lsh",!0),me(te,ue,Bt,"\u21C8","\\upuparrows",!0),me(te,ue,Bt,"\u21BF","\\upharpoonleft",!0),me(te,ue,Bt,"\u21C3","\\downharpoonleft",!0),me(te,ue,Bt,"\u22B8","\\multimap",!0),me(te,ue,Bt,"\u21AD","\\leftrightsquigarrow",!0),me(te,ue,Bt,"\u21C9","\\rightrightarrows",!0),me(te,ue,Bt,"\u21C4","\\rightleftarrows",!0),me(te,ue,Bt,"\u21A0","\\twoheadrightarrow",!0),me(te,ue,Bt,"\u21A3","\\rightarrowtail",!0),me(te,ue,Bt,"\u21AC","\\looparrowright",!0),me(te,ue,Bt,"\u21B7","\\curvearrowright",!0),me(te,ue,Bt,"\u21BB","\\circlearrowright",!0),me(te,ue,Bt,"\u21B1","\\Rsh",!0),me(te,ue,Bt,"\u21CA","\\downdownarrows",!0),me(te,ue,Bt,"\u21BE","\\upharpoonright",!0),me(te,ue,Bt,"\u21C2","\\downharpoonright",!0),me(te,ue,Bt,"\u21DD","\\rightsquigarrow",!0),me(te,ue,Bt,"\u21DD","\\leadsto"),me(te,ue,Bt,"\u21DB","\\Rrightarrow",!0),me(te,ue,Bt,"\u21BE","\\restriction"),me(te,Xe,it,"\u2018","`"),me(te,Xe,it,"$","\\$"),me(Ze,Xe,it,"$","\\$"),me(Ze,Xe,it,"$","\\textdollar"),me(te,Xe,it,"%","\\%"),me(Ze,Xe,it,"%","\\%"),me(te,Xe,it,"_","\\_"),me(Ze,Xe,it,"_","\\_"),me(Ze,Xe,it,"_","\\textunderscore"),me(te,Xe,it,"\u2220","\\angle",!0),me(te,Xe,it,"\u221E","\\infty",!0),me(te,Xe,it,"\u2032","\\prime"),me(te,Xe,it,"\u25B3","\\triangle"),me(te,Xe,it,"\u0393","\\Gamma",!0),me(te,Xe,it,"\u0394","\\Delta",!0),me(te,Xe,it,"\u0398","\\Theta",!0),me(te,Xe,it,"\u039B","\\Lambda",!0),me(te,Xe,it,"\u039E","\\Xi",!0),me(te,Xe,it,"\u03A0","\\Pi",!0),me(te,Xe,it,"\u03A3","\\Sigma",!0),me(te,Xe,it,"\u03A5","\\Upsilon",!0),me(te,Xe,it,"\u03A6","\\Phi",!0),me(te,Xe,it,"\u03A8","\\Psi",!0),me(te,Xe,it,"\u03A9","\\Omega",!0),me(te,Xe,it,"A","\u0391"),me(te,Xe,it,"B","\u0392"),me(te,Xe,it,"E","\u0395"),me(te,Xe,it,"Z","\u0396"),me(te,Xe,it,"H","\u0397"),me(te,Xe,it,"I","\u0399"),me(te,Xe,it,"K","\u039A"),me(te,Xe,it,"M","\u039C"),me(te,Xe,it,"N","\u039D"),me(te,Xe,it,"O","\u039F"),me(te,Xe,it,"P","\u03A1"),me(te,Xe,it,"T","\u03A4"),me(te,Xe,it,"X","\u03A7"),me(te,Xe,it,"\xAC","\\neg",!0),me(te,Xe,it,"\xAC","\\lnot"),me(te,Xe,it,"\u22A4","\\top"),me(te,Xe,it,"\u22A5","\\bot"),me(te,Xe,it,"\u2205","\\emptyset"),me(te,ue,it,"\u2205","\\varnothing"),me(te,Xe,$t,"\u03B1","\\alpha",!0),me(te,Xe,$t,"\u03B2","\\beta",!0),me(te,Xe,$t,"\u03B3","\\gamma",!0),me(te,Xe,$t,"\u03B4","\\delta",!0),me(te,Xe,$t,"\u03F5","\\epsilon",!0),me(te,Xe,$t,"\u03B6","\\zeta",!0),me(te,Xe,$t,"\u03B7","\\eta",!0),me(te,Xe,$t,"\u03B8","\\theta",!0),me(te,Xe,$t,"\u03B9","\\iota",!0),me(te,Xe,$t,"\u03BA","\\kappa",!0),me(te,Xe,$t,"\u03BB","\\lambda",!0),me(te,Xe,$t,"\u03BC","\\mu",!0),me(te,Xe,$t,"\u03BD","\\nu",!0),me(te,Xe,$t,"\u03BE","\\xi",!0),me(te,Xe,$t,"\u03BF","\\omicron",!0),me(te,Xe,$t,"\u03C0","\\pi",!0),me(te,Xe,$t,"\u03C1","\\rho",!0),me(te,Xe,$t,"\u03C3","\\sigma",!0),me(te,Xe,$t,"\u03C4","\\tau",!0),me(te,Xe,$t,"\u03C5","\\upsilon",!0),me(te,Xe,$t,"\u03D5","\\phi",!0),me(te,Xe,$t,"\u03C7","\\chi",!0),me(te,Xe,$t,"\u03C8","\\psi",!0),me(te,Xe,$t,"\u03C9","\\omega",!0),me(te,Xe,$t,"\u03B5","\\varepsilon",!0),me(te,Xe,$t,"\u03D1","\\vartheta",!0),me(te,Xe,$t,"\u03D6","\\varpi",!0),me(te,Xe,$t,"\u03F1","\\varrho",!0),me(te,Xe,$t,"\u03C2","\\varsigma",!0),me(te,Xe,$t,"\u03C6","\\varphi",!0),me(te,Xe,Qt,"\u2217","*"),me(te,Xe,Qt,"+","+"),me(te,Xe,Qt,"\u2212","-"),me(te,Xe,Qt,"\u22C5","\\cdot",!0),me(te,Xe,Qt,"\u2218","\\circ"),me(te,Xe,Qt,"\xF7","\\div",!0),me(te,Xe,Qt,"\xB1","\\pm",!0),me(te,Xe,Qt,"\xD7","\\times",!0),me(te,Xe,Qt,"\u2229","\\cap",!0),me(te,Xe,Qt,"\u222A","\\cup",!0),me(te,Xe,Qt,"\u2216","\\setminus"),me(te,Xe,Qt,"\u2227","\\land"),me(te,Xe,Qt,"\u2228","\\lor"),me(te,Xe,Qt,"\u2227","\\wedge",!0),me(te,Xe,Qt,"\u2228","\\vee",!0),me(te,Xe,it,"\u221A","\\surd"),me(te,Xe,kt,"(","("),me(te,Xe,kt,"[","["),me(te,Xe,kt,"\u27E8","\\langle",!0),me(te,Xe,kt,"\u2223","\\lvert"),me(te,Xe,kt,"\u2225","\\lVert"),me(te,Xe,dt,")",")"),me(te,Xe,dt,"]","]"),me(te,Xe,dt,"?","?"),me(te,Xe,dt,"!","!"),me(te,Xe,dt,"\u27E9","\\rangle",!0),me(te,Xe,dt,"\u2223","\\rvert"),me(te,Xe,dt,"\u2225","\\rVert"),me(te,Xe,Bt,"=","="),me(te,Xe,Bt,"<","<"),me(te,Xe,Bt,">",">"),me(te,Xe,Bt,":",":"),me(te,Xe,Bt,"\u2248","\\approx",!0),me(te,Xe,Bt,"\u2245","\\cong",!0),me(te,Xe,Bt,"\u2265","\\ge"),me(te,Xe,Bt,"\u2265","\\geq",!0),me(te,Xe,Bt,"\u2190","\\gets"),me(te,Xe,Bt,">","\\gt"),me(te,Xe,Bt,"\u2208","\\in",!0),me(te,Xe,Bt,"\uE020","\\@not"),me(te,Xe,Bt,"\u2282","\\subset",!0),me(te,Xe,Bt,"\u2283","\\supset",!0),me(te,Xe,Bt,"\u2286","\\subseteq",!0),me(te,Xe,Bt,"\u2287","\\supseteq",!0),me(te,ue,Bt,"\u2288","\\nsubseteq",!0),me(te,ue,Bt,"\u2289","\\nsupseteq",!0),me(te,Xe,Bt,"\u22A8","\\models"),me(te,Xe,Bt,"\u2190","\\leftarrow",!0),me(te,Xe,Bt,"\u2264","\\le"),me(te,Xe,Bt,"\u2264","\\leq",!0),me(te,Xe,Bt,"<","\\lt"),me(te,Xe,Bt,"\u2192","\\rightarrow",!0),me(te,Xe,Bt,"\u2192","\\to"),me(te,ue,Bt,"\u2271","\\ngeq",!0),me(te,ue,Bt,"\u2270","\\nleq",!0),me(te,Xe,ft,"\xA0","\\ "),me(te,Xe,ft,"\xA0","~"),me(te,Xe,ft,"\xA0","\\space"),me(te,Xe,ft,"\xA0","\\nobreakspace"),me(Ze,Xe,ft,"\xA0","\\ "),me(Ze,Xe,ft,"\xA0","~"),me(Ze,Xe,ft,"\xA0","\\space"),me(Ze,Xe,ft,"\xA0","\\nobreakspace"),me(te,Xe,ft,null,"\\nobreak"),me(te,Xe,ft,null,"\\allowbreak"),me(te,Xe,tr,",",","),me(te,Xe,tr,";",";"),me(te,ue,Qt,"\u22BC","\\barwedge",!0),me(te,ue,Qt,"\u22BB","\\veebar",!0),me(te,Xe,Qt,"\u2299","\\odot",!0),me(te,Xe,Qt,"\u2295","\\oplus",!0),me(te,Xe,Qt,"\u2297","\\otimes",!0),me(te,Xe,it,"\u2202","\\partial",!0),me(te,Xe,Qt,"\u2298","\\oslash",!0),me(te,ue,Qt,"\u229A","\\circledcirc",!0),me(te,ue,Qt,"\u22A1","\\boxdot",!0),me(te,Xe,Qt,"\u25B3","\\bigtriangleup"),me(te,Xe,Qt,"\u25BD","\\bigtriangledown"),me(te,Xe,Qt,"\u2020","\\dagger"),me(te,Xe,Qt,"\u22C4","\\diamond"),me(te,Xe,Qt,"\u22C6","\\star"),me(te,Xe,Qt,"\u25C3","\\triangleleft"),me(te,Xe,Qt,"\u25B9","\\triangleright"),me(te,Xe,kt,"{","\\{"),me(Ze,Xe,it,"{","\\{"),me(Ze,Xe,it,"{","\\textbraceleft"),me(te,Xe,dt,"}","\\}"),me(Ze,Xe,it,"}","\\}"),me(Ze,Xe,it,"}","\\textbraceright"),me(te,Xe,kt,"{","\\lbrace"),me(te,Xe,dt,"}","\\rbrace"),me(te,Xe,kt,"[","\\lbrack"),me(Ze,Xe,it,"[","\\lbrack"),me(te,Xe,dt,"]","\\rbrack"),me(Ze,Xe,it,"]","\\rbrack"),me(te,Xe,kt,"(","\\lparen"),me(te,Xe,dt,")","\\rparen"),me(Ze,Xe,it,"<","\\textless"),me(Ze,Xe,it,">","\\textgreater"),me(te,Xe,kt,"\u230A","\\lfloor",!0),me(te,Xe,dt,"\u230B","\\rfloor",!0),me(te,Xe,kt,"\u2308","\\lceil",!0),me(te,Xe,dt,"\u2309","\\rceil",!0),me(te,Xe,it,"\\","\\backslash"),me(te,Xe,it,"\u2223","|"),me(te,Xe,it,"\u2223","\\vert"),me(Ze,Xe,it,"|","\\textbar"),me(te,Xe,it,"\u2225","\\|"),me(te,Xe,it,"\u2225","\\Vert"),me(Ze,Xe,it,"\u2225","\\textbardbl"),me(Ze,Xe,it,"~","\\textasciitilde"),me(Ze,Xe,it,"\\","\\textbackslash"),me(Ze,Xe,it,"^","\\textasciicircum"),me(te,Xe,Bt,"\u2191","\\uparrow",!0),me(te,Xe,Bt,"\u21D1","\\Uparrow",!0),me(te,Xe,Bt,"\u2193","\\downarrow",!0),me(te,Xe,Bt,"\u21D3","\\Downarrow",!0),me(te,Xe,Bt,"\u2195","\\updownarrow",!0),me(te,Xe,Bt,"\u21D5","\\Updownarrow",!0),me(te,Xe,tn,"\u2210","\\coprod"),me(te,Xe,tn,"\u22C1","\\bigvee"),me(te,Xe,tn,"\u22C0","\\bigwedge"),me(te,Xe,tn,"\u2A04","\\biguplus"),me(te,Xe,tn,"\u22C2","\\bigcap"),me(te,Xe,tn,"\u22C3","\\bigcup"),me(te,Xe,tn,"\u222B","\\int"),me(te,Xe,tn,"\u222B","\\intop"),me(te,Xe,tn,"\u222C","\\iint"),me(te,Xe,tn,"\u222D","\\iiint"),me(te,Xe,tn,"\u220F","\\prod"),me(te,Xe,tn,"\u2211","\\sum"),me(te,Xe,tn,"\u2A02","\\bigotimes"),me(te,Xe,tn,"\u2A01","\\bigoplus"),me(te,Xe,tn,"\u2A00","\\bigodot"),me(te,Xe,tn,"\u222E","\\oint"),me(te,Xe,tn,"\u222F","\\oiint"),me(te,Xe,tn,"\u2230","\\oiiint"),me(te,Xe,tn,"\u2A06","\\bigsqcup"),me(te,Xe,tn,"\u222B","\\smallint"),me(Ze,Xe,Jt,"\u2026","\\textellipsis"),me(te,Xe,Jt,"\u2026","\\mathellipsis"),me(Ze,Xe,Jt,"\u2026","\\ldots",!0),me(te,Xe,Jt,"\u2026","\\ldots",!0),me(te,Xe,Jt,"\u22EF","\\@cdots",!0),me(te,Xe,Jt,"\u22F1","\\ddots",!0),me(te,Xe,it,"\u22EE","\\varvdots"),me(te,Xe,St,"\u02CA","\\acute"),me(te,Xe,St,"\u02CB","\\grave"),me(te,Xe,St,"\xA8","\\ddot"),me(te,Xe,St,"~","\\tilde"),me(te,Xe,St,"\u02C9","\\bar"),me(te,Xe,St,"\u02D8","\\breve"),me(te,Xe,St,"\u02C7","\\check"),me(te,Xe,St,"^","\\hat"),me(te,Xe,St,"\u20D7","\\vec"),me(te,Xe,St,"\u02D9","\\dot"),me(te,Xe,St,"\u02DA","\\mathring"),me(te,Xe,$t,"\u0131","\\imath",!0),me(te,Xe,$t,"\u0237","\\jmath",!0),me(Ze,Xe,it,"\u0131","\\i",!0),me(Ze,Xe,it,"\u0237","\\j",!0),me(Ze,Xe,it,"\xDF","\\ss",!0),me(Ze,Xe,it,"\xE6","\\ae",!0),me(Ze,Xe,it,"\xE6","\\ae",!0),me(Ze,Xe,it,"\u0153","\\oe",!0),me(Ze,Xe,it,"\xF8","\\o",!0),me(Ze,Xe,it,"\xC6","\\AE",!0),me(Ze,Xe,it,"\u0152","\\OE",!0),me(Ze,Xe,it,"\xD8","\\O",!0),me(Ze,Xe,St,"\u02CA","\\'"),me(Ze,Xe,St,"\u02CB","\\`"),me(Ze,Xe,St,"\u02C6","\\^"),me(Ze,Xe,St,"\u02DC","\\~"),me(Ze,Xe,St,"\u02C9","\\="),me(Ze,Xe,St,"\u02D8","\\u"),me(Ze,Xe,St,"\u02D9","\\."),me(Ze,Xe,St,"\u02DA","\\r"),me(Ze,Xe,St,"\u02C7","\\v"),me(Ze,Xe,St,"\xA8",'\\"'),me(Ze,Xe,St,"\u02DD","\\H"),me(Ze,Xe,St,"\u25EF","\\textcircled");var Or={"--":!0,"---":!0,"``":!0,"''":!0};me(Ze,Xe,it,"\u2013","--"),me(Ze,Xe,it,"\u2013","\\textendash"),me(Ze,Xe,it,"\u2014","---"),me(Ze,Xe,it,"\u2014","\\textemdash"),me(Ze,Xe,it,"\u2018","`"),me(Ze,Xe,it,"\u2018","\\textquoteleft"),me(Ze,Xe,it,"\u2019","'"),me(Ze,Xe,it,"\u2019","\\textquoteright"),me(Ze,Xe,it,"\u201C","``"),me(Ze,Xe,it,"\u201C","\\textquotedblleft"),me(Ze,Xe,it,"\u201D","''"),me(Ze,Xe,it,"\u201D","\\textquotedblright"),me(te,Xe,it,"\xB0","\\degree",!0),me(Ze,Xe,it,"\xB0","\\degree"),me(Ze,Xe,it,"\xB0","\\textdegree",!0),me(te,Xe,$t,"\xA3","\\pounds"),me(te,Xe,$t,"\xA3","\\mathsterling",!0),me(Ze,Xe,$t,"\xA3","\\pounds"),me(Ze,Xe,$t,"\xA3","\\textsterling",!0),me(te,ue,it,"\u2720","\\maltese"),me(Ze,ue,it,"\u2720","\\maltese"),me(Ze,Xe,ft,"\xA0","\\ "),me(Ze,Xe,ft,"\xA0"," "),me(Ze,Xe,ft,"\xA0","~");for(var an='0123456789/@."',En=0;En<an.length;En++){var Bn=an.charAt(En);me(te,Xe,it,Bn,Bn)}for(var vi='0123456789!@*()-=+[]<>|";:?/.,',Ln=0;Ln<vi.length;Ln++){var Mn=vi.charAt(Ln);me(Ze,Xe,it,Mn,Mn)}for(var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",wt=0;wt<Xt.length;wt++){var De=Xt.charAt(wt);me(te,Xe,$t,De,De),me(Ze,Xe,it,De,De)}me(te,ue,it,"C","\u2102"),me(Ze,ue,it,"C","\u2102"),me(te,ue,it,"H","\u210D"),me(Ze,ue,it,"H","\u210D"),me(te,ue,it,"N","\u2115"),me(Ze,ue,it,"N","\u2115"),me(te,ue,it,"P","\u2119"),me(Ze,ue,it,"P","\u2119"),me(te,ue,it,"Q","\u211A"),me(Ze,ue,it,"Q","\u211A"),me(te,ue,it,"R","\u211D"),me(Ze,ue,it,"R","\u211D"),me(te,ue,it,"Z","\u2124"),me(Ze,ue,it,"Z","\u2124"),me(te,Xe,$t,"h","\u210E"),me(Ze,Xe,$t,"h","\u210E");for(var Re="",Me=0;Me<Xt.length;Me++){var nt=Xt.charAt(Me);Re=String.fromCharCode(55349,56320+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56372+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56424+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56580+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56736+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56788+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56840+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56944+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Me<26&&(Re=String.fromCharCode(55349,56632+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re),Re=String.fromCharCode(55349,56476+Me),me(te,Xe,$t,nt,Re),me(Ze,Xe,it,nt,Re))}Re=String.fromCharCode(55349,56668),me(te,Xe,$t,"k",Re),me(Ze,Xe,it,"k",Re);for(var yt=0;yt<10;yt++){var sr=yt.toString();Re=String.fromCharCode(55349,57294+yt),me(te,Xe,$t,sr,Re),me(Ze,Xe,it,sr,Re),Re=String.fromCharCode(55349,57314+yt),me(te,Xe,$t,sr,Re),me(Ze,Xe,it,sr,Re),Re=String.fromCharCode(55349,57324+yt),me(te,Xe,$t,sr,Re),me(Ze,Xe,it,sr,Re),Re=String.fromCharCode(55349,57334+yt),me(te,Xe,$t,sr,Re),me(Ze,Xe,it,sr,Re)}for(var Nr="\xC7\xD0\xDE\xE7\xFE",mn=0;mn<Nr.length;mn++){var Yn=Nr.charAt(mn);me(te,Xe,$t,Yn,Yn),me(Ze,Xe,it,Yn,Yn)}me(Ze,Xe,it,"\xF0","\xF0"),me(Ze,Xe,it,"\u2013","\u2013"),me(Ze,Xe,it,"\u2014","\u2014"),me(Ze,Xe,it,"\u2018","\u2018"),me(Ze,Xe,it,"\u2019","\u2019"),me(Ze,Xe,it,"\u201C","\u201C"),me(Ze,Xe,it,"\u201D","\u201D");var Jn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ur=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Tt=function(ce,xe){var Ie=ce.charCodeAt(0),Je=ce.charCodeAt(1),Dt=(Ie-55296)*1024+(Je-56320)+65536,lr=xe==="math"?0:1;if(119808<=Dt&&Dt<120484){var Xr=Math.floor((Dt-119808)/26);return[Jn[Xr][2],Jn[Xr][lr]]}else if(120782<=Dt&&Dt<=120831){var hn=Math.floor((Dt-120782)/10);return[ur[hn][2],ur[hn][lr]]}else{if(Dt===120485||Dt===120486)return[Jn[0][2],Jn[0][lr]];if(120486<Dt&&Dt<120782)return["",""];throw new u("Unsupported character: "+ce)}},Ct=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ar=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],er=function(ce,xe){return xe.size<2?ce:Ct[ce-1][xe.size-1]},Ft=function(){function Nt(xe){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=xe.style,this.color=xe.color,this.size=xe.size||Nt.BASESIZE,this.textSize=xe.textSize||this.size,this.phantom=!!xe.phantom,this.font=xe.font||"",this.fontFamily=xe.fontFamily||"",this.fontWeight=xe.fontWeight||"",this.fontShape=xe.fontShape||"",this.sizeMultiplier=Ar[this.size-1],this.maxSize=xe.maxSize,this.minRuleThickness=xe.minRuleThickness,this._fontMetrics=void 0}var ce=Nt.prototype;return ce.extend=function(Ie){var Je={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var Dt in Ie)Ie.hasOwnProperty(Dt)&&(Je[Dt]=Ie[Dt]);return new Nt(Je)},ce.havingStyle=function(Ie){return this.style===Ie?this:this.extend({style:Ie,size:er(this.textSize,Ie)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Ie){return this.size===Ie&&this.textSize===Ie?this:this.extend({style:this.style.text(),size:Ie,textSize:Ie,sizeMultiplier:Ar[Ie-1]})},ce.havingBaseStyle=function(Ie){Ie=Ie||this.style.text();var Je=er(Nt.BASESIZE,Ie);return this.size===Je&&this.textSize===Nt.BASESIZE&&this.style===Ie?this:this.extend({style:Ie,size:Je})},ce.havingBaseSizing=function(){var Ie;switch(this.style.id){case 4:case 5:Ie=3;break;case 6:case 7:Ie=1;break;default:Ie=6}return this.extend({style:this.style.text(),size:Ie})},ce.withColor=function(Ie){return this.extend({color:Ie})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Ie){return this.extend({font:Ie})},ce.withTextFontFamily=function(Ie){return this.extend({fontFamily:Ie,font:""})},ce.withTextFontWeight=function(Ie){return this.extend({fontWeight:Ie,font:""})},ce.withTextFontShape=function(Ie){return this.extend({fontShape:Ie,font:""})},ce.sizingClasses=function(Ie){return Ie.size!==this.size?["sizing","reset-size"+Ie.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Nt.BASESIZE?["sizing","reset-size"+this.size,"size"+Nt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=dr(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Nt}();Ft.BASESIZE=6;var ir=Ft,Pt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},rr={ex:!0,em:!0,mu:!0},Yr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Pt||ce in rr||ce==="ex"},Pr=function(ce,xe){var Ie;if(ce.unit in Pt)Ie=Pt[ce.unit]/xe.fontMetrics().ptPerEm/xe.sizeMultiplier;else if(ce.unit==="mu")Ie=xe.fontMetrics().cssEmPerMu;else{var Je;if(xe.style.isTight()?Je=xe.havingStyle(xe.style.text()):Je=xe,ce.unit==="ex")Ie=Je.fontMetrics().xHeight;else if(ce.unit==="em")Ie=Je.fontMetrics().quad;else throw new u("Invalid unit: '"+ce.unit+"'");Je!==xe&&(Ie*=Je.sizeMultiplier/xe.sizeMultiplier)}return Math.min(ce.number*Ie,xe.maxSize)},Mr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],fn=function(ce,xe,Ie){return Ve[Ie][ce]&&Ve[Ie][ce].replace&&(ce=Ve[Ie][ce].replace),{value:ce,metrics:ut(ce,xe,Ie)}},wn=function(ce,xe,Ie,Je,Dt){var lr=fn(ce,xe,Ie),Xr=lr.metrics;ce=lr.value;var hn;if(Xr){var Nn=Xr.italic;(Ie==="text"||Je&&Je.font==="mathit")&&(Nn=0),hn=new Ce(ce,Xr.height,Xr.depth,Nn,Xr.skew,Xr.width,Dt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+xe+"' and mode '"+Ie+"'")),hn=new Ce(ce,0,0,0,0,0,Dt);if(Je){hn.maxFontSize=Je.sizeMultiplier,Je.style.isTight()&&hn.classes.push("mtight");var ui=Je.getColor();ui&&(hn.style.color=ui)}return hn},ai=function(ce,xe,Ie,Je){return Je===void 0&&(Je=[]),Ie.font==="boldsymbol"&&fn(ce,"Main-Bold",xe).metrics?wn(ce,"Main-Bold",xe,Ie,Je.concat(["mathbf"])):ce==="\\"||Ve[xe][ce].font==="main"?wn(ce,"Main-Regular",xe,Ie,Je):wn(ce,"AMS-Regular",xe,Ie,Je.concat(["amsrm"]))},ri=function(ce,xe,Ie,Je){return/[0-9]/.test(ce.charAt(0))||v.contains(Mr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},gi=function(ce,xe,Ie,Je){return v.contains(Mr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Ii=function(ce,xe,Ie,Je){return fn(ce,"Math-BoldItalic",xe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Mi=function(ce,xe,Ie){var Je=ce.mode,Dt=ce.text,lr=["mord"],Xr=Je==="math"||Je==="text"&&xe.font,hn=Xr?xe.font:xe.fontFamily;if(Dt.charCodeAt(0)===55349){var Nn=Tt(Dt,Je),ui=Nn[0],xi=Nn[1];return wn(Dt,ui,Je,xe,lr.concat(xi))}else if(hn){var Ai,Yi;if(hn==="boldsymbol"||hn==="mathnormal"){var sa=hn==="boldsymbol"?Ii(Dt,Je,xe,lr):gi(Dt,Je,xe,lr);Ai=sa.fontName,Yi=[sa.fontClass]}else v.contains(Mr,Dt)?(Ai="Main-Italic",Yi=["mathit"]):Xr?(Ai=dn[hn].fontName,Yi=[hn]):(Ai=Vr(hn,xe.fontWeight,xe.fontShape),Yi=[hn,xe.fontWeight,xe.fontShape]);if(fn(Dt,Ai,Je).metrics)return wn(Dt,Ai,Je,xe,lr.concat(Yi));if(Or.hasOwnProperty(Dt)&&Ai.substr(0,10)==="Typewriter"){for(var Ua=[],no=0;no<Dt.length;no++)Ua.push(wn(Dt[no],Ai,Je,xe,lr.concat(Yi)));return lt(Ua)}}if(Ie==="mathord"){var Wo=ri(Dt,Je,xe,lr);return wn(Dt,Wo.fontName,Je,xe,lr.concat([Wo.fontClass]))}else if(Ie==="textord"){var Zo=Ve[Je][Dt]&&Ve[Je][Dt].font;if(Zo==="ams"){var Bo=Vr("amsrm",xe.fontWeight,xe.fontShape);return wn(Dt,Bo,Je,xe,lr.concat("amsrm",xe.fontWeight,xe.fontShape))}else if(Zo==="main"||!Zo){var Es=Vr("textrm",xe.fontWeight,xe.fontShape);return wn(Dt,Es,Je,xe,lr.concat(xe.fontWeight,xe.fontShape))}else{var As=Vr(Zo,xe.fontWeight,xe.fontShape);return wn(Dt,As,Je,xe,lr.concat(As,xe.fontWeight,xe.fontShape))}}else throw new Error("unexpected type: "+Ie+" in makeOrd")},Qi=function(ce,xe){if(oe(ce.classes)!==oe(xe.classes)||ce.skew!==xe.skew||ce.maxFontSize!==xe.maxFontSize)return!1;for(var Ie in ce.style)if(ce.style.hasOwnProperty(Ie)&&ce.style[Ie]!==xe.style[Ie])return!1;for(var Je in xe.style)if(xe.style.hasOwnProperty(Je)&&ce.style[Je]!==xe.style[Je])return!1;return!0},ot=function(ce){for(var xe=0;xe<ce.length-1;xe++){var Ie=ce[xe],Je=ce[xe+1];Ie instanceof Ce&&Je instanceof Ce&&Qi(Ie,Je)&&(Ie.text+=Je.text,Ie.height=Math.max(Ie.height,Je.height),Ie.depth=Math.max(Ie.depth,Je.depth),Ie.italic=Je.italic,ce.splice(xe+1,1),xe--)}return ce},Ne=function(ce){for(var xe=0,Ie=0,Je=0,Dt=0;Dt<ce.children.length;Dt++){var lr=ce.children[Dt];lr.height>xe&&(xe=lr.height),lr.depth>Ie&&(Ie=lr.depth),lr.maxFontSize>Je&&(Je=lr.maxFontSize)}ce.height=xe,ce.depth=Ie,ce.maxFontSize=Je},He=function(ce,xe,Ie,Je){var Dt=new Y(ce,xe,Ie,Je);return Ne(Dt),Dt},Ye=function(ce,xe,Ie,Je){return new Y(ce,xe,Ie,Je)},at=function(ce,xe,Ie){var Je=He([ce],[],xe);return Je.height=Math.max(Ie||xe.fontMetrics().defaultRuleThickness,xe.minRuleThickness),Je.style.borderBottomWidth=Je.height+"em",Je.maxFontSize=1,Je},qe=function(ce,xe,Ie,Je){var Dt=new $(ce,xe,Ie,Je);return Ne(Dt),Dt},lt=function(ce){var xe=new Fe(ce);return Ne(xe),xe},Et=function(ce,xe){return ce instanceof Fe?He([],[ce],xe):ce},At=function(ce){if(ce.positionType==="individualShift"){for(var xe=ce.children,Ie=[xe[0]],Je=-xe[0].shift-xe[0].elem.depth,Dt=Je,lr=1;lr<xe.length;lr++){var Xr=-xe[lr].shift-Dt-xe[lr].elem.depth,hn=Xr-(xe[lr-1].elem.height+xe[lr-1].elem.depth);Dt=Dt+Xr,Ie.push({type:"kern",size:hn}),Ie.push(xe[lr])}return{children:Ie,depth:Je}}var Nn;if(ce.positionType==="top"){for(var ui=ce.positionData,xi=0;xi<ce.children.length;xi++){var Ai=ce.children[xi];ui-=Ai.type==="kern"?Ai.size:Ai.elem.height+Ai.elem.depth}Nn=ui}else if(ce.positionType==="bottom")Nn=-ce.positionData;else{var Yi=ce.children[0];if(Yi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")Nn=-Yi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")Nn=-Yi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:Nn}},fr=function(ce,xe){for(var Ie=At(ce),Je=Ie.children,Dt=Ie.depth,lr=0,Xr=0;Xr<Je.length;Xr++){var hn=Je[Xr];if(hn.type==="elem"){var Nn=hn.elem;lr=Math.max(lr,Nn.maxFontSize,Nn.height)}}lr+=2;var ui=He(["pstrut"],[]);ui.style.height=lr+"em";for(var xi=[],Ai=Dt,Yi=Dt,sa=Dt,Ua=0;Ua<Je.length;Ua++){var no=Je[Ua];if(no.type==="kern")sa+=no.size;else{var Wo=no.elem,Zo=no.wrapperClasses||[],Bo=no.wrapperStyle||{},Es=He(Zo,[ui,Wo],void 0,Bo);Es.style.top=-lr-sa-Wo.depth+"em",no.marginLeft&&(Es.style.marginLeft=no.marginLeft),no.marginRight&&(Es.style.marginRight=no.marginRight),xi.push(Es),sa+=Wo.height+Wo.depth}Ai=Math.min(Ai,sa),Yi=Math.max(Yi,sa)}var As=He(["vlist"],xi);As.style.height=Yi+"em";var $o;if(Ai<0){var Do=He([],[]),vo=He(["vlist"],[Do]);vo.style.height=-Ai+"em";var Ms=He(["vlist-s"],[new Ce("\u200B")]);$o=[He(["vlist-r"],[As,Ms]),He(["vlist-r"],[vo])]}else $o=[He(["vlist-r"],[As])];var rl=He(["vlist-t"],$o);return $o.length===2&&rl.classes.push("vlist-t2"),rl.height=Yi,rl.depth=-Ai,rl},Jr=function(ce,xe){var Ie=He(["mspace"],[],xe),Je=Pr(ce,xe);return Ie.style.marginRight=Je+"em",Ie},Vr=function(ce,xe,Ie){var Je="";switch(ce){case"amsrm":Je="AMS";break;case"textrm":Je="Main";break;case"textsf":Je="SansSerif";break;case"texttt":Je="Typewriter";break;default:Je=ce}var Dt;return xe==="textbf"&&Ie==="textit"?Dt="BoldItalic":xe==="textbf"?Dt="Bold":xe==="textit"?Dt="Italic":Dt="Regular",Je+"-"+Dt},dn={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},gr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Wn=function(ce,xe){var Ie=gr[ce],Je=Ie[0],Dt=Ie[1],lr=Ie[2],Xr=new le(Je),hn=new Se([Xr],{width:Dt+"em",height:lr+"em",style:"width:"+Dt+"em",viewBox:"0 0 "+1e3*Dt+" "+1e3*lr,preserveAspectRatio:"xMinYMin"}),Nn=Ye(["overlay"],[hn],xe);return Nn.height=lr,Nn.style.height=lr+"em",Nn.style.width=Dt+"em",Nn},kr={fontMap:dn,makeSymbol:wn,mathsym:ai,makeSpan:He,makeSvgSpan:Ye,makeLineSpan:at,makeAnchor:qe,makeFragment:lt,wrapFragment:Et,makeVList:fr,makeOrd:Mi,makeGlue:Jr,staticSvg:Wn,svgData:gr,tryCombineChars:ot};function Fn(Nt,ce){var xe=vn(Nt,ce);if(!xe)throw new Error("Expected node of type "+ce+", but got "+(Nt?"node of type "+Nt.type:String(Nt)));return xe}function vn(Nt,ce){return Nt&&Nt.type===ce?Nt:null}function $r(Nt,ce){var xe=ei(Nt,ce);if(!xe)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Nt?Nt.type==="atom"?"atom of family "+Nt.family:"node of type "+Nt.type:String(Nt)));return xe}function ei(Nt,ce){return Nt&&Nt.type==="atom"&&Nt.family===ce?Nt:null}function fi(Nt){var ce=Pi(Nt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Nt?"node of type "+Nt.type:String(Nt)));return ce}function Pi(Nt){return Nt&&(Nt.type==="atom"||Mt.hasOwnProperty(Nt.type))?Nt:null}var Zr={number:3,unit:"mu"},Sn={number:4,unit:"mu"},Gn={number:5,unit:"mu"},Wt={mord:{mop:Zr,mbin:Sn,mrel:Gn,minner:Zr},mop:{mord:Zr,mop:Zr,mrel:Gn,minner:Zr},mbin:{mord:Sn,mop:Sn,mopen:Sn,minner:Sn},mrel:{mord:Gn,mop:Gn,mopen:Gn,minner:Gn},mopen:{},mclose:{mop:Zr,mbin:Sn,mrel:Gn,minner:Zr},mpunct:{mord:Zr,mop:Zr,mrel:Gn,mopen:Zr,mclose:Zr,mpunct:Zr,minner:Zr},minner:{mord:Zr,mop:Zr,mbin:Sn,mrel:Gn,mopen:Zr,mpunct:Zr,minner:Zr}},Ot={mord:{mop:Zr},mop:{mord:Zr,mop:Zr},mbin:{},mrel:{},mopen:{},mclose:{mop:Zr},mpunct:{},minner:{mop:Zr}},Rt={},Ut={},Kt={};function Lt(Nt){for(var ce=Nt.type,xe=Nt.names,Ie=Nt.props,Je=Nt.handler,Dt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Xr={type:ce,numArgs:Ie.numArgs,argTypes:Ie.argTypes,greediness:Ie.greediness===void 0?1:Ie.greediness,allowedInText:!!Ie.allowedInText,allowedInMath:Ie.allowedInMath===void 0?!0:Ie.allowedInMath,numOptionalArgs:Ie.numOptionalArgs||0,infix:!!Ie.infix,handler:Je},hn=0;hn<xe.length;++hn)Rt[xe[hn]]=Xr;ce&&(Dt&&(Ut[ce]=Dt),lr&&(Kt[ce]=lr))}function cr(Nt){var ce=Nt.type,xe=Nt.htmlBuilder,Ie=Nt.mathmlBuilder;Lt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:xe,mathmlBuilder:Ie})}var vr=function(ce){var xe=vn(ce,"ordgroup");return xe?xe.body:[ce]},yr=kr.makeSpan,Rr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Vn=["rightmost","mrel","mclose","mpunct"],kn={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},di={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},pn=function(ce,xe,Ie,Je){Je===void 0&&(Je=[null,null]);for(var Dt=[],lr=0;lr<ce.length;lr++){var Xr=Ti(ce[lr],xe);if(Xr instanceof Fe){var hn=Xr.children;Dt.push.apply(Dt,hn)}else Dt.push(Xr)}if(!Ie)return Dt;var Nn=xe;if(ce.length===1){var ui=vn(ce[0],"sizing")||vn(ce[0],"styling");ui&&(ui.type==="sizing"?Nn=xe.havingSize(ui.size):ui.type==="styling"&&(Nn=xe.havingStyle(kn[ui.style])))}var xi=yr([Je[0]||"leftmost"],[],xe),Ai=yr([Je[1]||"rightmost"],[],xe);return Br(Dt,function(Yi,sa){var Ua=sa.classes[0],no=Yi.classes[0];Ua==="mbin"&&v.contains(Vn,no)?sa.classes[0]="mord":no==="mbin"&&v.contains(Rr,Ua)&&(Yi.classes[0]="mord")},{node:xi},Ai),Br(Dt,function(Yi,sa){var Ua=$n(sa),no=$n(Yi),Wo=Ua&&no?Yi.hasClass("mtight")?Ot[Ua][no]:Wt[Ua][no]:null;if(Wo)return kr.makeGlue(Wo,Nn)},{node:xi},Ai),Dt},Br=function Nt(ce,xe,Ie,Je){Je&&ce.push(Je);for(var Dt=0;Dt<ce.length;Dt++){var lr=ce[Dt],Xr=_n(lr);if(Xr){Nt(Xr.children,xe,Ie);continue}if(lr.classes[0]==="mspace")continue;var hn=xe(lr,Ie.node);hn&&(Ie.insertAfter?Ie.insertAfter(hn):(ce.unshift(hn),Dt++)),Ie.node=lr,Ie.insertAfter=function(Nn){return function(ui){ce.splice(Nn+1,0,ui),Dt++}}(Dt)}Je&&ce.pop()},_n=function(ce){return ce instanceof Fe||ce instanceof $?ce:null},Xn=function Nt(ce,xe){var Ie=_n(ce);if(Ie){var Je=Ie.children;if(Je.length){if(xe==="right")return Nt(Je[Je.length-1],"right");if(xe==="left")return Nt(Je[0],"left")}}return ce},$n=function(ce,xe){return ce?(xe&&(ce=Xn(ce,xe)),di[ce.classes[0]]||null):null},oi=function(ce,xe){var Ie=["nulldelimiter"].concat(ce.baseSizingClasses());return yr(xe.concat(Ie))},Ti=function(ce,xe,Ie){if(!ce)return yr();if(Ut[ce.type]){var Je=Ut[ce.type](ce,xe);if(Ie&&xe.size!==Ie.size){Je=yr(xe.sizingClasses(Ie),[Je],xe);var Dt=xe.sizeMultiplier/Ie.sizeMultiplier;Je.height*=Dt,Je.depth*=Dt}return Je}else throw new u("Got group of unknown type: '"+ce.type+"'")};function Ri(Nt,ce){var xe=yr(["base"],Nt,ce),Ie=yr(["strut"]);return Ie.style.height=xe.height+xe.depth+"em",Ie.style.verticalAlign=-xe.depth+"em",xe.children.unshift(Ie),xe}function Di(Nt,ce){var xe=null;Nt.length===1&&Nt[0].type==="tag"&&(xe=Nt[0].tag,Nt=Nt[0].body);for(var Ie=pn(Nt,ce,!0),Je=[],Dt=[],lr=0;lr<Ie.length;lr++)if(Dt.push(Ie[lr]),Ie[lr].hasClass("mbin")||Ie[lr].hasClass("mrel")||Ie[lr].hasClass("allowbreak")){for(var Xr=!1;lr<Ie.length-1&&Ie[lr+1].hasClass("mspace")&&!Ie[lr+1].hasClass("newline");)lr++,Dt.push(Ie[lr]),Ie[lr].hasClass("nobreak")&&(Xr=!0);Xr||(Je.push(Ri(Dt,ce)),Dt=[])}else Ie[lr].hasClass("newline")&&(Dt.pop(),Dt.length>0&&(Je.push(Ri(Dt,ce)),Dt=[]),Je.push(Ie[lr]));Dt.length>0&&Je.push(Ri(Dt,ce));var hn;xe&&(hn=Ri(pn(xe,ce,!0)),hn.classes=["tag"],Je.push(hn));var Nn=yr(["katex-html"],Je);if(Nn.setAttribute("aria-hidden","true"),hn){var ui=hn.children[0];ui.style.height=Nn.height+Nn.depth+"em",ui.style.verticalAlign=-Nn.depth+"em"}return Nn}function oa(Nt){return new Fe(Nt)}var ma=function(){function Nt(xe,Ie){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=xe,this.attributes={},this.children=Ie||[]}var ce=Nt.prototype;return ce.setAttribute=function(Ie,Je){this.attributes[Ie]=Je},ce.getAttribute=function(Ie){return this.attributes[Ie]},ce.toNode=function(){var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&Ie.setAttribute(Je,this.attributes[Je]);for(var Dt=0;Dt<this.children.length;Dt++)Ie.appendChild(this.children[Dt].toNode());return Ie},ce.toMarkup=function(){var Ie="<"+this.type;for(var Je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Je)&&(Ie+=" "+Je+'="',Ie+=v.escape(this.attributes[Je]),Ie+='"');Ie+=">";for(var Dt=0;Dt<this.children.length;Dt++)Ie+=this.children[Dt].toMarkup();return Ie+="</"+this.type+">",Ie},ce.toText=function(){return this.children.map(function(Ie){return Ie.toText()}).join("")},Nt}(),aa=function(){function Nt(xe){this.text=void 0,this.text=xe}var ce=Nt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return v.escape(this.toText())},ce.toText=function(){return this.text},Nt}(),ba=function(){function Nt(xe){this.width=void 0,this.character=void 0,this.width=xe,xe>=.05555&&xe<=.05556?this.character="\u200A":xe>=.1666&&xe<=.1667?this.character="\u2009":xe>=.2222&&xe<=.2223?this.character="\u2005":xe>=.2777&&xe<=.2778?this.character="\u2005\u200A":xe>=-.05556&&xe<=-.05555?this.character="\u200A\u2063":xe>=-.1667&&xe<=-.1666?this.character="\u2009\u2063":xe>=-.2223&&xe<=-.2222?this.character="\u205F\u2063":xe>=-.2778&&xe<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=Nt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Ie=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Ie.setAttribute("width",this.width+"em"),Ie},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Nt}(),bi={MathNode:ma,TextNode:aa,SpaceNode:ba,newDocumentFragment:oa},Rn=function(ce,xe,Ie){return Ve[xe][ce]&&Ve[xe][ce].replace&&ce.charCodeAt(0)!==55349&&!(Or.hasOwnProperty(ce)&&Ie&&(Ie.fontFamily&&Ie.fontFamily.substr(4,2)==="tt"||Ie.font&&Ie.font.substr(4,2)==="tt"))&&(ce=Ve[xe][ce].replace),new bi.TextNode(ce)},ji=function(ce){return ce.length===1?ce[0]:new bi.MathNode("mrow",ce)},ha=function(ce,xe){if(xe.fontFamily==="texttt")return"monospace";if(xe.fontFamily==="textsf")return xe.fontShape==="textit"&&xe.fontWeight==="textbf"?"sans-serif-bold-italic":xe.fontShape==="textit"?"sans-serif-italic":xe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(xe.fontShape==="textit"&&xe.fontWeight==="textbf")return"bold-italic";if(xe.fontShape==="textit")return"italic";if(xe.fontWeight==="textbf")return"bold";var Ie=xe.font;if(!Ie||Ie==="mathnormal")return null;var Je=ce.mode;if(Ie==="mathit")return"italic";if(Ie==="boldsymbol")return"bold-italic";if(Ie==="mathbf")return"bold";if(Ie==="mathbb")return"double-struck";if(Ie==="mathfrak")return"fraktur";if(Ie==="mathscr"||Ie==="mathcal")return"script";if(Ie==="mathsf")return"sans-serif";if(Ie==="mathtt")return"monospace";var Dt=ce.text;if(v.contains(["\\imath","\\jmath"],Dt))return null;Ve[Je][Dt]&&Ve[Je][Dt].replace&&(Dt=Ve[Je][Dt].replace);var lr=kr.fontMap[Ie].fontName;return ut(Dt,lr,Je)?kr.fontMap[Ie].variant:null},ta=function(ce,xe,Ie){if(ce.length===1){var Je=Ir(ce[0],xe);return Ie&&Je instanceof ma&&Je.type==="mo"&&(Je.setAttribute("lspace","0em"),Je.setAttribute("rspace","0em")),[Je]}for(var Dt=[],lr,Xr=0;Xr<ce.length;Xr++){var hn=Ir(ce[Xr],xe);if(hn instanceof ma&&lr instanceof ma){if(hn.type==="mtext"&&lr.type==="mtext"&&hn.getAttribute("mathvariant")===lr.getAttribute("mathvariant")){var Nn;(Nn=lr.children).push.apply(Nn,hn.children);continue}else if(hn.type==="mn"&&lr.type==="mn"){var ui;(ui=lr.children).push.apply(ui,hn.children);continue}else if(hn.type==="mi"&&hn.children.length===1&&lr.type==="mn"){var xi=hn.children[0];if(xi instanceof aa&&xi.text==="."){var Ai;(Ai=lr.children).push.apply(Ai,hn.children);continue}}else if(lr.type==="mi"&&lr.children.length===1){var Yi=lr.children[0];if(Yi instanceof aa&&Yi.text==="\u0338"&&(hn.type==="mo"||hn.type==="mi"||hn.type==="mn")){var sa=hn.children[0];sa instanceof aa&&sa.text.length>0&&(sa.text=sa.text.slice(0,1)+"\u0338"+sa.text.slice(1),Dt.pop())}}}Dt.push(hn),lr=hn}return Dt},ra=function(ce,xe,Ie){return ji(ta(ce,xe,Ie))},Ir=function(ce,xe){if(!ce)return new bi.MathNode("mrow");if(Kt[ce.type]){var Ie=Kt[ce.type](ce,xe);return Ie}else throw new u("Got group of unknown type: '"+ce.type+"'")};function Sr(Nt,ce,xe,Ie){var Je=ta(Nt,xe),Dt;Je.length===1&&Je[0]instanceof ma&&v.contains(["mrow","mtable"],Je[0].type)?Dt=Je[0]:Dt=new bi.MathNode("mrow",Je);var lr=new bi.MathNode("annotation",[new bi.TextNode(ce)]);lr.setAttribute("encoding","application/x-tex");var Xr=new bi.MathNode("semantics",[Dt,lr]),hn=new bi.MathNode("math",[Xr]);hn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Nn=Ie?"katex":"katex-mathml";return kr.makeSpan([Nn],[hn])}var Tn=function(ce){return new ir({style:ce.displayMode?z.DISPLAY:z.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},pr=function(ce,xe){if(xe.displayMode){var Ie=["katex-display"];xe.leqno&&Ie.push("leqno"),xe.fleqn&&Ie.push("fleqn"),ce=kr.makeSpan(Ie,[ce])}return ce},Dr=function(ce,xe,Ie){var Je=Tn(Ie),Dt;if(Ie.output==="mathml")return Sr(ce,xe,Je,!0);if(Ie.output==="html"){var lr=Di(ce,Je);Dt=kr.makeSpan(["katex"],[lr])}else{var Xr=Sr(ce,xe,Je,!1),hn=Di(ce,Je);Dt=kr.makeSpan(["katex"],[Xr,hn])}return pr(Dt,Ie)},Wr=function(ce,xe,Ie){var Je=Tn(Ie),Dt=Di(ce,Je),lr=kr.makeSpan(["katex"],[Dt]);return pr(lr,Ie)},ln=Dr,Pn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},_t=function(ce){var xe=new bi.MathNode("mo",[new bi.TextNode(Pn[ce.substr(1)])]);return xe.setAttribute("stretchy","true"),xe},_r={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Lr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},en=function(ce,xe){function Ie(){var hn=4e5,Nn=ce.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],Nn)){var ui=ce,xi=Lr(ui.base),Ai,Yi,sa;if(xi>5)Nn==="widehat"||Nn==="widecheck"?(Ai=420,hn=2364,sa=.42,Yi=Nn+"4"):(Ai=312,hn=2340,sa=.34,Yi="tilde4");else{var Ua=[1,1,2,2,3,3][xi];Nn==="widehat"||Nn==="widecheck"?(hn=[0,1062,2364,2364,2364][Ua],Ai=[0,239,300,360,420][Ua],sa=[0,.24,.3,.3,.36,.42][Ua],Yi=Nn+Ua):(hn=[0,600,1033,2339,2340][Ua],Ai=[0,260,286,306,312][Ua],sa=[0,.26,.286,.3,.306,.34][Ua],Yi="tilde"+Ua)}var no=new le(Yi),Wo=new Se([no],{width:"100%",height:sa+"em",viewBox:"0 0 "+hn+" "+Ai,preserveAspectRatio:"none"});return{span:kr.makeSvgSpan([],[Wo],xe),minWidth:0,height:sa}}else{var Zo=[],Bo=_r[Nn],Es=Bo[0],As=Bo[1],$o=Bo[2],Do=$o/1e3,vo=Es.length,Ms,rl;if(vo===1){var gs=Bo[3];Ms=["hide-tail"],rl=[gs]}else if(vo===2)Ms=["halfarrow-left","halfarrow-right"],rl=["xMinYMin","xMaxYMin"];else if(vo===3)Ms=["brace-left","brace-center","brace-right"],rl=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+vo+" children.");for(var Ra=0;Ra<vo;Ra++){var dl=new le(Es[Ra]),fl=new Se([dl],{width:"400em",height:Do+"em",viewBox:"0 0 "+hn+" "+$o,preserveAspectRatio:rl[Ra]+" slice"}),Us=kr.makeSvgSpan([Ms[Ra]],[fl],xe);if(vo===1)return{span:Us,minWidth:As,height:Do};Us.style.height=Do+"em",Zo.push(Us)}return{span:kr.makeSpan(["stretchy"],Zo,xe),minWidth:As,height:Do}}}var Je=Ie(),Dt=Je.span,lr=Je.minWidth,Xr=Je.height;return Dt.height=Xr,Dt.style.height=Xr+"em",lr>0&&(Dt.style.minWidth=lr+"em"),Dt},bn=function(ce,xe,Ie,Je){var Dt,lr=ce.height+ce.depth+2*Ie;if(/fbox|color/.test(xe)){if(Dt=kr.makeSpan(["stretchy",xe],[],Je),xe==="fbox"){var Xr=Je.color&&Je.getColor();Xr&&(Dt.style.borderColor=Xr)}}else{var hn=[];/^[bx]cancel$/.test(xe)&&hn.push(new pe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(xe)&&hn.push(new pe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Nn=new Se(hn,{width:"100%",height:lr+"em"});Dt=kr.makeSvgSpan([],[Nn],Je)}return Dt.height=lr,Dt.style.height=lr+"em",Dt},On={encloseSpan:bn,mathMLnode:_t,svgSpan:en},yn=function(ce,xe){var Ie,Je,Dt=vn(ce,"supsub"),lr;Dt?(Je=Fn(Dt.base,"accent"),Ie=Je.base,Dt.base=Ie,lr=tt(Ti(Dt,xe)),Dt.base=Je):(Je=Fn(ce,"accent"),Ie=Je.base);var Xr=Ti(Ie,xe.havingCrampedStyle()),hn=Je.isShifty&&v.isCharacterBox(Ie),Nn=0;if(hn){var ui=v.getBaseElem(Ie),xi=Ti(ui,xe.havingCrampedStyle());Nn=_e(xi).skew}var Ai=Math.min(Xr.height,xe.fontMetrics().xHeight),Yi;if(Je.isStretchy)Yi=On.svgSpan(Je,xe),Yi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Xr},{type:"elem",elem:Yi,wrapperClasses:["svg-align"],wrapperStyle:Nn>0?{width:"calc(100% - "+2*Nn+"em)",marginLeft:2*Nn+"em"}:void 0}]},xe);else{var sa,Ua;Je.label==="\\vec"?(sa=kr.staticSvg("vec",xe),Ua=kr.svgData.vec[1]):(sa=kr.makeOrd({mode:Je.mode,text:Je.label},xe,"textord"),sa=_e(sa),sa.italic=0,Ua=sa.width),Yi=kr.makeSpan(["accent-body"],[sa]);var no=Je.label==="\\textcircled";no&&(Yi.classes.push("accent-full"),Ai=Xr.height);var Wo=Nn;no||(Wo-=Ua/2),Yi.style.left=Wo+"em",Je.label==="\\textcircled"&&(Yi.style.top=".2em"),Yi=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Xr},{type:"kern",size:-Ai},{type:"elem",elem:Yi}]},xe)}var Zo=kr.makeSpan(["mord","accent"],[Yi],xe);return lr?(lr.children[0]=Zo,lr.height=Math.max(Zo.height,lr.height),lr.classes[0]="mord",lr):Zo},qn=function(ce,xe){var Ie=ce.isStretchy?On.mathMLnode(ce.label):new bi.MathNode("mo",[Rn(ce.label,ce.mode)]),Je=new bi.MathNode("mover",[Ir(ce.base,xe),Ie]);return Je.setAttribute("accent","true"),Je},Hn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Nt){return"\\"+Nt}).join("|"));Lt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ce,xe){var Ie=xe[0],Je=!Hn.test(ce.funcName),Dt=!Je||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Je,isShifty:Dt,base:Ie}},htmlBuilder:yn,mathmlBuilder:qn}),Lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Ie=xe[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Ie}},htmlBuilder:yn,mathmlBuilder:qn}),Lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];return{type:"accentUnder",mode:Ie.mode,label:Je,base:Dt}},htmlBuilder:function(ce,xe){var Ie=Ti(ce.base,xe),Je=On.svgSpan(ce,xe),Dt=ce.label==="\\utilde"?.12:0,lr=kr.makeVList({positionType:"bottom",positionData:Je.height+Dt,children:[{type:"elem",elem:Je,wrapperClasses:["svg-align"]},{type:"kern",size:Dt},{type:"elem",elem:Ie}]},xe);return kr.makeSpan(["mord","accentunder"],[lr],xe)},mathmlBuilder:function(ce,xe){var Ie=On.mathMLnode(ce.label),Je=new bi.MathNode("munder",[Ir(ce.base,xe),Ie]);return Je.setAttribute("accentunder","true"),Je}});var pi=function(ce){var xe=new bi.MathNode("mpadded",ce?[ce]:[]);return xe.setAttribute("width","+0.6em"),xe.setAttribute("lspace","0.3em"),xe};Lt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=ce.funcName;return{type:"xArrow",mode:Je.mode,label:Dt,body:xe[0],below:Ie[0]}},htmlBuilder:function(ce,xe){var Ie=xe.style,Je=xe.havingStyle(Ie.sup()),Dt=kr.wrapFragment(Ti(ce.body,Je,xe),xe);Dt.classes.push("x-arrow-pad");var lr;ce.below&&(Je=xe.havingStyle(Ie.sub()),lr=kr.wrapFragment(Ti(ce.below,Je,xe),xe),lr.classes.push("x-arrow-pad"));var Xr=On.svgSpan(ce,xe),hn=-xe.fontMetrics().axisHeight+.5*Xr.height,Nn=-xe.fontMetrics().axisHeight-.5*Xr.height-.111;(Dt.depth>.25||ce.label==="\\xleftequilibrium")&&(Nn-=Dt.depth);var ui;if(lr){var xi=-xe.fontMetrics().axisHeight+lr.height+.5*Xr.height+.111;ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Nn},{type:"elem",elem:Xr,shift:hn},{type:"elem",elem:lr,shift:xi}]},xe)}else ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Dt,shift:Nn},{type:"elem",elem:Xr,shift:hn}]},xe);return ui.children[0].children[0].children[1].classes.push("svg-align"),kr.makeSpan(["mrel","x-arrow"],[ui],xe)},mathmlBuilder:function(ce,xe){var Ie=On.mathMLnode(ce.label),Je;if(ce.body){var Dt=pi(Ir(ce.body,xe));if(ce.below){var lr=pi(Ir(ce.below,xe));Je=new bi.MathNode("munderover",[Ie,lr,Dt])}else Je=new bi.MathNode("mover",[Ie,Dt])}else if(ce.below){var Xr=pi(Ir(ce.below,xe));Je=new bi.MathNode("munder",[Ie,Xr])}else Je=pi(),Je=new bi.MathNode("mover",[Ie,Je]);return Je}}),Lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){for(var Ie=ce.parser,Je=Fn(xe[0],"ordgroup"),Dt=Je.body,lr="",Xr=0;Xr<Dt.length;Xr++){var hn=Fn(Dt[Xr],"textord");lr+=hn.text}var Nn=parseInt(lr);if(isNaN(Nn))throw new u("\\@char has non-numeric argument "+lr);return{type:"textord",mode:Ie.mode,text:String.fromCharCode(Nn)}}});var Fi=function(ce,xe){var Ie=pn(ce.body,xe.withColor(ce.color),!1);return kr.makeFragment(Ie)},wi=function(ce,xe){var Ie=ta(ce.body,xe.withColor(ce.color)),Je=new bi.MathNode("mstyle",Ie);return Je.setAttribute("mathcolor",ce.color),Je};Lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,xe){var Ie=ce.parser,Je=Fn(xe[0],"color-token").color,Dt=xe[1];return{type:"color",mode:Ie.mode,color:Je,body:vr(Dt)}},htmlBuilder:Fi,mathmlBuilder:wi}),Lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,xe){var Ie=ce.parser,Je=ce.breakOnTokenText,Dt=Fn(xe[0],"color-token").color;Ie.gullet.macros.set("\\current@color",Dt);var lr=Ie.parseExpression(!0,Je);return{type:"color",mode:Ie.mode,color:Dt,body:lr}},htmlBuilder:Fi,mathmlBuilder:wi}),Lt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=ce.funcName,lr=Ie[0],Xr=Dt==="\\cr",hn=!1;return Xr||(Je.settings.displayMode&&Je.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?hn=!1:hn=!0),{type:"cr",mode:Je.mode,newLine:hn,newRow:Xr,size:lr&&Fn(lr,"size").value}},htmlBuilder:function(ce,xe){if(ce.newRow)throw new u("\\cr valid only within a tabular/array environment");var Ie=kr.makeSpan(["mspace"],[],xe);return ce.newLine&&(Ie.classes.push("newline"),ce.size&&(Ie.style.marginTop=Pr(ce.size,xe)+"em")),Ie},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mspace");return ce.newLine&&(Ie.setAttribute("linebreak","newline"),ce.size&&Ie.setAttribute("height",Pr(ce.size,xe)+"em")),Ie}});var Oi=function(ce,xe,Ie){var Je=Ve.math[ce]&&Ve.math[ce].replace,Dt=ut(Je||ce,xe,Ie);if(!Dt)throw new Error("Unsupported symbol "+ce+" and font size "+xe+".");return Dt},zi=function(ce,xe,Ie,Je){var Dt=Ie.havingBaseStyle(xe),lr=kr.makeSpan(Je.concat(Dt.sizingClasses(Ie)),[ce],Ie),Xr=Dt.sizeMultiplier/Ie.sizeMultiplier;return lr.height*=Xr,lr.depth*=Xr,lr.maxFontSize=Dt.sizeMultiplier,lr},ea=function(ce,xe,Ie){var Je=xe.havingBaseStyle(Ie),Dt=(1-xe.sizeMultiplier/Je.sizeMultiplier)*xe.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Dt+"em",ce.height-=Dt,ce.depth+=Dt},Gi=function(ce,xe,Ie,Je,Dt,lr){var Xr=kr.makeSymbol(ce,"Main-Regular",Dt,Je),hn=zi(Xr,xe,Je,lr);return Ie&&ea(hn,Je,xe),hn},Wi=function(ce,xe,Ie,Je){return kr.makeSymbol(ce,"Size"+xe+"-Regular",Ie,Je)},Hi=function(ce,xe,Ie,Je,Dt,lr){var Xr=Wi(ce,xe,Dt,Je),hn=zi(kr.makeSpan(["delimsizing","size"+xe],[Xr],Je),z.TEXT,Je,lr);return Ie&&ea(hn,Je,z.TEXT),hn},Ji=function(ce,xe,Ie){var Je;xe==="Size1-Regular"?Je="delim-size1":Je="delim-size4";var Dt=kr.makeSpan(["delimsizinginner",Je],[kr.makeSpan([],[kr.makeSymbol(ce,xe,Ie)])]);return{type:"elem",elem:Dt}},ca={type:"kern",size:-.005},Ca=function(ce,xe,Ie,Je,Dt,lr){var Xr,hn,Nn,ui;Xr=Nn=ui=ce,hn=null;var xi="Size1-Regular";ce==="\\uparrow"?Nn=ui="\u23D0":ce==="\\Uparrow"?Nn=ui="\u2016":ce==="\\downarrow"?Xr=Nn="\u23D0":ce==="\\Downarrow"?Xr=Nn="\u2016":ce==="\\updownarrow"?(Xr="\\uparrow",Nn="\u23D0",ui="\\downarrow"):ce==="\\Updownarrow"?(Xr="\\Uparrow",Nn="\u2016",ui="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Xr="\u23A1",Nn="\u23A2",ui="\u23A3",xi="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Xr="\u23A4",Nn="\u23A5",ui="\u23A6",xi="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(Nn=Xr="\u23A2",ui="\u23A3",xi="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Xr="\u23A1",Nn=ui="\u23A2",xi="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(Nn=Xr="\u23A5",ui="\u23A6",xi="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Xr="\u23A4",Nn=ui="\u23A5",xi="Size4-Regular"):ce==="("||ce==="\\lparen"?(Xr="\u239B",Nn="\u239C",ui="\u239D",xi="Size4-Regular"):ce===")"||ce==="\\rparen"?(Xr="\u239E",Nn="\u239F",ui="\u23A0",xi="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Xr="\u23A7",hn="\u23A8",ui="\u23A9",Nn="\u23AA",xi="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Xr="\u23AB",hn="\u23AC",ui="\u23AD",Nn="\u23AA",xi="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Xr="\u23A7",ui="\u23A9",Nn="\u23AA",xi="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Xr="\u23AB",ui="\u23AD",Nn="\u23AA",xi="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Xr="\u23A7",ui="\u23AD",Nn="\u23AA",xi="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Xr="\u23AB",ui="\u23A9",Nn="\u23AA",xi="Size4-Regular");var Ai=Oi(Xr,xi,Dt),Yi=Ai.height+Ai.depth,sa=Oi(Nn,xi,Dt),Ua=sa.height+sa.depth,no=Oi(ui,xi,Dt),Wo=no.height+no.depth,Zo=0,Bo=1;if(hn!==null){var Es=Oi(hn,xi,Dt);Zo=Es.height+Es.depth,Bo=2}var As=Yi+Wo+Zo,$o=Math.max(0,Math.ceil((xe-As)/(Bo*Ua))),Do=As+$o*Bo*Ua,vo=Je.fontMetrics().axisHeight;Ie&&(vo*=Je.sizeMultiplier);var Ms=Do/2-vo,rl=($o+1)*.005-Ua,gs=[];if(gs.push(Ji(ui,xi,Dt)),hn===null)for(var Ra=0;Ra<$o;Ra++)gs.push(ca),gs.push(Ji(Nn,xi,Dt));else{for(var dl=0;dl<$o;dl++)gs.push(ca),gs.push(Ji(Nn,xi,Dt));gs.push({type:"kern",size:rl}),gs.push(Ji(Nn,xi,Dt)),gs.push(ca),gs.push(Ji(hn,xi,Dt));for(var fl=0;fl<$o;fl++)gs.push(ca),gs.push(Ji(Nn,xi,Dt))}gs.push({type:"kern",size:rl}),gs.push(Ji(Nn,xi,Dt)),gs.push(ca),gs.push(Ji(Xr,xi,Dt));var Us=Je.havingBaseStyle(z.TEXT),Os=kr.makeVList({positionType:"bottom",positionData:Ms,children:gs},Us);return zi(kr.makeSpan(["delimsizing","mult"],[Os],Us),z.TEXT,Je,lr)},na=80,Pa=.08,La=function(ce,xe,Ie,Je,Dt){var lr=Ge(ce,Je,Ie),Xr=new le(ce,lr),hn=new Se([Xr],{width:"400em",height:xe+"em",viewBox:"0 0 400000 "+Ie,preserveAspectRatio:"xMinYMin slice"});return kr.makeSvgSpan(["hide-tail"],[hn],Dt)},va=function(ce,xe){var Ie=xe.havingBaseSizing(),Je=Qo("\\surd",ce*Ie.sizeMultiplier,io,Ie),Dt=Ie.sizeMultiplier,lr=Math.max(0,xe.minRuleThickness-xe.fontMetrics().sqrtRuleThickness),Xr,hn=0,Nn=0,ui=0,xi;return Je.type==="small"?(ui=1e3+1e3*lr+na,ce<1?Dt=1:ce<1.4&&(Dt=.7),hn=(1+lr+Pa)/Dt,Nn=(1+lr)/Dt,Xr=La("sqrtMain",hn,ui,lr,xe),Xr.style.minWidth="0.853em",xi=.833/Dt):Je.type==="large"?(ui=(1e3+na)*Xa[Je.size],Nn=(Xa[Je.size]+lr)/Dt,hn=(Xa[Je.size]+lr+Pa)/Dt,Xr=La("sqrtSize"+Je.size,hn,ui,lr,xe),Xr.style.minWidth="1.02em",xi=1/Dt):(hn=ce+lr+Pa,Nn=ce+lr,ui=Math.floor(1e3*ce+lr)+na,Xr=La("sqrtTall",hn,ui,lr,xe),Xr.style.minWidth="0.742em",xi=1.056),Xr.height=Nn,Xr.style.height=hn+"em",{span:Xr,advanceWidth:xi,ruleWidth:(xe.fontMetrics().sqrtRuleThickness+lr)*Dt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Oa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Aa=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Xa=[0,1.2,1.8,2.4,3],_a=function(ce,xe,Ie,Je,Dt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),v.contains(ga,ce)||v.contains(Aa,ce))return Hi(ce,xe,!1,Ie,Je,Dt);if(v.contains(Oa,ce))return Ca(ce,Xa[xe],!1,Ie,Je,Dt);throw new u("Illegal delimiter: '"+ce+"'")},Va=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bi=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],io=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],oo=function(ce){if(ce.type==="small")return"Main-Regular";if(ce.type==="large")return"Size"+ce.size+"-Regular";if(ce.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ce.type+"' here.")},Qo=function(ce,xe,Ie,Je){for(var Dt=Math.min(2,3-Je.style.size),lr=Dt;lr<Ie.length&&!(Ie[lr].type==="stack");lr++){var Xr=Oi(ce,oo(Ie[lr]),"math"),hn=Xr.height+Xr.depth;if(Ie[lr].type==="small"){var Nn=Je.havingBaseStyle(Ie[lr].style);hn*=Nn.sizeMultiplier}if(hn>xe)return Ie[lr]}return Ie[Ie.length-1]},mo=function(ce,xe,Ie,Je,Dt,lr){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Xr;v.contains(Aa,ce)?Xr=Va:v.contains(ga,ce)?Xr=io:Xr=Bi;var hn=Qo(ce,xe,Xr,Je);return hn.type==="small"?Gi(ce,hn.style,Ie,Je,Dt,lr):hn.type==="large"?Hi(ce,hn.size,Ie,Je,Dt,lr):Ca(ce,xe,Ie,Je,Dt,lr)},To=function(ce,xe,Ie,Je,Dt,lr){var Xr=Je.fontMetrics().axisHeight*Je.sizeMultiplier,hn=901,Nn=5/Je.fontMetrics().ptPerEm,ui=Math.max(xe-Xr,Ie+Xr),xi=Math.max(ui/500*hn,2*ui-Nn);return mo(ce,xi,!0,Je,Dt,lr)},ao={sqrtImage:va,sizedDelim:_a,customSizedDelim:mo,leftRightDelim:To},So={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function to(Nt,ce){var xe=Pi(Nt);if(xe&&v.contains(bo,xe.text))return xe;throw new u("Invalid delimiter: '"+(xe?xe.text:JSON.stringify(Nt))+"' after '"+ce.funcName+"'",Nt)}Lt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ce,xe){var Ie=to(xe[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:So[ce.funcName].size,mclass:So[ce.funcName].mclass,delim:Ie.text}},htmlBuilder:function(ce,xe){return ce.delim==="."?kr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,xe,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var xe=[];ce.delim!=="."&&xe.push(Rn(ce.delim,ce.mode));var Ie=new bi.MathNode("mo",xe);return ce.mclass==="mopen"||ce.mclass==="mclose"?Ie.setAttribute("fence","true"):Ie.setAttribute("fence","false"),Ie}});function Jo(Nt){if(!Nt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Lt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser.gullet.macros.get("\\current@color");if(Ie&&typeof Ie!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(xe[0],ce).text,color:Ie}}}),Lt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,xe){var Ie=to(xe[0],ce),Je=ce.parser;++Je.leftrightDepth;var Dt=Je.parseExpression(!1);--Je.leftrightDepth,Je.expect("\\right",!1);var lr=Fn(Je.parseFunction(),"leftright-right");return{type:"leftright",mode:Je.mode,body:Dt,left:Ie.text,right:lr.delim,rightColor:lr.color}},htmlBuilder:function(ce,xe){Jo(ce);for(var Ie=pn(ce.body,xe,!0,["mopen","mclose"]),Je=0,Dt=0,lr=!1,Xr=0;Xr<Ie.length;Xr++)Ie[Xr].isMiddle?lr=!0:(Je=Math.max(Ie[Xr].height,Je),Dt=Math.max(Ie[Xr].depth,Dt));Je*=xe.sizeMultiplier,Dt*=xe.sizeMultiplier;var hn;if(ce.left==="."?hn=oi(xe,["mopen"]):hn=ao.leftRightDelim(ce.left,Je,Dt,xe,ce.mode,["mopen"]),Ie.unshift(hn),lr)for(var Nn=1;Nn<Ie.length;Nn++){var ui=Ie[Nn],xi=ui.isMiddle;xi&&(Ie[Nn]=ao.leftRightDelim(xi.delim,Je,Dt,xi.options,ce.mode,[]))}var Ai;if(ce.right===".")Ai=oi(xe,["mclose"]);else{var Yi=ce.rightColor?xe.withColor(ce.rightColor):xe;Ai=ao.leftRightDelim(ce.right,Je,Dt,Yi,ce.mode,["mclose"])}return Ie.push(Ai),kr.makeSpan(["minner"],Ie,xe)},mathmlBuilder:function(ce,xe){Jo(ce);var Ie=ta(ce.body,xe);if(ce.left!=="."){var Je=new bi.MathNode("mo",[Rn(ce.left,ce.mode)]);Je.setAttribute("fence","true"),Ie.unshift(Je)}if(ce.right!=="."){var Dt=new bi.MathNode("mo",[Rn(ce.right,ce.mode)]);Dt.setAttribute("fence","true"),ce.rightColor&&Dt.setAttribute("mathcolor",ce.rightColor),Ie.push(Dt)}return ji(Ie)}}),Lt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,xe){var Ie=to(xe[0],ce);if(!ce.parser.leftrightDepth)throw new u("\\middle without preceding \\left",Ie);return{type:"middle",mode:ce.parser.mode,delim:Ie.text}},htmlBuilder:function(ce,xe){var Ie;if(ce.delim===".")Ie=oi(xe,[]);else{Ie=ao.sizedDelim(ce.delim,1,xe,ce.mode,[]);var Je={delim:ce.delim,options:xe};Ie.isMiddle=Je}return Ie},mathmlBuilder:function(ce,xe){var Ie=ce.delim==="\\vert"||ce.delim==="|"?Rn("|","text"):Rn(ce.delim,ce.mode),Je=new bi.MathNode("mo",[Ie]);return Je.setAttribute("fence","true"),Je.setAttribute("lspace","0.05em"),Je.setAttribute("rspace","0.05em"),Je}});var Uo=function(ce,xe){var Ie=kr.wrapFragment(Ti(ce.body,xe),xe),Je=ce.label.substr(1),Dt=xe.sizeMultiplier,lr,Xr=0,hn=v.isCharacterBox(ce.body);if(Je==="sout")lr=kr.makeSpan(["stretchy","sout"]),lr.height=xe.fontMetrics().defaultRuleThickness/Dt,Xr=-.5*xe.fontMetrics().xHeight;else{/cancel/.test(Je)?hn||Ie.classes.push("cancel-pad"):Ie.classes.push("boxpad");var Nn=0,ui=0;/box/.test(Je)?(ui=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness),Nn=xe.fontMetrics().fboxsep+(Je==="colorbox"?0:ui)):Nn=hn?.2:0,lr=On.encloseSpan(Ie,Je,Nn,xe),/fbox|boxed|fcolorbox/.test(Je)&&(lr.style.borderStyle="solid",lr.style.borderWidth=ui+"em"),Xr=Ie.depth+Nn,ce.backgroundColor&&(lr.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(lr.style.borderColor=ce.borderColor))}var xi;return ce.backgroundColor?xi=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:lr,shift:Xr},{type:"elem",elem:Ie,shift:0}]},xe):xi=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ie,shift:0},{type:"elem",elem:lr,shift:Xr,wrapperClasses:/cancel/.test(Je)?["svg-align"]:[]}]},xe),/cancel/.test(Je)&&(xi.height=Ie.height,xi.depth=Ie.depth),/cancel/.test(Je)&&!hn?kr.makeSpan(["mord","cancel-lap"],[xi],xe):kr.makeSpan(["mord"],[xi],xe)},wo=function(ce,xe){var Ie=0,Je=new bi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ir(ce.body,xe)]);switch(ce.label){case"\\cancel":Je.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Je.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Je.setAttribute("notation","horizontalstrike");break;case"\\fbox":Je.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Ie=xe.fontMetrics().fboxsep*xe.fontMetrics().ptPerEm,Je.setAttribute("width","+"+2*Ie+"pt"),Je.setAttribute("height","+"+2*Ie+"pt"),Je.setAttribute("lspace",Ie+"pt"),Je.setAttribute("voffset",Ie+"pt"),ce.label==="\\fcolorbox"){var Dt=Math.max(xe.fontMetrics().fboxrule,xe.minRuleThickness);Je.setAttribute("style","border: "+Dt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Je.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Je.setAttribute("mathbackground",ce.backgroundColor),Je};Lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=ce.funcName,lr=Fn(xe[0],"color-token").color,Xr=xe[1];return{type:"enclose",mode:Je.mode,label:Dt,backgroundColor:lr,body:Xr}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=ce.funcName,lr=Fn(xe[0],"color-token").color,Xr=Fn(xe[1],"color-token").color,hn=xe[2];return{type:"enclose",mode:Je.mode,label:Dt,backgroundColor:Xr,borderColor:lr,body:hn}},htmlBuilder:Uo,mathmlBuilder:wo}),Lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"enclose",mode:Ie.mode,label:"\\fbox",body:xe[0]}}}),Lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=ce.funcName,lr=xe[0];return{type:"enclose",mode:Je.mode,label:Dt,body:lr}},htmlBuilder:Uo,mathmlBuilder:wo});var ts={};function Ia(Nt){for(var ce=Nt.type,xe=Nt.names,Ie=Nt.props,Je=Nt.handler,Dt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Xr={type:ce,numArgs:Ie.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Je},hn=0;hn<xe.length;++hn)ts[xe[hn]]=Xr;Dt&&(Ut[ce]=Dt),lr&&(Kt[ce]=lr)}function Oo(Nt){var ce=[];Nt.consumeSpaces();for(var xe=Nt.fetch().text;xe==="\\hline"||xe==="\\hdashline";)Nt.consume(),ce.push(xe==="\\hdashline"),Nt.consumeSpaces(),xe=Nt.fetch().text;return ce}function Io(Nt,ce,xe){var Ie=ce.hskipBeforeAndAfter,Je=ce.addJot,Dt=ce.cols,lr=ce.arraystretch,Xr=ce.colSeparationType;if(Nt.gullet.beginGroup(),Nt.gullet.macros.set("\\\\","\\cr"),!lr){var hn=Nt.gullet.expandMacroAsText("\\arraystretch");if(hn==null)lr=1;else if(lr=parseFloat(hn),!lr||lr<0)throw new u("Invalid \\arraystretch: "+hn)}Nt.gullet.beginGroup();var Nn=[],ui=[Nn],xi=[],Ai=[];for(Ai.push(Oo(Nt));;){var Yi=Nt.parseExpression(!1,"\\cr");Nt.gullet.endGroup(),Nt.gullet.beginGroup(),Yi={type:"ordgroup",mode:Nt.mode,body:Yi},xe&&(Yi={type:"styling",mode:Nt.mode,style:xe,body:[Yi]}),Nn.push(Yi);var sa=Nt.fetch().text;if(sa==="&")Nt.consume();else if(sa==="\\end"){Nn.length===1&&Yi.type==="styling"&&Yi.body[0].body.length===0&&ui.pop(),Ai.length<ui.length+1&&Ai.push([]);break}else if(sa==="\\cr"){var Ua=Fn(Nt.parseFunction(),"cr");xi.push(Ua.size),Ai.push(Oo(Nt)),Nn=[],ui.push(Nn)}else throw new u("Expected & or \\\\ or \\cr or \\end",Nt.nextToken)}return Nt.gullet.endGroup(),Nt.gullet.endGroup(),{type:"array",mode:Nt.mode,addJot:Je,arraystretch:lr,body:ui,cols:Dt,rowGaps:xi,hskipBeforeAndAfter:Ie,hLinesBeforeRow:Ai,colSeparationType:Xr}}function os(Nt){return Nt.substr(0,1)==="d"?"display":"text"}var xo=function(ce,xe){var Ie,Je,Dt=ce.body.length,lr=ce.hLinesBeforeRow,Xr=0,hn=new Array(Dt),Nn=[],ui=Math.max(xe.fontMetrics().arrayRuleWidth,xe.minRuleThickness),xi=1/xe.fontMetrics().ptPerEm,Ai=5*xi;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Yi=xe.havingStyle(z.SCRIPT).sizeMultiplier;Ai=.2778*(Yi/xe.sizeMultiplier)}var sa=12*xi,Ua=3*xi,no=ce.arraystretch*sa,Wo=.7*no,Zo=.3*no,Bo=0;function Es(Ls){for(var Ps=0;Ps<Ls.length;++Ps)Ps>0&&(Bo+=.25),Nn.push({pos:Bo,isDashed:Ls[Ps]})}for(Es(lr[0]),Ie=0;Ie<ce.body.length;++Ie){var As=ce.body[Ie],$o=Wo,Do=Zo;Xr<As.length&&(Xr=As.length);var vo=new Array(As.length);for(Je=0;Je<As.length;++Je){var Ms=Ti(As[Je],xe);Do<Ms.depth&&(Do=Ms.depth),$o<Ms.height&&($o=Ms.height),vo[Je]=Ms}var rl=ce.rowGaps[Ie],gs=0;rl&&(gs=Pr(rl,xe),gs>0&&(gs+=Zo,Do<gs&&(Do=gs),gs=0)),ce.addJot&&(Do+=Ua),vo.height=$o,vo.depth=Do,Bo+=$o,vo.pos=Bo,Bo+=Do+gs,hn[Ie]=vo,Es(lr[Ie+1])}var Ra=Bo/2+xe.fontMetrics().axisHeight,dl=ce.cols||[],fl=[],Us,Os;for(Je=0,Os=0;Je<Xr||Os<dl.length;++Je,++Os){for(var Xs=dl[Os]||{},Ql=!0;Xs.type==="separator";){if(Ql||(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=xe.fontMetrics().doubleRuleSep+"em",fl.push(Us)),Xs.separator==="|"||Xs.separator===":"){var Ul=Xs.separator==="|"?"solid":"dashed",wl=kr.makeSpan(["vertical-separator"],[],xe);wl.style.height=Bo+"em",wl.style.borderRightWidth=ui+"em",wl.style.borderRightStyle=Ul,wl.style.margin="0 -"+ui/2+"em",wl.style.verticalAlign=-(Bo-Ra)+"em",fl.push(wl)}else throw new u("Invalid separator type: "+Xs.separator);Os++,Xs=dl[Os]||{},Ql=!1}if(Je>=Xr)continue;var Ts=void 0;(Je>0||ce.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.pregap,Ai),Ts!==0&&(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)));var Ws=[];for(Ie=0;Ie<Dt;++Ie){var Tl=hn[Ie],pl=Tl[Je];if(!pl)continue;var jo=Tl.pos-Ra;pl.depth=Tl.depth,pl.height=Tl.height,Ws.push({type:"elem",elem:pl,shift:jo})}Ws=kr.makeVList({positionType:"individualShift",children:Ws},xe),Ws=kr.makeSpan(["col-align-"+(Xs.align||"c")],[Ws]),fl.push(Ws),(Je<Xr-1||ce.hskipBeforeAndAfter)&&(Ts=v.deflt(Xs.postgap,Ai),Ts!==0&&(Us=kr.makeSpan(["arraycolsep"],[]),Us.style.width=Ts+"em",fl.push(Us)))}if(hn=kr.makeSpan(["mtable"],fl),Nn.length>0){for(var yo=kr.makeLineSpan("hline",xe,ui),qo=kr.makeLineSpan("hdashline",xe,ui),ps=[{type:"elem",elem:hn,shift:0}];Nn.length>0;){var Is=Nn.pop(),es=Is.pos-Ra;Is.isDashed?ps.push({type:"elem",elem:qo,shift:es}):ps.push({type:"elem",elem:yo,shift:es})}hn=kr.makeVList({positionType:"individualShift",children:ps},xe)}return kr.makeSpan(["mord"],[hn],xe)},rs={c:"center ",l:"left ",r:"right "},Ho=function(ce,xe){var Ie=new bi.MathNode("mtable",ce.body.map(function(Bo){return new bi.MathNode("mtr",Bo.map(function(Es){return new bi.MathNode("mtd",[Ir(Es,xe)])}))})),Je=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Ie.setAttribute("rowspacing",Je+"em");var Dt="",lr="";if(ce.cols){var Xr=ce.cols,hn="",Nn=!1,ui=0,xi=Xr.length;Xr[0].type==="separator"&&(Dt+="top ",ui=1),Xr[Xr.length-1].type==="separator"&&(Dt+="bottom ",xi-=1);for(var Ai=ui;Ai<xi;Ai++)Xr[Ai].type==="align"?(lr+=rs[Xr[Ai].align],Nn&&(hn+="none "),Nn=!0):Xr[Ai].type==="separator"&&(Nn&&(hn+=Xr[Ai].separator==="|"?"solid ":"dashed ",Nn=!1));Ie.setAttribute("columnalign",lr.trim()),/[sd]/.test(hn)&&Ie.setAttribute("columnlines",hn.trim())}if(ce.colSeparationType==="align"){for(var Yi=ce.cols||[],sa="",Ua=1;Ua<Yi.length;Ua++)sa+=Ua%2?"0em ":"1em ";Ie.setAttribute("columnspacing",sa.trim())}else ce.colSeparationType==="alignat"?Ie.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Ie.setAttribute("columnspacing","0.2778em"):Ie.setAttribute("columnspacing","1em");var no="",Wo=ce.hLinesBeforeRow;Dt+=Wo[0].length>0?"left ":"",Dt+=Wo[Wo.length-1].length>0?"right ":"";for(var Zo=1;Zo<Wo.length-1;Zo++)no+=Wo[Zo].length===0?"none ":Wo[Zo][0]?"dashed ":"solid ";return/[sd]/.test(no)&&Ie.setAttribute("rowlines",no.trim()),Dt!==""&&(Ie=new bi.MathNode("menclose",[Ie]),Ie.setAttribute("notation",Dt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Ie=new bi.MathNode("mstyle",[Ie]),Ie.setAttribute("scriptlevel","1")),Ie},_o=function(ce,xe){var Ie=[],Je=Io(ce.parser,{cols:Ie,addJot:!0},"display"),Dt,lr=0,Xr={type:"ordgroup",mode:ce.mode,body:[]},hn=vn(xe[0],"ordgroup");if(hn){for(var Nn="",ui=0;ui<hn.body.length;ui++){var xi=Fn(hn.body[ui],"textord");Nn+=xi.text}Dt=Number(Nn),lr=Dt*2}var Ai=!lr;Je.body.forEach(function(no){for(var Wo=1;Wo<no.length;Wo+=2){var Zo=Fn(no[Wo],"styling"),Bo=Fn(Zo.body[0],"ordgroup");Bo.body.unshift(Xr)}if(Ai)lr<no.length&&(lr=no.length);else{var Es=no.length/2;if(Dt<Es)throw new u("Too many math in a row: "+("expected "+Dt+", but got "+Es),no[0])}});for(var Yi=0;Yi<lr;++Yi){var sa="r",Ua=0;Yi%2===1?sa="l":Yi>0&&Ai&&(Ua=1),Ie[Yi]={type:"align",align:sa,pregap:Ua,postgap:0}}return Je.colSeparationType=Ai?"align":"alignat",Je};Ia({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,xe){var Ie=Pi(xe[0]),Je=Ie?[xe[0]]:Fn(xe[0],"ordgroup").body,Dt=Je.map(function(Xr){var hn=fi(Xr),Nn=hn.text;if("lcr".indexOf(Nn)!==-1)return{type:"align",align:Nn};if(Nn==="|")return{type:"separator",separator:"|"};if(Nn===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+Nn,Xr)}),lr={cols:Dt,hskipBeforeAndAfter:!0};return Io(ce.parser,lr,os(ce.envName))},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var xe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Ie={hskipBeforeAndAfter:!1},Je=Io(ce.parser,Ie,os(ce.envName));return xe?{type:"leftright",mode:ce.mode,body:[Je],left:xe[0],right:xe[1],rightColor:void 0}:Je},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var xe={arraystretch:.5},Ie=Io(ce.parser,xe,"script");return Ie.colSeparationType="small",Ie},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,xe){var Ie=Pi(xe[0]),Je=Ie?[xe[0]]:Fn(xe[0],"ordgroup").body,Dt=Je.map(function(Xr){var hn=fi(Xr),Nn=hn.text;if("lc".indexOf(Nn)!==-1)return{type:"align",align:Nn};throw new u("Unknown column alignment: "+Nn,Xr)});if(Dt.length>1)throw new u("{subarray} can contain only one column");var lr={cols:Dt,hskipBeforeAndAfter:!1,arraystretch:.5};if(lr=Io(ce.parser,lr,"script"),lr.body[0].length>1)throw new u("{subarray} can contain only one column");return lr},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var xe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Ie=Io(ce.parser,xe,os(ce.envName));return{type:"leftright",mode:ce.mode,body:[Ie],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["aligned"],props:{numArgs:0},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var xe={cols:[{type:"align",align:"c"}],addJot:!0};return Io(ce.parser,xe,"display")},htmlBuilder:xo,mathmlBuilder:Ho}),Ia({type:"array",names:["alignedat"],props:{numArgs:1},handler:_o,htmlBuilder:xo,mathmlBuilder:Ho}),Lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,xe){throw new u(ce.funcName+" valid only within array environment")}});var uo=ts,Ha=uo;Lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];if(Dt.type!=="ordgroup")throw new u("Invalid environment name",Dt);for(var lr="",Xr=0;Xr<Dt.body.length;++Xr)lr+=Fn(Dt.body[Xr],"textord").text;if(Je==="\\begin"){if(!Ha.hasOwnProperty(lr))throw new u("No such environment: "+lr,Dt);var hn=Ha[lr],Nn=Ie.parseArguments("\\begin{"+lr+"}",hn),ui=Nn.args,xi=Nn.optArgs,Ai={mode:Ie.mode,envName:lr,parser:Ie},Yi=hn.handler(Ai,ui,xi);Ie.expect("\\end",!1);var sa=Ie.nextToken,Ua=Fn(Ie.parseFunction(),"environment");if(Ua.name!==lr)throw new u("Mismatch: \\begin{"+lr+"} matched by \\end{"+Ua.name+"}",sa);return Yi}return{type:"environment",mode:Ie.mode,name:lr,nameGroup:Dt}}});var vt=kr.makeSpan;function Er(Nt,ce){var xe=pn(Nt.body,ce,!0);return vt([Nt.mclass],xe,ce)}function qr(Nt,ce){var xe,Ie=ta(Nt.body,ce);return Nt.mclass==="minner"?bi.newDocumentFragment(Ie):(Nt.mclass==="mord"?Nt.isCharacterBox?(xe=Ie[0],xe.type="mi"):xe=new bi.MathNode("mi",Ie):(Nt.isCharacterBox?(xe=Ie[0],xe.type="mo"):xe=new bi.MathNode("mo",Ie),Nt.mclass==="mbin"?(xe.attributes.lspace="0.22em",xe.attributes.rspace="0.22em"):Nt.mclass==="mpunct"?(xe.attributes.lspace="0em",xe.attributes.rspace="0.17em"):(Nt.mclass==="mopen"||Nt.mclass==="mclose")&&(xe.attributes.lspace="0em",xe.attributes.rspace="0em")),xe)}Lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];return{type:"mclass",mode:Ie.mode,mclass:"m"+Je.substr(5),body:vr(Dt),isCharacterBox:v.isCharacterBox(Dt)}},htmlBuilder:Er,mathmlBuilder:qr});var Gr=function(ce){var xe=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return xe.type==="atom"&&(xe.family==="bin"||xe.family==="rel")?"m"+xe.family:"mord"};Lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,xe){var Ie=ce.parser;return{type:"mclass",mode:Ie.mode,mclass:Gr(xe[0]),body:[xe[1]],isCharacterBox:v.isCharacterBox(xe[1])}}}),Lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[1],lr=xe[0],Xr;Je!=="\\stackrel"?Xr=Gr(Dt):Xr="mrel";var hn={type:"op",mode:Dt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Je!=="\\stackrel",body:vr(Dt)},Nn={type:"supsub",mode:lr.mode,base:hn,sup:Je==="\\underset"?null:lr,sub:Je==="\\underset"?lr:null};return{type:"mclass",mode:Ie.mode,mclass:Xr,body:[Nn],isCharacterBox:v.isCharacterBox(Nn)}},htmlBuilder:Er,mathmlBuilder:qr});var Qn=function(ce,xe){var Ie=ce.font,Je=xe.withFont(Ie);return Ti(ce.body,Je)},un=function(ce,xe){var Ie=ce.font,Je=xe.withFont(Ie);return Ir(ce.body,Je)},zr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0],lr=Je;return lr in zr&&(lr=zr[lr]),{type:"font",mode:Ie.mode,font:lr.slice(1),body:Dt}},htmlBuilder:Qn,mathmlBuilder:un}),Lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0],Dt=v.isCharacterBox(Je);return{type:"mclass",mode:Ie.mode,mclass:Gr(Je),body:[{type:"font",mode:Ie.mode,font:"boldsymbol",body:Je}],isCharacterBox:Dt}}}),Lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=ce.breakOnTokenText,lr=Ie.mode,Xr=Ie.parseExpression(!0,Dt),hn="math"+Je.slice(1);return{type:"font",mode:lr,font:hn,body:{type:"ordgroup",mode:Ie.mode,body:Xr}}},htmlBuilder:Qn,mathmlBuilder:un});var ni=function(ce,xe){var Ie=xe;return ce==="display"?Ie=Ie.id>=z.SCRIPT.id?Ie.text():z.DISPLAY:ce==="text"&&Ie.size===z.DISPLAY.size?Ie=z.TEXT:ce==="script"?Ie=z.SCRIPT:ce==="scriptscript"&&(Ie=z.SCRIPTSCRIPT),Ie},rn=function(ce,xe){var Ie=ni(ce.size,xe.style),Je=Ie.fracNum(),Dt=Ie.fracDen(),lr;lr=xe.havingStyle(Je);var Xr=Ti(ce.numer,lr,xe);if(ce.continued){var hn=8.5/xe.fontMetrics().ptPerEm,Nn=3.5/xe.fontMetrics().ptPerEm;Xr.height=Xr.height<hn?hn:Xr.height,Xr.depth=Xr.depth<Nn?Nn:Xr.depth}lr=xe.havingStyle(Dt);var ui=Ti(ce.denom,lr,xe),xi,Ai,Yi;ce.hasBarLine?(ce.barSize?(Ai=Pr(ce.barSize,xe),xi=kr.makeLineSpan("frac-line",xe,Ai)):xi=kr.makeLineSpan("frac-line",xe),Ai=xi.height,Yi=xi.height):(xi=null,Ai=0,Yi=xe.fontMetrics().defaultRuleThickness);var sa,Ua,no;Ie.size===z.DISPLAY.size||ce.size==="display"?(sa=xe.fontMetrics().num1,Ai>0?Ua=3*Yi:Ua=7*Yi,no=xe.fontMetrics().denom1):(Ai>0?(sa=xe.fontMetrics().num2,Ua=Yi):(sa=xe.fontMetrics().num3,Ua=3*Yi),no=xe.fontMetrics().denom2);var Wo;if(xi){var Bo=xe.fontMetrics().axisHeight;sa-Xr.depth-(Bo+.5*Ai)<Ua&&(sa+=Ua-(sa-Xr.depth-(Bo+.5*Ai))),Bo-.5*Ai-(ui.height-no)<Ua&&(no+=Ua-(Bo-.5*Ai-(ui.height-no)));var Es=-(Bo-.5*Ai);Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:xi,shift:Es},{type:"elem",elem:Xr,shift:-sa}]},xe)}else{var Zo=sa-Xr.depth-(ui.height-no);Zo<Ua&&(sa+=.5*(Ua-Zo),no+=.5*(Ua-Zo)),Wo=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:no},{type:"elem",elem:Xr,shift:-sa}]},xe)}lr=xe.havingStyle(Ie),Wo.height*=lr.sizeMultiplier/xe.sizeMultiplier,Wo.depth*=lr.sizeMultiplier/xe.sizeMultiplier;var As;Ie.size===z.DISPLAY.size?As=xe.fontMetrics().delim1:As=xe.fontMetrics().delim2;var $o,Do;return ce.leftDelim==null?$o=oi(xe,["mopen"]):$o=ao.customSizedDelim(ce.leftDelim,As,!0,xe.havingStyle(Ie),ce.mode,["mopen"]),ce.continued?Do=kr.makeSpan([]):ce.rightDelim==null?Do=oi(xe,["mclose"]):Do=ao.customSizedDelim(ce.rightDelim,As,!0,xe.havingStyle(Ie),ce.mode,["mclose"]),kr.makeSpan(["mord"].concat(lr.sizingClasses(xe)),[$o,kr.makeSpan(["mfrac"],[Wo]),Do],xe)},Kn=function(ce,xe){var Ie=new bi.MathNode("mfrac",[Ir(ce.numer,xe),Ir(ce.denom,xe)]);if(!ce.hasBarLine)Ie.setAttribute("linethickness","0px");else if(ce.barSize){var Je=Pr(ce.barSize,xe);Ie.setAttribute("linethickness",Je+"em")}var Dt=ni(ce.size,xe.style);if(Dt.size!==xe.style.size){Ie=new bi.MathNode("mstyle",[Ie]);var lr=Dt.size===z.DISPLAY.size?"true":"false";Ie.setAttribute("displaystyle",lr),Ie.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Xr=[];if(ce.leftDelim!=null){var hn=new bi.MathNode("mo",[new bi.TextNode(ce.leftDelim.replace("\\",""))]);hn.setAttribute("fence","true"),Xr.push(hn)}if(Xr.push(Ie),ce.rightDelim!=null){var Nn=new bi.MathNode("mo",[new bi.TextNode(ce.rightDelim.replace("\\",""))]);Nn.setAttribute("fence","true"),Xr.push(Nn)}return ji(Xr)}return Ie};Lt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0],lr=xe[1],Xr,hn=null,Nn=null,ui="auto";switch(Je){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Xr=!0;break;case"\\\\atopfrac":Xr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Xr=!1,hn="(",Nn=")";break;case"\\\\bracefrac":Xr=!1,hn="\\{",Nn="\\}";break;case"\\\\brackfrac":Xr=!1,hn="[",Nn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Je){case"\\cfrac":case"\\dfrac":case"\\dbinom":ui="display";break;case"\\tfrac":case"\\tbinom":ui="text";break}return{type:"genfrac",mode:Ie.mode,continued:Je==="\\cfrac",numer:Dt,denom:lr,hasBarLine:Xr,leftDelim:hn,rightDelim:Nn,size:ui,barSize:null}},htmlBuilder:rn,mathmlBuilder:Kn}),Lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName,Je=ce.token,Dt;switch(Ie){case"\\over":Dt="\\frac";break;case"\\choose":Dt="\\binom";break;case"\\atop":Dt="\\\\atopfrac";break;case"\\brace":Dt="\\\\bracefrac";break;case"\\brack":Dt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:xe.mode,replaceWith:Dt,token:Je}}});var li=["display","text","script","scriptscript"],ci=function(ce){var xe=null;return ce.length>0&&(xe=ce,xe=xe==="."?null:xe),xe};Lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,xe){var Ie=ce.parser,Je=xe[4],Dt=xe[5],lr=vn(xe[0],"atom");lr&&(lr=$r(xe[0],"open"));var Xr=lr?ci(lr.text):null,hn=vn(xe[1],"atom");hn&&(hn=$r(xe[1],"close"));var Nn=hn?ci(hn.text):null,ui=Fn(xe[2],"size"),xi,Ai=null;ui.isBlank?xi=!0:(Ai=ui.value,xi=Ai.number>0);var Yi="auto",sa=vn(xe[3],"ordgroup");if(sa){if(sa.body.length>0){var Ua=Fn(sa.body[0],"textord");Yi=li[Number(Ua.text)]}}else sa=Fn(xe[3],"textord"),Yi=li[Number(sa.text)];return{type:"genfrac",mode:Ie.mode,numer:Je,denom:Dt,continued:!1,hasBarLine:xi,barSize:Ai,leftDelim:Xr,rightDelim:Nn,size:Yi}},htmlBuilder:rn,mathmlBuilder:Kn}),Lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=ce.token;return{type:"infix",mode:Ie.mode,replaceWith:"\\\\abovefrac",size:Fn(xe[0],"size").value,token:Dt}}}),Lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0],lr=h(Fn(xe[1],"infix").size),Xr=xe[2],hn=lr.number>0;return{type:"genfrac",mode:Ie.mode,numer:Dt,denom:Xr,continued:!1,hasBarLine:hn,barSize:lr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rn,mathmlBuilder:Kn});var si=function(ce,xe){var Ie=xe.style,Je,Dt,lr=vn(ce,"supsub");lr?(Je=lr.sup?Ti(lr.sup,xe.havingStyle(Ie.sup()),xe):Ti(lr.sub,xe.havingStyle(Ie.sub()),xe),Dt=Fn(lr.base,"horizBrace")):Dt=Fn(ce,"horizBrace");var Xr=Ti(Dt.base,xe.havingBaseStyle(z.DISPLAY)),hn=On.svgSpan(Dt,xe),Nn;if(Dt.isOver?(Nn=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Xr},{type:"kern",size:.1},{type:"elem",elem:hn}]},xe),Nn.children[0].children[0].children[1].classes.push("svg-align")):(Nn=kr.makeVList({positionType:"bottom",positionData:Xr.depth+.1+hn.height,children:[{type:"elem",elem:hn},{type:"kern",size:.1},{type:"elem",elem:Xr}]},xe),Nn.children[0].children[0].children[0].classes.push("svg-align")),Je){var ui=kr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Nn],xe);Dt.isOver?Nn=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ui},{type:"kern",size:.2},{type:"elem",elem:Je}]},xe):Nn=kr.makeVList({positionType:"bottom",positionData:ui.depth+.2+Je.height+Je.depth,children:[{type:"elem",elem:Je},{type:"kern",size:.2},{type:"elem",elem:ui}]},xe)}return kr.makeSpan(["mord",Dt.isOver?"mover":"munder"],[Nn],xe)},Ci=function(ce,xe){var Ie=On.mathMLnode(ce.label);return new bi.MathNode(ce.isOver?"mover":"munder",[Ir(ce.base,xe),Ie])};Lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName;return{type:"horizBrace",mode:Ie.mode,label:Je,isOver:/^\\over/.test(Je),base:xe[0]}},htmlBuilder:si,mathmlBuilder:Ci}),Lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=xe[1],Dt=Fn(xe[0],"url").url;return Ie.settings.isTrusted({command:"\\href",url:Dt})?{type:"href",mode:Ie.mode,href:Dt,body:vr(Je)}:Ie.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,xe){var Ie=pn(ce.body,xe,!1);return kr.makeAnchor(ce.href,[],Ie,xe)},mathmlBuilder:function(ce,xe){var Ie=ra(ce.body,xe);return Ie instanceof ma||(Ie=new ma("mrow",[Ie])),Ie.setAttribute("href",ce.href),Ie}}),Lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=Fn(xe[0],"url").url;if(!Ie.settings.isTrusted({command:"\\url",url:Je}))return Ie.formatUnsupportedCmd("\\url");for(var Dt=[],lr=0;lr<Je.length;lr++){var Xr=Je[lr];Xr==="~"&&(Xr="\\textasciitilde"),Dt.push({type:"textord",mode:"text",text:Xr})}var hn={type:"text",mode:Ie.mode,font:"\\texttt",body:Dt};return{type:"href",mode:Ie.mode,href:Je,body:vr(hn)}}}),Lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"htmlmathml",mode:Ie.mode,html:vr(xe[0]),mathml:vr(xe[1])}},htmlBuilder:function(ce,xe){var Ie=pn(ce.html,xe,!1);return kr.makeFragment(Ie)},mathmlBuilder:function(ce,xe){return ra(ce.mathml,xe)}});var mi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var xe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!xe)throw new u("Invalid size: '"+ce+"' in \\includegraphics");var Ie={number:+(xe[1]+xe[2]),unit:xe[3]};if(!Yr(Ie))throw new u("Invalid unit: '"+Ie.unit+"' in \\includegraphics.");return Ie};Lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,xe,Ie){var Je=ce.parser,Dt={number:0,unit:"em"},lr={number:.9,unit:"em"},Xr={number:0,unit:"em"},hn="";if(Ie[0])for(var Nn=Fn(Ie[0],"raw").string,ui=Nn.split(","),xi=0;xi<ui.length;xi++){var Ai=ui[xi].split("=");if(Ai.length===2){var Yi=Ai[1].trim();switch(Ai[0].trim()){case"alt":hn=Yi;break;case"width":Dt=mi(Yi);break;case"height":lr=mi(Yi);break;case"totalheight":Xr=mi(Yi);break;default:throw new u("Invalid key: '"+Ai[0]+"' in \\includegraphics.")}}}var sa=Fn(xe[0],"url").url;return hn===""&&(hn=sa,hn=hn.replace(/^.*[\\/]/,""),hn=hn.substring(0,hn.lastIndexOf("."))),Je.settings.isTrusted({command:"\\includegraphics",url:sa})?{type:"includegraphics",mode:Je.mode,alt:hn,width:Dt,height:lr,totalheight:Xr,src:sa}:Je.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,xe){var Ie=Pr(ce.height,xe),Je=0;ce.totalheight.number>0&&(Je=Pr(ce.totalheight,xe)-Ie,Je=Number(Je.toFixed(2)));var Dt=0;ce.width.number>0&&(Dt=Pr(ce.width,xe));var lr={height:Ie+Je+"em"};Dt>0&&(lr.width=Dt+"em"),Je>0&&(lr.verticalAlign=-Je+"em");var Xr=new de(ce.src,ce.alt,lr);return Xr.height=Ie,Xr.depth=Je,Xr},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mglyph",[]);Ie.setAttribute("alt",ce.alt);var Je=Pr(ce.height,xe),Dt=0;if(ce.totalheight.number>0&&(Dt=Pr(ce.totalheight,xe)-Je,Dt=Dt.toFixed(2),Ie.setAttribute("valign","-"+Dt+"em")),Ie.setAttribute("height",Je+Dt+"em"),ce.width.number>0){var lr=Pr(ce.width,xe);Ie.setAttribute("width",lr+"em")}return Ie.setAttribute("src",ce.src),Ie}}),Lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=Fn(xe[0],"size");if(Ie.settings.strict){var lr=Je[1]==="m",Xr=Dt.value.unit==="mu";lr?(Xr||Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" supports only mu units, "+("not "+Dt.value.unit+" units")),Ie.mode!=="math"&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" works only in math mode")):Xr&&Ie.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Je+" doesn't support mu units")}return{type:"kern",mode:Ie.mode,dimension:Dt.value}},htmlBuilder:function(ce,xe){return kr.makeGlue(ce.dimension,xe)},mathmlBuilder:function(ce,xe){var Ie=Pr(ce.dimension,xe);return new bi.SpaceNode(Ie)}}),Lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];return{type:"lap",mode:Ie.mode,alignment:Je.slice(5),body:Dt}},htmlBuilder:function(ce,xe){var Ie;ce.alignment==="clap"?(Ie=kr.makeSpan([],[Ti(ce.body,xe)]),Ie=kr.makeSpan(["inner"],[Ie],xe)):Ie=kr.makeSpan(["inner"],[Ti(ce.body,xe)]);var Je=kr.makeSpan(["fix"],[]),Dt=kr.makeSpan([ce.alignment],[Ie,Je],xe),lr=kr.makeSpan(["strut"]);return lr.style.height=Dt.height+Dt.depth+"em",lr.style.verticalAlign=-Dt.depth+"em",Dt.children.unshift(lr),Dt=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dt}]},xe),kr.makeSpan(["mord"],[Dt],xe)},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mpadded",[Ir(ce.body,xe)]);if(ce.alignment!=="rlap"){var Je=ce.alignment==="llap"?"-1":"-0.5";Ie.setAttribute("lspace",Je+"width")}return Ie.setAttribute("width","0px"),Ie}}),Lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){var Ie=ce.funcName,Je=ce.parser,Dt=Je.mode;Je.switchMode("math");var lr=Ie==="\\("?"\\)":"$",Xr=Je.parseExpression(!1,lr);return Je.expect(lr),Je.switchMode(Dt),{type:"styling",mode:Je.mode,style:"text",body:Xr}}}),Lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,xe){throw new u("Mismatched "+ce.funcName)}});var yi=function(ce,xe){switch(xe.style.size){case z.DISPLAY.size:return ce.display;case z.TEXT.size:return ce.text;case z.SCRIPT.size:return ce.script;case z.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};Lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,xe){var Ie=ce.parser;return{type:"mathchoice",mode:Ie.mode,display:vr(xe[0]),text:vr(xe[1]),script:vr(xe[2]),scriptscript:vr(xe[3])}},htmlBuilder:function(ce,xe){var Ie=yi(ce,xe),Je=pn(Ie,xe,!1);return kr.makeFragment(Je)},mathmlBuilder:function(ce,xe){var Ie=yi(ce,xe);return ra(Ie,xe)}});var Ni=function(ce,xe,Ie,Je,Dt,lr,Xr){ce=kr.makeSpan([],[ce]);var hn,Nn;if(xe){var ui=Ti(xe,Je.havingStyle(Dt.sup()),Je);Nn={elem:ui,kern:Math.max(Je.fontMetrics().bigOpSpacing1,Je.fontMetrics().bigOpSpacing3-ui.depth)}}if(Ie){var xi=Ti(Ie,Je.havingStyle(Dt.sub()),Je);hn={elem:xi,kern:Math.max(Je.fontMetrics().bigOpSpacing2,Je.fontMetrics().bigOpSpacing4-xi.height)}}var Ai;if(Nn&&hn){var Yi=Je.fontMetrics().bigOpSpacing5+hn.elem.height+hn.elem.depth+hn.kern+ce.depth+Xr;Ai=kr.makeVList({positionType:"bottom",positionData:Yi,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:hn.elem,marginLeft:-lr+"em"},{type:"kern",size:hn.kern},{type:"elem",elem:ce},{type:"kern",size:Nn.kern},{type:"elem",elem:Nn.elem,marginLeft:lr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else if(hn){var sa=ce.height-Xr;Ai=kr.makeVList({positionType:"top",positionData:sa,children:[{type:"kern",size:Je.fontMetrics().bigOpSpacing5},{type:"elem",elem:hn.elem,marginLeft:-lr+"em"},{type:"kern",size:hn.kern},{type:"elem",elem:ce}]},Je)}else if(Nn){var Ua=ce.depth+Xr;Ai=kr.makeVList({positionType:"bottom",positionData:Ua,children:[{type:"elem",elem:ce},{type:"kern",size:Nn.kern},{type:"elem",elem:Nn.elem,marginLeft:lr+"em"},{type:"kern",size:Je.fontMetrics().bigOpSpacing5}]},Je)}else return ce;return kr.makeSpan(["mop","op-limits"],[Ai],Je)},ia=["\\smallint"],Ki=function(ce,xe){var Ie,Je,Dt=!1,lr,Xr=vn(ce,"supsub");Xr?(Ie=Xr.sup,Je=Xr.sub,lr=Fn(Xr.base,"op"),Dt=!0):lr=Fn(ce,"op");var hn=xe.style,Nn=!1;hn.size===z.DISPLAY.size&&lr.symbol&&!v.contains(ia,lr.name)&&(Nn=!0);var ui;if(lr.symbol){var xi=Nn?"Size2-Regular":"Size1-Regular",Ai="";if((lr.name==="\\oiint"||lr.name==="\\oiiint")&&(Ai=lr.name.substr(1),lr.name=Ai==="oiint"?"\\iint":"\\iiint"),ui=kr.makeSymbol(lr.name,xi,"math",xe,["mop","op-symbol",Nn?"large-op":"small-op"]),Ai.length>0){var Yi=ui.italic,sa=kr.staticSvg(Ai+"Size"+(Nn?"2":"1"),xe);ui=kr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ui,shift:0},{type:"elem",elem:sa,shift:Nn?.08:0}]},xe),lr.name="\\"+Ai,ui.classes.unshift("mop"),ui.italic=Yi}}else if(lr.body){var Ua=pn(lr.body,xe,!0);Ua.length===1&&Ua[0]instanceof Ce?(ui=Ua[0],ui.classes[0]="mop"):ui=kr.makeSpan(["mop"],kr.tryCombineChars(Ua),xe)}else{for(var no=[],Wo=1;Wo<lr.name.length;Wo++)no.push(kr.mathsym(lr.name[Wo],lr.mode,xe));ui=kr.makeSpan(["mop"],no,xe)}var Zo=0,Bo=0;return(ui instanceof Ce||lr.name==="\\oiint"||lr.name==="\\oiiint")&&!lr.suppressBaseShift&&(Zo=(ui.height-ui.depth)/2-xe.fontMetrics().axisHeight,Bo=ui.italic),Dt?Ni(ui,Ie,Je,xe,hn,Bo,Zo):(Zo&&(ui.style.position="relative",ui.style.top=Zo+"em"),ui)},fa=function(ce,xe){var Ie;if(ce.symbol)Ie=new ma("mo",[Rn(ce.name,ce.mode)]),v.contains(ia,ce.name)&&Ie.setAttribute("largeop","false");else if(ce.body)Ie=new ma("mo",ta(ce.body,xe));else{Ie=new ma("mi",[new aa(ce.name.slice(1))]);var Je=new ma("mo",[Rn("\u2061","text")]);ce.parentIsSupSub?Ie=new ma("mo",[Ie,Je]):Ie=oa([Ie,Je])}return Ie},Ya={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=Je;return Dt.length===1&&(Dt=Ya[Dt]),{type:"op",mode:Ie.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Dt}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0];return{type:"op",mode:Ie.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:vr(Je)}},htmlBuilder:Ki,mathmlBuilder:fa});var xa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Lt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName;return{type:"op",mode:xe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName;return{type:"op",mode:xe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Ie}},htmlBuilder:Ki,mathmlBuilder:fa}),Lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var xe=ce.parser,Ie=ce.funcName,Je=Ie;return Je.length===1&&(Je=xa[Je]),{type:"op",mode:xe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Je}},htmlBuilder:Ki,mathmlBuilder:fa});var wa=function(ce,xe){var Ie,Je,Dt=!1,lr,Xr=vn(ce,"supsub");Xr?(Ie=Xr.sup,Je=Xr.sub,lr=Fn(Xr.base,"operatorname"),Dt=!0):lr=Fn(ce,"operatorname");var hn;if(lr.body.length>0){for(var Nn=lr.body.map(function(Yi){var sa=Yi.text;return typeof sa=="string"?{type:"textord",mode:Yi.mode,text:sa}:Yi}),ui=pn(Nn,xe.withFont("mathrm"),!0),xi=0;xi<ui.length;xi++){var Ai=ui[xi];Ai instanceof Ce&&(Ai.text=Ai.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}hn=kr.makeSpan(["mop"],ui,xe)}else hn=kr.makeSpan(["mop"],[],xe);return Dt?Ni(hn,Ie,Je,xe,xe.style,0,0):hn},Da=function(ce,xe){for(var Ie=ta(ce.body,xe.withFont("mathrm")),Je=!0,Dt=0;Dt<Ie.length;Dt++){var lr=Ie[Dt];if(!(lr instanceof bi.SpaceNode))if(lr instanceof bi.MathNode)switch(lr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Xr=lr.children[0];lr.children.length===1&&Xr instanceof bi.TextNode?Xr.text=Xr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Je=!1;break}default:Je=!1}else Je=!1}if(Je){var hn=Ie.map(function(xi){return xi.toText()}).join("");Ie=[new bi.TextNode(hn)]}var Nn=new bi.MathNode("mi",Ie);Nn.setAttribute("mathvariant","normal");var ui=new bi.MathNode("mo",[Rn("\u2061","text")]);return ce.parentIsSupSub?new bi.MathNode("mo",[Nn,ui]):bi.newDocumentFragment([Nn,ui])};Lt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];return{type:"operatorname",mode:Ie.mode,body:vr(Dt),alwaysHandleSupSub:Je==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:wa,mathmlBuilder:Da}),cr({type:"ordgroup",htmlBuilder:function(ce,xe){return ce.semisimple?kr.makeFragment(pn(ce.body,xe,!1)):kr.makeSpan(["mord"],pn(ce.body,xe,!0),xe)},mathmlBuilder:function(ce,xe){return ra(ce.body,xe,!0)}}),Lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0];return{type:"overline",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,xe){var Ie=Ti(ce.body,xe.havingCrampedStyle()),Je=kr.makeLineSpan("overline-line",xe),Dt=xe.fontMetrics().defaultRuleThickness,lr=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie},{type:"kern",size:3*Dt},{type:"elem",elem:Je},{type:"kern",size:Dt}]},xe);return kr.makeSpan(["mord","overline"],[lr],xe)},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new bi.MathNode("mover",[Ir(ce.body,xe),Ie]);return Je.setAttribute("accent","true"),Je}}),Lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0];return{type:"phantom",mode:Ie.mode,body:vr(Je)}},htmlBuilder:function(ce,xe){var Ie=pn(ce.body,xe.withPhantom(),!1);return kr.makeFragment(Ie)},mathmlBuilder:function(ce,xe){var Ie=ta(ce.body,xe);return new bi.MathNode("mphantom",Ie)}}),Lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0];return{type:"hphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,xe){var Ie=kr.makeSpan([],[Ti(ce.body,xe.withPhantom())]);if(Ie.height=0,Ie.depth=0,Ie.children)for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0,Ie.children[Je].depth=0;return Ie=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},xe),kr.makeSpan(["mord"],[Ie],xe)},mathmlBuilder:function(ce,xe){var Ie=ta(vr(ce.body),xe),Je=new bi.MathNode("mphantom",Ie),Dt=new bi.MathNode("mpadded",[Je]);return Dt.setAttribute("height","0px"),Dt.setAttribute("depth","0px"),Dt}}),Lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=xe[0];return{type:"vphantom",mode:Ie.mode,body:Je}},htmlBuilder:function(ce,xe){var Ie=kr.makeSpan(["inner"],[Ti(ce.body,xe.withPhantom())]),Je=kr.makeSpan(["fix"],[]);return kr.makeSpan(["mord","rlap"],[Ie,Je],xe)},mathmlBuilder:function(ce,xe){var Ie=ta(vr(ce.body),xe),Je=new bi.MathNode("mphantom",Ie),Dt=new bi.MathNode("mpadded",[Je]);return Dt.setAttribute("width","0px"),Dt}}),Lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=Fn(xe[0],"size").value,Dt=xe[1];return{type:"raisebox",mode:Ie.mode,dy:Je,body:Dt}},htmlBuilder:function(ce,xe){var Ie=Ti(ce.body,xe),Je=Pr(ce.dy,xe);return kr.makeVList({positionType:"shift",positionData:-Je,children:[{type:"elem",elem:Ie}]},xe)},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mpadded",[Ir(ce.body,xe)]),Je=ce.dy.number+ce.dy.unit;return Ie.setAttribute("voffset",Je),Ie}}),Lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=Ie[0],lr=Fn(xe[0],"size"),Xr=Fn(xe[1],"size");return{type:"rule",mode:Je.mode,shift:Dt&&Fn(Dt,"size").value,width:lr.value,height:Xr.value}},htmlBuilder:function(ce,xe){var Ie=kr.makeSpan(["mord","rule"],[],xe),Je=Pr(ce.width,xe),Dt=Pr(ce.height,xe),lr=ce.shift?Pr(ce.shift,xe):0;return Ie.style.borderRightWidth=Je+"em",Ie.style.borderTopWidth=Dt+"em",Ie.style.bottom=lr+"em",Ie.width=Je,Ie.height=Dt+lr,Ie.depth=-lr,Ie.maxFontSize=Dt*1.125*xe.sizeMultiplier,Ie},mathmlBuilder:function(ce,xe){var Ie=Pr(ce.width,xe),Je=Pr(ce.height,xe),Dt=ce.shift?Pr(ce.shift,xe):0,lr=xe.color&&xe.getColor()||"black",Xr=new bi.MathNode("mspace");Xr.setAttribute("mathbackground",lr),Xr.setAttribute("width",Ie+"em"),Xr.setAttribute("height",Je+"em");var hn=new bi.MathNode("mpadded",[Xr]);return Dt>=0?hn.setAttribute("height","+"+Dt+"em"):(hn.setAttribute("height",Dt+"em"),hn.setAttribute("depth","+"+-Dt+"em")),hn.setAttribute("voffset",Dt+"em"),hn}});function ja(Nt,ce,xe){for(var Ie=pn(Nt,ce,!1),Je=ce.sizeMultiplier/xe.sizeMultiplier,Dt=0;Dt<Ie.length;Dt++){var lr=Ie[Dt].classes.indexOf("sizing");lr<0?Array.prototype.push.apply(Ie[Dt].classes,ce.sizingClasses(xe)):Ie[Dt].classes[lr+1]==="reset-size"+ce.size&&(Ie[Dt].classes[lr+1]="reset-size"+xe.size),Ie[Dt].height*=Je,Ie[Dt].depth*=Je}return kr.makeFragment(Ie)}var ko=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ro=function(ce,xe){var Ie=xe.havingSize(ce.size);return ja(ce.body,Ie,xe)};Lt({type:"sizing",names:ko,props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.breakOnTokenText,Je=ce.funcName,Dt=ce.parser,lr=Dt.parseExpression(!1,Ie);return{type:"sizing",mode:Dt.mode,size:ko.indexOf(Je)+1,body:lr}},htmlBuilder:ro,mathmlBuilder:function(ce,xe){var Ie=xe.havingSize(ce.size),Je=ta(ce.body,Ie),Dt=new bi.MathNode("mstyle",Je);return Dt.setAttribute("mathsize",Ie.sizeMultiplier+"em"),Dt}}),Lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=!1,lr=!1,Xr=Ie[0]&&Fn(Ie[0],"ordgroup");if(Xr)for(var hn="",Nn=0;Nn<Xr.body.length;++Nn){var ui=Xr.body[Nn];if(hn=ui.text,hn==="t")Dt=!0;else if(hn==="b")lr=!0;else{Dt=!1,lr=!1;break}}else Dt=!0,lr=!0;var xi=xe[0];return{type:"smash",mode:Je.mode,body:xi,smashHeight:Dt,smashDepth:lr}},htmlBuilder:function(ce,xe){var Ie=kr.makeSpan([],[Ti(ce.body,xe)]);if(!ce.smashHeight&&!ce.smashDepth)return Ie;if(ce.smashHeight&&(Ie.height=0,Ie.children))for(var Je=0;Je<Ie.children.length;Je++)Ie.children[Je].height=0;if(ce.smashDepth&&(Ie.depth=0,Ie.children))for(var Dt=0;Dt<Ie.children.length;Dt++)Ie.children[Dt].depth=0;var lr=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie}]},xe);return kr.makeSpan(["mord"],[lr],xe)},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mpadded",[Ir(ce.body,xe)]);return ce.smashHeight&&Ie.setAttribute("height","0px"),ce.smashDepth&&Ie.setAttribute("depth","0px"),Ie}}),Lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,xe,Ie){var Je=ce.parser,Dt=Ie[0],lr=xe[0];return{type:"sqrt",mode:Je.mode,body:lr,index:Dt}},htmlBuilder:function(ce,xe){var Ie=Ti(ce.body,xe.havingCrampedStyle());Ie.height===0&&(Ie.height=xe.fontMetrics().xHeight),Ie=kr.wrapFragment(Ie,xe);var Je=xe.fontMetrics(),Dt=Je.defaultRuleThickness,lr=Dt;xe.style.id<z.TEXT.id&&(lr=xe.fontMetrics().xHeight);var Xr=Dt+lr/4,hn=Ie.height+Ie.depth+Xr+Dt,Nn=ao.sqrtImage(hn,xe),ui=Nn.span,xi=Nn.ruleWidth,Ai=Nn.advanceWidth,Yi=ui.height-xi;Yi>Ie.height+Ie.depth+Xr&&(Xr=(Xr+Yi-Ie.height-Ie.depth)/2);var sa=ui.height-Ie.height-Xr-xi;Ie.style.paddingLeft=Ai+"em";var Ua=kr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ie,wrapperClasses:["svg-align"]},{type:"kern",size:-(Ie.height+sa)},{type:"elem",elem:ui},{type:"kern",size:xi}]},xe);if(ce.index){var no=xe.havingStyle(z.SCRIPTSCRIPT),Wo=Ti(ce.index,no,xe),Zo=.6*(Ua.height-Ua.depth),Bo=kr.makeVList({positionType:"shift",positionData:-Zo,children:[{type:"elem",elem:Wo}]},xe),Es=kr.makeSpan(["root"],[Bo]);return kr.makeSpan(["mord","sqrt"],[Es,Ua],xe)}else return kr.makeSpan(["mord","sqrt"],[Ua],xe)},mathmlBuilder:function(ce,xe){var Ie=ce.body,Je=ce.index;return Je?new bi.MathNode("mroot",[Ir(Ie,xe),Ir(Je,xe)]):new bi.MathNode("msqrt",[Ir(Ie,xe)])}});var pa={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};Lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe){var Ie=ce.breakOnTokenText,Je=ce.funcName,Dt=ce.parser,lr=Dt.parseExpression(!0,Ie),Xr=Je.slice(1,Je.length-5);return{type:"styling",mode:Dt.mode,style:Xr,body:lr}},htmlBuilder:function(ce,xe){var Ie=pa[ce.style],Je=xe.havingStyle(Ie).withFont("");return ja(ce.body,Je,xe)},mathmlBuilder:function(ce,xe){var Ie=pa[ce.style],Je=xe.havingStyle(Ie),Dt=ta(ce.body,Je),lr=new bi.MathNode("mstyle",Dt),Xr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},hn=Xr[ce.style];return lr.setAttribute("scriptlevel",hn[0]),lr.setAttribute("displaystyle",hn[1]),lr}});var Ea=function(ce,xe){var Ie=ce.base;if(Ie)if(Ie.type==="op"){var Je=Ie.limits&&(xe.style.size===z.DISPLAY.size||Ie.alwaysHandleSupSub);return Je?Ki:null}else if(Ie.type==="operatorname"){var Dt=Ie.alwaysHandleSupSub&&(xe.style.size===z.DISPLAY.size||Ie.limits);return Dt?wa:null}else{if(Ie.type==="accent")return v.isCharacterBox(Ie.base)?yn:null;if(Ie.type==="horizBrace"){var lr=!ce.sub;return lr===Ie.isOver?si:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(ce,xe){var Ie=Ea(ce,xe);if(Ie)return Ie(ce,xe);var Je=ce.base,Dt=ce.sup,lr=ce.sub,Xr=Ti(Je,xe),hn,Nn,ui=xe.fontMetrics(),xi=0,Ai=0,Yi=Je&&v.isCharacterBox(Je);if(Dt){var sa=xe.havingStyle(xe.style.sup());hn=Ti(Dt,sa,xe),Yi||(xi=Xr.height-sa.fontMetrics().supDrop*sa.sizeMultiplier/xe.sizeMultiplier)}if(lr){var Ua=xe.havingStyle(xe.style.sub());Nn=Ti(lr,Ua,xe),Yi||(Ai=Xr.depth+Ua.fontMetrics().subDrop*Ua.sizeMultiplier/xe.sizeMultiplier)}var no;xe.style===z.DISPLAY?no=ui.sup1:xe.style.cramped?no=ui.sup3:no=ui.sup2;var Wo=xe.sizeMultiplier,Zo=.5/ui.ptPerEm/Wo+"em",Bo=null;if(Nn){var Es=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Xr instanceof Ce||Es)&&(Bo=-Xr.italic+"em")}var As;if(hn&&Nn){xi=Math.max(xi,no,hn.depth+.25*ui.xHeight),Ai=Math.max(Ai,ui.sub2);var $o=ui.defaultRuleThickness,Do=4*$o;if(xi-hn.depth-(Nn.height-Ai)<Do){Ai=Do-(xi-hn.depth)+Nn.height;var vo=.8*ui.xHeight-(xi-hn.depth);vo>0&&(xi+=vo,Ai-=vo)}var Ms=[{type:"elem",elem:Nn,shift:Ai,marginRight:Zo,marginLeft:Bo},{type:"elem",elem:hn,shift:-xi,marginRight:Zo}];As=kr.makeVList({positionType:"individualShift",children:Ms},xe)}else if(Nn){Ai=Math.max(Ai,ui.sub1,Nn.height-.8*ui.xHeight);var rl=[{type:"elem",elem:Nn,marginLeft:Bo,marginRight:Zo}];As=kr.makeVList({positionType:"shift",positionData:Ai,children:rl},xe)}else if(hn)xi=Math.max(xi,no,hn.depth+.25*ui.xHeight),As=kr.makeVList({positionType:"shift",positionData:-xi,children:[{type:"elem",elem:hn,marginRight:Zo}]},xe);else throw new Error("supsub must have either sup or sub.");var gs=$n(Xr,"right")||"mord";return kr.makeSpan([gs],[Xr,kr.makeSpan(["msupsub"],[As])],xe)},mathmlBuilder:function(ce,xe){var Ie=!1,Je,Dt,lr=vn(ce.base,"horizBrace");lr&&(Dt=!!ce.sup,Dt===lr.isOver&&(Ie=!0,Je=lr.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Xr=[Ir(ce.base,xe)];ce.sub&&Xr.push(Ir(ce.sub,xe)),ce.sup&&Xr.push(Ir(ce.sup,xe));var hn;if(Ie)hn=Je?"mover":"munder";else if(ce.sub)if(ce.sup){var xi=ce.base;xi&&xi.type==="op"&&xi.limits&&xe.style===z.DISPLAY||xi&&xi.type==="operatorname"&&xi.alwaysHandleSupSub&&(xe.style===z.DISPLAY||xi.limits)?hn="munderover":hn="msubsup"}else{var ui=ce.base;ui&&ui.type==="op"&&ui.limits&&(xe.style===z.DISPLAY||ui.alwaysHandleSupSub)||ui&&ui.type==="operatorname"&&ui.alwaysHandleSupSub&&(ui.limits||xe.style===z.DISPLAY)?hn="munder":hn="msub"}else{var Nn=ce.base;Nn&&Nn.type==="op"&&Nn.limits&&(xe.style===z.DISPLAY||Nn.alwaysHandleSupSub)||Nn&&Nn.type==="operatorname"&&Nn.alwaysHandleSupSub&&(Nn.limits||xe.style===z.DISPLAY)?hn="mover":hn="msup"}var Ai=new bi.MathNode(hn,Xr);return Ai}}),cr({type:"atom",htmlBuilder:function(ce,xe){return kr.mathsym(ce.text,ce.mode,xe,["m"+ce.family])},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mo",[Rn(ce.text,ce.mode)]);if(ce.family==="bin"){var Je=ha(ce,xe);Je==="bold-italic"&&Ie.setAttribute("mathvariant",Je)}else ce.family==="punct"?Ie.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Ie.setAttribute("stretchy","false");return Ie}});var Fa={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(ce,xe){return kr.makeOrd(ce,xe,"mathord")},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mi",[Rn(ce.text,ce.mode,xe)]),Je=ha(ce,xe)||"italic";return Je!==Fa[Ie.type]&&Ie.setAttribute("mathvariant",Je),Ie}}),cr({type:"textord",htmlBuilder:function(ce,xe){return kr.makeOrd(ce,xe,"textord")},mathmlBuilder:function(ce,xe){var Ie=Rn(ce.text,ce.mode,xe),Je=ha(ce,xe)||"normal",Dt;return ce.mode==="text"?Dt=new bi.MathNode("mtext",[Ie]):/[0-9]/.test(ce.text)?Dt=new bi.MathNode("mn",[Ie]):ce.text==="\\prime"?Dt=new bi.MathNode("mo",[Ie]):Dt=new bi.MathNode("mi",[Ie]),Je!==Fa[Dt.type]&&Dt.setAttribute("mathvariant",Je),Dt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},lo={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(ce,xe){if(lo.hasOwnProperty(ce.text)){var Ie=lo[ce.text].className||"";if(ce.mode==="text"){var Je=kr.makeOrd(ce,xe,"textord");return Je.classes.push(Ie),Je}else return kr.makeSpan(["mspace",Ie],[kr.mathsym(ce.text,ce.mode,xe)],xe)}else{if(Ka.hasOwnProperty(ce.text))return kr.makeSpan(["mspace",Ka[ce.text]],[],xe);throw new u('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,xe){var Ie;if(lo.hasOwnProperty(ce.text))Ie=new bi.MathNode("mtext",[new bi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new bi.MathNode("mspace");throw new u('Unknown type of space "'+ce.text+'"')}return Ie}});var so=function(){var ce=new bi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};cr({type:"tag",mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mtable",[new bi.MathNode("mtr",[so(),new bi.MathNode("mtd",[ra(ce.body,xe)]),so(),new bi.MathNode("mtd",[ra(ce.tag,xe)])])]);return Ie.setAttribute("width","100%"),Ie}});var Co={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Lo={"\\textbf":"textbf","\\textmd":"textmd"},is={"\\textit":"textit","\\textup":"textup"},cs=function(ce,xe){var Ie=ce.font;return Ie?Co[Ie]?xe.withTextFontFamily(Co[Ie]):Lo[Ie]?xe.withTextFontWeight(Lo[Ie]):xe.withTextFontShape(is[Ie]):xe};Lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser,Je=ce.funcName,Dt=xe[0];return{type:"text",mode:Ie.mode,body:vr(Dt),font:Je}},htmlBuilder:function(ce,xe){var Ie=cs(ce,xe),Je=pn(ce.body,Ie,!0);return kr.makeSpan(["mord","text"],kr.tryCombineChars(Je),Ie)},mathmlBuilder:function(ce,xe){var Ie=cs(ce,xe);return ra(ce.body,Ie)}}),Lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,xe){var Ie=ce.parser;return{type:"underline",mode:Ie.mode,body:xe[0]}},htmlBuilder:function(ce,xe){var Ie=Ti(ce.body,xe),Je=kr.makeLineSpan("underline-line",xe),Dt=xe.fontMetrics().defaultRuleThickness,lr=kr.makeVList({positionType:"top",positionData:Ie.height,children:[{type:"kern",size:Dt},{type:"elem",elem:Je},{type:"kern",size:3*Dt},{type:"elem",elem:Ie}]},xe);return kr.makeSpan(["mord","underline"],[lr],xe)},mathmlBuilder:function(ce,xe){var Ie=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);Ie.setAttribute("stretchy","true");var Je=new bi.MathNode("munder",[Ir(ce.body,xe),Ie]);return Je.setAttribute("accentunder","true"),Je}}),Lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,xe,Ie){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,xe){for(var Ie=Rs(ce),Je=[],Dt=xe.havingStyle(xe.style.text()),lr=0;lr<Ie.length;lr++){var Xr=Ie[lr];Xr==="~"&&(Xr="\\textasciitilde"),Je.push(kr.makeSymbol(Xr,"Typewriter-Regular",ce.mode,Dt,["mord","texttt"]))}return kr.makeSpan(["mord","text"].concat(Dt.sizingClasses(xe)),kr.tryCombineChars(Je),Dt)},mathmlBuilder:function(ce,xe){var Ie=new bi.TextNode(Rs(ce)),Je=new bi.MathNode("mtext",[Ie]);return Je.setAttribute("mathvariant","monospace"),Je}});var Rs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},Ko=Rt,as=Ko,co=`[ \r
]`,Ao="\\\\[a-zA-Z@]+",$a="\\\\[^\uD800-\uDFFF]",ss=""+Ao+co+"*",_s=new RegExp("^("+Ao+")"+co+"*$"),Fo="[\u0300-\u036F]",il=new RegExp(Fo+"+$"),Eo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Fo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+$a+")"),zo=function(){function Nt(xe,Ie){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=xe,this.settings=Ie,this.tokenRegex=new RegExp(Eo,"g"),this.catcodes={"%":14}}var ce=Nt.prototype;return ce.setCatcode=function(Ie,Je){this.catcodes[Ie]=Je},ce.lex=function(){var Ie=this.input,Je=this.tokenRegex.lastIndex;if(Je===Ie.length)return new p("EOF",new m(this,Je,Je));var Dt=this.tokenRegex.exec(Ie);if(Dt===null||Dt.index!==Je)throw new u("Unexpected character: '"+Ie[Je]+"'",new p(Ie[Je],new m(this,Je,Je+1)));var lr=Dt[2]||" ";if(this.catcodes[lr]===14){var Xr=Ie.indexOf(`
`,this.tokenRegex.lastIndex);return Xr===-1?(this.tokenRegex.lastIndex=Ie.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Xr+1,this.lex()}var hn=lr.match(_s);return hn&&(lr=hn[1]),new p(lr,new m(this,Je,this.tokenRegex.lastIndex))},Nt}(),Fs=function(){function Nt(xe,Ie){xe===void 0&&(xe={}),Ie===void 0&&(Ie={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ie,this.builtins=xe,this.undefStack=[]}var ce=Nt.prototype;return ce.beginGroup=function(){this.undefStack.push({})},ce.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Ie=this.undefStack.pop();for(var Je in Ie)Ie.hasOwnProperty(Je)&&(Ie[Je]===void 0?delete this.current[Je]:this.current[Je]=Ie[Je])},ce.has=function(Ie){return this.current.hasOwnProperty(Ie)||this.builtins.hasOwnProperty(Ie)},ce.get=function(Ie){return this.current.hasOwnProperty(Ie)?this.current[Ie]:this.builtins[Ie]},ce.set=function(Ie,Je,Dt){if(Dt===void 0&&(Dt=!1),Dt){for(var lr=0;lr<this.undefStack.length;lr++)delete this.undefStack[lr][Ie];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Ie]=Je)}else{var Xr=this.undefStack[this.undefStack.length-1];Xr&&!Xr.hasOwnProperty(Ie)&&(Xr[Ie]=this.current[Ie])}this.current[Ie]=Je},Nt}(),ms={},hs=ms;function An(Nt,ce){ms[Nt]=ce}An("\\@firstoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),An("\\@secondoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),An("\\@ifnextchar",function(Nt){var ce=Nt.consumeArgs(3),xe=Nt.future();return ce[0].length===1&&ce[0][0].text===xe.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),An("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),An("\\TextOrMath",function(Nt){var ce=Nt.consumeArgs(2);return Nt.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ns={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};An("\\char",function(Nt){var ce=Nt.popToken(),xe,Ie="";if(ce.text==="'")xe=8,ce=Nt.popToken();else if(ce.text==='"')xe=16,ce=Nt.popToken();else if(ce.text==="`")if(ce=Nt.popToken(),ce.text[0]==="\\")Ie=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new u("\\char` missing argument");Ie=ce.text.charCodeAt(0)}else xe=10;if(xe){if(Ie=Ns[ce.text],Ie==null||Ie>=xe)throw new u("Invalid base-"+xe+" digit "+ce.text);for(var Je;(Je=Ns[Nt.future().text])!=null&&Je<xe;)Ie*=xe,Ie+=Je,Nt.popToken()}return"\\@char{"+Ie+"}"});var Ll=function(ce,xe){var Ie=ce.consumeArgs(1)[0];if(Ie.length!==1)throw new u("\\gdef's first argument must be a macro name");var Je=Ie[0].text,Dt=0;for(Ie=ce.consumeArgs(1)[0];Ie.length===1&&Ie[0].text==="#";){if(Ie=ce.consumeArgs(1)[0],Ie.length!==1)throw new u('Invalid argument number length "'+Ie.length+'"');if(!/^[1-9]$/.test(Ie[0].text))throw new u('Invalid argument number "'+Ie[0].text+'"');if(Dt++,parseInt(Ie[0].text)!==Dt)throw new u('Argument number "'+Ie[0].text+'" out of order');Ie=ce.consumeArgs(1)[0]}return ce.macros.set(Je,{tokens:Ie,numArgs:Dt},xe),""};An("\\gdef",function(Nt){return Ll(Nt,!0)}),An("\\def",function(Nt){return Ll(Nt,!1)}),An("\\global",function(Nt){var ce=Nt.consumeArgs(1)[0];if(ce.length!==1)throw new u("Invalid command after \\global");var xe=ce[0].text;if(xe==="\\def")return Ll(Nt,!0);throw new u("Invalid command '"+xe+"' after \\global")});var el=function(ce,xe,Ie){var Je=ce.consumeArgs(1)[0];if(Je.length!==1)throw new u("\\newcommand's first argument must be a macro name");var Dt=Je[0].text,lr=ce.isDefined(Dt);if(lr&&!xe)throw new u("\\newcommand{"+Dt+"} attempting to redefine "+(Dt+"; use \\renewcommand"));if(!lr&&!Ie)throw new u("\\renewcommand{"+Dt+"} when command "+Dt+" does not yet exist; use \\newcommand");var Xr=0;if(Je=ce.consumeArgs(1)[0],Je.length===1&&Je[0].text==="["){for(var hn="",Nn=ce.expandNextToken();Nn.text!=="]"&&Nn.text!=="EOF";)hn+=Nn.text,Nn=ce.expandNextToken();if(!hn.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+hn);Xr=parseInt(hn),Je=ce.consumeArgs(1)[0]}return ce.macros.set(Dt,{tokens:Je,numArgs:Xr}),""};An("\\newcommand",function(Nt){return el(Nt,!1,!0)}),An("\\renewcommand",function(Nt){return el(Nt,!0,!1)}),An("\\providecommand",function(Nt){return el(Nt,!0,!0)}),An("\\bgroup","{"),An("\\egroup","}"),An("\\lq","`"),An("\\rq","'"),An("\\aa","\\r a"),An("\\AA","\\r A"),An("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),An("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),An("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),An("\u212C","\\mathscr{B}"),An("\u2130","\\mathscr{E}"),An("\u2131","\\mathscr{F}"),An("\u210B","\\mathscr{H}"),An("\u2110","\\mathscr{I}"),An("\u2112","\\mathscr{L}"),An("\u2133","\\mathscr{M}"),An("\u211B","\\mathscr{R}"),An("\u212D","\\mathfrak{C}"),An("\u210C","\\mathfrak{H}"),An("\u2128","\\mathfrak{Z}"),An("\\Bbbk","\\Bbb{k}"),An("\xB7","\\cdotp"),An("\\llap","\\mathllap{\\textrm{#1}}"),An("\\rlap","\\mathrlap{\\textrm{#1}}"),An("\\clap","\\mathclap{\\textrm{#1}}"),An("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),An("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),An("\\ne","\\neq"),An("\u2260","\\neq"),An("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),An("\u2209","\\notin"),An("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),An("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),An("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),An("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),An("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),An("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),An("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),An("\u27C2","\\perp"),An("\u203C","\\mathclose{!\\mkern-0.8mu!}"),An("\u220C","\\notni"),An("\u231C","\\ulcorner"),An("\u231D","\\urcorner"),An("\u231E","\\llcorner"),An("\u231F","\\lrcorner"),An("\xA9","\\copyright"),An("\xAE","\\textregistered"),An("\uFE0F","\\textregistered"),An("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),An("\u22EE","\\vdots"),An("\\varGamma","\\mathit{\\Gamma}"),An("\\varDelta","\\mathit{\\Delta}"),An("\\varTheta","\\mathit{\\Theta}"),An("\\varLambda","\\mathit{\\Lambda}"),An("\\varXi","\\mathit{\\Xi}"),An("\\varPi","\\mathit{\\Pi}"),An("\\varSigma","\\mathit{\\Sigma}"),An("\\varUpsilon","\\mathit{\\Upsilon}"),An("\\varPhi","\\mathit{\\Phi}"),An("\\varPsi","\\mathit{\\Psi}"),An("\\varOmega","\\mathit{\\Omega}"),An("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),An("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),An("\\boxed","\\fbox{$\\displaystyle{#1}$}"),An("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),An("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),An("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Gs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};An("\\dots",function(Nt){var ce="\\dotso",xe=Nt.expandAfterFuture().text;return xe in Gs?ce=Gs[xe]:xe.substr(0,4)==="\\not"?ce="\\dotsb":xe in Ve.math&&(v.contains(["bin","rel"],Ve.math[xe].group)&&(ce="\\dotsb")),ce});var ds={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};An("\\dotso",function(Nt){var ce=Nt.future().text;return ce in ds?"\\ldots\\,":"\\ldots"}),An("\\dotsc",function(Nt){var ce=Nt.future().text;return ce in ds&&ce!==","?"\\ldots\\,":"\\ldots"}),An("\\cdots",function(Nt){var ce=Nt.future().text;return ce in ds?"\\@cdots\\,":"\\@cdots"}),An("\\dotsb","\\cdots"),An("\\dotsm","\\cdots"),An("\\dotsi","\\!\\cdots"),An("\\dotsx","\\ldots\\,"),An("\\DOTSI","\\relax"),An("\\DOTSB","\\relax"),An("\\DOTSX","\\relax"),An("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),An("\\,","\\tmspace+{3mu}{.1667em}"),An("\\thinspace","\\,"),An("\\>","\\mskip{4mu}"),An("\\:","\\tmspace+{4mu}{.2222em}"),An("\\medspace","\\:"),An("\\;","\\tmspace+{5mu}{.2777em}"),An("\\thickspace","\\;"),An("\\!","\\tmspace-{3mu}{.1667em}"),An("\\negthinspace","\\!"),An("\\negmedspace","\\tmspace-{4mu}{.2222em}"),An("\\negthickspace","\\tmspace-{5mu}{.277em}"),An("\\enspace","\\kern.5em "),An("\\enskip","\\hskip.5em\\relax"),An("\\quad","\\hskip1em\\relax"),An("\\qquad","\\hskip2em\\relax"),An("\\tag","\\@ifstar\\tag@literal\\tag@paren"),An("\\tag@paren","\\tag@literal{({#1})}"),An("\\tag@literal",function(Nt){if(Nt.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),An("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),An("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),An("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),An("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),An("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),An("\\\\","\\newline"),An("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ks=gt["Main-Regular"]["T".charCodeAt(0)][1]-.7*gt["Main-Regular"]["A".charCodeAt(0)][1]+"em";An("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),An("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ks+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),An("\\hspace","\\@ifstar\\@hspacer\\@hspace"),An("\\@hspace","\\hskip #1\\relax"),An("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),An("\\ordinarycolon",":"),An("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),An("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),An("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),An("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),An("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),An("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),An("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),An("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),An("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),An("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),An("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),An("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),An("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),An("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),An("\u2237","\\dblcolon"),An("\u2239","\\eqcolon"),An("\u2254","\\coloneqq"),An("\u2255","\\eqqcolon"),An("\u2A74","\\Coloneqq"),An("\\ratio","\\vcentcolon"),An("\\coloncolon","\\dblcolon"),An("\\colonequals","\\coloneqq"),An("\\coloncolonequals","\\Coloneqq"),An("\\equalscolon","\\eqqcolon"),An("\\equalscoloncolon","\\Eqqcolon"),An("\\colonminus","\\coloneq"),An("\\coloncolonminus","\\Coloneq"),An("\\minuscolon","\\eqcolon"),An("\\minuscoloncolon","\\Eqcolon"),An("\\coloncolonapprox","\\Colonapprox"),An("\\coloncolonsim","\\Colonsim"),An("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),An("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),An("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),An("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),An("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),An("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),An("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),An("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),An("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),An("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),An("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),An("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),An("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),An("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),An("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),An("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),An("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),An("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),An("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),An("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),An("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),An("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),An("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),An("\u27E6","\\llbracket"),An("\u27E7","\\rrbracket"),An("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),An("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),An("\u2983","\\lBrace"),An("\u2984","\\rBrace"),An("\\darr","\\downarrow"),An("\\dArr","\\Downarrow"),An("\\Darr","\\Downarrow"),An("\\lang","\\langle"),An("\\rang","\\rangle"),An("\\uarr","\\uparrow"),An("\\uArr","\\Uparrow"),An("\\Uarr","\\Uparrow"),An("\\N","\\mathbb{N}"),An("\\R","\\mathbb{R}"),An("\\Z","\\mathbb{Z}"),An("\\alef","\\aleph"),An("\\alefsym","\\aleph"),An("\\Alpha","\\mathrm{A}"),An("\\Beta","\\mathrm{B}"),An("\\bull","\\bullet"),An("\\Chi","\\mathrm{X}"),An("\\clubs","\\clubsuit"),An("\\cnums","\\mathbb{C}"),An("\\Complex","\\mathbb{C}"),An("\\Dagger","\\ddagger"),An("\\diamonds","\\diamondsuit"),An("\\empty","\\emptyset"),An("\\Epsilon","\\mathrm{E}"),An("\\Eta","\\mathrm{H}"),An("\\exist","\\exists"),An("\\harr","\\leftrightarrow"),An("\\hArr","\\Leftrightarrow"),An("\\Harr","\\Leftrightarrow"),An("\\hearts","\\heartsuit"),An("\\image","\\Im"),An("\\infin","\\infty"),An("\\Iota","\\mathrm{I}"),An("\\isin","\\in"),An("\\Kappa","\\mathrm{K}"),An("\\larr","\\leftarrow"),An("\\lArr","\\Leftarrow"),An("\\Larr","\\Leftarrow"),An("\\lrarr","\\leftrightarrow"),An("\\lrArr","\\Leftrightarrow"),An("\\Lrarr","\\Leftrightarrow"),An("\\Mu","\\mathrm{M}"),An("\\natnums","\\mathbb{N}"),An("\\Nu","\\mathrm{N}"),An("\\Omicron","\\mathrm{O}"),An("\\plusmn","\\pm"),An("\\rarr","\\rightarrow"),An("\\rArr","\\Rightarrow"),An("\\Rarr","\\Rightarrow"),An("\\real","\\Re"),An("\\reals","\\mathbb{R}"),An("\\Reals","\\mathbb{R}"),An("\\Rho","\\mathrm{P}"),An("\\sdot","\\cdot"),An("\\sect","\\S"),An("\\spades","\\spadesuit"),An("\\sub","\\subset"),An("\\sube","\\subseteq"),An("\\supe","\\supseteq"),An("\\Tau","\\mathrm{T}"),An("\\thetasym","\\vartheta"),An("\\weierp","\\wp"),An("\\Zeta","\\mathrm{Z}"),An("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),An("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),An("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),An("\\blue","\\textcolor{##6495ed}{#1}"),An("\\orange","\\textcolor{##ffa500}{#1}"),An("\\pink","\\textcolor{##ff00af}{#1}"),An("\\red","\\textcolor{##df0030}{#1}"),An("\\green","\\textcolor{##28ae7b}{#1}"),An("\\gray","\\textcolor{gray}{#1}"),An("\\purple","\\textcolor{##9d38bd}{#1}"),An("\\blueA","\\textcolor{##ccfaff}{#1}"),An("\\blueB","\\textcolor{##80f6ff}{#1}"),An("\\blueC","\\textcolor{##63d9ea}{#1}"),An("\\blueD","\\textcolor{##11accd}{#1}"),An("\\blueE","\\textcolor{##0c7f99}{#1}"),An("\\tealA","\\textcolor{##94fff5}{#1}"),An("\\tealB","\\textcolor{##26edd5}{#1}"),An("\\tealC","\\textcolor{##01d1c1}{#1}"),An("\\tealD","\\textcolor{##01a995}{#1}"),An("\\tealE","\\textcolor{##208170}{#1}"),An("\\greenA","\\textcolor{##b6ffb0}{#1}"),An("\\greenB","\\textcolor{##8af281}{#1}"),An("\\greenC","\\textcolor{##74cf70}{#1}"),An("\\greenD","\\textcolor{##1fab54}{#1}"),An("\\greenE","\\textcolor{##0d923f}{#1}"),An("\\goldA","\\textcolor{##ffd0a9}{#1}"),An("\\goldB","\\textcolor{##ffbb71}{#1}"),An("\\goldC","\\textcolor{##ff9c39}{#1}"),An("\\goldD","\\textcolor{##e07d10}{#1}"),An("\\goldE","\\textcolor{##a75a05}{#1}"),An("\\redA","\\textcolor{##fca9a9}{#1}"),An("\\redB","\\textcolor{##ff8482}{#1}"),An("\\redC","\\textcolor{##f9685d}{#1}"),An("\\redD","\\textcolor{##e84d39}{#1}"),An("\\redE","\\textcolor{##bc2612}{#1}"),An("\\maroonA","\\textcolor{##ffbde0}{#1}"),An("\\maroonB","\\textcolor{##ff92c6}{#1}"),An("\\maroonC","\\textcolor{##ed5fa6}{#1}"),An("\\maroonD","\\textcolor{##ca337c}{#1}"),An("\\maroonE","\\textcolor{##9e034e}{#1}"),An("\\purpleA","\\textcolor{##ddd7ff}{#1}"),An("\\purpleB","\\textcolor{##c6b9fc}{#1}"),An("\\purpleC","\\textcolor{##aa87ff}{#1}"),An("\\purpleD","\\textcolor{##7854ab}{#1}"),An("\\purpleE","\\textcolor{##543b78}{#1}"),An("\\mintA","\\textcolor{##f5f9e8}{#1}"),An("\\mintB","\\textcolor{##edf2df}{#1}"),An("\\mintC","\\textcolor{##e0e5cc}{#1}"),An("\\grayA","\\textcolor{##f6f7f7}{#1}"),An("\\grayB","\\textcolor{##f0f1f2}{#1}"),An("\\grayC","\\textcolor{##e3e5e6}{#1}"),An("\\grayD","\\textcolor{##d6d8da}{#1}"),An("\\grayE","\\textcolor{##babec2}{#1}"),An("\\grayF","\\textcolor{##888d93}{#1}"),An("\\grayG","\\textcolor{##626569}{#1}"),An("\\grayH","\\textcolor{##3b3e40}{#1}"),An("\\grayI","\\textcolor{##21242c}{#1}"),An("\\kaBlue","\\textcolor{##314453}{#1}"),An("\\kaGreen","\\textcolor{##71B307}{#1}");var Qs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},tl=function(){function Nt(xe,Ie,Je){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=Ie,this.expansionCount=0,this.feed(xe),this.macros=new Fs(hs,Ie.macros),this.mode=Je,this.stack=[]}var ce=Nt.prototype;return ce.feed=function(Ie){this.lexer=new zo(Ie,this.settings)},ce.switchMode=function(Ie){this.mode=Ie},ce.beginGroup=function(){this.macros.beginGroup()},ce.endGroup=function(){this.macros.endGroup()},ce.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ce.popToken=function(){return this.future(),this.stack.pop()},ce.pushToken=function(Ie){this.stack.push(Ie)},ce.pushTokens=function(Ie){var Je;(Je=this.stack).push.apply(Je,Ie)},ce.consumeSpaces=function(){for(;;){var Ie=this.future();if(Ie.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Ie){for(var Je=[],Dt=0;Dt<Ie;++Dt){this.consumeSpaces();var lr=this.popToken();if(lr.text==="{"){for(var Xr=[],hn=1;hn!==0;){var Nn=this.popToken();if(Xr.push(Nn),Nn.text==="{")++hn;else if(Nn.text==="}")--hn;else if(Nn.text==="EOF")throw new u("End of input in macro argument",lr)}Xr.pop(),Xr.reverse(),Je[Dt]=Xr}else{if(lr.text==="EOF")throw new u("End of input expecting macro argument");Je[Dt]=[lr]}}return Je},ce.expandOnce=function(){var Ie=this.popToken(),Je=Ie.text,Dt=this._getExpansion(Je);if(Dt==null)return this.pushToken(Ie),Ie;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var lr=Dt.tokens;if(Dt.numArgs){var Xr=this.consumeArgs(Dt.numArgs);lr=lr.slice();for(var hn=lr.length-1;hn>=0;--hn){var Nn=lr[hn];if(Nn.text==="#"){if(hn===0)throw new u("Incomplete placeholder at end of macro body",Nn);if(Nn=lr[--hn],Nn.text==="#")lr.splice(hn+1,1);else if(/^[1-9]$/.test(Nn.text)){var ui;(ui=lr).splice.apply(ui,[hn,2].concat(Xr[+Nn.text-1]))}else throw new u("Not a valid argument number",Nn)}}}return this.pushTokens(lr),lr},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Ie=this.expandOnce();if(Ie instanceof p)if(Ie.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Ie){if(!this.macros.get(Ie))return;var Je=[],Dt=this.stack.length;for(this.pushToken(new p(Ie));this.stack.length>Dt;){var lr=this.expandOnce();lr instanceof p&&Je.push(this.stack.pop())}return Je},ce.expandMacroAsText=function(Ie){var Je=this.expandMacro(Ie);return Je&&Je.map(function(Dt){return Dt.text}).join("")},ce._getExpansion=function(Ie){var Je=this.macros.get(Ie);if(Je==null)return Je;var Dt=typeof Je=="function"?Je(this):Je;if(typeof Dt=="string"){var lr=0;if(Dt.indexOf("#")!==-1)for(var Xr=Dt.replace(/##/g,"");Xr.indexOf("#"+(lr+1))!==-1;)++lr;for(var hn=new zo(Dt,this.settings),Nn=[],ui=hn.lex();ui.text!=="EOF";)Nn.push(ui),ui=hn.lex();Nn.reverse();var xi={tokens:Nn,numArgs:lr};return xi}return Dt},ce.isDefined=function(Ie){return this.macros.has(Ie)||as.hasOwnProperty(Ie)||Ve.math.hasOwnProperty(Ie)||Ve.text.hasOwnProperty(Ie)||Qs.hasOwnProperty(Ie)},Nt}(),xs={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Bs={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},al=function(){function Nt(xe,Ie){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new tl(xe,Ie,this.mode),this.settings=Ie,this.leftrightDepth=0}var ce=Nt.prototype;return ce.expect=function(Ie,Je){if(Je===void 0&&(Je=!0),this.fetch().text!==Ie)throw new u("Expected '"+Ie+"', got '"+this.fetch().text+"'",this.fetch());Je&&this.consume()},ce.consume=function(){this.nextToken=null},ce.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ce.switchMode=function(Ie){this.mode=Ie,this.gullet.switchMode(Ie)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Ie=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Ie},ce.parseExpression=function(Ie,Je){for(var Dt=[];;){this.mode==="math"&&this.consumeSpaces();var lr=this.fetch();if(Nt.endOfExpression.indexOf(lr.text)!==-1)break;if(Je&&lr.text===Je)break;if(Ie&&as[lr.text]&&as[lr.text].infix)break;var Xr=this.parseAtom(Je);if(!Xr)break;Dt.push(Xr)}return this.mode==="text"&&this.formLigatures(Dt),this.handleInfixNodes(Dt)},ce.handleInfixNodes=function(Ie){for(var Je=-1,Dt,lr=0;lr<Ie.length;lr++){var Xr=vn(Ie[lr],"infix");if(Xr){if(Je!==-1)throw new u("only one infix operator per group",Xr.token);Je=lr,Dt=Xr.replaceWith}}if(Je!==-1&&Dt){var hn,Nn,ui=Ie.slice(0,Je),xi=Ie.slice(Je+1);ui.length===1&&ui[0].type==="ordgroup"?hn=ui[0]:hn={type:"ordgroup",mode:this.mode,body:ui},xi.length===1&&xi[0].type==="ordgroup"?Nn=xi[0]:Nn={type:"ordgroup",mode:this.mode,body:xi};var Ai;return Dt==="\\\\abovefrac"?Ai=this.callFunction(Dt,[hn,Ie[Je],Nn],[]):Ai=this.callFunction(Dt,[hn,Nn],[]),[Ai]}else return Ie},ce.handleSupSubscript=function(Ie){var Je=this.fetch(),Dt=Je.text;this.consume();var lr=this.parseGroup(Ie,!1,Nt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!lr)throw new u("Expected group after '"+Dt+"'",Je);return lr},ce.formatUnsupportedCmd=function(Ie){for(var Je=[],Dt=0;Dt<Ie.length;Dt++)Je.push({type:"textord",mode:"text",text:Ie[Dt]});var lr={type:"text",mode:this.mode,body:Je},Xr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[lr]};return Xr},ce.parseAtom=function(Ie){var Je=this.parseGroup("atom",!1,null,Ie);if(this.mode==="text")return Je;for(var Dt,lr;;){this.consumeSpaces();var Xr=this.fetch();if(Xr.text==="\\limits"||Xr.text==="\\nolimits"){var hn=vn(Je,"op");if(hn){var Nn=Xr.text==="\\limits";hn.limits=Nn,hn.alwaysHandleSupSub=!0}else if(hn=vn(Je,"operatorname"),hn&&hn.alwaysHandleSupSub){var ui=Xr.text==="\\limits";hn.limits=ui}else throw new u("Limit controls must follow a math operator",Xr);this.consume()}else if(Xr.text==="^"){if(Dt)throw new u("Double superscript",Xr);Dt=this.handleSupSubscript("superscript")}else if(Xr.text==="_"){if(lr)throw new u("Double subscript",Xr);lr=this.handleSupSubscript("subscript")}else if(Xr.text==="'"){if(Dt)throw new u("Double superscript",Xr);var xi={type:"textord",mode:this.mode,text:"\\prime"},Ai=[xi];for(this.consume();this.fetch().text==="'";)Ai.push(xi),this.consume();this.fetch().text==="^"&&Ai.push(this.handleSupSubscript("superscript")),Dt={type:"ordgroup",mode:this.mode,body:Ai}}else break}return Dt||lr?{type:"supsub",mode:this.mode,base:Je,sup:Dt,sub:lr}:Je},ce.parseFunction=function(Ie,Je,Dt){var lr=this.fetch(),Xr=lr.text,hn=as[Xr];if(!hn)return null;if(this.consume(),Dt!=null&&hn.greediness<=Dt)throw new u("Got function '"+Xr+"' with no arguments"+(Je?" as "+Je:""),lr);if(this.mode==="text"&&!hn.allowedInText)throw new u("Can't use function '"+Xr+"' in text mode",lr);if(this.mode==="math"&&hn.allowedInMath===!1)throw new u("Can't use function '"+Xr+"' in math mode",lr);var Nn=this.parseArguments(Xr,hn),ui=Nn.args,xi=Nn.optArgs;return this.callFunction(Xr,ui,xi,lr,Ie)},ce.callFunction=function(Ie,Je,Dt,lr,Xr){var hn={funcName:Ie,parser:this,token:lr,breakOnTokenText:Xr},Nn=as[Ie];if(Nn&&Nn.handler)return Nn.handler(hn,Je,Dt);throw new u("No function handler for "+Ie)},ce.parseArguments=function(Ie,Je){var Dt=Je.numArgs+Je.numOptionalArgs;if(Dt===0)return{args:[],optArgs:[]};for(var lr=Je.greediness,Xr=[],hn=[],Nn=0;Nn<Dt;Nn++){var ui=Je.argTypes&&Je.argTypes[Nn],xi=Nn<Je.numOptionalArgs,Ai=Nn>0&&!xi||Nn===0&&!xi&&this.mode==="math",Yi=this.parseGroupOfType("argument to '"+Ie+"'",ui,xi,lr,Ai);if(!Yi){if(xi){hn.push(null);continue}throw new u("Expected group after '"+Ie+"'",this.fetch())}(xi?hn:Xr).push(Yi)}return{args:Xr,optArgs:hn}},ce.parseGroupOfType=function(Ie,Je,Dt,lr,Xr){switch(Je){case"color":return Xr&&this.consumeSpaces(),this.parseColorGroup(Dt);case"size":return Xr&&this.consumeSpaces(),this.parseSizeGroup(Dt);case"url":return this.parseUrlGroup(Dt,Xr);case"math":case"text":return this.parseGroup(Ie,Dt,lr,void 0,Je,Xr);case"hbox":{var hn=this.parseGroup(Ie,Dt,lr,void 0,"text",Xr);if(!hn)return hn;var Nn={type:"styling",mode:hn.mode,body:[hn],style:"text"};return Nn}case"raw":{if(Xr&&this.consumeSpaces(),Dt&&this.fetch().text==="{")return null;var ui=this.parseStringGroup("raw",Dt,!0);if(ui)return{type:"raw",mode:"text",string:ui.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Ie,Dt,lr,void 0,void 0,Xr);default:throw new u("Unknown group type as "+Ie,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Ie,Je,Dt){var lr=Je?"[":"{",Xr=Je?"]":"}",hn=this.fetch();if(hn.text!==lr){if(Je)return null;if(Dt&&hn.text!=="EOF"&&/[^{}[\]]/.test(hn.text))return this.consume(),hn}var Nn=this.mode;this.mode="text",this.expect(lr);for(var ui="",xi=this.fetch(),Ai=0,Yi=xi,sa;(sa=this.fetch()).text!==Xr||Dt&&Ai>0;){switch(sa.text){case"EOF":throw new u("Unexpected end of input in "+Ie,xi.range(Yi,ui));case lr:Ai++;break;case Xr:Ai--;break}Yi=sa,ui+=Yi.text,this.consume()}return this.expect(Xr),this.mode=Nn,xi.range(Yi,ui)},ce.parseRegexGroup=function(Ie,Je){var Dt=this.mode;this.mode="text";for(var lr=this.fetch(),Xr=lr,hn="",Nn;(Nn=this.fetch()).text!=="EOF"&&Ie.test(hn+Nn.text);)Xr=Nn,hn+=Xr.text,this.consume();if(hn==="")throw new u("Invalid "+Je+": '"+lr.text+"'",lr);return this.mode=Dt,lr.range(Xr,hn)},ce.parseColorGroup=function(Ie){var Je=this.parseStringGroup("color",Ie);if(!Je)return null;var Dt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Je.text);if(!Dt)throw new u("Invalid color: '"+Je.text+"'",Je);var lr=Dt[0];return/^[0-9a-f]{6}$/i.test(lr)&&(lr="#"+lr),{type:"color-token",mode:this.mode,color:lr}},ce.parseSizeGroup=function(Ie){var Je,Dt=!1;if(!Ie&&this.fetch().text!=="{"?Je=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Je=this.parseStringGroup("size",Ie),!Je)return null;!Ie&&Je.text.length===0&&(Je.text="0pt",Dt=!0);var lr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Je.text);if(!lr)throw new u("Invalid size: '"+Je.text+"'",Je);var Xr={number:+(lr[1]+lr[2]),unit:lr[3]};if(!Yr(Xr))throw new u("Invalid unit: '"+Xr.unit+"'",Je);return{type:"size",mode:this.mode,value:Xr,isBlank:Dt}},ce.parseUrlGroup=function(Ie,Je){this.gullet.lexer.setCatcode("%",13);var Dt=this.parseStringGroup("url",Ie,!0);if(this.gullet.lexer.setCatcode("%",14),!Dt)return null;var lr=Dt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:lr}},ce.parseGroup=function(Ie,Je,Dt,lr,Xr,hn){var Nn=this.mode;Xr&&this.switchMode(Xr),hn&&this.consumeSpaces();var ui=this.fetch(),xi=ui.text,Ai;if(Je?xi==="[":xi==="{"||xi==="\\begingroup"){this.consume();var Yi=Nt.endOfGroup[xi];this.gullet.beginGroup();var sa=this.parseExpression(!1,Yi),Ua=this.fetch();this.expect(Yi),this.gullet.endGroup(),Ai={type:"ordgroup",mode:this.mode,loc:m.range(ui,Ua),body:sa,semisimple:xi==="\\begingroup"||void 0}}else if(Je)Ai=null;else if(Ai=this.parseFunction(lr,Ie,Dt)||this.parseSymbol(),Ai==null&&xi[0]==="\\"&&!Qs.hasOwnProperty(xi)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+xi,ui);Ai=this.formatUnsupportedCmd(xi),this.consume()}return Xr&&this.switchMode(Nn),Ai},ce.formLigatures=function(Ie){for(var Je=Ie.length-1,Dt=0;Dt<Je;++Dt){var lr=Ie[Dt],Xr=lr.text;Xr==="-"&&Ie[Dt+1].text==="-"&&(Dt+1<Je&&Ie[Dt+2].text==="-"?(Ie.splice(Dt,3,{type:"textord",mode:"text",loc:m.range(lr,Ie[Dt+2]),text:"---"}),Je-=2):(Ie.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(lr,Ie[Dt+1]),text:"--"}),Je-=1)),(Xr==="'"||Xr==="`")&&Ie[Dt+1].text===Xr&&(Ie.splice(Dt,2,{type:"textord",mode:"text",loc:m.range(lr,Ie[Dt+1]),text:Xr+Xr}),Je-=1)}},ce.parseSymbol=function(){var Ie=this.fetch(),Je=Ie.text;if(/^\\verb[^a-zA-Z]/.test(Je)){this.consume();var Dt=Je.slice(5),lr=Dt.charAt(0)==="*";if(lr&&(Dt=Dt.slice(1)),Dt.length<2||Dt.charAt(0)!==Dt.slice(-1))throw new u(`\\verb assertion failed --
please report what input caused this bug`);return Dt=Dt.slice(1,-1),{type:"verb",mode:"text",body:Dt,star:lr}}Bs.hasOwnProperty(Je[0])&&!Ve[this.mode][Je[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Je[0]+'" used in math mode',Ie),Je=Bs[Je[0]]+Je.substr(1));var Xr=il.exec(Je);Xr&&(Je=Je.substring(0,Xr.index),Je==="i"?Je="\u0131":Je==="j"&&(Je="\u0237"));var hn;if(Ve[this.mode][Je]){this.settings.strict&&this.mode==="math"&&Nr.indexOf(Je)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Je[0]+'" used in math mode',Ie);var Nn=Ve[this.mode][Je].group,ui=m.range(Ie),xi;if(Vt.hasOwnProperty(Nn)){var Ai=Nn;xi={type:"atom",mode:this.mode,family:Ai,loc:ui,text:Je}}else xi={type:Nn,mode:this.mode,loc:ui,text:Je};hn=xi}else if(Je.charCodeAt(0)>=128)this.settings.strict&&(ee(Je.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Je[0]+'" used in math mode',Ie):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Je[0]+'"'+(" ("+Je.charCodeAt(0)+")"),Ie)),hn={type:"textord",mode:"text",loc:m.range(Ie),text:Je};else return null;if(this.consume(),Xr)for(var Yi=0;Yi<Xr[0].length;Yi++){var sa=Xr[0][Yi];if(!xs[sa])throw new u("Unknown accent ' "+sa+"'",Ie);var Ua=xs[sa][this.mode];if(!Ua)throw new u("Accent "+sa+" unsupported in "+this.mode+" mode",Ie);hn={type:"accent",mode:this.mode,loc:m.range(Ie),label:Ua,isStretchy:!1,isShifty:!0,base:hn}}return hn},Nt}();al.endOfExpression=["}","\\endgroup","\\end","\\right","&"],al.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},al.SUPSUB_GREEDINESS=1;var Js=function(ce,xe){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Ie=new al(ce,xe);delete Ie.gullet.macros.current["\\df@tag"];var Je=Ie.parse();if(Ie.gullet.macros.get("\\df@tag")){if(!xe.displayMode)throw new u("\\tag works only in display equations");Ie.gullet.feed("\\df@tag"),Je=[{type:"tag",mode:"text",body:Je,tag:Ie.parse()}]}return Je},Vo=Js,No=function(ce,xe,Ie){xe.textContent="";var Je=jt(ce,Ie).toNode();xe.appendChild(Je)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),No=function(){throw new u("KaTeX doesn't work in quirks mode.")}));var fs=function(ce,xe){var Ie=jt(ce,xe).toMarkup();return Ie},Ds=function(ce,xe){var Ie=new b(xe);return Vo(ce,Ie)},go=function(ce,xe,Ie){if(Ie.throwOnError||!(ce instanceof u))throw ce;var Je=kr.makeSpan(["katex-error"],[new Ce(xe)]);return Je.setAttribute("title",ce.toString()),Je.setAttribute("style","color:"+Ie.errorColor),Je},jt=function(ce,xe){var Ie=new b(xe);try{var Je=Vo(ce,Ie);return Dr(Je,ce,Ie)}catch(Dt){return go(Dt,ce,Ie)}},or=function(ce,xe){var Ie=new b(xe);try{var Je=Vo(ce,Ie);return Wr(Je,ce,Ie)}catch(Dt){return go(Dt,ce,Ie)}},In={version:"0.11.1",render:No,renderToString:fs,ParseError:u,__parse:Ds,__renderToDomTree:jt,__renderToHTMLTree:or,__setFontMetrics:Zt,__defineSymbol:me,__defineMacro:An,__domTree:{Span:Y,Anchor:$,SymbolNode:Ce,SvgNode:Se,PathNode:le,LineNode:pe}},hi=f.default=In}]).default})},P2fV:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("Q9mQ"),A=r("+L6B"),m=r("sE09"),p=r.n(m)},P2ho:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};L.default=y},P47w:function(R,L,r){var y=r("hydK"),f=y.createElement,x=r("IMiH"),A=r("mFDi"),m=r("Fofx"),p=r("6GrX"),d=r("pzxd"),u=r("dqUG"),a=x.CMD,i=Array.prototype.join,t="none",s=Math.round,e=Math.sin,l=Math.cos,n=Math.PI,o=Math.PI*2,c=180/n,h=1e-4;function g(Q){return s(Q*1e4)/1e4}function v(Q){return Q<h&&Q>-h}function b(Q,G){var ee=G?Q.textFill:Q.fill;return ee!=null&&ee!==t}function S(Q,G){var ee=G?Q.textStroke:Q.stroke;return ee!=null&&ee!==t}function E(Q,G){G&&C(Q,"transform","matrix("+i.call(G,",")+")")}function C(Q,G,ee){(!ee||ee.type!=="linear"&&ee.type!=="radial")&&Q.setAttribute(G,ee)}function _(Q,G,ee){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,ee)}function T(Q,G,ee,se){if(b(G,ee)){var ye=ee?G.textFill:G.fill;ye=ye==="transparent"?t:ye,C(Q,"fill",ye),C(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else C(Q,"fill",t);if(S(G,ee)){var he=ee?G.textStroke:G.stroke;he=he==="transparent"?t:he,C(Q,"stroke",he);var ke=ee?G.textStrokeWidth:G.lineWidth,Pe=!ee&&G.strokeNoScale?se.getLineScale():1;C(Q,"stroke-width",ke/Pe),C(Q,"paint-order",ee?"stroke":"fill"),C(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Ue=G.lineDash;Ue?(C(Q,"stroke-dasharray",G.lineDash.join(",")),C(Q,"stroke-dashoffset",s(G.lineDashOffset||0))):C(Q,"stroke-dasharray",""),G.lineCap&&C(Q,"stroke-linecap",G.lineCap),G.lineJoin&&C(Q,"stroke-linejoin",G.lineJoin),G.miterLimit&&C(Q,"stroke-miterlimit",G.miterLimit)}else C(Q,"stroke",t)}function w(Q){for(var G=[],ee=Q.data,se=Q.len(),ye=0;ye<se;){var he=ee[ye++],ke="",Pe=0;switch(he){case a.M:ke="M",Pe=2;break;case a.L:ke="L",Pe=2;break;case a.Q:ke="Q",Pe=4;break;case a.C:ke="C",Pe=6;break;case a.A:var Ue=ee[ye++],$e=ee[ye++],Ge=ee[ye++],ht=ee[ye++],Fe=ee[ye++],oe=ee[ye++],rt=ee[ye++],fe=ee[ye++],J=Math.abs(oe),Y=v(J-o)||(fe?oe>=o:-oe>=o),$=oe>0?oe%o:oe%o+o,de=!1;Y?de=!0:v(J)?de=!1:de=$>=n===!!fe;var we=g(Ue+Ge*l(Fe)),Ce=g($e+ht*e(Fe));Y&&(fe?oe=o-1e-4:oe=-o+1e-4,de=!0,ye===9&&G.push("M",we,Ce));var Se=g(Ue+Ge*l(Fe+oe)),le=g($e+ht*e(Fe+oe));G.push("A",g(Ge),g(ht),s(rt*c),+de,+fe,Se,le);break;case a.Z:ke="Z";break;case a.R:var Se=g(ee[ye++]),le=g(ee[ye++]),pe=g(ee[ye++]),_e=g(ee[ye++]);G.push("M",Se,le,"L",Se+pe,le,"L",Se+pe,le+_e,"L",Se,le+_e,"L",Se,le);break}ke&&G.push(ke);for(var tt=0;tt<Pe;tt++)G.push(g(ee[ye++]))}return G.join(" ")}var O={};O.brush=function(Q){var G=Q.style,ee=Q.__svgEl;ee||(ee=f("path"),Q.__svgEl=ee),Q.path||Q.createPathProxy();var se=Q.path;if(Q.__dirtyPath){se.beginPath(),se.subPixelOptimize=!1,Q.buildPath(se,Q.shape),Q.__dirtyPath=!1;var ye=w(se);ye.indexOf("NaN")<0&&C(ee,"d",ye)}T(ee,G,!1,Q),E(ee,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var I={};I.brush=function(Q){var G=Q.style,ee=G.image;if(ee instanceof HTMLImageElement){var se=ee.src;ee=se}if(!ee)return;var ye=G.x||0,he=G.y||0,ke=G.width,Pe=G.height,Ue=Q.__svgEl;Ue||(Ue=f("image"),Q.__svgEl=Ue),ee!==Q.__imageSrc&&(_(Ue,"href",ee),Q.__imageSrc=ee),C(Ue,"width",ke),C(Ue,"height",Pe),C(Ue,"x",ye),C(Ue,"y",he),E(Ue,Q.transform),G.text!=null?F(Q,Q.getBoundingRect()):V(Q)};var k={},M=new A,U={},P=[],X={left:"start",right:"end",center:"middle",middle:"middle"},F=function(G,ee){var se=G.style,ye=G.transform,he=G instanceof u||se.transformText;G.__dirty&&d.normalizeTextStyle(se,!0);var ke=se.text;if(ke!=null&&(ke+=""),!d.needDrawText(ke,se))return;ke==null&&(ke=""),!he&&ye&&(M.copy(ee),M.applyTransform(ye),ee=M);var Pe=G.__textSvgEl;Pe||(Pe=f("text"),G.__textSvgEl=Pe);var Ue=Pe.style,$e=se.font||p.DEFAULT_FONT,Ge=Pe.__computedFont;$e!==Pe.__styleFont&&(Ue.font=Pe.__styleFont=$e,Ge=Pe.__computedFont=Ue.font);var ht=se.textPadding,Fe=se.textLineHeight,oe=G.__textCotentBlock;(!oe||G.__dirtyText)&&(oe=G.__textCotentBlock=p.parsePlainText(ke,Ge,ht,Fe,se.truncate));var rt=oe.outerHeight,fe=oe.lineHeight;d.getBoxPosition(U,G,se,ee);var J=U.baseX,Y=U.baseY,$=U.textAlign||"left",de=U.textVerticalAlign;j(Pe,he,ye,se,ee,J,Y);var we=p.adjustTextY(Y,rt,de),Ce=J,Se=we;ht&&(Ce=K(J,$,ht),Se+=ht[0]),Se+=fe/2,T(Pe,se,!0,G);var le=oe.canCacheByTextString,pe=G.__tspanList||(G.__tspanList=[]),_e=pe.length;if(le&&G.__canCacheByTextString&&G.__text===ke){if(G.__dirtyText&&_e)for(var tt=0;tt<_e;++tt)z(pe[tt],$,Ce,Se+tt*fe)}else{G.__text=ke,G.__canCacheByTextString=le;for(var gt=oe.lines,ct=gt.length,tt=0;tt<ct;tt++){var je=pe[tt],Zt=gt[tt];je?je.__zrText!==Zt&&(je.innerHTML="",je.appendChild(document.createTextNode(Zt))):(je=pe[tt]=f("tspan"),Pe.appendChild(je),je.appendChild(document.createTextNode(Zt))),z(je,$,Ce,Se+tt*fe)}if(_e>ct){for(;tt<_e;tt++)Pe.removeChild(pe[tt]);pe.length=ct}}};function j(Q,G,ee,se,ye,he,ke){m.identity(P),G&&ee&&m.copy(P,ee);var Pe=se.textRotation;if(ye&&Pe){var Ue=se.textOrigin;Ue==="center"?(he=ye.width/2+ye.x,ke=ye.height/2+ye.y):Ue&&(he=Ue[0]+ye.x,ke=Ue[1]+ye.y),P[4]-=he,P[5]-=ke,m.rotate(P,P,Pe),P[4]+=he,P[5]+=ke}E(Q,P)}function K(Q,G,ee){return G==="right"?Q-ee[1]:G==="center"?Q+ee[3]/2-ee[1]/2:Q+ee[3]}function z(Q,G,ee,se){C(Q,"dominant-baseline","middle"),C(Q,"text-anchor",X[G]),C(Q,"x",ee),C(Q,"y",se)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}k.drawRectText=F,k.brush=function(Q){var G=Q.style;G.text!=null?F(Q,!1):V(Q)},L.path=O,L.image=I,L.text=k},P4Qj:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.removeSensor=L.getSensor=L.Sensors=void 0;var y=A(r("chpo")),f=r("FxDU"),x=r("24YM");function A(a){return a&&a.__esModule?a:{default:a}}var m={};L.Sensors=m;function p(a){a&&m[a]&&delete m[a]}var d=function(i){var t=i.getAttribute(x.SizeSensorId);if(t&&m[t])return m[t];var s=(0,y.default)();i.setAttribute(x.SizeSensorId,s);var e=(0,f.createSensor)(i,function(){return p(s)});return m[s]=e,e};L.getSensor=d;var u=function(i){var t=i.element.getAttribute(x.SizeSensorId);i.destroy(),p(t)};L.removeSensor=u},P5Jw:function(R,L,r){"use strict";var y=r("rHrb"),f=y.CopyToClipboard;f.CopyToClipboard=f,R.exports=f},PArb:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r.n(m),d=r("TSYQ"),u=r.n(d),a=r("H84U"),i=function(s,e){var l={};for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&e.indexOf(n)<0&&(l[n]=s[n]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(s);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(s,n[o])&&(l[n[o]]=s[n[o]]);return l},t=function(e){return m.createElement(a.a,null,function(l){var n,o=l.getPrefixCls,c=l.direction,h=e.prefixCls,g=e.type,v=g===void 0?"horizontal":g,b=e.orientation,S=b===void 0?"center":b,E=e.className,C=e.children,_=e.dashed,T=e.plain,w=i(e,["prefixCls","type","orientation","className","children","dashed","plain"]),O=o("divider",h),I=S.length>0?"-".concat(S):S,k=!!C,M=u()(E,O,"".concat(O,"-").concat(v),(n={},A()(n,"".concat(O,"-with-text"),k),A()(n,"".concat(O,"-with-text").concat(I),k),A()(n,"".concat(O,"-dashed"),!!_),A()(n,"".concat(O,"-plain"),!!T),A()(n,"".concat(O,"-rtl"),c==="rtl"),n));return m.createElement("div",f()({className:M},w,{role:"separator"}),C&&m.createElement("span",{className:"".concat(O,"-inner-text")},C))})};L.a=t},PD8m:function(R,L){R.exports={name:"memoryStorage",read:y,write:f,each:x,remove:A,clearAll:m};var r={};function y(p){return r[p]}function f(p,d){r[p]=d}function x(p){for(var d in r)r.hasOwnProperty(d)&&p(r[d],d)}function A(p){delete r[p]}function m(p){r={}}},PKem:function(R,L,r){"use strict";r.d(L,"a",function(){return b});var y=r("RIqP"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("pVnL"),p=r.n(m),d=r("lwsE"),u=r.n(d),a=r("W8MJ"),i=r.n(a),t=r("7W2i"),s=r.n(t),e=r("LQ03"),l=r.n(e),n=r("q1tI"),o=r.n(n),c=r("TSYQ"),h=r.n(c),g=r("H84U"),v=function(I,k){var M={};for(var U in I)Object.prototype.hasOwnProperty.call(I,U)&&k.indexOf(U)<0&&(M[U]=I[U]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,U=Object.getOwnPropertySymbols(I);P<U.length;P++)k.indexOf(U[P])<0&&Object.prototype.propertyIsEnumerable.call(I,U[P])&&(M[U[P]]=I[U[P]]);return M},b=n.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function S(I){var k=I.suffixCls,M=I.tagName,U=I.displayName;return function(P){var X;return X=function(F){s()(K,F);var j=l()(K);function K(){var z;return u()(this,K),z=j.apply(this,arguments),z.renderComponent=function(V){var Q=V.getPrefixCls,G=z.props.prefixCls,ee=Q(k,G);return n.createElement(P,p()({prefixCls:ee,tagName:M},z.props))},z}return i()(K,[{key:"render",value:function(){return n.createElement(g.a,null,this.renderComponent)}}]),K}(n.Component),X.displayName=U,X}}var E=function(k){var M=k.prefixCls,U=k.className,P=k.children,X=k.tagName,F=v(k,["prefixCls","className","children","tagName"]),j=h()(M,U);return n.createElement(X,p()({className:j},F),P)},C=function(I){s()(M,I);var k=l()(M);function M(){var U;return u()(this,M),U=k.apply(this,arguments),U.state={siders:[]},U.renderComponent=function(P){var X,F=P.direction,j=U.props,K=j.prefixCls,z=j.className,V=j.children,Q=j.hasSider,G=j.tagName,ee=v(j,["prefixCls","className","children","hasSider","tagName"]),se=h()(K,(X={},A()(X,"".concat(K,"-has-sider"),typeof Q=="boolean"?Q:U.state.siders.length>0),A()(X,"".concat(K,"-rtl"),F==="rtl"),X),z);return n.createElement(b.Provider,{value:{siderHook:U.getSiderHook()}},n.createElement(G,p()({className:se},ee),V))},U}return i()(M,[{key:"getSiderHook",value:function(){var P=this;return{addSider:function(F){P.setState(function(j){return{siders:[].concat(f()(j.siders),[F])}})},removeSider:function(F){P.setState(function(j){return{siders:j.siders.filter(function(K){return K!==F})}})}}}},{key:"render",value:function(){return n.createElement(g.a,null,this.renderComponent)}}]),M}(n.Component),_=S({suffixCls:"layout",tagName:"section",displayName:"Layout"})(C),T=S({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(E),w=S({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(E),O=S({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(E);_.Header=T,_.Footer=w,_.Content=O,L.b=_},PLTn:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("0dAU"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},PNag:function(R,L,r){var y=r("bYtY"),f=r("SKnc"),x=r("YH21"),A=r("crZl"),m=r("IwbS"),p=r("OELB"),d=r("72pK"),u=r("y7Aq"),a=r("4NO4"),i=p.linearMap,t=y.each,s=Math.min,e=Math.max,l=12,n=6,o=A.extend({type:"visualMap.continuous",init:function(){o.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(C,_,T,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var C=this.visualMapModel,_=this.group;this._orient=C.get("orient"),this._useHandle=C.get("calculable"),this._resetInterval(),this._renderBar(_);var T=C.get("text");this._renderEndsText(_,T,0),this._renderEndsText(_,T,1),this._updateView(!0),this.renderBackground(_),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(_)},_renderEndsText:function(C,_,T){if(!_)return;var w=_[1-T];w=w!=null?w+"":"";var O=this.visualMapModel,I=O.get("textGap"),k=O.itemSize,M=this._shapes.barGroup,U=this._applyTransform([k[0]/2,T===0?-I:k[1]+I],M),P=this._applyTransform(T===0?"bottom":"top",M),X=this._orient,F=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:U[0],y:U[1],textVerticalAlign:X==="horizontal"?"middle":P,textAlign:X==="horizontal"?P:"center",text:w,textFont:F.getFont(),textFill:F.getTextColor()}}))},_renderBar:function(C){var _=this.visualMapModel,T=this._shapes,w=_.itemSize,O=this._orient,I=this._useHandle,k=u.getItemAlign(_,this.api,w),M=T.barGroup=this._createBarGroup(k);M.add(T.outOfRange=c()),M.add(T.inRange=c(null,I?S(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var U=_.textStyleModel.getTextRect("\u56FD"),P=e(U.width,U.height);I&&(T.handleThumbs=[],T.handleLabels=[],T.handleLabelPoints=[],this._createHandle(M,0,w,P,O,k),this._createHandle(M,1,w,P,O,k)),this._createIndicator(M,w,P,O),C.add(M)},_createHandle:function(C,_,T,w,O){var I=y.bind(this._dragHandle,this,_,!1),k=y.bind(this._dragHandle,this,_,!0),M=c(h(_,w),S(this._orient),I,k);M.position[0]=T[0],C.add(M);var U=this.visualMapModel.textStyleModel,P=new m.Text({draggable:!0,drift:I,onmousemove:function(j){x.stop(j.event)},ondragend:k,style:{x:0,y:0,text:"",textFont:U.getFont(),textFill:U.getTextColor()}});this.group.add(P);var X=[O==="horizontal"?w/2:w*1.5,O==="horizontal"?_===0?-(w*1.5):w*1.5:_===0?-w/2:w/2],F=this._shapes;F.handleThumbs[_]=M,F.handleLabelPoints[_]=X,F.handleLabels[_]=P},_createIndicator:function(C,_,T,w){var O=c([[0,0]],"move");O.position[0]=_[0],O.attr({invisible:!0,silent:!0}),C.add(O);var I=this.visualMapModel.textStyleModel,k=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(k);var M=[w==="horizontal"?T/2:n+3,0],U=this._shapes;U.indicator=O,U.indicatorLabel=k,U.indicatorLabelPoint=M},_dragHandle:function(C,_,T,w){if(!this._useHandle)return;if(this._dragging=!_,!_){var O=this._applyTransform([T,w],this._shapes.barGroup,!0);this._updateInterval(C,O[1]),this._updateView()}_===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),_?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[C],!1)},_resetInterval:function(){var C=this.visualMapModel,_=this._dataInterval=C.getSelected(),T=C.getExtent(),w=[0,C.itemSize[1]];this._handleEnds=[i(_[0],T,w,!0),i(_[1],T,w,!0)]},_updateInterval:function(C,_){_=_||0;var T=this.visualMapModel,w=this._handleEnds,O=[0,T.itemSize[1]];d(_,w,O,C,0);var I=T.getExtent();this._dataInterval=[i(w[0],O,I,!0),i(w[1],O,I,!0)]},_updateView:function(C){var _=this.visualMapModel,T=_.getExtent(),w=this._shapes,O=[0,_.itemSize[1]],I=C?O:this._handleEnds,k=this._createBarVisual(this._dataInterval,T,I,"inRange"),M=this._createBarVisual(T,T,O,"outOfRange");w.inRange.setStyle({fill:k.barColor,opacity:k.opacity}).setShape("points",k.barPoints),w.outOfRange.setStyle({fill:M.barColor,opacity:M.opacity}).setShape("points",M.barPoints),this._updateHandle(I,k)},_createBarVisual:function(C,_,T,w){var O={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(C,O),k=[this.getControllerVisual(C[0],"symbolSize",O),this.getControllerVisual(C[1],"symbolSize",O)],M=this._createBarPoints(T,k);return{barColor:new f(0,0,0,1,I),barPoints:M,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(C,_){var T=100,w=[],O=(C[1]-C[0])/T;w.push({color:this.getControllerVisual(C[0],"color",_),offset:0});for(var I=1;I<T;I++){var k=C[0]+O*I;if(k>C[1])break;w.push({color:this.getControllerVisual(k,"color",_),offset:I/T})}return w.push({color:this.getControllerVisual(C[1],"color",_),offset:1}),w},_createBarPoints:function(C,_){var T=this.visualMapModel.itemSize;return[[T[0]-_[0],C[0]],[T[0],C[0]],[T[0],C[1]],[T[0]-_[1],C[1]]]},_createBarGroup:function(C){var _=this._orient,T=this.visualMapModel.get("inverse");return new m.Group(_==="horizontal"&&!T?{scale:C==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:_==="horizontal"&&T?{scale:C==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:_==="vertical"&&!T?{scale:C==="left"?[1,-1]:[-1,-1]}:{scale:C==="left"?[1,1]:[-1,1]})},_updateHandle:function(C,_){if(!this._useHandle)return;var T=this._shapes,w=this.visualMapModel,O=T.handleThumbs,I=T.handleLabels;t([0,1],function(k){var M=O[k];M.setStyle("fill",_.handlesColor[k]),M.position[1]=C[k];var U=m.applyTransform(T.handleLabelPoints[k],m.getTransform(M,this.group));I[k].setStyle({x:U[0],y:U[1],text:w.formatValueText(this._dataInterval[k]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?k===0?"bottom":"top":"left",T.barGroup)})},this)},_showIndicator:function(C,_,T,w){var O=this.visualMapModel,I=O.getExtent(),k=O.itemSize,M=[0,k[1]],U=i(C,I,M,!0),P=this._shapes,X=P.indicator;if(!X)return;X.position[1]=U,X.attr("invisible",!1),X.setShape("points",g(!!T,w,U,k[1]));var F={convertOpacityToAlpha:!0},j=this.getControllerVisual(C,"color",F);X.setStyle("fill",j);var K=m.applyTransform(P.indicatorLabelPoint,m.getTransform(X,this.group)),z=P.indicatorLabel;z.attr("invisible",!1);var V=this._applyTransform("left",P.barGroup),Q=this._orient;z.setStyle({text:(T||"")+O.formatValueText(_),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:K[0],y:K[1]})},_enableHoverLinkToSeries:function(){var C=this;this._shapes.barGroup.on("mousemove",function(_){if(C._hovering=!0,!C._dragging){var T=C.visualMapModel.itemSize,w=C._applyTransform([_.offsetX,_.offsetY],C._shapes.barGroup,!0,!0);w[1]=s(e(0,w[1]),T[1]),C._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=T[0])}}).on("mouseout",function(){C._hovering=!1,!C._dragging&&C._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var C=this.api.getZr();this.visualMapModel.option.hoverLink?(C.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),C.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(C,_){var T=this.visualMapModel,w=T.itemSize;if(!T.option.hoverLink)return;var O=[0,w[1]],I=T.getExtent();C=s(e(O[0],C),O[1]);var k=v(T,I,O),M=[C-k,C+k],U=i(C,O,I,!0),P=[i(M[0],O,I,!0),i(M[1],O,I,!0)];M[0]<O[0]&&(P[0]=-Infinity),M[1]>O[1]&&(P[1]=Infinity),_&&(P[0]===-Infinity?this._showIndicator(U,P[1],"< ",k):P[1]===Infinity?this._showIndicator(U,P[0],"> ",k):this._showIndicator(U,U,"\u2248 ",k));var X=this._hoverLinkDataIndices,F=[];(_||b(T))&&(F=this._hoverLinkDataIndices=T.findTargetDataIndices(P));var j=a.compressBatches(X,F);this._dispatchHighDown("downplay",u.makeHighDownBatch(j[0],T)),this._dispatchHighDown("highlight",u.makeHighDownBatch(j[1],T))},_hoverLinkFromSeriesMouseOver:function(C){var _=C.target,T=this.visualMapModel;if(!_||_.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(_.seriesIndex);if(!T.isTargetSeries(w))return;var O=w.getData(_.dataType),I=O.get(T.getDataDimension(O),_.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var C=this._shapes;C.indicator&&C.indicator.attr("invisible",!0),C.indicatorLabel&&C.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var C=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(C,this.visualMapModel)),C.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var C=this.api.getZr();C.off("mouseover",this._hoverLinkFromSeriesMouseOver),C.off("mouseout",this._hideIndicator)},_applyTransform:function(C,_,T,w){var O=m.getTransform(_,w?null:this.group);return m[y.isArray(C)?"applyTransform":"transformDirection"](C,O,T)},_dispatchHighDown:function(C,_){_&&_.length&&this.api.dispatchAction({type:C,batch:_})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(C,_,T,w){return new m.Polygon({shape:{points:C},draggable:!!T,cursor:_,drift:T,onmousemove:function(O){x.stop(O.event)},ondragend:w})}function h(C,_){return C===0?[[0,0],[_,0],[_,-_]]:[[0,0],[_,0],[_,_]]}function g(C,_,T,w){return C?[[0,-s(_,e(T,0))],[n,0],[0,s(_,e(w-T,0))]]:[[0,0],[5,-5],[5,5]]}function v(C,_,T){var w=l/2,O=C.get("hoverLinkDataSize");return O&&(w=i(O,_,T,!0)/2),w}function b(C){var _=C.get("hoverLinkOnHandle");return!!(_==null?C.get("realtime"):_)}function S(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=o;R.exports=E},PQMj:function(R,L,r){},PSzr:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};L.default=y},PVpz:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.StreamCipher,m=f.algo,p=[],d=[],u=[],a=m.RabbitLegacy=A.extend({_doReset:function(){var s=this._key.words,e=this.cfg.iv,l=this._X=[s[0],s[3]<<16|s[2]>>>16,s[1],s[0]<<16|s[3]>>>16,s[2],s[1]<<16|s[0]>>>16,s[3],s[2]<<16|s[1]>>>16],n=this._C=[s[2]<<16|s[2]>>>16,s[0]&4294901760|s[1]&65535,s[3]<<16|s[3]>>>16,s[1]&4294901760|s[2]&65535,s[0]<<16|s[0]>>>16,s[2]&4294901760|s[3]&65535,s[1]<<16|s[1]>>>16,s[3]&4294901760|s[0]&65535];this._b=0;for(var o=0;o<4;o++)i.call(this);for(var o=0;o<8;o++)n[o]^=l[o+4&7];if(e){var c=e.words,h=c[0],g=c[1],v=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,S=v>>>16|b&4294901760,E=b<<16|v&65535;n[0]^=v,n[1]^=S,n[2]^=b,n[3]^=E,n[4]^=v,n[5]^=S,n[6]^=b,n[7]^=E;for(var o=0;o<4;o++)i.call(this)}},_doProcessBlock:function(s,e){var l=this._X;i.call(this),p[0]=l[0]^l[5]>>>16^l[3]<<16,p[1]=l[2]^l[7]>>>16^l[5]<<16,p[2]=l[4]^l[1]>>>16^l[7]<<16,p[3]=l[6]^l[3]>>>16^l[1]<<16;for(var n=0;n<4;n++)p[n]=(p[n]<<8|p[n]>>>24)&16711935|(p[n]<<24|p[n]>>>8)&4278255360,s[e+n]^=p[n]},blockSize:128/32,ivSize:64/32});function i(){for(var t=this._X,s=this._C,e=0;e<8;e++)d[e]=s[e];s[0]=s[0]+1295307597+this._b|0,s[1]=s[1]+3545052371+(s[0]>>>0<d[0]>>>0?1:0)|0,s[2]=s[2]+886263092+(s[1]>>>0<d[1]>>>0?1:0)|0,s[3]=s[3]+1295307597+(s[2]>>>0<d[2]>>>0?1:0)|0,s[4]=s[4]+3545052371+(s[3]>>>0<d[3]>>>0?1:0)|0,s[5]=s[5]+886263092+(s[4]>>>0<d[4]>>>0?1:0)|0,s[6]=s[6]+1295307597+(s[5]>>>0<d[5]>>>0?1:0)|0,s[7]=s[7]+3545052371+(s[6]>>>0<d[6]>>>0?1:0)|0,this._b=s[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var l=t[e]+s[e],n=l&65535,o=l>>>16,c=((n*n>>>17)+n*o>>>15)+o*o,h=((l&4294901760)*l|0)+((l&65535)*l|0);u[e]=c^h}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}f.RabbitLegacy=A._createHelper(a)}(),y.RabbitLegacy})},ProS:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("aX58"),A=r("bYtY"),m=r("Qe9p"),p=r("ItGF"),d=r("BPZU"),u=r("H6uX"),a=r("fmMI"),i=r("hD7B"),t=r("IDmD"),s=r("ypgQ"),e=r("+wW9"),l=r("0V0F"),n=r("bLfw"),o=r("T4UG"),c=r("sS/r"),h=r("6Ic6"),g=r("IwbS"),v=r("4NO4"),b=r("iLNv"),S=b.throttle,E=r("/WM3"),C=r("uAnK"),_=r("mYwL"),T=r("af/B"),w=r("xTNl"),O=r("8hn6");r("A1Ka");var I=r("7DRL"),k=A.assert,M=A.each,U=A.isFunction,P=A.isObject,X=n.parseClassType,F="4.8.0",j={zrender:"4.3.1"},K=1,z=1e3,V=800,Q=900,G=5e3,ee=1e3,se=1100,ye=2e3,he=3e3,ke=3500,Pe=4e3,Ue=5e3,$e={PROCESSOR:{FILTER:z,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:ee,PROGRESSIVE_LAYOUT:se,GLOBAL:ye,CHART:he,POST_CHART_LAYOUT:ke,COMPONENT:Pe,BRUSH:Ue}},Ge="__flagInMainProcess",ht="__optionUpdated",Fe=/^[a-zA-Z0-9_]+$/;function oe(Pt,rr){return function(Yr,Pr,Mr){if(!rr&&this._disposed){dr(this.id);return}Yr=Yr&&Yr.toLowerCase(),u.prototype[Pt].call(this,Yr,Pr,Mr)}}function rt(){u.call(this)}rt.prototype.on=oe("on",!0),rt.prototype.off=oe("off",!0),rt.prototype.one=oe("one",!0),A.mixin(rt,u);function fe(Pt,rr,Yr){Yr=Yr||{},typeof rr=="string"&&(rr=dt[rr]),this.id,this.group,this._dom=Pt;var Pr="canvas",Mr=this._zr=x.init(Pt,{renderer:Yr.renderer||Pr,devicePixelRatio:Yr.devicePixelRatio,width:Yr.width,height:Yr.height});this._throttledZrFlush=S(A.bind(Mr.flush,Mr),17);var rr=A.clone(rr);rr&&e(rr,!0),this._theme=rr,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var fn=this._api=Ve(this);function wn(ai,ri){return ai.__prio-ri.__prio}d(Qt,wn),d(Xe,wn),this._scheduler=new T(this,fn,Xe,Qt),u.call(this,this._ecEventProcessor=new me),this._messageCenter=new rt,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],Mr.animation.on("frame",this._onframe,this),_e(Mr,this),A.setAsPrimitive(this)}var J=fe.prototype;J._onframe=function(){if(this._disposed)return;var Pt=this._scheduler;if(this[ht]){var rr=this[ht].silent;this[Ge]=!0,de(this),$.update.call(this),this[Ge]=!1,this[ht]=!1,le.call(this,rr),pe.call(this,rr)}else if(Pt.unfinished){var Yr=K,Pr=this._model,Mr=this._api;Pt.unfinished=!1;do{var fn=+new Date;Pt.performSeriesTasks(Pr),Pt.performDataProcessorTasks(Pr),Ce(this,Pr),Pt.performVisualTasks(Pr),Zt(this,this._model,Mr,"remain"),Yr-=+new Date-fn}while(Yr>0&&Pt.unfinished);Pt.unfinished||this._zr.flush()}},J.getDom=function(){return this._dom},J.getZr=function(){return this._zr},J.setOption=function(Pt,rr,Yr){if(this._disposed){dr(this.id);return}var Pr;if(P(rr)&&(Yr=rr.lazyUpdate,Pr=rr.silent,rr=rr.notMerge),this[Ge]=!0,!this._model||rr){var Mr=new s(this._api),fn=this._theme,wn=this._model=new a;wn.scheduler=this._scheduler,wn.init(null,null,fn,Mr)}this._model.setOption(Pt,ue),Yr?(this[ht]={silent:Pr},this[Ge]=!1):(de(this),$.update.call(this),this._zr.flush(),this[ht]=!1,this[Ge]=!1,le.call(this,Pr),pe.call(this,Pr))},J.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},J.getModel=function(){return this._model},J.getOption=function(){return this._model&&this._model.getOption()},J.getWidth=function(){return this._zr.getWidth()},J.getHeight=function(){return this._zr.getHeight()},J.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},J.getRenderedCanvas=function(Pt){if(!p.canvasSupported)return;Pt=Pt||{},Pt.pixelRatio=Pt.pixelRatio||1,Pt.backgroundColor=Pt.backgroundColor||this._model.get("backgroundColor");var rr=this._zr;return rr.painter.getRenderedCanvas(Pt)},J.getSvgDataURL=function(){if(!p.svgSupported)return;var Pt=this._zr,rr=Pt.storage.getDisplayList();return A.each(rr,function(Yr){Yr.stopAnimation(!0)}),Pt.painter.toDataURL()},J.getDataURL=function(Pt){if(this._disposed){dr(this.id);return}Pt=Pt||{};var rr=Pt.excludeComponents,Yr=this._model,Pr=[],Mr=this;M(rr,function(wn){Yr.eachComponent({mainType:wn},function(ai){var ri=Mr._componentsMap[ai.__viewId];ri.group.ignore||(Pr.push(ri),ri.group.ignore=!0)})});var fn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Pt).toDataURL("image/"+(Pt&&Pt.type||"png"));return M(Pr,function(wn){wn.group.ignore=!1}),fn},J.getConnectedDataURL=function(Pt){if(this._disposed){dr(this.id);return}if(!p.canvasSupported)return;var rr=Pt.type==="svg",Yr=this.group,Pr=Math.min,Mr=Math.max,fn=Infinity;if(tn[Yr]){var wn=fn,ai=fn,ri=-fn,gi=-fn,Ii=[],Mi=Pt&&Pt.pixelRatio||1;A.each($t,function(at,qe){if(at.group===Yr){var lt=rr?at.getZr().painter.getSvgDom().innerHTML:at.getRenderedCanvas(A.clone(Pt)),Et=at.getDom().getBoundingClientRect();wn=Pr(Et.left,wn),ai=Pr(Et.top,ai),ri=Mr(Et.right,ri),gi=Mr(Et.bottom,gi),Ii.push({dom:lt,left:Et.left,top:Et.top})}}),wn*=Mi,ai*=Mi,ri*=Mi,gi*=Mi;var Qi=ri-wn,ot=gi-ai,Ne=A.createCanvas(),He=x.init(Ne,{renderer:rr?"svg":"canvas"});if(He.resize({width:Qi,height:ot}),rr){var Ye="";return M(Ii,function(at){var qe=at.left-wn,lt=at.top-ai;Ye+='<g transform="translate('+qe+","+lt+')">'+at.dom+"</g>"}),He.painter.getSvgRoot().innerHTML=Ye,Pt.connectedBackgroundColor&&He.painter.setBackgroundColor(Pt.connectedBackgroundColor),He.refreshImmediately(),He.painter.toDataURL()}else return Pt.connectedBackgroundColor&&He.add(new g.Rect({shape:{x:0,y:0,width:Qi,height:ot},style:{fill:Pt.connectedBackgroundColor}})),M(Ii,function(at){var qe=new g.Image({style:{x:at.left*Mi-wn,y:at.top*Mi-ai,image:at.dom}});He.add(qe)}),He.refreshImmediately(),Ne.toDataURL("image/"+(Pt&&Pt.type||"png"))}else return this.getDataURL(Pt)},J.convertToPixel=A.curry(Y,"convertToPixel"),J.convertFromPixel=A.curry(Y,"convertFromPixel");function Y(Pt,rr,Yr){if(this._disposed){dr(this.id);return}var Pr=this._model,Mr=this._coordSysMgr.getCoordinateSystems(),fn;rr=v.parseFinder(Pr,rr);for(var wn=0;wn<Mr.length;wn++){var ai=Mr[wn];if(ai[Pt]&&(fn=ai[Pt](Pr,rr,Yr))!=null)return fn}}J.containPixel=function(Pt,rr){if(this._disposed){dr(this.id);return}var Yr=this._model,Pr;return Pt=v.parseFinder(Yr,Pt),A.each(Pt,function(Mr,fn){fn.indexOf("Models")>=0&&A.each(Mr,function(wn){var ai=wn.coordinateSystem;if(ai&&ai.containPoint)Pr|=!!ai.containPoint(rr);else if(fn==="seriesModels"){var ri=this._chartsMap[wn.__viewId];ri&&ri.containPoint&&(Pr|=ri.containPoint(rr,wn))}},this)},this),!!Pr},J.getVisual=function(Pt,rr){var Yr=this._model;Pt=v.parseFinder(Yr,Pt,{defaultMainType:"series"});var Pr=Pt.seriesModel,Mr=Pr.getData(),fn=Pt.hasOwnProperty("dataIndexInside")?Pt.dataIndexInside:Pt.hasOwnProperty("dataIndex")?Mr.indexOfRawIndex(Pt.dataIndex):null;return fn!=null?Mr.getItemVisual(fn,rr):Mr.getVisual(rr)},J.getViewOfComponentModel=function(Pt){return this._componentsMap[Pt.__viewId]},J.getViewOfSeriesModel=function(Pt){return this._chartsMap[Pt.__viewId]};var $={prepareAndUpdate:function(Pt){de(this),$.update.call(this,Pt)},update:function(Pt){var rr=this._model,Yr=this._api,Pr=this._zr,Mr=this._coordSysMgr,fn=this._scheduler;if(!rr)return;fn.restoreData(rr,Pt),fn.performSeriesTasks(rr),Mr.create(rr,Yr),fn.performDataProcessorTasks(rr,Pt),Ce(this,rr),Mr.update(rr,Yr),gt(rr),fn.performVisualTasks(rr,Pt),ct(this,rr,Yr,Pt);var wn=rr.get("backgroundColor")||"transparent";if(p.canvasSupported)Pr.setBackgroundColor(wn);else{var ai=m.parse(wn);wn=m.stringify(ai,"rgb"),ai[3]===0&&(wn="transparent")}ut(rr,Yr)},updateTransform:function(Pt){var rr=this._model,Yr=this,Pr=this._api;if(!rr)return;var Mr=[];rr.eachComponent(function(wn,ai){var ri=Yr.getViewOfComponentModel(ai);if(ri&&ri.__alive)if(ri.updateTransform){var gi=ri.updateTransform(ai,rr,Pr,Pt);gi&&gi.update&&Mr.push(ri)}else Mr.push(ri)});var fn=A.createHashMap();rr.eachSeries(function(wn){var ai=Yr._chartsMap[wn.__viewId];if(ai.updateTransform){var ri=ai.updateTransform(wn,rr,Pr,Pt);ri&&ri.update&&fn.set(wn.uid,1)}else fn.set(wn.uid,1)}),gt(rr),this._scheduler.performVisualTasks(rr,Pt,{setDirty:!0,dirtyMap:fn}),Zt(Yr,rr,Pr,Pt,fn),ut(rr,this._api)},updateView:function(Pt){var rr=this._model;if(!rr)return;h.markUpdateMethod(Pt,"updateView"),gt(rr),this._scheduler.performVisualTasks(rr,Pt,{setDirty:!0}),ct(this,this._model,this._api,Pt),ut(rr,this._api)},updateVisual:function(Pt){$.update.call(this,Pt)},updateLayout:function(Pt){$.update.call(this,Pt)}};function de(Pt){var rr=Pt._model,Yr=Pt._scheduler;Yr.restorePipelines(rr),Yr.prepareStageTasks(),tt(Pt,"component",rr,Yr),tt(Pt,"chart",rr,Yr),Yr.plan()}function we(Pt,rr,Yr,Pr,Mr){var fn=Pt._model;if(!Pr){M(Pt._componentsViews.concat(Pt._chartsViews),gi);return}var wn={};wn[Pr+"Id"]=Yr[Pr+"Id"],wn[Pr+"Index"]=Yr[Pr+"Index"],wn[Pr+"Name"]=Yr[Pr+"Name"];var ai={mainType:Pr,query:wn};Mr&&(ai.subType=Mr);var ri=Yr.excludeSeriesId;ri!=null&&(ri=A.createHashMap(v.normalizeToArray(ri))),fn&&fn.eachComponent(ai,function(Ii){(!ri||ri.get(Ii.id)==null)&&gi(Pt[Pr==="series"?"_chartsMap":"_componentsMap"][Ii.__viewId])},Pt);function gi(Ii){Ii&&Ii.__alive&&Ii[rr]&&Ii[rr](Ii.__model,fn,Pt._api,Yr)}}J.resize=function(Pt){if(this._disposed){dr(this.id);return}this._zr.resize(Pt);var rr=this._model;if(this._loadingFX&&this._loadingFX.resize(),!rr)return;var Yr=rr.resetOption("media"),Pr=Pt&&Pt.silent;this[Ge]=!0,Yr&&de(this),$.update.call(this),this[Ge]=!1,le.call(this,Pr),pe.call(this,Pr)};function Ce(Pt,rr){var Yr=Pt._chartsMap,Pr=Pt._scheduler;rr.eachSeries(function(Mr){Pr.updateStreamModes(Mr,Yr[Mr.__viewId])})}J.showLoading=function(Pt,rr){if(this._disposed){dr(this.id);return}if(P(Pt)&&(rr=Pt,Pt=""),Pt=Pt||"default",this.hideLoading(),!Jt[Pt])return;var Yr=Jt[Pt](this._api,rr),Pr=this._zr;this._loadingFX=Yr,Pr.add(Yr)},J.hideLoading=function(){if(this._disposed){dr(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},J.makeActionFromEvent=function(Pt){var rr=A.extend({},Pt);return rr.type=Ze[Pt.type],rr},J.dispatchAction=function(Pt,rr){if(this._disposed){dr(this.id);return}if(P(rr)||(rr={silent:!!rr}),!te[Pt.type])return;if(!this._model)return;if(this[Ge]){this._pendingActions.push(Pt);return}Se.call(this,Pt,rr.silent),rr.flush?this._zr.flush(!0):rr.flush!==!1&&p.browser.weChat&&this._throttledZrFlush(),le.call(this,rr.silent),pe.call(this,rr.silent)};function Se(Pt,rr){var Yr=Pt.type,Pr=Pt.escapeConnect,Mr=te[Yr],fn=Mr.actionInfo,wn=(fn.update||"update").split(":"),ai=wn.pop();wn=wn[0]!=null&&X(wn[0]),this[Ge]=!0;var ri=[Pt],gi=!1;Pt.batch&&(gi=!0,ri=A.map(Pt.batch,function(ot){return ot=A.defaults(A.extend({},ot),Pt),ot.batch=null,ot}));var Ii=[],Mi,Qi=Yr==="highlight"||Yr==="downplay";M(ri,function(ot){Mi=Mr.action(ot,this._model,this._api),Mi=Mi||A.extend({},ot),Mi.type=fn.event||Mi.type,Ii.push(Mi),Qi?we(this,ai,ot,"series"):wn&&we(this,ai,ot,wn.main,wn.sub)},this),ai!=="none"&&!Qi&&!wn&&(this[ht]?(de(this),$.update.call(this,Pt),this[ht]=!1):$[ai].call(this,Pt)),gi?Mi={type:fn.event||Yr,escapeConnect:Pr,batch:Ii}:Mi=Ii[0],this[Ge]=!1,!rr&&this._messageCenter.trigger(Mi.type,Mi)}function le(Pt){for(var rr=this._pendingActions;rr.length;){var Yr=rr.shift();Se.call(this,Yr,Pt)}}function pe(Pt){!Pt&&this.trigger("updated")}function _e(Pt,rr){Pt.on("rendered",function(){rr.trigger("rendered"),Pt.animation.isFinished()&&!rr[ht]&&!rr._scheduler.unfinished&&!rr._pendingActions.length&&rr.trigger("finished")})}J.appendData=function(Pt){if(this._disposed){dr(this.id);return}var rr=Pt.seriesIndex,Yr=this.getModel(),Pr=Yr.getSeriesByIndex(rr);Pr.appendData(Pt),this._scheduler.unfinished=!0},J.on=oe("on",!1),J.off=oe("off",!1),J.one=oe("one",!1);function tt(Pt,rr,Yr,Pr){for(var Mr=rr==="component",fn=Mr?Pt._componentsViews:Pt._chartsViews,wn=Mr?Pt._componentsMap:Pt._chartsMap,ai=Pt._zr,ri=Pt._api,gi=0;gi<fn.length;gi++)fn[gi].__alive=!1;Mr?Yr.eachComponent(function(Qi,ot){Qi!=="series"&&Ii(ot)}):Yr.eachSeries(Ii);function Ii(Qi){var ot="_ec_"+Qi.id+"_"+Qi.type,Ne=wn[ot];if(!Ne){var He=X(Qi.type),Ye=Mr?c.getClass(He.main,He.sub):h.getClass(He.sub);Ne=new Ye,Ne.init(Yr,ri),wn[ot]=Ne,fn.push(Ne),ai.add(Ne.group)}Qi.__viewId=Ne.__id=ot,Ne.__alive=!0,Ne.__model=Qi,Ne.group.__ecComponentInfo={mainType:Qi.mainType,index:Qi.componentIndex},!Mr&&Pr.prepareView(Ne,Qi,Yr,ri)}for(var gi=0;gi<fn.length;){var Mi=fn[gi];Mi.__alive?gi++:(!Mr&&Mi.renderTask.dispose(),ai.remove(Mi.group),Mi.dispose(Yr,ri),fn.splice(gi,1),delete wn[Mi.__id],Mi.__id=Mi.group.__ecComponentInfo=null)}}function gt(Pt){Pt.clearColorPalette(),Pt.eachSeries(function(rr){rr.clearColorPalette()})}function ct(Pt,rr,Yr,Pr){je(Pt,rr,Yr,Pr),M(Pt._chartsViews,function(Mr){Mr.__alive=!1}),Zt(Pt,rr,Yr,Pr),M(Pt._chartsViews,function(Mr){Mr.__alive||Mr.remove(rr,Yr)})}function je(Pt,rr,Yr,Pr,Mr){M(Mr||Pt._componentsViews,function(fn){var wn=fn.__model;fn.render(wn,rr,Yr,Pr),Gt(wn,fn)})}function Zt(Pt,rr,Yr,Pr,Mr){var fn=Pt._scheduler,wn;rr.eachSeries(function(ai){var ri=Pt._chartsMap[ai.__viewId];ri.__alive=!0;var gi=ri.renderTask;fn.updatePayload(gi,Pr),Mr&&Mr.get(ai.uid)&&gi.dirty(),wn|=gi.perform(fn.getPerformArgs(gi)),ri.group.silent=!!ai.get("silent"),Gt(ai,ri),Mt(ai,ri)}),fn.unfinished|=wn,Vt(Pt,rr),C(Pt._zr.dom,rr)}function ut(Pt,rr){M(St,function(Yr){Yr(Pt,rr)})}var Ht=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];J._initEvents=function(){M(Ht,function(Pt){var rr=function(Yr){var Pr=this.getModel(),Mr=Yr.target,fn,wn=Pt==="globalout";if(wn)fn={};else if(Mr&&Mr.dataIndex!=null){var ai=Mr.dataModel||Pr.getSeriesByIndex(Mr.seriesIndex);fn=ai&&ai.getDataParams(Mr.dataIndex,Mr.dataType,Mr)||{}}else Mr&&Mr.eventData&&(fn=A.extend({},Mr.eventData));if(fn){var ri=fn.componentType,gi=fn.componentIndex;(ri==="markLine"||ri==="markPoint"||ri==="markArea")&&(ri="series",gi=fn.seriesIndex);var Ii=ri&&gi!=null&&Pr.getComponent(ri,gi),Mi=Ii&&this[Ii.mainType==="series"?"_chartsMap":"_componentsMap"][Ii.__viewId];fn.event=Yr,fn.type=Pt,this._ecEventProcessor.eventInfo={targetEl:Mr,packedEvent:fn,model:Ii,view:Mi},this.trigger(Pt,fn)}};rr.zrEventfulCallAtLast=!0,this._zr.on(Pt,rr,this)},this),M(Ze,function(Pt,rr){this._messageCenter.on(rr,function(Yr){this.trigger(rr,Yr)},this)},this)},J.isDisposed=function(){return this._disposed},J.clear=function(){if(this._disposed){dr(this.id);return}this.setOption({series:[]},!0)},J.dispose=function(){if(this._disposed){dr(this.id);return}this._disposed=!0,v.setAttribute(this.getDom(),Bt,"");var Pt=this._api,rr=this._model;M(this._componentsViews,function(Yr){Yr.dispose(rr,Pt)}),M(this._chartsViews,function(Yr){Yr.dispose(rr,Pt)}),this._zr.dispose(),delete $t[this.id]},A.mixin(fe,u);function dr(Pt){}function Vt(Pt,rr){var Yr=Pt._zr,Pr=Yr.storage,Mr=0;Pr.traverse(function(fn){Mr++}),Mr>rr.get("hoverLayerThreshold")&&!p.node&&rr.eachSeries(function(fn){if(fn.preventUsingHoverLayer)return;var wn=Pt._chartsMap[fn.__viewId];wn.__alive&&wn.group.traverse(function(ai){ai.useHoverLayer=!0})})}function Mt(Pt,rr){var Yr=Pt.get("blendMode")||null;rr.group.traverse(function(Pr){Pr.isGroup||Pr.style.blend!==Yr&&Pr.setStyle("blend",Yr),Pr.eachPendingDisplayable&&Pr.eachPendingDisplayable(function(Mr){Mr.setStyle("blend",Yr)})})}function Gt(Pt,rr){var Yr=Pt.get("z"),Pr=Pt.get("zlevel");rr.group.traverse(function(Mr){Mr.type!=="group"&&(Yr!=null&&(Mr.z=Yr),Pr!=null&&(Mr.zlevel=Pr))})}function Ve(Pt){var rr=Pt._coordSysMgr;return A.extend(new i(Pt),{getCoordinateSystems:A.bind(rr.getCoordinateSystems,rr),getComponentByElement:function(Yr){for(;Yr;){var Pr=Yr.__ecComponentInfo;if(Pr!=null)return Pt._model.getComponent(Pr.mainType,Pr.index);Yr=Yr.parent}}})}function me(){this.eventInfo}me.prototype={constructor:me,normalizeQuery:function(Pt){var rr={},Yr={},Pr={};if(A.isString(Pt)){var Mr=X(Pt);rr.mainType=Mr.main||null,rr.subType=Mr.sub||null}else{var fn=["Index","Name","Id"],wn={name:1,dataIndex:1,dataType:1};A.each(Pt,function(ai,ri){for(var gi=!1,Ii=0;Ii<fn.length;Ii++){var Mi=fn[Ii],Qi=ri.lastIndexOf(Mi);if(Qi>0&&Qi===ri.length-Mi.length){var ot=ri.slice(0,Qi);ot!=="data"&&(rr.mainType=ot,rr[Mi.toLowerCase()]=ai,gi=!0)}}wn.hasOwnProperty(ri)&&(Yr[ri]=ai,gi=!0),gi||(Pr[ri]=ai)})}return{cptQuery:rr,dataQuery:Yr,otherQuery:Pr}},filter:function(Pt,rr,Yr){var Pr=this.eventInfo;if(!Pr)return!0;var Mr=Pr.targetEl,fn=Pr.packedEvent,wn=Pr.model,ai=Pr.view;if(!wn||!ai)return!0;var ri=rr.cptQuery,gi=rr.dataQuery;return Ii(ri,wn,"mainType")&&Ii(ri,wn,"subType")&&Ii(ri,wn,"index","componentIndex")&&Ii(ri,wn,"name")&&Ii(ri,wn,"id")&&Ii(gi,fn,"name")&&Ii(gi,fn,"dataIndex")&&Ii(gi,fn,"dataType")&&(!ai.filterForExposedEvent||ai.filterForExposedEvent(Pt,rr.otherQuery,Mr,fn));function Ii(Mi,Qi,ot,Ne){return Mi[ot]==null||Qi[Ne||ot]===Mi[ot]}},afterTrigger:function(){this.eventInfo=null}};var te={},Ze={},Xe=[],ue=[],St=[],Qt=[],dt={},Jt={},$t={},tn={},kt=new Date-0,tr=new Date-0,Bt="_echarts_instance_";function ft(Pt){var rr=0,Yr=1,Pr=2,Mr="__connectUpdateStatus";function fn(wn,ai){for(var ri=0;ri<wn.length;ri++){var gi=wn[ri];gi[Mr]=ai}}M(Ze,function(wn,ai){Pt._messageCenter.on(ai,function(ri){if(tn[Pt.group]&&Pt[Mr]!==rr){if(ri&&ri.escapeConnect)return;var gi=Pt.makeActionFromEvent(ri),Ii=[];M($t,function(Mi){Mi!==Pt&&Mi.group===Pt.group&&Ii.push(Mi)}),fn(Ii,rr),M(Ii,function(Mi){Mi[Mr]!==Yr&&Mi.dispatchAction(gi)}),fn(Ii,Pr)}})})}function it(Pt,rr,Yr){var Pr=vi(Pt);if(Pr)return Pr;var Mr=new fe(Pt,rr,Yr);return Mr.id="ec_"+kt++,$t[Mr.id]=Mr,v.setAttribute(Pt,Bt,Mr.id),ft(Mr),Mr}function Or(Pt){if(A.isArray(Pt)){var rr=Pt;Pt=null,M(rr,function(Yr){Yr.group!=null&&(Pt=Yr.group)}),Pt=Pt||"g_"+tr++,M(rr,function(Yr){Yr.group=Pt})}return tn[Pt]=!0,Pt}function an(Pt){tn[Pt]=!1}var En=an;function Bn(Pt){typeof Pt=="string"?Pt=$t[Pt]:Pt instanceof fe||(Pt=vi(Pt)),Pt instanceof fe&&!Pt.isDisposed()&&Pt.dispose()}function vi(Pt){return $t[v.getAttribute(Pt,Bt)]}function Ln(Pt){return $t[Pt]}function Mn(Pt,rr){dt[Pt]=rr}function Xt(Pt){ue.push(Pt)}function wt(Pt,rr){Nr(Xe,Pt,rr,z)}function De(Pt){St.push(Pt)}function Re(Pt,rr,Yr){typeof rr=="function"&&(Yr=rr,rr="");var Pr=P(Pt)?Pt.type:[Pt,Pt={event:rr}][0];Pt.event=(Pt.event||Pr).toLowerCase(),rr=Pt.event,k(Fe.test(Pr)&&Fe.test(rr)),te[Pr]||(te[Pr]={action:Yr,actionInfo:Pt}),Ze[rr]=Pr}function Me(Pt,rr){t.register(Pt,rr)}function nt(Pt){var rr=t.get(Pt);if(rr)return rr.getDimensionsInfo?rr.getDimensionsInfo():rr.dimensions.slice()}function yt(Pt,rr){Nr(Qt,Pt,rr,ee,"layout")}function sr(Pt,rr){Nr(Qt,Pt,rr,he,"visual")}function Nr(Pt,rr,Yr,Pr,Mr){(U(rr)||P(rr))&&(Yr=rr,rr=Pr);var fn=T.wrapStageHandler(Yr,Mr);return fn.__prio=rr,fn.__raw=Yr,Pt.push(fn),fn}function mn(Pt,rr){Jt[Pt]=rr}function Yn(Pt){return n.extend(Pt)}function Jn(Pt){return c.extend(Pt)}function ur(Pt){return o.extend(Pt)}function Tt(Pt){return h.extend(Pt)}function Ct(Pt){A.$override("createCanvas",Pt)}function Ar(Pt,rr,Yr){I.registerMap(Pt,rr,Yr)}function er(Pt){var rr=I.retrieveMap(Pt);return rr&&rr[0]&&{geoJson:rr[0].geoJSON,specialAreas:rr[0].specialAreas}}sr(ye,E),Xt(e),wt(Q,l),mn("default",_),Re({type:"highlight",event:"highlight",update:"highlight"},A.noop),Re({type:"downplay",event:"downplay",update:"downplay"},A.noop),Mn("light",w),Mn("dark",O);var Ft={};L.version=F,L.dependencies=j,L.PRIORITY=$e,L.init=it,L.connect=Or,L.disConnect=an,L.disconnect=En,L.dispose=Bn,L.getInstanceByDom=vi,L.getInstanceById=Ln,L.registerTheme=Mn,L.registerPreprocessor=Xt,L.registerProcessor=wt,L.registerPostUpdate=De,L.registerAction=Re,L.registerCoordinateSystem=Me,L.getCoordinateSystemDimensions=nt,L.registerLayout=yt,L.registerVisual=sr,L.registerLoading=mn,L.extendComponentModel=Yn,L.extendComponentView=Jn,L.extendSeriesModel=ur,L.extendChartView=Tt,L.setCanvasCreator=Ct,L.registerMap=Ar,L.getMap=er,L.dataTool=Ft;var ir=r("txkQ");(function(){for(var Pt in ir)ir.hasOwnProperty(Pt)&&(L[Pt]=ir[Pt])})()},Pw59:function(R,L,r){"use strict";var y=r("q1tI"),f=r.n(y),x=Object(y.createContext)({});L.a=x},Q7if:function(R,L,r){var y=r("JEkh"),f=y.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});R.exports=f},Q9mQ:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("UADf"),A=r.n(x)},QBsz:function(R,L){var r=typeof Float32Array=="undefined"?Array:Float32Array;function y(T,w){var O=new r(2);return T==null&&(T=0),w==null&&(w=0),O[0]=T,O[1]=w,O}function f(T,w){return T[0]=w[0],T[1]=w[1],T}function x(T){var w=new r(2);return w[0]=T[0],w[1]=T[1],w}function A(T,w,O){return T[0]=w,T[1]=O,T}function m(T,w,O){return T[0]=w[0]+O[0],T[1]=w[1]+O[1],T}function p(T,w,O,I){return T[0]=w[0]+O[0]*I,T[1]=w[1]+O[1]*I,T}function d(T,w,O){return T[0]=w[0]-O[0],T[1]=w[1]-O[1],T}function u(T){return Math.sqrt(i(T))}var a=u;function i(T){return T[0]*T[0]+T[1]*T[1]}var t=i;function s(T,w,O){return T[0]=w[0]*O[0],T[1]=w[1]*O[1],T}function e(T,w,O){return T[0]=w[0]/O[0],T[1]=w[1]/O[1],T}function l(T,w){return T[0]*w[0]+T[1]*w[1]}function n(T,w,O){return T[0]=w[0]*O,T[1]=w[1]*O,T}function o(T,w){var O=u(w);return O===0?(T[0]=0,T[1]=0):(T[0]=w[0]/O,T[1]=w[1]/O),T}function c(T,w){return Math.sqrt((T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1]))}var h=c;function g(T,w){return(T[0]-w[0])*(T[0]-w[0])+(T[1]-w[1])*(T[1]-w[1])}var v=g;function b(T,w){return T[0]=-w[0],T[1]=-w[1],T}function S(T,w,O,I){return T[0]=w[0]+I*(O[0]-w[0]),T[1]=w[1]+I*(O[1]-w[1]),T}function E(T,w,O){var I=w[0],k=w[1];return T[0]=O[0]*I+O[2]*k+O[4],T[1]=O[1]*I+O[3]*k+O[5],T}function C(T,w,O){return T[0]=Math.min(w[0],O[0]),T[1]=Math.min(w[1],O[1]),T}function _(T,w,O){return T[0]=Math.max(w[0],O[0]),T[1]=Math.max(w[1],O[1]),T}L.create=y,L.copy=f,L.clone=x,L.set=A,L.add=m,L.scaleAndAdd=p,L.sub=d,L.len=u,L.length=a,L.lenSquare=i,L.lengthSquare=t,L.mul=s,L.div=e,L.dot=l,L.scale=n,L.normalize=o,L.distance=c,L.dist=h,L.distanceSquare=g,L.distSquare=v,L.negate=b,L.lerp=S,L.applyTransform=E,L.min=C,L.max=_},QDgn:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("r9UT"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"QO+J":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.createSensor=void 0;var y=x(r("NohK")),f=r("24YM");function x(m){return m&&m.__esModule?m:{default:m}}var A=function(p,d){var u=void 0,a=[],i=function(){getComputedStyle(p).position==="static"&&(p.style.position="relative");var o=document.createElement("object");return o.onload=function(){o.contentDocument.defaultView.addEventListener("resize",t),t()},o.style.display="block",o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.height="100%",o.style.width="100%",o.style.overflow="hidden",o.style.pointerEvents="none",o.style.zIndex="-1",o.style.opacity="0",o.setAttribute("class",f.SensorClassName),o.setAttribute("tabindex",f.SensorTabIndex),o.type="text/html",p.appendChild(o),o.data="about:blank",o},t=(0,y.default)(function(){a.forEach(function(n){n(p)})}),s=function(o){u||(u=i()),a.indexOf(o)===-1&&a.push(o)},e=function(){u&&u.parentNode&&(u.contentDocument&&u.contentDocument.defaultView.removeEventListener("resize",t),u.parentNode.removeChild(u),p.removeAttribute(f.SizeSensorId),u=void 0,a=[],d&&d())},l=function(o){var c=a.indexOf(o);c!==-1&&a.splice(c,1),a.length===0&&u&&e()};return{element:p,bind:s,destroy:e,unbind:l}};L.createSensor=A},"QQZ/":function(R,L,r){var y=r("Sq3C"),f=r("Z1HP"),x=r("Sxd8"),A=r("dt0z");function m(p,d,u){p=A(p),d=x(d);var a=d?f(p):0;return d&&a<d?y(d-a,u)+p:p}R.exports=m},QUw5:function(R,L,r){var y=r("OlYY"),f=y.extend({type:"dataZoom.select"});R.exports=f},QV2g:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=y;function y(){for(var A,m=[],p=0;p<256;p++){A=p;for(var d=0;d<8;d++)A=A&1?3988292384^A>>>1:A>>>1;m[p]=A}return m}var f=y();function x(A,m,p,d){var u=f,a=d+p;A^=-1;for(var i=d;i<a;i++)A=A>>>8^u[(A^m[i])&255];return A^-1}},QbM5:function(R,L,r){},Qe9p:function(R,L,r){var y=r("1RvN"),f={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function x(w){return w=Math.round(w),w<0?0:w>255?255:w}function A(w){return w=Math.round(w),w<0?0:w>360?360:w}function m(w){return w<0?0:w>1?1:w}function p(w){return w.length&&w.charAt(w.length-1)==="%"?x(parseFloat(w)/100*255):x(parseInt(w,10))}function d(w){return w.length&&w.charAt(w.length-1)==="%"?m(parseFloat(w)/100):m(parseFloat(w))}function u(w,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(O-w)*I*6:I*2<1?O:I*3<2?w+(O-w)*(2/3-I)*6:w}function a(w,O,I){return w+(O-w)*I}function i(w,O,I,k,M){return w[0]=O,w[1]=I,w[2]=k,w[3]=M,w}function t(w,O){return w[0]=O[0],w[1]=O[1],w[2]=O[2],w[3]=O[3],w}var s=new y(20),e=null;function l(w,O){e&&t(e,O),e=s.put(w,e||O.slice())}function n(w,O){if(!w)return;O=O||[];var I=s.get(w);if(I)return t(O,I);w=w+"";var k=w.replace(/ /g,"").toLowerCase();if(k in f)return t(O,f[k]),l(w,O),O;if(k.charAt(0)==="#"){if(k.length===4){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=4095)){i(O,0,0,0,1);return}return i(O,(M&3840)>>4|(M&3840)>>8,M&240|(M&240)>>4,M&15|(M&15)<<4,1),l(w,O),O}else if(k.length===7){var M=parseInt(k.substr(1),16);if(!(M>=0&&M<=16777215)){i(O,0,0,0,1);return}return i(O,(M&16711680)>>16,(M&65280)>>8,M&255,1),l(w,O),O}return}var U=k.indexOf("("),P=k.indexOf(")");if(U!==-1&&P+1===k.length){var X=k.substr(0,U),F=k.substr(U+1,P-(U+1)).split(","),j=1;switch(X){case"rgba":if(F.length!==4){i(O,0,0,0,1);return}j=d(F.pop());case"rgb":if(F.length!==3){i(O,0,0,0,1);return}return i(O,p(F[0]),p(F[1]),p(F[2]),j),l(w,O),O;case"hsla":if(F.length!==4){i(O,0,0,0,1);return}return F[3]=d(F[3]),o(F,O),l(w,O),O;case"hsl":if(F.length!==3){i(O,0,0,0,1);return}return o(F,O),l(w,O),O;default:return}}i(O,0,0,0,1);return}function o(w,O){var I=(parseFloat(w[0])%360+360)%360/360,k=d(w[1]),M=d(w[2]),U=M<=.5?M*(k+1):M+k-M*k,P=M*2-U;return O=O||[],i(O,x(u(P,U,I+1/3)*255),x(u(P,U,I)*255),x(u(P,U,I-1/3)*255),1),w.length===4&&(O[3]=w[3]),O}function c(w){if(!w)return;var O=w[0]/255,I=w[1]/255,k=w[2]/255,M=Math.min(O,I,k),U=Math.max(O,I,k),P=U-M,X=(U+M)/2,F,j;if(P===0)F=0,j=0;else{X<.5?j=P/(U+M):j=P/(2-U-M);var K=((U-O)/6+P/2)/P,z=((U-I)/6+P/2)/P,V=((U-k)/6+P/2)/P;O===U?F=V-z:I===U?F=1/3+K-V:k===U&&(F=2/3+z-K),F<0&&(F+=1),F>1&&(F-=1)}var Q=[F*360,j,X];return w[3]!=null&&Q.push(w[3]),Q}function h(w,O){var I=n(w);if(I){for(var k=0;k<3;k++)O<0?I[k]=I[k]*(1-O)|0:I[k]=(255-I[k])*O+I[k]|0,I[k]>255?I[k]=255:w[k]<0&&(I[k]=0);return T(I,I.length===4?"rgba":"rgb")}}function g(w){var O=n(w);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function v(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;I=I||[];var k=w*(O.length-1),M=Math.floor(k),U=Math.ceil(k),P=O[M],X=O[U],F=k-M;return I[0]=x(a(P[0],X[0],F)),I[1]=x(a(P[1],X[1],F)),I[2]=x(a(P[2],X[2],F)),I[3]=m(a(P[3],X[3],F)),I}var b=v;function S(w,O,I){if(!(O&&O.length)||!(w>=0&&w<=1))return;var k=w*(O.length-1),M=Math.floor(k),U=Math.ceil(k),P=n(O[M]),X=n(O[U]),F=k-M,j=T([x(a(P[0],X[0],F)),x(a(P[1],X[1],F)),x(a(P[2],X[2],F)),m(a(P[3],X[3],F))],"rgba");return I?{color:j,leftIndex:M,rightIndex:U,value:k}:j}var E=S;function C(w,O,I,k){if(w=n(w),w)return w=c(w),O!=null&&(w[0]=A(O)),I!=null&&(w[1]=d(I)),k!=null&&(w[2]=d(k)),T(o(w),"rgba")}function _(w,O){if(w=n(w),w&&O!=null)return w[3]=m(O),T(w,"rgba")}function T(w,O){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+w[3]),O+"("+I+")"}L.parse=n,L.lift=h,L.toHex=g,L.fastLerp=v,L.fastMapToColor=b,L.lerp=S,L.mapToColor=E,L.modifyHSL=C,L.modifyAlpha=_,L.stringify=T},Qi1f:function(R,L,r){"use strict";r.d(L,"g",function(){return T}),r.d(L,"c",function(){return w}),r.d(L,"a",function(){return I}),r.d(L,"b",function(){return k}),r.d(L,"d",function(){return M}),r.d(L,"e",function(){return U}),r.d(L,"f",function(){return X});var y=r("VTBJ"),f=r("U8pU"),x=r("AJpP"),A=r("q1tI"),m=r.n(A),p=r("Kwbf"),d=r("MNnm"),u=r("l4aY"),a="data-rc-order",i="data-rc-priority",t="rc-util-key",s=new Map;function e(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},j=F.mark;return j?j.startsWith("data-")?j:"data-".concat(j):t}function l(F){if(F.attachTo)return F.attachTo;var j=document.querySelector("head");return j||document.body}function n(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function o(F){return Array.from((s.get(F)||F).children).filter(function(j){return j.tagName==="STYLE"})}function c(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var K=j.csp,z=j.prepend,V=j.priority,Q=V===void 0?0:V,G=n(z),ee=G==="prependQueue",se=document.createElement("style");se.setAttribute(a,G),ee&&Q&&se.setAttribute(i,"".concat(Q)),K!=null&&K.nonce&&(se.nonce=K==null?void 0:K.nonce),se.innerHTML=F;var ye=l(j),he=ye.firstChild;if(z){if(ee){var ke=o(ye).filter(function(Pe){if(!["prepend","prependQueue"].includes(Pe.getAttribute(a)))return!1;var Ue=Number(Pe.getAttribute(i)||0);return Q>=Ue});if(ke.length)return ye.insertBefore(se,ke[ke.length-1].nextSibling),se}ye.insertBefore(se,he)}else ye.appendChild(se);return se}function h(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=l(j);return o(K).find(function(z){return z.getAttribute(e(j))===F})}function g(F){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=h(F,j);if(K){var z=l(j);z.removeChild(K)}}function v(F,j){var K=s.get(F);if(!K||!Object(u.a)(document,K)){var z=c("",j),V=z.parentNode;s.set(F,V),F.removeChild(z)}}function b(){s.clear()}function S(F,j){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=l(K);v(z,K);var V=h(j,K);if(V){var Q,G;if((Q=K.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=K.csp)===null||G===void 0?void 0:G.nonce)){var ee;V.nonce=(ee=K.csp)===null||ee===void 0?void 0:ee.nonce}return V.innerHTML!==F&&(V.innerHTML=F),V}var se=c(F,K);return se.setAttribute(e(K),j),se}var E=r("Pw59"),C=r("u6S6"),_=r.n(C);function T(F,j){Object(p.a)(F,"[@ant-design/icons] ".concat(j))}function w(F){return Object(f.a)(F)==="object"&&typeof F.name=="string"&&typeof F.theme=="string"&&(Object(f.a)(F.icon)==="object"||typeof F.icon=="function")}function O(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(F).reduce(function(j,K){var z=F[K];switch(K){case"class":j.className=z,delete j.class;break;default:delete j[K],j[_()(K)]=z}return j},{})}function I(F,j,K){return K?m.a.createElement(F.tag,Object(y.a)(Object(y.a)({key:j},O(F.attrs)),K),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))})):m.a.createElement(F.tag,Object(y.a)({key:j},O(F.attrs)),(F.children||[]).map(function(z,V){return I(z,"".concat(j,"-").concat(F.tag,"-").concat(V))}))}function k(F){return Object(x.generate)(F)[0]}function M(F){return F?Array.isArray(F)?F:[F]:[]}var U={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},P=`
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,X=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,K=Object(A.useContext)(E.a),z=K.csp;Object(A.useEffect)(function(){S(j,"@ant-design-icons",{prepend:!0,csp:z})},[])}},QkVE:function(R,L,r){var y=r("EpBk");function f(x,A){var m=x.__data__;return y(A)?m[typeof A=="string"?"string":"hash"]:m.map}R.exports=f},QoRX:function(R,L){function r(y,f){for(var x=-1,A=y==null?0:y.length;++x<A;)if(f(y[x],x,y))return!0;return!1}R.exports=r},QqLw:function(R,L,r){var y=r("tadb"),f=r("ebwN"),x=r("HOxn"),A=r("yGk4"),m=r("Of+w"),p=r("NykK"),d=r("3Fdi"),u="[object Map]",a="[object Object]",i="[object Promise]",t="[object Set]",s="[object WeakMap]",e="[object DataView]",l=d(y),n=d(f),o=d(x),c=d(A),h=d(m),g=p;(y&&g(new y(new ArrayBuffer(1)))!=e||f&&g(new f)!=u||x&&g(x.resolve())!=i||A&&g(new A)!=t||m&&g(new m)!=s)&&(g=function(v){var b=p(v),S=b==a?v.constructor:void 0,E=S?d(S):"";if(E)switch(E){case l:return e;case n:return u;case o:return i;case c:return t;case h:return s}return b}),R.exports=g},Qs9O:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};L.default=y},QuXc:function(R,L){var r=function(x){this.colorStops=x||[]};r.prototype={constructor:r,addColorStop:function(x,A){this.colorStops.push({offset:x,color:A})}};var y=r;R.exports=y},Qvb6:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("ItGF"),A=r("B9fm"),m=r("gvm7"),p=r("7aKB"),d=r("OELB"),u=r("IwbS"),a=r("Ez2D"),i=r("+TT/"),t=r("Qxkt"),s=r("F9bG"),e=r("aX7z"),l=r("/y7N"),n=r("4NO4"),o=n.getTooltipRenderMode,c=f.bind,h=f.each,g=d.parsePercent,v=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(O,I){if(x.node)return;var k=O.getComponent("tooltip"),M=k.get("renderMode");this._renderMode=o(M);var U;this._renderMode==="html"?(U=new A(I.getDom(),I,{appendToBody:k.get("appendToBody",!0)}),this._newLine="<br/>"):(U=new m(I),this._newLine=`
`),this._tooltipContent=U},render:function(O,I,k){if(x.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=k,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var M=this._tooltipContent;M.update(),M.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");s.register("itemTooltip",this._api,c(function(k,M,U){I!=="none"&&(I.indexOf(k)>=0?this._tryShow(M,U):k==="leave"&&this._hide(U))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,k=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var M=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!k.isDisposed()&&M.manuallyShowTip(O,I,k,{x:M._lastX,y:M._lastY})})}},manuallyShowTip:function(O,I,k,M){if(M.from===this.uid||x.node)return;var U=E(M,k);this._ticket="";var P=M.dataByCoordSys;if(M.tooltip&&M.x!=null&&M.y!=null){var X=v;X.position=[M.x,M.y],X.update(),X.tooltip=M.tooltip,this._tryShow({offsetX:M.x,offsetY:M.y,target:X},U)}else if(P)this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,dataByCoordSys:M.dataByCoordSys,tooltipOption:M.tooltipOption},U);else if(M.seriesIndex!=null){if(this._manuallyAxisShowTip(O,I,k,M))return;var F=a(M,I),j=F.point[0],K=F.point[1];j!=null&&K!=null&&this._tryShow({offsetX:j,offsetY:K,position:M.position,target:F.el},U)}else M.x!=null&&M.y!=null&&(k.dispatchAction({type:"updateAxisPointer",x:M.x,y:M.y}),this._tryShow({offsetX:M.x,offsetY:M.y,position:M.position,target:k.getZr().findHover(M.x,M.y).target},U))},manuallyHideTip:function(O,I,k,M){var U=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&U.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,M.from!==this.uid&&this._hide(E(M,k))},_manuallyAxisShowTip:function(O,I,k,M){var U=M.seriesIndex,P=M.dataIndex,X=I.getComponent("axisPointer").coordSysAxesInfo;if(U==null||P==null||X==null)return;var F=I.getSeriesByIndex(U);if(!F)return;var j=F.getData(),O=S([j.getItemModel(P),F,(F.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(k.dispatchAction({type:"updateAxisPointer",seriesIndex:U,dataIndex:P,position:M.position}),!0)},_tryShow:function(O,I){var k=O.target,M=this._tooltipModel;if(!M)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var U=O.dataByCoordSys;U&&U.length?this._showAxisTooltip(U,O):k&&k.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,k,I)):k&&k.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,k,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var k=O.get("showDelay");I=f.bind(I,this),clearTimeout(this._showTimout),k>0?this._showTimout=setTimeout(I,k):I()},_showAxisTooltip:function(O,I){var k=this._ecModel,M=this._tooltipModel,U=[I.offsetX,I.offsetY],P=[],X=[],F=S([I.tooltipOption,M]),j=this._renderMode,K=this._newLine,z={};h(O,function(Q){h(Q.dataByAxis,function(G){var ee=k.getComponent(G.axisDim+"Axis",G.axisIndex),se=G.value,ye=[];if(!ee||se==null)return;var he=l.getValueLabel(se,ee.axis,k,G.seriesDataIndices,G.valueLabelOpt);f.each(G.seriesDataIndices,function(Pe){var Ue=k.getSeriesByIndex(Pe.seriesIndex),$e=Pe.dataIndexInside,Ge=Ue&&Ue.getDataParams($e);if(Ge.axisDim=G.axisDim,Ge.axisIndex=G.axisIndex,Ge.axisType=G.axisType,Ge.axisId=G.axisId,Ge.axisValue=e.getAxisRawValue(ee.axis,se),Ge.axisValueLabel=he,Ge){X.push(Ge);var ht=Ue.formatTooltip($e,!0,null,j),Fe;if(f.isObject(ht)){Fe=ht.html;var oe=ht.markers;f.merge(z,oe)}else Fe=ht;ye.push(Fe)}});var ke=he;j!=="html"?P.push(ye.join(K)):P.push((ke?p.encodeHTML(ke)+K:"")+ye.join(K))})},this),P.reverse(),P=P.join(this._newLine+this._newLine);var V=I.position;this._showOrMove(F,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(F,V,U[0],U[1],this._tooltipContent,X):this._showTooltipContent(F,P,X,Math.random(),U[0],U[1],V,void 0,z)})},_showSeriesItemTooltip:function(O,I,k){var M=this._ecModel,U=I.seriesIndex,P=M.getSeriesByIndex(U),X=I.dataModel||P,F=I.dataIndex,j=I.dataType,K=X.getData(j),z=S([K.getItemModel(F),X,P&&(P.coordinateSystem||{}).model,this._tooltipModel]),V=z.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(F,j),G=X.formatTooltip(F,!1,j,this._renderMode),ee,se;f.isObject(G)?(ee=G.html,se=G.markers):(ee=G,se=null);var ye="item_"+X.name+"_"+F;this._showOrMove(z,function(){this._showTooltipContent(z,ee,Q,ye,O.offsetX,O.offsetY,O.position,O.target,se)}),k({type:"showTip",dataIndexInside:F,dataIndex:K.getRawIndex(F),seriesIndex:U,from:this.uid})},_showComponentItemTooltip:function(O,I,k){var M=I.tooltip;if(typeof M=="string"){var U=M;M={content:U,formatter:U}}var P=new t(M,this._tooltipModel,this._ecModel),X=P.get("content"),F=Math.random();this._showOrMove(P,function(){this._showTooltipContent(P,X,P.get("formatterParams")||{},F,O.offsetX,O.offsetY,O.position,I)}),k({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,k,M,U,P,X,F,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var K=this._tooltipContent,z=O.get("formatter");X=X||O.get("position");var V=I;if(z&&typeof z=="string")V=p.formatTpl(z,k,!0);else if(typeof z=="function"){var Q=c(function(G,ee){G===this._ticket&&(K.setContent(ee,j,O),this._updatePosition(O,X,U,P,K,k,F))},this);this._ticket=M,V=z(k,M,Q)}K.setContent(V,j,O),K.show(O),this._updatePosition(O,X,U,P,K,k,F)},_updatePosition:function(O,I,k,M,U,P,X){var F=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var K=U.getSize(),z=O.get("align"),V=O.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof I=="function"&&(I=I([k,M],P,U.el,Q,{viewSize:[F,j],contentSize:K.slice()})),f.isArray(I))k=g(I[0],F),M=g(I[1],j);else if(f.isObject(I)){I.width=K[0],I.height=K[1];var G=i.getLayoutRect(I,{width:F,height:j});k=G.x,M=G.y,z=null,V=null}else if(typeof I=="string"&&X){var ee=T(I,Q,K);k=ee[0],M=ee[1]}else{var ee=C(k,M,U,F,j,z?null:20,V?null:20);k=ee[0],M=ee[1]}if(z&&(k-=w(z)?K[0]/2:z==="right"?K[0]:0),V&&(M-=w(V)?K[1]/2:V==="bottom"?K[1]:0),O.get("confine")){var ee=_(k,M,U,F,j);k=ee[0],M=ee[1]}U.moveTo(k,M)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,k=!!I&&I.length===O.length;return k&&h(I,function(M,U){var P=M.dataByAxis||{},X=O[U]||{},F=X.dataByAxis||[];k&=P.length===F.length,k&&h(P,function(j,K){var z=F[K]||{},V=j.seriesDataIndices||[],Q=z.seriesDataIndices||[];k&=j.value===z.value&&j.axisType===z.axisType&&j.axisId===z.axisId&&V.length===Q.length,k&&h(V,function(G,ee){var se=Q[ee];k&=G.seriesIndex===se.seriesIndex&&G.dataIndex===se.dataIndex})})}),this._lastDataByCoordSys=O,!!k},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(x.node)return;this._tooltipContent.dispose(),s.unregister("itemTooltip",I)}});function S(O){for(var I=O.pop();O.length;){var k=O.pop();k&&(t.isInstance(k)&&(k=k.get("tooltip",!0)),typeof k=="string"&&(k={formatter:k}),I=new t(k,I,I.ecModel))}return I}function E(O,I){return O.dispatchAction||f.bind(I.dispatchAction,I)}function C(O,I,k,M,U,P,X){var F=k.getOuterSize(),j=F.width,K=F.height;return P!=null&&(O+j+P>M?O-=j+P:O+=P),X!=null&&(I+K+X>U?I-=K+X:I+=X),[O,I]}function _(O,I,k,M,U){var P=k.getOuterSize(),X=P.width,F=P.height;return O=Math.min(O+X,M)-X,I=Math.min(I+F,U)-F,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function T(O,I,k){var M=k[0],U=k[1],P=5,X=0,F=0,j=I.width,K=I.height;switch(O){case"inside":X=I.x+j/2-M/2,F=I.y+K/2-U/2;break;case"top":X=I.x+j/2-M/2,F=I.y-U-P;break;case"bottom":X=I.x+j/2-M/2,F=I.y+K+P;break;case"left":X=I.x-M-P,F=I.y+K/2-U/2;break;case"right":X=I.x+j+P,F=I.y+K/2-U/2}return[X,F]}function w(O){return O==="center"||O==="middle"}R.exports=b},QxHS:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("I9IY"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},Qxkt:function(R,L,r){var y=r("bYtY"),f=r("ItGF"),x=r("4NO4"),A=x.makeInner,m=r("Yl7c"),p=m.enableClassExtend,d=m.enableClassCheck,u=r("OQFs"),a=r("m9t5"),i=r("/iHx"),t=r("VR9l"),s=y.mixin,e=A();function l(h,g,v){this.parentModel=g,this.ecModel=v,this.option=h}l.prototype={constructor:l,init:null,mergeOption:function(h){y.merge(this.option,h,!0)},get:function(h,g){return h==null?this.option:n(this.option,this.parsePath(h),!g&&o(this,h))},getShallow:function(h,g){var v=this.option,b=v==null?v:v[h],S=!g&&o(this,h);return b==null&&S&&(b=S.getShallow(h)),b},getModel:function(h,g){var v=h==null?this.option:n(this.option,h=this.parsePath(h)),b;return g=g||(b=o(this,h))&&b.getModel(h),new l(v,g,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var h=this.constructor;return new h(y.clone(this.option))},setReadOnly:function(h){},parsePath:function(h){return typeof h=="string"&&(h=h.split(".")),h},customizeGetParent:function(h){e(this).getParent=h},isAnimationEnabled:function(){if(!f.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function n(h,g,v){for(var b=0;b<g.length;b++){if(!g[b])continue;if(h=h&&typeof h=="object"?h[g[b]]:null,h==null)break}return h==null&&v&&(h=v.get(g)),h}function o(h,g){var v=e(h).getParent;return v?v.call(h,g):h.parentModel}p(l),d(l),s(l,u),s(l,a),s(l,i),s(l,t);var c=l;R.exports=c},QyFq:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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:"filled"};L.default=y},QzjZ:function(R,L,r){var y=r("S/Yl"),f=r("IDmD");function x(A,m){var p=[];return A.eachComponent("singleAxis",function(d,u){var a=new y(d,A,m);a.name="single_"+u,a.resize(d,m),d.coordinateSystem=a,p.push(a)}),A.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var u=A.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=u&&u.coordinateSystem}}),p}f.register("single",{create:x,dimensions:y.prototype.dimensions})},R4DB:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("QyFq")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CaretDownFilled";var i=A.forwardRef(a);L.default=i},R4Th:function(R,L,r){var y=r("ProS"),f=r("9wZj"),x=r("yO87"),A=r("Fofx"),m=r("h8O9"),p=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new f(x)},render:function(d,u,a){var i=d.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},updateTransform:function(d,u,a){var i=d.getData();this.group.dirty();var t=m().reset(d);t.progress&&t.progress({start:0,end:i.count()},i),this._symbolDraw.updateLayout(i)},_updateGroupTransform:function(d){var u=d.coordinateSystem;u&&u.getRoamTransform&&(this.group.transform=A.clone(u.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,u){this._symbolDraw&&this._symbolDraw.remove(u)},dispose:function(){}});R.exports=p},R9oj:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("pwpV"),A=r.n(x)},RBEP:function(R,L,r){for(var y=r("ProS"),f=r("VaxA"),x=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<A.length;m++)y.registerAction({type:A[m],update:"updateView"},x);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"treemap",query:p},u);function u(a,i){var t=["treemapZoomToNode","treemapRootToNode"],s=f.retrieveTargetInfo(p,t,a);if(s){var e=a.getViewRoot();e&&(p.direction=f.aboveViewRoot(e,s.node)?"rollUp":"drillDown"),a.resetViewRoot(s.node)}}})},RCxd:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="ExclamationCircleOutlined";var d=L.a=f.forwardRef(p)},RDYZ:function(R,L,r){var y=r("dMvE");function f(A){this._target=A.target,this._life=A.life||1e3,this._delay=A.delay||0,this._initialized=!1,this.loop=A.loop==null?!1:A.loop,this.gap=A.gap||0,this.easing=A.easing||"Linear",this.onframe=A.onframe,this.ondestroy=A.ondestroy,this.onrestart=A.onrestart,this._pausedTime=0,this._paused=!1}f.prototype={constructor:f,step:function(m,p){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=p;return}var d=(m-this._startTime-this._pausedTime)/this._life;if(d<0)return;d=Math.min(d,1);var u=this.easing,a=typeof u=="string"?y[u]:u,i=typeof a=="function"?a(d):d;return this.fire("frame",i),d===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var p=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-p+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,p){m="on"+m,this[m]&&this[m](this._target,p)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var x=f;R.exports=x},RELg:function(R,L,r){var y=r("MFOe"),f=y.Global;R.exports={name:"oldIE-userDataStorage",write:d,read:u,each:a,remove:i,clearAll:t};var x="storejs",A=f.document,m=l(),p=(f.navigator?f.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(n,o){if(p)return;var c=e(n);m(function(h){h.setAttribute(c,o),h.save(x)})}function u(n){if(p)return;var o=e(n),c=null;return m(function(h){c=h.getAttribute(o)}),c}function a(n){m(function(o){for(var c=o.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var g=c[h];n(o.getAttribute(g.name),g.name)}})}function i(n){var o=e(n);m(function(c){c.removeAttribute(o),c.save(x)})}function t(){m(function(n){var o=n.XMLDocument.documentElement.attributes;n.load(x);for(var c=o.length-1;c>=0;c--)n.removeAttribute(o[c].name);n.save(x)})}var s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(n){return n.replace(/^\d/,"___$&").replace(s,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var n="script",o,c,h;try{c=new ActiveXObject("htmlfile"),c.open(),c.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),c.close(),o=c.w.frames[0].document,h=o.createElement("div")}catch(g){h=A.createElement("div"),o=A.body}return function(g){var v=[].slice.call(arguments,0);v.unshift(h),o.appendChild(h),h.addBehavior("#default#userData"),h.load(x),g.apply(this,v),o.removeChild(h);return}}},RPvy:function(R,L,r){var y=r("ProS"),f=r("VaxA"),x="sunburstRootToNode";y.registerAction({type:x,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(a,i){var t=f.retrieveTargetInfo(p,[x],a);if(t){var s=a.getViewRoot();s&&(p.direction=f.aboveViewRoot(s,t.node)?"rollUp":"drillDown"),a.resetViewRoot(t.node)}}});var A="sunburstHighlight";y.registerAction({type:A,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(a,i){var t=f.retrieveTargetInfo(p,[A],a);t&&(p.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(p,d){d.eachComponent({mainType:"series",subType:"sunburst",query:p},u);function u(a,i){p.unhighlight=!0}})},RSch:function(R,L,r){var y=r("IwbS"),f=r("bYtY");function x(p,d,u){y.Group.call(this),this._createPolyline(p,d,u)}var A=x.prototype;A._createPolyline=function(p,d,u){var a=p.getItemLayout(d),i=new y.Polyline({shape:{points:a}});this.add(i),this._updateCommonStl(p,d,u)},A.updateData=function(p,d,u){var a=p.hostModel,i=this.childAt(0),t={shape:{points:p.getItemLayout(d)}};y.updateProps(i,t,a,d),this._updateCommonStl(p,d,u)},A._updateCommonStl=function(p,d,u){var a=this.childAt(0),i=p.getItemModel(d),t=p.getItemVisual(d,"color"),s=u&&u.lineStyle,e=u&&u.hoverLineStyle;(!u||p.hasItemOption)&&(s=i.getModel("lineStyle").getLineStyle(),e=i.getModel("emphasis.lineStyle").getLineStyle()),a.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:t},s)),a.hoverStyle=e,y.setHoverStyle(this)},A.updateLayout=function(p,d){var u=this.childAt(0);u.setShape("points",p.getItemLayout(d))},f.inherits(x,y.Group);var m=x;R.exports=m},RXMa:function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,m){var p=m.cx,d=m.cy,u=Math.PI*2;A.moveTo(p+m.r,d),A.arc(p,d,m.r,0,u,!1),A.moveTo(p+m.r0,d),A.arc(p,d,m.r0,0,u,!0)}});R.exports=f},RlCK:function(R,L,r){var y=r("ProS"),f=r("bYtY");function x(A,m,p){var d={},u=A==="toggleSelected",a;return p.eachComponent("legend",function(i){u&&a!=null?i[a?"select":"unSelect"](m.name):A==="allSelect"||A==="inverseSelect"?i[A]():(i[A](m.name),a=i.isSelected(m.name));var t=i.getData();f.each(t,function(s){var e=s.get("name");if(e===`
`||e==="")return;var l=i.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&l:d[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:d}:{name:m.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",f.curry(x,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",f.curry(x,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",f.curry(x,"inverseSelect")),y.registerAction("legendSelect","legendselected",f.curry(x,"select")),y.registerAction("legendUnSelect","legendunselected",f.curry(x,"unSelect"))},RotF:function(R,L,r){R.exports=r("LSTS")},Rx6q:function(R,L){function r(y){var f=y.getRect(),x=y.getRangeInfo();return{coordSys:{type:"calendar",x:f.x,y:f.y,width:f.width,height:f.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:x.start,end:x.end,weeks:x.weeks,dayCount:x.allDay}},api:{coord:function(A,m){return y.dataToPoint(A,m)}}}}R.exports=r},"S/Yl":function(R,L,r){var y=r("Zvw2"),f=r("aX7z"),x=r("+TT/"),A=x.getLayoutRect,m=r("bYtY"),p=m.each;function d(a,i,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(a,i,t),this.model=a}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(a,i,t){var s=this.dimension,e=new y(s,f.createScaleByModel(a),[0,0],a.get("type"),a.get("position")),l=e.type==="category";e.onBand=l&&a.get("boundaryGap"),e.inverse=a.get("inverse"),e.orient=a.get("orient"),a.axis=e,e.model=a,e.coordinateSystem=this,this._axis=e},update:function(a,i){a.eachSeries(function(t){if(t.coordinateSystem===this){var s=t.getData();p(s.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(s,e)},this),f.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(a,i){this._rect=A({left:a.get("left"),top:a.get("top"),right:a.get("right"),bottom:a.get("bottom"),width:a.get("width"),height:a.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var a=this._rect,i=this._axis,t=i.isHorizontal(),s=t?[0,a.width]:[0,a.height],e=i.reverse?1:0;i.setExtent(s[e],s[1-e]),this._updateAxisTransform(i,t?a.x:a.y)},_updateAxisTransform:function(a,i){var t=a.getExtent(),s=t[0]+t[1],e=a.isHorizontal();a.toGlobalCoord=e?function(l){return l+i}:function(l){return s-l+i},a.toLocalCoord=e?function(l){return l-i}:function(l){return s-l+i}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(a){var i=this.getRect(),t=this.getAxis(),s=t.orient;return s==="horizontal"?t.contain(t.toLocalCoord(a[0]))&&a[1]>=i.y&&a[1]<=i.y+i.height:t.contain(t.toLocalCoord(a[1]))&&a[0]>=i.y&&a[0]<=i.y+i.height},pointToData:function(a){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(a[i.orient==="horizontal"?0:1]))]},dataToPoint:function(a){var i=this.getAxis(),t=this.getRect(),s=[],e=i.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),s[e]=i.toGlobalCoord(i.dataToCoord(+a)),s[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,s}};var u=d;R.exports=u},"S3Q+":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("blIg"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},S6kV:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.mode.OFB=function(){var f=y.lib.BlockCipherMode.extend(),x=f.Encryptor=f.extend({processBlock:function(m,p){var d=this._cipher,u=d.blockSize,a=this._iv,i=this._keystream;a&&(i=this._keystream=a.slice(0),this._iv=void 0),d.encryptBlock(i,0);for(var t=0;t<u;t++)m[p+t]^=i[t]}});return f.Decryptor=x,f}(),y.mode.OFB})},"SA+Z":function(R,L,r){var y=r("wTVA"),f=r("EbDI"),x=r("ZhPi"),A=r("wkBT");function m(p){return y(p)||f(p)||x(p)||A()}R.exports=m,R.exports.__esModule=!0,R.exports.default=R.exports},"SA4+":function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("IwbS"),m=r("zYTA"),p=r("bYtY");function d(t,s,e){var l=t[1]-t[0];s=p.map(s,function(c){return{interval:[(c.interval[0]-t[0])/l,(c.interval[1]-t[0])/l]}});var n=s.length,o=0;return function(c){for(var h=o;h<n;h++){var g=s[h].interval;if(g[0]<=c&&c<=g[1]){o=h;break}}if(h===n)for(var h=o-1;h>=0;h--){var g=s[h].interval;if(g[0]<=c&&c<=g[1]){o=h;break}}return h>=0&&h<n&&e[h]}}function u(t,s){var e=t[1]-t[0];return s=[(s[0]-t[0])/e,(s[1]-t[0])/e],function(l){return l>=s[0]&&l<=s[1]}}function a(t){var s=t.dimensions;return s[0]==="lng"&&s[1]==="lat"}var i=x.extendChartView({type:"heatmap",render:function(t,s,e){var l;s.eachComponent("visualMap",function(o){o.eachTargetSeries(function(c){c===t&&(l=o)})}),this.group.removeAll(),this._incrementalDisplayable=null;var n=t.coordinateSystem;n.type==="cartesian2d"||n.type==="calendar"?this._renderOnCartesianAndCalendar(t,e,0,t.getData().count()):a(n)&&this._renderOnGeo(n,t,l,e)},incrementalPrepareRender:function(t,s,e){this.group.removeAll()},incrementalRender:function(t,s,e,l){var n=s.coordinateSystem;n&&this._renderOnCartesianAndCalendar(s,l,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,s,e,l,n){var o=t.coordinateSystem,c,h;if(o.type==="cartesian2d"){var g=o.getAxis("x"),v=o.getAxis("y");c=g.getBandWidth(),h=v.getBandWidth()}for(var b=this.group,S=t.getData(),E="itemStyle",C="emphasis.itemStyle",_="label",T="emphasis.label",w=t.getModel(E).getItemStyle(["color"]),O=t.getModel(C).getItemStyle(),I=t.getModel(_),k=t.getModel(T),M=o.type,U=M==="cartesian2d"?[S.mapDimension("x"),S.mapDimension("y"),S.mapDimension("value")]:[S.mapDimension("time"),S.mapDimension("value")],P=e;P<l;P++){var X;if(M==="cartesian2d"){if(isNaN(S.get(U[2],P)))continue;var F=o.dataToPoint([S.get(U[0],P),S.get(U[1],P)]);X=new A.Rect({shape:{x:Math.floor(Math.round(F[0])-c/2),y:Math.floor(Math.round(F[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}else{if(isNaN(S.get(U[1],P)))continue;X=new A.Rect({z2:1,shape:o.dataToRect([S.get(U[0],P)]).contentShape,style:{fill:S.getItemVisual(P,"color"),opacity:S.getItemVisual(P,"opacity")}})}var j=S.getItemModel(P);S.hasItemOption&&(w=j.getModel(E).getItemStyle(["color"]),O=j.getModel(C).getItemStyle(),I=j.getModel(_),k=j.getModel(T));var K=t.getRawValue(P),z="-";K&&K[2]!=null&&(z=K[2]),A.setLabelStyle(w,O,I,k,{labelFetcher:t,labelDataIndex:P,defaultText:z,isRectText:!0}),X.setStyle(w),A.setHoverStyle(X,S.hasItemOption?O:p.extend({},O)),X.incremental=n,n&&(X.useHoverLayer=!0),b.add(X),S.setItemGraphicEl(P,X)}},_renderOnGeo:function(t,s,e,l){var n=e.targetVisuals.inRange,o=e.targetVisuals.outOfRange,c=s.getData(),h=this._hmLayer||this._hmLayer||new m;h.blurSize=s.get("blurSize"),h.pointSize=s.get("pointSize"),h.minOpacity=s.get("minOpacity"),h.maxOpacity=s.get("maxOpacity");var g=t.getViewRect().clone(),v=t.getRoamTransform();g.applyTransform(v);var b=Math.max(g.x,0),S=Math.max(g.y,0),E=Math.min(g.width+g.x,l.getWidth()),C=Math.min(g.height+g.y,l.getHeight()),_=E-b,T=C-S,w=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],O=c.mapArray(w,function(U,P,X){var F=t.dataToPoint([U,P]);return F[0]-=b,F[1]-=S,F.push(X),F}),I=e.getExtent(),k=e.type==="visualMap.continuous"?u(I,e.option.range):d(I,e.getPieceList(),e.option.selected);h.update(O,_,T,n.color.getNormalizer(),{inRange:n.color.getColorMapper(),outOfRange:o.color.getColorMapper()},k);var M=new A.Image({style:{width:_,height:T,x:b,y:S,image:h.canvas},silent:!0});this.group.add(M)},dispose:function(){}});R.exports=i},SA8n:function(R,L,r){var y=r("Sj9i"),f=r("QBsz"),x=r("U/Mo"),A=x.getSymbolSize,m=[],p=[],d=[],u=y.quadraticAt,a=f.distSquare,i=Math.abs;function t(e,l,n){for(var o=e[0],c=e[1],h=e[2],g=Infinity,v,b=n*n,S=.1,E=.1;E<=.9;E+=.1){m[0]=u(o[0],c[0],h[0],E),m[1]=u(o[1],c[1],h[1],E);var C=i(a(m,l)-b);C<g&&(g=C,v=E)}for(var _=0;_<32;_++){var T=v+S;p[0]=u(o[0],c[0],h[0],v),p[1]=u(o[1],c[1],h[1],v),d[0]=u(o[0],c[0],h[0],T),d[1]=u(o[1],c[1],h[1],T);var C=a(p,l)-b;if(i(C)<.01)break;var w=a(d,l)-b;S/=2,C<0?w>=0?v=v+S:v=v-S:w>=0?v=v-S:v=v+S}return v}function s(e,l){var n=[],o=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];l/=2,e.eachEdge(function(v,b){var S=v.getLayout(),E=v.getVisual("fromSymbol"),C=v.getVisual("toSymbol");S.__original||(S.__original=[f.clone(S[0]),f.clone(S[1])],S[2]&&S.__original.push(f.clone(S[2])));var _=S.__original;if(S[2]!=null){if(f.copy(c[0],_[0]),f.copy(c[1],_[2]),f.copy(c[2],_[1]),E&&E!=="none"){var T=A(v.node1),w=t(c,_[0],T*l);o(c[0][0],c[1][0],c[2][0],w,n),c[0][0]=n[3],c[1][0]=n[4],o(c[0][1],c[1][1],c[2][1],w,n),c[0][1]=n[3],c[1][1]=n[4]}if(C&&C!=="none"){var T=A(v.node2),w=t(c,_[1],T*l);o(c[0][0],c[1][0],c[2][0],w,n),c[1][0]=n[1],c[2][0]=n[2],o(c[0][1],c[1][1],c[2][1],w,n),c[1][1]=n[1],c[2][1]=n[2]}f.copy(S[0],c[0]),f.copy(S[1],c[2]),f.copy(S[2],c[1])}else{if(f.copy(h[0],_[0]),f.copy(h[1],_[1]),f.sub(g,h[1],h[0]),f.normalize(g,g),E&&E!=="none"){var T=A(v.node1);f.scaleAndAdd(h[0],h[0],g,T*l)}if(C&&C!=="none"){var T=A(v.node2);f.scaleAndAdd(h[1],h[1],g,-T*l)}f.copy(S[0],h[0]),f.copy(S[1],h[1])}})}R.exports=s},SJMd:function(R,L){/**
* @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 r,y,f,x=!1,A,m;window.PR_SHOULD_USE_CONTINUATION=!0;var p,d;(function(){var u=window,a=["break,continue,do,else,for,if,return,while"],i=[a,"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"],t=[i,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],s=[t,"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"],e=[t,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[t,"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"],n="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",o=[t,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],c="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",h=[a,"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"],g=[a,"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"],v=[a,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[s,l,e,o,c,h,g,v],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,E="str",C="kwd",_="com",T="typ",w="lit",O="pun",I="pln",k="tag",M="dec",U="src",P="atn",X="atv",F="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function K(fe){for(var J=0,Y=!1,$=!1,de=0,we=fe.length;de<we;++de){var Ce=fe[de];if(Ce.ignoreCase)$=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,$=!1;break}}var Se={b:8,t:9,n:10,v:11,f:12,r:13};function le(ct){var je=ct.charCodeAt(0);if(je!==92)return je;var Zt=ct.charAt(1);return je=Se[Zt],je||("0"<=Zt&&Zt<="7"?parseInt(ct.substring(1),8):Zt==="u"||Zt==="x"?parseInt(ct.substring(2),16):ct.charCodeAt(1))}function pe(ct){if(ct<32)return(ct<16?"\\x0":"\\x")+ct.toString(16);var je=String.fromCharCode(ct);return je==="\\"||je==="-"||je==="]"||je==="^"?"\\"+je:je}function _e(ct){var je=ct.substring(1,ct.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Zt=[],ut=je[0]==="^",Ht=["["];ut&&Ht.push("^");for(var dr=ut?1:0,Vt=je.length;dr<Vt;++dr){var Mt=je[dr];if(/\\[bdsw]/i.test(Mt))Ht.push(Mt);else{var Gt=le(Mt),Ve;dr+2<Vt&&je[dr+1]==="-"?(Ve=le(je[dr+2]),dr+=2):Ve=Gt,Zt.push([Gt,Ve]),Ve<65||Gt>122||(Ve<65||Gt>90||Zt.push([Math.max(65,Gt)|32,Math.min(Ve,90)|32]),Ve<97||Gt>122||Zt.push([Math.max(97,Gt)&~32,Math.min(Ve,122)&~32]))}}Zt.sort(function(Xe,ue){return Xe[0]-ue[0]||ue[1]-Xe[1]});for(var me=[],te=[],dr=0;dr<Zt.length;++dr){var Ze=Zt[dr];Ze[0]<=te[1]+1?te[1]=Math.max(te[1],Ze[1]):me.push(te=Ze)}for(var dr=0;dr<me.length;++dr){var Ze=me[dr];Ht.push(pe(Ze[0])),Ze[1]>Ze[0]&&(Ze[1]+1>Ze[0]&&Ht.push("-"),Ht.push(pe(Ze[1])))}return Ht.push("]"),Ht.join("")}function tt(ct){for(var je=ct.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Zt=je.length,ut=[],Ht=0,dr=0;Ht<Zt;++Ht){var Vt=je[Ht];if(Vt==="(")++dr;else if(Vt.charAt(0)==="\\"){var Mt=+Vt.substring(1);Mt&&(Mt<=dr?ut[Mt]=-1:je[Ht]=pe(Mt))}}for(var Ht=1;Ht<ut.length;++Ht)ut[Ht]===-1&&(ut[Ht]=++J);for(var Ht=0,dr=0;Ht<Zt;++Ht){var Vt=je[Ht];if(Vt==="(")++dr,ut[dr]||(je[Ht]="(?:");else if(Vt.charAt(0)==="\\"){var Mt=+Vt.substring(1);Mt&&Mt<=dr&&(je[Ht]="\\"+ut[Mt])}}for(var Ht=0;Ht<Zt;++Ht)je[Ht]==="^"&&je[Ht+1]!=="^"&&(je[Ht]="");if(ct.ignoreCase&&Y)for(var Ht=0;Ht<Zt;++Ht){var Vt=je[Ht],Gt=Vt.charAt(0);Vt.length>=2&&Gt==="["?je[Ht]=_e(Vt):Gt!=="\\"&&(je[Ht]=Vt.replace(/[a-zA-Z]/g,function(te){var Ze=te.charCodeAt(0);return"["+String.fromCharCode(Ze&~32,Ze|32)+"]"}))}return je.join("")}for(var gt=[],de=0,we=fe.length;de<we;++de){var Ce=fe[de];if(Ce.global||Ce.multiline)throw new Error(""+Ce);gt.push("(?:"+tt(Ce)+")")}return new RegExp(gt.join("|"),$?"gi":"g")}function z(fe,J){var Y=/(?:^|\s)nocode(?:\s|$)/,$=[],de=0,we=[],Ce=0;function Se(le){var pe=le.nodeType;if(pe==1){if(Y.test(le.className))return;for(var _e=le.firstChild;_e;_e=_e.nextSibling)Se(_e);var tt=le.nodeName.toLowerCase();(tt==="br"||tt==="li")&&($[Ce]=`
`,we[Ce<<1]=de++,we[Ce++<<1|1]=le)}else if(pe==3||pe==4){var gt=le.nodeValue;gt.length&&(J?gt=gt.replace(/\r\n?/g,`
`):gt=gt.replace(/[ \t\r\n]+/g," "),$[Ce]=gt,we[Ce<<1]=de,de+=gt.length,we[Ce++<<1|1]=le)}}return Se(fe),{sourceCode:$.join("").replace(/\n$/,""),spans:we}}function V(fe,J,Y,$,de){if(!Y)return;var we={sourceNode:fe,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:J,decorations:null};$(we),de.push.apply(de,we.decorations)}var Q=/\S/;function G(fe){for(var J=void 0,Y=fe.firstChild;Y;Y=Y.nextSibling){var $=Y.nodeType;J=$===1?J?fe:Y:$===3&&Q.test(Y.nodeValue)?fe:J}return J===fe?void 0:J}function ee(fe,J){var Y={},$;(function(){for(var Ce=fe.concat(J),Se=[],le={},pe=0,_e=Ce.length;pe<_e;++pe){var tt=Ce[pe],gt=tt[3];if(gt)for(var ct=gt.length;--ct>=0;)Y[gt.charAt(ct)]=tt;var je=tt[1],Zt=""+je;le.hasOwnProperty(Zt)||(Se.push(je),le[Zt]=null)}Se.push(/[\0-\uffff]/),$=K(Se)})();var de=J.length,we=function Ce(Se){for(var le=Se.sourceCode,pe=Se.basePos,_e=Se.sourceNode,tt=[pe,I],gt=0,ct=le.match($)||[],je={},Zt=0,ut=ct.length;Zt<ut;++Zt){var Ht=ct[Zt],dr=je[Ht],Vt=void 0,Mt;if(typeof dr=="string")Mt=!1;else{var Gt=Y[Ht.charAt(0)];if(Gt)Vt=Ht.match(Gt[1]),dr=Gt[0];else{for(var Ve=0;Ve<de;++Ve)if(Gt=J[Ve],Vt=Ht.match(Gt[1]),Vt){dr=Gt[0];break}Vt||(dr=I)}Mt=dr.length>=5&&dr.substring(0,5)==="lang-",Mt&&!(Vt&&typeof Vt[1]=="string")&&(Mt=!1,dr=U),Mt||(je[Ht]=dr)}var me=gt;if(gt+=Ht.length,!Mt)tt.push(pe+me,dr);else{var te=Vt[1],Ze=Ht.indexOf(te),Xe=Ze+te.length;Vt[2]&&(Xe=Ht.length-Vt[2].length,Ze=Xe-te.length);var ue=dr.substring(5);V(_e,pe+me,Ht.substring(0,Ze),Ce,tt),V(_e,pe+me+Ze,te,$e(ue,te),tt),V(_e,pe+me+Xe,Ht.substring(Xe),Ce,tt)}}Se.decorations=tt};return we}function se(fe){var J=[],Y=[];fe.tripleQuotedStrings?J.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):fe.multiLineStrings?J.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):J.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),fe.verbatimStrings&&Y.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var $=fe.hashComments;$&&(fe.cStyleComments?($>1?J.push([_,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):J.push([_,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):J.push([_,/^#[^\r\n]*/,null,"#"])),fe.cStyleComments&&(Y.push([_,/^\/\/[^\r\n]*/,null]),Y.push([_,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=fe.regexLiterals;if(de){var we=de>1?"":`
\r`,Ce=we?".":"[\\S\\s]",Se="/(?=[^/*"+we+"])(?:[^/\\x5B\\x5C"+we+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+we+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+j+"("+Se+")")])}var le=fe.types;le&&Y.push([T,le]);var pe=(""+fe.keywords).replace(/^ | $/g,"");pe.length&&Y.push([C,new RegExp("^(?:"+pe.replace(/[\s,]+/g,"|")+")\\b"),null]),J.push([I,/^\s+/,null,` \r
\xA0`]);var _e="^.[^\\s\\w.$@'\"`/\\\\]*";return fe.regexLiterals&&(_e+="(?!s*/)"),Y.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[w,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[O,new RegExp(_e),null]),ee(J,Y)}var ye=se({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function he(fe,J,Y){for(var $=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,we=fe.ownerDocument,Ce=we.createElement("li");fe.firstChild;)Ce.appendChild(fe.firstChild);var Se=[Ce];function le(je){var Zt=je.nodeType;if(Zt==1&&!$.test(je.className))if(je.nodeName==="br")pe(je),je.parentNode&&je.parentNode.removeChild(je);else for(var ut=je.firstChild;ut;ut=ut.nextSibling)le(ut);else if((Zt==3||Zt==4)&&Y){var Ht=je.nodeValue,dr=Ht.match(de);if(dr){var Vt=Ht.substring(0,dr.index);je.nodeValue=Vt;var Mt=Ht.substring(dr.index+dr[0].length);if(Mt){var Gt=je.parentNode;Gt.insertBefore(we.createTextNode(Mt),je.nextSibling)}pe(je),Vt||je.parentNode.removeChild(je)}}}function pe(je){for(;!je.nextSibling;)if(je=je.parentNode,!je)return;function Zt(dr,Vt){var Mt=Vt?dr.cloneNode(!1):dr,Gt=dr.parentNode;if(Gt){var Ve=Zt(Gt,1),me=dr.nextSibling;Ve.appendChild(Mt);for(var te=me;te;te=me)me=te.nextSibling,Ve.appendChild(te)}return Mt}for(var ut=Zt(je.nextSibling,0),Ht;(Ht=ut.parentNode)&&Ht.nodeType===1;)ut=Ht;Se.push(ut)}for(var _e=0;_e<Se.length;++_e)le(Se[_e]);J===(J|0)&&Se[0].setAttribute("value",J);var tt=we.createElement("ol");tt.className="linenums";for(var gt=Math.max(0,J-1|0)||0,_e=0,ct=Se.length;_e<ct;++_e)Ce=Se[_e],Ce.className="L"+(_e+gt)%10,Ce.firstChild||Ce.appendChild(we.createTextNode("\xA0")),tt.appendChild(Ce);fe.appendChild(tt)}function ke(fe){var J=/\bMSIE\s(\d+)/.exec(navigator.userAgent);J=J&&+J[1]<=8;var Y=/\n/g,$=fe.sourceCode,de=$.length,we=0,Ce=fe.spans,Se=Ce.length,le=0,pe=fe.decorations,_e=pe.length,tt=0;pe[_e]=de;var gt,ct;for(ct=gt=0;ct<_e;)pe[ct]!==pe[ct+2]?(pe[gt++]=pe[ct++],pe[gt++]=pe[ct++]):ct+=2;for(_e=gt,ct=gt=0;ct<_e;){for(var je=pe[ct],Zt=pe[ct+1],ut=ct+2;ut+2<=_e&&pe[ut+1]===Zt;)ut+=2;pe[gt++]=je,pe[gt++]=Zt,ct=ut}_e=pe.length=gt;var Ht=fe.sourceNode,dr="";Ht&&(dr=Ht.style.display,Ht.style.display="none");try{for(var Vt=null;le<Se;){var Mt=Ce[le],Gt=Ce[le+2]||de,Ve=pe[tt+2]||de,ut=Math.min(Gt,Ve),me=Ce[le+1],te;if(me.nodeType!==1&&(te=$.substring(we,ut))){J&&(te=te.replace(Y,"\r")),me.nodeValue=te;var Ze=me.ownerDocument,Xe=Ze.createElement("span");Xe.className=pe[tt+1];var ue=me.parentNode;ue.replaceChild(Xe,me),Xe.appendChild(me),we<Gt&&(Ce[le+1]=me=Ze.createTextNode($.substring(ut,Gt)),ue.insertBefore(me,Xe.nextSibling))}we=ut,we>=Gt&&(le+=2),we>=Ve&&(tt+=2)}}finally{Ht&&(Ht.style.display=dr)}}var Pe={};function Ue(fe,J){for(var Y=J.length;--Y>=0;){var $=J[Y];Pe.hasOwnProperty($)?u.console&&console.warn("cannot override language handler %s",$):Pe[$]=fe}}function $e(fe,J){return fe&&Pe.hasOwnProperty(fe)||(fe=/^\s*</.test(J)?"default-markup":"default-code"),Pe[fe]}Ue(ye,["default-code"]),Ue(ee([],[[I,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[_,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ue(ee([[I,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[k,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!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"]),Ue(ee([],[[X,/^[\s\S]+/]]),["uq.val"]),Ue(se({keywords:s,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Ue(se({keywords:"null,true,false"}),["json"]),Ue(se({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Ue(se({keywords:e,cStyleComments:!0}),["java"]),Ue(se({keywords:v,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ue(se({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ue(se({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ue(se({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ue(se({keywords:o,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ue(se({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ue(ee([],[[E,/^[\s\S]+/]]),["regex"]);function Ge(fe){var J=fe.langExtension;try{var Y=z(fe.sourceNode,fe.pre),$=Y.sourceCode;fe.sourceCode=$,fe.spans=Y.spans,fe.basePos=0,$e(J,$)(fe),ke(fe)}catch(de){u.console&&console.log(de&&de.stack||de)}}function ht(fe,J,Y){var $=Y||!1,de=J||null,we=document.createElement("div");we.innerHTML="<pre>"+fe+"</pre>",we=we.firstChild,$&&he(we,$,!0);var Ce={langExtension:de,numberLines:$,sourceNode:we,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ge(Ce),we.innerHTML}function Fe(fe,J){var Y=J||document.body,$=Y.ownerDocument||document;function de(Mt){return Y.getElementsByTagName(Mt)}for(var we=[de("pre"),de("code"),de("xmp")],Ce=[],Se=0;Se<we.length;++Se)for(var le=0,pe=we[Se].length;le<pe;++le)Ce.push(we[Se][le]);we=null;var _e=Date;_e.now||(_e={now:function(){return+new Date}});var tt=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ct=/\bprettyprint\b/,je=/\bprettyprinted\b/,Zt=/pre|xmp/i,ut=/^code$/i,Ht=/^(?:pre|code|xmp)$/i,dr={};function Vt(){for(var Mt=u.PR_SHOULD_USE_CONTINUATION?_e.now()+250:Infinity;tt<Ce.length&&_e.now()<Mt;tt++){for(var Gt=Ce[tt],Ve=dr,me=Gt;me=me.previousSibling;){var te=me.nodeType,Ze=(te===7||te===8)&&me.nodeValue;if(Ze?!/^\??prettify\b/.test(Ze):te!==3||/\S/.test(me.nodeValue))break;if(Ze){Ve={},Ze.replace(/\b(\w+)=([\w:.%+-]+)/g,function(it,Or,an){Ve[Or]=an});break}}var Xe=Gt.className;if((Ve!==dr||ct.test(Xe))&&!je.test(Xe)){for(var ue=!1,St=Gt.parentNode;St;St=St.parentNode){var Qt=St.tagName;if(Ht.test(Qt)&&St.className&&ct.test(St.className)){ue=!0;break}}if(!ue){Gt.className+=" prettyprinted";var dt=Ve.lang;if(!dt){dt=Xe.match(gt);var Jt;!dt&&(Jt=G(Gt))&&ut.test(Jt.tagName)&&(dt=Jt.className.match(gt)),dt&&(dt=dt[1])}var $t;if(Zt.test(Gt.tagName))$t=1;else{var tn=Gt.currentStyle,kt=$.defaultView,tr=tn?tn.whiteSpace:kt&&kt.getComputedStyle?kt.getComputedStyle(Gt,null).getPropertyValue("white-space"):0;$t=tr&&tr.substring(0,3)==="pre"}var Bt=Ve.linenums;(Bt=Bt==="true"||+Bt)||(Bt=Xe.match(/\blinenums\b(?::(\d+))?/),Bt=Bt?Bt[1]&&Bt[1].length?+Bt[1]:!0:!1),Bt&&he(Gt,Bt,$t);var ft={langExtension:dt,sourceNode:Gt,numberLines:Bt,pre:$t,sourceCode:null,basePos:null,spans:null,decorations:null};Ge(ft)}}}tt<Ce.length?u.setTimeout(Vt,250):typeof fe=="function"&&fe()}Vt()}var oe=u.PR={createSimpleLexer:ee,registerLangHandler:Ue,sourceDecorator:se,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:X,PR_COMMENT:_,PR_DECLARATION:M,PR_KEYWORD:C,PR_LITERAL:w,PR_NOCODE:F,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:U,PR_STRING:E,PR_TAG:k,PR_TYPE:T,prettyPrintOne:x?u.prettyPrintOne=ht:p=ht,prettyPrint:d=x?u.prettyPrint=Fe:d=Fe},rt=u.define;typeof rt=="function"&&rt.amd&&rt("google-code-prettify",[],function(){return oe})})()},SKnc:function(R,L,r){var y=r("bYtY"),f=r("QuXc"),x=function(p,d,u,a,i,t){this.x=p==null?0:p,this.y=d==null?0:d,this.x2=u==null?1:u,this.y2=a==null?0:a,this.type="linear",this.global=t||!1,f.call(this,i)};x.prototype={constructor:x},y.inherits(x,f);var A=x;R.exports=A},"SKx+":function(R,L,r){var y=r("ProS"),f=y.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),x=f;R.exports=x},SMc4:function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("nkfE"),A=r("ICMv"),m=f.extend({type:"cartesian2dAxis",axis:null,init:function(){m.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){m.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){m.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function p(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A);var d={offset:0};x("x",m,p,d),x("y",m,p,d);var u=m;R.exports=u},SRve:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};L.default=y},SUKs:function(R,L,r){var y=r("LPTA"),f=y.debugMode,x=function(){};f===1&&(x=console.error);var A=x;R.exports=A},SZEN:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.clientToElement=y;function y(f,x,A){var m=A.getBoundingClientRect(),p={x:0,y:0};return f<m.left?p.x=0:f>=m.right?p.x=m.width-1:p.x=f-m.left,x<m.top?p.y=0:x>=m.bottom?p.y=m.height-1:p.y=x-m.top,p}},Sdc0:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r("rePB"),d=r("ODXe"),u=r("Ff2n"),a=r("TSYQ"),i=r.n(a),t=r("6cGi"),s=r("4IlW"),e=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=w===void 0?"rc-switch":w,I=C.className,k=C.checked,M=C.defaultChecked,U=C.disabled,P=C.loadingIcon,X=C.checkedChildren,F=C.unCheckedChildren,j=C.onClick,K=C.onChange,z=C.onKeyDown,V=Object(u.a)(C,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:k,defaultValue:M}),G=Object(d.a)(Q,2),ee=G[0],se=G[1];function ye(Ue,$e){var Ge=ee;return U||(Ge=Ue,se(Ge),K==null||K(Ge,$e)),Ge}function he(Ue){Ue.which===s.a.LEFT?ye(!1,Ue):Ue.which===s.a.RIGHT&&ye(!0,Ue),z==null||z(Ue)}function ke(Ue){var $e=ye(!ee,Ue);j==null||j($e,Ue)}var Pe=i()(O,I,(T={},Object(p.a)(T,"".concat(O,"-checked"),ee),Object(p.a)(T,"".concat(O,"-disabled"),U),T));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":ee,disabled:U,className:Pe,ref:_,onKeyDown:he,onClick:ke}),P,m.createElement("span",{className:"".concat(O,"-inner")},ee?X:F))});e.displayName="Switch";var l=e,n=r("zU+y"),o=r.n(n),c=r("g0mS"),h=r("H84U"),g=r("3Nzz"),v=r("uaoM"),b=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},S=m.forwardRef(function(C,_){var T,w=C.prefixCls,O=C.size,I=C.loading,k=C.className,M=k===void 0?"":k,U=C.disabled,P=b(C,["prefixCls","size","loading","className","disabled"]);Object(v.a)("checked"in P||!("value"in P),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(h.b),F=X.getPrefixCls,j=X.direction,K=m.useContext(g.b),z=F("switch",w),V=m.createElement("div",{className:"".concat(z,"-handle")},I&&m.createElement(o.a,{className:"".concat(z,"-loading-icon")})),Q=i()(M,(T={},A()(T,"".concat(z,"-small"),(O||K)==="small"),A()(T,"".concat(z,"-loading"),I),A()(T,"".concat(z,"-rtl"),j==="rtl"),T));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(l,f()({},P,{prefixCls:z,className:Q,disabled:U||I,ref:_,loadingIcon:V})))});S.__ANT_SWITCH=!0,S.displayName="Switch";var E=L.a=S},SehX:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("2B6p"),A=x.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,p){var d=m.componentType||"series";p.eachComponent({mainType:d,query:m},function(u){var a=u.coordinateSystem;if(a.type!=="geo")return;var i=A(a,m,u.get("scaleLimit"));u.setCenter&&u.setCenter(i.center),u.setZoom&&u.setZoom(i.zoom),d==="series"&&f.each(u.seriesGroup,function(t){t.setCenter(i.center),t.setZoom(i.zoom)})})})},SfRM:function(R,L,r){var y=r("YESw");function f(){this.__data__=y?y(null):{},this.size=0}R.exports=f},SgGq:function(R,L,r){var y=r("bYtY"),f=r("H6uX"),x=r("YH21"),A=r("pP6R");function m(n){this.pointerChecker,this._zr=n,this._opt={};var o=y.bind,c=o(p,this),h=o(d,this),g=o(u,this),v=o(a,this),b=o(i,this);f.call(this),this.setPointerChecker=function(S){this.pointerChecker=S},this.enable=function(S,E){this.disable(),this._opt=y.defaults(y.clone(E)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(n.on("mousedown",c),n.on("mousemove",h),n.on("mouseup",g)),(S===!0||S==="scale"||S==="zoom")&&(n.on("mousewheel",v),n.on("pinch",b))},this.disable=function(){n.off("mousedown",c),n.off("mousemove",h),n.off("mouseup",g),n.off("mousewheel",v),n.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,f);function p(n){if(x.isMiddleOrRightButtonOnMouseUpDown(n)||n.target&&n.target.draggable)return;var o=n.offsetX,c=n.offsetY;this.pointerChecker&&this.pointerChecker(n,o,c)&&(this._x=o,this._y=c,this._dragging=!0)}function d(n){if(!this._dragging||!e("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var o=n.offsetX,c=n.offsetY,h=this._x,g=this._y,v=o-h,b=c-g;this._x=o,this._y=c,this._opt.preventDefaultMouseMove&&x.stop(n.event),s(this,"pan","moveOnMouseMove",n,{dx:v,dy:b,oldX:h,oldY:g,newX:o,newY:c})}function u(n){x.isMiddleOrRightButtonOnMouseUpDown(n)||(this._dragging=!1)}function a(n){var o=e("zoomOnMouseWheel",n,this._opt),c=e("moveOnMouseWheel",n,this._opt),h=n.wheelDelta,g=Math.abs(h),v=n.offsetX,b=n.offsetY;if(h===0||!o&&!c)return;if(o){var S=g>3?1.4:g>1?1.2:1.1,E=h>0?S:1/S;t(this,"zoom","zoomOnMouseWheel",n,{scale:E,originX:v,originY:b})}if(c){var C=Math.abs(h),_=(h>0?1:-1)*(C>3?.4:C>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:_,originX:v,originY:b})}}function i(n){if(A.isTaken(this._zr,"globalPan"))return;var o=n.pinchScale>1?1.1:1/1.1;t(this,"zoom",null,n,{scale:o,originX:n.pinchX,originY:n.pinchY})}function t(n,o,c,h,g){n.pointerChecker&&n.pointerChecker(h,g.originX,g.originY)&&(x.stop(h.event),s(n,o,c,h,g))}function s(n,o,c,h,g){g.isAvailableBehavior=y.bind(e,null,c,h),n.trigger(o,g)}function e(n,o,c){var h=c[n];return!n||h&&(!y.isString(h)||o.event[h+"Key"])}var l=m;R.exports=l},SgaC:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var A=function(){function m(){y(this,m),this._subrects=0}return x(m,[{key:"decodeRect",value:function(d,u,a,i,t,s,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var l=t.rQshiftBytes(4);s.fillRect(d,u,a,i,l)}for(;this._subrects>0;){if(t.rQwait("RRE",4+8))return!1;var n=t.rQshiftBytes(4),o=t.rQshift16(),c=t.rQshift16(),h=t.rQshift16(),g=t.rQshift16();s.fillRect(d+o,u+c,h,g,n),this._subrects--}return!0}}]),m}();L.default=A},Sj9i:function(R,L,r){var y=r("QBsz"),f=y.create,x=y.distSquare,A=Math.pow,m=Math.sqrt,p=1e-8,d=1e-4,u=m(3),a=1/3,i=f(),t=f(),s=f();function e(w){return w>-p&&w<p}function l(w){return w>p||w<-p}function n(w,O,I,k,M){var U=1-M;return U*U*(U*w+3*M*O)+M*M*(M*k+3*U*I)}function o(w,O,I,k,M){var U=1-M;return 3*(((O-w)*U+2*(I-O)*M)*U+(k-I)*M*M)}function c(w,O,I,k,M,U){var P=k+3*(O-I)-w,X=3*(I-O*2+w),F=3*(O-w),j=w-M,K=X*X-3*P*F,z=X*F-9*P*j,V=F*F-3*X*j,Q=0;if(e(K)&&e(z))if(e(X))U[0]=0;else{var G=-F/X;G>=0&&G<=1&&(U[Q++]=G)}else{var ee=z*z-4*K*V;if(e(ee)){var se=z/K,G=-X/P+se,ye=-se/2;G>=0&&G<=1&&(U[Q++]=G),ye>=0&&ye<=1&&(U[Q++]=ye)}else if(ee>0){var he=m(ee),ke=K*X+1.5*P*(-z+he),Pe=K*X+1.5*P*(-z-he);ke<0?ke=-A(-ke,a):ke=A(ke,a),Pe<0?Pe=-A(-Pe,a):Pe=A(Pe,a);var G=(-X-(ke+Pe))/(3*P);G>=0&&G<=1&&(U[Q++]=G)}else{var Ue=(2*K*X-3*P*z)/(2*m(K*K*K)),$e=Math.acos(Ue)/3,Ge=m(K),ht=Math.cos($e),G=(-X-2*Ge*ht)/(3*P),ye=(-X+Ge*(ht+u*Math.sin($e)))/(3*P),Fe=(-X+Ge*(ht-u*Math.sin($e)))/(3*P);G>=0&&G<=1&&(U[Q++]=G),ye>=0&&ye<=1&&(U[Q++]=ye),Fe>=0&&Fe<=1&&(U[Q++]=Fe)}}return Q}function h(w,O,I,k,M){var U=6*I-12*O+6*w,P=9*O+3*k-3*w-9*I,X=3*O-3*w,F=0;if(e(P)){if(l(U)){var j=-X/U;j>=0&&j<=1&&(M[F++]=j)}}else{var K=U*U-4*P*X;if(e(K))M[0]=-U/(2*P);else if(K>0){var z=m(K),j=(-U+z)/(2*P),V=(-U-z)/(2*P);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function g(w,O,I,k,M,U){var P=(O-w)*M+w,X=(I-O)*M+O,F=(k-I)*M+I,j=(X-P)*M+P,K=(F-X)*M+X,z=(K-j)*M+j;U[0]=w,U[1]=P,U[2]=j,U[3]=z,U[4]=z,U[5]=K,U[6]=F,U[7]=k}function v(w,O,I,k,M,U,P,X,F,j,K){var z,V=.005,Q=Infinity,G,ee,se,ye;i[0]=F,i[1]=j;for(var he=0;he<1;he+=.05)t[0]=n(w,I,M,P,he),t[1]=n(O,k,U,X,he),se=x(i,t),se<Q&&(z=he,Q=se);Q=Infinity;for(var ke=0;ke<32&&!(V<d);ke++)G=z-V,ee=z+V,t[0]=n(w,I,M,P,G),t[1]=n(O,k,U,X,G),se=x(t,i),G>=0&&se<Q?(z=G,Q=se):(s[0]=n(w,I,M,P,ee),s[1]=n(O,k,U,X,ee),ye=x(s,i),ee<=1&&ye<Q?(z=ee,Q=ye):V*=.5);return K&&(K[0]=n(w,I,M,P,z),K[1]=n(O,k,U,X,z)),m(Q)}function b(w,O,I,k){var M=1-k;return M*(M*w+2*k*O)+k*k*I}function S(w,O,I,k){return 2*((1-k)*(O-w)+k*(I-O))}function E(w,O,I,k,M){var U=w-2*O+I,P=2*(O-w),X=w-k,F=0;if(e(U)){if(l(P)){var j=-X/P;j>=0&&j<=1&&(M[F++]=j)}}else{var K=P*P-4*U*X;if(e(K)){var j=-P/(2*U);j>=0&&j<=1&&(M[F++]=j)}else if(K>0){var z=m(K),j=(-P+z)/(2*U),V=(-P-z)/(2*U);j>=0&&j<=1&&(M[F++]=j),V>=0&&V<=1&&(M[F++]=V)}}return F}function C(w,O,I){var k=w+I-2*O;return k===0?.5:(w-O)/k}function _(w,O,I,k,M){var U=(O-w)*k+w,P=(I-O)*k+O,X=(P-U)*k+U;M[0]=w,M[1]=U,M[2]=X,M[3]=X,M[4]=P,M[5]=I}function T(w,O,I,k,M,U,P,X,F){var j,K=.005,z=Infinity;i[0]=P,i[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(w,I,M,V),t[1]=b(O,k,U,V);var Q=x(i,t);Q<z&&(j=V,z=Q)}z=Infinity;for(var G=0;G<32&&!(K<d);G++){var ee=j-K,se=j+K;t[0]=b(w,I,M,ee),t[1]=b(O,k,U,ee);var Q=x(t,i);if(ee>=0&&Q<z)j=ee,z=Q;else{s[0]=b(w,I,M,se),s[1]=b(O,k,U,se);var ye=x(s,i);se<=1&&ye<z?(j=se,z=ye):K*=.5}}return F&&(F[0]=b(w,I,M,j),F[1]=b(O,k,U,j)),m(z)}L.cubicAt=n,L.cubicDerivativeAt=o,L.cubicRootAt=c,L.cubicExtrema=h,L.cubicSubdivide=g,L.cubicProjectPoint=v,L.quadraticAt=b,L.quadraticDerivativeAt=S,L.quadraticRootAt=E,L.quadraticExtremum=C,L.quadraticSubdivide=_,L.quadraticProjectPoint=T},Sp2Z:function(R,L,r){var y=r("3LNs"),f=r("/y7N"),x=r("AVZG"),A=r("Znkb"),m=y.extend({makeElOption:function(i,t,s,e,l){var n=s.axis,o=n.grid,c=e.get("type"),h=p(o,n).getOtherAxis(n).getGlobalExtent(),g=n.toGlobalCoord(n.dataToCoord(t,!0));if(c&&c!=="none"){var v=f.buildElStyle(e),b=d[c](n,g,h);b.style=v,i.graphicKey=b.type,i.pointer=b}var S=x.layout(o.model,s);f.buildCartesianSingleLabelElOption(t,i,S,s,e,l)},getHandleTransform:function(i,t,s){var e=x.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=s.get("handle.margin"),{position:f.getTransformedPosition(t.axis,i,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(i,t,s,e){var l=s.axis,n=l.grid,o=l.getGlobalExtent(!0),c=p(n,l).getOtherAxis(l).getGlobalExtent(),h=l.dim==="x"?0:1,g=i.position;g[h]+=t[h],g[h]=Math.min(o[1],g[h]),g[h]=Math.max(o[0],g[h]);var v=(c[1]+c[0])/2,b=[v,v];b[h]=g[h];var S=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:i.rotation,cursorPoint:b,tooltipOption:S[h]}}});function p(i,t){var s={};return s[t.dim+"AxisIndex"]=t.index,i.getCartesian(s)}var d={line:function(i,t,s){var e=f.makeLineShape([t,s[0]],[t,s[1]],u(i));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(i,t,s){var e=Math.max(1,i.getBandWidth()),l=s[1]-s[0];return{type:"Rect",shape:f.makeRectShape([t-e/2,s[0]],[e,l],u(i))}}};function u(i){return i.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",m);var a=m;R.exports=a},Sq3C:function(R,L,r){var y=r("sKgW"),f=r("zoYe"),x=r("wy8a"),A=r("quyA"),m=r("Z1HP"),p=r("Em2t"),d=Math.ceil;function u(a,i){i=i===void 0?" ":f(i);var t=i.length;if(t<2)return t?y(i,a):i;var s=y(i,d(a/m(i)));return A(i)?x(p(s),0,a).join(""):s.slice(0,a)}R.exports=u},SqI9:function(R,L,r){var y=r("y+Vt"),f=r("iXp4"),x=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:f(y.prototype.brush),buildPath:function(m,p){var d=p.cx,u=p.cy,a=Math.max(p.r0||0,0),i=Math.max(p.r,0),t=p.startAngle,s=p.endAngle,e=p.clockwise,l=Math.cos(t),n=Math.sin(t);m.moveTo(l*a+d,n*a+u),m.lineTo(l*i+d,n*i+u),m.arc(d,u,i,t,s,!e),m.lineTo(Math.cos(s)*a+d,Math.sin(s)*a+u),a!==0&&m.arc(d,u,a,s,t,e),m.closePath()}});R.exports=x},SrGk:function(R,L,r){var y=r("hydK"),f=y.createElement,x=r("bYtY"),A=r("y+Vt"),m=r("Dagg"),p=r("dqUG"),d=r("P47w"),u=d.path,a=d.image,i=d.text,t="0",s="1";function e(n,o,c,h,g){this._zrId=n,this._svgRoot=o,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=h,this._domName=g||"_dom",this.nextId=0}e.prototype.createElement=f,e.prototype.getDefs=function(n){var o=this._svgRoot,c=this._svgRoot.getElementsByTagName("defs");return c.length===0?n?(c=o.insertBefore(this.createElement("defs"),o.firstChild),c.contains||(c.contains=function(h){var g=c.children;if(!g)return!1;for(var v=g.length-1;v>=0;--v)if(g[v]===h)return!0;return!1}),c):null:c[0]},e.prototype.update=function(n,o){if(!n)return;var c=this.getDefs(!1);if(n[this._domName]&&c.contains(n[this._domName]))typeof o=="function"&&o(n);else{var h=this.add(n);h&&(n[this._domName]=h)}},e.prototype.addDom=function(n){var o=this.getDefs(!0);o.appendChild(n)},e.prototype.removeDom=function(n){var o=this.getDefs(!1);o&&n[this._domName]&&(o.removeChild(n[this._domName]),n[this._domName]=null)},e.prototype.getDoms=function(){var n=this.getDefs(!1);if(!n)return[];var o=[];return x.each(this._tagNames,function(c){var h=n.getElementsByTagName(c);o=o.concat([].slice.call(h))}),o},e.prototype.markAllUnused=function(){var n=this.getDoms(),o=this;x.each(n,function(c){c[o._markLabel]=t})},e.prototype.markUsed=function(n){n&&(n[this._markLabel]=s)},e.prototype.removeUnused=function(){var n=this.getDefs(!1);if(!n)return;var o=this.getDoms(),c=this;x.each(o,function(h){h[c._markLabel]!==s&&n.removeChild(h)})},e.prototype.getSvgProxy=function(n){return n instanceof A?u:n instanceof m?a:n instanceof p?i:u},e.prototype.getTextSvgElement=function(n){return n.__textSvgEl},e.prototype.getSvgElement=function(n){return n.__svgEl};var l=e;R.exports=l},Swgg:function(R,L,r){var y=r("fc+c"),f=y.extend({type:"dataZoom.select"});R.exports=f},Sxd8:function(R,L,r){var y=r("ZCgT");function f(x){var A=y(x),m=A%1;return A===A?m?A-m:A:0}R.exports=f},SymL:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("yFXq"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},T4UG:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("ItGF"),m=r("7aKB"),p=m.formatTime,d=m.encodeHTML,u=m.addCommas,a=m.getTooltipMarker,i=r("4NO4"),t=r("bLfw"),s=r("5Hur"),e=r("OKJ2"),l=r("+TT/"),n=l.getLayoutParams,o=l.mergeLayoutParam,c=r("9H2F"),h=c.createTask,g=r("D5nY"),v=g.prepareSource,b=g.getSource,S=r("KxfA"),E=S.retrieveRawValue,C=i.makeInner(),_=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(F,j,K,z){this.seriesIndex=this.componentIndex,this.dataTask=h({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(F,K),v(this);var V=this.getInitialData(F,K);M(V,this),this.dataTask.context.data=V,C(this).dataBeforeProcessed=V,T(this)},mergeDefaultAndTheme:function(F,j){var K=this.layoutMode,z=K?n(F):{},V=this.subType;t.hasClass(V)&&(V+="Series"),x.merge(F,j.getTheme().get(this.subType)),x.merge(F,this.getDefaultOption()),i.defaultEmphasis(F,"label",["show"]),this.fillDataTextStyle(F.data),K&&o(F,z,K)},mergeOption:function(F,j){F=x.merge(this.option,F,!0),this.fillDataTextStyle(F.data);var K=this.layoutMode;K&&o(this.option,F,K),v(this);var z=this.getInitialData(F,j);M(z,this),this.dataTask.dirty(),this.dataTask.context.data=z,C(this).dataBeforeProcessed=z,T(this)},fillDataTextStyle:function(F){if(F&&!x.isTypedArray(F))for(var j=["show"],K=0;K<F.length;K++)F[K]&&F[K].label&&i.defaultEmphasis(F[K],"label",j)},getInitialData:function(){},appendData:function(F){var j=this.getRawData();j.appendData(F.data)},getData:function(F){var j=P(this);if(j){var K=j.context.data;return F==null?K:K.getLinkedData(F)}else return C(this).data},setData:function(F){var j=P(this);if(j){var K=j.context;K.data!==F&&j.modifyOutputEnd&&j.setOutputEnd(F.count()),K.outputData=F,j!==this.dataTask&&(K.data=F)}C(this).data=F},getSource:function(){return b(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var F=this.coordinateSystem;return F&&F.getBaseAxis&&F.getBaseAxis()},formatTooltip:function(F,j,K,z){var V=this;z=z||"html";var Q=z==="html"?"<br/>":`
`,G=z==="richText",ee={},se=0;function ye(we){var Ce=x.reduce(we,function(tt,gt,ct){var je=ke.getDimensionInfo(ct);return tt|=je&&je.tooltip!==!1&&je.displayName!=null},0),Se=[];Pe.length?x.each(Pe,function(tt){le(E(ke,F,tt),tt)}):x.each(we,le);function le(tt,gt){var ct=ke.getDimensionInfo(gt);if(!ct||ct.otherDims.tooltip===!1)return;var je=ct.type,Zt="sub"+V.seriesIndex+"at"+se,ut=a({color:ht,type:"subItem",renderMode:z,markerId:Zt}),Ht=typeof ut=="string"?ut:ut.content,dr=(Ce?Ht+d(ct.displayName||"-")+": ":"")+d(je==="ordinal"?tt+"":je==="time"?j?"":p("yyyy/MM/dd hh:mm:ss",tt):u(tt));dr&&Se.push(dr),G&&(ee[Zt]=ht,++se)}var pe=Ce?G?`
`:"<br/>":"",_e=pe+Se.join(pe||", ");return{renderMode:z,content:_e,style:ee}}function he(we){return{renderMode:z,content:d(u(we)),style:ee}}var ke=this.getData(),Pe=ke.mapDimension("defaultedTooltip",!0),Ue=Pe.length,$e=this.getRawValue(F),Ge=x.isArray($e),ht=ke.getItemVisual(F,"color");x.isObject(ht)&&ht.colorStops&&(ht=(ht.colorStops[0]||{}).color),ht=ht||"transparent";var Fe=Ue>1||Ge&&!Ue?ye($e):he(Ue?E(ke,F,Pe[0]):Ge?$e[0]:$e),oe=Fe.content,rt=V.seriesIndex+"at"+se,fe=a({color:ht,type:"item",renderMode:z,markerId:rt});ee[rt]=ht,++se;var J=ke.getName(F),Y=this.name;i.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(j?": ":Q):"";var $=typeof fe=="string"?fe:fe.content,de=j?$+Y+oe:Y+$+(J?d(J)+": "+oe:oe);return{html:de,markers:ee}},isAnimationEnabled:function(){if(A.node)return!1;var F=this.getShallow("animation");return F&&(this.getData().count()>this.getShallow("animationThreshold")&&(F=!1)),F},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(F,j,K){var z=this.ecModel,V=s.getColorFromPalette.call(this,F,j,K);return V||(V=z.getColorFromPalette(F,j,K)),V},coordDimToDataDim:function(F){return this.getRawData().mapDimension(F,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});x.mixin(_,e),x.mixin(_,s);function T(F){var j=F.name;i.isNameSpecified(F)||(F.name=w(F)||j)}function w(F){var j=F.getRawData(),K=j.mapDimension("seriesName",!0),z=[];return x.each(K,function(V){var Q=j.getDimensionInfo(V);Q.displayName&&z.push(Q.displayName)}),z.join(" ")}function O(F){return F.model.getRawData().count()}function I(F){var j=F.model;return j.setData(j.getRawData().cloneShallow()),k}function k(F,j){j.outputData&&F.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function M(F,j){x.each(F.CHANGABLE_METHODS,function(K){F.wrapMethod(K,x.curry(U,j))})}function U(F){var j=P(F);j&&j.setOutputEnd(this.count())}function P(F){var j=(F.ecModel||{}).scheduler,K=j&&j.getPipeline(F.uid);if(K){var z=K.currentTask;if(z){var V=z.agentStubMap;V&&(z=V.get(F.uid))}return z}}var X=_;R.exports=X},T6xi:function(R,L,r){var y=r("YgsL"),f=r("nCxF");function x(A,m,p){var d=m.points,u=m.smooth;if(d&&d.length>=2){if(u&&u!=="spline"){var a=f(d,u,p,m.smoothConstraint);A.moveTo(d[0][0],d[0][1]);for(var i=d.length,t=0;t<(p?i:i-1);t++){var s=a[t*2],e=a[t*2+1],l=d[(t+1)%i];A.bezierCurveTo(s[0],s[1],e[0],e[1],l[0],l[1])}}else{u==="spline"&&(d=y(d,p)),A.moveTo(d[0][0],d[0][1]);for(var t=1,n=d.length;t<n;t++)A.lineTo(d[t][0],d[t][1])}p&&A.closePath()}}L.buildPath=x},TIY9:function(R,L,r){var y=r("bYtY"),f=y.each,x=r("vafp"),A=r("4NO4"),m=A.makeInner,p=r("Mgri"),d=r("F5Ls"),u=r("a9QJ"),a=r("p/La"),i=m(),t={load:function(e,l,n){var o=i(l).parsed;if(o)return o;var c=l.specialAreas||{},h=l.geoJSON,g;try{g=h?x(h,n):[]}catch(v){throw new Error(`Invalid geoJson format
`+v.message)}return p(e,g),f(g,function(v){var b=v.name;d(e,v),u(e,v),a(e,v);var S=c[b];S&&v.transformTo(S.left,S.top,S.width,S.height)}),i(l).parsed={regions:g,boundingRect:s(g)}}};function s(e){for(var l,n=0;n<e.length;n++){var o=e[n].getBoundingRect();l=l||o.clone(),l.union(o)}return l}R.exports=t},TJmX:function(R,L,r){var y=r("zM3Q"),f=["itemStyle","borderColor"],x=["itemStyle","borderColor0"],A=["itemStyle","color"],m=["itemStyle","color0"],p={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,u){var a=d.getData();if(a.setVisual({legendSymbol:"roundRect",colorP:s(1,d),colorN:s(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),u.isSeriesFiltered(d))return;var i=d.pipelineContext.large;return!i&&{progress:t};function t(l,n){for(var o;(o=l.next())!=null;){var c=n.getItemModel(o),h=n.getItemLayout(o).sign;n.setItemVisual(o,{color:s(h,c),borderColor:e(h,c)})}}function s(l,n){return n.get(l>0?A:m)}function e(l,n){return n.get(l>0?f:x)}}};R.exports=p},TKrE:function(R,L,r){var y=r("qRkn"),f=r("dt0z"),x=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,A="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",d=A+m+p,u="["+d+"]",a=RegExp(u,"g");function i(t){return t=f(t),t&&t.replace(x,y).replace(a,"")}R.exports=i},TWL2:function(R,L,r){var y=r("IwbS"),f=r("bYtY"),x=r("6Ic6");function A(a,i){y.Group.call(this);var t=new y.Polygon,s=new y.Polyline,e=new y.Text;this.add(t),this.add(s),this.add(e),this.highDownOnUpdate=function(l,n){n==="emphasis"?(s.ignore=s.hoverIgnore,e.ignore=e.hoverIgnore):(s.ignore=s.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(a,i,!0)}var m=A.prototype,p=["itemStyle","opacity"];m.updateData=function(a,i,t){var s=this.childAt(0),e=a.hostModel,l=a.getItemModel(i),n=a.getItemLayout(i),o=a.getItemModel(i).get(p);o=o==null?1:o,s.useStyle({}),t?(s.setShape({points:n.points}),s.setStyle({opacity:0}),y.initProps(s,{style:{opacity:o}},e,i)):y.updateProps(s,{style:{opacity:o},shape:{points:n.points}},e,i);var c=l.getModel("itemStyle"),h=a.getItemVisual(i,"color");s.setStyle(f.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),s.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(a,i),y.setHoverStyle(this)},m._updateLabel=function(a,i){var t=this.childAt(1),s=this.childAt(2),e=a.hostModel,l=a.getItemModel(i),n=a.getItemLayout(i),o=n.label,c=a.getItemVisual(i,"color");y.updateProps(t,{shape:{points:o.linePoints||o.linePoints}},e,i),y.updateProps(s,{style:{x:o.x,y:o.y}},e,i),s.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var h=l.getModel("label"),g=l.getModel("emphasis.label"),v=l.getModel("labelLine"),b=l.getModel("emphasis.labelLine"),c=a.getItemVisual(i,"color");y.setLabelStyle(s.style,s.hoverStyle={},h,g,{labelFetcher:a.hostModel,labelDataIndex:i,defaultText:a.getName(i),autoColor:c,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),s.ignore=s.normalIgnore=!h.get("show"),s.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!v.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(v.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},f.inherits(A,y.Group);var d=x.extend({type:"funnel",render:function(a,i,t){var s=a.getData(),e=this._data,l=this.group;s.diff(e).add(function(n){var o=new A(s,n);s.setItemGraphicEl(n,o),l.add(o)}).update(function(n,o){var c=e.getItemGraphicEl(o);c.updateData(s,n),l.add(c),s.setItemGraphicEl(n,c)}).remove(function(n){var o=e.getItemGraphicEl(n);l.remove(o)}).execute(),this._data=s},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=d;R.exports=u},TYVI:function(R,L,r){var y=r("5GtS"),f=r("T4UG"),x=f.extend({type:"series.gauge",getInitialData:function(m,p){return y(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}}}),A=x;R.exports=A},Tghj:function(R,L,r){(function(y){var f;typeof window!="undefined"?f=window.__DEV__:typeof y!="undefined"&&(f=y.__DEV__),typeof f=="undefined"&&(f=!0);var x=f;L.__DEV__=x}).call(this,r("yLpj"))},ThAp:function(R,L,r){var y=r("bYtY"),f=r("5GtS"),x=r("T4UG"),A=r("7aKB"),m=A.encodeHTML,p=A.addCommas,d=r("cCMj"),u=r("KxfA"),a=u.retrieveRawAttr,i=r("W4dC"),t=r("D5nY"),s=t.makeSeriesEncodeForNameBased,e=x.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(n){for(var o=f(this,{coordDimensions:["value"],encodeDefaulter:y.curry(s,this)}),c=o.mapDimension("value"),h=y.createHashMap(),g=[],v=[],b=0,S=o.count();b<S;b++){var E=o.getName(b);h.set(E,!0),g.push({name:E,value:o.get(c,b),selected:a(o,b,"selected")})}var C=i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(C.regions,function(_){var T=_.name;h.get(T)||(g.push({name:T}),v.push(T))}),this.updateSelectedMap(g),o.appendValues([],v),o},getHostGeoModel:function(){var n=this.option.geoIndex;return n!=null?this.dependentModels.geo[n]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(n){var o=this.getData();return o.get(o.mapDimension("value"),n)},getRegionModel:function(n){var o=this.getData();return o.getItemModel(o.indexOfName(n))},formatTooltip:function(n){for(var o=this.getData(),c=p(this.getRawValue(n)),h=o.getName(n),g=this.seriesGroup,v=[],b=0;b<g.length;b++){var S=g[b].originalData.indexOfName(h),E=o.mapDimension("value");isNaN(g[b].originalData.get(E,S))||v.push(m(g[b].name))}return v.join(", ")+"<br />"+m(h+" : "+c)},getTooltipPosition:function(n){if(n!=null){var o=this.getData().getName(n),c=this.coordinateSystem,h=c.getRegion(o);return h&&c.dataToPoint(h.center)}},setZoom:function(n){this.option.zoom=n},setCenter:function(n){this.option.center=n},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"}});y.mixin(e,d);var l=e;R.exports=l},TkdX:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,m=4;function p(e,l,n){f.Group.call(this);var o=new f.Sector({z2:A});o.seriesIndex=l.seriesIndex;var c=new f.Text({z2:m,silent:e.getModel("label").get("silent")});this.add(o),this.add(c),this.updateData(!0,e,"normal",l,n);function h(){c.ignore=c.hoverIgnore}function g(){c.ignore=c.normalIgnore}this.on("emphasis",h).on("normal",g).on("mouseover",h).on("mouseout",g)}var d=p.prototype;d.updateData=function(e,l,n,o,c){this.node=l,l.piece=this,o=o||this._seriesModel,c=c||this._ecModel;var h=this.childAt(0);h.dataIndex=l.dataIndex;var g=l.getModel(),v=l.getLayout(),b=y.extend({},v);b.label=null;var S=a(l,o,c);s(l,o,S);var E=g.getModel("itemStyle").getItemStyle(),C;if(n==="normal")C=E;else{var _=g.getModel(n+".itemStyle").getItemStyle();C=y.merge(_,E)}C=y.defaults({lineJoin:"bevel",fill:C.fill||S},C),e?(h.setShape(b),h.shape.r=v.r0,f.updateProps(h,{shape:{r:v.r}},o,l.dataIndex),h.useStyle(C)):typeof C.fill=="object"&&C.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(f.updateProps(h,{shape:b},o),h.useStyle(C)):f.updateProps(h,{shape:b,style:C},o),this._updateLabel(o,S,n);var T=g.getShallow("cursor");if(T&&h.attr("cursor",T),e){var w=o.getShallow("highlightPolicy");this._initEvents(h,l,o,w)}this._seriesModel=o||this._seriesModel,this._ecModel=c||this._ecModel,f.setHoverStyle(this)},d.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(n){n.piece&&(l.node===n?n.piece.updateData(!1,n,"emphasis"):t(n,l.node,e)?n.piece.childAt(0).trigger("highlight"):e!==x.NONE&&n.piece.childAt(0).trigger("downplay"))})},d.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},d.onHighlight=function(){this.updateData(!1,this.node,"highlight")},d.onDownplay=function(){this.updateData(!1,this.node,"downplay")},d._updateLabel=function(e,l,n){var o=this.node.getModel(),c=o.getModel("label"),h=n==="normal"||n==="emphasis"?c:o.getModel(n+".label"),g=o.getModel("emphasis.label"),v=y.retrieve(e.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);j("show")===!1&&(v="");var b=this.node.getLayout(),S=h.get("minAngle");S==null&&(S=c.get("minAngle")),S=S/180*Math.PI;var E=b.endAngle-b.startAngle;S!=null&&Math.abs(E)<S&&(v="");var C=this.childAt(1);f.setLabelStyle(C.style,C.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?v:null,autoColor:l,useInsideStyle:!0});var _=(b.startAngle+b.endAngle)/2,T=Math.cos(_),w=Math.sin(_),O,I=j("position"),k=j("distance")||0,M=j("align");I==="outside"?(O=b.r+k,M=_>Math.PI/2?"right":"left"):!M||M==="center"?(O=(b.r+b.r0)/2,M="center"):M==="left"?(O=b.r0+k,_>Math.PI/2&&(M="right")):M==="right"&&(O=b.r-k,_>Math.PI/2&&(M="left")),C.attr("style",{text:v,textAlign:M,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var U=O*T+b.cx,P=O*w+b.cy;C.attr("position",[U,P]);var X=j("rotate"),F=0;X==="radial"?(F=-_,F<-Math.PI/2&&(F+=Math.PI)):X==="tangential"?(F=Math.PI/2-_,F>Math.PI/2?F-=Math.PI:F<-Math.PI/2&&(F+=Math.PI)):typeof X=="number"&&(F=X*Math.PI/180),C.attr("rotation",F);function j(K){var z=h.get(K);return z==null?c.get(K):z}},d._initEvents=function(e,l,n,o){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(o)},g=function(){c.onNormal()},v=function(){c.onDownplay()},b=function(){c.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",g).on("emphasis",h).on("normal",g).on("downplay",v).on("highlight",b)},y.inherits(p,f.Group);var u=p;function a(e,l,n){var o=e.getVisual("color"),c=e.getVisual("visualMeta");(!c||c.length===0)&&(o=null);var h=e.getModel("itemStyle").get("color");if(h)return h;if(o)return o;if(e.depth===0)return n.option.color[0];var g=n.option.color.length;return h=n.option.color[i(e)%g],h}function i(e){for(var l=e;l.depth>1;)l=l.parentNode;var n=e.getAncestors()[0];return y.indexOf(n.children,l)}function t(e,l,n){return n===x.NONE?!1:n===x.SELF?e===l:n===x.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function s(e,l,n){var o=l.getData();o.setItemVisual(e.dataIndex,"color",n)}R.exports=u},Tp9H:function(R,L,r){var y=r("ItGF"),f=r("Kagy"),x=r("IUWy"),A=f.toolbox.saveAsImage;function m(u){this.model=u}m.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:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},m.prototype.unusable=!y.canvasSupported;var p=m.prototype;p.onclick=function(u,a){var i=this.model,t=i.get("name")||u.get("title.0.text")||"echarts",s=a.getZr().painter.getType()==="svg",e=s?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:e,backgroundColor:i.get("backgroundColor",!0)||u.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&!y.browser.ie&&!y.browser.edge){var n=document.createElement("a");n.download=t+"."+e,n.target="_blank",n.href=l;var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});n.dispatchEvent(o)}else if(window.navigator.msSaveOrOpenBlob){for(var c=atob(l.split(",")[1]),h=c.length,g=new Uint8Array(h);h--;)g[h]=c.charCodeAt(h);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,t+"."+e)}else{var b=i.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',E=window.open();E.document.write(S)}},x.register("saveAsImage",m);var d=m;R.exports=d},Tsn0:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("gGsP"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"U/Mo":function(R,L){function r(f){var x=f.coordinateSystem;if(x.type!=="view")return 1;var A=f.option.nodeScaleRatio,m=x.scale,p=m&&m[0]||1,d=x.getZoom(),u=(d-1)*A+1;return u/p}function y(f){var x=f.getVisual("symbolSize");return x instanceof Array&&(x=(x[0]+x[1])/2),+x}L.getNodeGlobalScale=r,L.getSymbolSize=y},UADf:function(R,L,r){},UESt:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={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"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="RightOutlined";var d=L.a=f.forwardRef(p)},"UNi/":function(R,L){function r(y,f){for(var x=-1,A=Array(y);++x<y;)A[x]=f(x);return A}R.exports=r},UOVi:function(R,L,r){var y=r("bYtY"),f=r("7aKB"),x=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function m(a){return y.indexOf(A,a)>=0}function p(a,i){a=a.slice();var t=y.map(a,f.capitalFirst);i=(i||[]).slice();var s=y.map(i,f.capitalFirst);return function(e,l){y.each(a,function(n,o){for(var c={name:n,capital:t[o]},h=0;h<i.length;h++)c[i[h]]=n+s[h];e.call(l,c)})}}var d=p(x,["axisIndex","axis","index","id"]);function u(a,i,t){return function(n){var o={nodes:[],records:{}};if(i(function(g){o.records[g.name]={}}),!n)return o;l(n,o);var c;do c=!1,a(h);while(c);function h(g){!s(g,o)&&e(g,o)&&(l(g,o),c=!0)}return o};function s(n,o){return y.indexOf(o.nodes,n)>=0}function e(n,o){var c=!1;return i(function(h){y.each(t(n,h)||[],function(g){o.records[h.name][g]&&(c=!0)})}),c}function l(n,o){o.nodes.push(n),i(function(c){y.each(t(n,c)||[],function(h){o.records[c.name][h]=!0})})}}L.isCoordSupported=m,L.createNameEach=p,L.eachAxisDim=d,L.createLinkedNodesFinder=u},Uc92:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};L.default=y},UnoB:function(R,L,r){var y=r("bYtY"),f=r("OELB");function x(p,d){p.eachSeriesByType("themeRiver",function(u){var a=u.getData(),i=u.coordinateSystem,t={},s=i.getRect();t.rect=s;var e=u.get("boundaryGap"),l=i.getAxis();if(t.boundaryGap=e,l.orient==="horizontal"){e[0]=f.parsePercent(e[0],s.height),e[1]=f.parsePercent(e[1],s.height);var n=s.height-e[0]-e[1];A(a,u,n)}else{e[0]=f.parsePercent(e[0],s.width),e[1]=f.parsePercent(e[1],s.width);var o=s.width-e[0]-e[1];A(a,u,o)}a.setLayout("layoutInfo",t)})}function A(p,d,u){if(!p.count())return;for(var a=d.coordinateSystem,i=d.getLayerSeries(),t=p.mapDimension("single"),s=p.mapDimension("value"),e=y.map(i,function(S){return y.map(S.indices,function(E){var C=a.dataToPoint(p.get(t,E));return C[1]=p.get(s,E),C})}),l=m(e),n=l.y0,o=u/l.max,c=i.length,h=i[0].indices.length,g,v=0;v<h;++v){g=n[v]*o,p.setItemLayout(i[0].indices[v],{layerIndex:0,x:e[0][v][0],y0:g,y:e[0][v][1]*o});for(var b=1;b<c;++b)g+=e[b-1][v][1]*o,p.setItemLayout(i[b].indices[v],{layerIndex:b,x:e[b][v][0],y0:g,y:e[b][v][1]*o})}}function m(p){for(var d=p.length,u=p[0].length,a=[],i=[],t=0,s,e={},l=0;l<u;++l){for(var n=0,s=0;n<d;++n)s+=p[n][l][1];s>t&&(t=s),a.push(s)}for(var o=0;o<u;++o)i[o]=(t-a[o])/2;t=0;for(var c=0;c<u;++c){var h=a[c]+i[c];h>t&&(t=h)}return e.y0=i,e.max=t,e}R.exports=x},Urep:function(R,L,r){},V6Ve:function(R,L,r){var y=r("kekF"),f=y(Object.keys,Object);R.exports=f},VFCP:function(R,L,r){r("dBmv"),r("KamJ")},VPsl:function(R,L){function r(y){y.eachSeriesByType("map",function(f){var x=f.get("color"),A=f.getModel("itemStyle"),m=A.get("areaColor"),p=A.get("color")||x[f.seriesIndex%x.length];f.getData().setVisual({areaColor:m,color:p})})}R.exports=r},VR9l:function(R,L,r){var y=r("KCsZ"),f=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),x={getItemStyle:function(A,m){var p=f(this,A,m),d=this.getBorderLineDash();return d&&(p.lineDash=d),p},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};R.exports=x},VSLf:function(R,L,r){r("I+Bx"),r("F0hE"),r("bBKM")},VSMT:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.decodeUTF8=y,L.encodeUTF8=f;function y(x){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(x))}catch(m){if(m instanceof URIError&&A)return x;throw m}}function f(x){return unescape(encodeURIComponent(x))}},VXYp:function(R,L,r){var y=r("bYtY"),f=r("SgGq"),x=r("iLNv"),A="\0_ec_dataZoom_roams";function m(e,l){var n=u(e),o=l.dataZoomId,c=l.coordId;y.each(n,function(v,b){var S=v.dataZoomInfos;S[o]&&y.indexOf(l.allCoordIds,c)<0&&(delete S[o],v.count--)}),i(n);var h=n[c];h||(h=n[c]={coordId:c,dataZoomInfos:{},count:0},h.controller=a(e,h),h.dispatchAction=y.curry(t,e)),!h.dataZoomInfos[o]&&h.count++,h.dataZoomInfos[o]=l;var g=s(h.dataZoomInfos);h.controller.enable(g.controlType,g.opt),h.controller.setPointerChecker(l.containsPoint),x.createOrUpdate(h,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function p(e,l){var n=u(e);y.each(n,function(o){o.controller.dispose();var c=o.dataZoomInfos;c[l]&&(delete c[l],o.count--)}),i(n)}function d(e){return e.type+"\0_"+e.id}function u(e){var l=e.getZr();return l[A]||(l[A]={})}function a(e,l){var n=new f(e.getZr());return y.each(["pan","zoom","scrollMove"],function(o){n.on(o,function(c){var h=[];y.each(l.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var v=(g.getRange||{})[o],b=v&&v(l.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&h.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),h.length&&l.dispatchAction(h)})}),n}function i(e){y.each(e,function(l,n){l.count||(l.controller.dispose(),delete e[n])})}function t(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function s(e){var l,n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return y.each(e,function(h){var g=h.dataZoomModel,v=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;o[n+v]>o[n+l]&&(l=v),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}L.register=m,L.unregister=p,L.generateCoordId=d},VaNO:function(R,L){function r(y){return this.__data__.has(y)}R.exports=r},VaxA:function(R,L,r){var y=r("bYtY");function f(p,d,u){if(p&&y.indexOf(d,p.type)>=0){var a=u.getData().tree.root,i=p.targetNode;if(typeof i=="string"&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var t=p.targetNodeId;if(t!=null&&(i=a.getNodeById(t)))return{node:i}}}function x(p){for(var d=[];p;)p=p.parentNode,p&&d.push(p);return d.reverse()}function A(p,d){var u=x(p);return y.indexOf(u,d)>=0}function m(p,d){for(var u=[];p;){var a=p.dataIndex;u.push({name:p.name,dataIndex:a,value:d.getRawValue(a)}),p=p.parentNode}return u.reverse(),u}L.retrieveTargetInfo=f,L.getPathToRoot=x,L.aboveViewRoot=A,L.wrapTreePathInfo=m},Ved0:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("1PJx"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},Vi4m:function(R,L,r){var y=r("bYtY");function f(A){A!=null&&y.extend(this,A),this.otherDims={}}var x=f;R.exports=x},Vl3Y:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("J4zp"),A=r.n(x),m=r("lSNA"),p=r.n(m),d=r("q1tI"),u=r("TSYQ"),a=r.n(u),i=r("85Yc"),t=r("H84U"),s=r("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=d.createContext({updateItemErrors:function(){}}),n=function(St){var Qt=Object(s.default)(St,["prefixCls"]);return d.createElement(i.FormProvider,Qt)};function o(ue){return typeof ue=="object"&&ue!=null&&ue.nodeType===1}function c(ue,St){return(!St||ue!=="hidden")&&ue!=="visible"&&ue!=="clip"}function h(ue,St){if(ue.clientHeight<ue.scrollHeight||ue.clientWidth<ue.scrollWidth){var Qt=getComputedStyle(ue,null);return c(Qt.overflowY,St)||c(Qt.overflowX,St)||function(dt){var Jt=function($t){if(!$t.ownerDocument||!$t.ownerDocument.defaultView)return null;try{return $t.ownerDocument.defaultView.frameElement}catch(tn){return null}}(dt);return!!Jt&&(Jt.clientHeight<dt.scrollHeight||Jt.clientWidth<dt.scrollWidth)}(ue)}return!1}function g(ue,St,Qt,dt,Jt,$t,tn,kt){return $t<ue&&tn>St||$t>ue&&tn<St?0:$t<=ue&&kt<=Qt||tn>=St&&kt>=Qt?$t-ue-dt:tn>St&&kt<Qt||$t<ue&&kt>Qt?tn-St+Jt:0}var v=function(St,Qt){var dt=window,Jt=Qt.scrollMode,$t=Qt.block,tn=Qt.inline,kt=Qt.boundary,tr=Qt.skipOverflowHiddenElements,Bt=typeof kt=="function"?kt:function(ot){return ot!==kt};if(!o(St))throw new TypeError("Invalid target");for(var ft,it,Or=document.scrollingElement||document.documentElement,an=[],En=St;o(En)&&Bt(En);){if((En=(it=(ft=En).parentElement)==null?ft.getRootNode().host||null:it)===Or){an.push(En);break}En!=null&&En===document.body&&h(En)&&!h(document.documentElement)||En!=null&&h(En,tr)&&an.push(En)}for(var Bn=dt.visualViewport?dt.visualViewport.width:innerWidth,vi=dt.visualViewport?dt.visualViewport.height:innerHeight,Ln=window.scrollX||pageXOffset,Mn=window.scrollY||pageYOffset,Xt=St.getBoundingClientRect(),wt=Xt.height,De=Xt.width,Re=Xt.top,Me=Xt.right,nt=Xt.bottom,yt=Xt.left,sr=$t==="start"||$t==="nearest"?Re:$t==="end"?nt:Re+wt/2,Nr=tn==="center"?yt+De/2:tn==="end"?Me:yt,mn=[],Yn=0;Yn<an.length;Yn++){var Jn=an[Yn],ur=Jn.getBoundingClientRect(),Tt=ur.height,Ct=ur.width,Ar=ur.top,er=ur.right,Ft=ur.bottom,ir=ur.left;if(Jt==="if-needed"&&Re>=0&&yt>=0&&nt<=vi&&Me<=Bn&&Re>=Ar&&nt<=Ft&&yt>=ir&&Me<=er)return mn;var Pt=getComputedStyle(Jn),rr=parseInt(Pt.borderLeftWidth,10),Yr=parseInt(Pt.borderTopWidth,10),Pr=parseInt(Pt.borderRightWidth,10),Mr=parseInt(Pt.borderBottomWidth,10),fn=0,wn=0,ai="offsetWidth"in Jn?Jn.offsetWidth-Jn.clientWidth-rr-Pr:0,ri="offsetHeight"in Jn?Jn.offsetHeight-Jn.clientHeight-Yr-Mr:0,gi="offsetWidth"in Jn?Jn.offsetWidth===0?0:Ct/Jn.offsetWidth:0,Ii="offsetHeight"in Jn?Jn.offsetHeight===0?0:Tt/Jn.offsetHeight:0;if(Or===Jn)fn=$t==="start"?sr:$t==="end"?sr-vi:$t==="nearest"?g(Mn,Mn+vi,vi,Yr,Mr,Mn+sr,Mn+sr+wt,wt):sr-vi/2,wn=tn==="start"?Nr:tn==="center"?Nr-Bn/2:tn==="end"?Nr-Bn:g(Ln,Ln+Bn,Bn,rr,Pr,Ln+Nr,Ln+Nr+De,De),fn=Math.max(0,fn+Mn),wn=Math.max(0,wn+Ln);else{fn=$t==="start"?sr-Ar-Yr:$t==="end"?sr-Ft+Mr+ri:$t==="nearest"?g(Ar,Ft,Tt,Yr,Mr+ri,sr,sr+wt,wt):sr-(Ar+Tt/2)+ri/2,wn=tn==="start"?Nr-ir-rr:tn==="center"?Nr-(ir+Ct/2)+ai/2:tn==="end"?Nr-er+Pr+ai:g(ir,er,Ct,rr,Pr+ai,Nr,Nr+De,De);var Mi=Jn.scrollLeft,Qi=Jn.scrollTop;sr+=Qi-(fn=Math.max(0,Math.min(Qi+fn/Ii,Jn.scrollHeight-Tt/Ii+ri))),Nr+=Mi-(wn=Math.max(0,Math.min(Mi+wn/gi,Jn.scrollWidth-Ct/gi+ai)))}mn.push({el:Jn,top:fn,left:wn})}return mn};function b(ue){return ue===Object(ue)&&Object.keys(ue).length!==0}function S(ue,St){St===void 0&&(St="auto");var Qt="scrollBehavior"in document.body.style;ue.forEach(function(dt){var Jt=dt.el,$t=dt.top,tn=dt.left;Jt.scroll&&Qt?Jt.scroll({top:$t,left:tn,behavior:St}):(Jt.scrollTop=$t,Jt.scrollLeft=tn)})}function E(ue){return ue===!1?{block:"end",inline:"nearest"}:b(ue)?ue:{block:"start",inline:"nearest"}}function C(ue,St){var Qt=ue.isConnected||ue.ownerDocument.documentElement.contains(ue);if(b(St)&&typeof St.behavior=="function")return St.behavior(Qt?v(ue,St):[]);if(!Qt)return;var dt=E(St);return S(v(ue,dt),dt.behavior)}var _=C;function T(ue){return ue===void 0||ue===!1?[]:Array.isArray(ue)?ue:[ue]}function w(ue,St){if(!ue.length)return;var Qt=ue.join("_");return St?"".concat(St,"_").concat(Qt):Qt}function O(ue){var St=T(ue);return St.join("_")}function I(ue){var St=Object(i.useForm)(),Qt=A()(St,1),dt=Qt[0],Jt=Object(d.useRef)({}),$t=Object(d.useMemo)(function(){return ue||f()(f()({},dt),{__INTERNAL__:{itemRef:function(kt){return function(tr){var Bt=O(kt);tr?Jt.current[Bt]=tr:delete Jt.current[Bt]}}},scrollToField:function(kt){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=T(kt),ft=w(Bt,$t.__INTERNAL__.name),it=ft?document.getElementById(ft):null;it&&_(it,f()({scrollMode:"if-needed",block:"nearest"},tr))},getFieldInstance:function(kt){var tr=O(kt);return Jt.current[tr]}})},[ue,dt]);return[$t]}var k=r("3Nzz"),M=function(ue,St){var Qt={};for(var dt in ue)Object.prototype.hasOwnProperty.call(ue,dt)&&St.indexOf(dt)<0&&(Qt[dt]=ue[dt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,dt=Object.getOwnPropertySymbols(ue);Jt<dt.length;Jt++)St.indexOf(dt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(ue,dt[Jt])&&(Qt[dt[Jt]]=ue[dt[Jt]]);return Qt},U=function(St,Qt){var dt,Jt=d.useContext(k.b),$t=d.useContext(t.b),tn=$t.getPrefixCls,kt=$t.direction,tr=St.name,Bt=St.prefixCls,ft=St.className,it=ft===void 0?"":ft,Or=St.size,an=Or===void 0?Jt:Or,En=St.form,Bn=St.colon,vi=St.labelAlign,Ln=St.labelCol,Mn=St.wrapperCol,Xt=St.hideRequiredMark,wt=St.layout,De=wt===void 0?"horizontal":wt,Re=St.scrollToFirstError,Me=St.requiredMark,nt=St.onFinishFailed,yt=M(St,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),sr=Object(d.useMemo)(function(){return Me!==void 0?Me:!Xt},[Xt,Me]),Nr=tn("form",Bt),mn=a()(Nr,(dt={},p()(dt,"".concat(Nr,"-").concat(De),!0),p()(dt,"".concat(Nr,"-hide-required-mark"),sr===!1),p()(dt,"".concat(Nr,"-rtl"),kt==="rtl"),p()(dt,"".concat(Nr,"-").concat(an),an),dt),it),Yn=I(En),Jn=A()(Yn,1),ur=Jn[0],Tt=ur.__INTERNAL__;Tt.name=tr;var Ct=Object(d.useMemo)(function(){return{name:tr,labelAlign:vi,labelCol:Ln,wrapperCol:Mn,vertical:De==="vertical",colon:Bn,requiredMark:sr,itemRef:Tt.itemRef}},[tr,vi,Ln,Mn,De,Bn,sr]);d.useImperativeHandle(Qt,function(){return ur});var Ar=function(Ft){nt&&nt(Ft),Re&&Ft.errorFields.length&&ur.scrollToField(Ft.errorFields[0].name)};return d.createElement(k.a,{size:an},d.createElement(e.Provider,{value:Ct},d.createElement(i.default,f()({id:tr},yt,{onFinishFailed:Ar,form:ur,className:mn}))))},P=d.forwardRef(U),X=P,F=r("cDf5"),j=r.n(F),K=r("RIqP"),z=r.n(K),V=r("Y+p1"),Q=r.n(V),G=r("KW7l"),ee=r("c+Xe"),se=r("qrJ5"),ye=r("CWQg"),he=r("uaoM"),ke=r("/kpp"),Pe=r("YMnH"),Ue=r("ZvpZ"),$e=function(St){var Qt=St.prefixCls,dt=St.label,Jt=St.htmlFor,$t=St.labelCol,tn=St.labelAlign,kt=St.colon,tr=St.required,Bt=St.requiredMark,ft=Object(Pe.b)("Form"),it=A()(ft,1),Or=it[0];return dt?d.createElement(e.Consumer,{key:"label"},function(an){var En,Bn=an.vertical,vi=an.labelAlign,Ln=an.labelCol,Mn=an.colon,Xt,wt=$t||Ln||{},De=tn||vi,Re="".concat(Qt,"-item-label"),Me=a()(Re,De==="left"&&"".concat(Re,"-left"),wt.className),nt=dt,yt=kt===!0||Mn!==!1&&kt!==!1,sr=yt&&!Bn;sr&&typeof dt=="string"&&dt.trim()!==""&&(nt=dt.replace(/[:|]\s*$/,"")),Bt==="optional"&&!tr&&(nt=d.createElement(d.Fragment,null,nt,d.createElement("span",{className:"".concat(Qt,"-item-optional")},(Or==null?void 0:Or.optional)||((Xt=Ue.a.Form)===null||Xt===void 0?void 0:Xt.optional))));var Nr=a()((En={},p()(En,"".concat(Qt,"-item-required"),tr),p()(En,"".concat(Qt,"-item-required-mark-optional"),Bt==="optional"),p()(En,"".concat(Qt,"-item-no-colon"),!yt),En));return d.createElement(ke.a,f()({},wt,{className:Me}),d.createElement("label",{htmlFor:Jt,className:Nr,title:typeof dt=="string"?dt:""},nt))}):null},Ge=$e,ht=r("zU+y"),Fe=r.n(ht),oe=r("f0uV"),rt=r.n(oe),fe=r("hfce"),J=r.n(fe),Y=r("/TCm"),$=r.n(Y),de=r("YrtM"),we=r("HTfv"),Ce=r("hkKa");function Se(ue,St,Qt){var dt=d.useRef({errors:ue,visible:!!ue.length}),Jt=Object(Ce.a)(),$t=function(){var kt=dt.current.visible,tr=!!ue.length,Bt=dt.current.errors;dt.current.errors=ue,dt.current.visible=tr,kt!==tr?St(tr):(Bt.length!==ue.length||Bt.some(function(ft,it){return ft!==ue[it]}))&&Jt()};return d.useEffect(function(){if(!Qt){var tn=setTimeout($t,10);return function(){return clearTimeout(tn)}}},[ue]),Qt&&$t(),[dt.current.visible,dt.current.errors]}var le={success:J.a,warning:$.a,error:rt.a,validating:Fe.a},pe=function(St){var Qt=St.prefixCls,dt=St.wrapperCol,Jt=St.children,$t=St.help,tn=St.errors,kt=St.onDomErrorVisibleChange,tr=St.hasFeedback,Bt=St.validateStatus,ft=St.extra,it=Object(Ce.a)(),Or="".concat(Qt,"-item"),an=d.useContext(e),En=dt||an.wrapperCol||{},Bn=a()("".concat(Or,"-control"),En.className),vi=Se(tn,function(nt){nt&&Promise.resolve().then(function(){kt(!0)}),it()},!!$t),Ln=A()(vi,2),Mn=Ln[0],Xt=Ln[1];d.useEffect(function(){return function(){kt(!1)}},[]);var wt=Object(de.a)(function(){return Xt},Mn,function(nt,yt){return yt}),De=Bt&&le[Bt],Re=tr&&De?d.createElement("span",{className:"".concat(Or,"-children-icon")},d.createElement(De,null)):null,Me=f()({},an);return delete Me.labelCol,delete Me.wrapperCol,d.createElement(e.Provider,{value:Me},d.createElement(ke.a,f()({},En,{className:Bn}),d.createElement("div",{className:"".concat(Or,"-control-input")},d.createElement("div",{className:"".concat(Or,"-control-input-content")},Jt),Re),d.createElement(we.default,{motionDeadline:500,visible:Mn,motionName:"show-help",onLeaveEnd:function(){kt(!1)},motionAppear:!0,removeOnLeave:!0},function(nt){var yt=nt.className;return d.createElement("div",{className:a()("".concat(Or,"-explain"),yt),key:"help"},wt.map(function(sr,Nr){return d.createElement("div",{key:Nr,role:"alert"},sr)}))}),ft&&d.createElement("div",{className:"".concat(Or,"-extra")},ft)))},_e=pe,tt=r("0n0R"),gt=r("xEkU"),ct=r.n(gt);function je(ue){var St=d.useState(ue),Qt=A()(St,2),dt=Qt[0],Jt=Qt[1],$t=Object(d.useRef)(null),tn=Object(d.useRef)([]),kt=Object(d.useRef)(!1);d.useEffect(function(){return function(){kt.current=!0,ct.a.cancel($t.current)}},[]);function tr(Bt){if(kt.current)return;$t.current===null&&(tn.current=[],$t.current=ct()(function(){$t.current=null,Jt(function(ft){var it=ft;return tn.current.forEach(function(Or){it=Or(it)}),it})})),tn.current.push(Bt)}return[dt,tr]}function Zt(){var ue=d.useContext(e),St=ue.itemRef,Qt=d.useRef({});function dt(Jt,$t){var tn=$t&&j()($t)==="object"&&$t.ref,kt=Jt.join("_");return(Qt.current.name!==kt||Qt.current.originRef!==tn)&&(Qt.current.name=kt,Qt.current.originRef=tn,Qt.current.ref=Object(ee.a)(St(Jt),tn)),Qt.current.ref}return dt}var ut=function(ue,St){var Qt={};for(var dt in ue)Object.prototype.hasOwnProperty.call(ue,dt)&&St.indexOf(dt)<0&&(Qt[dt]=ue[dt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,dt=Object.getOwnPropertySymbols(ue);Jt<dt.length;Jt++)St.indexOf(dt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(ue,dt[Jt])&&(Qt[dt[Jt]]=ue[dt[Jt]]);return Qt},Ht=Object(ye.a)("success","warning","error","validating",""),dr=d.memo(function(ue){var St=ue.children;return St},function(ue,St){return ue.value===St.value&&ue.update===St.update});function Vt(ue){return ue===null&&Object(he.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ue==null)}function Mt(ue){var St=ue.name,Qt=ue.fieldKey,dt=ue.noStyle,Jt=ue.dependencies,$t=ue.prefixCls,tn=ue.style,kt=ue.className,tr=ue.shouldUpdate,Bt=ue.hasFeedback,ft=ue.help,it=ue.rules,Or=ue.validateStatus,an=ue.children,En=ue.required,Bn=ue.label,vi=ue.trigger,Ln=vi===void 0?"onChange":vi,Mn=ue.validateTrigger,Xt=ue.hidden,wt=ut(ue,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),De=d.useRef(!1),Re=d.useContext(t.b),Me=Re.getPrefixCls,nt=d.useContext(e),yt=nt.name,sr=nt.requiredMark,Nr=d.useContext(l),mn=Nr.updateItemErrors,Yn=d.useState(!!ft),Jn=A()(Yn,2),ur=Jn[0],Tt=Jn[1],Ct=d.useRef(Or),Ar=je({}),er=A()(Ar,2),Ft=er[0],ir=er[1],Pt=d.useContext(G.b),rr=Pt.validateTrigger,Yr=Mn!==void 0?Mn:rr;function Pr(ot){De.current||Tt(ot)}var Mr=Vt(St),fn=d.useRef([]);d.useEffect(function(){return function(){De.current=!0,mn(fn.current.join("__SPLIT__"),[])}},[]);var wn=Me("form",$t),ai=dt?mn:function(ot,Ne){ir(function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(He[ot],Ne)?He:f()(f()({},He),p()({},ot,Ne))})},ri=Zt();function gi(ot,Ne,He,Ye){var at,qe;if(dt&&!Xt)return ot;var lt=[];Object.keys(Ft).forEach(function(Jr){lt=[].concat(z()(lt),z()(Ft[Jr]||[]))});var Et;ft!=null?Et=T(ft):(Et=He?He.errors:[],Et=[].concat(z()(Et),z()(lt)));var At="";Or!==void 0?At=Or:(He==null?void 0:He.validating)?At="validating":((qe=He==null?void 0:He.errors)===null||qe===void 0?void 0:qe.length)||lt.length?At="error":(He==null?void 0:He.touched)&&(At="success"),ur&&ft&&(Ct.current=At);var fr=(at={},p()(at,"".concat(wn,"-item"),!0),p()(at,"".concat(wn,"-item-with-help"),ur||ft),p()(at,"".concat(kt),!!kt),p()(at,"".concat(wn,"-item-has-feedback"),At&&Bt),p()(at,"".concat(wn,"-item-has-success"),At==="success"),p()(at,"".concat(wn,"-item-has-warning"),At==="warning"),p()(at,"".concat(wn,"-item-has-error"),At==="error"),p()(at,"".concat(wn,"-item-has-error-leave"),!ft&&ur&&Ct.current==="error"),p()(at,"".concat(wn,"-item-is-validating"),At==="validating"),p()(at,"".concat(wn,"-item-hidden"),Xt),at);return d.createElement(se.a,f()({className:a()(fr),style:tn,key:"row"},Object(s.default)(wt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ge,f()({htmlFor:Ne,required:Ye,requiredMark:sr},ue,{prefixCls:wn})),d.createElement(_e,f()({},ue,He,{errors:Et,prefixCls:wn,onDomErrorVisibleChange:Pr,validateStatus:At}),d.createElement(l.Provider,{value:{updateItemErrors:ai}},ot)))}var Ii=typeof an=="function",Mi=d.useRef(0);if(Mi.current+=1,!Mr&&!Ii&&!Jt)return gi(an);var Qi={};return typeof Bn=="string"&&(Qi.label=Bn),d.createElement(i.Field,f()({},ue,{messageVariables:Qi,trigger:Ln,validateTrigger:Yr,onReset:function(){Pr(!1)}}),function(ot,Ne,He){var Ye=Ne.errors,at=T(St).length&&Ne?Ne.name:[],qe=w(at,yt);if(dt){if(fn.current=z()(at),Qt){var lt=Array.isArray(Qt)?Qt:[Qt];fn.current=[].concat(z()(at.slice(0,-1)),z()(lt))}mn(fn.current.join("__SPLIT__"),Ye)}var Et=En!==void 0?En:!!(it&&it.some(function(dn){if(dn&&j()(dn)==="object"&&dn.required)return!0;if(typeof dn=="function"){var gr=dn(He);return gr&&gr.required}return!1})),At=f()({},ot),fr=null;if(Object(he.a)(!(tr&&Jt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(an)&&Mr)Object(he.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),fr=an;else if(Ii&&(!(tr||Jt)||Mr))Object(he.a)(!!(tr||Jt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(he.a)(!Mr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(Jt&&!Ii&&!Mr)Object(he.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(tt.b)(an)){Object(he.a)(an.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Jr=f()(f()({},an.props),At);Jr.id||(Jr.id=qe),Object(ee.c)(an)&&(Jr.ref=ri(at,an));var Vr=new Set([].concat(z()(T(Ln)),z()(T(Yr))));Vr.forEach(function(dn){Jr[dn]=function(){for(var gr,Wn,kr,Fn,vn,$r=arguments.length,ei=new Array($r),fi=0;fi<$r;fi++)ei[fi]=arguments[fi];(kr=At[dn])===null||kr===void 0||(gr=kr).call.apply(gr,[At].concat(ei)),(vn=(Fn=an.props)[dn])===null||vn===void 0||(Wn=vn).call.apply(Wn,[Fn].concat(ei))}}),fr=d.createElement(dr,{value:At[ue.valuePropName||"value"],update:Mi.current},Object(tt.a)(an,Jr))}else Ii&&(tr||Jt)&&!Mr?fr=an(He):(Object(he.a)(!at.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),fr=an);return gi(fr,qe,Ne,Et)})}var Gt=Mt,Ve=function(ue,St){var Qt={};for(var dt in ue)Object.prototype.hasOwnProperty.call(ue,dt)&&St.indexOf(dt)<0&&(Qt[dt]=ue[dt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,dt=Object.getOwnPropertySymbols(ue);Jt<dt.length;Jt++)St.indexOf(dt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(ue,dt[Jt])&&(Qt[dt[Jt]]=ue[dt[Jt]]);return Qt},me=function(St){var Qt=St.children,dt=Ve(St,["children"]);return Object(he.a)(!!dt.name,"Form.List","Miss `name` prop."),d.createElement(i.List,dt,function(Jt,$t){return Qt(Jt.map(function(tn){return f()(f()({},tn),{fieldKey:tn.key})}),$t)})},te=me,Ze=X;Ze.Item=Gt,Ze.List=te,Ze.useForm=I,Ze.Provider=n,Ze.create=function(){Object(he.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Xe=L.a=Ze},VpOo:function(R,L){function r(y,f){var x=f.x,A=f.y,m=f.width,p=f.height,d=f.r,u,a,i,t;m<0&&(x=x+m,m=-m),p<0&&(A=A+p,p=-p),typeof d=="number"?u=a=i=t=d:d instanceof Array?d.length===1?u=a=i=t=d[0]:d.length===2?(u=i=d[0],a=t=d[1]):d.length===3?(u=d[0],a=t=d[1],i=d[2]):(u=d[0],a=d[1],i=d[2],t=d[3]):u=a=i=t=0;var s;u+a>m&&(s=u+a,u*=m/s,a*=m/s),i+t>m&&(s=i+t,i*=m/s,t*=m/s),a+i>p&&(s=a+i,a*=p/s,i*=p/s),u+t>p&&(s=u+t,u*=p/s,t*=p/s),y.moveTo(x+u,A),y.lineTo(x+m-a,A),a!==0&&y.arc(x+m-a,A+a,a,-Math.PI/2,0),y.lineTo(x+m,A+p-i),i!==0&&y.arc(x+m-i,A+p-i,i,0,Math.PI/2),y.lineTo(x+t,A+p),t!==0&&y.arc(x+t,A+p-t,t,Math.PI/2,Math.PI),y.lineTo(x,A+u),u!==0&&y.arc(x+u,A+u,u,Math.PI,Math.PI*1.5)}L.buildPath=r},"VrN/":function(R,L,r){(function(y,f){R.exports=f()})(this,function(){"use strict";var y=navigator.userAgent,f=navigator.platform,x=/gecko\/\d/i.test(y),A=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),p=/Edge\/(\d+)/.exec(y),d=A||m||p,u=d&&(A?document.documentMode||6:+(p||m)[1]),a=!p&&/WebKit\//.test(y),i=a&&/Qt\/\d+\.\d+/.test(y),t=!p&&/Chrome\//.test(y),s=/Opera\//.test(y),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(y),n=/PhantomJS/.test(y),o=!p&&/AppleWebKit/.test(y)&&/Mobile\/\w+/.test(y),c=/Android/.test(y),h=o||c||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(y),g=o||/Mac/.test(f),v=/\bCrOS\b/.test(y),b=/win/i.test(f),S=s&&y.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(s=!1,a=!0);var E=g&&(i||s&&(S==null||S<12.11)),C=x||d&&u>=9;function _(D){return new RegExp("(^|\\s)"+D+"(?:$|\\s)\\s*")}var T=function(B,ne){var ae=B.className,ge=_(ne).exec(ae);if(ge){var Ke=ae.slice(ge.index+ge[0].length);B.className=ae.slice(0,ge.index)+(Ke?ge[1]+Ke:"")}};function w(D){for(var B=D.childNodes.length;B>0;--B)D.removeChild(D.firstChild);return D}function O(D,B){return w(D).appendChild(B)}function I(D,B,ne,ae){var ge=document.createElement(D);if(ne&&(ge.className=ne),ae&&(ge.style.cssText=ae),typeof B=="string")ge.appendChild(document.createTextNode(B));else if(B)for(var Ke=0;Ke<B.length;++Ke)ge.appendChild(B[Ke]);return ge}function k(D,B,ne,ae){var ge=I(D,B,ne,ae);return ge.setAttribute("role","presentation"),ge}var M;document.createRange?M=function(B,ne,ae,ge){var Ke=document.createRange();return Ke.setEnd(ge||B,ae),Ke.setStart(B,ne),Ke}:M=function(B,ne,ae){var ge=document.body.createTextRange();try{ge.moveToElementText(B.parentNode)}catch(Ke){return ge}return ge.collapse(!0),ge.moveEnd("character",ae),ge.moveStart("character",ne),ge};function U(D,B){if(B.nodeType==3&&(B=B.parentNode),D.contains)return D.contains(B);do if(B.nodeType==11&&(B=B.host),B==D)return!0;while(B=B.parentNode)}function P(){var D;try{D=document.activeElement}catch(B){D=document.body||null}for(;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;return D}function X(D,B){var ne=D.className;_(B).test(ne)||(D.className+=(ne?" ":"")+B)}function F(D,B){for(var ne=D.split(" "),ae=0;ae<ne.length;ae++)ne[ae]&&!_(ne[ae]).test(B)&&(B+=" "+ne[ae]);return B}var j=function(B){B.select()};o?j=function(B){B.selectionStart=0,B.selectionEnd=B.value.length}:d&&(j=function(B){try{B.select()}catch(ne){}});function K(D){var B=Array.prototype.slice.call(arguments,1);return function(){return D.apply(null,B)}}function z(D,B,ne){B||(B={});for(var ae in D)D.hasOwnProperty(ae)&&(ne!==!1||!B.hasOwnProperty(ae))&&(B[ae]=D[ae]);return B}function V(D,B,ne,ae,ge){B==null&&(B=D.search(/[^\s\u00a0]/),B==-1&&(B=D.length));for(var Ke=ae||0,It=ge||0;;){var nr=D.indexOf(" ",Ke);if(nr<0||nr>=B)return It+(B-Ke);It+=nr-Ke,It+=ne-It%ne,Ke=nr+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)};Q.prototype.onTimeout=function(D){D.id=0,D.time<=+new Date?D.f():setTimeout(D.handler,D.time-+new Date)},Q.prototype.set=function(D,B){this.f=B;var ne=+new Date+D;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,D),this.time=ne)};function G(D,B){for(var ne=0;ne<D.length;++ne)if(D[ne]==B)return ne;return-1}var ee=50,se={toString:function(){return"CodeMirror.Pass"}},ye={scroll:!1},he={origin:"*mouse"},ke={origin:"+move"};function Pe(D,B,ne){for(var ae=0,ge=0;;){var Ke=D.indexOf(" ",ae);Ke==-1&&(Ke=D.length);var It=Ke-ae;if(Ke==D.length||ge+It>=B)return ae+Math.min(It,B-ge);if(ge+=Ke-ae,ge+=ne-ge%ne,ae=Ke+1,ge>=B)return ae}}var Ue=[""];function $e(D){for(;Ue.length<=D;)Ue.push(Ge(Ue)+" ");return Ue[D]}function Ge(D){return D[D.length-1]}function ht(D,B){for(var ne=[],ae=0;ae<D.length;ae++)ne[ae]=B(D[ae],ae);return ne}function Fe(D,B,ne){for(var ae=0,ge=ne(B);ae<D.length&&ne(D[ae])<=ge;)ae++;D.splice(ae,0,B)}function oe(){}function rt(D,B){var ne;return Object.create?ne=Object.create(D):(oe.prototype=D,ne=new oe),B&&z(B,ne),ne}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(D){return/\w/.test(D)||D>"\x80"&&(D.toUpperCase()!=D.toLowerCase()||fe.test(D))}function Y(D,B){return B?B.source.indexOf("\\w")>-1&&J(D)?!0:B.test(D):J(D)}function $(D){for(var B in D)if(D.hasOwnProperty(B)&&D[B])return!1;return!0}var de=/[\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 we(D){return D.charCodeAt(0)>=768&&de.test(D)}function Ce(D,B,ne){for(;(ne<0?B>0:B<D.length)&&we(D.charAt(B));)B+=ne;return B}function Se(D,B,ne){for(var ae=B>ne?-1:1;;){if(B==ne)return B;var ge=(B+ne)/2,Ke=ae<0?Math.ceil(ge):Math.floor(ge);if(Ke==B)return D(Ke)?B:ne;D(Ke)?ne=Ke:B=Ke+ae}}function le(D,B,ne,ae){if(!D)return ae(B,ne,"ltr",0);for(var ge=!1,Ke=0;Ke<D.length;++Ke){var It=D[Ke];(It.from<ne&&It.to>B||B==ne&&It.to==B)&&(ae(Math.max(It.from,B),Math.min(It.to,ne),It.level==1?"rtl":"ltr",Ke),ge=!0)}ge||ae(B,ne,"ltr")}var pe=null;function _e(D,B,ne){var ae;pe=null;for(var ge=0;ge<D.length;++ge){var Ke=D[ge];if(Ke.from<B&&Ke.to>B)return ge;Ke.to==B&&(Ke.from!=Ke.to&&ne=="before"?ae=ge:pe=ge),Ke.from==B&&(Ke.from!=Ke.to&&ne!="before"?ae=ge:pe=ge)}return ae!=null?ae:pe}var tt=function(){var D="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",B="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Cr){return Cr<=247?D.charAt(Cr):1424<=Cr&&Cr<=1524?"R":1536<=Cr&&Cr<=1785?B.charAt(Cr-1536):1774<=Cr&&Cr<=2220?"r":8192<=Cr&&Cr<=8203?"w":Cr==8204?"b":"L"}var ae=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,Ke=/[LRr]/,It=/[Lb1n]/,nr=/[1n]/;function br(Cr,jn,ti){this.level=Cr,this.from=jn,this.to=ti}return function(Cr,jn){var ti=jn=="ltr"?"L":"R";if(Cr.length==0||jn=="ltr"&&!ae.test(Cr))return!1;for(var Ei=Cr.length,_i=[],la=0;la<Ei;++la)_i.push(ne(Cr.charCodeAt(la)));for(var Ta=0,Wa=ti;Ta<Ei;++Ta){var Ma=_i[Ta];Ma=="m"?_i[Ta]=Wa:Wa=Ma}for(var Na=0,qa=ti;Na<Ei;++Na){var ho=_i[Na];ho=="1"&&qa=="r"?_i[Na]="n":Ke.test(ho)&&(qa=ho,ho=="r"&&(_i[Na]="R"))}for(var ns=1,Mo=_i[0];ns<Ei-1;++ns){var Ss=_i[ns];Ss=="+"&&Mo=="1"&&_i[ns+1]=="1"?_i[ns]="1":Ss==","&&Mo==_i[ns+1]&&(Mo=="1"||Mo=="n")&&(_i[ns]=Mo),Mo=Ss}for(var Zs=0;Zs<Ei;++Zs){var yl=_i[Zs];if(yl==",")_i[Zs]="N";else if(yl=="%"){var ul=void 0;for(ul=Zs+1;ul<Ei&&_i[ul]=="%";++ul);for(var Pl=Zs&&_i[Zs-1]=="!"||ul<Ei&&_i[ul]=="1"?"1":"N",Vl=Zs;Vl<ul;++Vl)_i[Vl]=Pl;Zs=ul-1}}for(var Il=0,Gl=ti;Il<Ei;++Il){var Fl=_i[Il];Gl=="L"&&Fl=="1"?_i[Il]="L":Ke.test(Fl)&&(Gl=Fl)}for(var Ja=0;Ja<Ei;++Ja)if(ge.test(_i[Ja])){var vl=void 0;for(vl=Ja+1;vl<Ei&&ge.test(_i[vl]);++vl);for(var gl=(Ja?_i[Ja-1]:ti)=="L",El=(vl<Ei?_i[vl]:ti)=="L",Bu=gl==El?gl?"L":"R":ti,Ks=Ja;Ks<vl;++Ks)_i[Ks]=Bu;Ja=vl-1}for(var vs=[],lu,Kl=0;Kl<Ei;)if(It.test(_i[Kl])){var Uu=Kl;for(++Kl;Kl<Ei&&It.test(_i[Kl]);++Kl);vs.push(new br(0,Uu,Kl))}else{var Eu=Kl,uu=vs.length,ku=jn=="rtl"?1:0;for(++Kl;Kl<Ei&&_i[Kl]!="L";++Kl);for(var Yl=Eu;Yl<Kl;)if(nr.test(_i[Yl])){Eu<Yl&&(vs.splice(uu,0,new br(1,Eu,Yl)),uu+=ku);var Tu=Yl;for(++Yl;Yl<Kl&&nr.test(_i[Yl]);++Yl);vs.splice(uu,0,new br(2,Tu,Yl)),uu+=ku,Eu=Yl}else++Yl;Eu<Kl&&vs.splice(uu,0,new br(1,Eu,Kl))}return jn=="ltr"&&(vs[0].level==1&&(lu=Cr.match(/^\s+/))&&(vs[0].from=lu[0].length,vs.unshift(new br(0,0,lu[0].length))),Ge(vs).level==1&&(lu=Cr.match(/\s+$/))&&(Ge(vs).to-=lu[0].length,vs.push(new br(0,Ei-lu[0].length,Ei)))),jn=="rtl"?vs.reverse():vs}}();function gt(D,B){var ne=D.order;return ne==null&&(ne=D.order=tt(D.text,B)),ne}var ct=[],je=function(B,ne,ae){if(B.addEventListener)B.addEventListener(ne,ae,!1);else if(B.attachEvent)B.attachEvent("on"+ne,ae);else{var ge=B._handlers||(B._handlers={});ge[ne]=(ge[ne]||ct).concat(ae)}};function Zt(D,B){return D._handlers&&D._handlers[B]||ct}function ut(D,B,ne){if(D.removeEventListener)D.removeEventListener(B,ne,!1);else if(D.detachEvent)D.detachEvent("on"+B,ne);else{var ae=D._handlers,ge=ae&&ae[B];if(ge){var Ke=G(ge,ne);Ke>-1&&(ae[B]=ge.slice(0,Ke).concat(ge.slice(Ke+1)))}}}function Ht(D,B){var ne=Zt(D,B);if(!ne.length)return;for(var ae=Array.prototype.slice.call(arguments,2),ge=0;ge<ne.length;++ge)ne[ge].apply(null,ae)}function dr(D,B,ne){return typeof B=="string"&&(B={type:B,preventDefault:function(){this.defaultPrevented=!0}}),Ht(D,ne||B.type,D,B),te(B)||B.codemirrorIgnore}function Vt(D){var B=D._handlers&&D._handlers.cursorActivity;if(!B)return;for(var ne=D.curOp.cursorActivityHandlers||(D.curOp.cursorActivityHandlers=[]),ae=0;ae<B.length;++ae)G(ne,B[ae])==-1&&ne.push(B[ae])}function Mt(D,B){return Zt(D,B).length>0}function Gt(D){D.prototype.on=function(B,ne){je(this,B,ne)},D.prototype.off=function(B,ne){ut(this,B,ne)}}function Ve(D){D.preventDefault?D.preventDefault():D.returnValue=!1}function me(D){D.stopPropagation?D.stopPropagation():D.cancelBubble=!0}function te(D){return D.defaultPrevented!=null?D.defaultPrevented:D.returnValue==!1}function Ze(D){Ve(D),me(D)}function Xe(D){return D.target||D.srcElement}function ue(D){var B=D.which;return B==null&&(D.button&1?B=1:D.button&2?B=3:D.button&4&&(B=2)),g&&D.ctrlKey&&B==1&&(B=3),B}var St=function(){if(d&&u<9)return!1;var D=I("div");return"draggable"in D||"dragDrop"in D}(),Qt;function dt(D){if(Qt==null){var B=I("span","\u200B");O(D,I("span",[B,document.createTextNode("x")])),D.firstChild.offsetHeight!=0&&(Qt=B.offsetWidth<=1&&B.offsetHeight>2&&!(d&&u<8))}var ne=Qt?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Jt;function $t(D){if(Jt!=null)return Jt;var B=O(D,document.createTextNode("A\u062EA")),ne=M(B,0,1).getBoundingClientRect(),ae=M(B,1,2).getBoundingClientRect();return w(D),!ne||ne.left==ne.right?!1:Jt=ae.right-ne.right<3}var tn=`
b`.split(/\n/).length!=3?function(D){for(var B=0,ne=[],ae=D.length;B<=ae;){var ge=D.indexOf(`
`,B);ge==-1&&(ge=D.length);var Ke=D.slice(B,D.charAt(ge-1)=="\r"?ge-1:ge),It=Ke.indexOf("\r");It!=-1?(ne.push(Ke.slice(0,It)),B+=It+1):(ne.push(Ke),B=ge+1)}return ne}:function(D){return D.split(/\r\n?|\n/)},kt=window.getSelection?function(D){try{return D.selectionStart!=D.selectionEnd}catch(B){return!1}}:function(D){var B;try{B=D.ownerDocument.selection.createRange()}catch(ne){}return!B||B.parentElement()!=D?!1:B.compareEndPoints("StartToEnd",B)!=0},tr=function(){var D=I("div");return"oncopy"in D?!0:(D.setAttribute("oncopy","return;"),typeof D.oncopy=="function")}(),Bt=null;function ft(D){if(Bt!=null)return Bt;var B=O(D,I("span","x")),ne=B.getBoundingClientRect(),ae=M(B,0,1).getBoundingClientRect();return Bt=Math.abs(ne.left-ae.left)>1}var it={},Or={};function an(D,B){arguments.length>2&&(B.dependencies=Array.prototype.slice.call(arguments,2)),it[D]=B}function En(D,B){Or[D]=B}function Bn(D){if(typeof D=="string"&&Or.hasOwnProperty(D))D=Or[D];else if(D&&typeof D.name=="string"&&Or.hasOwnProperty(D.name)){var B=Or[D.name];typeof B=="string"&&(B={name:B}),D=rt(B,D),D.name=B.name}else{if(typeof D=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(D))return Bn("application/xml");if(typeof D=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(D))return Bn("application/json")}return typeof D=="string"?{name:D}:D||{name:"null"}}function vi(D,B){B=Bn(B);var ne=it[B.name];if(!ne)return vi(D,"text/plain");var ae=ne(D,B);if(Ln.hasOwnProperty(B.name)){var ge=Ln[B.name];for(var Ke in ge){if(!ge.hasOwnProperty(Ke))continue;ae.hasOwnProperty(Ke)&&(ae["_"+Ke]=ae[Ke]),ae[Ke]=ge[Ke]}}if(ae.name=B.name,B.helperType&&(ae.helperType=B.helperType),B.modeProps)for(var It in B.modeProps)ae[It]=B.modeProps[It];return ae}var Ln={};function Mn(D,B){var ne=Ln.hasOwnProperty(D)?Ln[D]:Ln[D]={};z(B,ne)}function Xt(D,B){if(B===!0)return B;if(D.copyState)return D.copyState(B);var ne={};for(var ae in B){var ge=B[ae];ge instanceof Array&&(ge=ge.concat([])),ne[ae]=ge}return ne}function wt(D,B){for(var ne;D.innerMode&&!(ne=D.innerMode(B),!ne||ne.mode==D);)B=ne.state,D=ne.mode;return ne||{mode:D,state:B}}function De(D,B,ne){return D.startState?D.startState(B,ne):!0}var Re=function(B,ne,ae){this.pos=this.start=0,this.string=B,this.tabSize=ne||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ae};Re.prototype.eol=function(){return this.pos>=this.string.length},Re.prototype.sol=function(){return this.pos==this.lineStart},Re.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Re.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Re.prototype.eat=function(D){var B=this.string.charAt(this.pos),ne;if(typeof D=="string"?ne=B==D:ne=B&&(D.test?D.test(B):D(B)),ne)return++this.pos,B},Re.prototype.eatWhile=function(D){for(var B=this.pos;this.eat(D););return this.pos>B},Re.prototype.eatSpace=function(){for(var D=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>D},Re.prototype.skipToEnd=function(){this.pos=this.string.length},Re.prototype.skipTo=function(D){var B=this.string.indexOf(D,this.pos);if(B>-1)return this.pos=B,!0},Re.prototype.backUp=function(D){this.pos-=D},Re.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Re.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Re.prototype.match=function(D,B,ne){if(typeof D=="string"){var ae=function(nr){return ne?nr.toLowerCase():nr},ge=this.string.substr(this.pos,D.length);if(ae(ge)==ae(D))return B!==!1&&(this.pos+=D.length),!0}else{var Ke=this.string.slice(this.pos).match(D);return Ke&&Ke.index>0?null:(Ke&&B!==!1&&(this.pos+=Ke[0].length),Ke)}},Re.prototype.current=function(){return this.string.slice(this.start,this.pos)},Re.prototype.hideFirstChars=function(D,B){this.lineStart+=D;try{return B()}finally{this.lineStart-=D}},Re.prototype.lookAhead=function(D){var B=this.lineOracle;return B&&B.lookAhead(D)},Re.prototype.baseToken=function(){var D=this.lineOracle;return D&&D.baseToken(this.pos)};function Me(D,B){if(B-=D.first,B<0||B>=D.size)throw new Error("There is no line "+(B+D.first)+" in the document.");for(var ne=D;!ne.lines;)for(var ae=0;;++ae){var ge=ne.children[ae],Ke=ge.chunkSize();if(B<Ke){ne=ge;break}B-=Ke}return ne.lines[B]}function nt(D,B,ne){var ae=[],ge=B.line;return D.iter(B.line,ne.line+1,function(Ke){var It=Ke.text;ge==ne.line&&(It=It.slice(0,ne.ch)),ge==B.line&&(It=It.slice(B.ch)),ae.push(It),++ge}),ae}function yt(D,B,ne){var ae=[];return D.iter(B,ne,function(ge){ae.push(ge.text)}),ae}function sr(D,B){var ne=B-D.height;if(ne)for(var ae=D;ae;ae=ae.parent)ae.height+=ne}function Nr(D){if(D.parent==null)return null;for(var B=D.parent,ne=G(B.lines,D),ae=B.parent;ae;B=ae,ae=ae.parent)for(var ge=0;!(ae.children[ge]==B);++ge)ne+=ae.children[ge].chunkSize();return ne+B.first}function mn(D,B){var ne=D.first;e:do{for(var ae=0;ae<D.children.length;++ae){var ge=D.children[ae],Ke=ge.height;if(B<Ke){D=ge;continue e}B-=Ke,ne+=ge.chunkSize()}return ne}while(!D.lines);for(var It=0;It<D.lines.length;++It){var nr=D.lines[It],br=nr.height;if(B<br)break;B-=br}return ne+It}function Yn(D,B){return B>=D.first&&B<D.first+D.size}function Jn(D,B){return String(D.lineNumberFormatter(B+D.firstLineNumber))}function ur(D,B,ne){if(ne===void 0&&(ne=null),!(this instanceof ur))return new ur(D,B,ne);this.line=D,this.ch=B,this.sticky=ne}function Tt(D,B){return D.line-B.line||D.ch-B.ch}function Ct(D,B){return D.sticky==B.sticky&&Tt(D,B)==0}function Ar(D){return ur(D.line,D.ch)}function er(D,B){return Tt(D,B)<0?B:D}function Ft(D,B){return Tt(D,B)<0?D:B}function ir(D,B){return Math.max(D.first,Math.min(B,D.first+D.size-1))}function Pt(D,B){if(B.line<D.first)return ur(D.first,0);var ne=D.first+D.size-1;return B.line>ne?ur(ne,Me(D,ne).text.length):rr(B,Me(D,B.line).text.length)}function rr(D,B){var ne=D.ch;return ne==null||ne>B?ur(D.line,B):ne<0?ur(D.line,0):D}function Yr(D,B){for(var ne=[],ae=0;ae<B.length;ae++)ne[ae]=Pt(D,B[ae]);return ne}var Pr=function(B,ne){this.state=B,this.lookAhead=ne},Mr=function(B,ne,ae,ge){this.state=ne,this.doc=B,this.line=ae,this.maxLookAhead=ge||0,this.baseTokens=null,this.baseTokenPos=1};Mr.prototype.lookAhead=function(D){var B=this.doc.getLine(this.line+D);return B!=null&&D>this.maxLookAhead&&(this.maxLookAhead=D),B},Mr.prototype.baseToken=function(D){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=D;)this.baseTokenPos+=2;var B=this.baseTokens[this.baseTokenPos+1];return{type:B&&B.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-D}},Mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mr.fromSaved=function(D,B,ne){return B instanceof Pr?new Mr(D,Xt(D.mode,B.state),ne,B.lookAhead):new Mr(D,Xt(D.mode,B),ne)},Mr.prototype.save=function(D){var B=D!==!1?Xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pr(B,this.maxLookAhead):B};function fn(D,B,ne,ae){var ge=[D.state.modeGen],Ke={};Ne(D,B.text,D.doc.mode,ne,function(Cr,jn){return ge.push(Cr,jn)},Ke,ae);for(var It=ne.state,nr=function(jn){ne.baseTokens=ge;var ti=D.state.overlays[jn],Ei=1,_i=0;ne.state=!0,Ne(D,B.text,ti.mode,ne,function(la,Ta){for(var Wa=Ei;_i<la;){var Ma=ge[Ei];Ma>la&&ge.splice(Ei,1,la,ge[Ei+1],Ma),Ei+=2,_i=Math.min(la,Ma)}if(!Ta)return;if(ti.opaque)ge.splice(Wa,Ei-Wa,la,"overlay "+Ta),Ei=Wa+2;else for(;Wa<Ei;Wa+=2){var Na=ge[Wa+1];ge[Wa+1]=(Na?Na+" ":"")+"overlay "+Ta}},Ke),ne.state=It,ne.baseTokens=null,ne.baseTokenPos=1},br=0;br<D.state.overlays.length;++br)nr(br);return{styles:ge,classes:Ke.bgClass||Ke.textClass?Ke:null}}function wn(D,B,ne){if(!B.styles||B.styles[0]!=D.state.modeGen){var ae=ai(D,Nr(B)),ge=B.text.length>D.options.maxHighlightLength&&Xt(D.doc.mode,ae.state),Ke=fn(D,B,ae);ge&&(ae.state=ge),B.stateAfter=ae.save(!ge),B.styles=Ke.styles,Ke.classes?B.styleClasses=Ke.classes:B.styleClasses&&(B.styleClasses=null),ne===D.doc.highlightFrontier&&(D.doc.modeFrontier=Math.max(D.doc.modeFrontier,++D.doc.highlightFrontier))}return B.styles}function ai(D,B,ne){var ae=D.doc,ge=D.display;if(!ae.mode.startState)return new Mr(ae,!0,B);var Ke=He(D,B,ne),It=Ke>ae.first&&Me(ae,Ke-1).stateAfter,nr=It?Mr.fromSaved(ae,It,Ke):new Mr(ae,De(ae.mode),Ke);return ae.iter(Ke,B,function(br){ri(D,br.text,nr);var Cr=nr.line;br.stateAfter=Cr==B-1||Cr%5==0||Cr>=ge.viewFrom&&Cr<ge.viewTo?nr.save():null,nr.nextLine()}),ne&&(ae.modeFrontier=nr.line),nr}function ri(D,B,ne,ae){var ge=D.doc.mode,Ke=new Re(B,D.options.tabSize,ne);for(Ke.start=Ke.pos=ae||0,B==""&&gi(ge,ne.state);!Ke.eol();)Ii(ge,Ke,ne.state),Ke.start=Ke.pos}function gi(D,B){if(D.blankLine)return D.blankLine(B);if(!D.innerMode)return;var ne=wt(D,B);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}function Ii(D,B,ne,ae){for(var ge=0;ge<10;ge++){ae&&(ae[0]=wt(D,ne).mode);var Ke=D.token(B,ne);if(B.pos>B.start)return Ke}throw new Error("Mode "+D.name+" failed to advance stream.")}var Mi=function(B,ne,ae){this.start=B.start,this.end=B.pos,this.string=B.current(),this.type=ne||null,this.state=ae};function Qi(D,B,ne,ae){var ge=D.doc,Ke=ge.mode,It;B=Pt(ge,B);var nr=Me(ge,B.line),br=ai(D,B.line,ne),Cr=new Re(nr.text,D.options.tabSize,br),jn;for(ae&&(jn=[]);(ae||Cr.pos<B.ch)&&!Cr.eol();)Cr.start=Cr.pos,It=Ii(Ke,Cr,br.state),ae&&jn.push(new Mi(Cr,It,Xt(ge.mode,br.state)));return ae?jn:new Mi(Cr,It,br.state)}function ot(D,B){if(D)for(;;){var ne=D.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;D=D.slice(0,ne.index)+D.slice(ne.index+ne[0].length);var ae=ne[1]?"bgClass":"textClass";B[ae]==null?B[ae]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(B[ae])||(B[ae]+=" "+ne[2])}return D}function Ne(D,B,ne,ae,ge,Ke,It){var nr=ne.flattenSpans;nr==null&&(nr=D.options.flattenSpans);var br=0,Cr=null,jn=new Re(B,D.options.tabSize,ae),ti,Ei=D.options.addModeClass&&[null];for(B==""&&ot(gi(ne,ae.state),Ke);!jn.eol();){if(jn.pos>D.options.maxHighlightLength?(nr=!1,It&&ri(D,B,ae,jn.pos),jn.pos=B.length,ti=null):ti=ot(Ii(ne,jn,ae.state,Ei),Ke),Ei){var _i=Ei[0].name;_i&&(ti="m-"+(ti?_i+" "+ti:_i))}if(!nr||Cr!=ti){for(;br<jn.start;)br=Math.min(jn.start,br+5e3),ge(br,Cr);Cr=ti}jn.start=jn.pos}for(;br<jn.pos;){var la=Math.min(jn.pos,br+5e3);ge(la,Cr),br=la}}function He(D,B,ne){for(var ae,ge,Ke=D.doc,It=ne?-1:B-(D.doc.mode.innerMode?1e3:100),nr=B;nr>It;--nr){if(nr<=Ke.first)return Ke.first;var br=Me(Ke,nr-1),Cr=br.stateAfter;if(Cr&&(!ne||nr+(Cr instanceof Pr?Cr.lookAhead:0)<=Ke.modeFrontier))return nr;var jn=V(br.text,null,D.options.tabSize);(ge==null||ae>jn)&&(ge=nr-1,ae=jn)}return ge}function Ye(D,B){if(D.modeFrontier=Math.min(D.modeFrontier,B),D.highlightFrontier<B-10)return;for(var ne=D.first,ae=B-1;ae>ne;ae--){var ge=Me(D,ae).stateAfter;if(ge&&(!(ge instanceof Pr)||ae+ge.lookAhead<B)){ne=ae+1;break}}D.highlightFrontier=Math.min(D.highlightFrontier,ne)}var at=!1,qe=!1;function lt(){at=!0}function Et(){qe=!0}function At(D,B,ne){this.marker=D,this.from=B,this.to=ne}function fr(D,B){if(D)for(var ne=0;ne<D.length;++ne){var ae=D[ne];if(ae.marker==B)return ae}}function Jr(D,B){for(var ne,ae=0;ae<D.length;++ae)D[ae]!=B&&(ne||(ne=[])).push(D[ae]);return ne}function Vr(D,B){D.markedSpans=D.markedSpans?D.markedSpans.concat([B]):[B],B.marker.attachLine(D)}function dn(D,B,ne){var ae;if(D)for(var ge=0;ge<D.length;++ge){var Ke=D[ge],It=Ke.marker,nr=Ke.from==null||(It.inclusiveLeft?Ke.from<=B:Ke.from<B);if(nr||Ke.from==B&&It.type=="bookmark"&&(!ne||!Ke.marker.insertLeft)){var br=Ke.to==null||(It.inclusiveRight?Ke.to>=B:Ke.to>B);(ae||(ae=[])).push(new At(It,Ke.from,br?null:Ke.to))}}return ae}function gr(D,B,ne){var ae;if(D)for(var ge=0;ge<D.length;++ge){var Ke=D[ge],It=Ke.marker,nr=Ke.to==null||(It.inclusiveRight?Ke.to>=B:Ke.to>B);if(nr||Ke.from==B&&It.type=="bookmark"&&(!ne||Ke.marker.insertLeft)){var br=Ke.from==null||(It.inclusiveLeft?Ke.from<=B:Ke.from<B);(ae||(ae=[])).push(new At(It,br?null:Ke.from-B,Ke.to==null?null:Ke.to-B))}}return ae}function Wn(D,B){if(B.full)return null;var ne=Yn(D,B.from.line)&&Me(D,B.from.line).markedSpans,ae=Yn(D,B.to.line)&&Me(D,B.to.line).markedSpans;if(!ne&&!ae)return null;var ge=B.from.ch,Ke=B.to.ch,It=Tt(B.from,B.to)==0,nr=dn(ne,ge,It),br=gr(ae,Ke,It),Cr=B.text.length==1,jn=Ge(B.text).length+(Cr?ge:0);if(nr)for(var ti=0;ti<nr.length;++ti){var Ei=nr[ti];if(Ei.to==null){var _i=fr(br,Ei.marker);_i?Cr&&(Ei.to=_i.to==null?null:_i.to+jn):Ei.to=ge}}if(br)for(var la=0;la<br.length;++la){var Ta=br[la];if(Ta.to!=null&&(Ta.to+=jn),Ta.from==null){var Wa=fr(nr,Ta.marker);Wa||(Ta.from=jn,Cr&&(nr||(nr=[])).push(Ta))}else Ta.from+=jn,Cr&&(nr||(nr=[])).push(Ta)}nr&&(nr=kr(nr)),br&&br!=nr&&(br=kr(br));var Ma=[nr];if(!Cr){var Na=B.text.length-2,qa;if(Na>0&&nr)for(var ho=0;ho<nr.length;++ho)nr[ho].to==null&&(qa||(qa=[])).push(new At(nr[ho].marker,null,null));for(var ns=0;ns<Na;++ns)Ma.push(qa);Ma.push(br)}return Ma}function kr(D){for(var B=0;B<D.length;++B){var ne=D[B];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&D.splice(B--,1)}return D.length?D:null}function Fn(D,B,ne){var ae=null;if(D.iter(B.line,ne.line+1,function(_i){if(_i.markedSpans)for(var la=0;la<_i.markedSpans.length;++la){var Ta=_i.markedSpans[la].marker;Ta.readOnly&&(!ae||G(ae,Ta)==-1)&&(ae||(ae=[])).push(Ta)}}),!ae)return null;for(var ge=[{from:B,to:ne}],Ke=0;Ke<ae.length;++Ke)for(var It=ae[Ke],nr=It.find(0),br=0;br<ge.length;++br){var Cr=ge[br];if(Tt(Cr.to,nr.from)<0||Tt(Cr.from,nr.to)>0)continue;var jn=[br,1],ti=Tt(Cr.from,nr.from),Ei=Tt(Cr.to,nr.to);(ti<0||!It.inclusiveLeft&&!ti)&&jn.push({from:Cr.from,to:nr.from}),(Ei>0||!It.inclusiveRight&&!Ei)&&jn.push({from:nr.to,to:Cr.to}),ge.splice.apply(ge,jn),br+=jn.length-3}return ge}function vn(D){var B=D.markedSpans;if(!B)return;for(var ne=0;ne<B.length;++ne)B[ne].marker.detachLine(D);D.markedSpans=null}function $r(D,B){if(!B)return;for(var ne=0;ne<B.length;++ne)B[ne].marker.attachLine(D);D.markedSpans=B}function ei(D){return D.inclusiveLeft?-1:0}function fi(D){return D.inclusiveRight?1:0}function Pi(D,B){var ne=D.lines.length-B.lines.length;if(ne!=0)return ne;var ae=D.find(),ge=B.find(),Ke=Tt(ae.from,ge.from)||ei(D)-ei(B);if(Ke)return-Ke;var It=Tt(ae.to,ge.to)||fi(D)-fi(B);return It||B.id-D.id}function Zr(D,B){var ne=qe&&D.markedSpans,ae;if(ne)for(var ge=void 0,Ke=0;Ke<ne.length;++Ke)ge=ne[Ke],ge.marker.collapsed&&(B?ge.from:ge.to)==null&&(!ae||Pi(ae,ge.marker)<0)&&(ae=ge.marker);return ae}function Sn(D){return Zr(D,!0)}function Gn(D){return Zr(D,!1)}function Wt(D,B){var ne=qe&&D.markedSpans,ae;if(ne)for(var ge=0;ge<ne.length;++ge){var Ke=ne[ge];Ke.marker.collapsed&&(Ke.from==null||Ke.from<B)&&(Ke.to==null||Ke.to>B)&&(!ae||Pi(ae,Ke.marker)<0)&&(ae=Ke.marker)}return ae}function Ot(D,B,ne,ae,ge){var Ke=Me(D,B),It=qe&&Ke.markedSpans;if(It)for(var nr=0;nr<It.length;++nr){var br=It[nr];if(!br.marker.collapsed)continue;var Cr=br.marker.find(0),jn=Tt(Cr.from,ne)||ei(br.marker)-ei(ge),ti=Tt(Cr.to,ae)||fi(br.marker)-fi(ge);if(jn>=0&&ti<=0||jn<=0&&ti>=0)continue;if(jn<=0&&(br.marker.inclusiveRight&&ge.inclusiveLeft?Tt(Cr.to,ne)>=0:Tt(Cr.to,ne)>0)||jn>=0&&(br.marker.inclusiveRight&&ge.inclusiveLeft?Tt(Cr.from,ae)<=0:Tt(Cr.from,ae)<0))return!0}}function Rt(D){for(var B;B=Sn(D);)D=B.find(-1,!0).line;return D}function Ut(D){for(var B;B=Gn(D);)D=B.find(1,!0).line;return D}function Kt(D){for(var B,ne;B=Gn(D);)D=B.find(1,!0).line,(ne||(ne=[])).push(D);return ne}function Lt(D,B){var ne=Me(D,B),ae=Rt(ne);return ne==ae?B:Nr(ae)}function cr(D,B){if(B>D.lastLine())return B;var ne=Me(D,B),ae;if(!vr(D,ne))return B;for(;ae=Gn(ne);)ne=ae.find(1,!0).line;return Nr(ne)+1}function vr(D,B){var ne=qe&&B.markedSpans;if(ne)for(var ae=void 0,ge=0;ge<ne.length;++ge){if(ae=ne[ge],!ae.marker.collapsed)continue;if(ae.from==null)return!0;if(ae.marker.widgetNode)continue;if(ae.from==0&&ae.marker.inclusiveLeft&&yr(D,B,ae))return!0}}function yr(D,B,ne){if(ne.to==null){var ae=ne.marker.find(1,!0);return yr(D,ae.line,fr(ae.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==B.text.length)return!0;for(var ge=void 0,Ke=0;Ke<B.markedSpans.length;++Ke)if(ge=B.markedSpans[Ke],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==ne.to&&(ge.to==null||ge.to!=ne.from)&&(ge.marker.inclusiveLeft||ne.marker.inclusiveRight)&&yr(D,B,ge))return!0}function Rr(D){D=Rt(D);for(var B=0,ne=D.parent,ae=0;ae<ne.lines.length;++ae){var ge=ne.lines[ae];if(ge==D)break;B+=ge.height}for(var Ke=ne.parent;Ke;ne=Ke,Ke=ne.parent)for(var It=0;It<Ke.children.length;++It){var nr=Ke.children[It];if(nr==ne)break;B+=nr.height}return B}function Vn(D){if(D.height==0)return 0;for(var B=D.text.length,ne,ae=D;ne=Sn(ae);){var ge=ne.find(0,!0);ae=ge.from.line,B+=ge.from.ch-ge.to.ch}for(ae=D;ne=Gn(ae);){var Ke=ne.find(0,!0);B-=ae.text.length-Ke.from.ch,ae=Ke.to.line,B+=ae.text.length-Ke.to.ch}return B}function kn(D){var B=D.display,ne=D.doc;B.maxLine=Me(ne,ne.first),B.maxLineLength=Vn(B.maxLine),B.maxLineChanged=!0,ne.iter(function(ae){var ge=Vn(ae);ge>B.maxLineLength&&(B.maxLineLength=ge,B.maxLine=ae)})}var di=function(B,ne,ae){this.text=B,$r(this,ne),this.height=ae?ae(this):1};di.prototype.lineNo=function(){return Nr(this)},Gt(di);function pn(D,B,ne,ae){D.text=B,D.stateAfter&&(D.stateAfter=null),D.styles&&(D.styles=null),D.order!=null&&(D.order=null),vn(D),$r(D,ne);var ge=ae?ae(D):1;ge!=D.height&&sr(D,ge)}function Br(D){D.parent=null,vn(D)}var _n={},Xn={};function $n(D,B){if(!D||/^\s*$/.test(D))return null;var ne=B.addModeClass?Xn:_n;return ne[D]||(ne[D]=D.replace(/\S+/g,"cm-$&"))}function oi(D,B){var ne=k("span",null,null,a?"padding-right: .1px":null),ae={pre:k("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:D,trailingSpace:!1,splitSpaces:D.getOption("lineWrapping")};B.measure={};for(var ge=0;ge<=(B.rest?B.rest.length:0);ge++){var Ke=ge?B.rest[ge-1]:B.line,It=void 0;ae.pos=0,ae.addToken=Ri,$t(D.display.measure)&&(It=gt(Ke,D.doc.direction))&&(ae.addToken=oa(ae.addToken,It)),ae.map=[];var nr=B!=D.display.externalMeasured&&Nr(Ke);aa(Ke,ae,wn(D,Ke,nr)),Ke.styleClasses&&(Ke.styleClasses.bgClass&&(ae.bgClass=F(Ke.styleClasses.bgClass,ae.bgClass||"")),Ke.styleClasses.textClass&&(ae.textClass=F(Ke.styleClasses.textClass,ae.textClass||""))),ae.map.length==0&&ae.map.push(0,0,ae.content.appendChild(dt(D.display.measure))),ge==0?(B.measure.map=ae.map,B.measure.cache={}):((B.measure.maps||(B.measure.maps=[])).push(ae.map),(B.measure.caches||(B.measure.caches=[])).push({}))}if(a){var br=ae.content.lastChild;(/\bcm-tab\b/.test(br.className)||br.querySelector&&br.querySelector(".cm-tab"))&&(ae.content.className="cm-tab-wrap-hack")}return Ht(D,"renderLine",D,B.line,ae.pre),ae.pre.className&&(ae.textClass=F(ae.pre.className,ae.textClass||"")),ae}function Ti(D){var B=I("span","\u2022","cm-invalidchar");return B.title="\\u"+D.charCodeAt(0).toString(16),B.setAttribute("aria-label",B.title),B}function Ri(D,B,ne,ae,ge,Ke,It){if(!B)return;var nr=D.splitSpaces?Di(B,D.trailingSpace):B,br=D.cm.state.specialChars,Cr=!1,jn;if(!br.test(B))D.col+=B.length,jn=document.createTextNode(nr),D.map.push(D.pos,D.pos+B.length,jn),d&&u<9&&(Cr=!0),D.pos+=B.length;else{jn=document.createDocumentFragment();for(var ti=0;;){br.lastIndex=ti;var Ei=br.exec(B),_i=Ei?Ei.index-ti:B.length-ti;if(_i){var la=document.createTextNode(nr.slice(ti,ti+_i));d&&u<9?jn.appendChild(I("span",[la])):jn.appendChild(la),D.map.push(D.pos,D.pos+_i,la),D.col+=_i,D.pos+=_i}if(!Ei)break;ti+=_i+1;var Ta=void 0;if(Ei[0]==" "){var Wa=D.cm.options.tabSize,Ma=Wa-D.col%Wa;Ta=jn.appendChild(I("span",$e(Ma),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),D.col+=Ma}else Ei[0]=="\r"||Ei[0]==`
`?(Ta=jn.appendChild(I("span",Ei[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",Ei[0]),D.col+=1):(Ta=D.cm.options.specialCharPlaceholder(Ei[0]),Ta.setAttribute("cm-text",Ei[0]),d&&u<9?jn.appendChild(I("span",[Ta])):jn.appendChild(Ta),D.col+=1);D.map.push(D.pos,D.pos+1,Ta),D.pos++}}if(D.trailingSpace=nr.charCodeAt(B.length-1)==32,ne||ae||ge||Cr||Ke||It){var Na=ne||"";ae&&(Na+=ae),ge&&(Na+=ge);var qa=I("span",[jn],Na,Ke);if(It)for(var ho in It)It.hasOwnProperty(ho)&&ho!="style"&&ho!="class"&&qa.setAttribute(ho,It[ho]);return D.content.appendChild(qa)}D.content.appendChild(jn)}function Di(D,B){if(D.length>1&&!/ /.test(D))return D;for(var ne=B,ae="",ge=0;ge<D.length;ge++){var Ke=D.charAt(ge);Ke==" "&&ne&&(ge==D.length-1||D.charCodeAt(ge+1)==32)&&(Ke="\xA0"),ae+=Ke,ne=Ke==" "}return ae}function oa(D,B){return function(ne,ae,ge,Ke,It,nr,br){ge=ge?ge+" cm-force-border":"cm-force-border";for(var Cr=ne.pos,jn=Cr+ae.length;;){for(var ti=void 0,Ei=0;Ei<B.length&&!(ti=B[Ei],ti.to>Cr&&ti.from<=Cr);Ei++);if(ti.to>=jn)return D(ne,ae,ge,Ke,It,nr,br);D(ne,ae.slice(0,ti.to-Cr),ge,Ke,null,nr,br),Ke=null,ae=ae.slice(ti.to-Cr),Cr=ti.to}}}function ma(D,B,ne,ae){var ge=!ae&&ne.widgetNode;ge&&D.map.push(D.pos,D.pos+B,ge),!ae&&D.cm.display.input.needsContentAttribute&&(ge||(ge=D.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",ne.id)),ge&&(D.cm.display.input.setUneditable(ge),D.content.appendChild(ge)),D.pos+=B,D.trailingSpace=!1}function aa(D,B,ne){var ae=D.markedSpans,ge=D.text,Ke=0;if(!ae){for(var It=1;It<ne.length;It+=2)B.addToken(B,ge.slice(Ke,Ke=ne[It]),$n(ne[It+1],B.cm.options));return}for(var nr=ge.length,br=0,Cr=1,jn="",ti,Ei,_i=0,la,Ta,Wa,Ma,Na;;){if(_i==br){la=Ta=Wa=Ei="",Na=null,Ma=null,_i=Infinity;for(var qa=[],ho=void 0,ns=0;ns<ae.length;++ns){var Mo=ae[ns],Ss=Mo.marker;if(Ss.type=="bookmark"&&Mo.from==br&&Ss.widgetNode)qa.push(Ss);else if(Mo.from<=br&&(Mo.to==null||Mo.to>br||Ss.collapsed&&Mo.to==br&&Mo.from==br)){if(Mo.to!=null&&Mo.to!=br&&_i>Mo.to&&(_i=Mo.to,Ta=""),Ss.className&&(la+=" "+Ss.className),Ss.css&&(Ei=(Ei?Ei+";":"")+Ss.css),Ss.startStyle&&Mo.from==br&&(Wa+=" "+Ss.startStyle),Ss.endStyle&&Mo.to==_i&&(ho||(ho=[])).push(Ss.endStyle,Mo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Zs in Ss.attributes)(Na||(Na={}))[Zs]=Ss.attributes[Zs];Ss.collapsed&&(!Ma||Pi(Ma.marker,Ss)<0)&&(Ma=Mo)}else Mo.from>br&&_i>Mo.from&&(_i=Mo.from)}if(ho)for(var yl=0;yl<ho.length;yl+=2)ho[yl+1]==_i&&(Ta+=" "+ho[yl]);if(!Ma||Ma.from==br)for(var ul=0;ul<qa.length;++ul)ma(B,0,qa[ul]);if(Ma&&(Ma.from||0)==br){if(ma(B,(Ma.to==null?nr+1:Ma.to)-br,Ma.marker,Ma.from==null),Ma.to==null)return;Ma.to==br&&(Ma=!1)}}if(br>=nr)break;for(var Pl=Math.min(nr,_i);;){if(jn){var Vl=br+jn.length;if(!Ma){var Il=Vl>Pl?jn.slice(0,Pl-br):jn;B.addToken(B,Il,ti?ti+la:la,Wa,br+Il.length==_i?Ta:"",Ei,Na)}if(Vl>=Pl){jn=jn.slice(Pl-br),br=Pl;break}br=Vl,Wa=""}jn=ge.slice(Ke,Ke=ne[Cr++]),ti=$n(ne[Cr++],B.cm.options)}}}function ba(D,B,ne){this.line=B,this.rest=Kt(B),this.size=this.rest?Nr(Ge(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=vr(D,B)}function bi(D,B,ne){for(var ae=[],ge,Ke=B;Ke<ne;Ke=ge){var It=new ba(D.doc,Me(D.doc,Ke),Ke);ge=Ke+It.size,ae.push(It)}return ae}var Rn=null;function ji(D){Rn?Rn.ops.push(D):D.ownsGroup=Rn={ops:[D],delayedCallbacks:[]}}function ha(D){var B=D.delayedCallbacks,ne=0;do{for(;ne<B.length;ne++)B[ne].call(null);for(var ae=0;ae<D.ops.length;ae++){var ge=D.ops[ae];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(ne<B.length)}function ta(D,B){var ne=D.ownsGroup;if(!ne)return;try{ha(ne)}finally{Rn=null,B(ne)}}var ra=null;function Ir(D,B){var ne=Zt(D,B);if(!ne.length)return;var ae=Array.prototype.slice.call(arguments,2),ge;Rn?ge=Rn.delayedCallbacks:ra?ge=ra:(ge=ra=[],setTimeout(Sr,0));for(var Ke=function(br){ge.push(function(){return ne[br].apply(null,ae)})},It=0;It<ne.length;++It)Ke(It)}function Sr(){var D=ra;ra=null;for(var B=0;B<D.length;++B)D[B]()}function Tn(D,B,ne,ae){for(var ge=0;ge<B.changes.length;ge++){var Ke=B.changes[ge];Ke=="text"?ln(D,B):Ke=="gutter"?_t(D,B,ne,ae):Ke=="class"?Pn(D,B):Ke=="widget"&&_r(D,B,ae)}B.changes=null}function pr(D){return D.node==D.text&&(D.node=I("div",null,null,"position: relative"),D.text.parentNode&&D.text.parentNode.replaceChild(D.node,D.text),D.node.appendChild(D.text),d&&u<8&&(D.node.style.zIndex=2)),D.node}function Dr(D,B){var ne=B.bgClass?B.bgClass+" "+(B.line.bgClass||""):B.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),B.background)ne?B.background.className=ne:(B.background.parentNode.removeChild(B.background),B.background=null);else if(ne){var ae=pr(B);B.background=ae.insertBefore(I("div",null,ne),ae.firstChild),D.display.input.setUneditable(B.background)}}function Wr(D,B){var ne=D.display.externalMeasured;return ne&&ne.line==B.line?(D.display.externalMeasured=null,B.measure=ne.measure,ne.built):oi(D,B)}function ln(D,B){var ne=B.text.className,ae=Wr(D,B);B.text==B.node&&(B.node=ae.pre),B.text.parentNode.replaceChild(ae.pre,B.text),B.text=ae.pre,ae.bgClass!=B.bgClass||ae.textClass!=B.textClass?(B.bgClass=ae.bgClass,B.textClass=ae.textClass,Pn(D,B)):ne&&(B.text.className=ne)}function Pn(D,B){Dr(D,B),B.line.wrapClass?pr(B).className=B.line.wrapClass:B.node!=B.text&&(B.node.className="");var ne=B.textClass?B.textClass+" "+(B.line.textClass||""):B.line.textClass;B.text.className=ne||""}function _t(D,B,ne,ae){if(B.gutter&&(B.node.removeChild(B.gutter),B.gutter=null),B.gutterBackground&&(B.node.removeChild(B.gutterBackground),B.gutterBackground=null),B.line.gutterClass){var ge=pr(B);B.gutterBackground=I("div",null,"CodeMirror-gutter-background "+B.line.gutterClass,"left: "+(D.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px; width: "+ae.gutterTotalWidth+"px"),D.display.input.setUneditable(B.gutterBackground),ge.insertBefore(B.gutterBackground,B.text)}var Ke=B.line.gutterMarkers;if(D.options.lineNumbers||Ke){var It=pr(B),nr=B.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(D.options.fixedGutter?ae.fixedPos:-ae.gutterTotalWidth)+"px");if(D.display.input.setUneditable(nr),It.insertBefore(nr,B.text),B.line.gutterClass&&(nr.className+=" "+B.line.gutterClass),D.options.lineNumbers&&(!Ke||!Ke["CodeMirror-linenumbers"])&&(B.lineNumber=nr.appendChild(I("div",Jn(D.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ae.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+D.display.lineNumInnerWidth+"px"))),Ke)for(var br=0;br<D.display.gutterSpecs.length;++br){var Cr=D.display.gutterSpecs[br].className,jn=Ke.hasOwnProperty(Cr)&&Ke[Cr];jn&&nr.appendChild(I("div",[jn],"CodeMirror-gutter-elt","left: "+ae.gutterLeft[Cr]+"px; width: "+ae.gutterWidth[Cr]+"px"))}}}function _r(D,B,ne){B.alignable&&(B.alignable=null);for(var ae=_("CodeMirror-linewidget"),ge=B.node.firstChild,Ke=void 0;ge;ge=Ke)Ke=ge.nextSibling,ae.test(ge.className)&&B.node.removeChild(ge);en(D,B,ne)}function Lr(D,B,ne,ae){var ge=Wr(D,B);return B.text=B.node=ge.pre,ge.bgClass&&(B.bgClass=ge.bgClass),ge.textClass&&(B.textClass=ge.textClass),Pn(D,B),_t(D,B,ne,ae),en(D,B,ae),B.node}function en(D,B,ne){if(bn(D,B.line,B,ne,!0),B.rest)for(var ae=0;ae<B.rest.length;ae++)bn(D,B.rest[ae],B,ne,!1)}function bn(D,B,ne,ae,ge){if(!B.widgets)return;for(var Ke=pr(ne),It=0,nr=B.widgets;It<nr.length;++It){var br=nr[It],Cr=I("div",[br.node],"CodeMirror-linewidget"+(br.className?" "+br.className:""));br.handleMouseEvents||Cr.setAttribute("cm-ignore-events","true"),On(br,Cr,ne,ae),D.display.input.setUneditable(Cr),ge&&br.above?Ke.insertBefore(Cr,ne.gutter||ne.text):Ke.appendChild(Cr),Ir(br,"redraw")}}function On(D,B,ne,ae){if(D.noHScroll){(ne.alignable||(ne.alignable=[])).push(B);var ge=ae.wrapperWidth;B.style.left=ae.fixedPos+"px",D.coverGutter||(ge-=ae.gutterTotalWidth,B.style.paddingLeft=ae.gutterTotalWidth+"px"),B.style.width=ge+"px"}D.coverGutter&&(B.style.zIndex=5,B.style.position="relative",D.noHScroll||(B.style.marginLeft=-ae.gutterTotalWidth+"px"))}function yn(D){if(D.height!=null)return D.height;var B=D.doc.cm;if(!B)return 0;if(!U(document.body,D.node)){var ne="position: relative;";D.coverGutter&&(ne+="margin-left: -"+B.display.gutters.offsetWidth+"px;"),D.noHScroll&&(ne+="width: "+B.display.wrapper.clientWidth+"px;"),O(B.display.measure,I("div",[D.node],null,ne))}return D.height=D.node.parentNode.offsetHeight}function qn(D,B){for(var ne=Xe(B);ne!=D.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==D.sizer&&ne!=D.mover)return!0}function Hn(D){return D.lineSpace.offsetTop}function pi(D){return D.mover.offsetHeight-D.lineSpace.offsetHeight}function Fi(D){if(D.cachedPaddingH)return D.cachedPaddingH;var B=O(D.measure,I("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(B):B.currentStyle,ae={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(ae.left)&&!isNaN(ae.right)&&(D.cachedPaddingH=ae),ae}function wi(D){return ee-D.display.nativeBarWidth}function Oi(D){return D.display.scroller.clientWidth-wi(D)-D.display.barWidth}function zi(D){return D.display.scroller.clientHeight-wi(D)-D.display.barHeight}function ea(D,B,ne){var ae=D.options.lineWrapping,ge=ae&&Oi(D);if(!B.measure.heights||ae&&B.measure.width!=ge){var Ke=B.measure.heights=[];if(ae){B.measure.width=ge;for(var It=B.text.firstChild.getClientRects(),nr=0;nr<It.length-1;nr++){var br=It[nr],Cr=It[nr+1];Math.abs(br.bottom-Cr.bottom)>2&&Ke.push((br.bottom+Cr.top)/2-ne.top)}}Ke.push(ne.bottom-ne.top)}}function Gi(D,B,ne){if(D.line==B)return{map:D.measure.map,cache:D.measure.cache};for(var ae=0;ae<D.rest.length;ae++)if(D.rest[ae]==B)return{map:D.measure.maps[ae],cache:D.measure.caches[ae]};for(var ge=0;ge<D.rest.length;ge++)if(Nr(D.rest[ge])>ne)return{map:D.measure.maps[ge],cache:D.measure.caches[ge],before:!0}}function Wi(D,B){B=Rt(B);var ne=Nr(B),ae=D.display.externalMeasured=new ba(D.doc,B,ne);ae.lineN=ne;var ge=ae.built=oi(D,ae);return ae.text=ge.pre,O(D.display.lineMeasure,ge.pre),ae}function Hi(D,B,ne,ae){return Ca(D,ca(D,B),ne,ae)}function Ji(D,B){if(B>=D.display.viewFrom&&B<D.display.viewTo)return D.display.view[uo(D,B)];var ne=D.display.externalMeasured;if(ne&&B>=ne.lineN&&B<ne.lineN+ne.size)return ne}function ca(D,B){var ne=Nr(B),ae=Ji(D,ne);ae&&!ae.text?ae=null:ae&&ae.changes&&(Tn(D,ae,ne,os(D)),D.curOp.forceUpdate=!0),ae||(ae=Wi(D,B));var ge=Gi(ae,B,ne);return{line:B,view:ae,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Ca(D,B,ne,ae,ge){B.before&&(ne=-1);var Ke=ne+(ae||""),It;return B.cache.hasOwnProperty(Ke)?It=B.cache[Ke]:(B.rect||(B.rect=B.view.text.getBoundingClientRect()),B.hasHeights||(ea(D,B.view,B.rect),B.hasHeights=!0),It=va(D,B,ne,ae),It.bogus||(B.cache[Ke]=It)),{left:It.left,right:It.right,top:ge?It.rtop:It.top,bottom:ge?It.rbottom:It.bottom}}var na={left:0,right:0,top:0,bottom:0};function Pa(D,B,ne){for(var ae,ge,Ke,It,nr,br,Cr=0;Cr<D.length;Cr+=3)if(nr=D[Cr],br=D[Cr+1],B<nr?(ge=0,Ke=1,It="left"):B<br?(ge=B-nr,Ke=ge+1):(Cr==D.length-3||B==br&&D[Cr+3]>B)&&(Ke=br-nr,ge=Ke-1,B>=br&&(It="right")),ge!=null){if(ae=D[Cr+2],nr==br&&ne==(ae.insertLeft?"left":"right")&&(It=ne),ne=="left"&&ge==0)for(;Cr&&D[Cr-2]==D[Cr-3]&&D[Cr-1].insertLeft;)ae=D[(Cr-=3)+2],It="left";if(ne=="right"&&ge==br-nr)for(;Cr<D.length-3&&D[Cr+3]==D[Cr+4]&&!D[Cr+5].insertLeft;)ae=D[(Cr+=3)+2],It="right";break}return{node:ae,start:ge,end:Ke,collapse:It,coverStart:nr,coverEnd:br}}function La(D,B){var ne=na;if(B=="left")for(var ae=0;ae<D.length&&!((ne=D[ae]).left!=ne.right);ae++);else for(var ge=D.length-1;ge>=0&&!((ne=D[ge]).left!=ne.right);ge--);return ne}function va(D,B,ne,ae){var ge=Pa(B.map,ne,ae),Ke=ge.node,It=ge.start,nr=ge.end,br=ge.collapse,Cr;if(Ke.nodeType==3){for(var jn=0;jn<4;jn++){for(;It&&we(B.line.text.charAt(ge.coverStart+It));)--It;for(;ge.coverStart+nr<ge.coverEnd&&we(B.line.text.charAt(ge.coverStart+nr));)++nr;if(d&&u<9&&It==0&&nr==ge.coverEnd-ge.coverStart?Cr=Ke.parentNode.getBoundingClientRect():Cr=La(M(Ke,It,nr).getClientRects(),ae),Cr.left||Cr.right||It==0)break;nr=It,It=It-1,br="right"}d&&u<11&&(Cr=ga(D.display.measure,Cr))}else{It>0&&(br=ae="right");var ti;D.options.lineWrapping&&(ti=Ke.getClientRects()).length>1?Cr=ti[ae=="right"?ti.length-1:0]:Cr=Ke.getBoundingClientRect()}if(d&&u<9&&!It&&(!Cr||!Cr.left&&!Cr.right)){var Ei=Ke.parentNode.getClientRects()[0];Ei?Cr={left:Ei.left,right:Ei.left+Io(D.display),top:Ei.top,bottom:Ei.bottom}:Cr=na}for(var _i=Cr.top-B.rect.top,la=Cr.bottom-B.rect.top,Ta=(_i+la)/2,Wa=B.view.measure.heights,Ma=0;Ma<Wa.length-1&&!(Ta<Wa[Ma]);Ma++);var Na=Ma?Wa[Ma-1]:0,qa=Wa[Ma],ho={left:(br=="right"?Cr.right:Cr.left)-B.rect.left,right:(br=="left"?Cr.left:Cr.right)-B.rect.left,top:Na,bottom:qa};return!Cr.left&&!Cr.right&&(ho.bogus=!0),D.options.singleCursorHeightPerLine||(ho.rtop=_i,ho.rbottom=la),ho}function ga(D,B){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ft(D))return B;var ne=screen.logicalXDPI/screen.deviceXDPI,ae=screen.logicalYDPI/screen.deviceYDPI;return{left:B.left*ne,right:B.right*ne,top:B.top*ae,bottom:B.bottom*ae}}function Oa(D){if(D.measure&&(D.measure.cache={},D.measure.heights=null,D.rest))for(var B=0;B<D.rest.length;B++)D.measure.caches[B]={}}function Aa(D){D.display.externalMeasure=null,w(D.display.lineMeasure);for(var B=0;B<D.display.view.length;B++)Oa(D.display.view[B])}function Xa(D){Aa(D),D.display.cachedCharWidth=D.display.cachedTextHeight=D.display.cachedPaddingH=null,D.options.lineWrapping||(D.display.maxLineChanged=!0),D.display.lineNumChars=null}function _a(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Va(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bi(D){var B=0;if(D.widgets)for(var ne=0;ne<D.widgets.length;++ne)D.widgets[ne].above&&(B+=yn(D.widgets[ne]));return B}function io(D,B,ne,ae,ge){if(!ge){var Ke=Bi(B);ne.top+=Ke,ne.bottom+=Ke}if(ae=="line")return ne;ae||(ae="local");var It=Rr(B);if(ae=="local"?It+=Hn(D.display):It-=D.display.viewOffset,ae=="page"||ae=="window"){var nr=D.display.lineSpace.getBoundingClientRect();It+=nr.top+(ae=="window"?0:Va());var br=nr.left+(ae=="window"?0:_a());ne.left+=br,ne.right+=br}return ne.top+=It,ne.bottom+=It,ne}function oo(D,B,ne){if(ne=="div")return B;var ae=B.left,ge=B.top;if(ne=="page")ae-=_a(),ge-=Va();else if(ne=="local"||!ne){var Ke=D.display.sizer.getBoundingClientRect();ae+=Ke.left,ge+=Ke.top}var It=D.display.lineSpace.getBoundingClientRect();return{left:ae-It.left,top:ge-It.top}}function Qo(D,B,ne,ae,ge){return ae||(ae=Me(D.doc,B.line)),io(D,ae,Hi(D,ae,B.ch,ge),ne)}function mo(D,B,ne,ae,ge,Ke){ae=ae||Me(D.doc,B.line),ge||(ge=ca(D,ae));function It(la,Ta){var Wa=Ca(D,ge,la,Ta?"right":"left",Ke);return Ta?Wa.left=Wa.right:Wa.right=Wa.left,io(D,ae,Wa,ne)}var nr=gt(ae,D.doc.direction),br=B.ch,Cr=B.sticky;if(br>=ae.text.length?(br=ae.text.length,Cr="before"):br<=0&&(br=0,Cr="after"),!nr)return It(Cr=="before"?br-1:br,Cr=="before");function jn(la,Ta,Wa){var Ma=nr[Ta],Na=Ma.level==1;return It(Wa?la-1:la,Na!=Wa)}var ti=_e(nr,br,Cr),Ei=pe,_i=jn(br,ti,Cr=="before");return Ei!=null&&(_i.other=jn(br,Ei,Cr!="before")),_i}function To(D,B){var ne=0;B=Pt(D.doc,B),D.options.lineWrapping||(ne=Io(D.display)*B.ch);var ae=Me(D.doc,B.line),ge=Rr(ae)+Hn(D.display);return{left:ne,right:ne,top:ge,bottom:ge+ae.height}}function ao(D,B,ne,ae,ge){var Ke=ur(D,B,ne);return Ke.xRel=ge,ae&&(Ke.outside=ae),Ke}function So(D,B,ne){var ae=D.doc;if(ne+=D.display.viewOffset,ne<0)return ao(ae.first,0,null,-1,-1);var ge=mn(ae,ne),Ke=ae.first+ae.size-1;if(ge>Ke)return ao(ae.first+ae.size-1,Me(ae,Ke).text.length,null,1,1);B<0&&(B=0);for(var It=Me(ae,ge);;){var nr=Uo(D,It,ge,B,ne),br=Wt(It,nr.ch+(nr.xRel>0||nr.outside>0?1:0));if(!br)return nr;var Cr=br.find(1);if(Cr.line==ge)return Cr;It=Me(ae,ge=Cr.line)}}function bo(D,B,ne,ae){ae-=Bi(B);var ge=B.text.length,Ke=Se(function(It){return Ca(D,ne,It-1).bottom<=ae},ge,0);return ge=Se(function(It){return Ca(D,ne,It).top>ae},Ke,ge),{begin:Ke,end:ge}}function to(D,B,ne,ae){ne||(ne=ca(D,B));var ge=io(D,B,Ca(D,ne,ae),"line").top;return bo(D,B,ne,ge)}function Jo(D,B,ne,ae){return D.bottom<=ne?!1:D.top>ne?!0:(ae?D.left:D.right)>B}function Uo(D,B,ne,ae,ge){ge-=Rr(B);var Ke=ca(D,B),It=Bi(B),nr=0,br=B.text.length,Cr=!0,jn=gt(B,D.doc.direction);if(jn){var ti=(D.options.lineWrapping?ts:wo)(D,B,ne,Ke,jn,ae,ge);Cr=ti.level!=1,nr=Cr?ti.from:ti.to-1,br=Cr?ti.to:ti.from-1}var Ei=null,_i=null,la=Se(function(ns){var Mo=Ca(D,Ke,ns);return Mo.top+=It,Mo.bottom+=It,Jo(Mo,ae,ge,!1)?(Mo.top<=ge&&Mo.left<=ae&&(Ei=ns,_i=Mo),!0):!1},nr,br),Ta,Wa,Ma=!1;if(_i){var Na=ae-_i.left<_i.right-ae,qa=Na==Cr;la=Ei+(qa?0:1),Wa=qa?"after":"before",Ta=Na?_i.left:_i.right}else{!Cr&&(la==br||la==nr)&&la++,Wa=la==0?"after":la==B.text.length?"before":Ca(D,Ke,la-(Cr?1:0)).bottom+It<=ge==Cr?"after":"before";var ho=mo(D,ur(ne,la,Wa),"line",B,Ke);Ta=ho.left,Ma=ge<ho.top?-1:ge>=ho.bottom?1:0}return la=Ce(B.text,la,1),ao(ne,la,Wa,Ma,ae-Ta)}function wo(D,B,ne,ae,ge,Ke,It){var nr=Se(function(ti){var Ei=ge[ti],_i=Ei.level!=1;return Jo(mo(D,ur(ne,_i?Ei.to:Ei.from,_i?"before":"after"),"line",B,ae),Ke,It,!0)},0,ge.length-1),br=ge[nr];if(nr>0){var Cr=br.level!=1,jn=mo(D,ur(ne,Cr?br.from:br.to,Cr?"after":"before"),"line",B,ae);Jo(jn,Ke,It,!0)&&jn.top>It&&(br=ge[nr-1])}return br}function ts(D,B,ne,ae,ge,Ke,It){var nr=bo(D,B,ae,It),br=nr.begin,Cr=nr.end;/\s/.test(B.text.charAt(Cr-1))&&Cr--;for(var jn=null,ti=null,Ei=0;Ei<ge.length;Ei++){var _i=ge[Ei];if(_i.from>=Cr||_i.to<=br)continue;var la=_i.level!=1,Ta=Ca(D,ae,la?Math.min(Cr,_i.to)-1:Math.max(br,_i.from)).right,Wa=Ta<Ke?Ke-Ta+1e9:Ta-Ke;(!jn||ti>Wa)&&(jn=_i,ti=Wa)}return jn||(jn=ge[ge.length-1]),jn.from<br&&(jn={from:br,to:jn.to,level:jn.level}),jn.to>Cr&&(jn={from:jn.from,to:Cr,level:jn.level}),jn}var Ia;function Oo(D){if(D.cachedTextHeight!=null)return D.cachedTextHeight;if(Ia==null){Ia=I("pre",null,"CodeMirror-line-like");for(var B=0;B<49;++B)Ia.appendChild(document.createTextNode("x")),Ia.appendChild(I("br"));Ia.appendChild(document.createTextNode("x"))}O(D.measure,Ia);var ne=Ia.offsetHeight/50;return ne>3&&(D.cachedTextHeight=ne),w(D.measure),ne||1}function Io(D){if(D.cachedCharWidth!=null)return D.cachedCharWidth;var B=I("span","xxxxxxxxxx"),ne=I("pre",[B],"CodeMirror-line-like");O(D.measure,ne);var ae=B.getBoundingClientRect(),ge=(ae.right-ae.left)/10;return ge>2&&(D.cachedCharWidth=ge),ge||10}function os(D){for(var B=D.display,ne={},ae={},ge=B.gutters.clientLeft,Ke=B.gutters.firstChild,It=0;Ke;Ke=Ke.nextSibling,++It){var nr=D.display.gutterSpecs[It].className;ne[nr]=Ke.offsetLeft+Ke.clientLeft+ge,ae[nr]=Ke.clientWidth}return{fixedPos:xo(B),gutterTotalWidth:B.gutters.offsetWidth,gutterLeft:ne,gutterWidth:ae,wrapperWidth:B.wrapper.clientWidth}}function xo(D){return D.scroller.getBoundingClientRect().left-D.sizer.getBoundingClientRect().left}function rs(D){var B=Oo(D.display),ne=D.options.lineWrapping,ae=ne&&Math.max(5,D.display.scroller.clientWidth/Io(D.display)-3);return function(ge){if(vr(D.doc,ge))return 0;var Ke=0;if(ge.widgets)for(var It=0;It<ge.widgets.length;It++)ge.widgets[It].height&&(Ke+=ge.widgets[It].height);return ne?Ke+(Math.ceil(ge.text.length/ae)||1)*B:Ke+B}}function Ho(D){var B=D.doc,ne=rs(D);B.iter(function(ae){var ge=ne(ae);ge!=ae.height&&sr(ae,ge)})}function _o(D,B,ne,ae){var ge=D.display;if(!ne&&Xe(B).getAttribute("cm-not-content")=="true")return null;var Ke,It,nr=ge.lineSpace.getBoundingClientRect();try{Ke=B.clientX-nr.left,It=B.clientY-nr.top}catch(ti){return null}var br=So(D,Ke,It),Cr;if(ae&&br.xRel>0&&(Cr=Me(D.doc,br.line).text).length==br.ch){var jn=V(Cr,Cr.length,D.options.tabSize)-Cr.length;br=ur(br.line,Math.max(0,Math.round((Ke-Fi(D.display).left)/Io(D.display))-jn))}return br}function uo(D,B){if(B>=D.display.viewTo)return null;if(B-=D.display.viewFrom,B<0)return null;for(var ne=D.display.view,ae=0;ae<ne.length;ae++)if(B-=ne[ae].size,B<0)return ae}function Ha(D,B,ne,ae){B==null&&(B=D.doc.first),ne==null&&(ne=D.doc.first+D.doc.size),ae||(ae=0);var ge=D.display;if(ae&&ne<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>B)&&(ge.updateLineNumbers=B),D.curOp.viewChanged=!0,B>=ge.viewTo)qe&&Lt(D.doc,B)<ge.viewTo&&Er(D);else if(ne<=ge.viewFrom)qe&&cr(D.doc,ne+ae)>ge.viewFrom?Er(D):(ge.viewFrom+=ae,ge.viewTo+=ae);else if(B<=ge.viewFrom&&ne>=ge.viewTo)Er(D);else if(B<=ge.viewFrom){var Ke=qr(D,ne,ne+ae,1);Ke?(ge.view=ge.view.slice(Ke.index),ge.viewFrom=Ke.lineN,ge.viewTo+=ae):Er(D)}else if(ne>=ge.viewTo){var It=qr(D,B,B,-1);It?(ge.view=ge.view.slice(0,It.index),ge.viewTo=It.lineN):Er(D)}else{var nr=qr(D,B,B,-1),br=qr(D,ne,ne+ae,1);nr&&br?(ge.view=ge.view.slice(0,nr.index).concat(bi(D,nr.lineN,br.lineN)).concat(ge.view.slice(br.index)),ge.viewTo+=ae):Er(D)}var Cr=ge.externalMeasured;Cr&&(ne<Cr.lineN?Cr.lineN+=ae:B<Cr.lineN+Cr.size&&(ge.externalMeasured=null))}function vt(D,B,ne){D.curOp.viewChanged=!0;var ae=D.display,ge=D.display.externalMeasured;if(ge&&B>=ge.lineN&&B<ge.lineN+ge.size&&(ae.externalMeasured=null),B<ae.viewFrom||B>=ae.viewTo)return;var Ke=ae.view[uo(D,B)];if(Ke.node==null)return;var It=Ke.changes||(Ke.changes=[]);G(It,ne)==-1&&It.push(ne)}function Er(D){D.display.viewFrom=D.display.viewTo=D.doc.first,D.display.view=[],D.display.viewOffset=0}function qr(D,B,ne,ae){var ge=uo(D,B),Ke,It=D.display.view;if(!qe||ne==D.doc.first+D.doc.size)return{index:ge,lineN:ne};for(var nr=D.display.viewFrom,br=0;br<ge;br++)nr+=It[br].size;if(nr!=B){if(ae>0){if(ge==It.length-1)return null;Ke=nr+It[ge].size-B,ge++}else Ke=nr-B;B+=Ke,ne+=Ke}for(;Lt(D.doc,ne)!=ne;){if(ge==(ae<0?0:It.length-1))return null;ne+=ae*It[ge-(ae<0?1:0)].size,ge+=ae}return{index:ge,lineN:ne}}function Gr(D,B,ne){var ae=D.display,ge=ae.view;ge.length==0||B>=ae.viewTo||ne<=ae.viewFrom?(ae.view=bi(D,B,ne),ae.viewFrom=B):(ae.viewFrom>B?ae.view=bi(D,B,ae.viewFrom).concat(ae.view):ae.viewFrom<B&&(ae.view=ae.view.slice(uo(D,B))),ae.viewFrom=B,ae.viewTo<ne?ae.view=ae.view.concat(bi(D,ae.viewTo,ne)):ae.viewTo>ne&&(ae.view=ae.view.slice(0,uo(D,ne)))),ae.viewTo=ne}function Qn(D){for(var B=D.display.view,ne=0,ae=0;ae<B.length;ae++){var ge=B[ae];!ge.hidden&&(!ge.node||ge.changes)&&++ne}return ne}function un(D){D.display.input.showSelection(D.display.input.prepareSelection())}function zr(D,B){B===void 0&&(B=!0);for(var ne=D.doc,ae={},ge=ae.cursors=document.createDocumentFragment(),Ke=ae.selection=document.createDocumentFragment(),It=0;It<ne.sel.ranges.length;It++){if(!B&&It==ne.sel.primIndex)continue;var nr=ne.sel.ranges[It];if(nr.from().line>=D.display.viewTo||nr.to().line<D.display.viewFrom)continue;var br=nr.empty();(br||D.options.showCursorWhenSelecting)&&ni(D,nr.head,ge),br||Kn(D,nr,Ke)}return ae}function ni(D,B,ne){var ae=mo(D,B,"div",null,null,!D.options.singleCursorHeightPerLine),ge=ne.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ge.style.left=ae.left+"px",ge.style.top=ae.top+"px",ge.style.height=Math.max(0,ae.bottom-ae.top)*D.options.cursorHeight+"px",ae.other){var Ke=ne.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ke.style.display="",Ke.style.left=ae.other.left+"px",Ke.style.top=ae.other.top+"px",Ke.style.height=(ae.other.bottom-ae.other.top)*.85+"px"}}function rn(D,B){return D.top-B.top||D.left-B.left}function Kn(D,B,ne){var ae=D.display,ge=D.doc,Ke=document.createDocumentFragment(),It=Fi(D.display),nr=It.left,br=Math.max(ae.sizerWidth,Oi(D)-ae.sizer.offsetLeft)-It.right,Cr=ge.direction=="ltr";function jn(qa,ho,ns,Mo){ho<0&&(ho=0),ho=Math.round(ho),Mo=Math.round(Mo),Ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+qa+`px;
top: `+ho+"px; width: "+(ns==null?br-qa:ns)+`px;
height: `+(Mo-ho)+"px"))}function ti(qa,ho,ns){var Mo=Me(ge,qa),Ss=Mo.text.length,Zs,yl;function ul(Il,Gl){return Qo(D,ur(qa,Il),"div",Mo,Gl)}function Pl(Il,Gl,Fl){var Ja=to(D,Mo,null,Il),vl=Gl=="ltr"==(Fl=="after")?"left":"right",gl=Fl=="after"?Ja.begin:Ja.end-(/\s/.test(Mo.text.charAt(Ja.end-1))?2:1);return ul(gl,vl)[vl]}var Vl=gt(Mo,ge.direction);return le(Vl,ho||0,ns==null?Ss:ns,function(Il,Gl,Fl,Ja){var vl=Fl=="ltr",gl=ul(Il,vl?"left":"right"),El=ul(Gl-1,vl?"right":"left"),Bu=ho==null&&Il==0,Ks=ns==null&&Gl==Ss,vs=Ja==0,lu=!Vl||Ja==Vl.length-1;if(El.top-gl.top<=3){var Kl=(Cr?Bu:Ks)&&vs,Uu=(Cr?Ks:Bu)&&lu,Eu=Kl?nr:(vl?gl:El).left,uu=Uu?br:(vl?El:gl).right;jn(Eu,gl.top,uu-Eu,gl.bottom)}else{var ku,Yl,Tu,Vu;vl?(ku=Cr&&Bu&&vs?nr:gl.left,Yl=Cr?br:Pl(Il,Fl,"before"),Tu=Cr?nr:Pl(Gl,Fl,"after"),Vu=Cr&&Ks&&lu?br:El.right):(ku=Cr?Pl(Il,Fl,"before"):nr,Yl=!Cr&&Bu&&vs?br:gl.right,Tu=!Cr&&Ks&&lu?nr:El.left,Vu=Cr?Pl(Gl,Fl,"after"):br),jn(ku,gl.top,Yl-ku,gl.bottom),gl.bottom<El.top&&jn(nr,gl.bottom,null,El.top),jn(Tu,El.top,Vu-Tu,El.bottom)}(!Zs||rn(gl,Zs)<0)&&(Zs=gl),rn(El,Zs)<0&&(Zs=El),(!yl||rn(gl,yl)<0)&&(yl=gl),rn(El,yl)<0&&(yl=El)}),{start:Zs,end:yl}}var Ei=B.from(),_i=B.to();if(Ei.line==_i.line)ti(Ei.line,Ei.ch,_i.ch);else{var la=Me(ge,Ei.line),Ta=Me(ge,_i.line),Wa=Rt(la)==Rt(Ta),Ma=ti(Ei.line,Ei.ch,Wa?la.text.length+1:null).end,Na=ti(_i.line,Wa?0:null,_i.ch).start;Wa&&(Ma.top<Na.top-2?(jn(Ma.right,Ma.top,null,Ma.bottom),jn(nr,Na.top,Na.left,Na.bottom)):jn(Ma.right,Ma.top,Na.left-Ma.right,Ma.bottom)),Ma.bottom<Na.top&&jn(nr,Ma.bottom,null,Na.top)}ne.appendChild(Ke)}function li(D){if(!D.state.focused)return;var B=D.display;clearInterval(B.blinker);var ne=!0;B.cursorDiv.style.visibility="",D.options.cursorBlinkRate>0?B.blinker=setInterval(function(){D.hasFocus()||mi(D),B.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},D.options.cursorBlinkRate):D.options.cursorBlinkRate<0&&(B.cursorDiv.style.visibility="hidden")}function ci(D){D.state.focused||(D.display.input.focus(),Ci(D))}function si(D){D.state.delayingBlurEvent=!0,setTimeout(function(){D.state.delayingBlurEvent&&(D.state.delayingBlurEvent=!1,mi(D))},100)}function Ci(D,B){if(D.state.delayingBlurEvent&&(D.state.delayingBlurEvent=!1),D.options.readOnly=="nocursor")return;D.state.focused||(Ht(D,"focus",D,B),D.state.focused=!0,X(D.display.wrapper,"CodeMirror-focused"),!D.curOp&&D.display.selForContextMenu!=D.doc.sel&&(D.display.input.reset(),a&&setTimeout(function(){return D.display.input.reset(!0)},20)),D.display.input.receivedFocus()),li(D)}function mi(D,B){if(D.state.delayingBlurEvent)return;D.state.focused&&(Ht(D,"blur",D,B),D.state.focused=!1,T(D.display.wrapper,"CodeMirror-focused")),clearInterval(D.display.blinker),setTimeout(function(){D.state.focused||(D.display.shift=!1)},150)}function yi(D){for(var B=D.display,ne=B.lineDiv.offsetTop,ae=0;ae<B.view.length;ae++){var ge=B.view[ae],Ke=D.options.lineWrapping,It=void 0,nr=0;if(ge.hidden)continue;if(d&&u<8){var br=ge.node.offsetTop+ge.node.offsetHeight;It=br-ne,ne=br}else{var Cr=ge.node.getBoundingClientRect();It=Cr.bottom-Cr.top,!Ke&&ge.text.firstChild&&(nr=ge.text.firstChild.getBoundingClientRect().right-Cr.left-1)}var jn=ge.line.height-It;if((jn>.005||jn<-.005)&&(sr(ge.line,It),Ni(ge.line),ge.rest))for(var ti=0;ti<ge.rest.length;ti++)Ni(ge.rest[ti]);if(nr>D.display.sizerWidth){var Ei=Math.ceil(nr/Io(D.display));Ei>D.display.maxLineLength&&(D.display.maxLineLength=Ei,D.display.maxLine=ge.line,D.display.maxLineChanged=!0)}}}function Ni(D){if(D.widgets)for(var B=0;B<D.widgets.length;++B){var ne=D.widgets[B],ae=ne.node.parentNode;ae&&(ne.height=ae.offsetHeight)}}function ia(D,B,ne){var ae=ne&&ne.top!=null?Math.max(0,ne.top):D.scroller.scrollTop;ae=Math.floor(ae-Hn(D));var ge=ne&&ne.bottom!=null?ne.bottom:ae+D.wrapper.clientHeight,Ke=mn(B,ae),It=mn(B,ge);if(ne&&ne.ensure){var nr=ne.ensure.from.line,br=ne.ensure.to.line;nr<Ke?(Ke=nr,It=mn(B,Rr(Me(B,nr))+D.wrapper.clientHeight)):Math.min(br,B.lastLine())>=It&&(Ke=mn(B,Rr(Me(B,br))-D.wrapper.clientHeight),It=br)}return{from:Ke,to:Math.max(It,Ke+1)}}function Ki(D,B){if(dr(D,"scrollCursorIntoView"))return;var ne=D.display,ae=ne.sizer.getBoundingClientRect(),ge=null;if(B.top+ae.top<0?ge=!0:B.bottom+ae.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!n){var Ke=I("div","\u200B",null,`position: absolute;
top: `+(B.top-ne.viewOffset-Hn(D.display))+`px;
height: `+(B.bottom-B.top+wi(D)+ne.barHeight)+`px;
left: `+B.left+"px; width: "+Math.max(2,B.right-B.left)+"px;");D.display.lineSpace.appendChild(Ke),Ke.scrollIntoView(ge),D.display.lineSpace.removeChild(Ke)}}function fa(D,B,ne,ae){ae==null&&(ae=0);var ge;!D.options.lineWrapping&&B==ne&&(B=B.ch?ur(B.line,B.sticky=="before"?B.ch-1:B.ch,"after"):B,ne=B.sticky=="before"?ur(B.line,B.ch+1,"before"):B);for(var Ke=0;Ke<5;Ke++){var It=!1,nr=mo(D,B),br=!ne||ne==B?nr:mo(D,ne);ge={left:Math.min(nr.left,br.left),top:Math.min(nr.top,br.top)-ae,right:Math.max(nr.left,br.left),bottom:Math.max(nr.bottom,br.bottom)+ae};var Cr=xa(D,ge),jn=D.doc.scrollTop,ti=D.doc.scrollLeft;if(Cr.scrollTop!=null&&(Ea(D,Cr.scrollTop),Math.abs(D.doc.scrollTop-jn)>1&&(It=!0)),Cr.scrollLeft!=null&&(Ka(D,Cr.scrollLeft),Math.abs(D.doc.scrollLeft-ti)>1&&(It=!0)),!It)break}return ge}function Ya(D,B){var ne=xa(D,B);ne.scrollTop!=null&&Ea(D,ne.scrollTop),ne.scrollLeft!=null&&Ka(D,ne.scrollLeft)}function xa(D,B){var ne=D.display,ae=Oo(D.display);B.top<0&&(B.top=0);var ge=D.curOp&&D.curOp.scrollTop!=null?D.curOp.scrollTop:ne.scroller.scrollTop,Ke=zi(D),It={};B.bottom-B.top>Ke&&(B.bottom=B.top+Ke);var nr=D.doc.height+pi(ne),br=B.top<ae,Cr=B.bottom>nr-ae;if(B.top<ge)It.scrollTop=br?0:B.top;else if(B.bottom>ge+Ke){var jn=Math.min(B.top,(Cr?nr:B.bottom)-Ke);jn!=ge&&(It.scrollTop=jn)}var ti=D.options.fixedGutter?0:ne.gutters.offsetWidth,Ei=D.curOp&&D.curOp.scrollLeft!=null?D.curOp.scrollLeft:ne.scroller.scrollLeft-ti,_i=Oi(D)-ne.gutters.offsetWidth,la=B.right-B.left>_i;return la&&(B.right=B.left+_i),B.left<10?It.scrollLeft=0:B.left<Ei?It.scrollLeft=Math.max(0,B.left+ti-(la?0:10)):B.right>_i+Ei-3&&(It.scrollLeft=B.right+(la?0:10)-_i),It}function wa(D,B){if(B==null)return;ro(D),D.curOp.scrollTop=(D.curOp.scrollTop==null?D.doc.scrollTop:D.curOp.scrollTop)+B}function Da(D){ro(D);var B=D.getCursor();D.curOp.scrollToPos={from:B,to:B,margin:D.options.cursorScrollMargin}}function ja(D,B,ne){(B!=null||ne!=null)&&ro(D),B!=null&&(D.curOp.scrollLeft=B),ne!=null&&(D.curOp.scrollTop=ne)}function ko(D,B){ro(D),D.curOp.scrollToPos=B}function ro(D){var B=D.curOp.scrollToPos;if(B){D.curOp.scrollToPos=null;var ne=To(D,B.from),ae=To(D,B.to);pa(D,ne,ae,B.margin)}}function pa(D,B,ne,ae){var ge=xa(D,{left:Math.min(B.left,ne.left),top:Math.min(B.top,ne.top)-ae,right:Math.max(B.right,ne.right),bottom:Math.max(B.bottom,ne.bottom)+ae});ja(D,ge.scrollLeft,ge.scrollTop)}function Ea(D,B){if(Math.abs(D.doc.scrollTop-B)<2)return;x||Qs(D,{top:B}),Fa(D,B,!0),x&&Qs(D),hs(D,100)}function Fa(D,B,ne){if(B=Math.max(0,Math.min(D.display.scroller.scrollHeight-D.display.scroller.clientHeight,B)),D.display.scroller.scrollTop==B&&!ne)return;D.doc.scrollTop=B,D.display.scrollbars.setScrollTop(B),D.display.scroller.scrollTop!=B&&(D.display.scroller.scrollTop=B)}function Ka(D,B,ne,ae){if(B=Math.max(0,Math.min(B,D.display.scroller.scrollWidth-D.display.scroller.clientWidth)),(ne?B==D.doc.scrollLeft:Math.abs(D.doc.scrollLeft-B)<2)&&!ae)return;D.doc.scrollLeft=B,al(D),D.display.scroller.scrollLeft!=B&&(D.display.scroller.scrollLeft=B),D.display.scrollbars.setScrollLeft(B)}function lo(D){var B=D.display,ne=B.gutters.offsetWidth,ae=Math.round(D.doc.height+pi(D.display));return{clientHeight:B.scroller.clientHeight,viewHeight:B.wrapper.clientHeight,scrollWidth:B.scroller.scrollWidth,clientWidth:B.scroller.clientWidth,viewWidth:B.wrapper.clientWidth,barLeft:D.options.fixedGutter?ne:0,docHeight:ae,scrollHeight:ae+wi(D)+B.barHeight,nativeBarWidth:B.nativeBarWidth,gutterWidth:ne}}var so=function(B,ne,ae){this.cm=ae;var ge=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ge.tabIndex=Ke.tabIndex=-1,B(ge),B(Ke),je(ge,"scroll",function(){ge.clientHeight&&ne(ge.scrollTop,"vertical")}),je(Ke,"scroll",function(){Ke.clientWidth&&ne(Ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(D){var B=D.scrollWidth>D.clientWidth+1,ne=D.scrollHeight>D.clientHeight+1,ae=D.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=B?ae+"px":"0";var ge=D.viewHeight-(B?ae:0);this.vert.firstChild.style.height=Math.max(0,D.scrollHeight-D.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(B){this.horiz.style.display="block",this.horiz.style.right=ne?ae+"px":"0",this.horiz.style.left=D.barLeft+"px";var Ke=D.viewWidth-D.barLeft-(ne?ae:0);this.horiz.firstChild.style.width=Math.max(0,D.scrollWidth-D.clientWidth+Ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&D.clientHeight>0&&(ae==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?ae:0,bottom:B?ae:0}},so.prototype.setScrollLeft=function(D){this.horiz.scrollLeft!=D&&(this.horiz.scrollLeft=D),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(D){this.vert.scrollTop!=D&&(this.vert.scrollTop=D),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var D=g&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=D,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},so.prototype.enableZeroWidthBar=function(D,B,ne){D.style.pointerEvents="auto";function ae(){var ge=D.getBoundingClientRect(),Ke=ne=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Ke!=D?D.style.pointerEvents="none":B.set(1e3,ae)}B.set(1e3,ae)},so.prototype.clear=function(){var D=this.horiz.parentNode;D.removeChild(this.horiz),D.removeChild(this.vert)};var Co=function(){};Co.prototype.update=function(){return{bottom:0,right:0}},Co.prototype.setScrollLeft=function(){},Co.prototype.setScrollTop=function(){},Co.prototype.clear=function(){};function Lo(D,B){B||(B=lo(D));var ne=D.display.barWidth,ae=D.display.barHeight;is(D,B);for(var ge=0;ge<4&&ne!=D.display.barWidth||ae!=D.display.barHeight;ge++)ne!=D.display.barWidth&&D.options.lineWrapping&&yi(D),is(D,lo(D)),ne=D.display.barWidth,ae=D.display.barHeight}function is(D,B){var ne=D.display,ae=ne.scrollbars.update(B);ne.sizer.style.paddingRight=(ne.barWidth=ae.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=ae.bottom)+"px",ne.heightForcer.style.borderBottom=ae.bottom+"px solid transparent",ae.right&&ae.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=ae.bottom+"px",ne.scrollbarFiller.style.width=ae.right+"px"):ne.scrollbarFiller.style.display="",ae.bottom&&D.options.coverGutterNextToScrollbar&&D.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=ae.bottom+"px",ne.gutterFiller.style.width=B.gutterWidth+"px"):ne.gutterFiller.style.display=""}var cs={native:so,null:Co};function Rs(D){D.display.scrollbars&&(D.display.scrollbars.clear(),D.display.scrollbars.addClass&&T(D.display.wrapper,D.display.scrollbars.addClass)),D.display.scrollbars=new cs[D.options.scrollbarStyle](function(B){D.display.wrapper.insertBefore(B,D.display.scrollbarFiller),je(B,"mousedown",function(){D.state.focused&&setTimeout(function(){return D.display.input.focus()},0)}),B.setAttribute("cm-not-content","true")},function(B,ne){ne=="horizontal"?Ka(D,B):Ea(D,B)},D),D.display.scrollbars.addClass&&X(D.display.wrapper,D.display.scrollbars.addClass)}var Ko=0;function as(D){D.curOp={cm:D,viewChanged:!1,startHeight:D.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:++Ko},ji(D.curOp)}function co(D){var B=D.curOp;B&&ta(B,function(ne){for(var ae=0;ae<ne.ops.length;ae++)ne.ops[ae].cm.curOp=null;Ao(ne)})}function Ao(D){for(var B=D.ops,ne=0;ne<B.length;ne++)$a(B[ne]);for(var ae=0;ae<B.length;ae++)ss(B[ae]);for(var ge=0;ge<B.length;ge++)_s(B[ge]);for(var Ke=0;Ke<B.length;Ke++)Fo(B[Ke]);for(var It=0;It<B.length;It++)il(B[It])}function $a(D){var B=D.cm,ne=B.display;Ll(B),D.updateMaxLine&&kn(B),D.mustUpdate=D.viewChanged||D.forceUpdate||D.scrollTop!=null||D.scrollToPos&&(D.scrollToPos.from.line<ne.viewFrom||D.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&B.options.lineWrapping,D.update=D.mustUpdate&&new Ns(B,D.mustUpdate&&{top:D.scrollTop,ensure:D.scrollToPos},D.forceUpdate)}function ss(D){D.updatedDisplay=D.mustUpdate&&ds(D.cm,D.update)}function _s(D){var B=D.cm,ne=B.display;D.updatedDisplay&&yi(B),D.barMeasure=lo(B),ne.maxLineChanged&&!B.options.lineWrapping&&(D.adjustWidthTo=Hi(B,ne.maxLine,ne.maxLine.text.length).left+3,B.display.sizerWidth=D.adjustWidthTo,D.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+D.adjustWidthTo+wi(B)+B.display.barWidth),D.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+D.adjustWidthTo-Oi(B))),(D.updatedDisplay||D.selectionChanged)&&(D.preparedSelection=ne.input.prepareSelection())}function Fo(D){var B=D.cm;D.adjustWidthTo!=null&&(B.display.sizer.style.minWidth=D.adjustWidthTo+"px",D.maxScrollLeft<B.doc.scrollLeft&&Ka(B,Math.min(B.display.scroller.scrollLeft,D.maxScrollLeft),!0),B.display.maxLineChanged=!1);var ne=D.focus&&D.focus==P();D.preparedSelection&&B.display.input.showSelection(D.preparedSelection,ne),(D.updatedDisplay||D.startHeight!=B.doc.height)&&Lo(B,D.barMeasure),D.updatedDisplay&&Bs(B,D.barMeasure),D.selectionChanged&&li(B),B.state.focused&&D.updateInput&&B.display.input.reset(D.typing),ne&&ci(D.cm)}function il(D){var B=D.cm,ne=B.display,ae=B.doc;if(D.updatedDisplay&&ks(B,D.update),ne.wheelStartX!=null&&(D.scrollTop!=null||D.scrollLeft!=null||D.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),D.scrollTop!=null&&Fa(B,D.scrollTop,D.forceScroll),D.scrollLeft!=null&&Ka(B,D.scrollLeft,!0,!0),D.scrollToPos){var ge=fa(B,Pt(ae,D.scrollToPos.from),Pt(ae,D.scrollToPos.to),D.scrollToPos.margin);Ki(B,ge)}var Ke=D.maybeHiddenMarkers,It=D.maybeUnhiddenMarkers;if(Ke)for(var nr=0;nr<Ke.length;++nr)Ke[nr].lines.length||Ht(Ke[nr],"hide");if(It)for(var br=0;br<It.length;++br)It[br].lines.length&&Ht(It[br],"unhide");ne.wrapper.offsetHeight&&(ae.scrollTop=B.display.scroller.scrollTop),D.changeObjs&&Ht(B,"changes",B,D.changeObjs),D.update&&D.update.finish()}function Eo(D,B){if(D.curOp)return B();as(D);try{return B()}finally{co(D)}}function zo(D,B){return function(){if(D.curOp)return B.apply(D,arguments);as(D);try{return B.apply(D,arguments)}finally{co(D)}}}function Fs(D){return function(){if(this.curOp)return D.apply(this,arguments);as(this);try{return D.apply(this,arguments)}finally{co(this)}}}function ms(D){return function(){var B=this.cm;if(!B||B.curOp)return D.apply(this,arguments);as(B);try{return D.apply(this,arguments)}finally{co(B)}}}function hs(D,B){D.doc.highlightFrontier<D.display.viewTo&&D.state.highlight.set(B,K(An,D))}function An(D){var B=D.doc;if(B.highlightFrontier>=D.display.viewTo)return;var ne=+new Date+D.options.workTime,ae=ai(D,B.highlightFrontier),ge=[];B.iter(ae.line,Math.min(B.first+B.size,D.display.viewTo+500),function(Ke){if(ae.line>=D.display.viewFrom){var It=Ke.styles,nr=Ke.text.length>D.options.maxHighlightLength?Xt(B.mode,ae.state):null,br=fn(D,Ke,ae,!0);nr&&(ae.state=nr),Ke.styles=br.styles;var Cr=Ke.styleClasses,jn=br.classes;jn?Ke.styleClasses=jn:Cr&&(Ke.styleClasses=null);for(var ti=!It||It.length!=Ke.styles.length||Cr!=jn&&(!Cr||!jn||Cr.bgClass!=jn.bgClass||Cr.textClass!=jn.textClass),Ei=0;!ti&&Ei<It.length;++Ei)ti=It[Ei]!=Ke.styles[Ei];ti&&ge.push(ae.line),Ke.stateAfter=ae.save(),ae.nextLine()}else Ke.text.length<=D.options.maxHighlightLength&&ri(D,Ke.text,ae),Ke.stateAfter=ae.line%5==0?ae.save():null,ae.nextLine();if(+new Date>ne)return hs(D,D.options.workDelay),!0}),B.highlightFrontier=ae.line,B.modeFrontier=Math.max(B.modeFrontier,ae.line),ge.length&&Eo(D,function(){for(var Ke=0;Ke<ge.length;Ke++)vt(D,ge[Ke],"text")})}var Ns=function(B,ne,ae){var ge=B.display;this.viewport=ne,this.visible=ia(ge,B.doc,ne),this.editorIsHidden=!ge.wrapper.offsetWidth,this.wrapperHeight=ge.wrapper.clientHeight,this.wrapperWidth=ge.wrapper.clientWidth,this.oldDisplayWidth=Oi(B),this.force=ae,this.dims=os(B),this.events=[]};Ns.prototype.signal=function(D,B){Mt(D,B)&&this.events.push(arguments)},Ns.prototype.finish=function(){for(var D=0;D<this.events.length;D++)Ht.apply(null,this.events[D])};function Ll(D){var B=D.display;!B.scrollbarsClipped&&B.scroller.offsetWidth&&(B.nativeBarWidth=B.scroller.offsetWidth-B.scroller.clientWidth,B.heightForcer.style.height=wi(D)+"px",B.sizer.style.marginBottom=-B.nativeBarWidth+"px",B.sizer.style.borderRightWidth=wi(D)+"px",B.scrollbarsClipped=!0)}function el(D){if(D.hasFocus())return null;var B=P();if(!B||!U(D.display.lineDiv,B))return null;var ne={activeElt:B};if(window.getSelection){var ae=window.getSelection();ae.anchorNode&&ae.extend&&U(D.display.lineDiv,ae.anchorNode)&&(ne.anchorNode=ae.anchorNode,ne.anchorOffset=ae.anchorOffset,ne.focusNode=ae.focusNode,ne.focusOffset=ae.focusOffset)}return ne}function Gs(D){if(!D||!D.activeElt||D.activeElt==P())return;if(D.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(D.activeElt.nodeName)&&D.anchorNode&&U(document.body,D.anchorNode)&&U(document.body,D.focusNode)){var B=window.getSelection(),ne=document.createRange();ne.setEnd(D.anchorNode,D.anchorOffset),ne.collapse(!1),B.removeAllRanges(),B.addRange(ne),B.extend(D.focusNode,D.focusOffset)}}function ds(D,B){var ne=D.display,ae=D.doc;if(B.editorIsHidden)return Er(D),!1;if(!B.force&&B.visible.from>=ne.viewFrom&&B.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Qn(D)==0)return!1;Js(D)&&(Er(D),B.dims=os(D));var ge=ae.first+ae.size,Ke=Math.max(B.visible.from-D.options.viewportMargin,ae.first),It=Math.min(ge,B.visible.to+D.options.viewportMargin);ne.viewFrom<Ke&&Ke-ne.viewFrom<20&&(Ke=Math.max(ae.first,ne.viewFrom)),ne.viewTo>It&&ne.viewTo-It<20&&(It=Math.min(ge,ne.viewTo)),qe&&(Ke=Lt(D.doc,Ke),It=cr(D.doc,It));var nr=Ke!=ne.viewFrom||It!=ne.viewTo||ne.lastWrapHeight!=B.wrapperHeight||ne.lastWrapWidth!=B.wrapperWidth;Gr(D,Ke,It),ne.viewOffset=Rr(Me(D.doc,ne.viewFrom)),D.display.mover.style.top=ne.viewOffset+"px";var br=Qn(D);if(!nr&&br==0&&!B.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Cr=el(D);return br>4&&(ne.lineDiv.style.display="none"),tl(D,ne.updateLineNumbers,B.dims),br>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Gs(Cr),w(ne.cursorDiv),w(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,nr&&(ne.lastWrapHeight=B.wrapperHeight,ne.lastWrapWidth=B.wrapperWidth,hs(D,400)),ne.updateLineNumbers=null,!0}function ks(D,B){for(var ne=B.viewport,ae=!0;;ae=!1){if(!ae||!D.options.lineWrapping||B.oldDisplayWidth==Oi(D)){if(ne&&ne.top!=null&&(ne={top:Math.min(D.doc.height+pi(D.display)-zi(D),ne.top)}),B.visible=ia(D.display,D.doc,ne),B.visible.from>=D.display.viewFrom&&B.visible.to<=D.display.viewTo)break}else ae&&(B.visible=ia(D.display,D.doc,ne));if(!ds(D,B))break;yi(D);var ge=lo(D);un(D),Lo(D,ge),Bs(D,ge),B.force=!1}B.signal(D,"update",D),(D.display.viewFrom!=D.display.reportedViewFrom||D.display.viewTo!=D.display.reportedViewTo)&&(B.signal(D,"viewportChange",D,D.display.viewFrom,D.display.viewTo),D.display.reportedViewFrom=D.display.viewFrom,D.display.reportedViewTo=D.display.viewTo)}function Qs(D,B){var ne=new Ns(D,B);if(ds(D,ne)){yi(D),ks(D,ne);var ae=lo(D);un(D),Lo(D,ae),Bs(D,ae),ne.finish()}}function tl(D,B,ne){var ae=D.display,ge=D.options.lineNumbers,Ke=ae.lineDiv,It=Ke.firstChild;function nr(la){var Ta=la.nextSibling;return a&&g&&D.display.currentWheelTarget==la?la.style.display="none":la.parentNode.removeChild(la),Ta}for(var br=ae.view,Cr=ae.viewFrom,jn=0;jn<br.length;jn++){var ti=br[jn];if(!ti.hidden)if(!ti.node||ti.node.parentNode!=Ke){var Ei=Lr(D,ti,Cr,ne);Ke.insertBefore(Ei,It)}else{for(;It!=ti.node;)It=nr(It);var _i=ge&&B!=null&&B<=Cr&&ti.lineNumber;ti.changes&&(G(ti.changes,"gutter")>-1&&(_i=!1),Tn(D,ti,Cr,ne)),_i&&(w(ti.lineNumber),ti.lineNumber.appendChild(document.createTextNode(Jn(D.options,Cr)))),It=ti.node.nextSibling}Cr+=ti.size}for(;It;)It=nr(It)}function xs(D){var B=D.gutters.offsetWidth;D.sizer.style.marginLeft=B+"px"}function Bs(D,B){D.display.sizer.style.minHeight=B.docHeight+"px",D.display.heightForcer.style.top=B.docHeight+"px",D.display.gutters.style.height=B.docHeight+D.display.barHeight+wi(D)+"px"}function al(D){var B=D.display,ne=B.view;if(!B.alignWidgets&&(!B.gutters.firstChild||!D.options.fixedGutter))return;for(var ae=xo(B)-B.scroller.scrollLeft+D.doc.scrollLeft,ge=B.gutters.offsetWidth,Ke=ae+"px",It=0;It<ne.length;It++)if(!ne[It].hidden){D.options.fixedGutter&&(ne[It].gutter&&(ne[It].gutter.style.left=Ke),ne[It].gutterBackground&&(ne[It].gutterBackground.style.left=Ke));var nr=ne[It].alignable;if(nr)for(var br=0;br<nr.length;br++)nr[br].style.left=Ke}D.options.fixedGutter&&(B.gutters.style.left=ae+ge+"px")}function Js(D){if(!D.options.lineNumbers)return!1;var B=D.doc,ne=Jn(D.options,B.first+B.size-1),ae=D.display;if(ne.length!=ae.lineNumChars){var ge=ae.measure.appendChild(I("div",[I("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ke=ge.firstChild.offsetWidth,It=ge.offsetWidth-Ke;return ae.lineGutter.style.width="",ae.lineNumInnerWidth=Math.max(Ke,ae.lineGutter.offsetWidth-It)+1,ae.lineNumWidth=ae.lineNumInnerWidth+It,ae.lineNumChars=ae.lineNumInnerWidth?ne.length:-1,ae.lineGutter.style.width=ae.lineNumWidth+"px",xs(D.display),!0}return!1}function Vo(D,B){for(var ne=[],ae=!1,ge=0;ge<D.length;ge++){var Ke=D[ge],It=null;if(typeof Ke!="string"&&(It=Ke.style,Ke=Ke.className),Ke=="CodeMirror-linenumbers")if(B)ae=!0;else continue;ne.push({className:Ke,style:It})}return B&&!ae&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function No(D){var B=D.gutters,ne=D.gutterSpecs;w(B),D.lineGutter=null;for(var ae=0;ae<ne.length;++ae){var ge=ne[ae],Ke=ge.className,It=ge.style,nr=B.appendChild(I("div",null,"CodeMirror-gutter "+Ke));It&&(nr.style.cssText=It),Ke=="CodeMirror-linenumbers"&&(D.lineGutter=nr,nr.style.width=(D.lineNumWidth||1)+"px")}B.style.display=ne.length?"":"none",xs(D)}function fs(D){No(D.display),Ha(D),al(D)}function Ds(D,B,ne,ae){var ge=this;this.input=ne,ge.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=k("div",null,"CodeMirror-code"),ge.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=I("div",null,"CodeMirror-cursors"),ge.measure=I("div",null,"CodeMirror-measure"),ge.lineMeasure=I("div",null,"CodeMirror-measure"),ge.lineSpace=k("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Ke=k("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=I("div",[Ke],null,"position: relative"),ge.sizer=I("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=I("div",null,null,"position: absolute; height: "+ee+"px; width: 1px;"),ge.gutters=I("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=I("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=I("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),d&&u<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!a&&!(x&&h)&&(ge.scroller.draggable=!0),D&&(D.appendChild?D.appendChild(ge.wrapper):D(ge.wrapper)),ge.viewFrom=ge.viewTo=B.first,ge.reportedViewFrom=ge.reportedViewTo=B.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=Vo(ae.gutters,ae.lineNumbers),No(ge),ne.init(ge)}var go=0,jt=null;d?jt=-.53:x?jt=15:t?jt=-.7:e&&(jt=-1/3);function or(D){var B=D.wheelDeltaX,ne=D.wheelDeltaY;return B==null&&D.detail&&D.axis==D.HORIZONTAL_AXIS&&(B=D.detail),ne==null&&D.detail&&D.axis==D.VERTICAL_AXIS?ne=D.detail:ne==null&&(ne=D.wheelDelta),{x:B,y:ne}}function In(D){var B=or(D);return B.x*=jt,B.y*=jt,B}function hi(D,B){var ne=or(B),ae=ne.x,ge=ne.y,Ke=D.display,It=Ke.scroller,nr=It.scrollWidth>It.clientWidth,br=It.scrollHeight>It.clientHeight;if(!(ae&&nr||ge&&br))return;if(ge&&g&&a){e:for(var Cr=B.target,jn=Ke.view;Cr!=It;Cr=Cr.parentNode)for(var ti=0;ti<jn.length;ti++)if(jn[ti].node==Cr){D.display.currentWheelTarget=Cr;break e}}if(ae&&!x&&!s&&jt!=null){ge&&br&&Ea(D,Math.max(0,It.scrollTop+ge*jt)),Ka(D,Math.max(0,It.scrollLeft+ae*jt)),(!ge||ge&&br)&&Ve(B),Ke.wheelStartX=null;return}if(ge&&jt!=null){var Ei=ge*jt,_i=D.doc.scrollTop,la=_i+Ke.wrapper.clientHeight;Ei<0?_i=Math.max(0,_i+Ei-50):la=Math.min(D.doc.height,la+Ei+50),Qs(D,{top:_i,bottom:la})}go<20&&(Ke.wheelStartX==null?(Ke.wheelStartX=It.scrollLeft,Ke.wheelStartY=It.scrollTop,Ke.wheelDX=ae,Ke.wheelDY=ge,setTimeout(function(){if(Ke.wheelStartX==null)return;var Ta=It.scrollLeft-Ke.wheelStartX,Wa=It.scrollTop-Ke.wheelStartY,Ma=Wa&&Ke.wheelDY&&Wa/Ke.wheelDY||Ta&&Ke.wheelDX&&Ta/Ke.wheelDX;if(Ke.wheelStartX=Ke.wheelStartY=null,!Ma)return;jt=(jt*go+Ma)/(go+1),++go},200)):(Ke.wheelDX+=ae,Ke.wheelDY+=ge))}var Nt=function(B,ne){this.ranges=B,this.primIndex=ne};Nt.prototype.primary=function(){return this.ranges[this.primIndex]},Nt.prototype.equals=function(D){if(D==this)return!0;if(D.primIndex!=this.primIndex||D.ranges.length!=this.ranges.length)return!1;for(var B=0;B<this.ranges.length;B++){var ne=this.ranges[B],ae=D.ranges[B];if(!Ct(ne.anchor,ae.anchor)||!Ct(ne.head,ae.head))return!1}return!0},Nt.prototype.deepCopy=function(){for(var D=[],B=0;B<this.ranges.length;B++)D[B]=new ce(Ar(this.ranges[B].anchor),Ar(this.ranges[B].head));return new Nt(D,this.primIndex)},Nt.prototype.somethingSelected=function(){for(var D=0;D<this.ranges.length;D++)if(!this.ranges[D].empty())return!0;return!1},Nt.prototype.contains=function(D,B){B||(B=D);for(var ne=0;ne<this.ranges.length;ne++){var ae=this.ranges[ne];if(Tt(B,ae.from())>=0&&Tt(D,ae.to())<=0)return ne}return-1};var ce=function(B,ne){this.anchor=B,this.head=ne};ce.prototype.from=function(){return Ft(this.anchor,this.head)},ce.prototype.to=function(){return er(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xe(D,B,ne){var ae=D&&D.options.selectionsMayTouch,ge=B[ne];B.sort(function(Ei,_i){return Tt(Ei.from(),_i.from())}),ne=G(B,ge);for(var Ke=1;Ke<B.length;Ke++){var It=B[Ke],nr=B[Ke-1],br=Tt(nr.to(),It.from());if(ae&&!It.empty()?br>0:br>=0){var Cr=Ft(nr.from(),It.from()),jn=er(nr.to(),It.to()),ti=nr.empty()?It.from()==It.head:nr.from()==nr.head;Ke<=ne&&--ne,B.splice(--Ke,2,new ce(ti?jn:Cr,ti?Cr:jn))}}return new Nt(B,ne)}function Ie(D,B){return new Nt([new ce(D,B||D)],0)}function Je(D){return D.text?ur(D.from.line+D.text.length-1,Ge(D.text).length+(D.text.length==1?D.from.ch:0)):D.to}function Dt(D,B){if(Tt(D,B.from)<0)return D;if(Tt(D,B.to)<=0)return Je(B);var ne=D.line+B.text.length-(B.to.line-B.from.line)-1,ae=D.ch;return D.line==B.to.line&&(ae+=Je(B).ch-B.to.ch),ur(ne,ae)}function lr(D,B){for(var ne=[],ae=0;ae<D.sel.ranges.length;ae++){var ge=D.sel.ranges[ae];ne.push(new ce(Dt(ge.anchor,B),Dt(ge.head,B)))}return xe(D.cm,ne,D.sel.primIndex)}function Xr(D,B,ne){return D.line==B.line?ur(ne.line,D.ch-B.ch+ne.ch):ur(ne.line+(D.line-B.line),D.ch)}function hn(D,B,ne){for(var ae=[],ge=ur(D.first,0),Ke=ge,It=0;It<B.length;It++){var nr=B[It],br=Xr(nr.from,ge,Ke),Cr=Xr(Je(nr),ge,Ke);if(ge=nr.to,Ke=Cr,ne=="around"){var jn=D.sel.ranges[It],ti=Tt(jn.head,jn.anchor)<0;ae[It]=new ce(ti?Cr:br,ti?br:Cr)}else ae[It]=new ce(br,br)}return new Nt(ae,D.sel.primIndex)}function Nn(D){D.doc.mode=vi(D.options,D.doc.modeOption),ui(D)}function ui(D){D.doc.iter(function(B){B.stateAfter&&(B.stateAfter=null),B.styles&&(B.styles=null)}),D.doc.modeFrontier=D.doc.highlightFrontier=D.doc.first,hs(D,100),D.state.modeGen++,D.curOp&&Ha(D)}function xi(D,B){return B.from.ch==0&&B.to.ch==0&&Ge(B.text)==""&&(!D.cm||D.cm.options.wholeLineUpdateBefore)}function Ai(D,B,ne,ae){function ge(Na){return ne?ne[Na]:null}function Ke(Na,qa,ho){pn(Na,qa,ho,ae),Ir(Na,"change",Na,B)}function It(Na,qa){for(var ho=[],ns=Na;ns<qa;++ns)ho.push(new di(Cr[ns],ge(ns),ae));return ho}var nr=B.from,br=B.to,Cr=B.text,jn=Me(D,nr.line),ti=Me(D,br.line),Ei=Ge(Cr),_i=ge(Cr.length-1),la=br.line-nr.line;if(B.full)D.insert(0,It(0,Cr.length)),D.remove(Cr.length,D.size-Cr.length);else if(xi(D,B)){var Ta=It(0,Cr.length-1);Ke(ti,ti.text,_i),la&&D.remove(nr.line,la),Ta.length&&D.insert(nr.line,Ta)}else if(jn==ti)if(Cr.length==1)Ke(jn,jn.text.slice(0,nr.ch)+Ei+jn.text.slice(br.ch),_i);else{var Wa=It(1,Cr.length-1);Wa.push(new di(Ei+jn.text.slice(br.ch),_i,ae)),Ke(jn,jn.text.slice(0,nr.ch)+Cr[0],ge(0)),D.insert(nr.line+1,Wa)}else if(Cr.length==1)Ke(jn,jn.text.slice(0,nr.ch)+Cr[0]+ti.text.slice(br.ch),ge(0)),D.remove(nr.line+1,la);else{Ke(jn,jn.text.slice(0,nr.ch)+Cr[0],ge(0)),Ke(ti,Ei+ti.text.slice(br.ch),_i);var Ma=It(1,Cr.length-1);la>1&&D.remove(nr.line+1,la-1),D.insert(nr.line+1,Ma)}Ir(D,"change",D,B)}function Yi(D,B,ne){function ae(ge,Ke,It){if(ge.linked)for(var nr=0;nr<ge.linked.length;++nr){var br=ge.linked[nr];if(br.doc==Ke)continue;var Cr=It&&br.sharedHist;if(ne&&!Cr)continue;B(br.doc,Cr),ae(br.doc,ge,Cr)}}ae(D,null,!0)}function sa(D,B){if(B.cm)throw new Error("This document is already in use.");D.doc=B,B.cm=D,Ho(D),Nn(D),Ua(D),D.options.lineWrapping||kn(D),D.options.mode=B.modeOption,Ha(D)}function Ua(D){(D.doc.direction=="rtl"?X:T)(D.display.lineDiv,"CodeMirror-rtl")}function no(D){Eo(D,function(){Ua(D),Ha(D)})}function Wo(D){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=D||1}function Zo(D,B){var ne={from:Ar(B.from),to:Je(B),text:nt(D,B.from,B.to)};return Ms(D,ne,B.from.line,B.to.line+1),Yi(D,function(ae){return Ms(ae,ne,B.from.line,B.to.line+1)},!0),ne}function Bo(D){for(;D.length;){var B=Ge(D);if(B.ranges)D.pop();else break}}function Es(D,B){if(B)return Bo(D.done),Ge(D.done);if(D.done.length&&!Ge(D.done).ranges)return Ge(D.done);if(D.done.length>1&&!D.done[D.done.length-2].ranges)return D.done.pop(),Ge(D.done)}function As(D,B,ne,ae){var ge=D.history;ge.undone.length=0;var Ke=+new Date,It,nr;if((ge.lastOp==ae||ge.lastOrigin==B.origin&&B.origin&&(B.origin.charAt(0)=="+"&&ge.lastModTime>Ke-(D.cm?D.cm.options.historyEventDelay:500)||B.origin.charAt(0)=="*"))&&(It=Es(ge,ge.lastOp==ae)))nr=Ge(It.changes),Tt(B.from,B.to)==0&&Tt(B.from,nr.to)==0?nr.to=Je(B):It.changes.push(Zo(D,B));else{var br=Ge(ge.done);for((!br||!br.ranges)&&vo(D.sel,ge.done),It={changes:[Zo(D,B)],generation:ge.generation},ge.done.push(It);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(ne),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Ke,ge.lastOp=ge.lastSelOp=ae,ge.lastOrigin=ge.lastSelOrigin=B.origin,nr||Ht(D,"historyAdded")}function $o(D,B,ne,ae){var ge=B.charAt(0);return ge=="*"||ge=="+"&&ne.ranges.length==ae.ranges.length&&ne.somethingSelected()==ae.somethingSelected()&&new Date-D.history.lastSelTime<=(D.cm?D.cm.options.historyEventDelay:500)}function Do(D,B,ne,ae){var ge=D.history,Ke=ae&&ae.origin;ne==ge.lastSelOp||Ke&&ge.lastSelOrigin==Ke&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Ke||$o(D,Ke,Ge(ge.done),B))?ge.done[ge.done.length-1]=B:vo(B,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Ke,ge.lastSelOp=ne,ae&&ae.clearRedo!==!1&&Bo(ge.undone)}function vo(D,B){var ne=Ge(B);ne&&ne.ranges&&ne.equals(D)||B.push(D)}function Ms(D,B,ne,ae){var ge=B["spans_"+D.id],Ke=0;D.iter(Math.max(D.first,ne),Math.min(D.first+D.size,ae),function(It){It.markedSpans&&((ge||(ge=B["spans_"+D.id]={}))[Ke]=It.markedSpans),++Ke})}function rl(D){if(!D)return null;for(var B,ne=0;ne<D.length;++ne)D[ne].marker.explicitlyCleared?B||(B=D.slice(0,ne)):B&&B.push(D[ne]);return B?B.length?B:null:D}function gs(D,B){var ne=B["spans_"+D.id];if(!ne)return null;for(var ae=[],ge=0;ge<B.text.length;++ge)ae.push(rl(ne[ge]));return ae}function Ra(D,B){var ne=gs(D,B),ae=Wn(D,B);if(!ne)return ae;if(!ae)return ne;for(var ge=0;ge<ne.length;++ge){var Ke=ne[ge],It=ae[ge];if(Ke&&It){e:for(var nr=0;nr<It.length;++nr){for(var br=It[nr],Cr=0;Cr<Ke.length;++Cr)if(Ke[Cr].marker==br.marker)continue e;Ke.push(br)}}else It&&(ne[ge]=It)}return ne}function dl(D,B,ne){for(var ae=[],ge=0;ge<D.length;++ge){var Ke=D[ge];if(Ke.ranges){ae.push(ne?Nt.prototype.deepCopy.call(Ke):Ke);continue}var It=Ke.changes,nr=[];ae.push({changes:nr});for(var br=0;br<It.length;++br){var Cr=It[br],jn=void 0;if(nr.push({from:Cr.from,to:Cr.to,text:Cr.text}),B)for(var ti in Cr)(jn=ti.match(/^spans_(\d+)$/))&&(G(B,Number(jn[1]))>-1&&(Ge(nr)[ti]=Cr[ti],delete Cr[ti]))}}return ae}function fl(D,B,ne,ae){if(ae){var ge=D.anchor;if(ne){var Ke=Tt(B,ge)<0;Ke!=Tt(ne,ge)<0?(ge=B,B=ne):Ke!=Tt(B,ne)<0&&(B=ne)}return new ce(ge,B)}else return new ce(ne||B,B)}function Us(D,B,ne,ae,ge){ge==null&&(ge=D.cm&&(D.cm.display.shift||D.extend)),Ts(D,new Nt([fl(D.sel.primary(),B,ne,ge)],0),ae)}function Os(D,B,ne){for(var ae=[],ge=D.cm&&(D.cm.display.shift||D.extend),Ke=0;Ke<D.sel.ranges.length;Ke++)ae[Ke]=fl(D.sel.ranges[Ke],B[Ke],null,ge);var It=xe(D.cm,ae,D.sel.primIndex);Ts(D,It,ne)}function Xs(D,B,ne,ae){var ge=D.sel.ranges.slice(0);ge[B]=ne,Ts(D,xe(D.cm,ge,D.sel.primIndex),ae)}function Ql(D,B,ne,ae){Ts(D,Ie(B,ne),ae)}function Ul(D,B,ne){var ae={ranges:B.ranges,update:function(Ke){this.ranges=[];for(var It=0;It<Ke.length;It++)this.ranges[It]=new ce(Pt(D,Ke[It].anchor),Pt(D,Ke[It].head))},origin:ne&&ne.origin};return Ht(D,"beforeSelectionChange",D,ae),D.cm&&Ht(D.cm,"beforeSelectionChange",D.cm,ae),ae.ranges!=B.ranges?xe(D.cm,ae.ranges,ae.ranges.length-1):B}function wl(D,B,ne){var ae=D.history.done,ge=Ge(ae);ge&&ge.ranges?(ae[ae.length-1]=B,Ws(D,B,ne)):Ts(D,B,ne)}function Ts(D,B,ne){Ws(D,B,ne),Do(D,D.sel,D.cm?D.cm.curOp.id:NaN,ne)}function Ws(D,B,ne){(Mt(D,"beforeSelectionChange")||D.cm&&Mt(D.cm,"beforeSelectionChange"))&&(B=Ul(D,B,ne));var ae=ne&&ne.bias||(Tt(B.primary().head,D.sel.primary().head)<0?-1:1);Tl(D,jo(D,B,ae,!0)),!(ne&&ne.scroll===!1)&&D.cm&&Da(D.cm)}function Tl(D,B){if(B.equals(D.sel))return;D.sel=B,D.cm&&(D.cm.curOp.updateInput=1,D.cm.curOp.selectionChanged=!0,Vt(D.cm)),Ir(D,"cursorActivity",D)}function pl(D){Tl(D,jo(D,D.sel,null,!1))}function jo(D,B,ne,ae){for(var ge,Ke=0;Ke<B.ranges.length;Ke++){var It=B.ranges[Ke],nr=B.ranges.length==D.sel.ranges.length&&D.sel.ranges[Ke],br=qo(D,It.anchor,nr&&nr.anchor,ne,ae),Cr=qo(D,It.head,nr&&nr.head,ne,ae);(ge||br!=It.anchor||Cr!=It.head)&&(ge||(ge=B.ranges.slice(0,Ke)),ge[Ke]=new ce(br,Cr))}return ge?xe(D.cm,ge,B.primIndex):B}function yo(D,B,ne,ae,ge){var Ke=Me(D,B.line);if(Ke.markedSpans)for(var It=0;It<Ke.markedSpans.length;++It){var nr=Ke.markedSpans[It],br=nr.marker,Cr="selectLeft"in br?!br.selectLeft:br.inclusiveLeft,jn="selectRight"in br?!br.selectRight:br.inclusiveRight;if((nr.from==null||(Cr?nr.from<=B.ch:nr.from<B.ch))&&(nr.to==null||(jn?nr.to>=B.ch:nr.to>B.ch))){if(ge&&(Ht(br,"beforeCursorEnter"),br.explicitlyCleared))if(Ke.markedSpans){--It;continue}else break;if(!br.atomic)continue;if(ne){var ti=br.find(ae<0?1:-1),Ei=void 0;if((ae<0?jn:Cr)&&(ti=ps(D,ti,-ae,ti&&ti.line==B.line?Ke:null)),ti&&ti.line==B.line&&(Ei=Tt(ti,ne))&&(ae<0?Ei<0:Ei>0))return yo(D,ti,B,ae,ge)}var _i=br.find(ae<0?-1:1);return(ae<0?Cr:jn)&&(_i=ps(D,_i,ae,_i.line==B.line?Ke:null)),_i?yo(D,_i,B,ae,ge):null}}return B}function qo(D,B,ne,ae,ge){var Ke=ae||1,It=yo(D,B,ne,Ke,ge)||!ge&&yo(D,B,ne,Ke,!0)||yo(D,B,ne,-Ke,ge)||!ge&&yo(D,B,ne,-Ke,!0);return It||(D.cantEdit=!0,ur(D.first,0))}function ps(D,B,ne,ae){return ne<0&&B.ch==0?B.line>D.first?Pt(D,ur(B.line-1)):null:ne>0&&B.ch==(ae||Me(D,B.line)).text.length?B.line<D.first+D.size-1?ur(B.line+1,0):null:new ur(B.line,B.ch+ne)}function Is(D){D.setSelection(ur(D.firstLine(),0),ur(D.lastLine()),ye)}function es(D,B,ne){var ae={canceled:!1,from:B.from,to:B.to,text:B.text,origin:B.origin,cancel:function(){return ae.canceled=!0}};return ne&&(ae.update=function(ge,Ke,It,nr){ge&&(ae.from=Pt(D,ge)),Ke&&(ae.to=Pt(D,Ke)),It&&(ae.text=It),nr!==void 0&&(ae.origin=nr)}),Ht(D,"beforeChange",D,ae),D.cm&&Ht(D.cm,"beforeChange",D.cm,ae),ae.canceled?(D.cm&&(D.cm.curOp.updateInput=2),null):{from:ae.from,to:ae.to,text:ae.text,origin:ae.origin}}function Ls(D,B,ne){if(D.cm){if(!D.cm.curOp)return zo(D.cm,Ls)(D,B,ne);if(D.cm.state.suppressEdits)return}if((Mt(D,"beforeChange")||D.cm&&Mt(D.cm,"beforeChange"))&&(B=es(D,B,!0),!B))return;var ae=at&&!ne&&Fn(D,B.from,B.to);if(ae)for(var ge=ae.length-1;ge>=0;--ge)Ps(D,{from:ae[ge].from,to:ae[ge].to,text:ge?[""]:B.text,origin:B.origin});else Ps(D,B)}function Ps(D,B){if(B.text.length==1&&B.text[0]==""&&Tt(B.from,B.to)==0)return;var ne=lr(D,B);As(D,B,ne,D.cm?D.cm.curOp.id:NaN),_l(D,B,ne,Wn(D,B));var ae=[];Yi(D,function(ge,Ke){!Ke&&G(ae,ge.history)==-1&&(ol(ge.history,B),ae.push(ge.history)),_l(ge,B,null,Wn(ge,B))})}function ml(D,B,ne){var ae=D.cm&&D.cm.state.suppressEdits;if(ae&&!ne)return;for(var ge=D.history,Ke,It=D.sel,nr=B=="undo"?ge.done:ge.undone,br=B=="undo"?ge.undone:ge.done,Cr=0;Cr<nr.length&&!(Ke=nr[Cr],ne?Ke.ranges&&!Ke.equals(D.sel):!Ke.ranges);Cr++);if(Cr==nr.length)return;for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Ke=nr.pop(),Ke.ranges){if(vo(Ke,br),ne&&!Ke.equals(D.sel)){Ts(D,Ke,{clearRedo:!1});return}It=Ke}else if(ae){nr.push(Ke);return}else break;var jn=[];vo(It,br),br.push({changes:jn,generation:ge.generation}),ge.generation=Ke.generation||++ge.maxGeneration;for(var ti=Mt(D,"beforeChange")||D.cm&&Mt(D.cm,"beforeChange"),Ei=function(Wa){var Ma=Ke.changes[Wa];if(Ma.origin=B,ti&&!es(D,Ma,!1))return nr.length=0,{};jn.push(Zo(D,Ma));var Na=Wa?lr(D,Ma):Ge(nr);_l(D,Ma,Na,Ra(D,Ma)),!Wa&&D.cm&&D.cm.scrollIntoView({from:Ma.from,to:Je(Ma)});var qa=[];Yi(D,function(ho,ns){!ns&&G(qa,ho.history)==-1&&(ol(ho.history,Ma),qa.push(ho.history)),_l(ho,Ma,null,Ra(ho,Ma))})},_i=Ke.changes.length-1;_i>=0;--_i){var la=Ei(_i);if(la)return la.v}}function Rl(D,B){if(B==0)return;if(D.first+=B,D.sel=new Nt(ht(D.sel.ranges,function(ge){return new ce(ur(ge.anchor.line+B,ge.anchor.ch),ur(ge.head.line+B,ge.head.ch))}),D.sel.primIndex),D.cm){Ha(D.cm,D.first,D.first-B,B);for(var ne=D.cm.display,ae=ne.viewFrom;ae<ne.viewTo;ae++)vt(D.cm,ae,"gutter")}}function _l(D,B,ne,ae){if(D.cm&&!D.cm.curOp)return zo(D.cm,_l)(D,B,ne,ae);if(B.to.line<D.first){Rl(D,B.text.length-1-(B.to.line-B.from.line));return}if(B.from.line>D.lastLine())return;if(B.from.line<D.first){var ge=B.text.length-1-(D.first-B.from.line);Rl(D,ge),B={from:ur(D.first,0),to:ur(B.to.line+ge,B.to.ch),text:[Ge(B.text)],origin:B.origin}}var Ke=D.lastLine();B.to.line>Ke&&(B={from:B.from,to:ur(Ke,Me(D,Ke).text.length),text:[B.text[0]],origin:B.origin}),B.removed=nt(D,B.from,B.to),ne||(ne=lr(D,B)),D.cm?Bl(D.cm,B,ae):Ai(D,B,ae),Ws(D,ne,ye),D.cantEdit&&qo(D,ur(D.firstLine(),0))&&(D.cantEdit=!1)}function Bl(D,B,ne){var ae=D.doc,ge=D.display,Ke=B.from,It=B.to,nr=!1,br=Ke.line;D.options.lineWrapping||(br=Nr(Rt(Me(ae,Ke.line))),ae.iter(br,It.line+1,function(_i){if(_i==ge.maxLine)return nr=!0,!0})),ae.sel.contains(B.from,B.to)>-1&&Vt(D),Ai(ae,B,ne,rs(D)),D.options.lineWrapping||(ae.iter(br,Ke.line+B.text.length,function(_i){var la=Vn(_i);la>ge.maxLineLength&&(ge.maxLine=_i,ge.maxLineLength=la,ge.maxLineChanged=!0,nr=!1)}),nr&&(D.curOp.updateMaxLine=!0)),Ye(ae,Ke.line),hs(D,400);var Cr=B.text.length-(It.line-Ke.line)-1;B.full?Ha(D):Ke.line==It.line&&B.text.length==1&&!xi(D.doc,B)?vt(D,Ke.line,"text"):Ha(D,Ke.line,It.line+1,Cr);var jn=Mt(D,"changes"),ti=Mt(D,"change");if(ti||jn){var Ei={from:Ke,to:It,text:B.text,removed:B.removed,origin:B.origin};ti&&Ir(D,"change",D,Ei),jn&&(D.curOp.changeObjs||(D.curOp.changeObjs=[])).push(Ei)}D.display.selForContextMenu=null}function jl(D,B,ne,ae,ge){var Ke;ae||(ae=ne),Tt(ae,ne)<0&&(Ke=[ae,ne],ne=Ke[0],ae=Ke[1]),typeof B=="string"&&(B=D.splitLines(B)),Ls(D,{from:ne,to:ae,text:B,origin:ge})}function kl(D,B,ne,ae){ne<D.line?D.line+=ae:B<D.line&&(D.line=B,D.ch=0)}function Xl(D,B,ne,ae){for(var ge=0;ge<D.length;++ge){var Ke=D[ge],It=!0;if(Ke.ranges){Ke.copied||(Ke=D[ge]=Ke.deepCopy(),Ke.copied=!0);for(var nr=0;nr<Ke.ranges.length;nr++)kl(Ke.ranges[nr].anchor,B,ne,ae),kl(Ke.ranges[nr].head,B,ne,ae);continue}for(var br=0;br<Ke.changes.length;++br){var Cr=Ke.changes[br];if(ne<Cr.from.line)Cr.from=ur(Cr.from.line+ae,Cr.from.ch),Cr.to=ur(Cr.to.line+ae,Cr.to.ch);else if(B<=Cr.to.line){It=!1;break}}It||(D.splice(0,ge+1),ge=0)}}function ol(D,B){var ne=B.from.line,ae=B.to.line,ge=B.text.length-(ae-ne)-1;Xl(D.done,ne,ae,ge),Xl(D.undone,ne,ae,ge)}function Ys(D,B,ne,ae){var ge=B,Ke=B;return typeof B=="number"?Ke=Me(D,ir(D,B)):ge=Nr(B),ge==null?null:(ae(Ke,ge)&&D.cm&&vt(D.cm,ge,ne),Ke)}function sl(D){this.lines=D,this.parent=null;for(var B=0,ne=0;ne<D.length;++ne)D[ne].parent=this,B+=D[ne].height;this.height=B}sl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(B,ne){for(var ae=B,ge=B+ne;ae<ge;++ae){var Ke=this.lines[ae];this.height-=Ke.height,Br(Ke),Ir(Ke,"delete")}this.lines.splice(B,ne)},collapse:function(B){B.push.apply(B,this.lines)},insertInner:function(B,ne,ae){this.height+=ae,this.lines=this.lines.slice(0,B).concat(ne).concat(this.lines.slice(B));for(var ge=0;ge<ne.length;++ge)ne[ge].parent=this},iterN:function(B,ne,ae){for(var ge=B+ne;B<ge;++B)if(ae(this.lines[B]))return!0}};function nl(D){this.children=D;for(var B=0,ne=0,ae=0;ae<D.length;++ae){var ge=D[ae];B+=ge.chunkSize(),ne+=ge.height,ge.parent=this}this.size=B,this.height=ne,this.parent=null}nl.prototype={chunkSize:function(){return this.size},removeInner:function(B,ne){this.size-=ne;for(var ae=0;ae<this.children.length;++ae){var ge=this.children[ae],Ke=ge.chunkSize();if(B<Ke){var It=Math.min(ne,Ke-B),nr=ge.height;if(ge.removeInner(B,It),this.height-=nr-ge.height,Ke==It&&(this.children.splice(ae--,1),ge.parent=null),(ne-=It)==0)break;B=0}else B-=Ke}if(this.size-ne<25&&(this.children.length>1||!(this.children[0]instanceof sl))){var br=[];this.collapse(br),this.children=[new sl(br)],this.children[0].parent=this}},collapse:function(B){for(var ne=0;ne<this.children.length;++ne)this.children[ne].collapse(B)},insertInner:function(B,ne,ae){this.size+=ne.length,this.height+=ae;for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],It=Ke.chunkSize();if(B<=It){if(Ke.insertInner(B,ne,ae),Ke.lines&&Ke.lines.length>50){for(var nr=Ke.lines.length%25+25,br=nr;br<Ke.lines.length;){var Cr=new sl(Ke.lines.slice(br,br+=25));Ke.height-=Cr.height,this.children.splice(++ge,0,Cr),Cr.parent=this}Ke.lines=Ke.lines.slice(0,nr),this.maybeSpill()}break}B-=It}},maybeSpill:function(){if(this.children.length<=10)return;var B=this;do{var ne=B.children.splice(B.children.length-5,5),ae=new nl(ne);if(B.parent){B.size-=ae.size,B.height-=ae.height;var Ke=G(B.parent.children,B);B.parent.children.splice(Ke+1,0,ae)}else{var ge=new nl(B.children);ge.parent=B,B.children=[ge,ae],B=ge}ae.parent=B.parent}while(B.children.length>10);B.parent.maybeSpill()},iterN:function(B,ne,ae){for(var ge=0;ge<this.children.length;++ge){var Ke=this.children[ge],It=Ke.chunkSize();if(B<It){var nr=Math.min(ne,It-B);if(Ke.iterN(B,nr,ae))return!0;if((ne-=nr)==0)break;B=0}else B-=It}}};var xl=function(B,ne,ae){if(ae)for(var ge in ae)ae.hasOwnProperty(ge)&&(this[ge]=ae[ge]);this.doc=B,this.node=ne};xl.prototype.clear=function(){var D=this.doc.cm,B=this.line.widgets,ne=this.line,ae=Nr(ne);if(ae==null||!B)return;for(var ge=0;ge<B.length;++ge)B[ge]==this&&B.splice(ge--,1);B.length||(ne.widgets=null);var Ke=yn(this);sr(ne,Math.max(0,ne.height-Ke)),D&&(Eo(D,function(){Ml(D,ne,-Ke),vt(D,ae,"widget")}),Ir(D,"lineWidgetCleared",D,this,ae))},xl.prototype.changed=function(){var D=this,B=this.height,ne=this.doc.cm,ae=this.line;this.height=null;var ge=yn(this)-B;if(!ge)return;vr(this.doc,ae)||sr(ae,ae.height+ge),ne&&Eo(ne,function(){ne.curOp.forceUpdate=!0,Ml(ne,ae,ge),Ir(ne,"lineWidgetChanged",ne,D,Nr(ae))})},Gt(xl);function Ml(D,B,ne){Rr(B)<(D.curOp&&D.curOp.scrollTop||D.doc.scrollTop)&&wa(D,ne)}function Wl(D,B,ne,ae){var ge=new xl(D,ne,ae),Ke=D.cm;return Ke&&ge.noHScroll&&(Ke.display.alignWidgets=!0),Ys(D,B,"widget",function(It){var nr=It.widgets||(It.widgets=[]);if(ge.insertAt==null?nr.push(ge):nr.splice(Math.min(nr.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=It,Ke&&!vr(D,It)){var br=Rr(It)<D.scrollTop;sr(It,It.height+yn(ge)),br&&wa(Ke,ge.height),Ke.curOp.forceUpdate=!0}return!0}),Ke&&Ir(Ke,"lineWidgetAdded",Ke,ge,typeof B=="number"?B:Nr(B)),ge}var au=0,Nl=function(B,ne){this.lines=[],this.type=ne,this.doc=B,this.id=++au};Nl.prototype.clear=function(){if(this.explicitlyCleared)return;var D=this.doc.cm,B=D&&!D.curOp;if(B&&as(D),Mt(this,"clear")){var ne=this.find();ne&&Ir(this,"clear",ne.from,ne.to)}for(var ae=null,ge=null,Ke=0;Ke<this.lines.length;++Ke){var It=this.lines[Ke],nr=fr(It.markedSpans,this);D&&!this.collapsed?vt(D,Nr(It),"text"):D&&(nr.to!=null&&(ge=Nr(It)),nr.from!=null&&(ae=Nr(It))),It.markedSpans=Jr(It.markedSpans,nr),nr.from==null&&this.collapsed&&!vr(this.doc,It)&&D&&sr(It,Oo(D.display))}if(D&&this.collapsed&&!D.options.lineWrapping)for(var br=0;br<this.lines.length;++br){var Cr=Rt(this.lines[br]),jn=Vn(Cr);jn>D.display.maxLineLength&&(D.display.maxLine=Cr,D.display.maxLineLength=jn,D.display.maxLineChanged=!0)}ae!=null&&D&&this.collapsed&&Ha(D,ae,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,D&&pl(D.doc)),D&&Ir(D,"markerCleared",D,this,ae,ge),B&&co(D),this.parent&&this.parent.clear()},Nl.prototype.find=function(D,B){D==null&&this.type=="bookmark"&&(D=1);for(var ne,ae,ge=0;ge<this.lines.length;++ge){var Ke=this.lines[ge],It=fr(Ke.markedSpans,this);if(It.from!=null&&(ne=ur(B?Ke:Nr(Ke),It.from),D==-1))return ne;if(It.to!=null&&(ae=ur(B?Ke:Nr(Ke),It.to),D==1))return ae}return ne&&{from:ne,to:ae}},Nl.prototype.changed=function(){var D=this,B=this.find(-1,!0),ne=this,ae=this.doc.cm;if(!B||!ae)return;Eo(ae,function(){var ge=B.line,Ke=Nr(B.line),It=Ji(ae,Ke);if(It&&(Oa(It),ae.curOp.selectionChanged=ae.curOp.forceUpdate=!0),ae.curOp.updateMaxLine=!0,!vr(ne.doc,ge)&&ne.height!=null){var nr=ne.height;ne.height=null;var br=yn(ne)-nr;br&&sr(ge,ge.height+br)}Ir(ae,"markerChanged",ae,D)})},Nl.prototype.attachLine=function(D){if(!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(!B.maybeHiddenMarkers||G(B.maybeHiddenMarkers,this)==-1)&&(B.maybeUnhiddenMarkers||(B.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(D)},Nl.prototype.detachLine=function(D){if(this.lines.splice(G(this.lines,D),1),!this.lines.length&&this.doc.cm){var B=this.doc.cm.curOp;(B.maybeHiddenMarkers||(B.maybeHiddenMarkers=[])).push(this)}},Gt(Nl);function $l(D,B,ne,ae,ge){if(ae&&ae.shared)return Iu(D,B,ne,ae,ge);if(D.cm&&!D.cm.curOp)return zo(D.cm,$l)(D,B,ne,ae,ge);var Ke=new Nl(D,ge),It=Tt(B,ne);if(ae&&z(ae,Ke,!1),It>0||It==0&&Ke.clearWhenEmpty!==!1)return Ke;if(Ke.replacedWith&&(Ke.collapsed=!0,Ke.widgetNode=k("span",[Ke.replacedWith],"CodeMirror-widget"),ae.handleMouseEvents||Ke.widgetNode.setAttribute("cm-ignore-events","true"),ae.insertLeft&&(Ke.widgetNode.insertLeft=!0)),Ke.collapsed){if(Ot(D,B.line,B,ne,Ke)||B.line!=ne.line&&Ot(D,ne.line,B,ne,Ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et()}Ke.addToHistory&&As(D,{from:B,to:ne,origin:"markText"},D.sel,NaN);var nr=B.line,br=D.cm,Cr;if(D.iter(nr,ne.line+1,function(ti){br&&Ke.collapsed&&!br.options.lineWrapping&&Rt(ti)==br.display.maxLine&&(Cr=!0),Ke.collapsed&&nr!=B.line&&sr(ti,0),Vr(ti,new At(Ke,nr==B.line?B.ch:null,nr==ne.line?ne.ch:null)),++nr}),Ke.collapsed&&D.iter(B.line,ne.line+1,function(ti){vr(D,ti)&&sr(ti,0)}),Ke.clearOnEnter&&je(Ke,"beforeCursorEnter",function(){return Ke.clear()}),Ke.readOnly&&(lt(),(D.history.done.length||D.history.undone.length)&&D.clearHistory()),Ke.collapsed&&(Ke.id=++au,Ke.atomic=!0),br){if(Cr&&(br.curOp.updateMaxLine=!0),Ke.collapsed)Ha(br,B.line,ne.line+1);else if(Ke.className||Ke.startStyle||Ke.endStyle||Ke.css||Ke.attributes||Ke.title)for(var jn=B.line;jn<=ne.line;jn++)vt(br,jn,"text");Ke.atomic&&pl(br.doc),Ir(br,"markerAdded",br,Ke)}return Ke}var tu=function(B,ne){this.markers=B,this.primary=ne;for(var ae=0;ae<B.length;++ae)B[ae].parent=this};tu.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var D=0;D<this.markers.length;++D)this.markers[D].clear();Ir(this,"clear")},tu.prototype.find=function(D,B){return this.primary.find(D,B)},Gt(tu);function Iu(D,B,ne,ae,ge){ae=z(ae),ae.shared=!1;var Ke=[$l(D,B,ne,ae,ge)],It=Ke[0],nr=ae.widgetNode;return Yi(D,function(br){nr&&(ae.widgetNode=nr.cloneNode(!0)),Ke.push($l(br,Pt(br,B),Pt(br,ne),ae,ge));for(var Cr=0;Cr<br.linked.length;++Cr)if(br.linked[Cr].isParent)return;It=Ge(Ke)}),new tu(Ke,It)}function pu(D){return D.findMarks(ur(D.first,0),D.clipPos(ur(D.lastLine())),function(B){return B.parent})}function mu(D,B){for(var ne=0;ne<B.length;ne++){var ae=B[ne],ge=ae.find(),Ke=D.clipPos(ge.from),It=D.clipPos(ge.to);if(Tt(Ke,It)){var nr=$l(D,Ke,It,ae.primary,ae.primary.type);ae.markers.push(nr),nr.parent=ae}}}function gu(D){for(var B=function(ge){var Ke=D[ge],It=[Ke.primary.doc];Yi(Ke.primary.doc,function(Cr){return It.push(Cr)});for(var nr=0;nr<Ke.markers.length;nr++){var br=Ke.markers[nr];G(It,br.doc)==-1&&(br.parent=null,Ke.markers.splice(nr--,1))}},ne=0;ne<D.length;ne++)B(ne)}var ql=0,Cl=function D(B,ne,ae,ge,Ke){if(!(this instanceof D))return new D(B,ne,ae,ge,Ke);ae==null&&(ae=0),nl.call(this,[new sl([new di("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var It=ur(ae,0);this.sel=Ie(It),this.history=new Wo(null),this.id=++ql,this.modeOption=ne,this.lineSep=ge,this.direction=Ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof B=="string"&&(B=this.splitLines(B)),Ai(this,{from:It,to:It,text:B}),Ts(this,Ie(It),ye)};Cl.prototype=rt(nl.prototype,{constructor:Cl,iter:function(B,ne,ae){ae?this.iterN(B-this.first,ne-B,ae):this.iterN(this.first,this.first+this.size,B)},insert:function(B,ne){for(var ae=0,ge=0;ge<ne.length;++ge)ae+=ne[ge].height;this.insertInner(B-this.first,ne,ae)},remove:function(B,ne){this.removeInner(B-this.first,ne)},getValue:function(B){var ne=yt(this,this.first,this.first+this.size);return B===!1?ne:ne.join(B||this.lineSeparator())},setValue:ms(function(D){var B=ur(this.first,0),ne=this.first+this.size-1;Ls(this,{from:B,to:ur(ne,Me(this,ne).text.length),text:this.splitLines(D),origin:"setValue",full:!0},!0),this.cm&&ja(this.cm,0,0),Ts(this,Ie(B),ye)}),replaceRange:function(B,ne,ae,ge){ne=Pt(this,ne),ae=ae?Pt(this,ae):ne,jl(this,B,ne,ae,ge)},getRange:function(B,ne,ae){var ge=nt(this,Pt(this,B),Pt(this,ne));return ae===!1?ge:ge.join(ae||this.lineSeparator())},getLine:function(B){var ne=this.getLineHandle(B);return ne&&ne.text},getLineHandle:function(B){if(Yn(this,B))return Me(this,B)},getLineNumber:function(B){return Nr(B)},getLineHandleVisualStart:function(B){return typeof B=="number"&&(B=Me(this,B)),Rt(B)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(B){return Pt(this,B)},getCursor:function(B){var ne=this.sel.primary(),ae;return B==null||B=="head"?ae=ne.head:B=="anchor"?ae=ne.anchor:B=="end"||B=="to"||B===!1?ae=ne.to():ae=ne.from(),ae},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ms(function(D,B,ne){Ql(this,Pt(this,typeof D=="number"?ur(D,B||0):D),null,ne)}),setSelection:ms(function(D,B,ne){Ql(this,Pt(this,D),Pt(this,B||D),ne)}),extendSelection:ms(function(D,B,ne){Us(this,Pt(this,D),B&&Pt(this,B),ne)}),extendSelections:ms(function(D,B){Os(this,Yr(this,D),B)}),extendSelectionsBy:ms(function(D,B){var ne=ht(this.sel.ranges,D);Os(this,Yr(this,ne),B)}),setSelections:ms(function(D,B,ne){if(!D.length)return;for(var ae=[],ge=0;ge<D.length;ge++)ae[ge]=new ce(Pt(this,D[ge].anchor),Pt(this,D[ge].head));B==null&&(B=Math.min(D.length-1,this.sel.primIndex)),Ts(this,xe(this.cm,ae,B),ne)}),addSelection:ms(function(D,B,ne){var ae=this.sel.ranges.slice(0);ae.push(new ce(Pt(this,D),Pt(this,B||D))),Ts(this,xe(this.cm,ae,ae.length-1),ne)}),getSelection:function(B){for(var ne=this.sel.ranges,ae,ge=0;ge<ne.length;ge++){var Ke=nt(this,ne[ge].from(),ne[ge].to());ae=ae?ae.concat(Ke):Ke}return B===!1?ae:ae.join(B||this.lineSeparator())},getSelections:function(B){for(var ne=[],ae=this.sel.ranges,ge=0;ge<ae.length;ge++){var Ke=nt(this,ae[ge].from(),ae[ge].to());B!==!1&&(Ke=Ke.join(B||this.lineSeparator())),ne[ge]=Ke}return ne},replaceSelection:function(B,ne,ae){for(var ge=[],Ke=0;Ke<this.sel.ranges.length;Ke++)ge[Ke]=B;this.replaceSelections(ge,ne,ae||"+input")},replaceSelections:ms(function(D,B,ne){for(var ae=[],ge=this.sel,Ke=0;Ke<ge.ranges.length;Ke++){var It=ge.ranges[Ke];ae[Ke]={from:It.from(),to:It.to(),text:this.splitLines(D[Ke]),origin:ne}}for(var nr=B&&B!="end"&&hn(this,ae,B),br=ae.length-1;br>=0;br--)Ls(this,ae[br]);nr?wl(this,nr):this.cm&&Da(this.cm)}),undo:ms(function(){ml(this,"undo")}),redo:ms(function(){ml(this,"redo")}),undoSelection:ms(function(){ml(this,"undo",!0)}),redoSelection:ms(function(){ml(this,"redo",!0)}),setExtending:function(B){this.extend=B},getExtending:function(){return this.extend},historySize:function(){for(var B=this.history,ne=0,ae=0,ge=0;ge<B.done.length;ge++)B.done[ge].ranges||++ne;for(var Ke=0;Ke<B.undone.length;Ke++)B.undone[Ke].ranges||++ae;return{undo:ne,redo:ae}},clearHistory:function(){var B=this;this.history=new Wo(this.history.maxGeneration),Yi(this,function(ne){return ne.history=B.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(B){return B&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(B){return this.history.generation==(B||this.cleanGeneration)},getHistory:function(){return{done:dl(this.history.done),undone:dl(this.history.undone)}},setHistory:function(B){var ne=this.history=new Wo(this.history.maxGeneration);ne.done=dl(B.done.slice(0),null,!0),ne.undone=dl(B.undone.slice(0),null,!0)},setGutterMarker:ms(function(D,B,ne){return Ys(this,D,"gutter",function(ae){var ge=ae.gutterMarkers||(ae.gutterMarkers={});return ge[B]=ne,!ne&&$(ge)&&(ae.gutterMarkers=null),!0})}),clearGutter:ms(function(D){var B=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[D]&&Ys(B,ne,"gutter",function(){return ne.gutterMarkers[D]=null,$(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(B){var ne;if(typeof B=="number"){if(!Yn(this,B))return null;if(ne=B,B=Me(this,B),!B)return null}else if(ne=Nr(B),ne==null)return null;return{line:ne,handle:B,text:B.text,gutterMarkers:B.gutterMarkers,textClass:B.textClass,bgClass:B.bgClass,wrapClass:B.wrapClass,widgets:B.widgets}},addLineClass:ms(function(D,B,ne){return Ys(this,D,B=="gutter"?"gutter":"class",function(ae){var ge=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass";if(!ae[ge])ae[ge]=ne;else{if(_(ne).test(ae[ge]))return!1;ae[ge]+=" "+ne}return!0})}),removeLineClass:ms(function(D,B,ne){return Ys(this,D,B=="gutter"?"gutter":"class",function(ae){var ge=B=="text"?"textClass":B=="background"?"bgClass":B=="gutter"?"gutterClass":"wrapClass",Ke=ae[ge];if(Ke)if(ne==null)ae[ge]=null;else{var It=Ke.match(_(ne));if(!It)return!1;var nr=It.index+It[0].length;ae[ge]=Ke.slice(0,It.index)+(!It.index||nr==Ke.length?"":" ")+Ke.slice(nr)||null}else return!1;return!0})}),addLineWidget:ms(function(D,B,ne){return Wl(this,D,B,ne)}),removeLineWidget:function(B){B.clear()},markText:function(B,ne,ae){return $l(this,Pt(this,B),Pt(this,ne),ae,ae&&ae.type||"range")},setBookmark:function(B,ne){var ae={replacedWith:ne&&(ne.nodeType==null?ne.widget:ne),insertLeft:ne&&ne.insertLeft,clearWhenEmpty:!1,shared:ne&&ne.shared,handleMouseEvents:ne&&ne.handleMouseEvents};return B=Pt(this,B),$l(this,B,B,ae,"bookmark")},findMarksAt:function(B){B=Pt(this,B);var ne=[],ae=Me(this,B.line).markedSpans;if(ae)for(var ge=0;ge<ae.length;++ge){var Ke=ae[ge];(Ke.from==null||Ke.from<=B.ch)&&(Ke.to==null||Ke.to>=B.ch)&&ne.push(Ke.marker.parent||Ke.marker)}return ne},findMarks:function(B,ne,ae){B=Pt(this,B),ne=Pt(this,ne);var ge=[],Ke=B.line;return this.iter(B.line,ne.line+1,function(It){var nr=It.markedSpans;if(nr)for(var br=0;br<nr.length;br++){var Cr=nr[br];!(Cr.to!=null&&Ke==B.line&&B.ch>=Cr.to||Cr.from==null&&Ke!=B.line||Cr.from!=null&&Ke==ne.line&&Cr.from>=ne.ch)&&(!ae||ae(Cr.marker))&&ge.push(Cr.marker.parent||Cr.marker)}++Ke}),ge},getAllMarks:function(){var B=[];return this.iter(function(ne){var ae=ne.markedSpans;if(ae)for(var ge=0;ge<ae.length;++ge)ae[ge].from!=null&&B.push(ae[ge].marker)}),B},posFromIndex:function(B){var ne,ae=this.first,ge=this.lineSeparator().length;return this.iter(function(Ke){var It=Ke.text.length+ge;if(It>B)return ne=B,!0;B-=It,++ae}),Pt(this,ur(ae,ne))},indexFromPos:function(B){B=Pt(this,B);var ne=B.ch;if(B.line<this.first||B.ch<0)return 0;var ae=this.lineSeparator().length;return this.iter(this.first,B.line,function(ge){ne+=ge.text.length+ae}),ne},copy:function(B){var ne=new Cl(yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ne.scrollTop=this.scrollTop,ne.scrollLeft=this.scrollLeft,ne.sel=this.sel,ne.extend=!1,B&&(ne.history.undoDepth=this.history.undoDepth,ne.setHistory(this.getHistory())),ne},linkedDoc:function(B){B||(B={});var ne=this.first,ae=this.first+this.size;B.from!=null&&B.from>ne&&(ne=B.from),B.to!=null&&B.to<ae&&(ae=B.to);var ge=new Cl(yt(this,ne,ae),B.mode||this.modeOption,ne,this.lineSep,this.direction);return B.sharedHist&&(ge.history=this.history),(this.linked||(this.linked=[])).push({doc:ge,sharedHist:B.sharedHist}),ge.linked=[{doc:this,isParent:!0,sharedHist:B.sharedHist}],mu(ge,pu(this)),ge},unlinkDoc:function(B){if(B instanceof Fr&&(B=B.doc),this.linked)for(var ne=0;ne<this.linked.length;++ne){var ae=this.linked[ne];if(ae.doc!=B)continue;this.linked.splice(ne,1),B.unlinkDoc(this),gu(pu(this));break}if(B.history==this.history){var ge=[B.id];Yi(B,function(Ke){return ge.push(Ke.id)},!0),B.history=new Wo(null),B.history.done=dl(this.history.done,ge),B.history.undone=dl(this.history.undone,ge)}},iterLinkedDocs:function(B){Yi(this,B)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(B){return this.lineSep?B.split(this.lineSep):tn(B)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ms(function(D){if(D!="rtl"&&(D="ltr"),D==this.direction)return;this.direction=D,this.iter(function(B){return B.order=null}),this.cm&&no(this.cm)})}),Cl.prototype.eachLine=Cl.prototype.iter;var ll=0;function Hl(D){var B=this;if(vu(B),dr(B,D)||qn(B.display,D))return;Ve(D),d&&(ll=+new Date);var ne=_o(B,D,!0),ae=D.dataTransfer.files;if(!ne||B.isReadOnly())return;if(ae&&ae.length&&window.FileReader&&window.File)for(var ge=ae.length,Ke=Array(ge),It=0,nr=function(){++It==ge&&zo(B,function(){ne=Pt(B.doc,ne);var la={from:ne,to:ne,text:B.doc.splitLines(Ke.filter(function(Ta){return Ta!=null}).join(B.doc.lineSeparator())),origin:"paste"};Ls(B.doc,la),wl(B.doc,Ie(Pt(B.doc,ne),Pt(B.doc,Je(la))))})()},br=function(la,Ta){if(B.options.allowDropFileTypes&&G(B.options.allowDropFileTypes,la.type)==-1){nr();return}var Wa=new FileReader;Wa.onerror=function(){return nr()},Wa.onload=function(){var Ma=Wa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ma)){nr();return}Ke[Ta]=Ma,nr()},Wa.readAsText(la)},Cr=0;Cr<ae.length;Cr++)br(ae[Cr],Cr);else{if(B.state.draggingText&&B.doc.sel.contains(ne)>-1){B.state.draggingText(D),setTimeout(function(){return B.display.input.focus()},20);return}try{var jn=D.dataTransfer.getData("Text");if(jn){var ti;if(B.state.draggingText&&!B.state.draggingText.copy&&(ti=B.listSelections()),Ws(B.doc,Ie(ne,ne)),ti)for(var Ei=0;Ei<ti.length;++Ei)jl(B.doc,"",ti[Ei].anchor,ti[Ei].head,"drag");B.replaceSelection(jn,"around","paste"),B.display.input.focus()}}catch(_i){}}}function Sl(D,B){if(d&&(!D.state.draggingText||+new Date-ll<100)){Ze(B);return}if(dr(D,B)||qn(D.display,B))return;if(B.dataTransfer.setData("Text",D.getSelection()),B.dataTransfer.effectAllowed="copyMove",B.dataTransfer.setDragImage&&!e){var ne=I("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s&&(ne.width=ne.height=1,D.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),B.dataTransfer.setDragImage(ne,0,0),s&&ne.parentNode.removeChild(ne)}}function Su(D,B){var ne=_o(D,B);if(!ne)return;var ae=document.createDocumentFragment();ni(D,ne,ae),D.display.dragCursor||(D.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),D.display.lineSpace.insertBefore(D.display.dragCursor,D.display.cursorDiv)),O(D.display.dragCursor,ae)}function vu(D){D.display.dragCursor&&(D.display.lineSpace.removeChild(D.display.dragCursor),D.display.dragCursor=null)}function Au(D){if(!document.getElementsByClassName)return;for(var B=document.getElementsByClassName("CodeMirror"),ne=[],ae=0;ae<B.length;ae++){var ge=B[ae].CodeMirror;ge&&ne.push(ge)}ne.length&&ne[0].operation(function(){for(var Ke=0;Ke<ne.length;Ke++)D(ne[Ke])})}var Ol=!1;function cu(){if(Ol)return;du(),Ol=!0}function du(){var D;je(window,"resize",function(){D==null&&(D=setTimeout(function(){D=null,Au(Lu)},100))}),je(window,"blur",function(){return Au(mi)})}function Lu(D){var B=D.display;B.cachedCharWidth=B.cachedTextHeight=B.cachedPaddingH=null,B.scrollbarsClipped=!1,D.setSize()}for(var zl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ru=0;ru<10;ru++)zl[ru+48]=zl[ru+96]=String(ru);for(var ou=65;ou<=90;ou++)zl[ou]=String.fromCharCode(ou);for(var su=1;su<=12;su++)zl[su+111]=zl[su+63235]="F"+su;var Jl={};Jl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Jl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Jl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Jl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Jl.default=g?Jl.macDefault:Jl.pcDefault;function Du(D){var B=D.split(/-(?!$)/);D=B[B.length-1];for(var ne,ae,ge,Ke,It=0;It<B.length-1;It++){var nr=B[It];if(/^(cmd|meta|m)$/i.test(nr))Ke=!0;else if(/^a(lt)?$/i.test(nr))ne=!0;else if(/^(c|ctrl|control)$/i.test(nr))ae=!0;else if(/^s(hift)?$/i.test(nr))ge=!0;else throw new Error("Unrecognized modifier name: "+nr)}return ne&&(D="Alt-"+D),ae&&(D="Ctrl-"+D),Ke&&(D="Cmd-"+D),ge&&(D="Shift-"+D),D}function Ru(D){var B={};for(var ne in D)if(D.hasOwnProperty(ne)){var ae=D[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(ae=="..."){delete D[ne];continue}for(var ge=ht(ne.split(" "),Du),Ke=0;Ke<ge.length;Ke++){var It=void 0,nr=void 0;Ke==ge.length-1?(nr=ge.join(" "),It=ae):(nr=ge.slice(0,Ke+1).join(" "),It="...");var br=B[nr];if(!br)B[nr]=It;else if(br!=It)throw new Error("Inconsistent bindings for "+nr)}delete D[ne]}for(var Cr in B)D[Cr]=B[Cr];return D}function Zl(D,B,ne,ae){B=hl(B);var ge=B.call?B.call(D,ae):B[D];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&ne(ge))return"handled";if(B.fallthrough){if(Object.prototype.toString.call(B.fallthrough)!="[object Array]")return Zl(D,B.fallthrough,ne,ae);for(var Ke=0;Ke<B.fallthrough.length;Ke++){var It=Zl(D,B.fallthrough[Ke],ne,ae);if(It)return It}}}function yu(D){var B=typeof D=="string"?D:zl[D.keyCode];return B=="Ctrl"||B=="Alt"||B=="Shift"||B=="Mod"}function xu(D,B,ne){var ae=D;return B.altKey&&ae!="Alt"&&(D="Alt-"+D),(E?B.metaKey:B.ctrlKey)&&ae!="Ctrl"&&(D="Ctrl-"+D),(E?B.ctrlKey:B.metaKey)&&ae!="Mod"&&(D="Cmd-"+D),!ne&&B.shiftKey&&ae!="Shift"&&(D="Shift-"+D),D}function bu(D,B){if(s&&D.keyCode==34&&D.char)return!1;var ne=zl[D.keyCode];return ne==null||D.altGraphKey?!1:(D.keyCode==3&&D.code&&(ne=D.code),xu(ne,D,B))}function hl(D){return typeof D=="string"?Jl[D]:D}function Dl(D,B){for(var ne=D.doc.sel.ranges,ae=[],ge=0;ge<ne.length;ge++){for(var Ke=B(ne[ge]);ae.length&&Tt(Ke.from,Ge(ae).to)<=0;){var It=ae.pop();if(Tt(It.from,Ke.from)<0){Ke.from=It.from;break}}ae.push(Ke)}Eo(D,function(){for(var nr=ae.length-1;nr>=0;nr--)jl(D.doc,"",ae[nr].from,ae[nr].to,"+delete");Da(D)})}function nu(D,B,ne){var ae=Ce(D.text,B+ne,ne);return ae<0||ae>D.text.length?null:ae}function Nu(D,B,ne){var ae=nu(D,B.ch,ne);return ae==null?null:new ur(B.line,ae,ne<0?"after":"before")}function hu(D,B,ne,ae,ge){if(D){B.doc.direction=="rtl"&&(ge=-ge);var Ke=gt(ne,B.doc.direction);if(Ke){var It=ge<0?Ge(Ke):Ke[0],nr=ge<0==(It.level==1),br=nr?"after":"before",Cr;if(It.level>0||B.doc.direction=="rtl"){var jn=ca(B,ne);Cr=ge<0?ne.text.length-1:0;var ti=Ca(B,jn,Cr).top;Cr=Se(function(Ei){return Ca(B,jn,Ei).top==ti},ge<0==(It.level==1)?It.from:It.to-1,Cr),br=="before"&&(Cr=nu(ne,Cr,1))}else Cr=ge<0?It.to:It.from;return new ur(ae,Cr,br)}}return new ur(ae,ge<0?ne.text.length:0,ge<0?"before":"after")}function fu(D,B,ne,ae){var ge=gt(B,D.doc.direction);if(!ge)return Nu(B,ne,ae);ne.ch>=B.text.length?(ne.ch=B.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var Ke=_e(ge,ne.ch,ne.sticky),It=ge[Ke];if(D.doc.direction=="ltr"&&It.level%2==0&&(ae>0?It.to>ne.ch:It.from<ne.ch))return Nu(B,ne,ae);var nr=function(Na,qa){return nu(B,Na instanceof ur?Na.ch:Na,qa)},br,Cr=function(Na){return D.options.lineWrapping?(br=br||ca(D,B),to(D,B,br,Na)):{begin:0,end:B.text.length}},jn=Cr(ne.sticky=="before"?nr(ne,-1):ne.ch);if(D.doc.direction=="rtl"||It.level==1){var ti=It.level==1==ae<0,Ei=nr(ne,ti?1:-1);if(Ei!=null&&(ti?Ei<=It.to&&Ei<=jn.end:Ei>=It.from&&Ei>=jn.begin)){var _i=ti?"before":"after";return new ur(ne.line,Ei,_i)}}var la=function(Na,qa,ho){for(var ns=function(ul,Pl){return Pl?new ur(ne.line,nr(ul,1),"before"):new ur(ne.line,ul,"after")};Na>=0&&Na<ge.length;Na+=qa){var Mo=ge[Na],Ss=qa>0==(Mo.level!=1),Zs=Ss?ho.begin:nr(ho.end,-1);if(Mo.from<=Zs&&Zs<Mo.to)return ns(Zs,Ss);if(Zs=Ss?Mo.from:nr(Mo.to,-1),ho.begin<=Zs&&Zs<ho.end)return ns(Zs,Ss)}},Ta=la(Ke+ae,ae,jn);if(Ta)return Ta;var Wa=ae>0?jn.end:nr(jn.begin,-1);return Wa!=null&&!(ae>0&&Wa==B.text.length)&&(Ta=la(ae>0?0:ge.length-1,ae,Cr(Wa)),Ta)?Ta:null}var iu={selectAll:Is,singleSelection:function(B){return B.setSelection(B.getCursor("anchor"),B.getCursor("head"),ye)},killLine:function(B){return Dl(B,function(ne){if(ne.empty()){var ae=Me(B.doc,ne.head.line).text.length;return ne.head.ch==ae&&ne.head.line<B.lastLine()?{from:ne.head,to:ur(ne.head.line+1,0)}:{from:ne.head,to:ur(ne.head.line,ae)}}else return{from:ne.from(),to:ne.to()}})},deleteLine:function(B){return Dl(B,function(ne){return{from:ur(ne.from().line,0),to:Pt(B.doc,ur(ne.to().line+1,0))}})},delLineLeft:function(B){return Dl(B,function(ne){return{from:ur(ne.from().line,0),to:ne.from()}})},delWrappedLineLeft:function(B){return Dl(B,function(ne){var ae=B.charCoords(ne.head,"div").top+5,ge=B.coordsChar({left:0,top:ae},"div");return{from:ge,to:ne.from()}})},delWrappedLineRight:function(B){return Dl(B,function(ne){var ae=B.charCoords(ne.head,"div").top+5,ge=B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:ae},"div");return{from:ne.from(),to:ge}})},undo:function(B){return B.undo()},redo:function(B){return B.redo()},undoSelection:function(B){return B.undoSelection()},redoSelection:function(B){return B.redoSelection()},goDocStart:function(B){return B.extendSelection(ur(B.firstLine(),0))},goDocEnd:function(B){return B.extendSelection(ur(B.lastLine()))},goLineStart:function(B){return B.extendSelectionsBy(function(ne){return Ae(B,ne.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(B){return B.extendSelectionsBy(function(ne){return N(B,ne.head)},{origin:"+move",bias:1})},goLineEnd:function(B){return B.extendSelectionsBy(function(ne){return q(B,ne.head.line)},{origin:"+move",bias:-1})},goLineRight:function(B){return B.extendSelectionsBy(function(ne){var ae=B.cursorCoords(ne.head,"div").top+5;return B.coordsChar({left:B.display.lineDiv.offsetWidth+100,top:ae},"div")},ke)},goLineLeft:function(B){return B.extendSelectionsBy(function(ne){var ae=B.cursorCoords(ne.head,"div").top+5;return B.coordsChar({left:0,top:ae},"div")},ke)},goLineLeftSmart:function(B){return B.extendSelectionsBy(function(ne){var ae=B.cursorCoords(ne.head,"div").top+5,ge=B.coordsChar({left:0,top:ae},"div");return ge.ch<B.getLine(ge.line).search(/\S/)?N(B,ne.head):ge},ke)},goLineUp:function(B){return B.moveV(-1,"line")},goLineDown:function(B){return B.moveV(1,"line")},goPageUp:function(B){return B.moveV(-1,"page")},goPageDown:function(B){return B.moveV(1,"page")},goCharLeft:function(B){return B.moveH(-1,"char")},goCharRight:function(B){return B.moveH(1,"char")},goColumnLeft:function(B){return B.moveH(-1,"column")},goColumnRight:function(B){return B.moveH(1,"column")},goWordLeft:function(B){return B.moveH(-1,"word")},goGroupRight:function(B){return B.moveH(1,"group")},goGroupLeft:function(B){return B.moveH(-1,"group")},goWordRight:function(B){return B.moveH(1,"word")},delCharBefore:function(B){return B.deleteH(-1,"codepoint")},delCharAfter:function(B){return B.deleteH(1,"char")},delWordBefore:function(B){return B.deleteH(-1,"word")},delWordAfter:function(B){return B.deleteH(1,"word")},delGroupBefore:function(B){return B.deleteH(-1,"group")},delGroupAfter:function(B){return B.deleteH(1,"group")},indentAuto:function(B){return B.indentSelection("smart")},indentMore:function(B){return B.indentSelection("add")},indentLess:function(B){return B.indentSelection("subtract")},insertTab:function(B){return B.replaceSelection(" ")},insertSoftTab:function(B){for(var ne=[],ae=B.listSelections(),ge=B.options.tabSize,Ke=0;Ke<ae.length;Ke++){var It=ae[Ke].from(),nr=V(B.getLine(It.line),It.ch,ge);ne.push($e(ge-nr%ge))}B.replaceSelections(ne)},defaultTab:function(B){B.somethingSelected()?B.indentSelection("add"):B.execCommand("insertTab")},transposeChars:function(B){return Eo(B,function(){for(var ne=B.listSelections(),ae=[],ge=0;ge<ne.length;ge++){if(!ne[ge].empty())continue;var Ke=ne[ge].head,It=Me(B.doc,Ke.line).text;if(It){if(Ke.ch==It.length&&(Ke=new ur(Ke.line,Ke.ch-1)),Ke.ch>0)Ke=new ur(Ke.line,Ke.ch+1),B.replaceRange(It.charAt(Ke.ch-1)+It.charAt(Ke.ch-2),ur(Ke.line,Ke.ch-2),Ke,"+transpose");else if(Ke.line>B.doc.first){var nr=Me(B.doc,Ke.line-1).text;nr&&(Ke=new ur(Ke.line,1),B.replaceRange(It.charAt(0)+B.doc.lineSeparator()+nr.charAt(nr.length-1),ur(Ke.line-1,nr.length-1),Ke,"+transpose"))}}ae.push(new ce(Ke,Ke))}B.setSelections(ae)})},newlineAndIndent:function(B){return Eo(B,function(){for(var ne=B.listSelections(),ae=ne.length-1;ae>=0;ae--)B.replaceRange(B.doc.lineSeparator(),ne[ae].anchor,ne[ae].head,"+input");ne=B.listSelections();for(var ge=0;ge<ne.length;ge++)B.indentLine(ne[ge].from().line,null,!0);Da(B)})},openLine:function(B){return B.replaceSelection(`
`,"start")},toggleOverwrite:function(B){return B.toggleOverwrite()}};function Ae(D,B){var ne=Me(D.doc,B),ae=Rt(ne);return ae!=ne&&(B=Nr(ae)),hu(!0,D,ae,B,1)}function q(D,B){var ne=Me(D.doc,B),ae=Ut(ne);return ae!=ne&&(B=Nr(ae)),hu(!0,D,ne,B,-1)}function N(D,B){var ne=Ae(D,B.line),ae=Me(D.doc,ne.line),ge=gt(ae,D.doc.direction);if(!ge||ge[0].level==0){var Ke=Math.max(ne.ch,ae.text.search(/\S/)),It=B.line==ne.line&&B.ch<=Ke&&B.ch;return ur(ne.line,It?0:Ke,ne.sticky)}return ne}function W(D,B,ne){if(typeof B=="string"&&(B=iu[B],!B))return!1;D.display.input.ensurePolled();var ae=D.display.shift,ge=!1;try{D.isReadOnly()&&(D.state.suppressEdits=!0),ne&&(D.display.shift=!1),ge=B(D)!=se}finally{D.display.shift=ae,D.state.suppressEdits=!1}return ge}function H(D,B,ne){for(var ae=0;ae<D.state.keyMaps.length;ae++){var ge=Zl(B,D.state.keyMaps[ae],ne,D);if(ge)return ge}return D.options.extraKeys&&Zl(B,D.options.extraKeys,ne,D)||Zl(B,D.options.keyMap,ne,D)}var Z=new Q;function re(D,B,ne,ae){var ge=D.state.keySeq;if(ge){if(yu(B))return"handled";if(/\'$/.test(B)?D.state.keySeq=null:Z.set(50,function(){D.state.keySeq==ge&&(D.state.keySeq=null,D.display.input.reset())}),ve(D,ge+" "+B,ne,ae))return!0}return ve(D,B,ne,ae)}function ve(D,B,ne,ae){var ge=H(D,B,ae);return ge=="multi"&&(D.state.keySeq=B),ge=="handled"&&Ir(D,"keyHandled",D,B,ne),(ge=="handled"||ge=="multi")&&(Ve(ne),li(D)),!!ge}function Te(D,B){var ne=bu(B,!0);return ne?B.shiftKey&&!D.state.keySeq?re(D,"Shift-"+ne,B,function(ae){return W(D,ae,!0)})||re(D,ne,B,function(ae){if(typeof ae=="string"?/^go[A-Z]/.test(ae):ae.motion)return W(D,ae)}):re(D,ne,B,function(ae){return W(D,ae)}):!1}function ze(D,B,ne){return re(D,"'"+ne+"'",B,function(ae){return W(D,ae,!0)})}var st=null;function mt(D){var B=this;if(D.target&&D.target!=B.display.input.getField())return;if(B.curOp.focus=P(),dr(B,D))return;d&&u<11&&D.keyCode==27&&(D.returnValue=!1);var ne=D.keyCode;B.display.shift=ne==16||D.shiftKey;var ae=Te(B,D);s&&(st=ae?ne:null,!ae&&ne==88&&!tr&&(g?D.metaKey:D.ctrlKey)&&B.replaceSelection("",null,"cut")),x&&!g&&!ae&&ne==46&&D.shiftKey&&!D.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(B.display.lineDiv.className)&&Yt(B)}function Yt(D){var B=D.display.lineDiv;X(B,"CodeMirror-crosshair");function ne(ae){(ae.keyCode==18||!ae.altKey)&&(T(B,"CodeMirror-crosshair"),ut(document,"keyup",ne),ut(document,"mouseover",ne))}je(document,"keyup",ne),je(document,"mouseover",ne)}function Tr(D){D.keyCode==16&&(this.doc.sel.shift=!1),dr(this,D)}function wr(D){var B=this;if(D.target&&D.target!=B.display.input.getField())return;if(qn(B.display,D)||dr(B,D)||D.ctrlKey&&!D.altKey||g&&D.metaKey)return;var ne=D.keyCode,ae=D.charCode;if(s&&ne==st){st=null,Ve(D);return}if(s&&(!D.which||D.which<10)&&Te(B,D))return;var ge=String.fromCharCode(ae==null?ne:ae);if(ge=="\b")return;if(ze(B,D,ge))return;B.display.input.onKeyPress(D)}var jr=400,Qr=function(B,ne,ae){this.time=B,this.pos=ne,this.button=ae};Qr.prototype.compare=function(D,B,ne){return this.time+jr>D&&Tt(B,this.pos)==0&&ne==this.button};var Cn,Dn;function Zn(D,B){var ne=+new Date;return Dn&&Dn.compare(ne,D,B)?(Cn=Dn=null,"triple"):Cn&&Cn.compare(ne,D,B)?(Dn=new Qr(ne,D,B),Cn=null,"double"):(Cn=new Qr(ne,D,B),Dn=null,"single")}function Si(D){var B=this,ne=B.display;if(dr(B,D)||ne.activeTouch&&ne.input.supportsTouch())return;if(ne.input.ensurePolled(),ne.shift=D.shiftKey,qn(ne,D)){a||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(bs(B,D))return;var ae=_o(B,D),ge=ue(D),Ke=ae?Zn(ae,ge):"single";if(window.focus(),ge==1&&B.state.selectingText&&B.state.selectingText(D),ae&&ua(B,ge,ae,Ke,D))return;ge==1?ae?Zi(B,ae,Ke,D):Xe(D)==ne.scroller&&Ve(D):ge==2?(ae&&Us(B.doc,ae),setTimeout(function(){return ne.input.focus()},20)):ge==3&&(C?B.display.input.onContextMenu(D):si(B))}function ua(D,B,ne,ae,ge){var Ke="Click";return ae=="double"?Ke="Double"+Ke:ae=="triple"&&(Ke="Triple"+Ke),Ke=(B==1?"Left":B==2?"Middle":"Right")+Ke,re(D,xu(Ke,ge),ge,function(It){if(typeof It=="string"&&(It=iu[It]),!It)return!1;var nr=!1;try{D.isReadOnly()&&(D.state.suppressEdits=!0),nr=It(D,ne)!=se}finally{D.state.suppressEdits=!1}return nr})}function Vi(D,B,ne){var ae=D.getOption("configureMouse"),ge=ae?ae(D,B,ne):{};if(ge.unit==null){var Ke=v?ne.shiftKey&&ne.metaKey:ne.altKey;ge.unit=Ke?"rectangle":B=="single"?"char":B=="double"?"word":"line"}return(ge.extend==null||D.doc.extend)&&(ge.extend=D.doc.extend||ne.shiftKey),ge.addNew==null&&(ge.addNew=g?ne.metaKey:ne.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(g?ne.altKey:ne.ctrlKey)),ge}function Zi(D,B,ne,ae){d?setTimeout(K(ci,D),0):D.curOp.focus=P();var ge=Vi(D,ne,ae),Ke=D.doc.sel,It;D.options.dragDrop&&St&&!D.isReadOnly()&&ne=="single"&&(It=Ke.contains(B))>-1&&(Tt((It=Ke.ranges[It]).from(),B)<0||B.xRel>0)&&(Tt(It.to(),B)>0||B.xRel<0)?ka(D,ae,B,ge):Ba(D,ae,B,ge)}function ka(D,B,ne,ae){var ge=D.display,Ke=!1,It=zo(D,function(Cr){a&&(ge.scroller.draggable=!1),D.state.draggingText=!1,ut(ge.wrapper.ownerDocument,"mouseup",It),ut(ge.wrapper.ownerDocument,"mousemove",nr),ut(ge.scroller,"dragstart",br),ut(ge.scroller,"drop",It),Ke||(Ve(Cr),ae.addNew||Us(D.doc,ne,null,null,ae.extend),a&&!e||d&&u==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),nr=function(jn){Ke=Ke||Math.abs(B.clientX-jn.clientX)+Math.abs(B.clientY-jn.clientY)>=10},br=function(){return Ke=!0};a&&(ge.scroller.draggable=!0),D.state.draggingText=It,It.copy=!ae.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),je(ge.wrapper.ownerDocument,"mouseup",It),je(ge.wrapper.ownerDocument,"mousemove",nr),je(ge.scroller,"dragstart",br),je(ge.scroller,"drop",It),si(D),setTimeout(function(){return ge.input.focus()},20)}function Ga(D,B,ne){if(ne=="char")return new ce(B,B);if(ne=="word")return D.findWordAt(B);if(ne=="line")return new ce(ur(B.line,0),Pt(D.doc,ur(B.line+1,0)));var ae=ne(D,B);return new ce(ae.from,ae.to)}function Ba(D,B,ne,ae){var ge=D.display,Ke=D.doc;Ve(B);var It,nr,br=Ke.sel,Cr=br.ranges;if(ae.addNew&&!ae.extend?(nr=Ke.sel.contains(ne),nr>-1?It=Cr[nr]:It=new ce(ne,ne)):(It=Ke.sel.primary(),nr=Ke.sel.primIndex),ae.unit=="rectangle")ae.addNew||(It=new ce(ne,ne)),ne=_o(D,B,!0,!0),nr=-1;else{var jn=Ga(D,ne,ae.unit);ae.extend?It=fl(It,jn.anchor,jn.head,ae.extend):It=jn}ae.addNew?nr==-1?(nr=Cr.length,Ts(Ke,xe(D,Cr.concat([It]),nr),{scroll:!1,origin:"*mouse"})):Cr.length>1&&Cr[nr].empty()&&ae.unit=="char"&&!ae.extend?(Ts(Ke,xe(D,Cr.slice(0,nr).concat(Cr.slice(nr+1)),0),{scroll:!1,origin:"*mouse"}),br=Ke.sel):Xs(Ke,nr,It,he):(nr=0,Ts(Ke,new Nt([It],0),he),br=Ke.sel);var ti=ne;function Ei(qa){if(Tt(ti,qa)==0)return;if(ti=qa,ae.unit=="rectangle"){for(var ho=[],ns=D.options.tabSize,Mo=V(Me(Ke,ne.line).text,ne.ch,ns),Ss=V(Me(Ke,qa.line).text,qa.ch,ns),Zs=Math.min(Mo,Ss),yl=Math.max(Mo,Ss),ul=Math.min(ne.line,qa.line),Pl=Math.min(D.lastLine(),Math.max(ne.line,qa.line));ul<=Pl;ul++){var Vl=Me(Ke,ul).text,Il=Pe(Vl,Zs,ns);Zs==yl?ho.push(new ce(ur(ul,Il),ur(ul,Il))):Vl.length>Il&&ho.push(new ce(ur(ul,Il),ur(ul,Pe(Vl,yl,ns))))}ho.length||ho.push(new ce(ne,ne)),Ts(Ke,xe(D,br.ranges.slice(0,nr).concat(ho),nr),{origin:"*mouse",scroll:!1}),D.scrollIntoView(qa)}else{var Gl=It,Fl=Ga(D,qa,ae.unit),Ja=Gl.anchor,vl;Tt(Fl.anchor,Ja)>0?(vl=Fl.head,Ja=Ft(Gl.from(),Fl.anchor)):(vl=Fl.anchor,Ja=er(Gl.to(),Fl.head));var gl=br.ranges.slice(0);gl[nr]=Sa(D,new ce(Pt(Ke,Ja),vl)),Ts(Ke,xe(D,gl,nr),he)}}var _i=ge.wrapper.getBoundingClientRect(),la=0;function Ta(qa){var ho=++la,ns=_o(D,qa,!0,ae.unit=="rectangle");if(!ns)return;if(Tt(ns,ti)!=0){D.curOp.focus=P(),Ei(ns);var Mo=ia(ge,Ke);(ns.line>=Mo.to||ns.line<Mo.from)&&setTimeout(zo(D,function(){la==ho&&Ta(qa)}),150)}else{var Ss=qa.clientY<_i.top?-20:qa.clientY>_i.bottom?20:0;Ss&&setTimeout(zo(D,function(){if(la!=ho)return;ge.scroller.scrollTop+=Ss,Ta(qa)}),50)}}function Wa(qa){D.state.selectingText=!1,la=Infinity,qa&&(Ve(qa),ge.input.focus()),ut(ge.wrapper.ownerDocument,"mousemove",Ma),ut(ge.wrapper.ownerDocument,"mouseup",Na),Ke.history.lastSelOrigin=null}var Ma=zo(D,function(qa){qa.buttons===0||!ue(qa)?Wa(qa):Ta(qa)}),Na=zo(D,Wa);D.state.selectingText=Na,je(ge.wrapper.ownerDocument,"mousemove",Ma),je(ge.wrapper.ownerDocument,"mouseup",Na)}function Sa(D,B){var ne=B.anchor,ae=B.head,ge=Me(D.doc,ne.line);if(Tt(ne,ae)==0&&ne.sticky==ae.sticky)return B;var Ke=gt(ge);if(!Ke)return B;var It=_e(Ke,ne.ch,ne.sticky),nr=Ke[It];if(nr.from!=ne.ch&&nr.to!=ne.ch)return B;var br=It+(nr.from==ne.ch==(nr.level!=1)?0:1);if(br==0||br==Ke.length)return B;var Cr;if(ae.line!=ne.line)Cr=(ae.line-ne.line)*(D.doc.direction=="ltr"?1:-1)>0;else{var jn=_e(Ke,ae.ch,ae.sticky),ti=jn-It||(ae.ch-ne.ch)*(nr.level==1?-1:1);jn==br-1||jn==br?Cr=ti<0:Cr=ti>0}var Ei=Ke[br+(Cr?-1:0)],_i=Cr==(Ei.level==1),la=_i?Ei.from:Ei.to,Ta=_i?"after":"before";return ne.ch==la&&ne.sticky==Ta?B:new ce(new ur(ne.line,la,Ta),ae)}function Go(D,B,ne,ae){var ge,Ke;if(B.touches)ge=B.touches[0].clientX,Ke=B.touches[0].clientY;else try{ge=B.clientX,Ke=B.clientY}catch(Ei){return!1}if(ge>=Math.floor(D.display.gutters.getBoundingClientRect().right))return!1;ae&&Ve(B);var It=D.display,nr=It.lineDiv.getBoundingClientRect();if(Ke>nr.bottom||!Mt(D,ne))return te(B);Ke-=nr.top-It.viewOffset;for(var br=0;br<D.display.gutterSpecs.length;++br){var Cr=It.gutters.childNodes[br];if(Cr&&Cr.getBoundingClientRect().right>=ge){var jn=mn(D.doc,Ke),ti=D.display.gutterSpecs[br];return Ht(D,ne,D,jn,ti.className,B),te(B)}}}function bs(D,B){return Go(D,B,"gutterClick",!0)}function ys(D,B){if(qn(D.display,B)||Cs(D,B))return;if(dr(D,B,"contextmenu"))return;C||D.display.input.onContextMenu(B)}function Cs(D,B){return Mt(D,"gutterContextMenu")?Go(D,B,"gutterContextMenu",!1):!1}function js(D){D.display.wrapper.className=D.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+D.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xa(D)}var ws={toString:function(){return"CodeMirror.Init"}},Hs={},Ee={};function Qe(D){var B=D.optionHandlers;function ne(ae,ge,Ke,It){D.defaults[ae]=ge,Ke&&(B[ae]=It?function(nr,br,Cr){Cr!=ws&&Ke(nr,br,Cr)}:Ke)}D.defineOption=ne,D.Init=ws,ne("value","",function(ae,ge){return ae.setValue(ge)},!0),ne("mode",null,function(ae,ge){ae.doc.modeOption=ge,Nn(ae)},!0),ne("indentUnit",2,Nn,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(ae){ui(ae),Xa(ae),Ha(ae)},!0),ne("lineSeparator",null,function(ae,ge){if(ae.doc.lineSep=ge,!ge)return;var Ke=[],It=ae.doc.first;ae.doc.iter(function(br){for(var Cr=0;;){var jn=br.text.indexOf(ge,Cr);if(jn==-1)break;Cr=jn+ge.length,Ke.push(ur(It,jn))}It++});for(var nr=Ke.length-1;nr>=0;nr--)jl(ae.doc,ge,Ke[nr],ur(Ke[nr].line,Ke[nr].ch+ge.length))}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ae,ge,Ke){ae.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Ke!=ws&&ae.refresh()}),ne("specialCharPlaceholder",Ti,function(ae){return ae.refresh()},!0),ne("electricChars",!0),ne("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(ae,ge){return ae.getInputField().spellcheck=ge},!0),ne("autocorrect",!1,function(ae,ge){return ae.getInputField().autocorrect=ge},!0),ne("autocapitalize",!1,function(ae,ge){return ae.getInputField().autocapitalize=ge},!0),ne("rtlMoveVisually",!b),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(ae){js(ae),fs(ae)},!0),ne("keyMap","default",function(ae,ge,Ke){var It=hl(ge),nr=Ke!=ws&&hl(Ke);nr&&nr.detach&&nr.detach(ae,It),It.attach&&It.attach(ae,nr||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,hr,!0),ne("gutters",[],function(ae,ge){ae.display.gutterSpecs=Vo(ge,ae.options.lineNumbers),fs(ae)},!0),ne("fixedGutter",!0,function(ae,ge){ae.display.gutters.style.left=ge?xo(ae.display)+"px":"0",ae.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(ae){return Lo(ae)},!0),ne("scrollbarStyle","native",function(ae){Rs(ae),Lo(ae),ae.display.scrollbars.setScrollTop(ae.doc.scrollTop),ae.display.scrollbars.setScrollLeft(ae.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(ae,ge){ae.display.gutterSpecs=Vo(ae.options.gutters,ge),fs(ae)},!0),ne("firstLineNumber",1,fs,!0),ne("lineNumberFormatter",function(ae){return ae},fs,!0),ne("showCursorWhenSelecting",!1,un,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(ae,ge){ge=="nocursor"&&(mi(ae),ae.display.input.blur()),ae.display.input.readOnlyChanged(ge)}),ne("screenReaderLabel",null,function(ae,ge){ge=ge===""?null:ge,ae.display.input.screenReaderLabelChanged(ge)}),ne("disableInput",!1,function(ae,ge){ge||ae.display.input.reset()},!0),ne("dragDrop",!0,xt),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,un,!0),ne("singleCursorHeightPerLine",!0,un,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,ui,!0),ne("addModeClass",!1,ui,!0),ne("pollInterval",100),ne("undoDepth",200,function(ae,ge){return ae.doc.history.undoDepth=ge}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(ae){return ae.refresh()},!0),ne("maxHighlightLength",1e4,ui,!0),ne("moveInputWithCursor",!0,function(ae,ge){ge||ae.display.input.resetPosition()}),ne("tabindex",null,function(ae,ge){return ae.display.input.getField().tabIndex=ge||""}),ne("autofocus",null),ne("direction","ltr",function(ae,ge){return ae.doc.setDirection(ge)},!0),ne("phrases",null)}function xt(D,B,ne){var ae=ne&&ne!=ws;if(!B!=!ae){var ge=D.display.dragFunctions,Ke=B?je:ut;Ke(D.display.scroller,"dragstart",ge.start),Ke(D.display.scroller,"dragenter",ge.enter),Ke(D.display.scroller,"dragover",ge.over),Ke(D.display.scroller,"dragleave",ge.leave),Ke(D.display.scroller,"drop",ge.drop)}}function hr(D){D.options.lineWrapping?(X(D.display.wrapper,"CodeMirror-wrap"),D.display.sizer.style.minWidth="",D.display.sizerWidth=null):(T(D.display.wrapper,"CodeMirror-wrap"),kn(D)),Ho(D),Ha(D),Xa(D),setTimeout(function(){return Lo(D)},100)}function Fr(D,B){var ne=this;if(!(this instanceof Fr))return new Fr(D,B);this.options=B=B?z(B):{},z(Hs,B,!1);var ae=B.value;typeof ae=="string"?ae=new Cl(ae,B.mode,null,B.lineSeparator,B.direction):B.mode&&(ae.modeOption=B.mode),this.doc=ae;var ge=new Fr.inputStyles[B.inputStyle](this),Ke=this.display=new Ds(D,ae,ge,B);Ke.wrapper.CodeMirror=this,js(this),B.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Rs(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 Q,keySeq:null,specialChars:null},B.autofocus&&!h&&Ke.input.focus(),d&&u<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),on(this),cu(),as(this),this.curOp.forceUpdate=!0,sa(this,ae),B.autofocus&&!h||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ci(ne)},20):mi(this);for(var It in Ee)Ee.hasOwnProperty(It)&&Ee[It](this,B[It],ws);Js(this),B.finishInit&&B.finishInit(this);for(var nr=0;nr<Be.length;++nr)Be[nr](this);co(this),a&&B.lineWrapping&&getComputedStyle(Ke.lineDiv).textRendering=="optimizelegibility"&&(Ke.lineDiv.style.textRendering="auto")}Fr.defaults=Hs,Fr.optionHandlers=Ee;function on(D){var B=D.display;je(B.scroller,"mousedown",zo(D,Si)),d&&u<11?je(B.scroller,"dblclick",zo(D,function(br){if(dr(D,br))return;var Cr=_o(D,br);if(!Cr||bs(D,br)||qn(D.display,br))return;Ve(br);var jn=D.findWordAt(Cr);Us(D.doc,jn.anchor,jn.head)})):je(B.scroller,"dblclick",function(br){return dr(D,br)||Ve(br)}),je(B.scroller,"contextmenu",function(br){return ys(D,br)}),je(B.input.getField(),"contextmenu",function(br){B.scroller.contains(br.target)||ys(D,br)});var ne,ae={end:0};function ge(){B.activeTouch&&(ne=setTimeout(function(){return B.activeTouch=null},1e3),ae=B.activeTouch,ae.end=+new Date)}function Ke(br){if(br.touches.length!=1)return!1;var Cr=br.touches[0];return Cr.radiusX<=1&&Cr.radiusY<=1}function It(br,Cr){if(Cr.left==null)return!0;var jn=Cr.left-br.left,ti=Cr.top-br.top;return jn*jn+ti*ti>20*20}je(B.scroller,"touchstart",function(br){if(!dr(D,br)&&!Ke(br)&&!bs(D,br)){B.input.ensurePolled(),clearTimeout(ne);var Cr=+new Date;B.activeTouch={start:Cr,moved:!1,prev:Cr-ae.end<=300?ae:null},br.touches.length==1&&(B.activeTouch.left=br.touches[0].pageX,B.activeTouch.top=br.touches[0].pageY)}}),je(B.scroller,"touchmove",function(){B.activeTouch&&(B.activeTouch.moved=!0)}),je(B.scroller,"touchend",function(br){var Cr=B.activeTouch;if(Cr&&!qn(B,br)&&Cr.left!=null&&!Cr.moved&&new Date-Cr.start<300){var jn=D.coordsChar(B.activeTouch,"page"),ti;!Cr.prev||It(Cr,Cr.prev)?ti=new ce(jn,jn):!Cr.prev.prev||It(Cr,Cr.prev.prev)?ti=D.findWordAt(jn):ti=new ce(ur(jn.line,0),Pt(D.doc,ur(jn.line+1,0))),D.setSelection(ti.anchor,ti.head),D.focus(),Ve(br)}ge()}),je(B.scroller,"touchcancel",ge),je(B.scroller,"scroll",function(){B.scroller.clientHeight&&(Ea(D,B.scroller.scrollTop),Ka(D,B.scroller.scrollLeft,!0),Ht(D,"scroll",D))}),je(B.scroller,"mousewheel",function(br){return hi(D,br)}),je(B.scroller,"DOMMouseScroll",function(br){return hi(D,br)}),je(B.wrapper,"scroll",function(){return B.wrapper.scrollTop=B.wrapper.scrollLeft=0}),B.dragFunctions={enter:function(Cr){dr(D,Cr)||Ze(Cr)},over:function(Cr){dr(D,Cr)||(Su(D,Cr),Ze(Cr))},start:function(Cr){return Sl(D,Cr)},drop:zo(D,Hl),leave:function(Cr){dr(D,Cr)||vu(D)}};var nr=B.input.getField();je(nr,"keyup",function(br){return Tr.call(D,br)}),je(nr,"keydown",zo(D,mt)),je(nr,"keypress",zo(D,wr)),je(nr,"focus",function(br){return Ci(D,br)}),je(nr,"blur",function(br){return mi(D,br)})}var Be=[];Fr.defineInitHook=function(D){return Be.push(D)};function ie(D,B,ne,ae){var ge=D.doc,Ke;ne==null&&(ne="add"),ne=="smart"&&(ge.mode.indent?Ke=ai(D,B).state:ne="prev");var It=D.options.tabSize,nr=Me(ge,B),br=V(nr.text,null,It);nr.stateAfter&&(nr.stateAfter=null);var Cr=nr.text.match(/^\s*/)[0],jn;if(!ae&&!/\S/.test(nr.text))jn=0,ne="not";else if(ne=="smart"&&(jn=ge.mode.indent(Ke,nr.text.slice(Cr.length),nr.text),jn==se||jn>150)){if(!ae)return;ne="prev"}ne=="prev"?B>ge.first?jn=V(Me(ge,B-1).text,null,It):jn=0:ne=="add"?jn=br+D.options.indentUnit:ne=="subtract"?jn=br-D.options.indentUnit:typeof ne=="number"&&(jn=br+ne),jn=Math.max(0,jn);var ti="",Ei=0;if(D.options.indentWithTabs)for(var _i=Math.floor(jn/It);_i;--_i)Ei+=It,ti+=" ";if(Ei<jn&&(ti+=$e(jn-Ei)),ti!=Cr)return jl(ge,ti,ur(B,0),ur(B,Cr.length),"+input"),nr.stateAfter=null,!0;for(var la=0;la<ge.sel.ranges.length;la++){var Ta=ge.sel.ranges[la];if(Ta.head.line==B&&Ta.head.ch<Cr.length){var Wa=ur(B,Cr.length);Xs(ge,la,new ce(Wa,Wa));break}}}var Oe=null;function et(D){Oe=D}function bt(D,B,ne,ae,ge){var Ke=D.doc;D.display.shift=!1,ae||(ae=Ke.sel);var It=+new Date-200,nr=ge=="paste"||D.state.pasteIncoming>It,br=tn(B),Cr=null;if(nr&&ae.ranges.length>1)if(Oe&&Oe.text.join(`
`)==B){if(ae.ranges.length%Oe.text.length==0){Cr=[];for(var jn=0;jn<Oe.text.length;jn++)Cr.push(Ke.splitLines(Oe.text[jn]))}}else br.length==ae.ranges.length&&D.options.pasteLinesPerSelection&&(Cr=ht(br,function(Ma){return[Ma]}));for(var ti=D.curOp.updateInput,Ei=ae.ranges.length-1;Ei>=0;Ei--){var _i=ae.ranges[Ei],la=_i.from(),Ta=_i.to();_i.empty()&&(ne&&ne>0?la=ur(la.line,la.ch-ne):D.state.overwrite&&!nr?Ta=ur(Ta.line,Math.min(Me(Ke,Ta.line).text.length,Ta.ch+Ge(br).length)):nr&&Oe&&Oe.lineWise&&Oe.text.join(`
`)==br.join(`
`)&&(la=Ta=ur(la.line,0)));var Wa={from:la,to:Ta,text:Cr?Cr[Ei%Cr.length]:br,origin:ge||(nr?"paste":D.state.cutIncoming>It?"cut":"+input")};Ls(D.doc,Wa),Ir(D,"inputRead",D,Wa)}B&&!nr&&qt(D,B),Da(D),D.curOp.updateInput<2&&(D.curOp.updateInput=ti),D.curOp.typing=!0,D.state.pasteIncoming=D.state.cutIncoming=-1}function zt(D,B){var ne=D.clipboardData&&D.clipboardData.getData("Text");if(ne)return D.preventDefault(),!B.isReadOnly()&&!B.options.disableInput&&Eo(B,function(){return bt(B,ne,0,null,"paste")}),!0}function qt(D,B){if(!D.options.electricChars||!D.options.smartIndent)return;for(var ne=D.doc.sel,ae=ne.ranges.length-1;ae>=0;ae--){var ge=ne.ranges[ae];if(ge.head.ch>100||ae&&ne.ranges[ae-1].head.line==ge.head.line)continue;var Ke=D.getModeAt(ge.head),It=!1;if(Ke.electricChars){for(var nr=0;nr<Ke.electricChars.length;nr++)if(B.indexOf(Ke.electricChars.charAt(nr))>-1){It=ie(D,ge.head.line,"smart");break}}else Ke.electricInput&&(Ke.electricInput.test(Me(D.doc,ge.head.line).text.slice(0,ge.head.ch))&&(It=ie(D,ge.head.line,"smart")));It&&Ir(D,"electricInput",D,ge.head.line)}}function ar(D){for(var B=[],ne=[],ae=0;ae<D.doc.sel.ranges.length;ae++){var ge=D.doc.sel.ranges[ae].head.line,Ke={anchor:ur(ge,0),head:ur(ge+1,0)};ne.push(Ke),B.push(D.getRange(Ke.anchor,Ke.head))}return{text:B,ranges:ne}}function Kr(D,B,ne,ae){D.setAttribute("autocorrect",ne?"":"off"),D.setAttribute("autocapitalize",ae?"":"off"),D.setAttribute("spellcheck",!!B)}function cn(){var D=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),B=I("div",[D],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?D.style.width="1000px":D.setAttribute("wrap","off"),o&&(D.style.border="1px solid black"),Kr(D),B}function Hr(D){var B=D.optionHandlers,ne=D.helpers={};D.prototype={constructor:D,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ge,Ke){var It=this.options,nr=It[ge];if(It[ge]==Ke&&ge!="mode")return;It[ge]=Ke,B.hasOwnProperty(ge)&&zo(this,B[ge])(this,Ke,nr),Ht(this,"optionChange",this,ge)},getOption:function(ge){return this.options[ge]},getDoc:function(){return this.doc},addKeyMap:function(ge,Ke){this.state.keyMaps[Ke?"push":"unshift"](hl(ge))},removeKeyMap:function(ge){for(var Ke=this.state.keyMaps,It=0;It<Ke.length;++It)if(Ke[It]==ge||Ke[It].name==ge)return Ke.splice(It,1),!0},addOverlay:Fs(function(ae,ge){var Ke=ae.token?ae:D.getMode(this.options,ae);if(Ke.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:Ke,modeSpec:ae,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(It){return It.priority}),this.state.modeGen++,Ha(this)}),removeOverlay:Fs(function(ae){for(var ge=this.state.overlays,Ke=0;Ke<ge.length;++Ke){var It=ge[Ke].modeSpec;if(It==ae||typeof ae=="string"&&It.name==ae){ge.splice(Ke,1),this.state.modeGen++,Ha(this);return}}}),indentLine:Fs(function(ae,ge,Ke){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),Yn(this.doc,ae)&&ie(this,ae,ge,Ke)}),indentSelection:Fs(function(ae){for(var ge=this.doc.sel.ranges,Ke=-1,It=0;It<ge.length;It++){var nr=ge[It];if(nr.empty())nr.head.line>Ke&&(ie(this,nr.head.line,ae,!0),Ke=nr.head.line,It==this.doc.sel.primIndex&&Da(this));else{var br=nr.from(),Cr=nr.to(),jn=Math.max(Ke,br.line);Ke=Math.min(this.lastLine(),Cr.line-(Cr.ch?0:1))+1;for(var ti=jn;ti<Ke;++ti)ie(this,ti,ae);var Ei=this.doc.sel.ranges;br.ch==0&&ge.length==Ei.length&&Ei[It].from().ch>0&&Xs(this.doc,It,new ce(br,Ei[It].to()),ye)}}}),getTokenAt:function(ge,Ke){return Qi(this,ge,Ke)},getLineTokens:function(ge,Ke){return Qi(this,ur(ge),Ke,!0)},getTokenTypeAt:function(ge){ge=Pt(this.doc,ge);var Ke=wn(this,Me(this.doc,ge.line)),It=0,nr=(Ke.length-1)/2,br=ge.ch,Cr;if(br==0)Cr=Ke[2];else for(;;){var jn=It+nr>>1;if((jn?Ke[jn*2-1]:0)>=br)nr=jn;else if(Ke[jn*2+1]<br)It=jn+1;else{Cr=Ke[jn*2+2];break}}var ti=Cr?Cr.indexOf("overlay "):-1;return ti<0?Cr:ti==0?null:Cr.slice(0,ti-1)},getModeAt:function(ge){var Ke=this.doc.mode;return Ke.innerMode?D.innerMode(Ke,this.getTokenAt(ge).state).mode:Ke},getHelper:function(ge,Ke){return this.getHelpers(ge,Ke)[0]},getHelpers:function(ge,Ke){var It=[];if(!ne.hasOwnProperty(Ke))return It;var nr=ne[Ke],br=this.getModeAt(ge);if(typeof br[Ke]=="string")nr[br[Ke]]&&It.push(nr[br[Ke]]);else if(br[Ke])for(var Cr=0;Cr<br[Ke].length;Cr++){var jn=nr[br[Ke][Cr]];jn&&It.push(jn)}else br.helperType&&nr[br.helperType]?It.push(nr[br.helperType]):nr[br.name]&&It.push(nr[br.name]);for(var ti=0;ti<nr._global.length;ti++){var Ei=nr._global[ti];Ei.pred(br,this)&&G(It,Ei.val)==-1&&It.push(Ei.val)}return It},getStateAfter:function(ge,Ke){var It=this.doc;return ge=ir(It,ge==null?It.first+It.size-1:ge),ai(this,ge+1,Ke).state},cursorCoords:function(ge,Ke){var It,nr=this.doc.sel.primary();return ge==null?It=nr.head:typeof ge=="object"?It=Pt(this.doc,ge):It=ge?nr.from():nr.to(),mo(this,It,Ke||"page")},charCoords:function(ge,Ke){return Qo(this,Pt(this.doc,ge),Ke||"page")},coordsChar:function(ge,Ke){return ge=oo(this,ge,Ke||"page"),So(this,ge.left,ge.top)},lineAtHeight:function(ge,Ke){return ge=oo(this,{top:ge,left:0},Ke||"page").top,mn(this.doc,ge+this.display.viewOffset)},heightAtLine:function(ge,Ke,It){var nr=!1,br;if(typeof ge=="number"){var Cr=this.doc.first+this.doc.size-1;ge<this.doc.first?ge=this.doc.first:ge>Cr&&(ge=Cr,nr=!0),br=Me(this.doc,ge)}else br=ge;return io(this,br,{top:0,left:0},Ke||"page",It||nr).top+(nr?this.doc.height-Rr(br):0)},defaultTextHeight:function(){return Oo(this.display)},defaultCharWidth:function(){return Io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ge,Ke,It,nr,br){var Cr=this.display;ge=mo(this,Pt(this.doc,ge));var jn=ge.bottom,ti=ge.left;if(Ke.style.position="absolute",Ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ke),Cr.sizer.appendChild(Ke),nr=="over")jn=ge.top;else if(nr=="above"||nr=="near"){var Ei=Math.max(Cr.wrapper.clientHeight,this.doc.height),_i=Math.max(Cr.sizer.clientWidth,Cr.lineSpace.clientWidth);(nr=="above"||ge.bottom+Ke.offsetHeight>Ei)&&ge.top>Ke.offsetHeight?jn=ge.top-Ke.offsetHeight:ge.bottom+Ke.offsetHeight<=Ei&&(jn=ge.bottom),ti+Ke.offsetWidth>_i&&(ti=_i-Ke.offsetWidth)}Ke.style.top=jn+"px",Ke.style.left=Ke.style.right="",br=="right"?(ti=Cr.sizer.clientWidth-Ke.offsetWidth,Ke.style.right="0px"):(br=="left"?ti=0:br=="middle"&&(ti=(Cr.sizer.clientWidth-Ke.offsetWidth)/2),Ke.style.left=ti+"px"),It&&Ya(this,{left:ti,top:jn,right:ti+Ke.offsetWidth,bottom:jn+Ke.offsetHeight})},triggerOnKeyDown:Fs(mt),triggerOnKeyPress:Fs(wr),triggerOnKeyUp:Tr,triggerOnMouseDown:Fs(Si),execCommand:function(ge){if(iu.hasOwnProperty(ge))return iu[ge].call(null,this)},triggerElectric:Fs(function(ae){qt(this,ae)}),findPosH:function(ge,Ke,It,nr){var br=1;Ke<0&&(br=-1,Ke=-Ke);for(var Cr=Pt(this.doc,ge),jn=0;jn<Ke&&!(Cr=Ur(this.doc,Cr,br,It,nr),Cr.hitSide);++jn);return Cr},moveH:Fs(function(ae,ge){var Ke=this;this.extendSelectionsBy(function(It){return Ke.display.shift||Ke.doc.extend||It.empty()?Ur(Ke.doc,It.head,ae,ge,Ke.options.rtlMoveVisually):ae<0?It.from():It.to()},ke)}),deleteH:Fs(function(ae,ge){var Ke=this.doc.sel,It=this.doc;Ke.somethingSelected()?It.replaceSelection("",null,"+delete"):Dl(this,function(nr){var br=Ur(It,nr.head,ae,ge,!1);return ae<0?{from:br,to:nr.head}:{from:nr.head,to:br}})}),findPosV:function(ge,Ke,It,nr){var br=1,Cr=nr;Ke<0&&(br=-1,Ke=-Ke);for(var jn=Pt(this.doc,ge),ti=0;ti<Ke;++ti){var Ei=mo(this,jn,"div");if(Cr==null?Cr=Ei.left:Ei.left=Cr,jn=sn(this,Ei,br,It),jn.hitSide)break}return jn},moveV:Fs(function(ae,ge){var Ke=this,It=this.doc,nr=[],br=!this.display.shift&&!It.extend&&It.sel.somethingSelected();if(It.extendSelectionsBy(function(jn){if(br)return ae<0?jn.from():jn.to();var ti=mo(Ke,jn.head,"div");jn.goalColumn!=null&&(ti.left=jn.goalColumn),nr.push(ti.left);var Ei=sn(Ke,ti,ae,ge);return ge=="page"&&jn==It.sel.primary()&&wa(Ke,Qo(Ke,Ei,"div").top-ti.top),Ei},ke),nr.length)for(var Cr=0;Cr<It.sel.ranges.length;Cr++)It.sel.ranges[Cr].goalColumn=nr[Cr]}),findWordAt:function(ge){var Ke=this.doc,It=Me(Ke,ge.line).text,nr=ge.ch,br=ge.ch;if(It){var Cr=this.getHelper(ge,"wordChars");(ge.sticky=="before"||br==It.length)&&nr?--nr:++br;for(var jn=It.charAt(nr),ti=Y(jn,Cr)?function(Ei){return Y(Ei,Cr)}:/\s/.test(jn)?function(Ei){return/\s/.test(Ei)}:function(Ei){return!/\s/.test(Ei)&&!Y(Ei)};nr>0&&ti(It.charAt(nr-1));)--nr;for(;br<It.length&&ti(It.charAt(br));)++br}return new ce(ur(ge.line,nr),ur(ge.line,br))},toggleOverwrite:function(ge){if(ge!=null&&ge==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),Ht(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==P()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fs(function(ae,ge){ja(this,ae,ge)}),getScrollInfo:function(){var ge=this.display.scroller;return{left:ge.scrollLeft,top:ge.scrollTop,height:ge.scrollHeight-wi(this)-this.display.barHeight,width:ge.scrollWidth-wi(this)-this.display.barWidth,clientHeight:zi(this),clientWidth:Oi(this)}},scrollIntoView:Fs(function(ae,ge){ae==null?(ae={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof ae=="number"?ae={from:ur(ae,0),to:null}:ae.from==null&&(ae={from:ae,to:null}),ae.to||(ae.to=ae.from),ae.margin=ge||0,ae.from.line!=null?ko(this,ae):pa(this,ae.from,ae.to,ae.margin)}),setSize:Fs(function(ae,ge){var Ke=this,It=function(Cr){return typeof Cr=="number"||/^\d+$/.test(String(Cr))?Cr+"px":Cr};ae!=null&&(this.display.wrapper.style.width=It(ae)),ge!=null&&(this.display.wrapper.style.height=It(ge)),this.options.lineWrapping&&Aa(this);var nr=this.display.viewFrom;this.doc.iter(nr,this.display.viewTo,function(br){if(br.widgets){for(var Cr=0;Cr<br.widgets.length;Cr++)if(br.widgets[Cr].noHScroll){vt(Ke,nr,"widget");break}}++nr}),this.curOp.forceUpdate=!0,Ht(this,"refresh",this)}),operation:function(ge){return Eo(this,ge)},startOperation:function(){return as(this)},endOperation:function(){return co(this)},refresh:Fs(function(){var ae=this.display.cachedTextHeight;Ha(this),this.curOp.forceUpdate=!0,Xa(this),ja(this,this.doc.scrollLeft,this.doc.scrollTop),xs(this.display),(ae==null||Math.abs(ae-Oo(this.display))>.5||this.options.lineWrapping)&&Ho(this),Ht(this,"refresh",this)}),swapDoc:Fs(function(ae){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,ae),Xa(this),this.display.input.reset(),ja(this,ae.scrollLeft,ae.scrollTop),this.curOp.forceScroll=!0,Ir(this,"swapDoc",this,ge),ge}),phrase:function(ge){var Ke=this.options.phrases;return Ke&&Object.prototype.hasOwnProperty.call(Ke,ge)?Ke[ge]:ge},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}},Gt(D),D.registerHelper=function(ae,ge,Ke){ne.hasOwnProperty(ae)||(ne[ae]=D[ae]={_global:[]}),ne[ae][ge]=Ke},D.registerGlobalHelper=function(ae,ge,Ke,It){D.registerHelper(ae,ge,It),ne[ae]._global.push({pred:Ke,val:It})}}function Ur(D,B,ne,ae,ge){var Ke=B,It=ne,nr=Me(D,B.line),br=ge&&D.direction=="rtl"?-ne:ne;function Cr(){var Na=B.line+br;return Na<D.first||Na>=D.first+D.size?!1:(B=new ur(Na,B.ch,B.sticky),nr=Me(D,Na))}function jn(Na){var qa;if(ae=="codepoint"){var ho=nr.text.charCodeAt(B.ch+(ae>0?0:-1));isNaN(ho)?qa=null:qa=new ur(B.line,Math.max(0,Math.min(nr.text.length,B.ch+ne*(ho>=55296&&ho<56320?2:1))),-ne)}else ge?qa=fu(D.cm,nr,B,ne):qa=Nu(nr,B,ne);if(qa==null)if(!Na&&Cr())B=hu(ge,D.cm,nr,B.line,br);else return!1;else B=qa;return!0}if(ae=="char"||ae=="codepoint")jn();else if(ae=="column")jn(!0);else if(ae=="word"||ae=="group")for(var ti=null,Ei=ae=="group",_i=D.cm&&D.cm.getHelper(B,"wordChars"),la=!0;!(ne<0&&!jn(!la));la=!1){var Ta=nr.text.charAt(B.ch)||`
`,Wa=Y(Ta,_i)?"w":Ei&&Ta==`
`?"n":!Ei||/\s/.test(Ta)?null:"p";if(Ei&&!la&&!Wa&&(Wa="s"),ti&&ti!=Wa){ne<0&&(ne=1,jn(),B.sticky="after");break}if(Wa&&(ti=Wa),ne>0&&!jn(!la))break}var Ma=qo(D,B,Ke,It,!0);return Ct(Ke,Ma)&&(Ma.hitSide=!0),Ma}function sn(D,B,ne,ae){var ge=D.doc,Ke=B.left,It;if(ae=="page"){var nr=Math.min(D.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),br=Math.max(nr-.5*Oo(D.display),3);It=(ne>0?B.bottom:B.top)+ne*br}else ae=="line"&&(It=ne>0?B.bottom+3:B.top-3);for(var Cr;!(Cr=So(D,Ke,It),!Cr.outside);){if(ne<0?It<=0:It>=ge.height){Cr.hitSide=!0;break}It+=ne*5}return Cr}var gn=function(B){this.cm=B,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};gn.prototype.init=function(D){var B=this,ne=this,ae=ne.cm,ge=ne.div=D.lineDiv;Kr(ge,ae.options.spellcheck,ae.options.autocorrect,ae.options.autocapitalize);function Ke(nr){for(var br=nr.target;br;br=br.parentNode){if(br==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(br.className))break}return!1}je(ge,"paste",function(nr){if(!Ke(nr)||dr(ae,nr)||zt(nr,ae))return;u<=11&&setTimeout(zo(ae,function(){return B.updateFromDOM()}),20)}),je(ge,"compositionstart",function(nr){B.composing={data:nr.data,done:!1}}),je(ge,"compositionupdate",function(nr){B.composing||(B.composing={data:nr.data,done:!1})}),je(ge,"compositionend",function(nr){B.composing&&(nr.data!=B.composing.data&&B.readFromDOMSoon(),B.composing.done=!0)}),je(ge,"touchstart",function(){return ne.forceCompositionEnd()}),je(ge,"input",function(){B.composing||B.readFromDOMSoon()});function It(nr){if(!Ke(nr)||dr(ae,nr))return;if(ae.somethingSelected())et({lineWise:!1,text:ae.getSelections()}),nr.type=="cut"&&ae.replaceSelection("",null,"cut");else if(ae.options.lineWiseCopyCut){var br=ar(ae);et({lineWise:!0,text:br.text}),nr.type=="cut"&&ae.operation(function(){ae.setSelections(br.ranges,0,ye),ae.replaceSelection("",null,"cut")})}else return;if(nr.clipboardData){nr.clipboardData.clearData();var Cr=Oe.text.join(`
`);if(nr.clipboardData.setData("Text",Cr),nr.clipboardData.getData("Text")==Cr){nr.preventDefault();return}}var jn=cn(),ti=jn.firstChild;ae.display.lineSpace.insertBefore(jn,ae.display.lineSpace.firstChild),ti.value=Oe.text.join(`
`);var Ei=document.activeElement;j(ti),setTimeout(function(){ae.display.lineSpace.removeChild(jn),Ei.focus(),Ei==ge&&ne.showPrimarySelection()},50)}je(ge,"copy",It),je(ge,"cut",It)},gn.prototype.screenReaderLabelChanged=function(D){D?this.div.setAttribute("aria-label",D):this.div.removeAttribute("aria-label")},gn.prototype.prepareSelection=function(){var D=zr(this.cm,!1);return D.focus=document.activeElement==this.div,D},gn.prototype.showSelection=function(D,B){if(!D||!this.cm.display.view.length)return;(D.focus||B)&&this.showPrimarySelection(),this.showMultipleSelections(D)},gn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gn.prototype.showPrimarySelection=function(){var D=this.getSelection(),B=this.cm,ne=B.doc.sel.primary(),ae=ne.from(),ge=ne.to();if(B.display.viewTo==B.display.viewFrom||ae.line>=B.display.viewTo||ge.line<B.display.viewFrom){D.removeAllRanges();return}var Ke=$i(B,D.anchorNode,D.anchorOffset),It=$i(B,D.focusNode,D.focusOffset);if(Ke&&!Ke.bad&&It&&!It.bad&&Tt(Ft(Ke,It),ae)==0&&Tt(er(Ke,It),ge)==0)return;var nr=B.display.view,br=ae.line>=B.display.viewFrom&&zn(B,ae)||{node:nr[0].measure.map[2],offset:0},Cr=ge.line<B.display.viewTo&&zn(B,ge);if(!Cr){var jn=nr[nr.length-1].measure,ti=jn.maps?jn.maps[jn.maps.length-1]:jn.map;Cr={node:ti[ti.length-1],offset:ti[ti.length-2]-ti[ti.length-3]}}if(!br||!Cr){D.removeAllRanges();return}var Ei=D.rangeCount&&D.getRangeAt(0),_i;try{_i=M(br.node,br.offset,Cr.offset,Cr.node)}catch(la){}_i&&(!x&&B.state.focused?(D.collapse(br.node,br.offset),_i.collapsed||(D.removeAllRanges(),D.addRange(_i))):(D.removeAllRanges(),D.addRange(_i)),Ei&&D.anchorNode==null?D.addRange(Ei):x&&this.startGracePeriod()),this.rememberSelection()},gn.prototype.startGracePeriod=function(){var D=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){D.gracePeriod=!1,D.selectionChanged()&&D.cm.operation(function(){return D.cm.curOp.selectionChanged=!0})},20)},gn.prototype.showMultipleSelections=function(D){O(this.cm.display.cursorDiv,D.cursors),O(this.cm.display.selectionDiv,D.selection)},gn.prototype.rememberSelection=function(){var D=this.getSelection();this.lastAnchorNode=D.anchorNode,this.lastAnchorOffset=D.anchorOffset,this.lastFocusNode=D.focusNode,this.lastFocusOffset=D.focusOffset},gn.prototype.selectionInEditor=function(){var D=this.getSelection();if(!D.rangeCount)return!1;var B=D.getRangeAt(0).commonAncestorContainer;return U(this.div,B)},gn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},gn.prototype.blur=function(){this.div.blur()},gn.prototype.getField=function(){return this.div},gn.prototype.supportsTouch=function(){return!0},gn.prototype.receivedFocus=function(){var D=this;this.selectionInEditor()?this.pollSelection():Eo(this.cm,function(){return D.cm.curOp.selectionChanged=!0});function B(){D.cm.state.focused&&(D.pollSelection(),D.polling.set(D.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},gn.prototype.selectionChanged=function(){var D=this.getSelection();return D.anchorNode!=this.lastAnchorNode||D.anchorOffset!=this.lastAnchorOffset||D.focusNode!=this.lastFocusNode||D.focusOffset!=this.lastFocusOffset},gn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var D=this.getSelection(),B=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&Li(D.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var ne=$i(B,D.anchorNode,D.anchorOffset),ae=$i(B,D.focusNode,D.focusOffset);ne&&ae&&Eo(B,function(){Ts(B.doc,Ie(ne,ae),ye),(ne.bad||ae.bad)&&(B.curOp.selectionChanged=!0)})},gn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var D=this.cm,B=D.display,ne=D.doc.sel.primary(),ae=ne.from(),ge=ne.to();if(ae.ch==0&&ae.line>D.firstLine()&&(ae=ur(ae.line-1,Me(D.doc,ae.line-1).length)),ge.ch==Me(D.doc,ge.line).text.length&&ge.line<D.lastLine()&&(ge=ur(ge.line+1,0)),ae.line<B.viewFrom||ge.line>B.viewTo-1)return!1;var Ke,It,nr;ae.line==B.viewFrom||(Ke=uo(D,ae.line))==0?(It=Nr(B.view[0].line),nr=B.view[0].node):(It=Nr(B.view[Ke].line),nr=B.view[Ke-1].node.nextSibling);var br=uo(D,ge.line),Cr,jn;if(br==B.view.length-1?(Cr=B.viewTo-1,jn=B.lineDiv.lastChild):(Cr=Nr(B.view[br+1].line)-1,jn=B.view[br+1].node.previousSibling),!nr)return!1;for(var ti=D.doc.splitLines(da(D,nr,jn,It,Cr)),Ei=nt(D.doc,ur(It,0),ur(Cr,Me(D.doc,Cr).text.length));ti.length>1&&Ei.length>1;)if(Ge(ti)==Ge(Ei))ti.pop(),Ei.pop(),Cr--;else if(ti[0]==Ei[0])ti.shift(),Ei.shift(),It++;else break;for(var _i=0,la=0,Ta=ti[0],Wa=Ei[0],Ma=Math.min(Ta.length,Wa.length);_i<Ma&&Ta.charCodeAt(_i)==Wa.charCodeAt(_i);)++_i;for(var Na=Ge(ti),qa=Ge(Ei),ho=Math.min(Na.length-(ti.length==1?_i:0),qa.length-(Ei.length==1?_i:0));la<ho&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)++la;if(ti.length==1&&Ei.length==1&&It==ae.line)for(;_i&&_i>ae.ch&&Na.charCodeAt(Na.length-la-1)==qa.charCodeAt(qa.length-la-1);)_i--,la++;ti[ti.length-1]=Na.slice(0,Na.length-la).replace(/^\u200b+/,""),ti[0]=ti[0].slice(_i).replace(/\u200b+$/,"");var ns=ur(It,_i),Mo=ur(Cr,Ei.length?Ge(Ei).length-la:0);if(ti.length>1||ti[0]||Tt(ns,Mo))return jl(D.doc,ti,ns,Mo,"+input"),!0},gn.prototype.ensurePolled=function(){this.forceCompositionEnd()},gn.prototype.reset=function(){this.forceCompositionEnd()},gn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},gn.prototype.readFromDOMSoon=function(){var D=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(D.readDOMTimeout=null,D.composing)if(D.composing.done)D.composing=null;else return;D.updateFromDOM()},80)},gn.prototype.updateFromDOM=function(){var D=this;(this.cm.isReadOnly()||!this.pollContent())&&Eo(this.cm,function(){return Ha(D.cm)})},gn.prototype.setUneditable=function(D){D.contentEditable="false"},gn.prototype.onKeyPress=function(D){if(D.charCode==0||this.composing)return;D.preventDefault(),this.cm.isReadOnly()||zo(this.cm,bt)(this.cm,String.fromCharCode(D.charCode==null?D.keyCode:D.charCode),0)},gn.prototype.readOnlyChanged=function(D){this.div.contentEditable=String(D!="nocursor")},gn.prototype.onContextMenu=function(){},gn.prototype.resetPosition=function(){},gn.prototype.needsContentAttribute=!0;function zn(D,B){var ne=Ji(D,B.line);if(!ne||ne.hidden)return null;var ae=Me(D.doc,B.line),ge=Gi(ne,ae,B.line),Ke=gt(ae,D.doc.direction),It="left";if(Ke){var nr=_e(Ke,B.ch);It=nr%2?"right":"left"}var br=Pa(ge.map,B.ch,It);return br.offset=br.collapse=="right"?br.end:br.start,br}function Li(D){for(var B=D;B;B=B.parentNode)if(/CodeMirror-gutter-wrapper/.test(B.className))return!0;return!1}function ki(D,B){return B&&(D.bad=!0),D}function da(D,B,ne,ae,ge){var Ke="",It=!1,nr=D.doc.lineSeparator(),br=!1;function Cr(_i){return function(la){return la.id==_i}}function jn(){It&&(Ke+=nr,br&&(Ke+=nr),It=br=!1)}function ti(_i){_i&&(jn(),Ke+=_i)}function Ei(_i){if(_i.nodeType==1){var la=_i.getAttribute("cm-text");if(la){ti(la);return}var Ta=_i.getAttribute("cm-marker"),Wa;if(Ta){var Ma=D.findMarks(ur(ae,0),ur(ge+1,0),Cr(+Ta));Ma.length&&(Wa=Ma[0].find(0))&&ti(nt(D.doc,Wa.from,Wa.to).join(nr));return}if(_i.getAttribute("contenteditable")=="false")return;var Na=/^(pre|div|p|li|table|br)$/i.test(_i.nodeName);if(!/^br$/i.test(_i.nodeName)&&_i.textContent.length==0)return;Na&&jn();for(var qa=0;qa<_i.childNodes.length;qa++)Ei(_i.childNodes[qa]);/^(pre|p)$/i.test(_i.nodeName)&&(br=!0),Na&&(It=!0)}else _i.nodeType==3&&ti(_i.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Ei(B),B==ne);)B=B.nextSibling,br=!1;return Ke}function $i(D,B,ne){var ae;if(B==D.display.lineDiv){if(ae=D.display.lineDiv.childNodes[ne],!ae)return ki(D.clipPos(ur(D.display.viewTo-1)),!0);B=null,ne=0}else for(ae=B;;ae=ae.parentNode){if(!ae||ae==D.display.lineDiv)return null;if(ae.parentNode&&ae.parentNode==D.display.lineDiv)break}for(var ge=0;ge<D.display.view.length;ge++){var Ke=D.display.view[ge];if(Ke.node==ae)return Qa(Ke,B,ne)}}function Qa(D,B,ne){var ae=D.text.firstChild,ge=!1;if(!B||!U(ae,B))return ki(ur(Nr(D.line),0),!0);if(B==ae&&(ge=!0,B=ae.childNodes[ne],ne=0,!B)){var Ke=D.rest?Ge(D.rest):D.line;return ki(ur(Nr(Ke),Ke.text.length),ge)}var It=B.nodeType==3?B:null,nr=B;for(!It&&B.childNodes.length==1&&B.firstChild.nodeType==3&&(It=B.firstChild,ne&&(ne=It.nodeValue.length));nr.parentNode!=ae;)nr=nr.parentNode;var br=D.measure,Cr=br.maps;function jn(Wa,Ma,Na){for(var qa=-1;qa<(Cr?Cr.length:0);qa++)for(var ho=qa<0?br.map:Cr[qa],ns=0;ns<ho.length;ns+=3){var Mo=ho[ns+2];if(Mo==Wa||Mo==Ma){var Ss=Nr(qa<0?D.line:D.rest[qa]),Zs=ho[ns]+Na;return(Na<0||Mo!=Wa)&&(Zs=ho[ns+(Na?1:0)]),ur(Ss,Zs)}}}var ti=jn(It,nr,ne);if(ti)return ki(ti,ge);for(var Ei=nr.nextSibling,_i=It?It.nodeValue.length-ne:0;Ei;Ei=Ei.nextSibling){if(ti=jn(Ei,Ei.firstChild,0),ti)return ki(ur(ti.line,ti.ch-_i),ge);_i+=Ei.textContent.length}for(var la=nr.previousSibling,Ta=ne;la;la=la.previousSibling){if(ti=jn(la,la.firstChild,-1),ti)return ki(ur(ti.line,ti.ch+Ta),ge);Ta+=la.textContent.length}}var ya=function(B){this.cm=B,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};ya.prototype.init=function(D){var B=this,ne=this,ae=this.cm;this.createField(D);var ge=this.textarea;D.wrapper.insertBefore(this.wrapper,D.wrapper.firstChild),o&&(ge.style.width="0px"),je(ge,"input",function(){d&&u>=9&&B.hasSelection&&(B.hasSelection=null),ne.poll()}),je(ge,"paste",function(It){if(dr(ae,It)||zt(It,ae))return;ae.state.pasteIncoming=+new Date,ne.fastPoll()});function Ke(It){if(dr(ae,It))return;if(ae.somethingSelected())et({lineWise:!1,text:ae.getSelections()});else if(ae.options.lineWiseCopyCut){var nr=ar(ae);et({lineWise:!0,text:nr.text}),It.type=="cut"?ae.setSelections(nr.ranges,null,ye):(ne.prevInput="",ge.value=nr.text.join(`
`),j(ge))}else return;It.type=="cut"&&(ae.state.cutIncoming=+new Date)}je(ge,"cut",Ke),je(ge,"copy",Ke),je(D.scroller,"paste",function(It){if(qn(D,It)||dr(ae,It))return;if(!ge.dispatchEvent){ae.state.pasteIncoming=+new Date,ne.focus();return}var nr=new Event("paste");nr.clipboardData=It.clipboardData,ge.dispatchEvent(nr)}),je(D.lineSpace,"selectstart",function(It){qn(D,It)||Ve(It)}),je(ge,"compositionstart",function(){var It=ae.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:It,range:ae.markText(It,ae.getCursor("to"),{className:"CodeMirror-composing"})}}),je(ge,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},ya.prototype.createField=function(D){this.wrapper=cn(),this.textarea=this.wrapper.firstChild},ya.prototype.screenReaderLabelChanged=function(D){D?this.textarea.setAttribute("aria-label",D):this.textarea.removeAttribute("aria-label")},ya.prototype.prepareSelection=function(){var D=this.cm,B=D.display,ne=D.doc,ae=zr(D);if(D.options.moveInputWithCursor){var ge=mo(D,ne.sel.primary().head,"div"),Ke=B.wrapper.getBoundingClientRect(),It=B.lineDiv.getBoundingClientRect();ae.teTop=Math.max(0,Math.min(B.wrapper.clientHeight-10,ge.top+It.top-Ke.top)),ae.teLeft=Math.max(0,Math.min(B.wrapper.clientWidth-10,ge.left+It.left-Ke.left))}return ae},ya.prototype.showSelection=function(D){var B=this.cm,ne=B.display;O(ne.cursorDiv,D.cursors),O(ne.selectionDiv,D.selection),D.teTop!=null&&(this.wrapper.style.top=D.teTop+"px",this.wrapper.style.left=D.teLeft+"px")},ya.prototype.reset=function(D){if(this.contextMenuPending||this.composing)return;var B=this.cm;if(B.somethingSelected()){this.prevInput="";var ne=B.getSelection();this.textarea.value=ne,B.state.focused&&j(this.textarea),d&&u>=9&&(this.hasSelection=ne)}else D||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))},ya.prototype.getField=function(){return this.textarea},ya.prototype.supportsTouch=function(){return!1},ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||P()!=this.textarea))try{this.textarea.focus()}catch(D){}},ya.prototype.blur=function(){this.textarea.blur()},ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ya.prototype.receivedFocus=function(){this.slowPoll()},ya.prototype.slowPoll=function(){var D=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){D.poll(),D.cm.state.focused&&D.slowPoll()})},ya.prototype.fastPoll=function(){var D=!1,B=this;B.pollingFast=!0;function ne(){var ae=B.poll();!ae&&!D?(D=!0,B.polling.set(60,ne)):(B.pollingFast=!1,B.slowPoll())}B.polling.set(20,ne)},ya.prototype.poll=function(){var D=this,B=this.cm,ne=this.textarea,ae=this.prevInput;if(this.contextMenuPending||!B.state.focused||kt(ne)&&!ae&&!this.composing||B.isReadOnly()||B.options.disableInput||B.state.keySeq)return!1;var ge=ne.value;if(ge==ae&&!B.somethingSelected())return!1;if(d&&u>=9&&this.hasSelection===ge||g&&/[\uf700-\uf7ff]/.test(ge))return B.display.input.reset(),!1;if(B.doc.sel==B.display.selForContextMenu){var Ke=ge.charCodeAt(0);if(Ke==8203&&!ae&&(ae="\u200B"),Ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var It=0,nr=Math.min(ae.length,ge.length);It<nr&&ae.charCodeAt(It)==ge.charCodeAt(It);)++It;return Eo(B,function(){bt(B,ge.slice(It),ae.length-It,null,D.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
`)>-1?ne.value=D.prevInput="":D.prevInput=ge,D.composing&&(D.composing.range.clear(),D.composing.range=B.markText(D.composing.start,B.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ya.prototype.onKeyPress=function(){d&&u>=9&&(this.hasSelection=null),this.fastPoll()},ya.prototype.onContextMenu=function(D){var B=this,ne=B.cm,ae=ne.display,ge=B.textarea;B.contextMenuPending&&B.contextMenuPending();var Ke=_o(ne,D),It=ae.scroller.scrollTop;if(!Ke||s)return;var nr=ne.options.resetSelectionOnContextMenu;nr&&ne.doc.sel.contains(Ke)==-1&&zo(ne,Ts)(ne.doc,Ie(Ke),ye);var br=ge.style.cssText,Cr=B.wrapper.style.cssText,jn=B.wrapper.offsetParent.getBoundingClientRect();B.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(D.clientY-jn.top-5)+"px; left: "+(D.clientX-jn.left-5)+`px;
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ti;a&&(ti=window.scrollY),ae.input.focus(),a&&window.scrollTo(null,ti),ae.input.reset(),ne.somethingSelected()||(ge.value=B.prevInput=" "),B.contextMenuPending=_i,ae.selForContextMenu=ne.doc.sel,clearTimeout(ae.detectingSelectAll);function Ei(){if(ge.selectionStart!=null){var Ta=ne.somethingSelected(),Wa="\u200B"+(Ta?ge.value:"");ge.value="\u21DA",ge.value=Wa,B.prevInput=Ta?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=Wa.length,ae.selForContextMenu=ne.doc.sel}}function _i(){if(B.contextMenuPending!=_i)return;if(B.contextMenuPending=!1,B.wrapper.style.cssText=Cr,ge.style.cssText=br,d&&u<9&&ae.scrollbars.setScrollTop(ae.scroller.scrollTop=It),ge.selectionStart!=null){(!d||d&&u<9)&&Ei();var Ta=0,Wa=function Ma(){ae.selForContextMenu==ne.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&B.prevInput=="\u200B"?zo(ne,Is)(ne):Ta++<10?ae.detectingSelectAll=setTimeout(Ma,500):(ae.selForContextMenu=null,ae.input.reset())};ae.detectingSelectAll=setTimeout(Wa,200)}}if(d&&u>=9&&Ei(),C){Ze(D);var la=function Ta(){ut(window,"mouseup",Ta),setTimeout(_i,20)};je(window,"mouseup",la)}else setTimeout(_i,50)},ya.prototype.readOnlyChanged=function(D){D||this.reset(),this.textarea.disabled=D=="nocursor",this.textarea.readOnly=!!D},ya.prototype.setUneditable=function(){},ya.prototype.needsContentAttribute=!1;function fo(D,B){if(B=B?z(B):{},B.value=D.value,!B.tabindex&&D.tabIndex&&(B.tabindex=D.tabIndex),!B.placeholder&&D.placeholder&&(B.placeholder=D.placeholder),B.autofocus==null){var ne=P();B.autofocus=ne==D||D.getAttribute("autofocus")!=null&&ne==document.body}function ae(){D.value=nr.getValue()}var ge;if(D.form&&(je(D.form,"submit",ae),!B.leaveSubmitMethodAlone)){var Ke=D.form;ge=Ke.submit;try{var It=Ke.submit=function(){ae(),Ke.submit=ge,Ke.submit(),Ke.submit=It}}catch(br){}}B.finishInit=function(br){br.save=ae,br.getTextArea=function(){return D},br.toTextArea=function(){br.toTextArea=isNaN,ae(),D.parentNode.removeChild(br.getWrapperElement()),D.style.display="",D.form&&(ut(D.form,"submit",ae),!B.leaveSubmitMethodAlone&&typeof D.form.submit=="function"&&(D.form.submit=ge))}},D.style.display="none";var nr=Fr(function(br){return D.parentNode.insertBefore(br,D.nextSibling)},B);return nr}function za(D){D.off=ut,D.on=je,D.wheelEventPixels=In,D.Doc=Cl,D.splitLines=tn,D.countColumn=V,D.findColumn=Pe,D.isWordChar=J,D.Pass=se,D.signal=Ht,D.Line=di,D.changeEnd=Je,D.scrollbarModel=cs,D.Pos=ur,D.cmpPos=Tt,D.modes=it,D.mimeModes=Or,D.resolveMode=Bn,D.getMode=vi,D.modeExtensions=Ln,D.extendMode=Mn,D.copyState=Xt,D.startState=De,D.innerMode=wt,D.commands=iu,D.keyMap=Jl,D.keyName=bu,D.isModifierKey=yu,D.lookupKey=Zl,D.normalizeKeyMap=Ru,D.StringStream=Re,D.SharedTextMarker=tu,D.TextMarker=Nl,D.LineWidget=xl,D.e_preventDefault=Ve,D.e_stopPropagation=me,D.e_stop=Ze,D.addClass=X,D.contains=U,D.rmClass=T,D.keyNames=zl}Qe(Fr),Hr(Fr);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Cl.prototype)Cl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Fr.prototype[ls]=function(D){return function(){return D.apply(this.doc,arguments)}}(Cl.prototype[ls]));return Gt(Cl),Fr.inputStyles={textarea:ya,contenteditable:gn},Fr.defineMode=function(D){!Fr.defaults.mode&&D!="null"&&(Fr.defaults.mode=D),an.apply(this,arguments)},Fr.defineMIME=En,Fr.defineMode("null",function(){return{token:function(B){return B.skipToEnd()}}}),Fr.defineMIME("text/plain","null"),Fr.defineExtension=function(D,B){Fr.prototype[D]=B},Fr.defineDocExtension=function(D,B){Cl.prototype[D]=B},Fr.fromTextArea=fo,za(Fr),Fr.version="5.58.2",Fr})},W1kz:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("Mt2t"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},W2nI:function(R,L,r){var y=r("IwbS"),f=r("ProS"),x=r("bYtY"),A=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],p=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function u(l,n){return l.getVisual("opacity")||l.getModel().get(n)}function a(l,n,o){var c=l.getGraphicEl(),h=u(l,n);o!=null&&(h==null&&(h=1),h*=o),c.downplay&&c.downplay(),c.traverse(function(g){g.type!=="group"&&g.setStyle("opacity",h)})}function i(l,n){var o=u(l,n),c=l.getGraphicEl();c.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",o)}),c.highlight&&c.highlight()}var t=y.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,n){var o=n.extent;l.moveTo(n.x1,n.y1),l.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(l.lineTo(n.x2+o,n.y2),l.bezierCurveTo(n.cpx2+o,n.cpy2,n.cpx1+o,n.cpy1,n.x1+o,n.y1)):(l.lineTo(n.x2,n.y2+o),l.bezierCurveTo(n.cpx2,n.cpy2+o,n.cpx1,n.cpy1+o,n.x1,n.y1+o)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),s=f.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,n,o){var c=this,h=l.getGraph(),g=this.group,v=l.layoutInfo,b=v.width,S=v.height,E=l.getData(),C=l.getData("edge"),_=l.get("orient");this._model=l,g.removeAll(),g.attr("position",[v.x,v.y]),h.eachEdge(function(T){var w=new t;w.dataIndex=T.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var O=T.getModel("lineStyle"),I=O.get("curveness"),k=T.node1.getLayout(),M=T.node1.getModel(),U=M.get("localX"),P=M.get("localY"),X=T.node2.getLayout(),F=T.node2.getModel(),j=F.get("localX"),K=F.get("localY"),z=T.getLayout(),V,Q,G,ee,se,ye,he,ke;w.shape.extent=Math.max(1,z.dy),w.shape.orient=_,_==="vertical"?(V=(U!=null?U*b:k.x)+z.sy,Q=(P!=null?P*S:k.y)+k.dy,G=(j!=null?j*b:X.x)+z.ty,ee=K!=null?K*S:X.y,se=V,ye=Q*(1-I)+ee*I,he=G,ke=Q*I+ee*(1-I)):(V=(U!=null?U*b:k.x)+k.dx,Q=(P!=null?P*S:k.y)+z.sy,G=j!=null?j*b:X.x,ee=(K!=null?K*S:X.y)+z.ty,se=V*(1-I)+G*I,ye=Q,he=V*I+G*(1-I),ke=ee),w.setShape({x1:V,y1:Q,x2:G,y2:ee,cpx1:se,cpy1:ye,cpx2:he,cpy2:ke}),w.setStyle(O.getItemStyle());switch(w.style.fill){case"source":w.style.fill=T.node1.getVisual("color");break;case"target":w.style.fill=T.node2.getVisual("color");break}y.setHoverStyle(w,T.getModel("emphasis.lineStyle").getItemStyle()),g.add(w),C.setItemGraphicEl(T.dataIndex,w)}),h.eachNode(function(T){var w=T.getLayout(),O=T.getModel(),I=O.get("localX"),k=O.get("localY"),M=O.getModel("label"),U=O.getModel("emphasis.label"),P=new y.Rect({shape:{x:I!=null?I*b:w.x,y:k!=null?k*S:w.y,width:w.dx,height:w.dy},style:O.getModel("itemStyle").getItemStyle()}),X=T.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(P.style,X,M,U,{labelFetcher:l,labelDataIndex:T.dataIndex,defaultText:T.id,isRectText:!0}),P.setStyle("fill",T.getVisual("color")),y.setHoverStyle(P,X),g.add(P),E.setItemGraphicEl(T.dataIndex,P),P.dataType="node"}),E.eachItemGraphicEl(function(T,w){var O=E.getItemModel(w);O.get("draggable")&&(T.drift=function(I,k){c._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=k,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:E.getRawIndex(w),localX:this.shape.x/b,localY:this.shape.y/S})},T.ondragend=function(){c._focusAdjacencyDisabled=!1},T.draggable=!0,T.cursor="move"),T.highlight=function(){this.trigger("emphasis")},T.downplay=function(){this.trigger("normal")},T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(o)}))}),C.eachItemGraphicEl(function(T,w){var O=C.getItemModel(w);T.focusNodeAdjHandler&&T.off("mouseover",T.focusNodeAdjHandler),T.unfocusNodeAdjHandler&&T.off("mouseout",T.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(T.on("mouseover",T.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),o.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:T.dataIndex}))}),T.on("mouseout",T.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(o)}))}),!this._data&&l.get("animation")&&g.setClipPath(e(g.getBoundingRect(),l,function(){g.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){n._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,n,o,c){var h=l.getData(),g=h.graph,v=c.dataIndex,b=h.getItemModel(v),S=c.edgeDataIndex;if(v==null&&S==null)return;var E=g.getNodeByIndex(v),C=g.getEdgeByIndex(S);if(g.eachNode(function(T){a(T,A,.1)}),g.eachEdge(function(T){a(T,p,.1)}),E){i(E,m);var _=b.get("focusNodeAdjacency");_==="outEdges"?x.each(E.outEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node2,m)}):_==="inEdges"?x.each(E.inEdges,function(T){if(T.dataIndex<0)return;i(T,d),i(T.node1,m)}):_==="allEdges"&&x.each(E.edges,function(T){if(T.dataIndex<0)return;i(T,d),T.node1!==E&&i(T.node1,m),T.node2!==E&&i(T.node2,m)})}C&&(i(C,d),i(C.node1,m),i(C.node2,m))},unfocusNodeAdjacency:function(l,n,o,c){var h=l.getGraph();h.eachNode(function(g){a(g,A)}),h.eachEdge(function(g){a(g,p)})}});function e(l,n,o){var c=new y.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return y.initProps(c,{shape:{width:l.width+20}},n,o),c}R.exports=s},W4dC:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.each,m=x.createHashMap,p=r("7DRL"),d=r("TIY9"),u=r("yS9w"),a=r("mFDi"),i={geoJSON:d,svg:u},t={load:function(n,o,c){var h=[],g=m(),v=m(),b,S=l(n);return A(S,function(E){var C=i[E.type].load(n,E,c);A(C.regions,function(T){var w=T.name;o&&o.hasOwnProperty(w)&&(T=T.cloneShallow(w=o[w])),h.push(T),g.set(w,T),v.set(w,T.center)});var _=C.boundingRect;_&&(b?b.union(_):b=_.clone())}),{regions:h,regionsMap:g,nameCoordMap:v,boundingRect:b||new a(0,0,0,0)}},makeGraphic:s("makeGraphic"),removeGraphic:s("removeGraphic")};function s(n){return function(o,c){var h=l(o),g=[];return A(h,function(v){var b=i[v.type][n];b&&g.push(b(o,v,c))}),g}}function e(n){}function l(n){var o=p.retrieveMap(n)||[];return o}R.exports=t},WGYa:function(R,L,r){var y=r("7yuC"),f=y.forceLayout,x=r("HF/U"),A=x.simpleLayout,m=r("lOQZ"),p=m.circularLayout,d=r("OELB"),u=d.linearMap,a=r("QBsz"),i=r("bYtY");function t(s){s.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var n=e.preservedPoints||{},o=e.getGraph(),c=o.data,h=o.edgeData,g=e.getModel("force"),v=g.get("initLayout");e.preservedPoints?c.each(function(M){var U=c.getId(M);c.setItemLayout(M,n[U]||[NaN,NaN])}):!v||v==="none"?A(e):v==="circular"&&p(e,"value");var b=c.getDataExtent("value"),S=h.getDataExtent("value"),E=g.get("repulsion"),C=g.get("edgeLength");i.isArray(E)||(E=[E,E]),i.isArray(C)||(C=[C,C]),C=[C[1],C[0]];var _=c.mapArray("value",function(M,U){var P=c.getItemLayout(U),X=u(M,b,E);return isNaN(X)&&(X=(E[0]+E[1])/2),{w:X,rep:X,fixed:c.getItemModel(U).get("fixed"),p:!P||isNaN(P[0])||isNaN(P[1])?null:P}}),T=h.mapArray("value",function(M,U){var P=o.getEdgeByIndex(U),X=u(M,S,C);isNaN(X)&&(X=(C[0]+C[1])/2);var F=P.getModel();return{n1:_[P.node1.dataIndex],n2:_[P.node2.dataIndex],d:X,curveness:F.get("lineStyle.curveness")||0,ignoreForceLayout:F.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),O=f(_,T,{rect:w,gravity:g.get("gravity"),friction:g.get("friction")}),I=O.step;O.step=function(M){for(var U=0,P=_.length;U<P;U++)_[U].fixed&&a.copy(_[U].p,o.getNodeByIndex(U).getLayout());I(function(X,F,j){for(var K=0,z=X.length;K<z;K++)X[K].fixed||o.getNodeByIndex(K).setLayout(X[K].p),n[c.getId(K)]=X[K].p;for(var K=0,z=F.length;K<z;K++){var V=F[K],Q=o.getEdgeByIndex(K),G=V.n1.p,ee=V.n2.p,se=Q.getLayout();se=se?se.slice():[],se[0]=se[0]||[],se[1]=se[1]||[],a.copy(se[0],G),a.copy(se[1],ee),+V.curveness&&(se[2]=[(G[0]+ee[0])/2-(G[1]-ee[1])*V.curveness,(G[1]+ee[1])/2-(ee[0]-G[0])*V.curveness]),Q.setLayout(se)}M&&M(j)})},e.forceLayout=O,e.preservedPoints=n,O.step()}else e.forceLayout=null})}R.exports=t},"WN+l":function(R,L,r){var y=r("bYtY"),f=r("IwbS");function x(m,p,d,u){var a=d.axis;if(a.scale.isBlank())return;var i=d.getModel("splitArea"),t=i.getModel("areaStyle"),s=t.get("color"),e=u.coordinateSystem.getRect(),l=a.getTicksCoords({tickModel:i,clamp:!0});if(!l.length)return;var n=s.length,o=m.__splitAreaColors,c=y.createHashMap(),h=0;if(o)for(var g=0;g<l.length;g++){var v=o.get(l[g].tickValue);if(v!=null){h=(v+(n-1)*g)%n;break}}var b=a.toGlobalCoord(l[0].coord),S=t.getAreaStyle();s=y.isArray(s)?s:[s];for(var g=1;g<l.length;g++){var E=a.toGlobalCoord(l[g].coord),C,_,T,w;a.isHorizontal()?(C=b,_=e.y,T=E-C,w=e.height,b=C+T):(C=e.x,_=b,T=e.width,w=E-_,b=_+w);var O=l[g-1].tickValue;O!=null&&c.set(O,h),p.add(new f.Rect({anid:O!=null?"area_"+O:null,shape:{x:C,y:_,width:T,height:w},style:y.defaults({fill:s[h]},S),silent:!0})),h=(h+1)%n}m.__splitAreaColors=c}function A(m){m.__splitAreaColors=null}L.rectCoordAxisBuildSplitArea=x,L.rectCoordAxisHandleRemove=A},WYAk:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){(function(){var f=y,x=f.lib,A=x.Base,m=f.enc,p=m.Utf8,d=f.algo,u=d.HMAC=A.extend({init:function(i,t){i=this._hasher=new i.init,typeof t=="string"&&(t=p.parse(t));var s=i.blockSize,e=s*4;t.sigBytes>e&&(t=i.finalize(t)),t.clamp();for(var l=this._oKey=t.clone(),n=this._iKey=t.clone(),o=l.words,c=n.words,h=0;h<s;h++)o[h]^=1549556828,c[h]^=909522486;l.sigBytes=n.sigBytes=e,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var t=this._hasher,s=t.finalize(i);t.reset();var e=t.finalize(this._oKey.clone().concat(s));return e}})})()})},Wqna:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.isObject,m=x.each,p=x.map,d=x.indexOf,u=x.retrieve,a=r("+TT/"),i=a.getLayoutRect,t=r("aX7z"),s=t.createScaleByModel,e=t.ifAxisCrossZero,l=t.niceScaleExtent,n=t.estimateLabelUnionRect,o=r("y+lR"),c=r("7AJT"),h=r("IDmD"),g=r("7hqr"),v=g.getStackedDimension;r("jtI2");function b(M,U,P){return M.getCoordSysModel()===U}function S(M,U,P){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(M,U,P),this.model=M}var E=S.prototype;E.type="grid",E.axisPointerEnabled=!0,E.getRect=function(){return this._rect},E.update=function(M,U){var P=this._axesMap;this._updateScale(M,this.model),m(P.x,function(F){l(F.scale,F.model)}),m(P.y,function(F){l(F.scale,F.model)});var X={};m(P.x,function(F){C(P,"y",F,X)}),m(P.y,function(F){C(P,"x",F,X)}),this.resize(this.model,U)};function C(M,U,P,X){P.getAxesOnZeroOf=function(){return j?[j]:[]};var F=M[U],j,K=P.model,z=K.get("axisLine.onZero"),V=K.get("axisLine.onZeroAxisIndex");if(!z)return;if(V!=null)_(F[V])&&(j=F[V]);else for(var Q in F)if(F.hasOwnProperty(Q)&&_(F[Q])&&!X[G(F[Q])]){j=F[Q];break}j&&(X[G(j)]=!0);function G(ee){return ee.dim+"_"+ee.index}}function _(M){return M&&M.type!=="category"&&M.type!=="time"&&e(M)}E.resize=function(M,U,P){var X=i(M.getBoxLayoutParams(),{width:U.getWidth(),height:U.getHeight()});this._rect=X;var F=this._axesList;j(),!P&&M.get("containLabel")&&(m(F,function(K){if(!K.model.get("axisLabel.inside")){var z=n(K);if(z){var V=K.isHorizontal()?"height":"width",Q=K.model.get("axisLabel.margin");X[V]-=z[V]+Q,K.position==="top"?X.y+=z.height+Q:K.position==="left"&&(X.x+=z.width+Q)}}}),j());function j(){m(F,function(K){var z=K.isHorizontal(),V=z?[0,X.width]:[0,X.height],Q=K.inverse?1:0;K.setExtent(V[Q],V[1-Q]),T(K,z?X.x:X.y)})}},E.getAxis=function(M,U){var P=this._axesMap[M];if(P!=null){if(U==null){for(var X in P)if(P.hasOwnProperty(X))return P[X]}return P[U]}},E.getAxes=function(){return this._axesList.slice()},E.getCartesian=function(M,U){if(M!=null&&U!=null){var P="x"+M+"y"+U;return this._coordsMap[P]}A(M)&&(U=M.yAxisIndex,M=M.xAxisIndex);for(var X=0,F=this._coordsList;X<F.length;X++)if(F[X].getAxis("x").index===M||F[X].getAxis("y").index===U)return F[X]},E.getCartesians=function(){return this._coordsList.slice()},E.convertToPixel=function(M,U,P){var X=this._findConvertTarget(M,U);return X.cartesian?X.cartesian.dataToPoint(P):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(P)):null},E.convertFromPixel=function(M,U,P){var X=this._findConvertTarget(M,U);return X.cartesian?X.cartesian.pointToData(P):X.axis?X.axis.coordToData(X.axis.toLocalCoord(P)):null},E._findConvertTarget=function(M,U){var P=U.seriesModel,X=U.xAxisModel||P&&P.getReferringComponents("xAxis")[0],F=U.yAxisModel||P&&P.getReferringComponents("yAxis")[0],j=U.gridModel,K=this._coordsList,z,V;if(P)z=P.coordinateSystem,d(K,z)<0&&(z=null);else if(X&&F)z=this.getCartesian(X.componentIndex,F.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(F)V=this.getAxis("y",F.componentIndex);else if(j){var Q=j.coordinateSystem;Q===this&&(z=this._coordsList[0])}return{cartesian:z,axis:V}},E.containPoint=function(M){var U=this._coordsList[0];if(U)return U.containPoint(M)},E._initCartesian=function(M,U,P){var X={left:!1,right:!1,top:!1,bottom:!1},F={x:{},y:{}},j={x:0,y:0};if(U.eachComponent("xAxis",K("x"),this),U.eachComponent("yAxis",K("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=F,m(F.x,function(z,V){m(F.y,function(Q,G){var ee="x"+V+"y"+G,se=new o(ee);se.grid=this,se.model=M,this._coordsMap[ee]=se,this._coordsList.push(se),se.addAxis(z),se.addAxis(Q)},this)},this);function K(z){return function(V,Q){if(!b(V,M,U))return;var G=V.get("position");z==="x"?G!=="top"&&G!=="bottom"&&(G=X.bottom?"top":"bottom"):G!=="left"&&G!=="right"&&(G=X.left?"right":"left"),X[G]=!0;var ee=new c(z,s(V),[0,0],V.get("type"),G),se=ee.type==="category";ee.onBand=se&&V.get("boundaryGap"),ee.inverse=V.get("inverse"),V.axis=ee,ee.model=V,ee.grid=this,ee.index=Q,this._axesList.push(ee),F[z][Q]=ee,j[z]++}}},E._updateScale=function(M,U){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),M.eachSeries(function(X){if(I(X)){var F=O(X,M),j=F[0],K=F[1];if(!b(j,U,M)||!b(K,U,M))return;var z=this.getCartesian(j.componentIndex,K.componentIndex),V=X.getData(),Q=z.getAxis("x"),G=z.getAxis("y");V.type==="list"&&(P(V,Q,X),P(V,G,X))}},this);function P(X,F,j){m(X.mapDimension(F.dim,!0),function(K){F.scale.unionExtentFromData(X,v(X,K))})}},E.getTooltipAxes=function(M){var U=[],P=[];return m(this.getCartesians(),function(X){var F=M!=null&&M!=="auto"?X.getAxis(M):X.getBaseAxis(),j=X.getOtherAxis(F);d(U,F)<0&&U.push(F),d(P,j)<0&&P.push(j)}),{baseAxes:U,otherAxes:P}};function T(M,U){var P=M.getExtent(),X=P[0]+P[1];M.toGlobalCoord=M.dim==="x"?function(F){return F+U}:function(F){return X-F+U},M.toLocalCoord=M.dim==="x"?function(F){return F-U}:function(F){return X-F+U}}var w=["xAxis","yAxis"];function O(M,U){return p(w,function(P){var X=M.getReferringComponents(P)[0];return X})}function I(M){return M.get("coordinateSystem")==="cartesian2d"}S.create=function(M,U){var P=[];return M.eachComponent("grid",function(X,F){var j=new S(X,M,U);j.name="grid_"+F,j.resize(X,U,!0),X.coordinateSystem=j,P.push(j)}),M.eachSeries(function(X){if(!I(X))return;var F=O(X,M),j=F[0],K=F[1],z=j.getCoordSysModel(),V=z.coordinateSystem;X.coordinateSystem=V.getCartesian(j.componentIndex,K.componentIndex)}),P},S.dimensions=S.prototype.dimensions=o.prototype.dimensions,h.register("cartesian2d",S);var k=S;R.exports=k},"WtK/":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("PSzr")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="BarsOutlined";var i=A.forwardRef(a);L.default=i},"X2/X":function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"plus-square",theme:"outlined"};L.default=y},XOKv:function(R,L,r){r("OXB0"),r("SA4+")},XYMm:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("HBhm")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="PaperClipOutlined";var i=A.forwardRef(a);L.default=i},Xi7e:function(R,L,r){var y=r("KMkd"),f=r("adU4"),x=r("tMB7"),A=r("+6XX"),m=r("Z8oC");function p(d){var u=-1,a=d==null?0:d.length;for(this.clear();++u<a;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=A,p.prototype.set=m,R.exports=p},Xmg4:function(R,L,r){var y=r("bYtY"),f=r("LPTA"),x=f.devicePixelRatio,A=r("K2GJ"),m=r("3C/r");function p(){return!1}function d(i,t,s){var e=y.createCanvas(),l=t.getWidth(),n=t.getHeight(),o=e.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=l+"px",o.height=n+"px",e.setAttribute("data-zr-dom-id",i)),e.width=l*s,e.height=n*s,e}var u=function(t,s,e){var l;e=e||x,typeof t=="string"?l=d(t,s,e):y.isObject(t)&&(l=t,t=l.id),this.id=t,this.dom=l;var n=l.style;n&&(l.onselectstart=p,n["-webkit-user-select"]="none",n["user-select"]="none",n["-webkit-touch-callout"]="none",n["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",n.padding=0,n.margin=0,n["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=s,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},resize:function(t,s){var e=this.dpr,l=this.dom,n=l.style,o=this.domBack;n&&(n.width=t+"px",n.height=s+"px"),l.width=t*e,l.height=s*e,o&&(o.width=t*e,o.height=s*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,s){var e=this.dom,l=this.ctx,n=e.width,o=e.height,s=s||this.clearColor,c=this.motionBlur&&!t,h=this.lastFrameAlpha,g=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/g,o/g)),l.clearRect(0,0,n,o),s&&s!=="transparent"){var v;s.colorStops?(v=s.__canvasGradient||A.getGradient(l,s,{x:0,y:0,width:n,height:o}),s.__canvasGradient=v):s.image&&(v=m.prototype.getCanvasPattern.call(s,l)),l.save(),l.fillStyle=v||s,l.fillRect(0,0,n,o),l.restore()}if(c){var b=this.domBack;l.save(),l.globalAlpha=h,l.drawImage(b,0,0,n,o),l.restore()}}};var a=u;R.exports=a},Xnb7:function(R,L,r){var y=r("1RvN"),f=new y(50);function x(d){if(typeof d=="string"){var u=f.get(d);return u&&u.image}else return d}function A(d,u,a,i,t){if(d)if(typeof d=="string"){if(u&&u.__zrImageSrc===d||!a)return u;var s=f.get(d),e={hostEl:a,cb:i,cbPayload:t};return s?(u=s.image,!p(u)&&s.pending.push(e)):(u=new Image,u.onload=u.onerror=m,f.put(d,u.__cachedImgObj={image:u,pending:[e]}),u.src=u.__zrImageSrc=d),u}else return d;else return u}function m(){var d=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var u=0;u<d.pending.length;u++){var a=d.pending[u],i=a.cb;i&&i(this,a.cbPayload),a.hostEl.dirty()}d.pending.length=0}function p(d){return d&&d.width&&d.height}L.findExistImage=x,L.createOrUpdateImage=A,L.isImageReady=p},XpcN:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("oVpE"),p=m.createSymbol,d=r("IwbS"),u=r("eRkO"),a=u.makeBackground,i=r("+TT/"),t=A.curry,s=A.each,e=d.Group,l=x.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(g,v,b){var S=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var E=g.get("align"),C=g.get("orient");(!E||E==="auto")&&(E=g.get("left")==="right"&&C==="vertical"?"right":"left");var _=g.get("selector",!0),T=g.get("selectorPosition",!0);_&&(!T||T==="auto")&&(T=C==="horizontal"?"end":"start"),this.renderInner(E,g,v,b,_,C,T);var w=g.getBoxLayoutParams(),O={width:b.getWidth(),height:b.getHeight()},I=g.get("padding"),k=i.getLayoutRect(w,O,I),M=this.layoutInner(g,E,k,S,_,T),U=i.getLayoutRect(A.defaults({width:M.width,height:M.height},w),O,I);this.group.attr("position",[U.x-M.x,U.y-M.y]),this.group.add(this._backgroundEl=a(M,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,v,b,S,E,C,_){var T=this.getContentGroup(),w=A.createHashMap(),O=v.get("selectedMode"),I=[];b.eachRawSeries(function(k){!k.get("legendHoverLink")&&I.push(k.id)}),s(v.getData(),function(k,M){var U=k.get("name");if(!this.newlineDisabled&&(U===""||U===`
`)){T.add(new e({newline:!0}));return}var P=b.getSeriesByName(U)[0];if(w.get(U))return;if(P){var X=P.getData(),F=X.getVisual("color"),j=X.getVisual("borderColor");typeof F=="function"&&(F=F(P.getDataParams(0))),typeof j=="function"&&(j=j(P.getDataParams(0)));var K=X.getVisual("legendSymbol")||"roundRect",z=X.getVisual("symbol"),V=this._createItem(U,M,k,v,K,z,g,F,j,O);V.on("click",t(o,U,null,S,I)).on("mouseover",t(c,P.name,null,S,I)).on("mouseout",t(h,P.name,null,S,I)),w.set(U,!0)}else b.eachRawSeries(function(Q){if(w.get(U))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(U))return;var ee=G.indexOfName(U),se=G.getItemVisual(ee,"color"),ye=G.getItemVisual(ee,"borderColor"),he="roundRect",ke=this._createItem(U,M,k,v,he,null,g,se,ye,O);ke.on("click",t(o,null,U,S,I)).on("mouseover",t(c,null,U,S,I)).on("mouseout",t(h,null,U,S,I)),w.set(U,!0)}},this)},this),E&&this._createSelector(E,v,S,C,_)},_createSelector:function(g,v,b,S,E){var C=this.getSelectorGroup();s(g,function(T){_(T)});function _(T){var w=T.type,O=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});C.add(O);var I=v.getModel("selectorLabel"),k=v.getModel("emphasis.selectorLabel");d.setLabelStyle(O.style,O.hoverStyle={},I,k,{defaultText:T.title,isRectText:!1}),d.setHoverStyle(O)}},_createItem:function(g,v,b,S,E,C,_,T,w,O){var I=S.get("itemWidth"),k=S.get("itemHeight"),M=S.get("inactiveColor"),U=S.get("inactiveBorderColor"),P=S.get("symbolKeepAspect"),X=S.getModel("itemStyle"),F=S.isSelected(g),j=new e,K=b.getModel("textStyle"),z=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;E=z||E;var G=p(E,0,0,I,k,F?T:M,P==null?!0:P);if(j.add(n(G,E,X,w,U,F)),!z&&C&&(C!==E||C==="none")){var ee=k*.8;C==="none"&&(C="circle");var se=p(C,(I-ee)/2,(k-ee)/2,ee,ee,F?T:M,P==null?!0:P);j.add(n(se,C,X,w,U,F))}var ye=_==="left"?I+5:-5,he=_,ke=S.get("formatter"),Pe=g;typeof ke=="string"&&ke?Pe=ke.replace("{name}",g!=null?g:""):typeof ke=="function"&&(Pe=ke(g)),j.add(new d.Text({style:d.setTextStyle({},K,{text:Pe,x:ye,y:k/2,textFill:F?K.getTextColor():M,textAlign:he,textVerticalAlign:"middle"})}));var Ue=new d.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:V.get("show")?A.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:S.componentIndex,name:g,$vars:["name"]}},V.option):null});return j.add(Ue),j.eachChild(function($e){$e.silent=!0}),Ue.silent=!O,this.getContentGroup().add(j),d.setHoverStyle(j),j.__legendDataIndex=v,j},layoutInner:function(g,v,b,S,E,C){var _=this.getContentGroup(),T=this.getSelectorGroup();i.box(g.get("orient"),_,g.get("itemGap"),b.width,b.height);var w=_.getBoundingRect(),O=[-w.x,-w.y];if(E){i.box("horizontal",T,g.get("selectorItemGap",!0));var I=T.getBoundingRect(),k=[-I.x,-I.y],M=g.get("selectorButtonGap",!0),U=g.getOrient().index,P=U===0?"width":"height",X=U===0?"height":"width",F=U===0?"y":"x";C==="end"?k[U]+=w[P]+M:O[U]+=I[P]+M,k[1-U]+=w[X]/2-I[X]/2,T.attr("position",k),_.attr("position",O);var j={x:0,y:0};return j[P]=w[P]+M+I[P],j[X]=Math.max(w[X],I[X]),j[F]=Math.min(0,I[F]+k[1-U]),j}else return _.attr("position",O),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function n(g,v,b,S,E,C){var _;return v!=="line"&&v.indexOf("empty")<0?(_=b.getItemStyle(),g.style.stroke=S,C||(_.stroke=E)):_=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(_)}function o(g,v,b,S){h(g,v,b,S),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:v}),c(g,v,b,S)}function c(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:v,excludeSeriesId:S})}function h(g,v,b,S){var E=b.getZr().storage.getDisplayList()[0];E&&E.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:v,excludeSeriesId:S})}R.exports=l},XuBP:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};L.default=y},XxSj:function(R,L,r){var y=r("bYtY"),f=r("Qe9p"),x=r("OELB"),A=x.linearMap,m=y.each,p=y.isObject,d=-1,u=function(C){var _=C.mappingMethod,T=C.type,w=this.option=y.clone(C);this.type=T,this.mappingMethod=_,this._normalizeData=b[_];var O=a[T];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[_],_==="piecewise"?(s(w),i(w)):_==="category"?w.categories?t(w):s(w,!0):(y.assert(_!=="linear"||w.dataExtent),s(w))};u.prototype={constructor:u,mapValueToVisual:function(C){var _=this._normalizeData(C);return this._doMap(_,C)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var a=u.visualHandlers={color:{applyVisual:n("color"),getColorMapper:function(){var C=this.option;return y.bind(C.mappingMethod==="category"?function(_,T){return!T&&(_=this._normalizeData(_)),o.call(this,_)}:function(_,T,w){var O=!!w;return!T&&(_=this._normalizeData(_)),w=f.fastLerp(_,C.parsedVisual,w),O?w:f.stringify(w,"rgba")},this)},_doMap:{linear:function(C){return f.stringify(f.fastLerp(C,this.option.parsedVisual),"rgba")},category:o,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=f.stringify(f.fastLerp(C,this.option.parsedVisual),"rgba")),T},fixed:c}},colorHue:e(function(C,_){return f.modifyHSL(C,_)}),colorSaturation:e(function(C,_){return f.modifyHSL(C,null,_)}),colorLightness:e(function(C,_){return f.modifyHSL(C,null,null,_)}),colorAlpha:e(function(C,_){return f.modifyAlpha(C,_)}),opacity:{applyVisual:n("opacity"),_doMap:h([0,1])},liftZ:{applyVisual:n("liftZ"),_doMap:{linear:c,category:c,piecewise:c,fixed:c}},symbol:{applyVisual:function(C,_,T){var w=this.mapValueToVisual(C);if(y.isString(w))T("symbol",w);else if(p(w))for(var O in w)w.hasOwnProperty(O)&&T(O,w[O])},_doMap:{linear:l,category:o,piecewise:function(C,_){var T=g.call(this,_);return T==null&&(T=l.call(this,C)),T},fixed:c}},symbolSize:{applyVisual:n("symbolSize"),_doMap:h([0,1])}};function i(C){var _=C.pieceList;C.hasSpecialVisual=!1,y.each(_,function(T,w){T.originIndex=w,T.visual!=null&&(C.hasSpecialVisual=!0)})}function t(C){var _=C.categories,T=C.visual,w=C.categoryMap={};if(m(_,function(k,M){w[k]=M}),!y.isArray(T)){var O=[];y.isObject(T)?m(T,function(k,M){var U=w[M];O[U!=null?U:d]=k}):O[d]=T,T=v(C,O)}for(var I=_.length-1;I>=0;I--)T[I]==null&&(delete w[_[I]],_.pop())}function s(C,_){var T=C.visual,w=[];y.isObject(T)?m(T,function(I){w.push(I)}):T!=null&&w.push(T);var O={color:1,symbol:1};!_&&w.length===1&&!O.hasOwnProperty(C.type)&&(w[1]=w[0]),v(C,w)}function e(C){return{applyVisual:function(_,T,w){_=this.mapValueToVisual(_),w("color",C(T("color"),_))},_doMap:h([0,1])}}function l(C){var _=this.option.visual;return _[Math.round(A(C,[0,1],[0,_.length-1],!0))]||{}}function n(C){return function(_,T,w){w(C,this.mapValueToVisual(_))}}function o(C){var _=this.option.visual;return _[this.option.loop&&C!==d?C%_.length:C]}function c(){return this.option.visual[0]}function h(C){return{linear:function(_){return A(_,C,this.option.visual,!0)},category:o,piecewise:function(_,T){var w=g.call(this,T);return w==null&&(w=A(_,C,this.option.visual,!0)),w},fixed:c}}function g(C){var _=this.option,T=_.pieceList;if(_.hasSpecialVisual){var w=u.findPieceIndex(C,T),O=T[w];if(O&&O.visual)return O.visual[this.type]}}function v(C,_){return C.visual=_,C.type==="color"&&(C.parsedVisual=y.map(_,function(T){return f.parse(T)})),_}var b={linear:function(C){return A(C,this.option.dataExtent,[0,1],!0)},piecewise:function(C){var _=this.option.pieceList,T=u.findPieceIndex(C,_,!0);if(T!=null)return A(T,[0,_.length-1],[0,1],!0)},category:function(C){var _=this.option.categories?this.option.categoryMap[C]:C;return _==null?d:_},fixed:y.noop};u.listVisualTypes=function(){var C=[];return y.each(a,function(_,T){C.push(T)}),C},u.addVisualHandler=function(C,_){a[C]=_},u.isValidType=function(C){return a.hasOwnProperty(C)},u.eachVisual=function(C,_,T){y.isObject(C)?y.each(C,_,T):_.call(T,C)},u.mapVisual=function(C,_,T){var w,O=y.isArray(C)?[]:y.isObject(C)?{}:(w=!0,null);return u.eachVisual(C,function(I,k){var M=_.call(T,I,k);w?O=M:O[k]=M}),O},u.retrieveVisuals=function(C){var _={},T;return C&&m(a,function(w,O){C.hasOwnProperty(O)&&(_[O]=C[O],T=!0)}),T?_:null},u.prepareVisualTypes=function(C){if(p(C)){var _=[];m(C,function(T,w){_.push(w)}),C=_}else if(y.isArray(C))C=C.slice();else return[];return C.sort(function(T,w){return w==="color"&&T!=="color"&&T.indexOf("color")===0?1:-1}),C},u.dependsOn=function(C,_){return _==="color"?!!(C&&C.indexOf(_)===0):C===_},u.findPieceIndex=function(C,_,T){for(var w,O=Infinity,I=0,k=_.length;I<k;I++){var M=_[I].value;if(M!=null){if(M===C||typeof M=="string"&&M===C+"")return I;T&&F(M,I)}}for(var I=0,k=_.length;I<k;I++){var U=_[I],P=U.interval,X=U.close;if(P){if(P[0]===-Infinity){if(S(X[1],C,P[1]))return I}else if(P[1]===Infinity){if(S(X[0],P[0],C))return I}else if(S(X[0],P[0],C)&&S(X[1],C,P[1]))return I;T&&F(P[0],I),T&&F(P[1],I)}}if(T)return C===Infinity?_.length-1:C===-Infinity?0:w;function F(j,K){var z=Math.abs(j-C);z<O&&(O=z,w=K)}};function S(C,_,T){return C?_<=T:_<T}var E=u;R.exports=E},"Y+p1":function(R,L,r){var y=r("wF/u");function f(x,A){return y(x,A)}R.exports=f},Y1PL:function(R,L,r){"use strict";r.r(L),r.d(L,"ResizableTextArea",function(){return E});var y=r("wx14"),f=r("1OyB"),x=r("vuIU"),A=r("Ji7U"),m=r("LK+K"),p=r("q1tI"),d=r("VTBJ"),u=r("rePB"),a=r("t23M"),i=r("bT9E"),t=r("TSYQ"),s=r.n(t),e=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],n={},o;function c(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=T.getAttribute("id")||T.getAttribute("data-reactid")||T.getAttribute("name");if(w&&n[O])return n[O];var I=window.getComputedStyle(T),k=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),M=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),U=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),P=l.map(function(F){return"".concat(F,":").concat(I.getPropertyValue(F))}).join(";"),X={sizingStyle:P,paddingSize:M,borderSize:U,boxSizing:k};return w&&O&&(n[O]=X),X}function h(T){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;o||(o=document.createElement("textarea"),o.setAttribute("tab-index","-1"),o.setAttribute("aria-hidden","true"),document.body.appendChild(o)),T.getAttribute("wrap")?o.setAttribute("wrap",T.getAttribute("wrap")):o.removeAttribute("wrap");var k=c(T,w),M=k.paddingSize,U=k.borderSize,P=k.boxSizing,X=k.sizingStyle;o.setAttribute("style","".concat(X,";").concat(e)),o.value=T.value||T.placeholder||"";var F=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,K=o.scrollHeight,z;if(P==="border-box"?K+=U:P==="content-box"&&(K-=M),O!==null||I!==null){o.value=" ";var V=o.scrollHeight-M;O!==null&&(F=V*O,P==="border-box"&&(F=F+M+U),K=Math.max(F,K)),I!==null&&(j=V*I,P==="border-box"&&(j=j+M+U),z=K>j?"":"hidden",K=Math.min(j,K))}return{height:K,minHeight:F,maxHeight:j,overflowY:z,resize:"none"}}var g=r("Gytx"),v=r.n(g),b;(function(T){T[T.NONE=0]="NONE",T[T.RESIZING=1]="RESIZING",T[T.RESIZED=2]="RESIZED"})(b||(b={}));var S=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var k;return Object(f.a)(this,O),k=w.call(this,I),k.nextFrameActionId=void 0,k.resizeFrameId=void 0,k.textArea=void 0,k.saveTextArea=function(M){k.textArea=M},k.handleResize=function(M){var U=k.state.resizeStatus,P=k.props,X=P.autoSize,F=P.onResize;if(U!==b.NONE)return;typeof F=="function"&&F(M),X&&k.resizeOnNextFrame()},k.resizeOnNextFrame=function(){cancelAnimationFrame(k.nextFrameActionId),k.nextFrameActionId=requestAnimationFrame(k.resizeTextarea)},k.resizeTextarea=function(){var M=k.props.autoSize;if(!M||!k.textArea)return;var U=M.minRows,P=M.maxRows,X=h(k.textArea,!1,U,P);k.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(k.resizeFrameId),k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.RESIZED},function(){k.resizeFrameId=requestAnimationFrame(function(){k.setState({resizeStatus:b.NONE}),k.fixFirefoxAutoScroll()})})})})},k.renderTextArea=function(){var M=k.props,U=M.prefixCls,P=U===void 0?"rc-textarea":U,X=M.autoSize,F=M.onResize,j=M.className,K=M.disabled,z=k.state,V=z.textareaStyles,Q=z.resizeStatus,G=Object(i.a)(k.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),ee=s()(P,j,Object(u.a)({},"".concat(P,"-disabled"),K));"value"in G&&(G.value=G.value||"");var se=Object(d.a)(Object(d.a)(Object(d.a)({},k.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(a.a,{onResize:k.handleResize,disabled:!(X||F)},p.createElement("textarea",Object(y.a)({},G,{className:ee,style:se,ref:k.saveTextArea})))},k.state={textareaStyles:{},resizeStatus:b.NONE},k}return Object(x.a)(O,[{key:"componentDidUpdate",value:function(k){(k.value!==this.props.value||!v()(k.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var k=this.textArea.selectionStart,M=this.textArea.selectionEnd;this.textArea.setSelectionRange(k,M)}}catch(U){}}},{key:"render",value:function(){return this.renderTextArea()}}]),O}(p.Component),E=S,C=function(T){Object(A.a)(O,T);var w=Object(m.a)(O);function O(I){var k;Object(f.a)(this,O),k=w.call(this,I),k.resizableTextArea=void 0,k.focus=function(){k.resizableTextArea.textArea.focus()},k.saveTextArea=function(U){k.resizableTextArea=U},k.handleChange=function(U){var P=k.props.onChange;k.setValue(U.target.value,function(){k.resizableTextArea.resizeTextarea()}),P&&P(U)},k.handleKeyDown=function(U){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;U.keyCode===13&&X&&X(U),F&&F(U)};var M=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return k.state={value:M},k}return Object(x.a)(O,[{key:"setValue",value:function(k,M){"value"in this.props||this.setState({value:k},M)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(E,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(k){return"value"in k?{value:k.value}:null}}]),O}(p.Component),_=L.default=C},YCuv:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};L.default=y},YESw:function(R,L,r){var y=r("Cwc5"),f=y(Object,"create");R.exports=f},YH21:function(R,L,r){var y=r("H6uX");L.Dispatcher=y;var f=r("ItGF"),x=r("Ze12"),A=x.isCanvasEl,m=x.transformCoordWithViewport,p=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function a(h,g,v,b){return v=v||{},b||!f.canvasSupported?i(h,g,v):f.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(v.zrX=g.layerX,v.zrY=g.layerY):g.offsetX!=null?(v.zrX=g.offsetX,v.zrY=g.offsetY):i(h,g,v),v}function i(h,g,v){if(f.domSupported&&h.getBoundingClientRect){var b=g.clientX,S=g.clientY;if(A(h)){var E=h.getBoundingClientRect();v.zrX=b-E.left,v.zrY=S-E.top;return}else if(m(u,h,b,S)){v.zrX=u[0],v.zrY=u[1];return}}v.zrX=v.zrY=0}function t(h){return h||window.event}function s(h,g,v){if(g=t(g),g.zrX!=null)return g;var b=g.type,S=b&&b.indexOf("touch")>=0;if(!S)a(h,g,g,v),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var E=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];E&&a(h,E,g,v)}var C=g.button;return g.which==null&&C!==void 0&&d.test(g.type)&&(g.which=C&1?1:C&2?3:C&4?2:0),g}function e(h,g,v,b){p?h.addEventListener(g,v,b):h.attachEvent("on"+g,v)}function l(h,g,v,b){p?h.removeEventListener(g,v,b):h.detachEvent("on"+g,v)}var n=p?function(h){h.preventDefault(),h.stopPropagation(),h.cancelBubble=!0}:function(h){h.returnValue=!1,h.cancelBubble=!0};function o(h){return h.which===2||h.which===3}function c(h){return h.which>1}L.clientToLocal=a,L.getNativeEvent=t,L.normalizeEvent=s,L.addEventListener=e,L.removeEventListener=l,L.stop=n,L.isMiddleOrRightButtonOnMouseUpDown=o,L.notLeftMouse=c},YJ9k:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var A=function(){function m(){y(this,m),this._listeners=new Map}return x(m,[{key:"addEventListener",value:function(d,u){this._listeners.has(d)||this._listeners.set(d,new Set),this._listeners.get(d).add(u)}},{key:"removeEventListener",value:function(d,u){this._listeners.has(d)&&this._listeners.get(d).delete(u)}},{key:"dispatchEvent",value:function(d){var u=this;return this._listeners.has(d.type)?(this._listeners.get(d.type).forEach(function(a){return a.call(u,d)}),!d.defaultPrevented):!0}}]),m}();L.default=A},YJCA:function(R,L,r){"use strict";r.d(L,"a",function(){return $}),r.d(L,"b",function(){return Ce});var y=r("wx14"),f=r("ODXe"),x=r("vpQ4"),A=r("1OyB"),m=r("vuIU"),p=r("md7G"),d=r("foSv"),u=r("Ji7U"),a=r("JX7q"),i=r("rePB"),t=r("q1tI"),s=r.n(t),e=r("17x9"),l=r.n(e),n=r("i8i4"),o=r.n(n),c=r("QLaP"),h=r.n(c),g=r("KQm4"),v=function(){function Se(){Object(A.a)(this,Se),Object(i.a)(this,"refs",{})}return Object(m.a)(Se,[{key:"add",value:function(pe,_e){this.refs[pe]||(this.refs[pe]=[]),this.refs[pe].push(_e)}},{key:"remove",value:function(pe,_e){var tt=this.getIndex(pe,_e);tt!==-1&&this.refs[pe].splice(tt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var pe=this;return this.refs[this.active.collection].find(function(_e){var tt=_e.node;return tt.sortableInfo.index==pe.active.index})}},{key:"getIndex",value:function(pe,_e){return this.refs[pe].indexOf(_e)}},{key:"getOrderedRefs",value:function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[pe].sort(b)}}]),Se}();function b(Se,le){var pe=Se.node.sortableInfo.index,_e=le.node.sortableInfo.index;return pe-_e}function S(Se,le,pe){return Se=Se.slice(),Se.splice(pe<0?Se.length+pe:pe,0,Se.splice(le,1)[0]),Se}function E(Se,le){return Object.keys(Se).reduce(function(pe,_e){return le.indexOf(_e)===-1&&(pe[_e]=Se[_e]),pe},{})}var C={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},_=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Se=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],le=(Array.prototype.slice.call(Se).join("").match(/-(moz|webkit|ms)-/)||Se.OLink===""&&["","o"])[1];switch(le){case"ms":return"ms";default:return le&&le.length?le[0].toUpperCase()+le.substr(1):""}}();function T(Se,le){Object.keys(le).forEach(function(pe){Se.style[pe]=le[pe]})}function w(Se,le){Se.style["".concat(_,"Transform")]=le==null?"":"translate3d(".concat(le.x,"px,").concat(le.y,"px,0)")}function O(Se,le){Se.style["".concat(_,"TransitionDuration")]=le==null?"":"".concat(le,"ms")}function I(Se,le){for(;Se;){if(le(Se))return Se;Se=Se.parentNode}return null}function k(Se,le,pe){return Math.max(Se,Math.min(pe,le))}function M(Se){return Se.substr(-2)==="px"?parseFloat(Se):0}function U(Se){var le=window.getComputedStyle(Se);return{bottom:M(le.marginBottom),left:M(le.marginLeft),right:M(le.marginRight),top:M(le.marginTop)}}function P(Se,le){var pe=le.displayName||le.name;return pe?"".concat(Se,"(").concat(pe,")"):Se}function X(Se,le){var pe=Se.getBoundingClientRect();return{top:pe.top+le.top,left:pe.left+le.left}}function F(Se){return Se.touches&&Se.touches.length?{x:Se.touches[0].pageX,y:Se.touches[0].pageY}:Se.changedTouches&&Se.changedTouches.length?{x:Se.changedTouches[0].pageX,y:Se.changedTouches[0].pageY}:{x:Se.pageX,y:Se.pageY}}function j(Se){return Se.touches&&Se.touches.length||Se.changedTouches&&Se.changedTouches.length}function K(Se,le){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Se)return;var _e={left:pe.left+Se.offsetLeft,top:pe.top+Se.offsetTop};return Se.parentNode===le?_e:K(Se.parentNode,le,_e)}function z(Se,le,pe){return Se<pe&&Se>le?Se-1:Se>pe&&Se<le?Se+1:Se}function V(Se){var le=Se.lockOffset,pe=Se.width,_e=Se.height,tt=le,gt=le,ct="px";if(typeof le=="string"){var je=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(le);h()(je!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',le),tt=parseFloat(le),gt=parseFloat(le),ct=je[1]}return h()(isFinite(tt)&&isFinite(gt),"lockOffset value should be a finite. Given %s",le),ct==="%"&&(tt=tt*pe/100,gt=gt*_e/100),{x:tt,y:gt}}function Q(Se){var le=Se.height,pe=Se.width,_e=Se.lockOffset,tt=Array.isArray(_e)?_e:[_e,_e];h()(tt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",_e);var gt=Object(f.a)(tt,2),ct=gt[0],je=gt[1];return[V({height:le,lockOffset:ct,width:pe}),V({height:le,lockOffset:je,width:pe})]}function G(Se){var le=window.getComputedStyle(Se),pe=/(auto|scroll)/,_e=["overflow","overflowX","overflowY"];return _e.find(function(tt){return pe.test(le[tt])})}function ee(Se){return Se instanceof HTMLElement?G(Se)?Se:ee(Se.parentNode):null}function se(Se){var le=window.getComputedStyle(Se);return le.display==="grid"?{x:M(le.gridColumnGap),y:M(le.gridRowGap)}:{x:0,y:0}}var ye={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},he={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ke(Se){var le="input, textarea, select, canvas, [contenteditable]",pe=Se.querySelectorAll(le),_e=Se.cloneNode(!0),tt=Object(g.a)(_e.querySelectorAll(le));return tt.forEach(function(gt,ct){if(gt.type!=="file"&&(gt.value=pe[ct].value),gt.type==="radio"&&gt.name&&(gt.name="__sortableClone__".concat(gt.name)),gt.tagName===he.Canvas&&pe[ct].width>0&&pe[ct].height>0){var je=gt.getContext("2d");je.drawImage(pe[ct],0,0)}}),_e}function Pe(Se){var le,pe,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=le=function(tt){Object(u.a)(gt,tt);function gt(){return Object(A.a)(this,gt),Object(p.a)(this,Object(d.a)(gt).apply(this,arguments))}return Object(m.a)(gt,[{key:"componentDidMount",value:function(){var je=Object(n.findDOMNode)(this);je.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(_e.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 je=_e.withRef?"wrappedInstance":null;return Object(t.createElement)(Se,Object(y.a)({ref:je},this.props))}}]),gt}(t.Component),Object(i.a)(le,"displayName",P("sortableHandle",Se)),pe}function Ue(Se){return Se.sortableHandle!=null}var $e=function(){function Se(le,pe){Object(A.a)(this,Se),this.container=le,this.onScrollCallback=pe}return Object(m.a)(Se,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(pe){var _e=this,tt=pe.translate,gt=pe.minTranslate,ct=pe.maxTranslate,je=pe.width,Zt=pe.height,ut={x:0,y:0},Ht={x:1,y:1},dr={x:10,y:10},Vt=this.container,Mt=Vt.scrollTop,Gt=Vt.scrollLeft,Ve=Vt.scrollHeight,me=Vt.scrollWidth,te=Vt.clientHeight,Ze=Vt.clientWidth,Xe=Mt===0,ue=Ve-Mt-te===0,St=Gt===0,Qt=me-Gt-Ze===0;tt.y>=ct.y-Zt/2&&!ue?(ut.y=1,Ht.y=dr.y*Math.abs((ct.y-Zt/2-tt.y)/Zt)):tt.x>=ct.x-je/2&&!Qt?(ut.x=1,Ht.x=dr.x*Math.abs((ct.x-je/2-tt.x)/je)):tt.y<=gt.y+Zt/2&&!Xe?(ut.y=-1,Ht.y=dr.y*Math.abs((tt.y-Zt/2-gt.y)/Zt)):tt.x<=gt.x+je/2&&!St&&(ut.x=-1,Ht.x=dr.x*Math.abs((tt.x-je/2-gt.x)/je)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ut.x!==0||ut.y!==0)&&(this.interval=setInterval(function(){_e.isAutoScrolling=!0;var dt={left:Ht.x*ut.x,top:Ht.y*ut.y};_e.container.scrollTop+=dt.top,_e.container.scrollLeft+=dt.left,_e.onScrollCallback(dt)},5))}}]),Se}();function Ge(Se){var le=Se.node;return{height:le.offsetHeight,width:le.offsetWidth}}function ht(Se){var le=[he.Input,he.Textarea,he.Select,he.Option,he.Button];return le.indexOf(Se.target.tagName)!==-1?!0:!!I(Se.target,function(pe){return pe.contentEditable==="true"})}var Fe={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:[ye.SPACE],drop:[ye.SPACE],cancel:[ye.ESC],up:[ye.UP,ye.LEFT],down:[ye.DOWN,ye.RIGHT]},rt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ge,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:oe,shouldCancelStart:ht,transitionDuration:300,useWindowAsScrollContainer:!1},fe=Object.keys(Fe);function J(Se){h()(!(Se.distance&&Se.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 Y(Se,le){try{var pe=Se()}catch(_e){return le(!0,_e)}return pe&&pe.then?pe.then(le.bind(null,!1),le.bind(null,!0)):le(!1,value)}function $(Se){var le,pe,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=le=function(tt){Object(u.a)(gt,tt);function gt(ct){var je;return Object(A.a)(this,gt),je=Object(p.a)(this,Object(d.a)(gt).call(this,ct)),Object(i.a)(Object(a.a)(Object(a.a)(je)),"state",{}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleStart",function(Zt){var ut=je.props,Ht=ut.distance,dr=ut.shouldCancelStart;if(Zt.button===2||dr(Zt))return;je.touched=!0,je.position=F(Zt);var Vt=I(Zt.target,function(Ze){return Ze.sortableInfo!=null});if(Vt&&Vt.sortableInfo&&je.nodeIsChild(Vt)&&!je.state.sorting){var Mt=je.props.useDragHandle,Gt=Vt.sortableInfo,Ve=Gt.index,me=Gt.collection,te=Gt.disabled;if(te)return;if(Mt&&!I(Zt.target,Ue))return;je.manager.active={collection:me,index:Ve},!j(Zt)&&Zt.target.tagName===he.Anchor&&Zt.preventDefault(),Ht||(je.props.pressDelay===0?je.handlePress(Zt):je.pressTimer=setTimeout(function(){return je.handlePress(Zt)},je.props.pressDelay))}}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"nodeIsChild",function(Zt){return Zt.sortableInfo.manager===je.manager}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleMove",function(Zt){var ut=je.props,Ht=ut.distance,dr=ut.pressThreshold;if(!je.state.sorting&&je.touched&&!je._awaitingUpdateBeforeSortStart){var Vt=F(Zt),Mt={x:je.position.x-Vt.x,y:je.position.y-Vt.y},Gt=Math.abs(Mt.x)+Math.abs(Mt.y);je.delta=Mt,!Ht&&(!dr||Gt>=dr)?(clearTimeout(je.cancelTimer),je.cancelTimer=setTimeout(je.cancel,0)):Ht&&Gt>=Ht&&je.manager.isActive()&&je.handlePress(Zt)}}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleEnd",function(){je.touched=!1,je.cancel()}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"cancel",function(){var Zt=je.props.distance,ut=je.state.sorting;ut||(Zt||clearTimeout(je.pressTimer),je.manager.active=null)}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handlePress",function(Zt){try{var ut=je.manager.getActive(),Ht=function(){if(ut){var dr=function(){var $t=ue.sortableInfo.index,tn=U(ue),kt=se(je.container),tr=je.scrollContainer.getBoundingClientRect(),Bt=Gt({index:$t,node:ue,collection:St});if(je.node=ue,je.margin=tn,je.gridGap=kt,je.width=Bt.width,je.height=Bt.height,je.marginOffset={x:je.margin.left+je.margin.right+je.gridGap.x,y:Math.max(je.margin.top,je.margin.bottom,je.gridGap.y)},je.boundingClientRect=ue.getBoundingClientRect(),je.containerBoundingRect=tr,je.index=$t,je.newIndex=$t,je.axis={x:Mt.indexOf("x")>=0,y:Mt.indexOf("y")>=0},je.offsetEdge=K(ue,je.container),Qt?je.initialOffset=F(Object(x.a)({},Zt,{pageX:je.boundingClientRect.left,pageY:je.boundingClientRect.top})):je.initialOffset=F(Zt),je.initialScroll={left:je.scrollContainer.scrollLeft,top:je.scrollContainer.scrollTop},je.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},je.helper=je.helperContainer.appendChild(ke(ue)),T(je.helper,{boxSizing:"border-box",height:"".concat(je.height,"px"),left:"".concat(je.boundingClientRect.left-tn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(je.boundingClientRect.top-tn.top,"px"),width:"".concat(je.width,"px")}),Qt&&je.helper.focus(),me&&(je.sortableGhost=ue,T(ue,{opacity:0,visibility:"hidden"})),je.minTranslate={},je.maxTranslate={},Qt){var ft=Xe?{top:0,left:0,width:je.contentWindow.innerWidth,height:je.contentWindow.innerHeight}:je.containerBoundingRect,it=ft.top,Or=ft.left,an=ft.width,En=ft.height,Bn=it+En,vi=Or+an;je.axis.x&&(je.minTranslate.x=Or-je.boundingClientRect.left,je.maxTranslate.x=vi-(je.boundingClientRect.left+je.width)),je.axis.y&&(je.minTranslate.y=it-je.boundingClientRect.top,je.maxTranslate.y=Bn-(je.boundingClientRect.top+je.height))}else je.axis.x&&(je.minTranslate.x=(Xe?0:tr.left)-je.boundingClientRect.left-je.width/2,je.maxTranslate.x=(Xe?je.contentWindow.innerWidth:tr.left+tr.width)-je.boundingClientRect.left-je.width/2),je.axis.y&&(je.minTranslate.y=(Xe?0:tr.top)-je.boundingClientRect.top-je.height/2,je.maxTranslate.y=(Xe?je.contentWindow.innerHeight:tr.top+tr.height)-je.boundingClientRect.top-je.height/2);Ve&&Ve.split(" ").forEach(function(Ln){return je.helper.classList.add(Ln)}),je.listenerNode=Zt.touches?ue:je.contentWindow,Qt?(je.listenerNode.addEventListener("wheel",je.handleKeyEnd,!0),je.listenerNode.addEventListener("mousedown",je.handleKeyEnd,!0),je.listenerNode.addEventListener("keydown",je.handleKeyDown)):(C.move.forEach(function(Ln){return je.listenerNode.addEventListener(Ln,je.handleSortMove,!1)}),C.end.forEach(function(Ln){return je.listenerNode.addEventListener(Ln,je.handleSortEnd,!1)})),je.setState({sorting:!0,sortingIndex:$t}),Ze&&Ze({node:ue,index:$t,collection:St,isKeySorting:Qt,nodes:je.manager.getOrderedRefs(),helper:je.helper},Zt),Qt&&je.keyMove(0)},Vt=je.props,Mt=Vt.axis,Gt=Vt.getHelperDimensions,Ve=Vt.helperClass,me=Vt.hideSortableGhost,te=Vt.updateBeforeSortStart,Ze=Vt.onSortStart,Xe=Vt.useWindowAsScrollContainer,ue=ut.node,St=ut.collection,Qt=je.manager.isKeySorting,dt=function(){if(typeof te=="function"){je._awaitingUpdateBeforeSortStart=!0;var Jt=Y(function(){var $t=ue.sortableInfo.index;return Promise.resolve(te({collection:St,index:$t,node:ue,isKeySorting:Qt},Zt)).then(function(){})},function($t,tn){if(je._awaitingUpdateBeforeSortStart=!1,$t)throw tn;return tn});if(Jt&&Jt.then)return Jt.then(function(){})}}();return dt&&dt.then?dt.then(dr):dr(dt)}}();return Promise.resolve(Ht&&Ht.then?Ht.then(function(){}):void 0)}catch(dr){return Promise.reject(dr)}}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleSortMove",function(Zt){var ut=je.props.onSortMove;typeof Zt.preventDefault=="function"&&Zt.preventDefault(),je.updateHelperPosition(Zt),je.animateNodes(),je.autoscroll(),ut&&ut(Zt)}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleSortEnd",function(Zt){var ut=je.props,Ht=ut.hideSortableGhost,dr=ut.onSortEnd,Vt=je.manager,Mt=Vt.active.collection,Gt=Vt.isKeySorting,Ve=je.manager.getOrderedRefs();je.listenerNode&&(Gt?(je.listenerNode.removeEventListener("wheel",je.handleKeyEnd,!0),je.listenerNode.removeEventListener("mousedown",je.handleKeyEnd,!0),je.listenerNode.removeEventListener("keydown",je.handleKeyDown)):(C.move.forEach(function(ue){return je.listenerNode.removeEventListener(ue,je.handleSortMove)}),C.end.forEach(function(ue){return je.listenerNode.removeEventListener(ue,je.handleSortEnd)}))),je.helper.parentNode.removeChild(je.helper),Ht&&je.sortableGhost&&T(je.sortableGhost,{opacity:"",visibility:""});for(var me=0,te=Ve.length;me<te;me++){var Ze=Ve[me],Xe=Ze.node;Ze.edgeOffset=null,Ze.boundingClientRect=null,w(Xe,null),O(Xe,null),Ze.translate=null}je.autoScroller.clear(),je.manager.active=null,je.manager.isKeySorting=!1,je.setState({sorting:!1,sortingIndex:null}),typeof dr=="function"&&dr({collection:Mt,newIndex:je.newIndex,oldIndex:je.index,isKeySorting:Gt,nodes:Ve},Zt),je.touched=!1}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"autoscroll",function(){var Zt=je.props.disableAutoscroll,ut=je.manager.isKeySorting;if(Zt){je.autoScroller.clear();return}if(ut){var Ht=Object(x.a)({},je.translate),dr=0,Vt=0;je.axis.x&&(Ht.x=Math.min(je.maxTranslate.x,Math.max(je.minTranslate.x,je.translate.x)),dr=je.translate.x-Ht.x),je.axis.y&&(Ht.y=Math.min(je.maxTranslate.y,Math.max(je.minTranslate.y,je.translate.y)),Vt=je.translate.y-Ht.y),je.translate=Ht,w(je.helper,je.translate),je.scrollContainer.scrollLeft+=dr,je.scrollContainer.scrollTop+=Vt;return}je.autoScroller.update({height:je.height,maxTranslate:je.maxTranslate,minTranslate:je.minTranslate,translate:je.translate,width:je.width})}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"onAutoScroll",function(Zt){je.translate.x+=Zt.left,je.translate.y+=Zt.top,je.animateNodes()}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleKeyDown",function(Zt){var ut=Zt.keyCode,Ht=je.props,dr=Ht.shouldCancelStart,Vt=Ht.keyCodes,Mt=Vt===void 0?{}:Vt,Gt=Object(x.a)({},oe,Mt);if(je.manager.active&&!je.manager.isKeySorting||!je.manager.active&&(!Gt.lift.includes(ut)||dr(Zt)||!je.isValidSortingTarget(Zt)))return;Zt.stopPropagation(),Zt.preventDefault(),Gt.lift.includes(ut)&&!je.manager.active?je.keyLift(Zt):Gt.drop.includes(ut)&&je.manager.active?je.keyDrop(Zt):Gt.cancel.includes(ut)?(je.newIndex=je.manager.active.index,je.keyDrop(Zt)):Gt.up.includes(ut)?je.keyMove(-1):Gt.down.includes(ut)&&je.keyMove(1)}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"keyLift",function(Zt){var ut=Zt.target,Ht=I(ut,function(Gt){return Gt.sortableInfo!=null}),dr=Ht.sortableInfo,Vt=dr.index,Mt=dr.collection;je.initialFocusedNode=ut,je.manager.isKeySorting=!0,je.manager.active={index:Vt,collection:Mt},je.handlePress(Zt)}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"keyMove",function(Zt){var ut=je.manager.getOrderedRefs(),Ht=ut[ut.length-1].node.sortableInfo.index,dr=je.newIndex+Zt,Vt=je.newIndex;if(dr<0||dr>Ht)return;je.prevIndex=Vt,je.newIndex=dr;var Mt=z(je.newIndex,je.prevIndex,je.index),Gt=ut.find(function(Qt){var dt=Qt.node;return dt.sortableInfo.index===Mt}),Ve=Gt.node,me=je.containerScrollDelta,te=Gt.boundingClientRect||X(Ve,me),Ze=Gt.translate||{x:0,y:0},Xe={top:te.top+Ze.y-me.top,left:te.left+Ze.x-me.left},ue=Vt<dr,St={x:ue&&je.axis.x?Ve.offsetWidth-je.width:0,y:ue&&je.axis.y?Ve.offsetHeight-je.height:0};je.handleSortMove({pageX:Xe.left+St.x,pageY:Xe.top+St.y,ignoreTransition:Zt===0})}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"keyDrop",function(Zt){je.handleSortEnd(Zt),je.initialFocusedNode&&je.initialFocusedNode.focus()}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"handleKeyEnd",function(Zt){je.manager.active&&je.keyDrop(Zt)}),Object(i.a)(Object(a.a)(Object(a.a)(je)),"isValidSortingTarget",function(Zt){var ut=je.props.useDragHandle,Ht=Zt.target,dr=I(Ht,function(Vt){return Vt.sortableInfo!=null});return dr&&dr.sortableInfo&&!dr.sortableInfo.disabled&&(ut?Ue(Ht):Ht.sortableInfo)}),J(ct),je.manager=new v,je.events={end:je.handleEnd,move:je.handleMove,start:je.handleStart},je}return Object(m.a)(gt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var je=this,Zt=this.props.useWindowAsScrollContainer,ut=this.getContainer();Promise.resolve(ut).then(function(Ht){je.container=Ht,je.document=je.container.ownerDocument||document;var dr=je.props.contentWindow||je.document.defaultView||window;je.contentWindow=typeof dr=="function"?dr():dr,je.scrollContainer=Zt?je.document.scrollingElement||je.document.documentElement:ee(je.container)||je.container,je.autoScroller=new $e(je.scrollContainer,je.onAutoScroll),Object.keys(je.events).forEach(function(Vt){return C[Vt].forEach(function(Mt){return je.container.addEventListener(Mt,je.events[Vt],!1)})}),je.container.addEventListener("keydown",je.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var je=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(Zt){return C[Zt].forEach(function(ut){return je.container.removeEventListener(ut,je.events[Zt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(je){var Zt=this.props,ut=Zt.lockAxis,Ht=Zt.lockOffset,dr=Zt.lockToContainerEdges,Vt=Zt.transitionDuration,Mt=Zt.keyboardSortingTransitionDuration,Gt=Mt===void 0?Vt:Mt,Ve=this.manager.isKeySorting,me=je.ignoreTransition,te=F(je),Ze={x:te.x-this.initialOffset.x,y:te.y-this.initialOffset.y};if(Ze.y-=window.pageYOffset-this.initialWindowScroll.top,Ze.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Ze,dr){var Xe=Q({height:this.height,lockOffset:Ht,width:this.width}),ue=Object(f.a)(Xe,2),St=ue[0],Qt=ue[1],dt={x:this.width/2-St.x,y:this.height/2-St.y},Jt={x:this.width/2-Qt.x,y:this.height/2-Qt.y};Ze.x=k(this.minTranslate.x+dt.x,this.maxTranslate.x-Jt.x,Ze.x),Ze.y=k(this.minTranslate.y+dt.y,this.maxTranslate.y-Jt.y,Ze.y)}ut==="x"?Ze.y=0:ut==="y"&&(Ze.x=0),Ve&&Gt&&!me&&O(this.helper,Gt),w(this.helper,Ze)}},{key:"animateNodes",value:function(){var je=this.props,Zt=je.transitionDuration,ut=je.hideSortableGhost,Ht=je.onSortOver,dr=this.containerScrollDelta,Vt=this.windowScrollDelta,Mt=this.manager.getOrderedRefs(),Gt={left:this.offsetEdge.left+this.translate.x+dr.left,top:this.offsetEdge.top+this.translate.y+dr.top},Ve=this.manager.isKeySorting,me=this.newIndex;this.newIndex=null;for(var te=0,Ze=Mt.length;te<Ze;te++){var Xe=Mt[te].node,ue=Xe.sortableInfo.index,St=Xe.offsetWidth,Qt=Xe.offsetHeight,dt={height:this.height>Qt?Qt/2:this.height/2,width:this.width>St?St/2:this.width/2},Jt=Ve&&ue>this.index&&ue<=me,$t=Ve&&ue<this.index&&ue>=me,tn={x:0,y:0},kt=Mt[te].edgeOffset;kt||(kt=K(Xe,this.container),Mt[te].edgeOffset=kt,Ve&&(Mt[te].boundingClientRect=X(Xe,dr)));var tr=te<Mt.length-1&&Mt[te+1],Bt=te>0&&Mt[te-1];if(tr&&!tr.edgeOffset&&(tr.edgeOffset=K(tr.node,this.container),Ve&&(tr.boundingClientRect=X(tr.node,dr))),ue===this.index){ut&&(this.sortableGhost=Xe,T(Xe,{opacity:0,visibility:"hidden"}));continue}Zt&&O(Xe,Zt),this.axis.x?this.axis.y?$t||ue<this.index&&(Gt.left+Vt.left-dt.width<=kt.left&&Gt.top+Vt.top<=kt.top+dt.height||Gt.top+Vt.top+dt.height<=kt.top)?(tn.x=this.width+this.marginOffset.x,kt.left+tn.x>this.containerBoundingRect.width-dt.width&&(tr&&(tn.x=tr.edgeOffset.left-kt.left,tn.y=tr.edgeOffset.top-kt.top)),this.newIndex===null&&(this.newIndex=ue)):(Jt||ue>this.index&&(Gt.left+Vt.left+dt.width>=kt.left&&Gt.top+Vt.top+dt.height>=kt.top||Gt.top+Vt.top+dt.height>=kt.top+Qt))&&(tn.x=-(this.width+this.marginOffset.x),kt.left+tn.x<this.containerBoundingRect.left+dt.width&&(Bt&&(tn.x=Bt.edgeOffset.left-kt.left,tn.y=Bt.edgeOffset.top-kt.top)),this.newIndex=ue):Jt||ue>this.index&&Gt.left+Vt.left+dt.width>=kt.left?(tn.x=-(this.width+this.marginOffset.x),this.newIndex=ue):($t||ue<this.index&&Gt.left+Vt.left<=kt.left+dt.width)&&(tn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ue)):this.axis.y&&(Jt||ue>this.index&&Gt.top+Vt.top+dt.height>=kt.top?(tn.y=-(this.height+this.marginOffset.y),this.newIndex=ue):($t||ue<this.index&&Gt.top+Vt.top<=kt.top+dt.height)&&(tn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ue))),w(Xe,tn),Mt[te].translate=tn}this.newIndex==null&&(this.newIndex=this.index),Ve&&(this.newIndex=me);var ft=Ve?this.prevIndex:me;Ht&&this.newIndex!==ft&&Ht({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:ft,isKeySorting:Ve,nodes:Mt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(_e.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var je=this.props.getContainer;return typeof je!="function"?Object(n.findDOMNode)(this):je(_e.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var je=_e.withRef?"wrappedInstance":null;return Object(t.createElement)(Se,Object(y.a)({ref:je},E(this.props,fe)))}},{key:"helperContainer",get:function(){var je=this.props.helperContainer;return typeof je=="function"?je():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var je=this.props.useWindowAsScrollContainer;return je?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),gt}(t.Component),Object(i.a)(le,"displayName",P("sortableList",Se)),Object(i.a)(le,"defaultProps",rt),Object(i.a)(le,"propTypes",Fe),Object(i.a)(le,"childContextTypes",{manager:l.a.object.isRequired}),pe}var de={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},we=Object.keys(de);function Ce(Se){var le,pe,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=le=function(tt){Object(u.a)(gt,tt);function gt(){return Object(A.a)(this,gt),Object(p.a)(this,Object(d.a)(gt).apply(this,arguments))}return Object(m.a)(gt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(je){this.node&&(je.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),je.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),je.collection!==this.props.collection&&(this.unregister(je.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var je=this.props,Zt=je.collection,ut=je.disabled,Ht=je.index,dr=Object(n.findDOMNode)(this);dr.sortableInfo={collection:Zt,disabled:ut,index:Ht,manager:this.context.manager},this.node=dr,this.ref={node:dr},this.context.manager.add(Zt,this.ref)}},{key:"unregister",value:function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(je,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(_e.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 je=_e.withRef?"wrappedInstance":null;return Object(t.createElement)(Se,Object(y.a)({ref:je},E(this.props,we)))}}]),gt}(t.Component),Object(i.a)(le,"displayName",P("sortableElement",Se)),Object(i.a)(le,"contextTypes",{manager:l.a.object.isRequired}),Object(i.a)(le,"propTypes",de),Object(i.a)(le,"defaultProps",{collection:0}),pe}},YNf1:function(R,L,r){var y=r("IwbS"),f=r("6Ic6"),x=.3,A=f.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(s,e,l,n){var o=this._dataGroup,c=s.getData(),h=this._data,g=s.coordinateSystem,v=g.dimensions,b=u(s);c.diff(h).add(S).update(E).remove(C).execute();function S(T){var w=d(c,o,T,v,g);a(w,c,T,b)}function E(T,w){var O=h.getItemGraphicEl(w),I=p(c,T,v,g);c.setItemGraphicEl(T,O);var k=n&&n.animation===!1?null:s;y.updateProps(O,{shape:{points:I}},k,T),a(O,c,T,b)}function C(T){var w=h.getItemGraphicEl(T);o.remove(w)}if(!this._initialized){this._initialized=!0;var _=m(g,s,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(_)}this._data=c},incrementalPrepareRender:function(s,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(s,e,l){for(var n=e.getData(),o=e.coordinateSystem,c=o.dimensions,h=u(e),g=s.start;g<s.end;g++){var v=d(n,this._dataGroup,g,c,o);v.incremental=!0,a(v,n,g,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(s,e,l){var n=s.model,o=s.getRect(),c=new y.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),h=n.get("layout")==="horizontal"?"width":"height";return c.setShape(h,0),y.initProps(c,{shape:{width:o.width,height:o.height}},e,l),c}function p(s,e,l,n){for(var o=[],c=0;c<l.length;c++){var h=l[c],g=s.get(s.mapDimension(h),e);i(g,n.getAxis(h).type)||o.push(n.dataToPoint(g,h))}return o}function d(s,e,l,n,o){var c=p(s,l,n,o),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),s.setItemGraphicEl(l,h),h}function u(s){var e=s.get("smooth",!0);return e===!0&&(e=x),{lineStyle:s.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:x}}function a(s,e,l,n){var o=n.lineStyle;if(e.hasItemOption){var c=e.getItemModel(l).getModel("lineStyle");o=c.getLineStyle()}s.useStyle(o);var h=s.style;h.fill=null,h.stroke=e.getItemVisual(l,"color"),h.opacity=e.getItemVisual(l,"opacity"),n.smooth&&(s.shape.smooth=n.smooth)}function i(s,e){return e==="category"?s==null:s==null||isNaN(s)}var t=A;R.exports=t},YOMW:function(R,L,r){var y=r("bYtY"),f={get:function(m,p,d){var u=y.clone((x[m]||{})[p]);return d&&y.isArray(u)?u[u.length-1]:u}},x={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},A=f;R.exports=A},YXTf:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("Qs9O")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="FolderOutlined";var i=A.forwardRef(a);L.default=i},YXkt:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("Qxkt"),m=r("gPAo"),p=r("7G+c"),d=r("KxfA"),u=d.defaultDimValueGetters,a=d.DefaultDataProvider,i=r("L0Ub"),t=i.summarizeDimensions,s=r("Vi4m"),e=x.isObject,l="undefined",n=-1,o="e\0\0",c={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},h=typeof Uint32Array===l?Array:Uint32Array,g=typeof Int32Array===l?Array:Int32Array,v=typeof Uint16Array===l?Array:Uint16Array;function b(G){return G._rawCount>65535?h:v}function S(G){var ee=G.constructor;return ee===Array?G.slice():new ee(G)}var E=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function _(G,ee){x.each(E.concat(ee.__wrappedMethods||[]),function(se){ee.hasOwnProperty(se)&&(G[se]=ee[se])}),G.__wrappedMethods=ee.__wrappedMethods,x.each(C,function(se){G[se]=x.clone(ee[se])}),G._calculationInfo=x.extend(ee._calculationInfo)}var T=function(G,ee){G=G||["x","y"];for(var se={},ye=[],he={},ke=0;ke<G.length;ke++){var Pe=G[ke];x.isString(Pe)?Pe=new s({name:Pe}):Pe instanceof s||(Pe=new s(Pe));var Ue=Pe.name;Pe.type=Pe.type||"float",Pe.coordDim||(Pe.coordDim=Ue,Pe.coordDimIndex=0),Pe.otherDims=Pe.otherDims||{},ye.push(Ue),se[Ue]=Pe,Pe.index=ke,Pe.createInvertedIndices&&(he[Ue]=[])}this.dimensions=ye,this._dimensionInfos=se,this.hostModel=ee,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=t(this),this._invertedIndicesMap=he,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=T.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},w.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(G,ee){var se=this._dimensionsSummary;if(ee==null)return se.encodeFirstDimNotExtra[G];var ye=se.encode[G];return ee===!0?(ye||[]).slice():ye&&ye[ee]},w.initData=function(G,ee,se){var ye=p.isInstance(G)||x.isArrayLike(G);ye&&(G=new a(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=ee||[],this._idList=[],this._nameRepeatCount={},se||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=se=se||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(G){var ee=this._rawData,se=this.count();ee.appendData(G);var ye=ee.count();ee.persistent||(ye+=se),this._initDataFromProvider(se,ye)},w.appendValues=function(G,ee){for(var se=this._chunkSize,ye=this._storage,he=this.dimensions,ke=he.length,Pe=this._rawExtent,Ue=this.count(),$e=Ue+Math.max(G.length,ee?ee.length:0),Ge=this._chunkCount,ht=0;ht<ke;ht++){var Fe=he[ht];Pe[Fe]||(Pe[Fe]=z()),ye[Fe]||(ye[Fe]=[]),O(ye,this._dimensionInfos[Fe],se,Ge,$e),this._chunkCount=ye[Fe].length}for(var oe=new Array(ke),rt=Ue;rt<$e;rt++){for(var fe=rt-Ue,J=Math.floor(rt/se),Y=rt%se,$=0;$<ke;$++){var Fe=he[$],de=this._dimValueGetterArrayRows(G[fe]||oe,Fe,fe,$);ye[Fe][J][Y]=de;var we=Pe[Fe];de<we[0]&&(we[0]=de),de>we[1]&&(we[1]=de)}ee&&(this._nameList[rt]=ee[fe])}this._rawCount=this._count=$e,this._extent={},I(this)},w._initDataFromProvider=function(G,ee){if(G>=ee)return;for(var se=this._chunkSize,ye=this._rawData,he=this._storage,ke=this.dimensions,Pe=ke.length,Ue=this._dimensionInfos,$e=this._nameList,Ge=this._idList,ht=this._rawExtent,Fe=this._nameRepeatCount={},oe,rt=this._chunkCount,fe=0;fe<Pe;fe++){var J=ke[fe];ht[J]||(ht[J]=z());var Y=Ue[J];Y.otherDims.itemName===0&&(oe=this._nameDimIdx=fe),Y.otherDims.itemId===0&&(this._idDimIdx=fe),he[J]||(he[J]=[]),O(he,Y,se,rt,ee),this._chunkCount=he[J].length}for(var $=new Array(Pe),de=G;de<ee;de++){$=ye.getItem(de,$);for(var we=Math.floor(de/se),Ce=de%se,Se=0;Se<Pe;Se++){var J=ke[Se],le=he[J][we],pe=this._dimValueGetter($,J,de,Se);le[Ce]=pe;var _e=ht[J];pe<_e[0]&&(_e[0]=pe),pe>_e[1]&&(_e[1]=pe)}if(!ye.pure){var tt=$e[de];if($&&tt==null){if($.name!=null)$e[de]=tt=$.name;else if(oe!=null){var gt=ke[oe],ct=he[gt][we];if(ct){tt=ct[Ce];var je=Ue[gt].ordinalMeta;je&&je.categories.length&&(tt=je.categories[tt])}}}var Zt=$==null?null:$.id;Zt==null&&tt!=null&&(Fe[tt]=Fe[tt]||0,Zt=tt,Fe[tt]>0&&(Zt+="__ec__"+Fe[tt]),Fe[tt]++),Zt!=null&&(Ge[de]=Zt)}}!ye.persistent&&ye.clean&&ye.clean(),this._rawCount=this._count=ee,this._extent={},I(this)};function O(G,ee,se,ye,he){var ke=c[ee.type],Pe=ye-1,Ue=ee.name,$e=G[Ue][Pe];if($e&&$e.length<se){for(var Ge=new ke(Math.min(he-Pe*se,se)),ht=0;ht<$e.length;ht++)Ge[ht]=$e[ht];G[Ue][Pe]=Ge}for(var Fe=ye*se;Fe<he;Fe+=se)G[Ue].push(new ke(Math.min(he-Fe,se)))}function I(G){var ee=G._invertedIndicesMap;x.each(ee,function(se,ye){var he=G._dimensionInfos[ye],ke=he.ordinalMeta;if(ke){se=ee[ye]=new g(ke.categories.length);for(var Pe=0;Pe<se.length;Pe++)se[Pe]=n;for(var Pe=0;Pe<G._count;Pe++)se[G.get(ye,Pe)]=Pe}})}function k(G,ee,se){var ye;if(ee!=null){var he=G._chunkSize,ke=Math.floor(se/he),Pe=se%he,Ue=G.dimensions[ee],$e=G._storage[Ue][ke];if($e){ye=$e[Pe];var Ge=G._dimensionInfos[Ue].ordinalMeta;Ge&&Ge.categories.length&&(ye=Ge.categories[ye])}}return ye}w.count=function(){return this._count},w.getIndices=function(){var G,ee=this._indices;if(ee){var se=ee.constructor,ye=this._count;if(se===Array){G=new se(ye);for(var he=0;he<ye;he++)G[he]=ee[he]}else G=new se(ee.buffer,0,ye)}else for(var se=b(this),G=new se(this.count()),he=0;he<G.length;he++)G[he]=he;return G},w.get=function(G,ee){if(!(ee>=0&&ee<this._count))return NaN;var se=this._storage;if(!se[G])return NaN;ee=this.getRawIndex(ee);var ye=Math.floor(ee/this._chunkSize),he=ee%this._chunkSize,ke=se[G][ye],Pe=ke[he];return Pe},w.getByRawIndex=function(G,ee){if(!(ee>=0&&ee<this._rawCount))return NaN;var se=this._storage[G];if(!se)return NaN;var ye=Math.floor(ee/this._chunkSize),he=ee%this._chunkSize,ke=se[ye];return ke[he]},w._getFast=function(G,ee){var se=Math.floor(ee/this._chunkSize),ye=ee%this._chunkSize,he=this._storage[G][se];return he[ye]},w.getValues=function(G,ee){var se=[];x.isArray(G)||(ee=G,G=this.dimensions);for(var ye=0,he=G.length;ye<he;ye++)se.push(this.get(G[ye],ee));return se},w.hasValue=function(G){for(var ee=this._dimensionsSummary.dataDimsOnCoord,se=0,ye=ee.length;se<ye;se++)if(isNaN(this.get(ee[se],G)))return!1;return!0},w.getDataExtent=function(G){G=this.getDimension(G);var ee=this._storage[G],se=z();if(!ee)return se;var ye=this.count(),he=!this._indices,ke;if(he)return this._rawExtent[G].slice();if(ke=this._extent[G],ke)return ke.slice();ke=se;for(var Pe=ke[0],Ue=ke[1],$e=0;$e<ye;$e++){var Ge=this._getFast(G,this.getRawIndex($e));Ge<Pe&&(Pe=Ge),Ge>Ue&&(Ue=Ge)}return ke=[Pe,Ue],this._extent[G]=ke,ke},w.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},w.setApproximateExtent=function(G,ee){ee=this.getDimension(ee),this._approximateExtent[ee]=G.slice()},w.getCalculationInfo=function(G){return this._calculationInfo[G]},w.setCalculationInfo=function(G,ee){e(G)?x.extend(this._calculationInfo,G):this._calculationInfo[G]=ee},w.getSum=function(G){var ee=this._storage[G],se=0;if(ee)for(var ye=0,he=this.count();ye<he;ye++){var ke=this.get(G,ye);isNaN(ke)||(se+=ke)}return se},w.getMedian=function(G){var ee=[];this.each(G,function(he,ke){isNaN(he)||ee.push(he)});var se=[].concat(ee).sort(function(he,ke){return he-ke}),ye=this.count();return ye===0?0:ye%2===1?se[(ye-1)/2]:(se[ye/2]+se[ye/2-1])/2},w.rawIndexOf=function(G,ee){var se=G&&this._invertedIndicesMap[G],ye=se[ee];return ye==null||isNaN(ye)?n:ye},w.indexOfName=function(G){for(var ee=0,se=this.count();ee<se;ee++)if(this.getName(ee)===G)return ee;return-1},w.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var ee=this._indices,se=ee[G];if(se!=null&&se<this._count&&se===G)return G;for(var ye=0,he=this._count-1;ye<=he;){var ke=(ye+he)/2|0;if(ee[ke]<G)ye=ke+1;else if(ee[ke]>G)he=ke-1;else return ke}return-1},w.indicesOfNearest=function(G,ee,se){var ye=this._storage,he=ye[G],ke=[];if(!he)return ke;se==null&&(se=Infinity);for(var Pe=Infinity,Ue=-1,$e=0,Ge=0,ht=this.count();Ge<ht;Ge++){var Fe=ee-this.get(G,Ge),oe=Math.abs(Fe);oe<=se&&((oe<Pe||oe===Pe&&Fe>=0&&Ue<0)&&(Pe=oe,Ue=Fe,$e=0),Fe===Ue&&(ke[$e++]=Ge))}return ke.length=$e,ke},w.getRawIndex=M;function M(G){return G}function U(G){return G<this._count&&G>=0?this._indices[G]:-1}w.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var ee=[],se=0;se<this.dimensions.length;se++){var ye=this.dimensions[se];ee.push(this.get(ye,G))}return ee},w.getName=function(G){var ee=this.getRawIndex(G);return this._nameList[ee]||k(this,this._nameDimIdx,ee)||""},w.getId=function(G){return P(this,this.getRawIndex(G))};function P(G,ee){var se=G._idList[ee];return se==null&&(se=k(G,G._idDimIdx,ee)),se==null&&(se=o+ee),se}function X(G){return x.isArray(G)||(G=[G]),G}function F(G,ee){for(var se=0;se<ee.length;se++)G._dimensionInfos[ee[se]]||console.error("Unkown dimension "+ee[se])}w.each=function(G,ee,se,ye){"use strict";if(!this._count)return;typeof G=="function"&&(ye=se,se=ee,ee=G,G=[]),se=se||ye||this,G=x.map(X(G),this.getDimension,this);for(var he=G.length,ke=0;ke<this.count();ke++)switch(he){case 0:ee.call(se,ke);break;case 1:ee.call(se,this.get(G[0],ke),ke);break;case 2:ee.call(se,this.get(G[0],ke),this.get(G[1],ke),ke);break;default:for(var Pe=0,Ue=[];Pe<he;Pe++)Ue[Pe]=this.get(G[Pe],ke);Ue[Pe]=ke,ee.apply(se,Ue)}},w.filterSelf=function(G,ee,se,ye){"use strict";if(!this._count)return;typeof G=="function"&&(ye=se,se=ee,ee=G,G=[]),se=se||ye||this,G=x.map(X(G),this.getDimension,this);for(var he=this.count(),ke=b(this),Pe=new ke(he),Ue=[],$e=G.length,Ge=0,ht=G[0],Fe=0;Fe<he;Fe++){var oe,rt=this.getRawIndex(Fe);if($e===0)oe=ee.call(se,Fe);else if($e===1){var fe=this._getFast(ht,rt);oe=ee.call(se,fe,Fe)}else{for(var J=0;J<$e;J++)Ue[J]=this._getFast(ht,rt);Ue[J]=Fe,oe=ee.apply(se,Ue)}oe&&(Pe[Ge++]=rt)}return Ge<he&&(this._indices=Pe),this._count=Ge,this._extent={},this.getRawIndex=this._indices?U:M,this},w.selectRange=function(G){"use strict";if(!this._count)return;var ee=[];for(var se in G)G.hasOwnProperty(se)&&ee.push(se);var ye=ee.length;if(!ye)return;var he=this.count(),ke=b(this),Pe=new ke(he),Ue=0,$e=ee[0],Ge=G[$e][0],ht=G[$e][1],Fe=!1;if(!this._indices){var oe=0;if(ye===1){for(var rt=this._storage[ee[0]],fe=0;fe<this._chunkCount;fe++)for(var J=rt[fe],Y=Math.min(this._count-fe*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$];(de>=Ge&&de<=ht||isNaN(de))&&(Pe[Ue++]=oe),oe++}Fe=!0}else if(ye===2){for(var rt=this._storage[$e],we=this._storage[ee[1]],Ce=G[ee[1]][0],Se=G[ee[1]][1],fe=0;fe<this._chunkCount;fe++)for(var J=rt[fe],le=we[fe],Y=Math.min(this._count-fe*this._chunkSize,this._chunkSize),$=0;$<Y;$++){var de=J[$],pe=le[$];(de>=Ge&&de<=ht||isNaN(de))&&(pe>=Ce&&pe<=Se||isNaN(pe))&&(Pe[Ue++]=oe),oe++}Fe=!0}}if(!Fe)if(ye===1)for(var $=0;$<he;$++){var _e=this.getRawIndex($),de=this._getFast($e,_e);(de>=Ge&&de<=ht||isNaN(de))&&(Pe[Ue++]=_e)}else for(var $=0;$<he;$++){for(var tt=!0,_e=this.getRawIndex($),fe=0;fe<ye;fe++){var gt=ee[fe],de=this._getFast(se,_e);(de<G[gt][0]||de>G[gt][1])&&(tt=!1)}tt&&(Pe[Ue++]=this.getRawIndex($))}return Ue<he&&(this._indices=Pe),this._count=Ue,this._extent={},this.getRawIndex=this._indices?U:M,this},w.mapArray=function(G,ee,se,ye){"use strict";typeof G=="function"&&(ye=se,se=ee,ee=G,G=[]),se=se||ye||this;var he=[];return this.each(G,function(){he.push(ee&&ee.apply(this,arguments))},se),he};function j(G,ee){var se=G.dimensions,ye=new T(x.map(se,G.getDimensionInfo,G),G.hostModel);_(ye,G);for(var he=ye._storage={},ke=G._storage,Pe=0;Pe<se.length;Pe++){var Ue=se[Pe];ke[Ue]&&(x.indexOf(ee,Ue)>=0?(he[Ue]=K(ke[Ue]),ye._rawExtent[Ue]=z(),ye._extent[Ue]=null):he[Ue]=ke[Ue])}return ye}function K(G){for(var ee=new Array(G.length),se=0;se<G.length;se++)ee[se]=S(G[se]);return ee}function z(){return[Infinity,-Infinity]}w.map=function(G,ee,se,ye){"use strict";se=se||ye||this,G=x.map(X(G),this.getDimension,this);var he=j(this,G);he._indices=this._indices,he.getRawIndex=he._indices?U:M;for(var ke=he._storage,Pe=[],Ue=this._chunkSize,$e=G.length,Ge=this.count(),ht=[],Fe=he._rawExtent,oe=0;oe<Ge;oe++){for(var rt=0;rt<$e;rt++)ht[rt]=this.get(G[rt],oe);ht[$e]=oe;var fe=ee&&ee.apply(se,ht);if(fe!=null){typeof fe!="object"&&(Pe[0]=fe,fe=Pe);for(var J=this.getRawIndex(oe),Y=Math.floor(J/Ue),$=J%Ue,de=0;de<fe.length;de++){var we=G[de],Ce=fe[de],Se=Fe[we],le=ke[we];le&&(le[Y][$]=Ce),Ce<Se[0]&&(Se[0]=Ce),Ce>Se[1]&&(Se[1]=Ce)}}}return he},w.downSample=function(G,ee,se,ye){for(var he=j(this,[G]),ke=he._storage,Pe=[],Ue=Math.floor(1/ee),$e=ke[G],Ge=this.count(),ht=this._chunkSize,Fe=he._rawExtent[G],oe=new(b(this))(Ge),rt=0,fe=0;fe<Ge;fe+=Ue){Ue>Ge-fe&&(Ue=Ge-fe,Pe.length=Ue);for(var J=0;J<Ue;J++){var Y=this.getRawIndex(fe+J),$=Math.floor(Y/ht),de=Y%ht;Pe[J]=$e[$][de]}var we=se(Pe),Ce=this.getRawIndex(Math.min(fe+ye(Pe,we)||0,Ge-1)),Se=Math.floor(Ce/ht),le=Ce%ht;$e[Se][le]=we,we<Fe[0]&&(Fe[0]=we),we>Fe[1]&&(Fe[1]=we),oe[rt++]=Ce}return he._count=rt,he._indices=oe,he.getRawIndex=U,he},w.getItemModel=function(G){var ee=this.hostModel;return new A(this.getRawDataItem(G),ee,ee&&ee.ecModel)},w.diff=function(G){var ee=this;return new m(G?G.getIndices():[],this.getIndices(),function(se){return P(G,se)},function(se){return P(ee,se)})},w.getVisual=function(G){var ee=this._visual;return ee&&ee[G]},w.setVisual=function(G,ee){if(e(G)){for(var se in G)G.hasOwnProperty(se)&&this.setVisual(se,G[se]);return}this._visual=this._visual||{},this._visual[G]=ee},w.setLayout=function(G,ee){if(e(G)){for(var se in G)G.hasOwnProperty(se)&&this.setLayout(se,G[se]);return}this._layout[G]=ee},w.getLayout=function(G){return this._layout[G]},w.getItemLayout=function(G){return this._itemLayouts[G]},w.setItemLayout=function(G,ee,se){this._itemLayouts[G]=se?x.extend(this._itemLayouts[G]||{},ee):ee},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(G,ee,se){var ye=this._itemVisuals[G],he=ye&&ye[ee];return he==null&&!se?this.getVisual(ee):he},w.setItemVisual=function(G,ee,se){var ye=this._itemVisuals[G]||{},he=this.hasItemVisual;if(this._itemVisuals[G]=ye,e(ee)){for(var ke in ee)ee.hasOwnProperty(ke)&&(ye[ke]=ee[ke],he[ke]=!0);return}ye[ee]=se,he[ee]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};w.setItemGraphicEl=function(G,ee){var se=this.hostModel;ee&&(ee.dataIndex=G,ee.dataType=this.dataType,ee.seriesIndex=se&&se.seriesIndex,ee.type==="group"&&ee.traverse(V,ee)),this._graphicEls[G]=ee},w.getItemGraphicEl=function(G){return this._graphicEls[G]},w.eachItemGraphicEl=function(G,ee){x.each(this._graphicEls,function(se,ye){se&&(G&&G.call(ee,se,ye))})},w.cloneShallow=function(G){if(!G){var ee=x.map(this.dimensions,this.getDimensionInfo,this);G=new T(ee,this.hostModel)}if(G._storage=this._storage,_(G,this),this._indices){var se=this._indices.constructor;G._indices=new se(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?U:M,G},w.wrapMethod=function(G,ee){var se=this[G];if(typeof se!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var ye=se.apply(this,arguments);return ee.apply(this,[ye].concat(x.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=T;R.exports=Q},YgsL:function(R,L,r){var y=r("QBsz"),f=y.distance;function x(m,p,d,u,a,i,t){var s=(d-m)*.5,e=(u-p)*.5;return(2*(p-d)+s+e)*t+(-3*(p-d)-2*s-e)*i+s*a+p}function A(m,p){for(var d=m.length,u=[],a=0,i=1;i<d;i++)a+=f(m[i-1],m[i]);var t=a/2;t=t<d?d:t;for(var i=0;i<t;i++){var s=i/(t-1)*(p?d:d-1),e=Math.floor(s),l=s-e,n,o=m[e%d],c,h;p?(n=m[(e-1+d)%d],c=m[(e+1)%d],h=m[(e+2)%d]):(n=m[e===0?e:e-1],c=m[e>d-2?d-1:e+1],h=m[e>d-3?d-1:e+2]);var g=l*l,v=l*g;u.push([x(n[0],o[0],c[0],h[0],l,g,v),x(n[1],o[1],c[1],h[1],l,g,v)])}return u}R.exports=A},Yl7c:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=".",m="___EC__COMPONENT__CONTAINER___";function p(n){var o={main:"",sub:""};return n&&(n=n.split(A),o.main=n[0]||"",o.sub=n[1]||""),o}function d(n){x.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function u(n,o){n.$constructor=n,n.extend=function(c){var h=this,g=function(){c.$constructor?c.$constructor.apply(this,arguments):h.apply(this,arguments)};return x.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=s,x.inherits(g,this),g.superClass=h,g}}var a=0;function i(n){var o=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");n.prototype[o]=!0,n.isInstance=function(c){return!!(c&&c[o])}}function t(n,o){var c=x.slice(arguments,2);return this.superClass.prototype[o].apply(n,c)}function s(n,o,c){return this.superClass.prototype[o].apply(n,c)}function e(n,o){o=o||{};var c={};n.registerClass=function(v,b){if(b){if(d(b),b=p(b),!b.sub)c[b.main]=v;else if(b.sub!==m){var S=h(b);S[b.sub]=v}}return v},n.getClass=function(v,b,S){var E=c[v];if(E&&E[m]&&(E=b?E[b]:null),S&&!E)throw new Error(b?"Component "+v+"."+(b||"")+" not exists. Load it first.":v+".type should be specified.");return E},n.getClassesByMainType=function(v){v=p(v);var b=[],S=c[v.main];return S&&S[m]?x.each(S,function(E,C){C!==m&&b.push(E)}):b.push(S),b},n.hasClass=function(v){return v=p(v),!!c[v.main]},n.getAllClassMainTypes=function(){var v=[];return x.each(c,function(b,S){v.push(S)}),v},n.hasSubTypes=function(v){v=p(v);var b=c[v.main];return b&&b[m]},n.parseClassType=p;function h(v){var b=c[v.main];return(!b||!b[m])&&(b=c[v.main]={},b[m]=!0),b}if(o.registerWhenExtend){var g=n.extend;g&&(n.extend=function(v){var b=g.call(this,v);return n.registerClass(b,v.type)})}return n}function l(n,o){}L.parseClassType=p,L.enableClassExtend=u,L.enableClassCheck=i,L.enableClassManagement=e,L.setReadOnly=l},Ynxi:function(R,L,r){var y=r("bYtY"),f=r("ProS"),x=r("IwbS"),A=r("+TT/"),m=A.getLayoutRect,p=r("7aKB"),d=p.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(u,a,i){if(this.group.removeAll(),!u.get("show"))return;var t=this.group,s=u.getModel("textStyle"),e=u.getModel("subtextStyle"),l=u.get("textAlign"),n=y.retrieve2(u.get("textBaseline"),u.get("textVerticalAlign")),o=new x.Text({style:x.setTextStyle({},s,{text:u.get("text"),textFill:s.getTextColor()},{disableBox:!0}),z2:10}),c=o.getBoundingRect(),h=u.get("subtext"),g=new x.Text({style:x.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+u.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=u.get("link"),b=u.get("sublink"),S=u.get("triggerEvent",!0);o.silent=!v&&!S,g.silent=!b&&!S,v&&o.on("click",function(){d(v,"_"+u.get("target"))}),b&&g.on("click",function(){d(v,"_"+u.get("subtarget"))}),o.eventData=g.eventData=S?{componentType:"title",componentIndex:u.componentIndex}:null,t.add(o),h&&t.add(g);var E=t.getBoundingRect(),C=u.getBoxLayoutParams();C.width=E.width,C.height=E.height;var _=m(C,{width:i.getWidth(),height:i.getHeight()},u.get("padding"));l||(l=u.get("left")||u.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),n||(n=u.get("top")||u.get("bottom"),n==="center"&&(n="middle"),n==="bottom"?_.y+=_.height:n==="middle"&&(_.y+=_.height/2),n=n||"top"),t.attr("position",[_.x,_.y]);var T={textAlign:l,textVerticalAlign:n};o.setStyle(T),g.setStyle(T),E=t.getBoundingRect();var w=_.margin,O=u.getItemStyle(["color","opacity"]);O.fill=u.get("backgroundColor");var I=new x.Rect({shape:{x:E.x-w[3],y:E.y-w[0],width:E.width+w[1]+w[3],height:E.height+w[0]+w[2],r:u.get("borderRadius")},style:O,subPixelOptimize:!0,silent:!0});t.add(I)}})},Z0Lh:function(R,L,r){"use strict";var y=r("TqRt");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var f=y(r("pVnL")),x=y(r("HjOm")),A=y(r("Z6rY")),m={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"]},x.default),timePickerLocale:(0,f.default)({},A.default)};m.lang.ok="\u786E \u5B9A";var p=m;L.default=p},Z0cm:function(R,L){var r=Array.isArray;R.exports=r},Z1HP:function(R,L,r){var y=r("ycre"),f=r("quyA"),x=r("q4HE");function A(m){return f(m)?x(m):y(m)}R.exports=A},Z1r0:function(R,L){function r(y){var f=y.findComponents({mainType:"legend"});if(!f||!f.length)return;y.eachSeriesByType("graph",function(x){var A=x.getCategoriesData(),m=x.getGraph(),p=m.data,d=A.mapArray(A.getName);p.filterSelf(function(u){var a=p.getItemModel(u),i=a.getShallow("category");if(i!=null){typeof i=="number"&&(i=d[i]);for(var t=0;t<f.length;t++)if(!f[t].isSelected(i))return!1}return!0})},this)}R.exports=r},Z1wy:function(R,L,r){var y=r("ProS");r("ThAp"),r("pmaE"),r("SehX"),r("7uqq");var f=r("zuHt"),x=r("VPsl"),A=r("9u0u"),m=r("lELe"),p=r("d4KN");y.registerLayout(f),y.registerVisual(x),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A),y.registerPreprocessor(m),p("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(R,L,r){var y=r("MwEJ"),f=r("T4UG"),x=f.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});R.exports=x},Z6rY:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},f=y;L.default=f},Z8oC:function(R,L,r){var y=r("y1pI");function f(x,A){var m=this.__data__,p=y(m,x);return p<0?(++this.size,m.push([x,A])):m[p][1]=A,this}R.exports=f},Z8zF:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("IwbS"),p=r("56rv"),d=p.setLabel,u=r("Qxkt"),a=r("tceW"),i=r("y+Vt"),t=r("4fz+"),s=r("iLNv"),e=s.throttle,l=r("sK/D"),n=l.createClipPath,o=r("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];A.extend(u.prototype,a);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var ee=V.getBaseAxis();if(ee.type!=="category"||!ee.onBand){var se=Q.getLayout("bandWidth");ee.isHorizontal()?(G.x-=se,G.width+=se*2):(G.y-=se,G.height+=se*2)}}return G}var v=x.extendChartView({type:"bar",render:function(V,Q,G){this._updateDrawMode(V);var ee=V.get("coordinateSystem");return(ee==="cartesian2d"||ee==="polar")&&(this._isLargeDraw?this._renderLarge(V,Q,G):this._renderNormal(V,Q,G)),this.group},incrementalPrepareRender:function(V,Q,G){this._clear(),this._updateDrawMode(V)},incrementalRender:function(V,Q,G,ee){this._incrementalRenderLarge(V,Q)},_updateDrawMode:function(V){var Q=V.pipelineContext.large;(this._isLargeDraw==null||Q^this._isLargeDraw)&&(this._isLargeDraw=Q,this._clear())},_renderNormal:function(V,Q,G){var ee=this.group,se=V.getData(),ye=this._data,he=V.coordinateSystem,ke=he.getBaseAxis(),Pe;he.type==="cartesian2d"?Pe=ke.isHorizontal():he.type==="polar"&&(Pe=ke.dim==="angle");var Ue=V.isAnimationEnabled()?V:null,$e=V.get("clip",!0),Ge=g(he,se);ee.removeClipPath();var ht=V.get("roundCap",!0),Fe=V.get("showBackground",!0),oe=V.getModel("backgroundStyle"),rt=oe.get("barBorderRadius")||0,fe=[],J=this._backgroundEls||[];se.diff(ye).add(function(de){var we=se.getItemModel(de),Ce=w[he.type](se,de,we);if(Fe){var Se=w[he.type](se,de),le=z(he,Pe,Se);le.useStyle(oe.getBarItemStyle()),he.type==="cartesian2d"&&le.setShape("r",rt),fe[de]=le}if(!se.hasValue(de))return;if($e){var pe=E[he.type](Ge,Ce);if(pe){ee.remove(_e);return}}var _e=C[he.type](de,Ce,Pe,Ue,!1,ht);se.setItemGraphicEl(de,_e),ee.add(_e),I(_e,se,de,we,Ce,V,Pe,he.type==="polar")}).update(function(de,we){var Ce=se.getItemModel(de),Se=w[he.type](se,de,Ce);if(Fe){var le=J[we];le.useStyle(oe.getBarItemStyle()),he.type==="cartesian2d"&&le.setShape("r",rt),fe[de]=le;var pe=w[he.type](se,de),_e=K(Pe,pe,he);m.updateProps(le,{shape:_e},Ue,de)}var tt=ye.getItemGraphicEl(we);if(!se.hasValue(de)){ee.remove(tt);return}if($e){var gt=E[he.type](Ge,Se);if(gt){ee.remove(tt);return}}tt?m.updateProps(tt,{shape:Se},Ue,de):tt=C[he.type](de,Se,Pe,Ue,!0,ht),se.setItemGraphicEl(de,tt),ee.add(tt),I(tt,se,de,Ce,Se,V,Pe,he.type==="polar")}).remove(function(de){var we=ye.getItemGraphicEl(de);he.type==="cartesian2d"?we&&_(de,Ue,we):we&&T(de,Ue,we)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var $=0;$<fe.length;++$)Y.add(fe[$]);ee.add(Y),this._backgroundEls=fe,this._data=se},_renderLarge:function(V,Q,G){this._clear(),U(V,this.group);var ee=V.get("clip",!0)?n(V.coordinateSystem,!1,V):null;ee?this.group.setClipPath(ee):this.group.removeClipPath()},_incrementalRenderLarge:function(V,Q){this._removeBackground(),U(Q,this.group,!0)},dispose:A.noop,remove:function(V){this._clear(V)},_clear:function(V){var Q=this.group,G=this._data;V&&V.get("animation")&&G&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],G.eachItemGraphicEl(function(ee){ee.type==="sector"?T(ee.dataIndex,V,ee):_(ee.dataIndex,V,ee)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,S=Math.min,E={cartesian2d:function(V,Q){var G=Q.width<0?-1:1,ee=Q.height<0?-1:1;G<0&&(Q.x+=Q.width,Q.width=-Q.width),ee<0&&(Q.y+=Q.height,Q.height=-Q.height);var se=b(Q.x,V.x),ye=S(Q.x+Q.width,V.x+V.width),he=b(Q.y,V.y),ke=S(Q.y+Q.height,V.y+V.height);Q.x=se,Q.y=he,Q.width=ye-se,Q.height=ke-he;var Pe=Q.width<0||Q.height<0;return G<0&&(Q.x+=Q.width,Q.width=-Q.width),ee<0&&(Q.y+=Q.height,Q.height=-Q.height),Pe},polar:function(V){return!1}},C={cartesian2d:function(V,Q,G,ee,se){var ye=new m.Rect({shape:A.extend({},Q),z2:1});if(ye.name="item",ee){var he=ye.shape,ke=G?"height":"width",Pe={};he[ke]=0,Pe[ke]=Q[ke],m[se?"updateProps":"initProps"](ye,{shape:Pe},ee,V)}return ye},polar:function(V,Q,G,ee,se,ye){var he=Q.startAngle<Q.endAngle,ke=!G&&ye?o:m.Sector,Pe=new ke({shape:A.defaults({clockwise:he},Q),z2:1});if(Pe.name="item",ee){var Ue=Pe.shape,$e=G?"r":"endAngle",Ge={};Ue[$e]=G?0:Q.startAngle,Ge[$e]=Q[$e],m[se?"updateProps":"initProps"](Pe,{shape:Ge},ee,V)}return Pe}};function _(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function T(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var w={cartesian2d:function(V,Q,G){var ee=V.getItemLayout(Q),se=G?k(G,ee):0,ye=ee.width>0?1:-1,he=ee.height>0?1:-1;return{x:ee.x+ye*se/2,y:ee.y+he*se/2,width:ee.width-ye*se,height:ee.height-he*se}},polar:function(V,Q,G){var ee=V.getItemLayout(Q);return{cx:ee.cx,cy:ee.cy,r0:ee.r0,r:ee.r,startAngle:ee.startAngle,endAngle:ee.endAngle}}};function O(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function I(V,Q,G,ee,se,ye,he,ke){var Pe=Q.getItemVisual(G,"color"),Ue=Q.getItemVisual(G,"opacity"),$e=Q.getVisual("borderColor"),Ge=ee.getModel("itemStyle"),ht=ee.getModel("emphasis.itemStyle").getBarItemStyle();ke||V.setShape("r",Ge.get("barBorderRadius")||0),V.useStyle(A.defaults({stroke:O(se)?"none":$e,fill:O(se)?"none":Pe,opacity:Ue},Ge.getBarItemStyle()));var Fe=ee.getShallow("cursor");Fe&&V.attr("cursor",Fe);var oe=he?se.height>0?"bottom":"top":se.width>0?"left":"right";ke||d(V.style,ht,ee,Pe,ye,G,oe),O(se)&&(ht.fill=ht.stroke="none"),m.setHoverStyle(V,ht)}function k(V,Q){var G=V.get(c)||0,ee=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),se=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,ee,se)}var M=i.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,ee=this.__startPoint,se=this.__baseDimIdx,ye=0;ye<G.length;ye+=2)ee[se]=G[ye+se],V.moveTo(ee[0],ee[1]),V.lineTo(G[ye],G[ye+1])}});function U(V,Q,G){var ee=V.getData(),se=[],ye=ee.getLayout("valueAxisHorizontal")?1:0;se[1-ye]=ee.getLayout("valueAxisStart");var he=ee.getLayout("largeDataIndices"),ke=ee.getLayout("barWidth"),Pe=V.getModel("backgroundStyle"),Ue=V.get("showBackground",!0);if(Ue){var $e=ee.getLayout("largeBackgroundPoints"),Ge=[];Ge[1-ye]=ee.getLayout("backgroundStart");var ht=new M({shape:{points:$e},incremental:!!G,__startPoint:Ge,__baseDimIdx:ye,__largeDataIndices:he,__barWidth:ke,silent:!0,z2:0});j(ht,Pe,ee),Q.add(ht)}var Fe=new M({shape:{points:ee.getLayout("largePoints")},incremental:!!G,__startPoint:se,__baseDimIdx:ye,__largeDataIndices:he,__barWidth:ke});Q.add(Fe),F(Fe,V,ee),Fe.seriesIndex=V.seriesIndex,V.get("silent")||(Fe.on("mousedown",P),Fe.on("mousemove",P))}var P=e(function(V){var Q=this,G=X(Q,V.offsetX,V.offsetY);Q.dataIndex=G>=0?G:null},30,!1);function X(V,Q,G){var ee=V.__baseDimIdx,se=1-ee,ye=V.shape.points,he=V.__largeDataIndices,ke=Math.abs(V.__barWidth/2),Pe=V.__startPoint[se];h[0]=Q,h[1]=G;for(var Ue=h[ee],$e=h[1-ee],Ge=Ue-ke,ht=Ue+ke,Fe=0,oe=ye.length/2;Fe<oe;Fe++){var rt=Fe*2,fe=ye[rt+ee],J=ye[rt+se];if(fe>=Ge&&fe<=ht&&(Pe<=J?$e>=Pe&&$e<=J:$e>=J&&$e<=Pe))return he[Fe]}return-1}function F(V,Q,G){var ee=G.getVisual("borderColor")||G.getVisual("color"),se=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle(se),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function j(V,Q,G){var ee=Q.get("borderColor")||Q.get("color"),se=Q.getItemStyle(["color","borderColor"]);V.useStyle(se),V.style.fill=null,V.style.stroke=ee,V.style.lineWidth=G.getLayout("barWidth")}function K(V,Q,G){var ee,se=G.type==="polar";return se?ee=G.getArea():ee=G.grid.getRect(),se?{cx:ee.cx,cy:ee.cy,r0:V?ee.r0:Q.r0,r:V?ee.r:Q.r,startAngle:V?Q.startAngle:0,endAngle:V?Q.endAngle:Math.PI*2}:{x:V?Q.x:ee.x,y:V?ee.y:Q.y,width:V?Q.width:ee.width,height:V?ee.height:Q.height}}function z(V,Q,G){var ee=V.type==="polar"?m.Sector:m.Rect;return new ee({shape:K(Q,G,V),silent:!0,z2:0})}R.exports=v},ZCgT:function(R,L,r){var y=r("tLB3"),f=1/0,x=17976931348623157e292;function A(m){if(!m)return m===0?m:0;if(m=y(m),m===f||m===-f){var p=m<0?-1:1;return p*x}return m===m?m:0}R.exports=A},ZLWo:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},ZTPi:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r("rePB"),d=r("ODXe"),u=r("Ff2n"),a=r("VTBJ"),i=r("TSYQ"),t=r.n(i),s=r("Zm9Q"),e=r("6cGi"),l=r("KQm4"),n=r("xEkU"),o=r.n(n),c=r("1OyB"),h=r("vuIU"),g=r("Ji7U"),v=r("LK+K"),b=r("m+aA"),S=r("Kwbf"),E=r("c+Xe"),C=r("bdgK"),_="rc-observer-key",T=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(){var Wt;return Object(c.a)(this,Gn),Wt=Sn.apply(this,arguments),Wt.resizeObserver=null,Wt.childNode=null,Wt.currentElement=null,Wt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Wt.onResize=function(Ot){var Rt=Wt.props.onResize,Ut=Ot[0].target,Kt=Ut.getBoundingClientRect(),Lt=Kt.width,cr=Kt.height,vr=Ut.offsetWidth,yr=Ut.offsetHeight,Rr=Math.floor(Lt),Vn=Math.floor(cr);if(Wt.state.width!==Rr||Wt.state.height!==Vn||Wt.state.offsetWidth!==vr||Wt.state.offsetHeight!==yr){var kn={width:Rr,height:Vn,offsetWidth:vr,offsetHeight:yr};Wt.setState(kn),Rt&&Promise.resolve().then(function(){Rt(Object(a.a)(Object(a.a)({},kn),{},{offsetWidth:vr,offsetHeight:yr}))})}},Wt.setChildNode=function(Ot){Wt.childNode=Ot},Wt}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Ot=this.props.disabled;if(Ot){this.destroyObserver();return}var Rt=Object(b.a)(this.childNode||this),Ut=Rt!==this.currentElement;Ut&&(this.destroyObserver(),this.currentElement=Rt),!this.resizeObserver&&Rt&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(Rt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Ot=this.props.children,Rt=Object(s.a)(Ot);if(Rt.length>1)Object(S.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Rt.length===0)return Object(S.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ut=Rt[0];if(m.isValidElement(Ut)&&Object(E.c)(Ut)){var Kt=Ut.ref;Rt[0]=m.cloneElement(Ut,{ref:Object(E.a)(Kt,this.setChildNode)})}return Rt.length===1?Rt[0]:Rt.map(function(Lt,cr){return!m.isValidElement(Lt)||"key"in Lt&&Lt.key!==null?Lt:m.cloneElement(Lt,{key:"".concat(_,"-").concat(cr)})})}}]),Gn}(m.Component);T.displayName="ResizeObserver";var w=T;function O(Zr){var Sn=Object(m.useRef)(),Gn=Object(m.useRef)(!1);function Wt(){for(var Ot=arguments.length,Rt=new Array(Ot),Ut=0;Ut<Ot;Ut++)Rt[Ut]=arguments[Ut];Gn.current||(o.a.cancel(Sn.current),Sn.current=o()(function(){Zr.apply(void 0,Rt)}))}return Object(m.useEffect)(function(){return function(){Gn.current=!0,o.a.cancel(Sn.current)}},[]),Wt}function I(Zr){var Sn=Object(m.useRef)([]),Gn=Object(m.useState)({}),Wt=Object(d.a)(Gn,2),Ot=Wt[1],Rt=Object(m.useRef)(typeof Zr=="function"?Zr():Zr),Ut=O(function(){var Lt=Rt.current;Sn.current.forEach(function(cr){Lt=cr(Lt)}),Sn.current=[],Rt.current=Lt,Ot({})});function Kt(Lt){Sn.current.push(Lt),Ut()}return[Rt.current,Kt]}var k=r("4IlW");function M(Zr,Sn){var Gn,Wt=Zr.prefixCls,Ot=Zr.id,Rt=Zr.active,Ut=Zr.rtl,Kt=Zr.tab,Lt=Kt.key,cr=Kt.tab,vr=Kt.disabled,yr=Kt.closeIcon,Rr=Zr.tabBarGutter,Vn=Zr.tabPosition,kn=Zr.closable,di=Zr.renderWrapper,pn=Zr.removeAriaLabel,Br=Zr.editable,_n=Zr.onClick,Xn=Zr.onRemove,$n=Zr.onFocus,oi="".concat(Wt,"-tab");m.useEffect(function(){return Xn},[]);var Ti={};Vn==="top"||Vn==="bottom"?Ti[Ut?"marginLeft":"marginRight"]=Rr:Ti.marginBottom=Rr;var Ri=Br&&kn!==!1&&!vr;function Di(aa){if(vr)return;_n(aa)}function oa(aa){aa.preventDefault(),aa.stopPropagation(),Br.onEdit("remove",{key:Lt,event:aa})}var ma=m.createElement("div",{key:Lt,ref:Sn,className:t()(oi,(Gn={},Object(p.a)(Gn,"".concat(oi,"-with-remove"),Ri),Object(p.a)(Gn,"".concat(oi,"-active"),Rt),Object(p.a)(Gn,"".concat(oi,"-disabled"),vr),Gn)),style:Ti,onClick:Di},m.createElement("div",{role:"tab","aria-selected":Rt,id:Ot&&"".concat(Ot,"-tab-").concat(Lt),className:"".concat(oi,"-btn"),"aria-controls":Ot&&"".concat(Ot,"-panel-").concat(Lt),"aria-disabled":vr,tabIndex:vr?null:0,onClick:function(ba){ba.stopPropagation(),Di(ba)},onKeyDown:function(ba){[k.a.SPACE,k.a.ENTER].includes(ba.which)&&(ba.preventDefault(),Di(ba))},onFocus:$n},cr),Ri&&m.createElement("button",{type:"button","aria-label":pn||"remove",tabIndex:0,className:"".concat(oi,"-remove"),onClick:function(ba){ba.stopPropagation(),oa(ba)}},yr||Br.removeIcon||"\xD7"));return di&&(ma=di(ma)),ma}var U=m.forwardRef(M),P={width:0,height:0,left:0,top:0};function X(Zr,Sn,Gn){return Object(m.useMemo)(function(){for(var Wt,Ot=new Map,Rt=Sn.get((Wt=Zr[0])===null||Wt===void 0?void 0:Wt.key)||P,Ut=Rt.left+Rt.width,Kt=0;Kt<Zr.length;Kt+=1){var Lt=Zr[Kt].key,cr=Sn.get(Lt);if(!cr){var vr;cr=Sn.get((vr=Zr[Kt-1])===null||vr===void 0?void 0:vr.key)||P}var yr=Ot.get(Lt)||Object(a.a)({},cr);yr.right=Ut-yr.left-yr.width,Ot.set(Lt,yr)}return Ot},[Zr.map(function(Wt){return Wt.key}).join("_"),Sn,Gn])}var F={width:0,height:0,left:0,top:0,right:0};function j(Zr,Sn,Gn,Wt,Ot){var Rt=Ot.tabs,Ut=Ot.tabPosition,Kt=Ot.rtl,Lt,cr,vr;["top","bottom"].includes(Ut)?(Lt="width",cr=Kt?"right":"left",vr=Math.abs(Sn.left)):(Lt="height",cr="top",vr=-Sn.top);var yr=Sn[Lt],Rr=Gn[Lt],Vn=Wt[Lt],kn=yr;return Rr+Vn>yr&&(kn=yr-Vn),Object(m.useMemo)(function(){if(!Rt.length)return[0,0];for(var di=Rt.length,pn=di,Br=0;Br<di;Br+=1){var _n=Zr.get(Rt[Br].key)||F;if(_n[cr]+_n[Lt]>vr+kn){pn=Br-1;break}}for(var Xn=0,$n=di-1;$n>=0;$n-=1){var oi=Zr.get(Rt[$n].key)||F;if(oi[cr]<vr){Xn=$n+1;break}}return[Xn,pn]},[Zr,vr,kn,Ut,Rt.map(function(di){return di.key}).join("_"),Kt])}var K=r("wx14"),z=r("JX7q"),V=r("I8Z2"),Q=r("bT9E"),G=r("2GS6"),ee=r("Gytx"),se=r.n(ee),ye=r("U8pU"),he=/iPhone/i,ke=/iPod/i,Pe=/iPad/i,Ue=/\bAndroid(?:.+)Mobile\b/i,$e=/Android/i,Ge=/\bAndroid(?:.+)SD4930UR\b/i,ht=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Fe=/Windows Phone/i,oe=/\bWindows(?:.+)ARM\b/i,rt=/BlackBerry/i,fe=/BB10/i,J=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i;function de(Zr,Sn){return Zr.test(Sn)}function we(Zr){var Sn=Zr||(typeof navigator!="undefined"?navigator.userAgent:""),Gn=(Sn||"").split("[FBAN");if(typeof Gn[1]!="undefined"){var Wt=Gn,Ot=Object(d.a)(Wt,1);Sn=Ot[0]}if(Gn=Sn.split("Twitter"),typeof Gn[1]!="undefined"){var Rt=Gn,Ut=Object(d.a)(Rt,1);Sn=Ut[0]}var Kt={apple:{phone:de(he,Sn)&&!de(Fe,Sn),ipod:de(ke,Sn),tablet:!de(he,Sn)&&de(Pe,Sn)&&!de(Fe,Sn),device:(de(he,Sn)||de(ke,Sn)||de(Pe,Sn))&&!de(Fe,Sn)},amazon:{phone:de(Ge,Sn),tablet:!de(Ge,Sn)&&de(ht,Sn),device:de(Ge,Sn)||de(ht,Sn)},android:{phone:!de(Fe,Sn)&&de(Ge,Sn)||!de(Fe,Sn)&&de(Ue,Sn),tablet:!de(Fe,Sn)&&!de(Ge,Sn)&&!de(Ue,Sn)&&(de(ht,Sn)||de($e,Sn)),device:!de(Fe,Sn)&&(de(Ge,Sn)||de(ht,Sn)||de(Ue,Sn)||de($e,Sn))||de(/\bokhttp\b/i,Sn)},windows:{phone:de(Fe,Sn),tablet:de(oe,Sn),device:de(Fe,Sn)||de(oe,Sn)},other:{blackberry:de(rt,Sn),blackberry10:de(fe,Sn),opera:de(J,Sn),firefox:de($,Sn),chrome:de(Y,Sn),device:de(rt,Sn)||de(fe,Sn)||de(J,Sn)||de($,Sn)||de(Y,Sn)},any:null,phone:null,tablet:null};return Kt.any=Kt.apple.device||Kt.android.device||Kt.windows.device||Kt.other.device,Kt.phone=Kt.apple.phone||Kt.android.phone||Kt.windows.phone,Kt.tablet=Kt.apple.tablet||Kt.android.tablet||Kt.windows.tablet,Kt}var Ce=Object(a.a)(Object(a.a)({},we()),{},{isMobile:we}),Se=Ce;function le(){}function pe(Zr,Sn,Gn){var Wt=Sn||"";return Zr.key||"".concat(Wt,"item_").concat(Gn)}function _e(Zr){return"".concat(Zr,"-menu-")}function tt(Zr,Sn){var Gn=-1;m.Children.forEach(Zr,function(Wt){Gn+=1,Wt&&Wt.type&&Wt.type.isMenuItemGroup?m.Children.forEach(Wt.props.children,function(Ot){Gn+=1,Sn(Ot,Gn)}):Sn(Wt,Gn)})}function gt(Zr,Sn,Gn){if(!Zr||Gn.find)return;m.Children.forEach(Zr,function(Wt){if(Wt){var Ot=Wt.type;if(!Ot||!(Ot.isSubMenu||Ot.isMenuItem||Ot.isMenuItemGroup))return;Sn.indexOf(Wt.key)!==-1?Gn.find=!0:Wt.props.children&&gt(Wt.props.children,Sn,Gn)}})}var ct=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],je=function(Sn){var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Sn&&typeof Sn.getBoundingClientRect=="function"&&Sn.getBoundingClientRect().width;if(Wt){if(Gn){var Ot=getComputedStyle(Sn),Rt=Ot.marginLeft,Ut=Ot.marginRight;Wt+=+Rt.replace("px","")+ +Ut.replace("px","")}Wt=+Wt.toFixed(6)}return Wt||0},Zt=function(Sn,Gn,Wt){Sn&&Object(ye.a)(Sn.style)==="object"&&(Sn.style[Gn]=Wt)},ut=function(){return Se.any},Ht=r("i8i4"),dr=r("uciX"),Vt=r("wgJM"),Mt=r("8XRh"),Gt={adjustX:1,adjustY:1},Ve={topLeft:{points:["bl","tl"],overflow:Gt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Gt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Gt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Gt,offset:[4,0]}},me={topLeft:{points:["bl","tl"],overflow:Gt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Gt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Gt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Gt,offset:[4,0]}},te=Ve,Ze=0,Xe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ue=function(Sn,Gn,Wt){var Ot=_e(Gn),Rt=Sn.getState();Sn.setState({defaultActiveFirst:Object(a.a)(Object(a.a)({},Rt.defaultActiveFirst),{},Object(p.a)({},Ot,Wt))})},St=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(Wt){var Ot;Object(c.a)(this,Gn),Ot=Sn.call(this,Wt),Ot.onDestroy=function(vr){Ot.props.onDestroy(vr)},Ot.onKeyDown=function(vr){var yr=vr.keyCode,Rr=Ot.menuInstance,Vn=Ot.props.store,kn=Ot.getVisible();if(yr===k.a.ENTER)return Ot.onTitleClick(vr),ue(Vn,Ot.props.eventKey,!0),!0;if(yr===k.a.RIGHT)return kn?Rr.onKeyDown(vr):(Ot.triggerOpenChange(!0),ue(Vn,Ot.props.eventKey,!0)),!0;if(yr===k.a.LEFT){var di;if(kn)di=Rr.onKeyDown(vr);else return;return di||(Ot.triggerOpenChange(!1),di=!0),di}return kn&&(yr===k.a.UP||yr===k.a.DOWN)?Rr.onKeyDown(vr):void 0},Ot.onOpenChange=function(vr){Ot.props.onOpenChange(vr)},Ot.onPopupVisibleChange=function(vr){Ot.triggerOpenChange(vr,vr?"mouseenter":"mouseleave")},Ot.onMouseEnter=function(vr){var yr=Ot.props,Rr=yr.eventKey,Vn=yr.onMouseEnter,kn=yr.store;ue(kn,Ot.props.eventKey,!1),Vn({key:Rr,domEvent:vr})},Ot.onMouseLeave=function(vr){var yr=Ot.props,Rr=yr.parentMenu,Vn=yr.eventKey,kn=yr.onMouseLeave;Rr.subMenuInstance=Object(z.a)(Ot),kn({key:Vn,domEvent:vr})},Ot.onTitleMouseEnter=function(vr){var yr=Ot.props,Rr=yr.eventKey,Vn=yr.onItemHover,kn=yr.onTitleMouseEnter;Vn({key:Rr,hover:!0}),kn({key:Rr,domEvent:vr})},Ot.onTitleMouseLeave=function(vr){var yr=Ot.props,Rr=yr.parentMenu,Vn=yr.eventKey,kn=yr.onItemHover,di=yr.onTitleMouseLeave;Rr.subMenuInstance=Object(z.a)(Ot),kn({key:Vn,hover:!1}),di({key:Vn,domEvent:vr})},Ot.onTitleClick=function(vr){var yr=Object(z.a)(Ot),Rr=yr.props;if(Rr.onTitleClick({key:Rr.eventKey,domEvent:vr}),Rr.triggerSubMenuAction==="hover")return;Ot.triggerOpenChange(!Ot.getVisible(),"click"),ue(Rr.store,Ot.props.eventKey,!1)},Ot.onSubMenuClick=function(vr){typeof Ot.props.onClick=="function"&&Ot.props.onClick(Ot.addKeyPath(vr))},Ot.onSelect=function(vr){Ot.props.onSelect(vr)},Ot.onDeselect=function(vr){Ot.props.onDeselect(vr)},Ot.getPrefixCls=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu")},Ot.getActiveClassName=function(){return"".concat(Ot.getPrefixCls(),"-active")},Ot.getDisabledClassName=function(){return"".concat(Ot.getPrefixCls(),"-disabled")},Ot.getSelectedClassName=function(){return"".concat(Ot.getPrefixCls(),"-selected")},Ot.getOpenClassName=function(){return"".concat(Ot.props.rootPrefixCls,"-submenu-open")},Ot.getVisible=function(){return Ot.state.isOpen},Ot.getMode=function(){return Ot.state.mode},Ot.saveMenuInstance=function(vr){Ot.menuInstance=vr},Ot.addKeyPath=function(vr){return Object(a.a)(Object(a.a)({},vr),{},{keyPath:(vr.keyPath||[]).concat(Ot.props.eventKey)})},Ot.triggerOpenChange=function(vr,yr){var Rr=Ot.props.eventKey,Vn=function(){Ot.onOpenChange({key:Rr,item:Object(z.a)(Ot),trigger:yr,open:vr})};yr==="mouseenter"?Ot.mouseenterTimeout=setTimeout(function(){Vn()},0):Vn()},Ot.isChildrenSelected=function(){var vr={find:!1};return gt(Ot.props.children,Ot.props.selectedKeys,vr),vr.find},Ot.isInlineMode=function(){return Ot.getMode()==="inline"},Ot.adjustWidth=function(){if(!Ot.subMenuTitle||!Ot.menuInstance)return;var vr=Ht.findDOMNode(Ot.menuInstance);if(vr.offsetWidth>=Ot.subMenuTitle.offsetWidth)return;vr.style.minWidth="".concat(Ot.subMenuTitle.offsetWidth,"px")},Ot.saveSubMenuTitle=function(vr){Ot.subMenuTitle=vr},Ot.getBaseProps=function(){var vr=Object(z.a)(Ot),yr=vr.props,Rr=Ot.getMode();return{mode:Rr==="horizontal"?"vertical":Rr,visible:Ot.getVisible(),level:yr.level+1,inlineIndent:yr.inlineIndent,focusable:!1,onClick:Ot.onSubMenuClick,onSelect:Ot.onSelect,onDeselect:Ot.onDeselect,onDestroy:Ot.onDestroy,selectedKeys:yr.selectedKeys,eventKey:"".concat(yr.eventKey,"-menu-"),openKeys:yr.openKeys,motion:yr.motion,onOpenChange:Ot.onOpenChange,subMenuOpenDelay:yr.subMenuOpenDelay,parentMenu:Object(z.a)(Ot),subMenuCloseDelay:yr.subMenuCloseDelay,forceSubMenuRender:yr.forceSubMenuRender,triggerSubMenuAction:yr.triggerSubMenuAction,builtinPlacements:yr.builtinPlacements,defaultActiveFirst:yr.store.getState().defaultActiveFirst[_e(yr.eventKey)],multiple:yr.multiple,prefixCls:yr.rootPrefixCls,id:Ot.internalMenuId,manualRef:Ot.saveMenuInstance,itemIcon:yr.itemIcon,expandIcon:yr.expandIcon,direction:yr.direction}},Ot.getMotion=function(vr,yr){var Rr=Object(z.a)(Ot),Vn=Rr.haveRendered,kn=Ot.props,di=kn.motion,pn=kn.rootPrefixCls,Br=Object(a.a)(Object(a.a)({},di),{},{leavedClassName:"".concat(pn,"-hidden"),removeOnLeave:!1,motionAppear:Vn||!yr||vr!=="inline"});return Br};var Rt=Wt.store,Ut=Wt.eventKey,Kt=Rt.getState(),Lt=Kt.defaultActiveFirst;Ot.isRootMenu=!1;var cr=!1;return Lt&&(cr=Lt[Ut]),ue(Rt,Ut,cr),Ot.state={mode:Wt.mode,isOpen:Wt.isOpen},Ot}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ot=this,Rt=this.props,Ut=Rt.mode,Kt=Rt.parentMenu,Lt=Rt.manualRef,cr=Rt.isOpen,vr=function(){Ot.setState({mode:Ut,isOpen:cr})},yr=cr!==this.state.isOpen,Rr=Ut!==this.state.mode;if((Rr||yr)&&(Vt.a.cancel(this.updateStateRaf),Rr?this.updateStateRaf=Object(Vt.a)(vr):vr()),Lt&&Lt(this),Ut!=="horizontal"||!(Kt==null?void 0:Kt.isRootMenu)||!cr)return;this.minWidthTimeout=setTimeout(function(){return Ot.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ot=this.props,Rt=Ot.onDestroy,Ut=Ot.eventKey;Rt&&Rt(Ut),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Vt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Ot,Rt){var Ut=this.getBaseProps();return m.createElement(Bn,Object(K.a)({},Ut,{id:this.internalMenuId,className:Ot,style:Rt}),this.props.children)}},{key:"renderChildren",value:function(){var Ot=this,Rt=this.getBaseProps(),Ut=Rt.mode,Kt=Rt.visible,Lt=Rt.forceSubMenuRender,cr=Rt.direction,vr=this.getMotion(Ut,Kt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Kt||Lt,!this.haveOpened)return m.createElement("div",null);var yr=t()("".concat(Rt.prefixCls,"-sub"),Object(p.a)({},"".concat(Rt.prefixCls,"-rtl"),cr==="rtl"));return this.isInlineMode()?m.createElement(Mt.b,Object(K.a)({visible:Rt.visible,forceRender:Lt},vr),function(Rr){var Vn=Rr.className,kn=Rr.style,di=t()(yr,Vn);return Ot.renderPopupMenu(di,kn)}):this.renderPopupMenu(yr)}},{key:"render",value:function(){var Ot,Rt,Ut,Kt=Object(a.a)({},this.props),Lt=this.getVisible(),cr=this.getPrefixCls(),vr=this.isInlineMode(),yr=this.getMode(),Rr=t()(cr,"".concat(cr,"-").concat(yr),(Ot={},Object(p.a)(Ot,Kt.className,!!Kt.className),Object(p.a)(Ot,this.getOpenClassName(),Lt),Object(p.a)(Ot,this.getActiveClassName(),Kt.active||Lt&&!vr),Object(p.a)(Ot,this.getDisabledClassName(),Kt.disabled),Object(p.a)(Ot,this.getSelectedClassName(),this.isChildrenSelected()),Ot));this.internalMenuId||(Kt.eventKey?this.internalMenuId="".concat(Kt.eventKey,"$Menu"):(Ze+=1,this.internalMenuId="$__$".concat(Ze,"$Menu")));var Vn={},kn={},di={};Kt.disabled||(Vn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},kn={onClick:this.onTitleClick},di={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var pn={},Br=Kt.direction,_n=Br==="rtl";vr&&(_n?pn.paddingRight=Kt.inlineIndent*Kt.level:pn.paddingLeft=Kt.inlineIndent*Kt.level);var Xn={};this.getVisible()&&(Xn={"aria-owns":this.internalMenuId});var $n=null;yr!=="horizontal"&&($n=this.props.expandIcon,typeof this.props.expandIcon=="function"&&($n=m.createElement(this.props.expandIcon,Object(a.a)({},this.props))));var oi=m.createElement("div",Object(K.a)({ref:this.saveSubMenuTitle,style:pn,className:"".concat(cr,"-title"),role:"button"},di,kn,{"aria-expanded":Lt},Xn,{"aria-haspopup":"true",title:typeof Kt.title=="string"?Kt.title:void 0}),Kt.title,$n||m.createElement("i",{className:"".concat(cr,"-arrow")})),Ti=this.renderChildren(),Ri=((Rt=Kt.parentMenu)===null||Rt===void 0?void 0:Rt.isRootMenu)?Kt.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},Di=Xe[yr],oa=Kt.popupOffset?{offset:Kt.popupOffset}:{},ma=t()((Ut={},Object(p.a)(Ut,Kt.popupClassName,Kt.popupClassName&&!vr),Object(p.a)(Ut,"".concat(cr,"-rtl"),_n),Ut)),aa=Kt.disabled,ba=Kt.triggerSubMenuAction,bi=Kt.subMenuOpenDelay,Rn=Kt.forceSubMenuRender,ji=Kt.subMenuCloseDelay,ha=Kt.builtinPlacements;ct.forEach(function(Sr){return delete Kt[Sr]}),delete Kt.onClick;var ta=_n?Object(a.a)(Object(a.a)({},me),ha):Object(a.a)(Object(a.a)({},Ve),ha);delete Kt.direction;var ra=this.getBaseProps(),Ir=vr?null:this.getMotion(ra.mode,ra.visible);return m.createElement("li",Object(K.a)({},Kt,Vn,{className:Rr,role:"menuitem"}),m.createElement(dr.a,{prefixCls:cr,popupClassName:t()("".concat(cr,"-popup"),ma),getPopupContainer:Ri,builtinPlacements:ta,popupPlacement:Di,popupVisible:vr?!1:Lt,popupAlign:oa,popup:vr?null:Ti,action:aa||vr?[]:[ba],mouseEnterDelay:bi,mouseLeaveDelay:ji,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Rn,popupMotion:Ir},oi),vr?Ti:null)}}]),Gn}(m.Component);St.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Qt=Object(V.b)(function(Zr,Sn){var Gn=Zr.openKeys,Wt=Zr.activeKey,Ot=Zr.selectedKeys,Rt=Sn.eventKey,Ut=Sn.subMenuKey;return{isOpen:Gn.indexOf(Rt)>-1,active:Wt[Ut]===Rt,selectedKeys:Ot}})(St);Qt.isSubMenu=!0;var dt=Qt,Jt="menuitem-overflowed",$t=.5,tn=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(){var Wt;return Object(c.a)(this,Gn),Wt=Sn.apply(this,arguments),Wt.resizeObserver=null,Wt.mutationObserver=null,Wt.originalTotalWidth=0,Wt.overflowedItems=[],Wt.menuItemSizes=[],Wt.cancelFrameId=null,Wt.state={lastVisibleIndex:void 0},Wt.childRef=m.createRef(),Wt.getMenuItemNodes=function(){var Ot=Wt.props.prefixCls,Rt=Wt.childRef.current;return Rt?[].slice.call(Rt.children).filter(function(Ut){return Ut.className.split(" ").indexOf("".concat(Ot,"-overflowed-submenu"))<0}):[]},Wt.getOverflowedSubMenuItem=function(Ot,Rt,Ut){var Kt=Wt.props,Lt=Kt.overflowedIndicator,cr=Kt.level,vr=Kt.mode,yr=Kt.prefixCls,Rr=Kt.theme;if(cr!==1||vr!=="horizontal")return null;var Vn=Wt.props.children[0],kn=Vn.props,di=kn.children,pn=kn.title,Br=kn.style,_n=Object(u.a)(kn,["children","title","style"]),Xn=Object(a.a)({},Br),$n="".concat(Ot,"-overflowed-indicator"),oi="".concat(Ot,"-overflowed-indicator");Rt.length===0&&Ut!==!0?Xn=Object(a.a)(Object(a.a)({},Xn),{},{display:"none"}):Ut&&(Xn=Object(a.a)(Object(a.a)({},Xn),{},{visibility:"hidden",position:"absolute"}),$n="".concat($n,"-placeholder"),oi="".concat(oi,"-placeholder"));var Ti=Rr?"".concat(yr,"-").concat(Rr):"",Ri={};return ct.forEach(function(Di){_n[Di]!==void 0&&(Ri[Di]=_n[Di])}),m.createElement(dt,Object(K.a)({title:Lt,className:"".concat(yr,"-overflowed-submenu"),popupClassName:Ti},Ri,{key:$n,eventKey:oi,disabled:!1,style:Xn}),Rt)},Wt.setChildrenWidthAndResize=function(){if(Wt.props.mode!=="horizontal")return;var Ot=Wt.childRef.current;if(!Ot)return;var Rt=Ot.children;if(!Rt||Rt.length===0)return;var Ut=Ot.children[Rt.length-1];Zt(Ut,"display","inline-block");var Kt=Wt.getMenuItemNodes(),Lt=Kt.filter(function(cr){return cr.className.split(" ").indexOf(Jt)>=0});Lt.forEach(function(cr){Zt(cr,"display","inline-block")}),Wt.menuItemSizes=Kt.map(function(cr){return je(cr,!0)}),Lt.forEach(function(cr){Zt(cr,"display","none")}),Wt.overflowedIndicatorWidth=je(Ot.children[Ot.children.length-1],!0),Wt.originalTotalWidth=Wt.menuItemSizes.reduce(function(cr,vr){return cr+vr},0),Wt.handleResize(),Zt(Ut,"display","none")},Wt.handleResize=function(){if(Wt.props.mode!=="horizontal")return;var Ot=Wt.childRef.current;if(!Ot)return;var Rt=je(Ot);Wt.overflowedItems=[];var Ut=0,Kt;Wt.originalTotalWidth>Rt+$t&&(Kt=-1,Wt.menuItemSizes.forEach(function(Lt){Ut+=Lt,Ut+Wt.overflowedIndicatorWidth<=Rt&&(Kt+=1)})),Wt.setState({lastVisibleIndex:Kt})},Wt}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){var Ot=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Rt=this.childRef.current;if(!Rt)return;this.resizeObserver=new C.default(function(Ut){Ut.forEach(function(){var Kt=Ot.cancelFrameId;cancelAnimationFrame(Kt),Ot.cancelFrameId=requestAnimationFrame(Ot.setChildrenWidthAndResize)})}),[].slice.call(Rt.children).concat(Rt).forEach(function(Ut){Ot.resizeObserver.observe(Ut)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ot.resizeObserver.disconnect(),[].slice.call(Rt.children).concat(Rt).forEach(function(Ut){Ot.resizeObserver.observe(Ut)}),Ot.setChildrenWidthAndResize()}),this.mutationObserver.observe(Rt,{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(Ot){var Rt=this,Ut=this.state.lastVisibleIndex;return(Ot||[]).reduce(function(Kt,Lt,cr){var vr=Lt;if(Rt.props.mode==="horizontal"){var yr=Rt.getOverflowedSubMenuItem(Lt.props.eventKey,[]);Ut!==void 0&&Rt.props.className.indexOf("".concat(Rt.props.prefixCls,"-root"))!==-1&&(cr>Ut&&(vr=m.cloneElement(Lt,{style:{display:"none"},eventKey:"".concat(Lt.props.eventKey,"-hidden"),className:"".concat(Jt)})),cr===Ut+1&&(Rt.overflowedItems=Ot.slice(Ut+1).map(function(Vn){return m.cloneElement(Vn,{key:Vn.props.eventKey,mode:"vertical-left"})}),yr=Rt.getOverflowedSubMenuItem(Lt.props.eventKey,Rt.overflowedItems)));var Rr=[].concat(Object(l.a)(Kt),[yr,vr]);return cr===Ot.length-1&&Rr.push(Rt.getOverflowedSubMenuItem(Lt.props.eventKey,[],!0)),Rr}return[].concat(Object(l.a)(Kt),[vr])},[])}},{key:"render",value:function(){var Ot=this.props,Rt=Ot.visible,Ut=Ot.prefixCls,Kt=Ot.overflowedIndicator,Lt=Ot.mode,cr=Ot.level,vr=Ot.tag,yr=Ot.children,Rr=Ot.theme,Vn=Object(u.a)(Ot,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),kn=vr;return m.createElement(kn,Object(K.a)({ref:this.childRef},Vn),this.renderChildren(yr))}}]),Gn}(m.Component);tn.defaultProps={tag:"div",className:""};var kt=tn;function tr(Zr){return Zr.length?Zr.every(function(Sn){return!!Sn.props.disabled}):!0}function Bt(Zr,Sn,Gn){var Wt=Zr.getState();Zr.setState({activeKey:Object(a.a)(Object(a.a)({},Wt.activeKey),{},Object(p.a)({},Sn,Gn))})}function ft(Zr){return Zr.eventKey||"0-menu-"}function it(Zr,Sn){var Gn=Sn,Wt=Zr.children,Ot=Zr.eventKey;if(Gn){var Rt;if(tt(Wt,function(Ut,Kt){Ut&&Ut.props&&!Ut.props.disabled&&Gn===pe(Ut,Ot,Kt)&&(Rt=!0)}),Rt)return Gn}return Gn=null,Zr.defaultActiveFirst&&tt(Wt,function(Ut,Kt){!Gn&&Ut&&!Ut.props.disabled&&(Gn=pe(Ut,Ot,Kt))}),Gn}function Or(Zr){if(!Zr)return;var Sn=this.instanceArray.indexOf(Zr);Sn!==-1?this.instanceArray[Sn]=Zr:this.instanceArray.push(Zr)}var an=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(Wt){var Ot;return Object(c.a)(this,Gn),Ot=Sn.call(this,Wt),Ot.onKeyDown=function(Rt,Ut){var Kt=Rt.keyCode,Lt;if(Ot.getFlatInstanceArray().forEach(function(vr){vr&&vr.props.active&&vr.onKeyDown&&(Lt=vr.onKeyDown(Rt))}),Lt)return 1;var cr=null;return(Kt===k.a.UP||Kt===k.a.DOWN)&&(cr=Ot.step(Kt===k.a.UP?-1:1)),cr?(Rt.preventDefault(),Bt(Ot.props.store,ft(Ot.props),cr.props.eventKey),typeof Ut=="function"&&Ut(cr),1):void 0},Ot.onItemHover=function(Rt){var Ut=Rt.key,Kt=Rt.hover;Bt(Ot.props.store,ft(Ot.props),Kt?Ut:null)},Ot.onDeselect=function(Rt){Ot.props.onDeselect(Rt)},Ot.onSelect=function(Rt){Ot.props.onSelect(Rt)},Ot.onClick=function(Rt){Ot.props.onClick(Rt)},Ot.onOpenChange=function(Rt){Ot.props.onOpenChange(Rt)},Ot.onDestroy=function(Rt){Ot.props.onDestroy(Rt)},Ot.getFlatInstanceArray=function(){return Ot.instanceArray},Ot.step=function(Rt){var Ut=Ot.getFlatInstanceArray(),Kt=Ot.props.store.getState().activeKey[ft(Ot.props)],Lt=Ut.length;if(!Lt)return null;Rt<0&&(Ut=Ut.concat().reverse());var cr=-1;if(Ut.every(function(Vn,kn){return Vn&&Vn.props.eventKey===Kt?(cr=kn,!1):!0}),!Ot.props.defaultActiveFirst&&cr!==-1&&tr(Ut.slice(cr,Lt-1)))return;var vr=(cr+1)%Lt,yr=vr;do{var Rr=Ut[yr];if(!Rr||Rr.props.disabled)yr=(yr+1)%Lt;else return Rr}while(yr!==vr);return null},Ot.renderCommonMenuItem=function(Rt,Ut,Kt){var Lt=Ot.props.store.getState(),cr=Object(z.a)(Ot),vr=cr.props,yr=pe(Rt,vr.eventKey,Ut),Rr=Rt.props;if(!Rr||typeof Rt.type=="string")return Rt;var Vn=yr===Lt.activeKey,kn=Object(a.a)(Object(a.a)({mode:Rr.mode||vr.mode,level:vr.level,inlineIndent:vr.inlineIndent,renderMenuItem:Ot.renderMenuItem,rootPrefixCls:vr.prefixCls,index:Ut,parentMenu:vr.parentMenu,manualRef:Rr.disabled?void 0:Object(G.a)(Rt.ref,Or.bind(Object(z.a)(Ot))),eventKey:yr,active:!Rr.disabled&&Vn,multiple:vr.multiple,onClick:function(pn){(Rr.onClick||le)(pn),Ot.onClick(pn)},onItemHover:Ot.onItemHover,motion:vr.motion,subMenuOpenDelay:vr.subMenuOpenDelay,subMenuCloseDelay:vr.subMenuCloseDelay,forceSubMenuRender:vr.forceSubMenuRender,onOpenChange:Ot.onOpenChange,onDeselect:Ot.onDeselect,onSelect:Ot.onSelect,builtinPlacements:vr.builtinPlacements,itemIcon:Rr.itemIcon||Ot.props.itemIcon,expandIcon:Rr.expandIcon||Ot.props.expandIcon},Kt),{},{direction:vr.direction});return(vr.mode==="inline"||ut())&&(kn.triggerSubMenuAction="click"),m.cloneElement(Rt,Object(a.a)(Object(a.a)({},kn),{},{key:yr||Ut}))},Ot.renderMenuItem=function(Rt,Ut,Kt){if(!Rt)return null;var Lt=Ot.props.store.getState(),cr={openKeys:Lt.openKeys,selectedKeys:Lt.selectedKeys,triggerSubMenuAction:Ot.props.triggerSubMenuAction,subMenuKey:Kt};return Ot.renderCommonMenuItem(Rt,Ut,cr)},Wt.store.setState({activeKey:Object(a.a)(Object(a.a)({},Wt.store.getState().activeKey),{},Object(p.a)({},Wt.eventKey,it(Wt,Wt.activeKey)))}),Ot.instanceArray=[],Ot}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Ot){return this.props.visible||Ot.visible||this.props.className!==Ot.className||!se()(this.props.style,Ot.style)}},{key:"componentDidUpdate",value:function(Ot){var Rt=this.props,Ut="activeKey"in Rt?Rt.activeKey:Rt.store.getState().activeKey[ft(Rt)],Kt=it(Rt,Ut);if(Kt!==Ut)Bt(Rt.store,ft(Rt),Kt);else if("activeKey"in Ot){var Lt=it(Ot,Ot.activeKey);Kt!==Lt&&Bt(Rt.store,ft(Rt),Kt)}}},{key:"render",value:function(){var Ot=this,Rt=Object(K.a)({},this.props);this.instanceArray=[];var Ut=t()(Rt.prefixCls,Rt.className,"".concat(Rt.prefixCls,"-").concat(Rt.mode)),Kt={className:Ut,role:Rt.role||"menu"};Rt.id&&(Kt.id=Rt.id),Rt.focusable&&(Kt.tabIndex=0,Kt.onKeyDown=this.onKeyDown);var Lt=Rt.prefixCls,cr=Rt.eventKey,vr=Rt.visible,yr=Rt.level,Rr=Rt.mode,Vn=Rt.overflowedIndicator,kn=Rt.theme;return ct.forEach(function(di){return delete Rt[di]}),delete Rt.onClick,m.createElement(kt,Object(K.a)({},Rt,{prefixCls:Lt,mode:Rr,tag:"ul",level:yr,theme:kn,visible:vr,overflowedIndicator:Vn},Kt),Object(s.a)(Rt.children).map(function(di,pn){return Ot.renderMenuItem(di,pn,cr||"0-menu-")}))}}]),Gn}(m.Component);an.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var En=Object(V.b)()(an),Bn=En;function vi(Zr,Sn,Gn){var Wt=Zr.prefixCls,Ot=Zr.motion,Rt=Zr.defaultMotions,Ut=Rt===void 0?{}:Rt,Kt=Zr.openAnimation,Lt=Zr.openTransitionName,cr=Sn.switchingModeFromInline;if(Ot)return Ot;if(Object(ye.a)(Kt)==="object"&&Kt)Object(S.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Kt=="string")return{motionName:"".concat(Wt,"-open-").concat(Kt)};if(Lt)return{motionName:Lt};var vr=Ut[Gn];return vr||(cr?null:Ut.other)}var Ln=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(Wt){var Ot;Object(c.a)(this,Gn),Ot=Sn.call(this,Wt),Ot.onSelect=function(Kt){var Lt=Object(z.a)(Ot),cr=Lt.props;if(cr.selectable){var vr=Ot.store.getState(),yr=vr.selectedKeys,Rr=Kt.key;cr.multiple?yr=yr.concat([Rr]):yr=[Rr],"selectedKeys"in cr||Ot.store.setState({selectedKeys:yr}),cr.onSelect(Object(a.a)(Object(a.a)({},Kt),{},{selectedKeys:yr}))}},Ot.onClick=function(Kt){var Lt=Ot.getRealMenuMode(),cr=Object(z.a)(Ot),vr=cr.store,yr=cr.props.onOpenChange;Lt!=="inline"&&!("openKeys"in Ot.props)&&(vr.setState({openKeys:[]}),yr([])),Ot.props.onClick(Kt)},Ot.onKeyDown=function(Kt,Lt){Ot.innerMenu.getWrappedInstance().onKeyDown(Kt,Lt)},Ot.onOpenChange=function(Kt){var Lt=Object(z.a)(Ot),cr=Lt.props,vr=Ot.store.getState().openKeys.concat(),yr=!1,Rr=function(kn){var di=!1;if(kn.open)di=vr.indexOf(kn.key)===-1,di&&vr.push(kn.key);else{var pn=vr.indexOf(kn.key);di=pn!==-1,di&&vr.splice(pn,1)}yr=yr||di};Array.isArray(Kt)?Kt.forEach(Rr):Rr(Kt),yr&&("openKeys"in Ot.props||Ot.store.setState({openKeys:vr}),cr.onOpenChange(vr))},Ot.onDeselect=function(Kt){var Lt=Object(z.a)(Ot),cr=Lt.props;if(cr.selectable){var vr=Ot.store.getState().selectedKeys.concat(),yr=Kt.key,Rr=vr.indexOf(yr);Rr!==-1&&vr.splice(Rr,1),"selectedKeys"in cr||Ot.store.setState({selectedKeys:vr}),cr.onDeselect(Object(a.a)(Object(a.a)({},Kt),{},{selectedKeys:vr}))}},Ot.onMouseEnter=function(Kt){Ot.restoreModeVerticalFromInline();var Lt=Ot.props.onMouseEnter;Lt&&Lt(Kt)},Ot.onTransitionEnd=function(Kt){var Lt=Kt.propertyName==="width"&&Kt.target===Kt.currentTarget,cr=Kt.target.className,vr=Object.prototype.toString.call(cr)==="[object SVGAnimatedString]"?cr.animVal:cr,yr=Kt.propertyName==="font-size"&&vr.indexOf("anticon")>=0;(Lt||yr)&&Ot.restoreModeVerticalFromInline()},Ot.setInnerMenu=function(Kt){Ot.innerMenu=Kt},Ot.isRootMenu=!0;var Rt=Wt.defaultSelectedKeys,Ut=Wt.defaultOpenKeys;return"selectedKeys"in Wt&&(Rt=Wt.selectedKeys||[]),"openKeys"in Wt&&(Ut=Wt.openKeys||[]),Ot.store=Object(V.c)({selectedKeys:Rt,openKeys:Ut,activeKey:{"0-menu-":it(Wt,Wt.activeKey)}}),Ot.state={switchingModeFromInline:!1,prevProps:Wt,inlineOpenKeys:[],store:Ot.store},Ot}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ot){var Rt=this.props,Ut=Rt.siderCollapsed,Kt=Rt.inlineCollapsed,Lt=Rt.onOpenChange;(!Ot.inlineCollapsed&&Kt||!Ot.siderCollapsed&&Ut)&&Lt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Ot=this.props.collapsedWidth,Rt=this.store,Ut=this.prevOpenKeys,Kt=this.getInlineCollapsed()&&(Ot===0||Ot==="0"||Ot==="0px");Kt?(this.prevOpenKeys=Rt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ut&&(this.store.setState({openKeys:Ut}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ot=this.props.mode,Rt=this.state.switchingModeFromInline,Ut=this.getInlineCollapsed();return Rt&&Ut?"inline":Ut?"vertical":Ot}},{key:"getInlineCollapsed",value:function(){var Ot=this.props,Rt=Ot.inlineCollapsed,Ut=Ot.siderCollapsed;return Ut!==void 0?Ut:Rt}},{key:"restoreModeVerticalFromInline",value:function(){var Ot=this.state.switchingModeFromInline;Ot&&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 Ot=Object(a.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Rt=this.getRealMenuMode();return Ot.className+=" ".concat(Ot.prefixCls,"-root"),Ot.direction==="rtl"&&(Ot.className+=" ".concat(Ot.prefixCls,"-rtl")),Ot=Object(a.a)(Object(a.a)({},Ot),{},{mode:Rt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:vi(this.props,this.state,Rt)}),delete Ot.openAnimation,delete Ot.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(Bn,Object(K.a)({},Ot,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Ot,Rt){var Ut=Rt.prevProps,Kt=Rt.store,Lt=Kt.getState(),cr={},vr={prevProps:Ot};return Ut.mode==="inline"&&Ot.mode!=="inline"&&(vr.switchingModeFromInline=!0),"openKeys"in Ot?cr.openKeys=Ot.openKeys||[]:((Ot.inlineCollapsed&&!Ut.inlineCollapsed||Ot.siderCollapsed&&!Ut.siderCollapsed)&&(vr.switchingModeFromInline=!0,vr.inlineOpenKeys=Lt.openKeys,cr.openKeys=[]),(!Ot.inlineCollapsed&&Ut.inlineCollapsed||!Ot.siderCollapsed&&Ut.siderCollapsed)&&(cr.openKeys=Rt.inlineOpenKeys,vr.inlineOpenKeys=[])),Object.keys(cr).length&&Kt.setState(cr),vr}}]),Gn}(m.Component);Ln.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var Mn=Ln,Xt=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(){var Wt;return Object(c.a)(this,Gn),Wt=Sn.apply(this,arguments),Wt.onKeyDown=function(Ot){var Rt=Ot.keyCode;return Rt===k.a.ENTER?(Wt.onClick(Ot),!0):void 0},Wt.onMouseLeave=function(Ot){var Rt=Wt.props,Ut=Rt.eventKey,Kt=Rt.onItemHover,Lt=Rt.onMouseLeave;Kt({key:Ut,hover:!1}),Lt({key:Ut,domEvent:Ot})},Wt.onMouseEnter=function(Ot){var Rt=Wt.props,Ut=Rt.eventKey,Kt=Rt.onItemHover,Lt=Rt.onMouseEnter;Kt({key:Ut,hover:!0}),Lt({key:Ut,domEvent:Ot})},Wt.onClick=function(Ot){var Rt=Wt.props,Ut=Rt.eventKey,Kt=Rt.multiple,Lt=Rt.onClick,cr=Rt.onSelect,vr=Rt.onDeselect,yr=Rt.isSelected,Rr={key:Ut,keyPath:[Ut],item:Object(z.a)(Wt),domEvent:Ot};Lt(Rr),Kt?yr?vr(Rr):cr(Rr):yr||cr(Rr)},Wt.saveNode=function(Ot){Wt.node=Ot},Wt}return Object(h.a)(Gn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Ot=this.props;Ot.onDestroy&&Ot.onDestroy(Ot.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 Ot,Rt=Object(a.a)({},this.props),Ut=t()(this.getPrefixCls(),Rt.className,(Ot={},Object(p.a)(Ot,this.getActiveClassName(),!Rt.disabled&&Rt.active),Object(p.a)(Ot,this.getSelectedClassName(),Rt.isSelected),Object(p.a)(Ot,this.getDisabledClassName(),Rt.disabled),Ot)),Kt=Object(a.a)(Object(a.a)({},Rt.attribute),{},{title:typeof Rt.title=="string"?Rt.title:void 0,className:Ut,role:Rt.role||"menuitem","aria-disabled":Rt.disabled});Rt.role==="option"?Kt=Object(a.a)(Object(a.a)({},Kt),{},{role:"option","aria-selected":Rt.isSelected}):(Rt.role===null||Rt.role==="none")&&(Kt.role="none");var Lt={onClick:Rt.disabled?null:this.onClick,onMouseLeave:Rt.disabled?null:this.onMouseLeave,onMouseEnter:Rt.disabled?null:this.onMouseEnter},cr=Object(a.a)({},Rt.style);Rt.mode==="inline"&&(Rt.direction==="rtl"?cr.paddingRight=Rt.inlineIndent*Rt.level:cr.paddingLeft=Rt.inlineIndent*Rt.level),ct.forEach(function(yr){return delete Rt[yr]}),delete Rt.direction;var vr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(vr=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(K.a)({},Object(Q.a)(Rt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Kt,Lt,{style:cr,ref:this.saveNode}),Rt.children,vr)}}]),Gn}(m.Component);Xt.isMenuItem=!0,Xt.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var wt=Object(V.b)(function(Zr,Sn){var Gn=Zr.activeKey,Wt=Zr.selectedKeys,Ot=Sn.eventKey,Rt=Sn.subMenuKey;return{active:Gn[Rt]===Ot,isSelected:Array.isArray(Wt)?Wt.indexOf(Ot)!==-1:Wt===Ot}})(Xt),De=wt,Re=function(Zr){Object(g.a)(Gn,Zr);var Sn=Object(v.a)(Gn);function Gn(){var Wt;return Object(c.a)(this,Gn),Wt=Sn.apply(this,arguments),Wt.renderInnerMenuItem=function(Ot){var Rt=Wt.props,Ut=Rt.renderMenuItem,Kt=Rt.index;return Ut(Ot,Kt,Wt.props.subMenuKey)},Wt}return Object(h.a)(Gn,[{key:"render",value:function(){var Ot=Object(K.a)({},this.props),Rt=Ot.className,Ut=Rt===void 0?"":Rt,Kt=Ot.rootPrefixCls,Lt="".concat(Kt,"-item-group-title"),cr="".concat(Kt,"-item-group-list"),vr=Ot.title,yr=Ot.children;return ct.forEach(function(Rr){return delete Ot[Rr]}),delete Ot.direction,m.createElement("li",Object(K.a)({},Ot,{onClick:function(Vn){return Vn.stopPropagation()},className:"".concat(Ut," ").concat(Kt,"-item-group")}),m.createElement("div",{className:Lt,title:typeof vr=="string"?vr:void 0},vr),m.createElement("ul",{className:cr},m.Children.map(yr,this.renderInnerMenuItem)))}}]),Gn}(m.Component);Re.isMenuItemGroup=!0,Re.defaultProps={disabled:!0};var Me=Re,nt=function(Sn){var Gn=Sn.className,Wt=Sn.rootPrefixCls,Ot=Sn.style;return m.createElement("li",{className:"".concat(Gn," ").concat(Wt,"-item-divider"),style:Ot})};nt.defaultProps={disabled:!0,className:"",style:{}};var yt=nt,sr=Mn,Nr={adjustX:1,adjustY:1},mn=[0,0],Yn={topLeft:{points:["bl","tl"],overflow:Nr,offset:[0,-4],targetOffset:mn},topCenter:{points:["bc","tc"],overflow:Nr,offset:[0,-4],targetOffset:mn},topRight:{points:["br","tr"],overflow:Nr,offset:[0,-4],targetOffset:mn},bottomLeft:{points:["tl","bl"],overflow:Nr,offset:[0,4],targetOffset:mn},bottomCenter:{points:["tc","bc"],overflow:Nr,offset:[0,4],targetOffset:mn},bottomRight:{points:["tr","br"],overflow:Nr,offset:[0,4],targetOffset:mn}},Jn=Yn,ur=k.a.ESC,Tt=k.a.TAB;function Ct(Zr){var Sn=Zr.visible,Gn=Zr.setTriggerVisible,Wt=Zr.triggerRef,Ot=Zr.menuRef,Rt=Zr.onVisibleChange,Ut=Zr.autoFocus,Kt=m.useRef(!1),Lt=function(){if(Sn&&Wt.current){var Rr,Vn,kn,di;(Rr=Wt.current)===null||Rr===void 0||((Vn=Rr.triggerRef)===null||Vn===void 0||((kn=Vn.current)===null||kn===void 0||((di=kn.focus)===null||di===void 0)))||di.call(kn),Gn(!1),typeof Rt=="function"&&Rt(!1)}},cr=function(){var Rr,Vn;(Rr=Ot.current)===null||Rr===void 0||((Vn=Rr.focus)===null||Vn===void 0)||Vn.call(Rr),Kt.current=!0},vr=function(Rr){var Vn;switch(Rr.keyCode){case ur:Lt();break;case Tt:!Kt.current&&((Vn=Ot.current)===null||Vn===void 0?void 0:Vn.focus)?(Rr.preventDefault(),cr()):Lt();break}};m.useEffect(function(){return Sn?(window.addEventListener("keydown",vr),Ut&&Object(Vt.a)(cr,3),function(){window.removeEventListener("keydown",vr),Kt.current=!1}):function(){Kt.current=!1}},[Sn])}var Ar=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function er(Zr,Sn){var Gn=Zr.arrow,Wt=Gn===void 0?!1:Gn,Ot=Zr.prefixCls,Rt=Ot===void 0?"rc-dropdown":Ot,Ut=Zr.transitionName,Kt=Zr.animation,Lt=Zr.align,cr=Zr.placement,vr=cr===void 0?"bottomLeft":cr,yr=Zr.placements,Rr=yr===void 0?Jn:yr,Vn=Zr.getPopupContainer,kn=Zr.showAction,di=Zr.hideAction,pn=Zr.overlayClassName,Br=Zr.overlayStyle,_n=Zr.visible,Xn=Zr.trigger,$n=Xn===void 0?["hover"]:Xn,oi=Zr.autoFocus,Ti=Object(u.a)(Zr,Ar),Ri=m.useState(),Di=Object(d.a)(Ri,2),oa=Di[0],ma=Di[1],aa="visible"in Zr?_n:oa,ba=m.useRef(null);m.useImperativeHandle(Sn,function(){return ba.current});var bi=m.useRef(null),Rn="".concat(Rt,"-menu");Ct({visible:aa,setTriggerVisible:ma,triggerRef:ba,menuRef:bi,onVisibleChange:Zr.onVisibleChange,autoFocus:oi});var ji=function(){var ln=Zr.overlay,Pn;return typeof ln=="function"?Pn=ln():Pn=ln,Pn},ha=function(ln){var Pn=Zr.onOverlayClick,_t=ji().props;ma(!1),Pn&&Pn(ln),_t.onClick&&_t.onClick(ln)},ta=function(ln){var Pn=Zr.onVisibleChange;ma(ln),typeof Pn=="function"&&Pn(ln)},ra=function(){var ln,Pn=ji(),_t=Object(E.a)(bi,Pn.ref),_r=(ln={prefixCls:Rn},Object(p.a)(ln,"data-dropdown-inject",!0),Object(p.a)(ln,"onClick",ha),Object(p.a)(ln,"ref",Object(E.c)(Pn)?_t:void 0),ln);return typeof Pn.type=="string"&&(delete _r.prefixCls,delete _r["data-dropdown-inject"]),m.createElement(m.Fragment,null,Wt&&m.createElement("div",{className:"".concat(Rt,"-arrow")}),m.cloneElement(Pn,_r))},Ir=function(){var ln=Zr.overlay;return typeof ln=="function"?ra:ra()},Sr=function(){var ln=Zr.minOverlayWidthMatchTrigger,Pn=Zr.alignPoint;return"minOverlayWidthMatchTrigger"in Zr?ln:!Pn},Tn=function(){var ln=Zr.openClassName;return ln!==void 0?ln:"".concat(Rt,"-open")},pr=function(){var ln=Zr.children,Pn=ln.props?ln.props:{},_t=t()(Pn.className,Tn());return aa&&ln?m.cloneElement(ln,{className:_t}):ln},Dr=di;return!Dr&&$n.indexOf("contextMenu")!==-1&&(Dr=["click"]),m.createElement(dr.a,Object(a.a)(Object(a.a)({builtinPlacements:Rr},Ti),{},{prefixCls:Rt,ref:ba,popupClassName:t()(pn,Object(p.a)({},"".concat(Rt,"-show-arrow"),Wt)),popupStyle:Br,action:$n,showAction:kn,hideAction:Dr||[],popupPlacement:vr,popupAlign:Lt,popupTransitionName:Ut,popupAnimation:Kt,popupVisible:aa,stretch:Sr()?"minWidth":"",popup:Ir(),onPopupVisibleChange:ta,getPopupContainer:Vn}),pr())}var Ft=m.forwardRef(er),ir=Ft;function Pt(Zr,Sn){var Gn=Zr.prefixCls,Wt=Zr.editable,Ot=Zr.locale,Rt=Zr.style;return!Wt||Wt.showAdd===!1?null:m.createElement("button",{ref:Sn,type:"button",className:"".concat(Gn,"-nav-add"),style:Rt,"aria-label":(Ot==null?void 0:Ot.addAriaLabel)||"Add tab",onClick:function(Kt){Wt.onEdit("add",{event:Kt})}},Wt.addIcon||"+")}var rr=m.forwardRef(Pt);function Yr(Zr,Sn){var Gn=Zr.prefixCls,Wt=Zr.id,Ot=Zr.tabs,Rt=Zr.locale,Ut=Zr.mobile,Kt=Zr.moreIcon,Lt=Kt===void 0?"More":Kt,cr=Zr.moreTransitionName,vr=Zr.style,yr=Zr.className,Rr=Zr.editable,Vn=Zr.tabBarGutter,kn=Zr.rtl,di=Zr.onTabClick,pn=Object(m.useState)(!1),Br=Object(d.a)(pn,2),_n=Br[0],Xn=Br[1],$n=Object(m.useState)(null),oi=Object(d.a)($n,2),Ti=oi[0],Ri=oi[1],Di="".concat(Wt,"-more-popup"),oa="".concat(Gn,"-dropdown"),ma=Ti!==null?"".concat(Di,"-").concat(Ti):null,aa=Rt==null?void 0:Rt.dropdownAriaLabel,ba=m.createElement(sr,{onClick:function(Ir){var Sr=Ir.key,Tn=Ir.domEvent;di(Sr,Tn),Xn(!1)},id:Di,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[Ti],"aria-label":aa!==void 0?aa:"expanded dropdown"},Ot.map(function(ra){return m.createElement(De,{key:ra.key,id:"".concat(Di,"-").concat(ra.key),role:"option","aria-controls":Wt&&"".concat(Wt,"-panel-").concat(ra.key),disabled:ra.disabled},ra.tab)}));function bi(ra){for(var Ir=Ot.filter(function(Wr){return!Wr.disabled}),Sr=Ir.findIndex(function(Wr){return Wr.key===Ti})||0,Tn=Ir.length,pr=0;pr<Tn;pr+=1){Sr=(Sr+ra+Tn)%Tn;var Dr=Ir[Sr];if(!Dr.disabled){Ri(Dr.key);return}}}function Rn(ra){var Ir=ra.which;if(!_n){[k.a.DOWN,k.a.SPACE,k.a.ENTER].includes(Ir)&&(Xn(!0),ra.preventDefault());return}switch(Ir){case k.a.UP:bi(-1),ra.preventDefault();break;case k.a.DOWN:bi(1),ra.preventDefault();break;case k.a.ESC:Xn(!1);break;case k.a.SPACE:case k.a.ENTER:Ti!==null&&di(Ti,ra);break}}Object(m.useEffect)(function(){var ra=document.getElementById(ma);ra&&ra.scrollIntoView&&ra.scrollIntoView(!1)},[Ti]),Object(m.useEffect)(function(){_n||Ri(null)},[_n]);var ji=Object(p.a)({},kn?"marginLeft":"marginRight",Vn);Ot.length||(ji.visibility="hidden",ji.order=1);var ha=t()(Object(p.a)({},"".concat(oa,"-rtl"),kn)),ta=Ut?null:m.createElement(ir,{prefixCls:oa,overlay:ba,trigger:["hover"],visible:_n,transitionName:cr,onVisibleChange:Xn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Gn,"-nav-more"),style:ji,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Di,id:"".concat(Wt,"-more"),"aria-expanded":_n,onKeyDown:Rn},Lt));return m.createElement("div",{className:t()("".concat(Gn,"-nav-operations"),yr),style:vr,ref:Sn},ta,m.createElement(rr,{prefixCls:Gn,locale:Rt,editable:Rr}))}var Pr=m.forwardRef(Yr),Mr=Object(m.createContext)(null),fn=.1,wn=.01,ai=20,ri=Math.pow(.995,ai);function gi(){var Zr=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Zr)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Zr.substr(0,4)))}function Ii(Zr,Sn){var Gn=Object(m.useState)(),Wt=Object(d.a)(Gn,2),Ot=Wt[0],Rt=Wt[1],Ut=Object(m.useState)(0),Kt=Object(d.a)(Ut,2),Lt=Kt[0],cr=Kt[1],vr=Object(m.useState)(0),yr=Object(d.a)(vr,2),Rr=yr[0],Vn=yr[1],kn=Object(m.useState)(),di=Object(d.a)(kn,2),pn=di[0],Br=di[1],_n=Object(m.useRef)();function Xn(aa){var ba=aa.touches[0],bi=ba.screenX,Rn=ba.screenY;Rt({x:bi,y:Rn}),window.clearInterval(_n.current)}function $n(aa){if(!Ot)return;aa.preventDefault();var ba=aa.touches[0],bi=ba.screenX,Rn=ba.screenY;Rt({x:bi,y:Rn});var ji=bi-Ot.x,ha=Rn-Ot.y;Sn(ji,ha);var ta=Date.now();cr(ta),Vn(ta-Lt),Br({x:ji,y:ha})}function oi(){if(!Ot)return;if(Rt(null),Br(null),pn){var aa=pn.x/Rr,ba=pn.y/Rr,bi=Math.abs(aa),Rn=Math.abs(ba);if(Math.max(bi,Rn)<fn)return;var ji=aa,ha=ba;_n.current=window.setInterval(function(){if(Math.abs(ji)<wn&&Math.abs(ha)<wn){window.clearInterval(_n.current);return}ji*=ri,ha*=ri,Sn(ji*ai,ha*ai)},ai)}}var Ti=Object(m.useRef)(0),Ri=Object(m.useRef)(!1),Di=Object(m.useRef)();function oa(aa){var ba=aa.deltaX,bi=aa.deltaY,Rn=0,ji=Math.abs(ba),ha=Math.abs(bi);ji===ha?Rn=Di.current==="x"?ba:bi:ji>ha?(Rn=ba,Di.current="x"):(Rn=bi,Di.current="y");var ta=Date.now();ta-Ti.current>100&&(Ri.current=!1),(Sn(-Rn,-Rn)||Ri.current)&&(aa.preventDefault(),Ri.current=!0),Ti.current=ta}var ma=Object(m.useRef)(null);ma.current={onTouchStart:Xn,onTouchMove:$n,onTouchEnd:oi,onWheel:oa},m.useEffect(function(){function aa(ji){ma.current.onTouchStart(ji)}function ba(ji){ma.current.onTouchMove(ji)}function bi(ji){ma.current.onTouchEnd(ji)}function Rn(ji){ma.current.onWheel(ji)}return document.addEventListener("touchmove",ba,{passive:!1}),document.addEventListener("touchend",bi,{passive:!1}),Zr.current.addEventListener("touchstart",aa,{passive:!1}),Zr.current.addEventListener("wheel",Rn),function(){document.removeEventListener("touchmove",ba),document.removeEventListener("touchend",bi)}},[])}function Mi(){var Zr=Object(m.useRef)(new Map);function Sn(Wt){return Zr.current.has(Wt)||Zr.current.set(Wt,m.createRef()),Zr.current.get(Wt)}function Gn(Wt){Zr.current.delete(Wt)}return[Sn,Gn]}function Qi(Zr,Sn){var Gn=m.useRef(Zr),Wt=m.useState({}),Ot=Object(d.a)(Wt,2),Rt=Ot[1];function Ut(Kt){var Lt=typeof Kt=="function"?Kt(Gn.current):Kt;Lt!==Gn.current&&Sn(Lt,Gn.current),Gn.current=Lt,Rt({})}return[Gn.current,Ut]}var ot=function(Sn){var Gn=Sn.position,Wt=Sn.prefixCls,Ot=Sn.extra;if(!Ot)return null;var Rt,Ut=Ot;return Gn==="right"&&(Rt=Ut.right||!Ut.left&&Ut||null),Gn==="left"&&(Rt=Ut.left||null),Rt?m.createElement("div",{className:"".concat(Wt,"-extra-content")},Rt):null};function Ne(Zr,Sn){var Gn,Wt=m.useContext(Mr),Ot=Wt.prefixCls,Rt=Wt.tabs,Ut=Zr.className,Kt=Zr.style,Lt=Zr.id,cr=Zr.animated,vr=Zr.activeKey,yr=Zr.rtl,Rr=Zr.extra,Vn=Zr.editable,kn=Zr.locale,di=Zr.tabPosition,pn=Zr.tabBarGutter,Br=Zr.children,_n=Zr.onTabClick,Xn=Zr.onTabScroll,$n=Object(m.useRef)(),oi=Object(m.useRef)(),Ti=Object(m.useRef)(),Ri=Object(m.useRef)(),Di=Mi(),oa=Object(d.a)(Di,2),ma=oa[0],aa=oa[1],ba=di==="top"||di==="bottom",bi=Qi(0,function(li,ci){ba&&Xn&&Xn({direction:li>ci?"left":"right"})}),Rn=Object(d.a)(bi,2),ji=Rn[0],ha=Rn[1],ta=Qi(0,function(li,ci){!ba&&Xn&&Xn({direction:li>ci?"top":"bottom"})}),ra=Object(d.a)(ta,2),Ir=ra[0],Sr=ra[1],Tn=Object(m.useState)(0),pr=Object(d.a)(Tn,2),Dr=pr[0],Wr=pr[1],ln=Object(m.useState)(0),Pn=Object(d.a)(ln,2),_t=Pn[0],_r=Pn[1],Lr=Object(m.useState)(0),en=Object(d.a)(Lr,2),bn=en[0],On=en[1],yn=Object(m.useState)(0),qn=Object(d.a)(yn,2),Hn=qn[0],pi=qn[1],Fi=Object(m.useState)(null),wi=Object(d.a)(Fi,2),Oi=wi[0],zi=wi[1],ea=Object(m.useState)(null),Gi=Object(d.a)(ea,2),Wi=Gi[0],Hi=Gi[1],Ji=Object(m.useState)(0),ca=Object(d.a)(Ji,2),Ca=ca[0],na=ca[1],Pa=Object(m.useState)(0),La=Object(d.a)(Pa,2),va=La[0],ga=La[1],Oa=I(new Map),Aa=Object(d.a)(Oa,2),Xa=Aa[0],_a=Aa[1],Va=X(Rt,Xa,Dr),Bi="".concat(Ot,"-nav-operations-hidden"),io=0,oo=0;ba?yr?(io=0,oo=Math.max(0,Dr-Oi)):(io=Math.min(0,Oi-Dr),oo=0):(io=Math.min(0,Wi-_t),oo=0);function Qo(li){return li<io?[io,!1]:li>oo?[oo,!1]:[li,!0]}var mo=Object(m.useRef)(),To=Object(m.useState)(),ao=Object(d.a)(To,2),So=ao[0],bo=ao[1];function to(){bo(Date.now())}function Jo(){window.clearTimeout(mo.current)}Ii($n,function(li,ci){var si=!1;function Ci(mi,yi){mi(function(Ni){var ia=Qo(Ni+yi),Ki=Object(d.a)(ia,2),fa=Ki[0],Ya=Ki[1];return si=Ya,fa})}if(ba){if(Oi>=Dr)return si;Ci(ha,li)}else{if(Wi>=_t)return si;Ci(Sr,ci)}return Jo(),to(),si}),Object(m.useEffect)(function(){return Jo(),So&&(mo.current=window.setTimeout(function(){bo(0)},100)),Jo},[So]);function Uo(){var li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vr,ci=Va.get(li);if(!ci)return;if(ba){var si=ji;yr?ci.right<ji?si=ci.right:ci.right+ci.width>ji+Oi&&(si=ci.right+ci.width-Oi):ci.left<-ji?si=-ci.left:ci.left+ci.width>-ji+Oi&&(si=-(ci.left+ci.width-Oi)),Sr(0),ha(Qo(si)[0])}else{var Ci=Ir;ci.top<-Ir?Ci=-ci.top:ci.top+ci.height>-Ir+Wi&&(Ci=-(ci.top+ci.height-Wi)),ha(0),Sr(Qo(Ci)[0])}}var wo=j(Va,{width:Oi,height:Wi,left:ji,top:Ir},{width:bn,height:Hn},{width:Ca,height:va},Object(a.a)(Object(a.a)({},Zr),{},{tabs:Rt})),ts=Object(d.a)(wo,2),Ia=ts[0],Oo=ts[1],Io=Rt.map(function(li){var ci=li.key;return m.createElement(U,{id:Lt,prefixCls:Ot,key:ci,rtl:yr,tab:li,closable:li.closable,editable:Vn,active:ci===vr,tabPosition:di,tabBarGutter:pn,renderWrapper:Br,removeAriaLabel:kn==null?void 0:kn.removeAriaLabel,ref:ma(ci),onClick:function(Ci){_n(ci,Ci)},onRemove:function(){aa(ci)},onFocus:function(){Uo(ci),to(),yr||($n.current.scrollLeft=0),$n.current.scrollTop=0}})}),os=O(function(){var li,ci,si,Ci,mi,yi,Ni,ia,Ki,fa=((li=$n.current)===null||li===void 0?void 0:li.offsetWidth)||0,Ya=((ci=$n.current)===null||ci===void 0?void 0:ci.offsetHeight)||0,xa=((si=Ri.current)===null||si===void 0?void 0:si.offsetWidth)||0,wa=((Ci=Ri.current)===null||Ci===void 0?void 0:Ci.offsetHeight)||0,Da=((mi=Ti.current)===null||mi===void 0?void 0:mi.offsetWidth)||0,ja=((yi=Ti.current)===null||yi===void 0?void 0:yi.offsetHeight)||0;zi(fa),Hi(Ya),na(xa),ga(wa);var ko=(((Ni=oi.current)===null||Ni===void 0?void 0:Ni.offsetWidth)||0)-xa,ro=(((ia=oi.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-wa;Wr(ko),_r(ro);var pa=(Ki=Ti.current)===null||Ki===void 0?void 0:Ki.className.includes(Bi);On(ko-(pa?0:Da)),pi(ro-(pa?0:ja)),_a(function(){var Ea=new Map;return Rt.forEach(function(Fa){var Ka=Fa.key,lo=ma(Ka).current;lo&&Ea.set(Ka,{width:lo.offsetWidth,height:lo.offsetHeight,left:lo.offsetLeft,top:lo.offsetTop})}),Ea})}),xo=Rt.slice(0,Ia),rs=Rt.slice(Oo+1),Ho=[].concat(Object(l.a)(xo),Object(l.a)(rs)),_o=Object(m.useState)(),uo=Object(d.a)(_o,2),Ha=uo[0],vt=uo[1],Er=Va.get(vr),qr=Object(m.useRef)();function Gr(){o.a.cancel(qr.current)}Object(m.useEffect)(function(){var li={};return Er&&(ba?(yr?li.right=Er.right:li.left=Er.left,li.width=Er.width):(li.top=Er.top,li.height=Er.height)),Gr(),qr.current=o()(function(){vt(li)}),Gr},[Er,ba,yr]),Object(m.useEffect)(function(){Uo()},[vr,Er,Va,ba]),Object(m.useEffect)(function(){os()},[yr,pn,vr,Rt.map(function(li){return li.key}).join("_")]);var Qn=!!Ho.length,un="".concat(Ot,"-nav-wrap"),zr,ni,rn,Kn;return ba?yr?(ni=ji>0,zr=ji+Oi<Dr):(zr=ji<0,ni=-ji+Oi<Dr):(rn=Ir<0,Kn=-Ir+Wi<_t),m.createElement("div",{ref:Sn,role:"tablist",className:t()("".concat(Ot,"-nav"),Ut),style:Kt,onKeyDown:function(){to()}},m.createElement(ot,{position:"left",extra:Rr,prefixCls:Ot}),m.createElement(w,{onResize:os},m.createElement("div",{className:t()(un,(Gn={},Object(p.a)(Gn,"".concat(un,"-ping-left"),zr),Object(p.a)(Gn,"".concat(un,"-ping-right"),ni),Object(p.a)(Gn,"".concat(un,"-ping-top"),rn),Object(p.a)(Gn,"".concat(un,"-ping-bottom"),Kn),Gn)),ref:$n},m.createElement(w,{onResize:os},m.createElement("div",{ref:oi,className:"".concat(Ot,"-nav-list"),style:{transform:"translate(".concat(ji,"px, ").concat(Ir,"px)"),transition:So?"none":void 0}},Io,m.createElement(rr,{ref:Ri,prefixCls:Ot,locale:kn,editable:Vn,style:{visibility:Qn?"hidden":null}}),m.createElement("div",{className:t()("".concat(Ot,"-ink-bar"),Object(p.a)({},"".concat(Ot,"-ink-bar-animated"),cr.inkBar)),style:Ha}))))),m.createElement(Pr,Object.assign({},Zr,{ref:Ti,prefixCls:Ot,tabs:Ho,className:!Qn&&Bi})),m.createElement(ot,{position:"right",extra:Rr,prefixCls:Ot}))}var He=m.forwardRef(Ne);function Ye(Zr){var Sn=Zr.id,Gn=Zr.activeKey,Wt=Zr.animated,Ot=Zr.tabPosition,Rt=Zr.rtl,Ut=Zr.destroyInactiveTabPane,Kt=m.useContext(Mr),Lt=Kt.prefixCls,cr=Kt.tabs,vr=Wt.tabPane,yr=cr.findIndex(function(Rr){return Rr.key===Gn});return m.createElement("div",{className:t()("".concat(Lt,"-content-holder"))},m.createElement("div",{className:t()("".concat(Lt,"-content"),"".concat(Lt,"-content-").concat(Ot),Object(p.a)({},"".concat(Lt,"-content-animated"),vr)),style:yr&&vr?Object(p.a)({},Rt?"marginRight":"marginLeft","-".concat(yr,"00%")):null},cr.map(function(Rr){return m.cloneElement(Rr.node,{key:Rr.key,prefixCls:Lt,tabKey:Rr.key,id:Sn,animated:vr,active:Rr.key===Gn,destroyInactiveTabPane:Ut})})))}function at(Zr){var Sn=Zr.prefixCls,Gn=Zr.forceRender,Wt=Zr.className,Ot=Zr.style,Rt=Zr.id,Ut=Zr.active,Kt=Zr.animated,Lt=Zr.destroyInactiveTabPane,cr=Zr.tabKey,vr=Zr.children,yr=m.useState(Gn),Rr=Object(d.a)(yr,2),Vn=Rr[0],kn=Rr[1];m.useEffect(function(){Ut?kn(!0):Lt&&kn(!1)},[Ut,Lt]);var di={};return Ut||(Kt?(di.visibility="hidden",di.height=0,di.overflowY="hidden"):di.display="none"),m.createElement("div",{id:Rt&&"".concat(Rt,"-panel-").concat(cr),role:"tabpanel",tabIndex:Ut?0:-1,"aria-labelledby":Rt&&"".concat(Rt,"-tab-").concat(cr),"aria-hidden":!Ut,style:Object(a.a)(Object(a.a)({},di),Ot),className:t()("".concat(Sn,"-tabpane"),Ut&&"".concat(Sn,"-tabpane-active"),Wt)},(Ut||Vn||Gn)&&vr)}var qe=0;function lt(Zr){return Object(s.a)(Zr).map(function(Sn){if(m.isValidElement(Sn)){var Gn=Sn.key!==void 0?String(Sn.key):void 0;return Object(a.a)(Object(a.a)({key:Gn},Sn.props),{},{node:Sn})}return null}).filter(function(Sn){return Sn})}function Et(Zr,Sn){var Gn,Wt=Zr.id,Ot=Zr.prefixCls,Rt=Ot===void 0?"rc-tabs":Ot,Ut=Zr.className,Kt=Zr.children,Lt=Zr.direction,cr=Zr.activeKey,vr=Zr.defaultActiveKey,yr=Zr.editable,Rr=Zr.animated,Vn=Zr.tabPosition,kn=Vn===void 0?"top":Vn,di=Zr.tabBarGutter,pn=Zr.tabBarStyle,Br=Zr.tabBarExtraContent,_n=Zr.locale,Xn=Zr.moreIcon,$n=Zr.moreTransitionName,oi=Zr.destroyInactiveTabPane,Ti=Zr.renderTabBar,Ri=Zr.onChange,Di=Zr.onTabClick,oa=Zr.onTabScroll,ma=Object(u.a)(Zr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),aa=lt(Kt),ba=Lt==="rtl",bi;Rr===!1?bi={inkBar:!1,tabPane:!1}:bi=Object(a.a)({inkBar:!0,tabPane:!1},Rr!==!0?Rr:null);var Rn=Object(m.useState)(!1),ji=Object(d.a)(Rn,2),ha=ji[0],ta=ji[1];Object(m.useEffect)(function(){ta(gi())},[]);var ra=Object(e.a)(function(){var Hn;return(Hn=aa[0])===null||Hn===void 0?void 0:Hn.key},{value:cr,defaultValue:vr}),Ir=Object(d.a)(ra,2),Sr=Ir[0],Tn=Ir[1],pr=Object(m.useState)(function(){return aa.findIndex(function(Hn){return Hn.key===Sr})}),Dr=Object(d.a)(pr,2),Wr=Dr[0],ln=Dr[1];Object(m.useEffect)(function(){var Hn=aa.findIndex(function(Fi){return Fi.key===Sr});if(Hn===-1){var pi;Hn=Math.max(0,Math.min(Wr,aa.length-1)),Tn((pi=aa[Hn])===null||pi===void 0?void 0:pi.key)}ln(Hn)},[aa.map(function(Hn){return Hn.key}).join("_"),Sr,Wr]);var Pn=Object(e.a)(null,{value:Wt}),_t=Object(d.a)(Pn,2),_r=_t[0],Lr=_t[1],en=kn;ha&&!["left","right"].includes(kn)&&(en="top"),Object(m.useEffect)(function(){Wt||(Lr("rc-tabs-".concat(qe)),qe+=1)},[]);function bn(Hn,pi){Di==null||Di(Hn,pi),Tn(Hn),Ri==null||Ri(Hn)}var On={id:_r,activeKey:Sr,animated:bi,tabPosition:en,rtl:ba,mobile:ha},yn,qn=Object(a.a)(Object(a.a)({},On),{},{editable:yr,locale:_n,moreIcon:Xn,moreTransitionName:$n,tabBarGutter:di,onTabClick:bn,onTabScroll:oa,extra:Br,style:pn,panes:Kt});return Ti?yn=Ti(qn,He):yn=m.createElement(He,Object.assign({},qn)),m.createElement(Mr.Provider,{value:{tabs:aa,prefixCls:Rt}},m.createElement("div",Object.assign({ref:Sn,id:Wt,className:t()(Rt,"".concat(Rt,"-").concat(en),(Gn={},Object(p.a)(Gn,"".concat(Rt,"-mobile"),ha),Object(p.a)(Gn,"".concat(Rt,"-editable"),yr),Object(p.a)(Gn,"".concat(Rt,"-rtl"),ba),Gn),Ut)},ma),yn,m.createElement(Ye,Object.assign({destroyInactiveTabPane:oi},On,{animated:bi}))))}var At=m.forwardRef(Et);At.TabPane=at;var fr=At,Jr=fr,Vr=r("dw78"),dn=r.n(Vr),gr=r("CRcw"),Wn=r.n(gr),kr=r("1S0Z"),Fn=r.n(kr),vn=r("uaoM"),$r=r("H84U"),ei=function(Zr,Sn){var Gn={};for(var Wt in Zr)Object.prototype.hasOwnProperty.call(Zr,Wt)&&Sn.indexOf(Wt)<0&&(Gn[Wt]=Zr[Wt]);if(Zr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Wt=Object.getOwnPropertySymbols(Zr);Ot<Wt.length;Ot++)Sn.indexOf(Wt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Zr,Wt[Ot])&&(Gn[Wt[Ot]]=Zr[Wt[Ot]]);return Gn};function fi(Zr){var Sn,Gn=Zr.type,Wt=Zr.className,Ot=Zr.size,Rt=Zr.onEdit,Ut=Zr.hideAdd,Kt=Zr.centered,Lt=Zr.addIcon,cr=ei(Zr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),vr=cr.prefixCls,yr=m.useContext($r.b),Rr=yr.getPrefixCls,Vn=yr.direction,kn=Rr("tabs",vr),di;return Gn==="editable-card"&&(di={onEdit:function(Br,_n){var Xn=_n.key,$n=_n.event;Rt==null||Rt(Br==="add"?$n:Xn,Br)},removeIcon:m.createElement(Fn.a,null),addIcon:Lt||m.createElement(Wn.a,null),showAdd:Ut!==!0}),Object(vn.a)(!("onPrevClick"in cr)&&!("onNextClick"in cr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Jr,f()({direction:Vn},cr,{moreTransitionName:"slide-up",className:t()(Wt,(Sn={},A()(Sn,"".concat(kn,"-").concat(Ot),Ot),A()(Sn,"".concat(kn,"-card"),["card","editable-card"].includes(Gn)),A()(Sn,"".concat(kn,"-editable-card"),Gn==="editable-card"),A()(Sn,"".concat(kn,"-centered"),Kt),Sn)),editable:di,moreIcon:m.createElement(dn.a,null),prefixCls:kn}))}fi.TabPane=at;var Pi=L.a=fi},ZTW2:function(R,L,r){},ZWlE:function(R,L,r){var y=r("bYtY"),f=r("4NO4");function x(p){A(p),m(p)}function A(p){if(p.parallel)return;var d=!1;y.each(p.series,function(u){u&&u.type==="parallel"&&(d=!0)}),d&&(p.parallel=[{}])}function m(p){var d=f.normalizeToArray(p.parallelAxis);y.each(d,function(u){if(!y.isObject(u))return;var a=u.parallelIndex||0,i=f.normalizeToArray(p.parallel)[a];i&&i.parallelAxisDefault&&y.merge(u,i.parallelAxisDefault,!1)})}R.exports=x},ZX9x:function(R,L,r){"use strict";r.d(L,"a",function(){return I}),r.d(L,"b",function(){return U});var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r("TSYQ"),n=r.n(l),o=r("BGR+"),c=r("kuFg"),h=r.n(c),g=r("nyS3"),v=r.n(g),b=r("FRVV"),S=r.n(b),E=r("PKem"),C=r("H84U"),_=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},T=_,w=function(P,X){var F={};for(var j in P)Object.prototype.hasOwnProperty.call(P,j)&&X.indexOf(j)<0&&(F[j]=P[j]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,j=Object.getOwnPropertySymbols(P);K<j.length;K++)X.indexOf(j[K])<0&&Object.prototype.propertyIsEnumerable.call(P,j[K])&&(F[j[K]]=P[j[K]]);return F},O={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),k=function(){var P=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,"".concat(X).concat(P)}}(),M=function(P){i()(F,P);var X=s()(F);function F(j){var K;p()(this,F),K=X.call(this,j),K.responsiveHandler=function(Q){K.setState({below:Q.matches});var G=K.props.onBreakpoint,ee=K.state.collapsed;G&&G(Q.matches),ee!==Q.matches&&K.setCollapsed(Q.matches,"responsive")},K.setCollapsed=function(Q,G){"collapsed"in K.props||K.setState({collapsed:Q});var ee=K.props.onCollapse;ee&&ee(Q,G)},K.toggle=function(){var Q=!K.state.collapsed;K.setCollapsed(Q,"clickTrigger")},K.renderSider=function(Q){var G,ee=Q.getPrefixCls,se=K.props,ye=se.prefixCls,he=se.className,ke=se.theme,Pe=se.collapsible,Ue=se.reverseArrow,$e=se.trigger,Ge=se.style,ht=se.width,Fe=se.collapsedWidth,oe=se.zeroWidthTriggerStyle,rt=se.children,fe=w(se,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),J=K.state,Y=J.collapsed,$=J.below,de=ee("layout-sider",ye),we=Object(o.default)(fe,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=Y?Fe:ht,Se=T(Ce)?"".concat(Ce,"px"):String(Ce),le=parseFloat(String(Fe||0))===0?e.createElement("span",{onClick:K.toggle,className:n()("".concat(de,"-zero-width-trigger"),"".concat(de,"-zero-width-trigger-").concat(Ue?"right":"left")),style:oe},$e||e.createElement(h.a,null)):null,pe={expanded:Ue?e.createElement(v.a,null):e.createElement(S.a,null),collapsed:Ue?e.createElement(S.a,null):e.createElement(v.a,null)},_e=Y?"collapsed":"expanded",tt=pe[_e],gt=$e!==null?le||e.createElement("div",{className:"".concat(de,"-trigger"),onClick:K.toggle,style:{width:Se}},$e||tt):null,ct=A()(A()({},Ge),{flex:"0 0 ".concat(Se),maxWidth:Se,minWidth:Se,width:Se}),je=n()(he,de,"".concat(de,"-").concat(ke),(G={},f()(G,"".concat(de,"-collapsed"),!!Y),f()(G,"".concat(de,"-has-trigger"),Pe&&$e!==null&&!le),f()(G,"".concat(de,"-below"),!!$),f()(G,"".concat(de,"-zero-width"),parseFloat(Se)===0),G));return e.createElement("aside",A()({className:je},we,{style:ct}),e.createElement("div",{className:"".concat(de,"-children")},rt),Pe||$&&le?gt:null)},K.uniqueId=k("ant-sider-");var z;typeof window!="undefined"&&(z=window.matchMedia),z&&j.breakpoint&&j.breakpoint in O&&(K.mql=z("(max-width: ".concat(O[j.breakpoint],")")));var V;return"collapsed"in j?V=j.collapsed:V=j.defaultCollapsed,K.state={collapsed:V,below:!1},K}return u()(F,[{key:"componentDidMount",value:function(){var K;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(K=this.props)===null||K===void 0||K.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var K,z;(K=this===null||this===void 0?void 0:this.mql)===null||K===void 0||K.removeListener(this.responsiveHandler),(z=this.props)===null||z===void 0||z.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var K=this.state.collapsed,z=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:K,collapsedWidth:z}},e.createElement(C.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(K){return"collapsed"in K?{collapsed:K.collapsed}:null}}]),F}(e.Component);M.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var U=function(P){i()(F,P);var X=s()(F);function F(){return p()(this,F),X.apply(this,arguments)}return u()(F,[{key:"render",value:function(){var K=this;return e.createElement(E.a.Consumer,null,function(z){return e.createElement(M,A()({},z,K.props))})}}]),F}(e.Component)},ZYIC:function(R,L,r){var y=r("zM3Q"),f={seriesType:"lines",plan:y(),reset:function(x){var A=x.coordinateSystem,m=x.get("polyline"),p=x.pipelineContext.large;function d(u,a){var i=[];if(p){var t,s=u.end-u.start;if(m){for(var e=0,l=u.start;l<u.end;l++)e+=x.getLineCoordsCount(l);t=new Float32Array(s+e*2)}else t=new Float32Array(s*4);for(var n=0,o=[],l=u.start;l<u.end;l++){var c=x.getLineCoords(l,i);m&&(t[n++]=c);for(var h=0;h<c;h++)o=A.dataToPoint(i[h],!1,o),t[n++]=o[0],t[n++]=o[1]}a.setLayout("linesPoints",t)}else for(var l=u.start;l<u.end;l++){var g=a.getItemModel(l),c=x.getLineCoords(l,i),v=[];if(m)for(var b=0;b<c;b++)v.push(A.dataToPoint(i[b]));else{v[0]=A.dataToPoint(i[0]),v[1]=A.dataToPoint(i[1]);var S=g.get("lineStyle.curveness");+S&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*S,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*S])}a.setItemLayout(l,v)}}return{progress:d}}};R.exports=f},Ze12:function(R,L,r){var y=r("ItGF"),f=r("hOwI"),x=f.buildTransformer,A="___zrEVENTSAVED",m=[];function p(t,s,e,l,n){return d(m,s,l,n,!0)&&d(t,e,m[0],m[1])}function d(t,s,e,l,n){if(s.getBoundingClientRect&&y.domSupported&&!i(s)){var o=s[A]||(s[A]={}),c=u(s,o),h=a(c,o,n);if(h)return h(t,e,l),!0}return!1}function u(t,s){var e=s.markers;if(e)return e;e=s.markers=[];for(var l=["left","right"],n=["top","bottom"],o=0;o<4;o++){var c=document.createElement("div"),h=c.style,g=o%2,v=(o>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[g]+":0",n[v]+":0",l[1-g]+":auto",n[1-v]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function a(t,s,e){for(var l=e?"invTrans":"trans",n=s[l],o=s.srcCoords,c=!0,h=[],g=[],v=0;v<4;v++){var b=t[v].getBoundingClientRect(),S=2*v,E=b.left,C=b.top;h.push(E,C),c=c&&o&&E===o[S]&&C===o[S+1],g.push(t[v].offsetLeft,t[v].offsetTop)}return c&&n?n:(s.srcCoords=h,s[l]=e?x(g,h):x(h,g))}function i(t){return t.nodeName.toUpperCase()==="CANVAS"}L.transformLocalCoord=p,L.transformCoordWithViewport=d,L.isCanvasEl=i},Znkb:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("zTMp"),m=x.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(i,t,s,e){this.axisPointerClass&&A.fixValue(i),m.superApply(this,"render",arguments),p(this,i,t,s,e,!0)},updateAxisPointer:function(i,t,s,e,l){p(this,i,t,s,e,!1)},remove:function(i,t){var s=this._axisPointer;s&&s.remove(t),m.superApply(this,"remove",arguments)},dispose:function(i,t){d(this,t),m.superApply(this,"dispose",arguments)}});function p(i,t,s,e,l,n){var o=m.getAxisPointerClass(i.axisPointerClass);if(!o)return;var c=A.getAxisPointerModel(t);c?(i._axisPointer||(i._axisPointer=new o)).render(t,c,e,n):d(i,e)}function d(i,t,s){var e=i._axisPointer;e&&e.dispose(t,s),i._axisPointer=null}var u=[];m.registerAxisPointerClass=function(i,t){u[i]=t},m.getAxisPointerClass=function(i){return i&&u[i]};var a=m;R.exports=a},"Znn+":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("9ama"),A=r.n(x)},ZqQs:function(R,L,r){var y=r("bYtY");function f(p){var d=p&&p.timeline;y.isArray(d)||(d=d?[d]:[]),y.each(d,function(u){if(!u)return;x(u)})}function x(p){var d=p.type,u={number:"value",time:"time"};if(u[d]&&(p.axisType=u[d],delete p.type),A(p),m(p,"controlPosition")){var a=p.controlStyle||(p.controlStyle={});m(a,"position")||(a.position=p.controlPosition),a.position==="none"&&!m(a,"show")&&(a.show=!1,delete a.position),delete p.controlPosition}y.each(p.data||[],function(i){y.isObject(i)&&!y.isArray(i)&&(!m(i,"value")&&m(i,"name")&&(i.value=i.name),A(i))})}function A(p){var d=p.itemStyle||(p.itemStyle={}),u=d.emphasis||(d.emphasis={}),a=p.label||p.label||{},i=a.normal||(a.normal={}),t={normal:1,emphasis:1};y.each(a,function(s,e){!t[e]&&!m(i,e)&&(i[e]=s)}),u.label&&!m(a,"emphasis")&&(a.emphasis=u.label,delete u.label)}function m(p,d){return p.hasOwnProperty(d)}R.exports=f},Zvw2:function(R,L,r){var y=r("bYtY"),f=r("hM6l"),x=function(m,p,d,u,a){f.call(this,m,p,d),this.type=u||"value",this.position=a||"bottom",this.orient=null};x.prototype={constructor:x,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,p){return this.coordinateSystem.pointToData(m,p)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(x,f);var A=x;R.exports=A},ZxNd:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};L.default=y},a7Wl:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={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"};L.default=y},a9QJ:function(R,L){var r={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(f,x){if(f==="world"){var A=r[x.name];if(A){var m=x.center;m[0]=A[0],m[1]=A[1]}}}R.exports=y},aHsQ:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("6D9b"),A=r.n(x)},aKvl:function(R,L,r){var y=r("Sj9i"),f=y.quadraticProjectPoint;function x(A,m,p,d,u,a,i,t,s){if(i===0)return!1;var e=i;if(s>m+e&&s>d+e&&s>a+e||s<m-e&&s<d-e&&s<a-e||t>A+e&&t>p+e&&t>u+e||t<A-e&&t<p-e&&t<u-e)return!1;var l=f(A,m,p,d,u,a,t,s,null);return l<=e/2}L.containStroke=x},aTJb:function(R,L,r){var y=r("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(R,L,r){var y=r("3gBT"),f=r("ItGF"),x=r("bYtY"),A=r("0s+r"),m=r("r6Bn"),p=r("7SHv"),d=r("MKOG"),u=r("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var a=!f.canvasSupported,i={canvas:p},t={},s="4.3.1";function e(g,v){var b=new h(y(),g,v);return t[b.id]=b,b}function l(g){if(g)g.dispose();else{for(var v in t)t.hasOwnProperty(v)&&t[v].dispose();t={}}return this}function n(g){return t[g]}function o(g,v){i[g]=v}function c(g){delete t[g]}var h=function(v,b,S){S=S||{},this.dom=b,this.id=v;var E=this,C=new m,_=S.renderer;if(a){if(!i.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");_="vml"}else(!_||!i[_])&&(_="canvas");var T=new i[_](b,C,S,v);this.storage=C,this.painter=T;var w=!f.node&&!f.worker?new u(T.getViewportRoot(),T.root):null;this.handler=new A(C,T,w,T.root),this.animation=new d({stage:{update:x.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var O=C.delFromStorage,I=C.addToStorage;C.delFromStorage=function(k){O.call(C,k),k&&k.removeSelfFromZr(E)},C.addToStorage=function(k){I.call(C,k),k.addSelfToZr(E)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,b){this.painter.configLayer&&this.painter.configLayer(v,b),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,b){if(this.painter.addHover){var S=this.painter.addHover(v,b);return this.refreshHover(),S}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,b){return this.painter.pathToImage(v,b)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,b){return this.handler.findHover(v,b)},on:function(v,b,S){this.handler.on(v,b,S)},off:function(v,b){this.handler.off(v,b)},trigger:function(v,b){this.handler.trigger(v,b)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,c(this.id)}},L.version=s,L.init=e,L.dispose=l,L.getInstance=n,L.registerPainter=o},aX7z:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("GMDS"),m=r("ieMj"),p=r("4NgU"),d=r("OELB"),u=r("nVfU"),a=u.prepareLayoutBarSeries,i=u.makeColumnLayout,t=u.retrieveColumnLayout,s=r("mFDi");r("IWp7"),r("jCoz");function e(C,_){var T=C.type,w=_.getMin(),O=_.getMax(),I=C.getExtent(),k,M,U;T==="ordinal"?k=_.getCategories().length:(M=_.get("boundaryGap"),x.isArray(M)||(M=[M||0,M||0]),typeof M[0]=="boolean"&&(M=[0,0]),M[0]=d.parsePercent(M[0],1),M[1]=d.parsePercent(M[1],1),U=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var P=w!=null,X=O!=null;w==null&&(w=T==="ordinal"?k?0:NaN:I[0]-M[0]*U),O==null&&(O=T==="ordinal"?k?k-1:NaN:I[1]+M[1]*U),(w==null||!isFinite(w))&&(w=NaN),(O==null||!isFinite(O))&&(O=NaN),C.setBlank(x.eqNaN(w)||x.eqNaN(O)||T==="ordinal"&&!C.getOrdinalMeta().categories.length),_.getNeedCrossZero()&&(w>0&&O>0&&!P&&(w=0),w<0&&O<0&&!X&&(O=0));var F=_.ecModel;if(F&&T==="time"){var j=a("bar",F),K;if(x.each(j,function(Q){K|=Q.getBaseAxis()===_.axis}),K){var z=i(j),V=l(w,O,_,z);w=V.min,O=V.max}}return{extent:[w,O],fixMin:P,fixMax:X}}function l(C,_,T,w){var O=T.axis.getExtent(),I=O[1]-O[0],k=t(w,T.axis);if(k===void 0)return{min:C,max:_};var M=Infinity;x.each(k,function(K){M=Math.min(K.offset,M)});var U=-Infinity;x.each(k,function(K){U=Math.max(K.offset+K.width,U)}),M=Math.abs(M),U=Math.abs(U);var P=M+U,X=_-C,F=1-(M+U)/I,j=X/F-X;return _+=j*(U/P),C-=j*(M/P),{min:C,max:_}}function n(C,_){var T=e(C,_),w=T.extent,O=_.get("splitNumber");C.type==="log"&&(C.base=_.get("logBase"));var I=C.type;C.setExtent(w[0],w[1]),C.niceExtent({splitNumber:O,fixMin:T.fixMin,fixMax:T.fixMax,minInterval:I==="interval"||I==="time"?_.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?_.get("maxInterval"):null});var k=_.get("interval");k!=null&&(C.setInterval&&C.setInterval(k))}function o(C,_){if(_=_||C.get("type"),_)switch(_){case"category":return new A(C.getOrdinalMeta?C.getOrdinalMeta():C.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(p.getClass(_)||m).create(C)}}function c(C){var _=C.scale.getExtent(),T=_[0],w=_[1];return!(T>0&&w>0||T<0&&w<0)}function h(C){var _=C.getLabelModel().get("formatter"),T=C.type==="category"?C.scale.getExtent()[0]:null;return typeof _=="string"?(_=function(w){return function(O){return O=C.scale.getLabel(O),w.replace("{value}",O!=null?O:"")}}(_),_):typeof _=="function"?function(w,O){return T!=null&&(O=w-T),_(g(C,w),O)}:function(w){return C.scale.getLabel(w)}}function g(C,_){return C.type==="category"?C.scale.getLabel(_):_}function v(C){var _=C.model,T=C.scale;if(!_.get("axisLabel.show")||T.isBlank())return;var w=C.type==="category",O,I,k=T.getExtent();w?I=T.count():(O=T.getTicks(),I=O.length);var M=C.getLabelModel(),U=h(C),P,X=1;I>40&&(X=Math.ceil(I/40));for(var F=0;F<I;F+=X){var j=O?O[F]:k[0]+F,K=U(j),z=M.getTextRect(K),V=b(z,M.get("rotate")||0);P?P.union(V):P=V}return P}function b(C,_){var T=_*Math.PI/180,w=C.plain(),O=w.width,I=w.height,k=O*Math.cos(T)+I*Math.sin(T),M=O*Math.sin(T)+I*Math.cos(T),U=new s(w.x,w.y,k,M);return U}function S(C){var _=C.get("interval");return _==null?"auto":_}function E(C){return C.type==="category"&&S(C.getLabelModel())===0}L.getScaleExtent=e,L.niceScaleExtent=n,L.createScaleByModel=o,L.ifAxisCrossZero=c,L.makeLabelFormatter=h,L.getAxisRawValue=g,L.estimateLabelUnionRect=v,L.getOptionCategoryInterval=S,L.shouldShowAllLabels=E},adU4:function(R,L,r){var y=r("y1pI"),f=Array.prototype,x=f.splice;function A(m){var p=this.__data__,d=y(p,m);if(d<0)return!1;var u=p.length-1;return d==u?p.pop():x.call(p,d,1),--this.size,!0}R.exports=A},"af/B":function(R,L,r){var y=r("bYtY"),f=y.each,x=y.map,A=y.isFunction,m=y.createHashMap,p=y.noop,d=r("9H2F"),u=d.createTask,a=r("iRjW"),i=a.getUID,t=r("fmMI"),s=r("hD7B"),e=r("4NO4"),l=e.normalizeToArray;function n(K,z,V,Q){this.ecInstance=K,this.api=z,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var o=n.prototype;o.restoreData=function(K,z){K.restoreData(z),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},o.getPerformArgs=function(K,z){if(!K.__pipeline)return;var V=this._pipelineMap.get(K.__pipeline.id),Q=V.context,G=!z&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&K.__idxInPipeline>V.blockIndex,ee=G?V.step:null,se=Q&&Q.modDataCount,ye=se!=null?Math.ceil(se/ee):null;return{step:ee,modBy:ye,modDataCount:se}},o.getPipeline=function(K){return this._pipelineMap.get(K)},o.updateStreamModes=function(K,z){var V=this._pipelineMap.get(K.uid),Q=K.getData(),G=Q.count(),ee=V.progressiveEnabled&&z.incrementalPrepareRender&&G>=V.threshold,se=K.get("large")&&G>=K.get("largeThreshold"),ye=K.get("progressiveChunkMode")==="mod"?G:null;K.pipelineContext=V.context={progressiveRender:ee,modDataCount:ye,large:se}},o.restorePipelines=function(K){var z=this,V=z._pipelineMap=m();K.eachSeries(function(Q){var G=Q.getProgressive(),ee=Q.uid;V.set(ee,{id:ee,head:null,tail:null,threshold:Q.getProgressiveThreshold(),progressiveEnabled:G&&!(Q.preventIncremental&&Q.preventIncremental()),blockIndex:-1,step:Math.round(G||700),count:0}),k(z,Q,Q.dataTask)})},o.prepareStageTasks=function(){var K=this._stageTaskMap,z=this.ecInstance.getModel(),V=this.api;f(this._allHandlers,function(Q){var G=K.get(Q.uid)||K.set(Q.uid,[]);Q.reset&&g(this,Q,G,z,V),Q.overallReset&&v(this,Q,G,z,V)},this)},o.prepareView=function(K,z,V,Q){var G=K.renderTask,ee=G.context;ee.model=z,ee.ecModel=V,ee.api=Q,G.__block=!K.incrementalPrepareRender,k(this,z,G)},o.performDataProcessorTasks=function(K,z){c(this,this._dataProcessorHandlers,K,z,{block:!0})},o.performVisualTasks=function(K,z,V){c(this,this._visualHandlers,K,z,V)};function c(K,z,V,Q,G){G=G||{};var ee;f(z,function(ye,he){if(G.visualType&&G.visualType!==ye.visualType)return;var ke=K._stageTaskMap.get(ye.uid),Pe=ke.seriesTaskMap,Ue=ke.overallTask;if(Ue){var $e,Ge=Ue.agentStubMap;Ge.each(function(Fe){se(G,Fe)&&(Fe.dirty(),$e=!0)}),$e&&Ue.dirty(),h(Ue,Q);var ht=K.getPerformArgs(Ue,G.block);Ge.each(function(Fe){Fe.perform(ht)}),ee|=Ue.perform(ht)}else Pe&&Pe.each(function(Fe,oe){se(G,Fe)&&Fe.dirty();var rt=K.getPerformArgs(Fe,G.block);rt.skip=!ye.performRawSeries&&V.isSeriesFiltered(Fe.context.model),h(Fe,Q),ee|=Fe.perform(rt)})});function se(ye,he){return ye.setDirty&&(!ye.dirtyMap||ye.dirtyMap.get(he.__pipeline.id))}K.unfinished|=ee}o.performSeriesTasks=function(K){var z;K.eachSeries(function(V){z|=V.dataTask.perform()}),this.unfinished|=z},o.plan=function(){this._pipelineMap.each(function(K){var z=K.tail;do{if(z.__block){K.blockIndex=z.__idxInPipeline;break}z=z.getUpstream()}while(z)})};var h=o.updatePayload=function(K,z){z!=="remain"&&(K.context.payload=z)};function g(K,z,V,Q,G){var ee=V.seriesTaskMap||(V.seriesTaskMap=m()),se=z.seriesType,ye=z.getTargetSeries;z.createOnAllSeries?Q.eachRawSeries(he):se?Q.eachRawSeriesByType(se,he):ye&&ye(Q,G).each(he);function he(Pe){var Ue=Pe.uid,$e=ee.get(Ue)||ee.set(Ue,u({plan:_,reset:T,count:I}));$e.context={model:Pe,ecModel:Q,api:G,useClearVisual:z.isVisual&&!z.isLayout,plan:z.plan,reset:z.reset,scheduler:K},k(K,Pe,$e)}var ke=K._pipelineMap;ee.each(function(Pe,Ue){ke.get(Ue)||(Pe.dispose(),ee.removeKey(Ue))})}function v(K,z,V,Q,G){var ee=V.overallTask=V.overallTask||u({reset:b});ee.context={ecModel:Q,api:G,overallReset:z.overallReset,scheduler:K};var se=ee.agentStubMap=ee.agentStubMap||m(),ye=z.seriesType,he=z.getTargetSeries,ke=!0,Pe=z.modifyOutputEnd;ye?Q.eachRawSeriesByType(ye,Ue):he?he(Q,G).each(Ue):(ke=!1,f(Q.getSeries(),Ue));function Ue(Ge){var ht=Ge.uid,Fe=se.get(ht);Fe||(Fe=se.set(ht,u({reset:S,onDirty:C})),ee.dirty()),Fe.context={model:Ge,overallProgress:ke,modifyOutputEnd:Pe},Fe.agent=ee,Fe.__block=ke,k(K,Ge,Fe)}var $e=K._pipelineMap;se.each(function(Ge,ht){$e.get(ht)||(Ge.dispose(),ee.dirty(),se.removeKey(ht))})}function b(K){K.overallReset(K.ecModel,K.api,K.payload)}function S(K,z){return K.overallProgress&&E}function E(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function _(K){return K.plan&&K.plan(K.model,K.ecModel,K.api,K.payload)}function T(K){K.useClearVisual&&K.data.clearAllVisual();var z=K.resetDefines=l(K.reset(K.model,K.ecModel,K.api,K.payload));return z.length>1?x(z,function(V,Q){return O(Q)}):w}var w=O(0);function O(K){return function(z,V){var Q=V.data,G=V.resetDefines[K];if(G&&G.dataEach)for(var ee=z.start;ee<z.end;ee++)G.dataEach(Q,ee);else G&&G.progress&&G.progress(z,Q)}}function I(K){return K.data.count()}function k(K,z,V){var Q=z.uid,G=K._pipelineMap.get(Q);!G.head&&(G.head=V),G.tail&&G.tail.pipe(V),G.tail=V,V.__idxInPipeline=G.count++,V.__pipeline=G}n.wrapStageHandler=function(K,z){return A(K)&&(K={overallReset:K,seriesType:M(K)}),K.uid=i("stageHandler"),z&&(K.visualType=z),K};function M(K){X=null;try{K(U,P)}catch(z){}return X}var U={},P={},X;F(U,t),F(P,s),U.eachSeriesByType=U.eachRawSeriesByType=function(K){X=K},U.eachComponent=function(K){K.mainType==="series"&&K.subType&&(X=K.subType)};function F(K,z){for(var V in z.prototype)K[V]=p}var j=n;R.exports=j},akwb:function(R,L,r){var y=r("RSch"),f=r("bYtY"),x=r("D9ME"),A=r("QBsz");function m(u,a,i){x.call(this,u,a,i),this._lastFrame=0,this._lastFramePercent=0}var p=m.prototype;p.createLine=function(u,a,i){return new y(u,a,i)},p.updateAnimationPoints=function(u,a){this._points=a;for(var i=[0],t=0,s=1;s<a.length;s++){var e=a[s-1],l=a[s];t+=A.dist(e,l),i.push(t)}if(t===0)return;for(var s=0;s<i.length;s++)i[s]/=t;this._offsets=i,this._length=t},p.getLineLength=function(u){return this._length},p.updateSymbolPosition=function(u){var a=u.__t,i=this._points,t=this._offsets,s=i.length;if(!t)return;var e=this._lastFrame,l;if(a<this._lastFramePercent){var n=Math.min(e+1,s-1);for(l=n;l>=0&&!(t[l]<=a);l--);l=Math.min(l,s-2)}else{for(var l=e;l<s&&!(t[l]>a);l++);l=Math.min(l-1,s-2)}A.lerp(u.position,i[l],i[l+1],(a-t[l])/(t[l+1]-t[l]));var o=i[l+1][0]-i[l][0],c=i[l+1][1]-i[l][1];u.rotation=-Math.atan2(c,o)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,u.ignore=!1},f.inherits(m,x);var d=m;R.exports=d},as94:function(R,L,r){var y=r("7aKB"),f=r("3LNs"),x=r("IwbS"),A=r("/y7N"),m=r("Fofx"),p=r("+rIm"),d=r("Znkb"),u=f.extend({makeElOption:function(s,e,l,n,o){var c=l.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var h=c.polar,g=h.getOtherAxis(c),v=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var S=n.get("type");if(S&&S!=="none"){var E=A.buildElStyle(n),C=i[S](c,h,b,v,E);C.style=E,s.graphicKey=C.type,s.pointer=C}var _=n.get("label.margin"),T=a(e,l,n,h,_);A.buildLabelElOption(s,l,n,o,T)}});function a(s,e,l,n,o){var c=e.axis,h=c.dataToCoord(s),g=n.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var v=n.getRadiusAxis().getExtent(),b,S,E;if(c.dim==="radius"){var C=m.create();m.rotate(C,C,g),m.translate(C,C,[n.cx,n.cy]),b=x.applyTransform([h,-o],C);var _=e.getModel("axisLabel").get("rotate")||0,T=p.innerTextLayout(g,_*Math.PI/180,-1);S=T.textAlign,E=T.textVerticalAlign}else{var w=v[1];b=n.coordToPoint([w+o,h]);var O=n.cx,I=n.cy;S=Math.abs(b[0]-O)/w<.3?"center":b[0]>O?"left":"right",E=Math.abs(b[1]-I)/w<.3?"middle":b[1]>I?"top":"bottom"}return{position:b,align:S,verticalAlign:E}}var i={line:function(s,e,l,n,o){return s.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([n[0],l]),e.coordToPoint([n[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(s,e,l,n,o){var c=Math.max(1,s.getBandWidth()),h=Math.PI/180;return s.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,n[0],n[1],(-l-c/2)*h,(-l+c/2)*h)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-c/2,l+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",u);var t=u;R.exports=t},asDA:function(R,L){function r(y,f,x,A){var m=-1,p=y==null?0:y.length;for(A&&p&&(x=y[++m]);++m<p;)x=f(x,y[m],m,y);return x}R.exports=r},b56q:function(R,L,r){},b80T:function(R,L,r){var y=r("UNi/"),f=r("03A+"),x=r("Z0cm"),A=r("DSRE"),m=r("wJg7"),p=r("c6wG"),d=Object.prototype,u=d.hasOwnProperty;function a(i,t){var s=x(i),e=!s&&f(i),l=!s&&!e&&A(i),n=!s&&!e&&!l&&p(i),o=s||e||l||n,c=o?y(i.length,String):[],h=c.length;for(var g in i)(t||u.call(i,g))&&!(o&&(g=="length"||l&&(g=="offset"||g=="parent")||n&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,h)))&&c.push(g);return c}R.exports=a},b8jI:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("Nu4q")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="PictureTwoTone";var i=A.forwardRef(a);L.default=i},b9oc:function(R,L,r){var y=r("bYtY"),f=y.each,x="\0_ec_hist_store";function A(a,i){var t=u(a);f(i,function(s,e){for(var l=t.length-1;l>=0;l--){var n=t[l];if(n[e])break}if(l<0){var o=a.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(o){var c=o.getPercentRange();t[0][e]={dataZoomId:e,start:c[0],end:c[1]}}}}),t.push(i)}function m(a){var i=u(a),t=i[i.length-1];i.length>1&&i.pop();var s={};return f(t,function(e,l){for(var n=i.length-1;n>=0;n--){var e=i[n][l];if(e){s[l]=e;break}}}),s}function p(a){a[x]=null}function d(a){return u(a).length}function u(a){var i=a[x];return i||(i=a[x]=[{}]),i}L.push=A,L.pop=m,L.clear=p,L.count=d},bBKM:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("+rIm"),p=r("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=x.extendComponentView({type:"radar",render:function(a,i,t){var s=this.group;s.removeAll(),this._buildAxes(a),this._buildSplitLineAndArea(a)},_buildAxes:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes(),s=A.map(t,function(e){var l=new m(e.model,{position:[i.cx,i.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(s,function(e){A.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(a){var i=a.coordinateSystem,t=i.getIndicatorAxes();if(!t.length)return;var s=a.get("shape"),e=a.getModel("splitLine"),l=a.getModel("splitArea"),n=e.getModel("lineStyle"),o=l.getModel("areaStyle"),c=e.get("show"),h=l.get("show"),g=n.get("color"),v=o.get("color");g=A.isArray(g)?g:[g],v=A.isArray(v)?v:[v];var b=[],S=[];function E(j,K,z){var V=z%K.length;return j[V]=j[V]||[],V}if(s==="circle")for(var C=t[0].getTicksCoords(),_=i.cx,T=i.cy,w=0;w<C.length;w++){if(c){var O=E(b,g,w);b[O].push(new p.Circle({shape:{cx:_,cy:T,r:C[w].coord}}))}if(h&&w<C.length-1){var O=E(S,v,w);S[O].push(new p.Ring({shape:{cx:_,cy:T,r0:C[w].coord,r:C[w+1].coord}}))}}else for(var I,k=A.map(t,function(j,K){var z=j.getTicksCoords();return I=I==null?z.length-1:Math.min(z.length-1,I),A.map(z,function(V){return i.coordToPoint(V.coord,K)})}),M=[],w=0;w<=I;w++){for(var U=[],P=0;P<t.length;P++)U.push(k[P][w]);if(U[0]&&U.push(U[0].slice()),c){var O=E(b,g,w);b[O].push(new p.Polyline({shape:{points:U}}))}if(h&&M){var O=E(S,v,w-1);S[O].push(new p.Polygon({shape:{points:U.concat(M)}}))}M=U.slice().reverse()}var X=n.getLineStyle(),F=o.getAreaStyle();A.each(S,function(j,K){this.group.add(p.mergePath(j,{style:A.defaults({stroke:"none",fill:v[K%v.length]},F),silent:!0}))},this),A.each(b,function(j,K){this.group.add(p.mergePath(j,{style:A.defaults({fill:"none",stroke:g[K%g.length]},X),silent:!0}))},this)}});R.exports=u},bBL8:function(R,L,r){var y=r("ProS");r("LPzL"),r("rfSb"),r("JVwQ");var f=r("UnoB"),x=r("cbJ4"),A=r("0/Rx");y.registerLayout(f),y.registerVisual(x),y.registerProcessor(A("themeRiver"))},bE4E:function(R,L,r){},bE4q:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("RIqP"),p=r.n(m),d=r("q1tI"),u=r("TSYQ"),a=r.n(u),i=r("Zm9Q"),t=r("Ved0"),s=r.n(t),e=r("XBQK"),l=r("H84U"),n=function(M,U){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&U.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)U.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P},o=function(U){var P=U.prefixCls,X=U.separator,F=X===void 0?"/":X,j=U.children,K=U.overlay,z=U.dropdownProps,V=n(U,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(l.b),G=Q.getPrefixCls,ee=G("breadcrumb",P),se=function(ke){return K?d.createElement(e.a,f()({overlay:K,placement:"bottomCenter"},z),d.createElement("span",{className:"".concat(ee,"-overlay-link")},ke,d.createElement(s.a,null))):ke},ye;return"href"in V?ye=d.createElement("a",f()({className:"".concat(ee,"-link")},V),j):ye=d.createElement("span",f()({className:"".concat(ee,"-link")},V),j),ye=se(ye),j?d.createElement("span",null,ye,F&&F!==""&&d.createElement("span",{className:"".concat(ee,"-separator")},F)):null};o.__ANT_BREADCRUMB_ITEM=!0;var c=o,h=function(U){var P=U.children,X=d.useContext(l.b),F=X.getPrefixCls,j=F("breadcrumb");return d.createElement("span",{className:"".concat(j,"-separator")},P||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,v=r("BvKs"),b=r("uaoM"),S=r("0n0R"),E=function(M,U){var P={};for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&U.indexOf(X)<0&&(P[X]=M[X]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,X=Object.getOwnPropertySymbols(M);F<X.length;F++)U.indexOf(X[F])<0&&Object.prototype.propertyIsEnumerable.call(M,X[F])&&(P[X[F]]=M[X[F]]);return P};function C(M,U){if(!M.breadcrumbName)return null;var P=Object.keys(U).join("|"),X=M.breadcrumbName.replace(new RegExp(":(".concat(P,")"),"g"),function(F,j){return U[j]||F});return X}function _(M,U,P,X){var F=P.indexOf(M)===P.length-1,j=C(M,U);return F?d.createElement("span",null,j):d.createElement("a",{href:"#/".concat(X.join("/"))},j)}var T=function(U,P){return U=(U||"").replace(/^\//,""),Object.keys(P).forEach(function(X){U=U.replace(":".concat(X),P[X])}),U},w=function(U){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,F=p()(U),j=T(P,X);return j&&F.push(j),F},O=function(U){var P=U.prefixCls,X=U.separator,F=X===void 0?"/":X,j=U.style,K=U.className,z=U.routes,V=U.children,Q=U.itemRender,G=Q===void 0?_:Q,ee=U.params,se=ee===void 0?{}:ee,ye=E(U,["prefixCls","separator","style","className","routes","children","itemRender","params"]),he=d.useContext(l.b),ke=he.getPrefixCls,Pe=he.direction,Ue,$e=ke("breadcrumb",P);if(z&&z.length>0){var Ge=[];Ue=z.map(function(Fe){var oe=T(Fe.path,se);oe&&Ge.push(oe);var rt;return Fe.children&&Fe.children.length&&(rt=d.createElement(v.a,null,Fe.children.map(function(fe){return d.createElement(v.a.Item,{key:fe.path||fe.breadcrumbName},G(fe,se,z,w(Ge,fe.path,se)))}))),d.createElement(c,{overlay:rt,separator:F,key:oe||Fe.breadcrumbName},G(Fe,se,z,Ge))})}else V&&(Ue=Object(i.a)(V).map(function(Fe,oe){return Fe&&(Object(b.a)(Fe.type&&(Fe.type.__ANT_BREADCRUMB_ITEM===!0||Fe.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(S.a)(Fe,{separator:F,key:oe}))}));var ht=a()(K,$e,A()({},"".concat($e,"-rtl"),Pe==="rtl"));return d.createElement("div",f()({className:ht,style:j},ye),Ue)};O.Item=c,O.Separator=g;var I=O,k=L.a=I},bKJz:function(R,L,r){},bLfw:function(R,L,r){var y=r("bYtY"),f=r("Qxkt"),x=r("iRjW"),A=r("Yl7c"),m=A.enableClassManagement,p=A.parseClassType,d=r("4NO4"),u=d.makeInner,a=r("+TT/"),i=r("3hzK"),t=u(),s=f.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(n,o,c,h){f.call(this,n,o,c,h),this.uid=x.getUID("ec_cpt_model")},init:function(n,o,c,h){this.mergeDefaultAndTheme(n,c)},mergeDefaultAndTheme:function(n,o){var c=this.layoutMode,h=c?a.getLayoutParams(n):{},g=o.getTheme();y.merge(n,g.get(this.mainType)),y.merge(n,this.getDefaultOption()),c&&a.mergeLayoutParam(n,h,c)},mergeOption:function(n,o){y.merge(this.option,n,!0);var c=this.layoutMode;c&&a.mergeLayoutParam(this.option,n,c)},optionUpdated:function(n,o){},getDefaultOption:function(){var n=t(this);if(!n.defaultOption){for(var o=[],c=this.constructor;c;){var h=c.prototype.defaultOption;h&&o.push(h),c=c.superClass}for(var g={},v=o.length-1;v>=0;v--)g=y.merge(g,o[v],!0);n.defaultOption=g}return n.defaultOption},getReferringComponents:function(n){return this.ecModel.queryComponents({mainType:n,index:this.get(n+"Index",!0),id:this.get(n+"Id",!0)})}});m(s,{registerWhenExtend:!0}),x.enableSubTypeDefaulter(s),x.enableTopologicalTravel(s,e);function e(n){var o=[];return y.each(s.getClassesByMainType(n),function(c){o=o.concat(c.prototype.dependencies||[])}),o=y.map(o,function(c){return p(c).main}),n!=="dataset"&&y.indexOf(o,"dataset")<=0&&o.unshift("dataset"),o}y.mixin(s,i);var l=s;R.exports=l},bMXI:function(R,L,r){var y=r("bYtY"),f=r("QBsz"),x=r("Fofx"),A=r("mFDi"),m=r("DN4a"),p=f.applyTransform;function d(){m.call(this)}y.mixin(d,m);function u(t){this.name=t,this.zoomLimit,m.call(this),this._roamTransformable=new d,this._rawTransformable=new d,this._center,this._zoom}u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(t,s,e,l){return this._rect=new A(t,s,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,s,e,l){this.transformTo(t,s,e,l),this._viewRect=new A(t,s,e,l)},transformTo:function(t,s,e,l){var n=this.getBoundingRect(),o=this._rawTransformable;o.transform=n.calculateTransform(new A(t,s,e,l)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var s=this.zoomLimit;s&&(s.max!=null&&(t=Math.min(s.max,t)),s.min!=null&&(t=Math.max(s.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),s=t.x+t.width/2,e=t.y+t.height/2;return[s,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var t=this._rawTransformable.getLocalTransform(),s=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),n=this.getZoom();l=f.applyTransform([],l,t),e=f.applyTransform([],e,t),s.origin=l,s.position=[e[0]-l[0],e[1]-l[1]],s.scale=[n,n],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,s=this._rawTransformable;s.parent=t,t.updateTransform(),s.updateTransform(),x.copy(this.transform||(this.transform=[]),s.transform||x.create()),this._rawTransform=s.getLocalTransform(),this.invTransform=this.invTransform||[],x.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,s=this._rawTransformable;return{roamTransform:t?y.slice(t):x.create(),rawScale:y.slice(s.scale),rawPosition:y.slice(s.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,s,e){var l=s?this._rawTransform:this.transform;return e=e||[],l?p(e,t,l):f.copy(e,t)},pointToData:function(t){var s=this.invTransform;return s?p([],t,s):[t[0],t[1]]},convertToPixel:y.curry(a,"dataToPoint"),convertFromPixel:y.curry(a,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(u,m);function a(t,s,e,l){var n=e.seriesModel,o=n?n.coordinateSystem:null;return o===this?o[t](l):null}var i=u;R.exports=i},bNin:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("FBjb"),A=r("Itpr"),m=A.radialCoordinate,p=r("ProS"),d=r("4mN7"),u=r("bMXI"),a=r("Ae+d"),i=r("SgGq"),t=r("xSat"),s=t.onIrrelevantElement,e=r("Tghj"),l=e.__DEV__,n=r("OELB"),o=n.parsePercent,c=f.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(_,T){var w=T.childPoints,O=w.length,I=T.parentPoint,k=w[0],M=w[O-1];if(O===1){_.moveTo(I[0],I[1]),_.lineTo(k[0],k[1]);return}var U=T.orient,P=U==="TB"||U==="BT"?0:1,X=1-P,F=o(T.forkPosition,1),j=[];j[P]=I[P],j[X]=I[X]+(M[X]-I[X])*F,_.moveTo(I[0],I[1]),_.lineTo(j[0],j[1]),_.moveTo(k[0],k[1]),j[P]=k[P],_.lineTo(j[0],j[1]),j[P]=M[P],_.lineTo(j[0],j[1]),_.lineTo(M[0],M[1]);for(var K=1;K<O-1;K++){var z=w[K];_.moveTo(z[0],z[1]),j[P]=z[P],_.lineTo(j[0],j[1])}}}),h=p.extendChartView({type:"tree",init:function(_,T){this._oldTree,this._mainGroup=new f.Group,this._controller=new i(T.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(_,T,w,O){var I=_.getData(),k=_.layoutInfo,M=this._mainGroup,U=_.get("layout");U==="radial"?M.attr("position",[k.x+k.width/2,k.y+k.height/2]):M.attr("position",[k.x,k.y]),this._updateViewCoordSys(_,k,U),this._updateController(_,T,w);var P=this._data,X={expandAndCollapse:_.get("expandAndCollapse"),layout:U,edgeShape:_.get("edgeShape"),edgeForkPosition:_.get("edgeForkPosition"),orient:_.getOrient(),curvature:_.get("lineStyle.curveness"),symbolRotate:_.get("symbolRotate"),symbolOffset:_.get("symbolOffset"),hoverAnimation:_.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(P).add(function(F){g(I,F)&&b(I,F,null,M,_,X)}).update(function(F,j){var K=P.getItemGraphicEl(j);if(!g(I,F)){K&&E(P,j,K,M,_,X);return}b(I,F,K,M,_,X)}).remove(function(F){var j=P.getItemGraphicEl(F);j&&E(P,F,j,M,_,X)}).execute(),this._nodeScaleRatio=_.get("nodeScaleRatio"),this._updateNodeAndLinkScale(_),X.expandAndCollapse===!0&&I.eachItemGraphicEl(function(F,j){F.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:_.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(_){var T=_.getData(),w=[];T.each(function(P){var X=T.getItemLayout(P);X&&!isNaN(X.x)&&!isNaN(X.y)&&w.push([+X.x,+X.y])});var O=[],I=[];d.fromPoints(w,O,I);var k=this._min,M=this._max;I[0]-O[0]===0&&(O[0]=k?k[0]:O[0]-1,I[0]=M?M[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=k?k[1]:O[1]-1,I[1]=M?M[1]:I[1]+1);var U=_.coordinateSystem=new u;U.zoomLimit=_.get("scaleLimit"),U.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[1]),U.setCenter(_.get("center")),U.setZoom(_.get("zoom")),this.group.attr({position:U.position,scale:U.scale}),this._viewCoordSys=U,this._min=O,this._max=I},_updateController:function(_,T,w){var O=this._controller,I=this._controllerHost,k=this.group;O.setPointerChecker(function(M,U,P){var X=k.getBoundingRect();return X.applyTransform(k.transform),X.contain(U,P)&&!s(M,w,_)}),O.enable(_.get("roam")),I.zoomLimit=_.get("scaleLimit"),I.zoom=_.coordinateSystem.getZoom(),O.off("pan").off("zoom").on("pan",function(M){a.updateViewOnPan(I,M.dx,M.dy),w.dispatchAction({seriesId:_.id,type:"treeRoam",dx:M.dx,dy:M.dy})},this).on("zoom",function(M){a.updateViewOnZoom(I,M.scale,M.originX,M.originY),w.dispatchAction({seriesId:_.id,type:"treeRoam",zoom:M.scale,originX:M.originX,originY:M.originY}),this._updateNodeAndLinkScale(_)},this)},_updateNodeAndLinkScale:function(_){var T=_.getData(),w=this._getNodeGlobalScale(_),O=[w,w];T.eachItemGraphicEl(function(I,k){I.attr("scale",O)})},_getNodeGlobalScale:function(_){var T=_.coordinateSystem;if(T.type!=="view")return 1;var w=this._nodeScaleRatio,O=T.scale,I=O&&O[0]||1,k=T.getZoom(),M=(k-1)*w+1;return M/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(_,T){var w=_.getItemLayout(T);return w&&!isNaN(w.x)&&!isNaN(w.y)&&_.getItemVisual(T,"symbol")!=="none"}function v(_,T,w){return w.itemModel=T,w.itemStyle=T.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=T.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=T.getModel("lineStyle").getLineStyle(),w.labelModel=T.getModel("label"),w.hoverLabelModel=T.getModel("emphasis.label"),_.isExpand===!1&&_.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function b(_,T,w,O,I,k){var M=!w,U=_.tree.getNodeByDataIndex(T),P=U.getModel(),k=v(U,P,k),X=_.tree.root,F=U.parentNode===X?U:U.parentNode||U,j=_.getItemGraphicEl(F.dataIndex),K=F.getLayout(),z=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:K,V=U.getLayout();M?(w=new x(_,T,k),w.attr("position",[z.x,z.y])):w.updateData(_,T,k),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=V.rawX,w.__radialRawY=V.rawY,O.add(w),_.setItemGraphicEl(T,w),f.updateProps(w,{position:[V.x,V.y]},I);var Q=w.getSymbolPath();if(k.layout==="radial"){var G=X.children[0],ee=G.getLayout(),se=G.children.length,ye,he;if(V.x===ee.x&&U.isExpand===!0){var ke={};ke.x=(G.children[0].getLayout().x+G.children[se-1].getLayout().x)/2,ke.y=(G.children[0].getLayout().y+G.children[se-1].getLayout().y)/2,ye=Math.atan2(ke.y-ee.y,ke.x-ee.x),ye<0&&(ye=Math.PI*2+ye),he=ke.x<ee.x,he&&(ye=ye-Math.PI)}else ye=Math.atan2(V.y-ee.y,V.x-ee.x),ye<0&&(ye=Math.PI*2+ye),U.children.length===0||U.children.length!==0&&U.isExpand===!1?(he=V.x<ee.x,he&&(ye=ye-Math.PI)):(he=V.x>ee.x,he||(ye=ye-Math.PI));var Pe=he?"left":"right",Ue=k.labelModel.get("rotate"),$e=Ue*(Math.PI/180);Q.setStyle({textPosition:k.labelModel.get("position")||Pe,textRotation:Ue==null?-ye:$e,textOrigin:"center",verticalAlign:"middle"})}S(I,U,X,w,z,K,V,O,k)}function S(_,T,w,O,I,k,M,U,P){var X=P.edgeShape,F=O.__edge;if(X==="curve")T.parentNode&&T.parentNode!==w&&(F||(F=O.__edge=new f.BezierCurve({shape:C(P,I,I),style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),f.updateProps(F,{shape:C(P,k,M),style:{opacity:1}},_));else if(X==="polyline"&&(P.layout==="orthogonal"&&(T!==w&&T.children&&T.children.length!==0&&T.isExpand===!0))){for(var j=T.children,K=[],z=0;z<j.length;z++){var V=j[z].getLayout();K.push([V.x,V.y])}F||(F=O.__edge=new c({shape:{parentPoint:[M.x,M.y],childPoints:[[M.x,M.y]],orient:P.orient,forkPosition:P.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},P.lineStyle)})),f.updateProps(F,{shape:{parentPoint:[M.x,M.y],childPoints:K},style:{opacity:1}},_)}U.add(F)}function E(_,T,w,O,I,k){for(var M=_.tree.getNodeByDataIndex(T),U=_.tree.root,P=M.getModel(),k=v(M,P,k),X=M.parentNode===U?M:M.parentNode||M,F=k.edgeShape,j;j=X.getLayout(),j==null;)X=X.parentNode===U?X:X.parentNode||X;f.updateProps(w,{position:[j.x+1,j.y+1]},I,function(){O.remove(w),_.setItemGraphicEl(T,null)}),w.fadeOut(null,{keepLabel:!0});var K=_.getItemGraphicEl(X.dataIndex),z=K.__edge,V=w.__edge||(X.isExpand===!1||X.children.length===1?z:void 0),F=k.edgeShape;V&&(F==="curve"?f.updateProps(V,{shape:C(k,j,j),style:{opacity:0}},I,function(){O.remove(V)}):F==="polyline"&&k.layout==="orthogonal"&&f.updateProps(V,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(V)}))}function C(_,T,w){var O,I,k,M,U=_.orient,P,X,F,j;if(_.layout==="radial"){P=T.rawX,F=T.rawY,X=w.rawX,j=w.rawY;var K=m(P,F),z=m(P,F+(j-F)*_.curvature),V=m(X,j+(F-j)*_.curvature),Q=m(X,j);return{x1:K.x,y1:K.y,x2:Q.x,y2:Q.y,cpx1:z.x,cpy1:z.y,cpx2:V.x,cpy2:V.y}}else P=T.x,F=T.y,X=w.x,j=w.y,(U==="LR"||U==="RL")&&(O=P+(X-P)*_.curvature,I=F,k=X+(P-X)*_.curvature,M=j),(U==="TB"||U==="BT")&&(O=P,I=F+(j-F)*_.curvature,k=X,M=j+(F-j)*_.curvature);return{x1:P,y1:F,x2:X,y2:j,cpx1:O,cpy1:I,cpx2:k,cpy2:M}}R.exports=h},bQjk:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return function(f){var x=y,A=x.lib,m=A.CipherParams,p=x.enc,d=p.Hex,u=x.format,a=u.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var s=d.parse(t);return m.create({ciphertext:s})}}}(),y.format.Hex})},bT9E:function(R,L,r){"use strict";r.d(L,"a",function(){return f});var y=r("VTBJ");function f(x,A){var m=Object(y.a)({},x);return Array.isArray(A)&&A.forEach(function(p){delete m[p]}),m}},bU0H:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("kRqF"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},bX4T:function(R,L,r){"use strict";r.d(L,"a",function(){return u});var y=r("VTBJ"),f=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,x=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,A="".concat(f," ").concat(x).split(/[\s\n]+/),m="aria-",p="data-";function d(a,i){return a.indexOf(i)===0}function u(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;i===!1?t={aria:!0,data:!0,attr:!0}:i===!0?t={aria:!0}:t=Object(y.a)({},i);var s={};return Object.keys(a).forEach(function(e){(t.aria&&(e==="role"||d(e,m))||t.data&&d(e,p)||t.attr&&A.includes(e))&&(s[e]=a[e])}),s}},bYtY:function(R,L){var r={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},y={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},f=Object.prototype.toString,x=Array.prototype,A=x.forEach,m=x.filter,p=x.slice,d=x.map,u=x.reduce,a={};function i(Fe,oe){Fe==="createCanvas"&&(c=null),a[Fe]=oe}function t(Fe){if(Fe==null||typeof Fe!="object")return Fe;var oe=Fe,rt=f.call(Fe);if(rt==="[object Array]"){if(!Pe(Fe)){oe=[];for(var fe=0,J=Fe.length;fe<J;fe++)oe[fe]=t(Fe[fe])}}else if(y[rt]){if(!Pe(Fe)){var Y=Fe.constructor;if(Fe.constructor.from)oe=Y.from(Fe);else{oe=new Y(Fe.length);for(var fe=0,J=Fe.length;fe<J;fe++)oe[fe]=t(Fe[fe])}}}else if(!r[rt]&&!Pe(Fe)&&!j(Fe)){oe={};for(var $ in Fe)Fe.hasOwnProperty($)&&(oe[$]=t(Fe[$]))}return oe}function s(Fe,oe,rt){if(!P(oe)||!P(Fe))return rt?t(oe):Fe;for(var fe in oe)if(oe.hasOwnProperty(fe)){var J=Fe[fe],Y=oe[fe];P(Y)&&P(J)&&!k(Y)&&!k(J)&&!j(Y)&&!j(J)&&!X(Y)&&!X(J)&&!Pe(Y)&&!Pe(J)?s(J,Y,rt):(rt||!(fe in Fe))&&(Fe[fe]=t(oe[fe],!0))}return Fe}function e(Fe,oe){for(var rt=Fe[0],fe=1,J=Fe.length;fe<J;fe++)rt=s(rt,Fe[fe],oe);return rt}function l(Fe,oe){for(var rt in oe)oe.hasOwnProperty(rt)&&(Fe[rt]=oe[rt]);return Fe}function n(Fe,oe,rt){for(var fe in oe)oe.hasOwnProperty(fe)&&(rt?oe[fe]!=null:Fe[fe]==null)&&(Fe[fe]=oe[fe]);return Fe}var o=function(){return a.createCanvas()};a.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=o().getContext("2d")),c}function g(Fe,oe){if(Fe){if(Fe.indexOf)return Fe.indexOf(oe);for(var rt=0,fe=Fe.length;rt<fe;rt++)if(Fe[rt]===oe)return rt}return-1}function v(Fe,oe){var rt=Fe.prototype;function fe(){}fe.prototype=oe.prototype,Fe.prototype=new fe;for(var J in rt)rt.hasOwnProperty(J)&&(Fe.prototype[J]=rt[J]);Fe.prototype.constructor=Fe,Fe.superClass=oe}function b(Fe,oe,rt){Fe="prototype"in Fe?Fe.prototype:Fe,oe="prototype"in oe?oe.prototype:oe,n(Fe,oe,rt)}function S(Fe){return Fe?typeof Fe=="string"?!1:typeof Fe.length=="number":void 0}function E(Fe,oe,rt){if(!(Fe&&oe))return;if(Fe.forEach&&Fe.forEach===A)Fe.forEach(oe,rt);else if(Fe.length===+Fe.length)for(var fe=0,J=Fe.length;fe<J;fe++)oe.call(rt,Fe[fe],fe,Fe);else for(var Y in Fe)Fe.hasOwnProperty(Y)&&oe.call(rt,Fe[Y],Y,Fe)}function C(Fe,oe,rt){if(!(Fe&&oe))return;if(Fe.map&&Fe.map===d)return Fe.map(oe,rt);for(var fe=[],J=0,Y=Fe.length;J<Y;J++)fe.push(oe.call(rt,Fe[J],J,Fe));return fe}function _(Fe,oe,rt,fe){if(!(Fe&&oe))return;if(Fe.reduce&&Fe.reduce===u)return Fe.reduce(oe,rt,fe);for(var J=0,Y=Fe.length;J<Y;J++)rt=oe.call(fe,rt,Fe[J],J,Fe);return rt}function T(Fe,oe,rt){if(!(Fe&&oe))return;if(Fe.filter&&Fe.filter===m)return Fe.filter(oe,rt);for(var fe=[],J=0,Y=Fe.length;J<Y;J++)oe.call(rt,Fe[J],J,Fe)&&fe.push(Fe[J]);return fe}function w(Fe,oe,rt){if(!(Fe&&oe))return;for(var fe=0,J=Fe.length;fe<J;fe++)if(oe.call(rt,Fe[fe],fe,Fe))return Fe[fe]}function O(Fe,oe){var rt=p.call(arguments,2);return function(){return Fe.apply(oe,rt.concat(p.call(arguments)))}}function I(Fe){var oe=p.call(arguments,1);return function(){return Fe.apply(this,oe.concat(p.call(arguments)))}}function k(Fe){return f.call(Fe)==="[object Array]"}function M(Fe){return typeof Fe=="function"}function U(Fe){return f.call(Fe)==="[object String]"}function P(Fe){var oe=typeof Fe;return oe==="function"||!!Fe&&oe==="object"}function X(Fe){return!!r[f.call(Fe)]}function F(Fe){return!!y[f.call(Fe)]}function j(Fe){return typeof Fe=="object"&&typeof Fe.nodeType=="number"&&typeof Fe.ownerDocument=="object"}function K(Fe){return Fe!==Fe}function z(Fe){for(var oe=0,rt=arguments.length;oe<rt;oe++)if(arguments[oe]!=null)return arguments[oe]}function V(Fe,oe){return Fe!=null?Fe:oe}function Q(Fe,oe,rt){return Fe!=null?Fe:oe!=null?oe:rt}function G(){return Function.call.apply(p,arguments)}function ee(Fe){if(typeof Fe=="number")return[Fe,Fe,Fe,Fe];var oe=Fe.length;return oe===2?[Fe[0],Fe[1],Fe[0],Fe[1]]:oe===3?[Fe[0],Fe[1],Fe[2],Fe[1]]:Fe}function se(Fe,oe){if(!Fe)throw new Error(oe)}function ye(Fe){return Fe==null?null:typeof Fe.trim=="function"?Fe.trim():Fe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var he="__ec_primitive__";function ke(Fe){Fe[he]=!0}function Pe(Fe){return Fe[he]}function Ue(Fe){var oe=k(Fe);this.data={};var rt=this;Fe instanceof Ue?Fe.each(fe):Fe&&E(Fe,fe);function fe(J,Y){oe?rt.set(J,Y):rt.set(Y,J)}}Ue.prototype={constructor:Ue,get:function(oe){return this.data.hasOwnProperty(oe)?this.data[oe]:null},set:function(oe,rt){return this.data[oe]=rt},each:function(oe,rt){rt!==void 0&&(oe=O(oe,rt));for(var fe in this.data)this.data.hasOwnProperty(fe)&&oe(this.data[fe],fe)},removeKey:function(oe){delete this.data[oe]}};function $e(Fe){return new Ue(Fe)}function Ge(Fe,oe){for(var rt=new Fe.constructor(Fe.length+oe.length),fe=0;fe<Fe.length;fe++)rt[fe]=Fe[fe];var J=Fe.length;for(fe=0;fe<oe.length;fe++)rt[fe+J]=oe[fe];return rt}function ht(){}L.$override=i,L.clone=t,L.merge=s,L.mergeAll=e,L.extend=l,L.defaults=n,L.createCanvas=o,L.getContext=h,L.indexOf=g,L.inherits=v,L.mixin=b,L.isArrayLike=S,L.each=E,L.map=C,L.reduce=_,L.filter=T,L.find=w,L.bind=O,L.curry=I,L.isArray=k,L.isFunction=M,L.isString=U,L.isObject=P,L.isBuiltInObject=X,L.isTypedArray=F,L.isDom=j,L.eqNaN=K,L.retrieve=z,L.retrieve2=V,L.retrieve3=Q,L.slice=G,L.normalizeCssArray=ee,L.assert=se,L.trim=ye,L.setAsPrimitive=ke,L.isPrimitive=Pe,L.createHashMap=$e,L.concatArray=Ge,L.noop=ht},bZqE:function(R,L){function r(f,x,A){for(var m=[f],p=[],d;d=m.pop();)if(p.push(d),d.isExpand){var u=d.children;if(u.length)for(var a=0;a<u.length;a++)m.push(u[a])}for(;d=p.pop();)x(d,A)}function y(f,x){for(var A=[f],m;m=A.pop();)if(x(m),m.isExpand){var p=m.children;if(p.length)for(var d=p.length-1;d>=0;d--)A.push(p[d])}}L.eachAfter=r,L.eachBefore=y},bahg:function(R,L){function r(y){return y.split("")}R.exports=r},bbsP:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("CWI+"),A=r.n(x)},blIg:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("8IMR")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="StarFilled";var i=A.forwardRef(a);L.default=i},bogI:function(R,L,r){"use strict";r.d(L,"a",function(){return y});var y=function(x){if(!x)return null;var A=typeof x=="function";return A?x():x}},bsht:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};L.default=y},bx4M:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("q1tI"),p=r("TSYQ"),d=r.n(p),u=r("BGR+"),a=r("H84U"),i=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},t=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,k=_.hoverable,M=k===void 0?!0:k,U=i(_,["prefixCls","className","hoverable"]),P=w("card",O),X=d()("".concat(P,"-grid"),I,f()({},"".concat(P,"-grid-hoverable"),M));return m.createElement("div",A()({},U,{className:X}))})},s=t,e=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T},l=function(_){return m.createElement(a.a,null,function(T){var w=T.getPrefixCls,O=_.prefixCls,I=_.className,k=_.avatar,M=_.title,U=_.description,P=e(_,["prefixCls","className","avatar","title","description"]),X=w("card",O),F=d()("".concat(X,"-meta"),I),j=k?m.createElement("div",{className:"".concat(X,"-meta-avatar")},k):null,K=M?m.createElement("div",{className:"".concat(X,"-meta-title")},M):null,z=U?m.createElement("div",{className:"".concat(X,"-meta-description")},U):null,V=K||z?m.createElement("div",{className:"".concat(X,"-meta-detail")},K,z):null;return m.createElement("div",A()({},P,{className:F}),j,V)})},n=l,o=r("ZTPi"),c=r("BMrR"),h=r("kPKH"),g=r("3Nzz"),v=function(C,_){var T={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&_.indexOf(w)<0&&(T[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,w=Object.getOwnPropertySymbols(C);O<w.length;O++)_.indexOf(w[O])<0&&Object.prototype.propertyIsEnumerable.call(C,w[O])&&(T[w[O]]=C[w[O]]);return T};function b(C){var _=C.map(function(T,w){return m.createElement("li",{style:{width:"".concat(100/C.length,"%")},key:"action-".concat(w)},m.createElement("span",null,T))});return _}var S=function(_){var T,w,O=m.useContext(a.b),I=O.getPrefixCls,k=O.direction,M=m.useContext(g.b),U=function(dr){_.onTabChange&&_.onTabChange(dr)},P=function(){var dr;return m.Children.forEach(_.children,function(Vt){Vt&&Vt.type&&Vt.type===s&&(dr=!0)}),dr},X=_.prefixCls,F=_.className,j=_.extra,K=_.headStyle,z=K===void 0?{}:K,V=_.bodyStyle,Q=V===void 0?{}:V,G=_.title,ee=_.loading,se=_.bordered,ye=se===void 0?!0:se,he=_.size,ke=_.type,Pe=_.cover,Ue=_.actions,$e=_.tabList,Ge=_.children,ht=_.activeTabKey,Fe=_.defaultActiveTabKey,oe=_.tabBarExtraContent,rt=_.hoverable,fe=_.tabProps,J=fe===void 0?{}:fe,Y=v(_,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),$=I("card",X),de=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,we=m.createElement("div",{className:"".concat($,"-loading-block")}),Ce=m.createElement("div",{className:"".concat($,"-loading-content"),style:de},m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:22},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},we),m.createElement(h.a,{span:15},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},we),m.createElement(h.a,{span:18},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},we),m.createElement(h.a,{span:9},we)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},we),m.createElement(h.a,{span:3},we),m.createElement(h.a,{span:16},we))),Se=ht!==void 0,le=A()(A()({},J),(T={},f()(T,Se?"activeKey":"defaultActiveKey",Se?ht:Fe),f()(T,"tabBarExtraContent",oe),T)),pe,_e=$e&&$e.length?m.createElement(o.a,A()({size:"large"},le,{className:"".concat($,"-head-tabs"),onChange:U}),$e.map(function(Ht){return m.createElement(o.a.TabPane,{tab:Ht.tab,disabled:Ht.disabled,key:Ht.key})})):null;(G||j||_e)&&(pe=m.createElement("div",{className:"".concat($,"-head"),style:z},m.createElement("div",{className:"".concat($,"-head-wrapper")},G&&m.createElement("div",{className:"".concat($,"-head-title")},G),j&&m.createElement("div",{className:"".concat($,"-extra")},j)),_e));var tt=Pe?m.createElement("div",{className:"".concat($,"-cover")},Pe):null,gt=m.createElement("div",{className:"".concat($,"-body"),style:Q},ee?Ce:Ge),ct=Ue&&Ue.length?m.createElement("ul",{className:"".concat($,"-actions")},b(Ue)):null,je=Object(u.default)(Y,["onTabChange"]),Zt=he||M,ut=d()($,F,(w={},f()(w,"".concat($,"-loading"),ee),f()(w,"".concat($,"-bordered"),ye),f()(w,"".concat($,"-hoverable"),rt),f()(w,"".concat($,"-contain-grid"),P()),f()(w,"".concat($,"-contain-tabs"),$e&&$e.length),f()(w,"".concat($,"-").concat(Zt),Zt),f()(w,"".concat($,"-type-").concat(ke),!!ke),f()(w,"".concat($,"-rtl"),k==="rtl"),w));return m.createElement("div",A()({},je,{className:ut}),pe,tt,gt,ct)};S.Grid=s,S.Meta=n;var E=L.a=S},c2i1:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("Yl7c"),m=A.enableClassCheck;function p(e){return"_EC_"+e}var d=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=d.prototype;u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,l){e=e==null?""+l:""+e;var n=this._nodesMap;if(n[p(e)])return;var o=new a(e,l);return o.hostGraph=this,this.nodes.push(o),n[p(e)]=o,o},u.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},u.getNodeById=function(e){return this._nodesMap[p(e)]},u.addEdge=function(e,l,n){var o=this._nodesMap,c=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),a.isInstance(e)||(e=o[p(e)]),a.isInstance(l)||(l=o[p(l)]),!e||!l)return;var h=e.id+"-"+l.id;if(c[h])return;var g=new i(e,l,n);return g.hostGraph=this,this._directed&&(e.outEdges.push(g),l.inEdges.push(g)),e.edges.push(g),e!==l&&l.edges.push(g),this.edges.push(g),c[h]=g,g},u.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},u.getEdge=function(e,l){a.isInstance(e)&&(e=e.id),a.isInstance(l)&&(l=l.id);var n=this._edgesMap;return this._directed?n[e+"-"+l]:n[e+"-"+l]||n[l+"-"+e]},u.eachNode=function(e,l){for(var n=this.nodes,o=n.length,c=0;c<o;c++)n[c].dataIndex>=0&&e.call(l,n[c],c)},u.eachEdge=function(e,l){for(var n=this.edges,o=n.length,c=0;c<o;c++)n[c].dataIndex>=0&&n[c].node1.dataIndex>=0&&n[c].node2.dataIndex>=0&&e.call(l,n[c],c)},u.breadthFirstTraverse=function(e,l,n,o){if(a.isInstance(l)||(l=this._nodesMap[p(l)]),!l)return;for(var c=n==="out"?"outEdges":n==="in"?"inEdges":"edges",h=0;h<this.nodes.length;h++)this.nodes[h].__visited=!1;if(e.call(o,l,null))return;for(var g=[l];g.length;)for(var v=g.shift(),b=v[c],h=0;h<b.length;h++){var S=b[h],E=S.node1===v?S.node2:S.node1;if(!E.__visited){if(e.call(o,E,v))return;g.push(E),E.__visited=!0}}},u.update=function(){for(var e=this.data,l=this.edgeData,n=this.nodes,o=this.edges,c=0,h=n.length;c<h;c++)n[c].dataIndex=-1;for(var c=0,h=e.count();c<h;c++)n[e.getRawIndex(c)].dataIndex=c;l.filterSelf(function(g){var v=o[l.getRawIndex(g)];return v.node1.dataIndex>=0&&v.node2.dataIndex>=0});for(var c=0,h=o.length;c<h;c++)o[c].dataIndex=-1;for(var c=0,h=l.count();c<h;c++)o[l.getRawIndex(c)].dataIndex=c},u.clone=function(){for(var e=new d(this._directed),l=this.nodes,n=this.edges,o=0;o<l.length;o++)e.addNode(l[o].id,l[o].dataIndex);for(var o=0;o<n.length;o++){var c=n[o];e.addEdge(c.node1.id,c.node2.id,c.dataIndex)}return e};function a(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}a.prototype={constructor:a,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,n=l.data.getItemModel(this.dataIndex);return n.getModel(e)}};function i(e,l,n){this.node1=e,this.node2=l,this.dataIndex=n==null?-1:n}i.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,n=l.edgeData.getItemModel(this.dataIndex);return n.getModel(e)};var t=function(e,l){return{getValue:function(n){var o=this[e][l];return o.get(o.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,o){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,n,o)},getVisual:function(n,o){return this[e][l].getItemVisual(this.dataIndex,n,o)},setLayout:function(n,o){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,n,o)},getLayout:function(){return this[e][l].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][l].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][l].getRawIndex(this.dataIndex)}}};x.mixin(a,t("hostGraph","data")),x.mixin(i,t("hostGraph","edgeData")),d.Node=a,d.Edge=i,m(a),m(i);var s=d;R.exports=s},c3jg:function(R,L,r){"use strict";r.d(L,"e",function(){return d}),r.d(L,"c",function(){return a}),r.d(L,"d",function(){return i}),r.d(L,"a",function(){return s}),r.d(L,"f",function(){return e}),r.d(L,"b",function(){return l});var y=r("KQm4"),f=r("VTBJ"),x=r("Ff2n"),A=r("Zm9Q"),m=r("Kwbf"),p=r("wPhX");function d(n,o){return n!=null?n:o}function u(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=new Map;function c(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(v){var b=v.key,S=v.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var E=String(b);Object(m.a)(!o.has(E)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(E)),o.set(E,!0),c(S,"".concat(g).concat(E," > "))})}c(n)}function a(n){function o(c){var h=Object(A.a)(c);return h.map(function(g){if(!Object(p.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var v=g.key,b=g.props,S=b.children,E=Object(x.a)(b,["children"]),C=Object(f.a)({key:v},E),_=o(S);return _.length&&(C.children=_),C}).filter(function(g){return g})}return o(n)}function i(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=new Set(o===!0?[]:o),h=[];function g(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(S,E){var C=Object(p.h)(b?b.pos:"0",E),_=d(S.key,C),T=Object(f.a)(Object(f.a)({},S),{},{parent:b,pos:C,children:null,data:S,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[E===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[E===v.length-1])});return h.push(T),o===!0||c.has(_)?T.children=g(S.children||[],T):T.children=[],T})}return g(n),h}function t(n,o,c){var h;c?typeof c=="string"?h=function(b){return b[c]}:typeof c=="function"&&(h=function(b){return c(b)}):h=function(b,S){return d(b.key,S)};function g(v,b,S){var E=v?v.children:n,C=v?Object(p.h)(S.pos,b):"0";if(v){var _=h(v,C),T={node:v,index:b,pos:C,key:_,parentPos:S.node?S.pos:null,level:S.level+1};o(T)}E&&E.forEach(function(w,O){g(w,O,{node:v,pos:C,level:S?S.level+1:-1})})}g(null)}function s(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=o.initWrapper,h=o.processEntity,g=o.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,b={},S={},E={posEntities:b,keyEntities:S};return c&&(E=c(E)||E),t(n,function(C){var _=C.node,T=C.index,w=C.pos,O=C.key,I=C.parentPos,k=C.level,M={node:_,index:T,key:O,pos:w,level:k},U=d(O,w);b[w]=M,S[U]=M,M.parent=b[I],M.parent&&(M.parent.children=M.parent.children||[],M.parent.children.push(M)),h&&h(M,E)},v),g&&g(E),E}function e(n,o){var c=o.expandedKeys,h=o.selectedKeys,g=o.loadedKeys,v=o.loadingKeys,b=o.checkedKeys,S=o.halfCheckedKeys,E=o.dragOverNodeKey,C=o.dropPosition,_=o.keyEntities,T=_[n],w={eventKey:n,expanded:c.indexOf(n)!==-1,selected:h.indexOf(n)!==-1,loaded:g.indexOf(n)!==-1,loading:v.indexOf(n)!==-1,checked:b.indexOf(n)!==-1,halfChecked:S.indexOf(n)!==-1,pos:String(T?T.pos:""),dragOver:E===n&&C===0,dragOverGapTop:E===n&&C===-1,dragOverGapBottom:E===n&&C===1};return w}function l(n){var o=n.data,c=n.expanded,h=n.selected,g=n.checked,v=n.loaded,b=n.loading,S=n.halfChecked,E=n.dragOver,C=n.dragOverGapTop,_=n.dragOverGapBottom,T=n.pos,w=n.active,O=Object(f.a)(Object(f.a)({},o),{},{expanded:c,selected:h,checked:g,loaded:v,loading:b,halfChecked:S,dragOver:E,dragOverGapTop:C,dragOverGapBottom:_,pos:T,active:w});return"props"in O||Object.defineProperty(O,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),n}}),O}},c5Ni:function(R,L,r){},c5fP:function(R,L,r){"use strict";function y(ut){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(dr){return typeof dr}:y=function(dr){return dr&&typeof Symbol=="function"&&dr.constructor===Symbol&&dr!==Symbol.prototype?"symbol":typeof dr},y(ut)}Object.defineProperty(L,"__esModule",{value:!0}),L._tr_init=tt,L._tr_stored_block=gt,L._tr_flush_block=je,L._tr_tally=Zt,L._tr_align=ct;var f=A(r("6BzB"));function x(){if(typeof WeakMap!="function")return null;var ut=new WeakMap;return x=function(){return ut},ut}function A(ut){if(ut&&ut.__esModule)return ut;if(ut===null||y(ut)!=="object"&&typeof ut!="function")return{default:ut};var Ht=x();if(Ht&&Ht.has(ut))return Ht.get(ut);var dr={},Vt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Mt in ut)if(Object.prototype.hasOwnProperty.call(ut,Mt)){var Gt=Vt?Object.getOwnPropertyDescriptor(ut,Mt):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(dr,Mt,Gt):dr[Mt]=ut[Mt]}return dr.default=ut,Ht&&Ht.set(ut,dr),dr}var m=4,p=0,d=1,u=2;function a(ut){for(var Ht=ut.length;--Ht>=0;)ut[Ht]=0}var i=0,t=1,s=2,e=3,l=258,n=29,o=256,c=o+1+n,h=30,g=19,v=2*c+1,b=15,S=16,E=7,C=256,_=16,T=17,w=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=512,P=new Array((c+2)*2);a(P);var X=new Array(h*2);a(X);var F=new Array(U);a(F);var j=new Array(l-e+1);a(j);var K=new Array(n);a(K);var z=new Array(h);a(z);function V(ut,Ht,dr,Vt,Mt){this.static_tree=ut,this.extra_bits=Ht,this.extra_base=dr,this.elems=Vt,this.max_length=Mt,this.has_stree=ut&&ut.length}var Q,G,ee;function se(ut,Ht){this.dyn_tree=ut,this.max_code=0,this.stat_desc=Ht}function ye(ut){return ut<256?F[ut]:F[256+(ut>>>7)]}function he(ut,Ht){ut.pending_buf[ut.pending++]=Ht&255,ut.pending_buf[ut.pending++]=Ht>>>8&255}function ke(ut,Ht,dr){ut.bi_valid>S-dr?(ut.bi_buf|=Ht<<ut.bi_valid&65535,he(ut,ut.bi_buf),ut.bi_buf=Ht>>S-ut.bi_valid,ut.bi_valid+=dr-S):(ut.bi_buf|=Ht<<ut.bi_valid&65535,ut.bi_valid+=dr)}function Pe(ut,Ht,dr){ke(ut,dr[Ht*2],dr[Ht*2+1])}function Ue(ut,Ht){var dr=0;do dr|=ut&1,ut>>>=1,dr<<=1;while(--Ht>0);return dr>>>1}function $e(ut){ut.bi_valid===16?(he(ut,ut.bi_buf),ut.bi_buf=0,ut.bi_valid=0):ut.bi_valid>=8&&(ut.pending_buf[ut.pending++]=ut.bi_buf&255,ut.bi_buf>>=8,ut.bi_valid-=8)}function Ge(ut,Ht){var dr=Ht.dyn_tree,Vt=Ht.max_code,Mt=Ht.stat_desc.static_tree,Gt=Ht.stat_desc.has_stree,Ve=Ht.stat_desc.extra_bits,me=Ht.stat_desc.extra_base,te=Ht.stat_desc.max_length,Ze,Xe,ue,St,Qt,dt,Jt=0;for(St=0;St<=b;St++)ut.bl_count[St]=0;for(dr[ut.heap[ut.heap_max]*2+1]=0,Ze=ut.heap_max+1;Ze<v;Ze++){if(Xe=ut.heap[Ze],St=dr[dr[Xe*2+1]*2+1]+1,St>te&&(St=te,Jt++),dr[Xe*2+1]=St,Xe>Vt)continue;ut.bl_count[St]++,Qt=0,Xe>=me&&(Qt=Ve[Xe-me]),dt=dr[Xe*2],ut.opt_len+=dt*(St+Qt),Gt&&(ut.static_len+=dt*(Mt[Xe*2+1]+Qt))}if(Jt===0)return;do{for(St=te-1;ut.bl_count[St]===0;)St--;ut.bl_count[St]--,ut.bl_count[St+1]+=2,ut.bl_count[te]--,Jt-=2}while(Jt>0);for(St=te;St!==0;St--)for(Xe=ut.bl_count[St];Xe!==0;){if(ue=ut.heap[--Ze],ue>Vt)continue;dr[ue*2+1]!==St&&(ut.opt_len+=(St-dr[ue*2+1])*dr[ue*2],dr[ue*2+1]=St),Xe--}}function ht(ut,Ht,dr){var Vt=new Array(b+1),Mt=0,Gt,Ve;for(Gt=1;Gt<=b;Gt++)Vt[Gt]=Mt=Mt+dr[Gt-1]<<1;for(Ve=0;Ve<=Ht;Ve++){var me=ut[Ve*2+1];if(me===0)continue;ut[Ve*2]=Ue(Vt[me]++,me)}}function Fe(){var ut,Ht,dr,Vt,Mt,Gt=new Array(b+1);for(dr=0,Vt=0;Vt<n-1;Vt++)for(K[Vt]=dr,ut=0;ut<1<<O[Vt];ut++)j[dr++]=Vt;for(j[dr-1]=Vt,Mt=0,Vt=0;Vt<16;Vt++)for(z[Vt]=Mt,ut=0;ut<1<<I[Vt];ut++)F[Mt++]=Vt;for(Mt>>=7;Vt<h;Vt++)for(z[Vt]=Mt<<7,ut=0;ut<1<<I[Vt]-7;ut++)F[256+Mt++]=Vt;for(Ht=0;Ht<=b;Ht++)Gt[Ht]=0;for(ut=0;ut<=143;)P[ut*2+1]=8,ut++,Gt[8]++;for(;ut<=255;)P[ut*2+1]=9,ut++,Gt[9]++;for(;ut<=279;)P[ut*2+1]=7,ut++,Gt[7]++;for(;ut<=287;)P[ut*2+1]=8,ut++,Gt[8]++;for(ht(P,c+1,Gt),ut=0;ut<h;ut++)X[ut*2+1]=5,X[ut*2]=Ue(ut,5);Q=new V(P,O,o+1,c,b),G=new V(X,I,0,h,b),ee=new V(new Array(0),k,0,g,E)}function oe(ut){var Ht;for(Ht=0;Ht<c;Ht++)ut.dyn_ltree[Ht*2]=0;for(Ht=0;Ht<h;Ht++)ut.dyn_dtree[Ht*2]=0;for(Ht=0;Ht<g;Ht++)ut.bl_tree[Ht*2]=0;ut.dyn_ltree[C*2]=1,ut.opt_len=ut.static_len=0,ut.last_lit=ut.matches=0}function rt(ut){ut.bi_valid>8?he(ut,ut.bi_buf):ut.bi_valid>0&&(ut.pending_buf[ut.pending++]=ut.bi_buf),ut.bi_buf=0,ut.bi_valid=0}function fe(ut,Ht,dr,Vt){rt(ut),Vt&&(he(ut,dr),he(ut,~dr)),f.arraySet(ut.pending_buf,ut.window,Ht,dr,ut.pending),ut.pending+=dr}function J(ut,Ht,dr,Vt){var Mt=Ht*2,Gt=dr*2;return ut[Mt]<ut[Gt]||ut[Mt]===ut[Gt]&&Vt[Ht]<=Vt[dr]}function Y(ut,Ht,dr){for(var Vt=ut.heap[dr],Mt=dr<<1;Mt<=ut.heap_len&&!(Mt<ut.heap_len&&J(Ht,ut.heap[Mt+1],ut.heap[Mt],ut.depth)&&Mt++,J(Ht,Vt,ut.heap[Mt],ut.depth));)ut.heap[dr]=ut.heap[Mt],dr=Mt,Mt<<=1;ut.heap[dr]=Vt}function $(ut,Ht,dr){var Vt,Mt,Gt=0,Ve,me;if(ut.last_lit!==0)do Vt=ut.pending_buf[ut.d_buf+Gt*2]<<8|ut.pending_buf[ut.d_buf+Gt*2+1],Mt=ut.pending_buf[ut.l_buf+Gt],Gt++,Vt===0?Pe(ut,Mt,Ht):(Ve=j[Mt],Pe(ut,Ve+o+1,Ht),me=O[Ve],me!==0&&(Mt-=K[Ve],ke(ut,Mt,me)),Vt--,Ve=ye(Vt),Pe(ut,Ve,dr),me=I[Ve],me!==0&&(Vt-=z[Ve],ke(ut,Vt,me)));while(Gt<ut.last_lit);Pe(ut,C,Ht)}function de(ut,Ht){var dr=Ht.dyn_tree,Vt=Ht.stat_desc.static_tree,Mt=Ht.stat_desc.has_stree,Gt=Ht.stat_desc.elems,Ve,me,te=-1,Ze;for(ut.heap_len=0,ut.heap_max=v,Ve=0;Ve<Gt;Ve++)dr[Ve*2]!==0?(ut.heap[++ut.heap_len]=te=Ve,ut.depth[Ve]=0):dr[Ve*2+1]=0;for(;ut.heap_len<2;)Ze=ut.heap[++ut.heap_len]=te<2?++te:0,dr[Ze*2]=1,ut.depth[Ze]=0,ut.opt_len--,Mt&&(ut.static_len-=Vt[Ze*2+1]);for(Ht.max_code=te,Ve=ut.heap_len>>1;Ve>=1;Ve--)Y(ut,dr,Ve);Ze=Gt;do Ve=ut.heap[1],ut.heap[1]=ut.heap[ut.heap_len--],Y(ut,dr,1),me=ut.heap[1],ut.heap[--ut.heap_max]=Ve,ut.heap[--ut.heap_max]=me,dr[Ze*2]=dr[Ve*2]+dr[me*2],ut.depth[Ze]=(ut.depth[Ve]>=ut.depth[me]?ut.depth[Ve]:ut.depth[me])+1,dr[Ve*2+1]=dr[me*2+1]=Ze,ut.heap[1]=Ze++,Y(ut,dr,1);while(ut.heap_len>=2);ut.heap[--ut.heap_max]=ut.heap[1],Ge(ut,Ht),ht(dr,te,ut.bl_count)}function we(ut,Ht,dr){var Vt,Mt=-1,Gt,Ve=Ht[0*2+1],me=0,te=7,Ze=4;for(Ve===0&&(te=138,Ze=3),Ht[(dr+1)*2+1]=65535,Vt=0;Vt<=dr;Vt++){if(Gt=Ve,Ve=Ht[(Vt+1)*2+1],++me<te&&Gt===Ve)continue;me<Ze?ut.bl_tree[Gt*2]+=me:Gt!==0?(Gt!==Mt&&ut.bl_tree[Gt*2]++,ut.bl_tree[_*2]++):me<=10?ut.bl_tree[T*2]++:ut.bl_tree[w*2]++,me=0,Mt=Gt,Ve===0?(te=138,Ze=3):Gt===Ve?(te=6,Ze=3):(te=7,Ze=4)}}function Ce(ut,Ht,dr){var Vt,Mt=-1,Gt,Ve=Ht[0*2+1],me=0,te=7,Ze=4;for(Ve===0&&(te=138,Ze=3),Vt=0;Vt<=dr;Vt++){if(Gt=Ve,Ve=Ht[(Vt+1)*2+1],++me<te&&Gt===Ve)continue;if(me<Ze)do Pe(ut,Gt,ut.bl_tree);while(--me!==0);else Gt!==0?(Gt!==Mt&&(Pe(ut,Gt,ut.bl_tree),me--),Pe(ut,_,ut.bl_tree),ke(ut,me-3,2)):me<=10?(Pe(ut,T,ut.bl_tree),ke(ut,me-3,3)):(Pe(ut,w,ut.bl_tree),ke(ut,me-11,7));me=0,Mt=Gt,Ve===0?(te=138,Ze=3):Gt===Ve?(te=6,Ze=3):(te=7,Ze=4)}}function Se(ut){var Ht;for(we(ut,ut.dyn_ltree,ut.l_desc.max_code),we(ut,ut.dyn_dtree,ut.d_desc.max_code),de(ut,ut.bl_desc),Ht=g-1;Ht>=3&&!(ut.bl_tree[M[Ht]*2+1]!==0);Ht--);return ut.opt_len+=3*(Ht+1)+5+5+4,Ht}function le(ut,Ht,dr,Vt){var Mt;for(ke(ut,Ht-257,5),ke(ut,dr-1,5),ke(ut,Vt-4,4),Mt=0;Mt<Vt;Mt++)ke(ut,ut.bl_tree[M[Mt]*2+1],3);Ce(ut,ut.dyn_ltree,Ht-1),Ce(ut,ut.dyn_dtree,dr-1)}function pe(ut){var Ht=4093624447,dr;for(dr=0;dr<=31;dr++,Ht>>>=1)if(Ht&1&&ut.dyn_ltree[dr*2]!==0)return p;if(ut.dyn_ltree[9*2]!==0||ut.dyn_ltree[10*2]!==0||ut.dyn_ltree[13*2]!==0)return d;for(dr=32;dr<o;dr++)if(ut.dyn_ltree[dr*2]!==0)return d;return p}var _e=!1;function tt(ut){_e||(Fe(),_e=!0),ut.l_desc=new se(ut.dyn_ltree,Q),ut.d_desc=new se(ut.dyn_dtree,G),ut.bl_desc=new se(ut.bl_tree,ee),ut.bi_buf=0,ut.bi_valid=0,oe(ut)}function gt(ut,Ht,dr,Vt){ke(ut,(i<<1)+(Vt?1:0),3),fe(ut,Ht,dr,!0)}function ct(ut){ke(ut,t<<1,3),Pe(ut,C,P),$e(ut)}function je(ut,Ht,dr,Vt){var Mt,Gt,Ve=0;ut.level>0?(ut.strm.data_type===u&&(ut.strm.data_type=pe(ut)),de(ut,ut.l_desc),de(ut,ut.d_desc),Ve=Se(ut),Mt=ut.opt_len+3+7>>>3,Gt=ut.static_len+3+7>>>3,Gt<=Mt&&(Mt=Gt)):Mt=Gt=dr+5,dr+4<=Mt&&Ht!==-1?gt(ut,Ht,dr,Vt):ut.strategy===m||Gt===Mt?(ke(ut,(t<<1)+(Vt?1:0),3),$(ut,P,X)):(ke(ut,(s<<1)+(Vt?1:0),3),le(ut,ut.l_desc.max_code+1,ut.d_desc.max_code+1,Ve+1),$(ut,ut.dyn_ltree,ut.dyn_dtree)),oe(ut),Vt&&rt(ut)}function Zt(ut,Ht,dr){return ut.pending_buf[ut.d_buf+ut.last_lit*2]=Ht>>>8&255,ut.pending_buf[ut.d_buf+ut.last_lit*2+1]=Ht&255,ut.pending_buf[ut.l_buf+ut.last_lit]=dr&255,ut.last_lit++,Ht===0?ut.dyn_ltree[dr*2]++:(ut.matches++,Ht--,ut.dyn_ltree[(j[dr]+o+1)*2]++,ut.dyn_dtree[ye(Ht)*2]++),ut.last_lit===ut.lit_bufsize-1}},c6wG:function(R,L,r){var y=r("dD9F"),f=r("sEf8"),x=r("mdPL"),A=x&&x.isTypedArray,m=A?f(A):y;R.exports=m},c8qY:function(R,L,r){var y=r("IwbS"),f=r("fls0");function x(s){this._ctor=s||f,this.group=new y.Group}var A=x.prototype;A.isPersistent=function(){return!0},A.updateData=function(s){var e=this,l=e.group,n=e._lineData;e._lineData=s,n||l.removeAll();var o=u(s);s.diff(n).add(function(c){m(e,s,c,o)}).update(function(c,h){p(e,n,s,h,c,o)}).remove(function(c){l.remove(n.getItemGraphicEl(c))}).execute()};function m(s,e,l,n){var o=e.getItemLayout(l);if(!i(o))return;var c=new s._ctor(e,l,n);e.setItemGraphicEl(l,c),s.group.add(c)}function p(s,e,l,n,o,c){var h=e.getItemGraphicEl(n);if(!i(l.getItemLayout(o))){s.group.remove(h);return}h?h.updateData(l,o,c):h=new s._ctor(l,o,c),l.setItemGraphicEl(o,h),s.group.add(h)}A.updateLayout=function(){var s=this._lineData;if(!s)return;s.eachItemGraphicEl(function(e,l){e.updateLayout(s,l)},this)},A.incrementalPrepareUpdate=function(s){this._seriesScope=u(s),this._lineData=null,this.group.removeAll()};function d(s){return s.animators&&s.animators.length>0}A.incrementalUpdate=function(s,e){function l(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var n=s.start;n<s.end;n++){var o=e.getItemLayout(n);if(i(o)){var c=new this._ctor(e,n,this._seriesScope);c.traverse(l),this.group.add(c),e.setItemGraphicEl(n,c)}}};function u(s){var e=s.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var s=this._incremental;s&&s.clearDisplaybles()};function a(s){return isNaN(s[0])||isNaN(s[1])}function i(s){return!a(s[0])&&!a(s[1])}var t=x;R.exports=t},cCMj:function(R,L,r){var y=r("bYtY"),f={updateSelectedMap:function(x){this._targetList=y.isArray(x)?x.slice():[],this._selectTargetMap=y.reduce(x||[],function(A,m){return A.set(m.name,m),A},y.createHashMap())},select:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x),p=this.get("selectedMode");p==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),m&&(m.selected=!0)},unSelect:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);m&&(m.selected=!1)},toggleSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);if(m!=null)return this[m.selected?"unSelect":"select"](x,A),m.selected},isSelected:function(x,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(x);return m&&m.selected}};R.exports=f},cVA7:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=r("MT78"),f=m(y),x=r("t3Fx"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}function p(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function d(i,t){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:i}function u(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}var a=function(i){u(t,i);function t(s){p(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,s));return e.echartsLib=f.default,e}return t}(A.default);L.default=a},cWXX:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("oIFs"),A=r.n(x)},ca2m:function(R,L,r){var y=r("bYtY"),f={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},x={};x.categoryAxis=y.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},f),x.valueAxis=y.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},f),x.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},x.valueAxis),x.logAxis=y.defaults({scale:!0,logBase:10},x.valueAxis);var A=x;R.exports=A},cbJ4:function(R,L,r){var y=r("bYtY"),f=y.createHashMap;function x(A){A.eachSeriesByType("themeRiver",function(m){var p=m.getData(),d=m.getRawData(),u=m.get("color"),a=f();p.each(function(i){a.set(p.getRawIndex(i),i)}),d.each(function(i){var t=d.getName(i),s=u[(m.nameMap.get(t)-1)%u.length];d.setItemVisual(i,"color",s);var e=a.get(i);e!=null&&p.setItemVisual(e,"color",s)})})}R.exports=x},chpo:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=1,f=function(){return"".concat(y++)};L.default=f},cpOr:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("T4UG"),A=r("YXkt"),m=r("bYtY"),p=m.concatArray,d=m.mergeAll,u=m.map,a=r("7aKB"),i=a.encodeHTML,t=r("IDmD"),s=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(c){var h=c.data;h&&h[0]&&h[0][0]&&h[0][0].coord&&(c.data=u(h,function(g){var v=[g[0].coord,g[1].coord],b={coords:v};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),d([b,g[0],g[1]])}))}var n=x.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(c){c.data=c.data||[],l(c);var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count)),n.superApply(this,"init",arguments)},mergeOption:function(c){if(c.data=c.data||[],l(c),c.data){var h=this._processFlatCoordsArray(c.data);this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset,h.flatCoords&&(c.data=new Float32Array(h.count))}n.superApply(this,"mergeOption",arguments)},appendData:function(c){var h=this._processFlatCoordsArray(c.data);h.flatCoords&&(this._flatCoords?(this._flatCoords=p(this._flatCoords,h.flatCoords),this._flatCoordsOffset=p(this._flatCoordsOffset,h.flatCoordsOffset)):(this._flatCoords=h.flatCoords,this._flatCoordsOffset=h.flatCoordsOffset),c.data=new Float32Array(h.count)),this.getRawData().appendData(c.data)},_getCoordsFromItemModel:function(c){var h=this.getData().getItemModel(c),g=h.option instanceof Array?h.option:h.getShallow("coords");return g},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,h){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[c*2],v=this._flatCoordsOffset[c*2+1],b=0;b<v;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[g+b*2],h[b][1]=this._flatCoords[g+b*2+1];return v}else{for(var S=this._getCoordsFromItemModel(c),b=0;b<S.length;b++)h[b]=h[b]||[],h[b][0]=S[b][0],h[b][1]=S[b][1];return S.length}},_processFlatCoordsArray:function(c){var h=0;if(this._flatCoords&&(h=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,v=new s(g),b=new e(g),S=0,E=0,C=0,_=0;_<g;){C++;var T=c[_++];v[E++]=S+h,v[E++]=T;for(var w=0;w<T;w++){var O=c[_++],I=c[_++];b[S++]=O,b[S++]=I,_>g}}return{flatCoordsOffset:new Uint32Array(v.buffer,0,E),flatCoords:b,count:C}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var g=new A(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(v,b,S,E){if(v instanceof Array)return NaN;g.hasItemOption=!0;var C=v.value;if(C!=null)return C instanceof Array?C[E]:C}),g},formatTooltip:function(c){var h=this.getData(),g=h.getItemModel(c),v=g.get("name");if(v)return v;var b=g.get("fromName"),S=g.get("toName"),E=[];return b!=null&&E.push(b),S!=null&&E.push(S),i(E.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var c=this.option.progressive;return c==null?this.option.large?1e4:this.get("progressive"):c},getProgressiveThreshold:function(){var c=this.option.progressiveThreshold;return c==null?this.option.large?2e4:this.get("progressiveThreshold"):c},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),o=n;R.exports=o},cpPs:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("rBdH"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},crZl:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS"),A=r("7aKB"),m=r("+TT/"),p=r("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(u,a){this.ecModel=u,this.api=a,this.visualMapModel},render:function(u,a,i,t){if(this.visualMapModel=u,u.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(u){var a=this.visualMapModel,i=A.normalizeCssArray(a.get("padding")||0),t=u.getBoundingRect();u.add(new x.Rect({z2:-1,silent:!0,shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[3]+i[1],height:t.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},getControllerVisual:function(u,a,i){i=i||{};var t=i.forceState,s=this.visualMapModel,e={};if(a==="symbol"&&(e.symbol=s.get("itemSymbol")),a==="color"){var l=s.get("contentColor");e.color=l}function n(g){return e[g]}function o(g,v){e[g]=v}var c=s.controllerVisuals[t||s.getValueState(u)],h=p.prepareVisualTypes(c);return f.each(h,function(g){var v=c[g];i.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",v=c.__alphaForOpacity),p.dependsOn(g,a)&&(v&&v.applyVisual(u,n,o))}),e[a]},positionGroup:function(u){var a=this.visualMapModel,i=this.api;m.positionElement(u,a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:f.noop});R.exports=d},crp1:function(R,L,r){"use strict";r.d(L,"b",function(){return ft}),r.d(L,"a",function(){return En});var y={},f=function(Tt,Ct,Ar,er,Ft){var ir=y[Ct]||(y[Ct]=URL.createObjectURL(new Blob([Tt],{type:"text/javascript"}))),Pt=new Worker(ir);return Pt.onerror=function(rr){return Ft(rr.error,null)},Pt.onmessage=function(rr){return Ft(null,rr.data)},Pt.postMessage(Ar,er),Pt},x=Uint8Array,A=Uint16Array,m=Uint32Array,p=new x([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),d=new x([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new x([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(Tt,Ct){for(var Ar=new A(31),er=0;er<31;++er)Ar[er]=Ct+=1<<Tt[er-1];for(var Ft=new m(Ar[30]),er=1;er<30;++er)for(var ir=Ar[er];ir<Ar[er+1];++ir)Ft[ir]=ir-Ar[er]<<5|er;return[Ar,Ft]},i=a(p,2),t=i[0],s=i[1];t[28]=258,s[258]=28;for(var e=a(d,0),l=e[0],n=e[1],o=new A(32768),c=0;c<32768;++c){var h=(c&43690)>>>1|(c&21845)<<1;h=(h&52428)>>>2|(h&13107)<<2,h=(h&61680)>>>4|(h&3855)<<4,o[c]=((h&65280)>>>8|(h&255)<<8)>>>1}for(var g=function(Tt,Ct,Ar){for(var er=Tt.length,Ft=0,ir=new A(Ct);Ft<er;++Ft)++ir[Tt[Ft]-1];var Pt=new A(Ct);for(Ft=0;Ft<Ct;++Ft)Pt[Ft]=Pt[Ft-1]+ir[Ft-1]<<1;var rr;if(Ar){rr=new A(1<<Ct);var Yr=15-Ct;for(Ft=0;Ft<er;++Ft)if(Tt[Ft])for(var Pr=Ft<<4|Tt[Ft],Mr=Ct-Tt[Ft],fn=Pt[Tt[Ft]-1]++<<Mr,wn=fn|(1<<Mr)-1;fn<=wn;++fn)rr[o[fn]>>>Yr]=Pr}else for(rr=new A(er),Ft=0;Ft<er;++Ft)rr[Ft]=o[Pt[Tt[Ft]-1]++]>>>15-Tt[Ft];return rr},v=new x(288),c=0;c<144;++c)v[c]=8;for(var c=144;c<256;++c)v[c]=9;for(var c=256;c<280;++c)v[c]=7;for(var c=280;c<288;++c)v[c]=8;for(var b=new x(32),c=0;c<32;++c)b[c]=5;var S=g(v,9,0),E=g(v,9,1),C=g(b,5,0),_=g(b,5,1),T=function(Tt){for(var Ct=Tt[0],Ar=1;Ar<Tt.length;++Ar)Tt[Ar]>Ct&&(Ct=Tt[Ar]);return Ct},w=function(Tt,Ct,Ar){var er=Ct/8>>0;return(Tt[er]|Tt[er+1]<<8)>>>(Ct&7)&Ar},O=function(Tt,Ct){var Ar=Ct/8>>0;return(Tt[Ar]|Tt[Ar+1]<<8|Tt[Ar+2]<<16)>>>(Ct&7)},I=function(Tt){return(Tt/8>>0)+(Tt&7&&1)},k=function(Tt,Ct,Ar){(Ct==null||Ct<0)&&(Ct=0),(Ar==null||Ar>Tt.length)&&(Ar=Tt.length);var er=new(Tt instanceof A?A:Tt instanceof m?m:x)(Ar-Ct);return er.set(Tt.subarray(Ct,Ar)),er},M=function(Tt,Ct,Ar){var er=Tt.length,Ft=!Ct||Ar,ir=!Ar||Ar.i;Ar||(Ar={}),Ct||(Ct=new x(er*3));var Pt=function(Gn){var Wt=Ct.length;if(Gn>Wt){var Ot=new x(Math.max(Wt*2,Gn));Ot.set(Ct),Ct=Ot}},rr=Ar.f||0,Yr=Ar.p||0,Pr=Ar.b||0,Mr=Ar.l,fn=Ar.d,wn=Ar.m,ai=Ar.n,ri=er*8;do{if(!Mr){Ar.f=rr=w(Tt,Yr,1);var gi=w(Tt,Yr+1,3);if(Yr+=3,gi)if(gi==1)Mr=E,fn=_,wn=9,ai=5;else if(gi==2){var ot=w(Tt,Yr,31)+257,Ne=w(Tt,Yr+10,15)+4,He=ot+w(Tt,Yr+5,31)+1;Yr+=14;for(var Ye=new x(He),at=new x(19),qe=0;qe<Ne;++qe)at[u[qe]]=w(Tt,Yr+qe*3,7);Yr+=Ne*3;var lt=T(at),Et=(1<<lt)-1;if(!ir&&Yr+He*(lt+7)>ri)break;for(var At=g(at,lt,1),qe=0;qe<He;){var fr=At[w(Tt,Yr,Et)];Yr+=fr&15;var Ii=fr>>>4;if(Ii<16)Ye[qe++]=Ii;else{var Jr=0,Vr=0;for(Ii==16?(Vr=3+w(Tt,Yr,3),Yr+=2,Jr=Ye[qe-1]):Ii==17?(Vr=3+w(Tt,Yr,7),Yr+=3):Ii==18&&(Vr=11+w(Tt,Yr,127),Yr+=7);Vr--;)Ye[qe++]=Jr}}var dn=Ye.subarray(0,ot),gr=Ye.subarray(ot);wn=T(dn),ai=T(gr),Mr=g(dn,wn,1),fn=g(gr,ai,1)}else throw"invalid block type";else{var Ii=I(Yr)+4,Mi=Tt[Ii-4]|Tt[Ii-3]<<8,Qi=Ii+Mi;if(Qi>er){if(ir)throw"unexpected EOF";break}Ft&&Pt(Pr+Mi),Ct.set(Tt.subarray(Ii,Qi),Pr),Ar.b=Pr+=Mi,Ar.p=Yr=Qi*8;continue}if(Yr>ri)throw"unexpected EOF"}Ft&&Pt(Pr+131072);for(var Wn=(1<<wn)-1,kr=(1<<ai)-1,Fn=wn+ai+18;ir||Yr+Fn<ri;){var Jr=Mr[O(Tt,Yr)&Wn],vn=Jr>>>4;if(Yr+=Jr&15,Yr>ri)throw"unexpected EOF";if(!Jr)throw"invalid length/literal";if(vn<256)Ct[Pr++]=vn;else if(vn==256){Mr=null;break}else{var $r=vn-254;if(vn>264){var qe=vn-257,ei=p[qe];$r=w(Tt,Yr,(1<<ei)-1)+t[qe],Yr+=ei}var fi=fn[O(Tt,Yr)&kr],Pi=fi>>>4;if(!fi)throw"invalid distance";Yr+=fi&15;var gr=l[Pi];if(Pi>3){var ei=d[Pi];gr+=O(Tt,Yr)&(1<<ei)-1,Yr+=ei}if(Yr>ri)throw"unexpected EOF";Ft&&Pt(Pr+131072);for(var Zr=Pr+$r;Pr<Zr;Pr+=4)Ct[Pr]=Ct[Pr-gr],Ct[Pr+1]=Ct[Pr+1-gr],Ct[Pr+2]=Ct[Pr+2-gr],Ct[Pr+3]=Ct[Pr+3-gr];Pr=Zr}}Ar.l=Mr,Ar.p=Yr,Ar.b=Pr,Mr&&(rr=1,Ar.m=wn,Ar.d=fn,Ar.n=ai)}while(!rr);return Pr==Ct.length?Ct:k(Ct,0,Pr)},U=function(Tt,Ct,Ar){Ar<<=Ct&7;var er=Ct/8>>0;Tt[er]|=Ar,Tt[er+1]|=Ar>>>8},P=function(Tt,Ct,Ar){Ar<<=Ct&7;var er=Ct/8>>0;Tt[er]|=Ar,Tt[er+1]|=Ar>>>8,Tt[er+2]|=Ar>>>16},X=function(Tt,Ct){for(var Ar=[],er=0;er<Tt.length;++er)Tt[er]&&Ar.push({s:er,f:Tt[er]});var Ft=Ar.length,ir=Ar.slice();if(!Ft)return[new x(0),0];if(Ft==1){var Pt=new x(Ar[0].s+1);return Pt[Ar[0].s]=1,[Pt,1]}Ar.sort(function(He,Ye){return He.f-Ye.f}),Ar.push({s:-1,f:25001});var rr=Ar[0],Yr=Ar[1],Pr=0,Mr=1,fn=2;for(Ar[0]={s:-1,f:rr.f+Yr.f,l:rr,r:Yr};Mr!=Ft-1;)rr=Ar[Ar[Pr].f<Ar[fn].f?Pr++:fn++],Yr=Ar[Pr!=Mr&&Ar[Pr].f<Ar[fn].f?Pr++:fn++],Ar[Mr++]={s:-1,f:rr.f+Yr.f,l:rr,r:Yr};for(var wn=ir[0].s,er=1;er<Ft;++er)ir[er].s>wn&&(wn=ir[er].s);var ai=new A(wn+1),ri=F(Ar[Mr-1],ai,0);if(ri>Ct){var er=0,gi=0,Ii=ri-Ct,Mi=1<<Ii;for(ir.sort(function(Ye,at){return ai[at.s]-ai[Ye.s]||Ye.f-at.f});er<Ft;++er){var Qi=ir[er].s;if(ai[Qi]>Ct)gi+=Mi-(1<<ri-ai[Qi]),ai[Qi]=Ct;else break}for(gi>>>=Ii;gi>0;){var ot=ir[er].s;ai[ot]<Ct?gi-=1<<Ct-ai[ot]++-1:++er}for(;er>=0&&gi;--er){var Ne=ir[er].s;ai[Ne]==Ct&&(--ai[Ne],++gi)}ri=Ct}return[new x(ai),ri]},F=function ur(Tt,Ct,Ar){return Tt.s==-1?Math.max(ur(Tt.l,Ct,Ar+1),ur(Tt.r,Ct,Ar+1)):Ct[Tt.s]=Ar},j=function(Tt){for(var Ct=Tt.length;Ct&&!Tt[--Ct];);for(var Ar=new A(++Ct),er=0,Ft=Tt[0],ir=1,Pt=function(Pr){Ar[er++]=Pr},rr=1;rr<=Ct;++rr)if(Tt[rr]==Ft&&rr!=Ct)++ir;else{if(!Ft&&ir>2){for(;ir>138;ir-=138)Pt(32754);ir>2&&(Pt(ir>10?ir-11<<5|28690:ir-3<<5|12305),ir=0)}else if(ir>3){for(Pt(Ft),--ir;ir>6;ir-=6)Pt(8304);ir>2&&(Pt(ir-3<<5|8208),ir=0)}for(;ir--;)Pt(Ft);ir=1,Ft=Tt[rr]}return[Ar.subarray(0,er),Ct]},K=function(Tt,Ct){for(var Ar=0,er=0;er<Ct.length;++er)Ar+=Tt[er]*Ct[er];return Ar},z=function(Tt,Ct,Ar){var er=Ar.length,Ft=I(Ct+2);Tt[Ft]=er&255,Tt[Ft+1]=er>>>8,Tt[Ft+2]=Tt[Ft]^255,Tt[Ft+3]=Tt[Ft+1]^255;for(var ir=0;ir<er;++ir)Tt[Ft+ir+4]=Ar[ir];return(Ft+4+er)*8},V=function(Tt,Ct,Ar,er,Ft,ir,Pt,rr,Yr,Pr,Mr){U(Ct,Mr++,Ar),++Ft[256];for(var fn=X(Ft,15),wn=fn[0],ai=fn[1],ri=X(ir,15),gi=ri[0],Ii=ri[1],Mi=j(wn),Qi=Mi[0],ot=Mi[1],Ne=j(gi),He=Ne[0],Ye=Ne[1],at=new A(19),qe=0;qe<Qi.length;++qe)at[Qi[qe]&31]++;for(var qe=0;qe<He.length;++qe)at[He[qe]&31]++;for(var lt=X(at,7),Et=lt[0],At=lt[1],fr=19;fr>4&&!Et[u[fr-1]];--fr);var Jr=Pr+5<<3,Vr=K(Ft,v)+K(ir,b)+Pt,dn=K(Ft,wn)+K(ir,gi)+Pt+14+3*fr+K(at,Et)+(2*at[16]+3*at[17]+7*at[18]);if(Jr<=Vr&&Jr<=dn)return z(Ct,Mr,Tt.subarray(Yr,Yr+Pr));var gr,Wn,kr,Fn;if(U(Ct,Mr,1+(dn<Vr)),Mr+=2,dn<Vr){gr=g(wn,ai,0),Wn=wn,kr=g(gi,Ii,0),Fn=gi;var vn=g(Et,At,0);U(Ct,Mr,ot-257),U(Ct,Mr+5,Ye-1),U(Ct,Mr+10,fr-4),Mr+=14;for(var qe=0;qe<fr;++qe)U(Ct,Mr+3*qe,Et[u[qe]]);Mr+=3*fr;for(var $r=[Qi,He],ei=0;ei<2;++ei)for(var fi=$r[ei],qe=0;qe<fi.length;++qe){var Pi=fi[qe]&31;U(Ct,Mr,vn[Pi]),Mr+=Et[Pi],Pi>15&&(U(Ct,Mr,fi[qe]>>>5&127),Mr+=fi[qe]>>>12)}}else gr=S,Wn=v,kr=C,Fn=b;for(var qe=0;qe<rr;++qe)if(er[qe]>255){var Pi=er[qe]>>>18&31;P(Ct,Mr,gr[Pi+257]),Mr+=Wn[Pi+257],Pi>7&&(U(Ct,Mr,er[qe]>>>23&31),Mr+=p[Pi]);var Zr=er[qe]&31;P(Ct,Mr,kr[Zr]),Mr+=Fn[Zr],Zr>3&&(P(Ct,Mr,er[qe]>>>5&8191),Mr+=d[Zr])}else P(Ct,Mr,gr[er[qe]]),Mr+=Wn[er[qe]];return P(Ct,Mr,gr[256]),Mr+Wn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new x(0),ee=function(Tt,Ct,Ar,er,Ft,ir){var Pt=Tt.length,rr=new x(er+Pt+5*(1+Math.floor(Pt/7e3))+Ft),Yr=rr.subarray(er,rr.length-Ft),Pr=0;if(!Ct||Pt<8)for(var Mr=0;Mr<=Pt;Mr+=65535){var fn=Mr+65535;fn<Pt?Pr=z(Yr,Pr,Tt.subarray(Mr,fn)):(Yr[Mr]=ir,Pr=z(Yr,Pr,Tt.subarray(Mr,Pt)))}else{for(var wn=Q[Ct-1],ai=wn>>>13,ri=wn&8191,gi=(1<<Ar)-1,Ii=new A(32768),Mi=new A(gi+1),Qi=Math.ceil(Ar/3),ot=2*Qi,Ne=function(vr){return(Tt[vr]^Tt[vr+1]<<Qi^Tt[vr+2]<<ot)&gi},He=new m(25e3),Ye=new A(288),at=new A(32),qe=0,lt=0,Mr=0,Et=0,At=0,fr=0;Mr<Pt;++Mr){var Jr=Ne(Mr),Vr=Mr&32767,dn=Mi[Jr];if(Ii[Vr]=dn,Mi[Jr]=Vr,At<=Mr){var gr=Pt-Mr;if((qe>7e3||Et>24576)&&gr>423){Pr=V(Tt,Yr,0,He,Ye,at,lt,Et,fr,Mr-fr,Pr),Et=qe=lt=0,fr=Mr;for(var Wn=0;Wn<286;++Wn)Ye[Wn]=0;for(var Wn=0;Wn<30;++Wn)at[Wn]=0}var kr=2,Fn=0,vn=ri,$r=Vr-dn&32767;if(gr>2&&Jr==Ne(Mr-$r))for(var ei=Math.min(ai,gr)-1,fi=Math.min(32767,Mr),Pi=Math.min(258,gr);$r<=fi&&--vn&&Vr!=dn;){if(Tt[Mr+kr]==Tt[Mr+kr-$r]){for(var Zr=0;Zr<Pi&&Tt[Mr+Zr]==Tt[Mr+Zr-$r];++Zr);if(Zr>kr){if(kr=Zr,Fn=$r,Zr>ei)break;for(var Sn=Math.min($r,Zr-2),Gn=0,Wn=0;Wn<Sn;++Wn){var Wt=Mr-$r+Wn+32768&32767,Ot=Ii[Wt],Rt=Wt-Ot+32768&32767;Rt>Gn&&(Gn=Rt,dn=Wt)}}}Vr=dn,dn=Ii[Vr],$r+=Vr-dn+32768&32767}if(Fn){He[Et++]=268435456|s[kr]<<18|n[Fn];var Ut=s[kr]&31,Kt=n[Fn]&31;lt+=p[Ut]+d[Kt],++Ye[257+Ut],++at[Kt],At=Mr+kr,++qe}else He[Et++]=Tt[Mr],++Ye[Tt[Mr]]}}Pr=V(Tt,Yr,ir,He,Ye,at,lt,Et,fr,Mr-fr,Pr),ir||(Pr=z(Yr,Pr,G))}return k(rr,0,er+I(Pr)+Ft)},se=function(){for(var ur=new m(256),Tt=0;Tt<256;++Tt){for(var Ct=Tt,Ar=9;--Ar;)Ct=(Ct&1&&3988292384)^Ct>>>1;ur[Tt]=Ct}return ur}(),ye=function(){var Tt=4294967295;return{p:function(Ar){for(var er=Tt,Ft=0;Ft<Ar.length;++Ft)er=se[er&255^Ar[Ft]]^er>>>8;Tt=er},d:function(){return Tt^4294967295}}},he=function(){var Tt=1,Ct=0;return{p:function(er){for(var Ft=Tt,ir=Ct,Pt=er.length,rr=0;rr!=Pt;){for(var Yr=Math.min(rr+5552,Pt);rr<Yr;++rr)Ft+=er[rr],ir+=Ft;Ft%=65521,ir%=65521}Tt=Ft,Ct=ir},d:function(){return(Tt>>>8<<16|(Ct&255)<<8|Ct>>>8)+((Tt&255)<<23)*2}}},ke=function(Tt,Ct,Ar,er,Ft){return ee(Tt,Ct.level==null?6:Ct.level,Ct.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Tt.length)))*1.5):12+Ct.mem,Ar,er,!Ft)},Pe=function(Tt,Ct){var Ar={};for(var er in Tt)Ar[er]=Tt[er];for(var er in Ct)Ar[er]=Ct[er];return Ar},Ue=function(Tt,Ct,Ar){for(var er=Tt(),Ft=Tt.toString(),ir=Ft.slice(Ft.indexOf("[")+1,Ft.lastIndexOf("]")).replace(/ /g,"").split(","),Pt=0;Pt<er.length;++Pt){var rr=er[Pt],Yr=ir[Pt];if(typeof rr=="function"){Ct+=";"+Yr+"=";var Pr=rr.toString();if(rr.prototype)if(Pr.indexOf("[native code]")!=-1){var Mr=Pr.indexOf(" ",8)+1;Ct+=Pr.slice(Mr,Pr.indexOf("(",Mr))}else{Ct+=Pr;for(var fn in rr.prototype)Ct+=";"+Yr+".prototype."+fn+"="+rr.prototype[fn].toString()}else Ct+=Pr}else Ar[Yr]=rr}return[Ct,Ar]},$e=[],Ge=function(Tt){var Ct=[];for(var Ar in Tt)(Tt[Ar]instanceof x||Tt[Ar]instanceof A||Tt[Ar]instanceof m)&&Ct.push((Tt[Ar]=new Tt[Ar].constructor(Tt[Ar])).buffer);return Ct},ht=function(Tt,Ct,Ar,er){var Ft;if(!$e[Ar]){for(var ir="",Pt={},rr=Tt.length-1,Yr=0;Yr<rr;++Yr)Ft=Ue(Tt[Yr],ir,Pt),ir=Ft[0],Pt=Ft[1];$e[Ar]=Ue(Tt[rr],ir,Pt)}var Pr=Pe({},$e[Ar][1]);return f($e[Ar][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Ct.toString()+"}",Ar,Pr,Ge(Pr),er)},Fe=function(){return[x,A,m,p,d,u,t,l,E,_,o,g,T,w,O,I,k,M,Ze,$,de]},oe=function(){return[x,A,m,p,d,u,s,n,S,v,C,b,o,Q,G,g,U,P,X,F,j,K,z,V,I,k,ee,ke,Gt,$]},rt=function(){return[tt,je,_e,ye,se]},fe=function(){return[gt,ct]},J=function(){return[Zt,_e,he]},Y=function(){return[ut]},$=function(Tt){return postMessage(Tt,[Tt.buffer])},de=function(Tt){return Tt&&Tt.size&&new x(Tt.size)},we=function(Tt,Ct,Ar,er,Ft,ir){var Pt=ht(Ar,er,Ft,function(rr,Yr){Pt.terminate(),ir(rr,Yr)});return Ct.consume||(Tt=new x(Tt)),Pt.postMessage([Tt,Ct],[Tt.buffer]),function(){Pt.terminate()}},Ce=function(Tt){return Tt.ondata=function(Ct,Ar){return postMessage([Ct,Ar],[Ct.buffer])},function(Ct){return Tt.push(Ct.data[0],Ct.data[1])}},Se=function(Tt,Ct,Ar,er,Ft){var ir,Pt=ht(Tt,er,Ft,function(rr,Yr){rr?(Pt.terminate(),Ct.ondata.call(Ct,rr)):(Yr[1]&&Pt.terminate(),Ct.ondata.call(Ct,rr,Yr[0],Yr[1]))});Pt.postMessage(Ar),Ct.push=function(rr,Yr){if(ir)throw"stream finished";if(!Ct.ondata)throw"no stream handler";Pt.postMessage([rr,ir=Yr],[rr.buffer])},Ct.terminate=function(){Pt.terminate()}},le=function(Tt,Ct){return Tt[Ct]|Tt[Ct+1]<<8},pe=function(Tt,Ct){return(Tt[Ct]|Tt[Ct+1]<<8|Tt[Ct+2]<<16)+(Tt[Ct+3]<<23)*2},_e=function(Tt,Ct,Ar){for(;Ar;++Ct)Tt[Ct]=Ar,Ar>>>=8},tt=function(Tt,Ct){var Ar=Ct.filename;if(Tt[0]=31,Tt[1]=139,Tt[2]=8,Tt[8]=Ct.level<2?4:Ct.level==9?2:0,Tt[9]=3,Ct.mtime!=0&&_e(Tt,4,Math.floor(new Date(Ct.mtime||Date.now())/1e3)),Ar){Tt[3]=8;for(var er=0;er<=Ar.length;++er)Tt[er+10]=Ar.charCodeAt(er)}},gt=function(Tt){if(Tt[0]!=31||Tt[1]!=139||Tt[2]!=8)throw"invalid gzip data";var Ct=Tt[3],Ar=10;Ct&4&&(Ar+=Tt[10]|(Tt[11]<<8)+2);for(var er=(Ct>>3&1)+(Ct>>4&1);er>0;er-=!Tt[Ar++]);return Ar+(Ct&2)},ct=function(Tt){var Ct=Tt.length;return(Tt[Ct-4]|Tt[Ct-3]<<8|Tt[Ct-2]<<16)+2*(Tt[Ct-1]<<23)},je=function(Tt){return 10+(Tt.filename&&Tt.filename.length+1||0)},Zt=function(Tt,Ct){var Ar=Ct.level,er=Ar==0?0:Ar<6?1:Ar==9?3:2;Tt[0]=120,Tt[1]=er<<6|(er?32-2*er:1)},ut=function(Tt){if((Tt[0]&15)!=8||Tt[0]>>>4>7||(Tt[0]<<8|Tt[1])%31)throw"invalid zlib data";if(Tt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Ht(ur,Tt){return!Tt&&typeof ur=="function"&&(Tt=ur,ur={}),this.ondata=Tt,ur}var dr=function(){function ur(Tt,Ct){!Ct&&typeof Tt=="function"&&(Ct=Tt,Tt={}),this.ondata=Ct,this.o=Tt||{}}return ur.prototype.p=function(Tt,Ct){this.ondata(ke(Tt,this.o,0,0,!Ct),Ct)},ur.prototype.push=function(Tt,Ct){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=Ct,this.p(Tt,Ct||!1)},ur}(),Vt=function(){function ur(Tt,Ct){Se([oe,function(){return[Ce,dr]}],this,Ht.call(this,Tt,Ct),function(Ar){var er=new dr(Ar.data);onmessage=Ce(er)},6)}return ur}();function Mt(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[oe],function(Ar){return $(Gt(Ar.data[0],Ar.data[1]))},0,Ct)}function Gt(ur,Tt){return Tt===void 0&&(Tt={}),ke(ur,Tt,0,0)}var Ve=function(){function ur(Tt){this.s={},this.p=new x(0),this.ondata=Tt}return ur.prototype.e=function(Tt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var Ct=this.p.length,Ar=new x(Ct+Tt.length);Ar.set(this.p),Ar.set(Tt,Ct),this.p=Ar},ur.prototype.c=function(Tt){this.d=this.s.i=Tt||!1;var Ct=this.s.b,Ar=M(this.p,this.o,this.s);this.ondata(k(Ar,Ct,this.s.b),this.d),this.o=k(Ar,this.s.b-32768),this.s.b=this.o.length,this.p=k(this.p,this.s.p/8>>0),this.s.p&=7},ur.prototype.push=function(Tt,Ct){this.e(Tt),this.c(Ct)},ur}(),me=function(){function ur(Tt){this.ondata=Tt,Se([Fe,function(){return[Ce,Ve]}],this,0,function(){var Ct=new Ve;onmessage=Ce(Ct)},7)}return ur}();function te(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[Fe],function(Ar){return $(Ze(Ar.data[0],de(Ar.data[1])))},1,Ct)}function Ze(ur,Tt){return M(ur,Tt)}var Xe=function(){function ur(Tt,Ct){this.c=ye(),this.l=0,this.v=1,dr.call(this,Tt,Ct)}return ur.prototype.push=function(Tt,Ct){dr.prototype.push.call(this,Tt,Ct)},ur.prototype.p=function(Tt,Ct){this.c.p(Tt),this.l+=Tt.length;var Ar=ke(Tt,this.o,this.v&&je(this.o),Ct&&8,!Ct);this.v&&(tt(Ar,this.o),this.v=0),Ct&&(_e(Ar,Ar.length-8,this.c.d()),_e(Ar,Ar.length-4,this.l)),this.ondata(Ar,Ct)},ur}(),ue=function(){function ur(Tt,Ct){Se([oe,rt,function(){return[Ce,dr,Xe]}],this,Ht.call(this,Tt,Ct),function(Ar){var er=new Xe(Ar.data);onmessage=Ce(er)},8)}return ur}();function St(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[oe,rt,function(){return[Qt]}],function(Ar){return $(Qt(Ar.data[0],Ar.data[1]))},2,Ct)}function Qt(ur,Tt){Tt===void 0&&(Tt={});var Ct=ye(),Ar=ur.length;Ct.p(ur);var er=ke(ur,Tt,je(Tt),8),Ft=er.length;return tt(er,Tt),_e(er,Ft-8,Ct.d()),_e(er,Ft-4,Ar),er}var dt=function(){function ur(Tt){this.v=1,Ve.call(this,Tt)}return ur.prototype.push=function(Tt,Ct){if(Ve.prototype.e.call(this,Tt),this.v){var Ar=gt(this.p);if(Ar>=this.p.length&&!Ct)return;this.p=this.p.subarray(Ar),this.v=0}if(Ct){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ve.prototype.c.call(this,Ct)},ur}(),Jt=function(){function ur(Tt){this.ondata=Tt,Se([Fe,fe,function(){return[Ce,Ve,dt]}],this,0,function(){var Ct=new dt;onmessage=Ce(Ct)},9)}return ur}();function $t(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[Fe,fe,function(){return[tn]}],function(Ar){return $(tn(Ar.data[0]))},3,Ct)}function tn(ur,Tt){return M(ur.subarray(gt(ur),-8),Tt||new x(ct(ur)))}var kt=function(){function ur(Tt,Ct){this.c=he(),this.v=1,dr.call(this,Tt,Ct)}return ur.prototype.push=function(Tt,Ct){dr.prototype.push.call(this,Tt,Ct)},ur.prototype.p=function(Tt,Ct){this.c.p(Tt);var Ar=ke(Tt,this.o,this.v&&2,Ct&&4,!Ct);this.v&&(Zt(Ar,this.o),this.v=0),Ct&&_e(Ar,Ar.length-4,this.c.d()),this.ondata(Ar,Ct)},ur}(),tr=function(){function ur(Tt,Ct){Se([oe,J,function(){return[Ce,dr,kt]}],this,Ht.call(this,Tt,Ct),function(Ar){var er=new kt(Ar.data);onmessage=Ce(er)},10)}return ur}();function Bt(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[oe,J,function(){return[ft]}],function(Ar){return $(ft(Ar.data[0],Ar.data[1]))},4,Ct)}function ft(ur,Tt){Tt===void 0&&(Tt={});var Ct=he();Ct.p(ur);var Ar=ke(ur,Tt,2,4);return Zt(Ar,Tt),_e(Ar,Ar.length-4,Ct.d()),Ar}var it=function(){function ur(Tt){this.v=1,Ve.call(this,Tt)}return ur.prototype.push=function(Tt,Ct){if(Ve.prototype.e.call(this,Tt),this.v){if(this.p.length<2&&!Ct)return;this.p=this.p.subarray(2),this.v=0}if(Ct){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ve.prototype.c.call(this,Ct)},ur}(),Or=function(){function ur(Tt){this.ondata=Tt,Se([Fe,Y,function(){return[Ce,Ve,it]}],this,0,function(){var Ct=new it;onmessage=Ce(Ct)},11)}return ur}();function an(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return we(ur,Tt,[Fe,Y,function(){return[En]}],function(Ar){return $(En(Ar.data[0],de(Ar.data[1])))},5,Ct)}function En(ur,Tt){return M((ut(ur),ur.subarray(2,-4)),Tt)}var Bn=function(){function ur(Tt){this.G=dt,this.I=Ve,this.Z=it,this.ondata=Tt}return ur.prototype.push=function(Tt,Ct){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Tt,Ct);else{if(this.p&&this.p.length){var Ar=new x(this.p.length+Tt.length);Ar.set(this.p),Ar.set(Tt,this.p.length)}else this.p=Tt;if(this.p.length>2){var er=this,Ft=function(){er.ondata.apply(er,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Ft):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Ft):new this.Z(Ft),this.s.push(this.p,Ct),this.p=null}}},ur}(),vi=function(){function ur(Tt){this.G=Jt,this.I=me,this.Z=Or,this.ondata=Tt}return ur.prototype.push=function(Tt,Ct){Bn.prototype.push.call(this,Tt,Ct)},ur}();function Ln(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";return ur[0]==31&&ur[1]==139&&ur[2]==8?$t(ur,Tt,Ct):(ur[0]&15)!=8||ur[0]>>4>7||(ur[0]<<8|ur[1])%31?te(ur,Tt,Ct):an(ur,Tt,Ct)}function Mn(ur,Tt){return ur[0]==31&&ur[1]==139&&ur[2]==8?tn(ur,Tt):(ur[0]&15)!=8||ur[0]>>4>7||(ur[0]<<8|ur[1])%31?Ze(ur,Tt):En(ur,Tt)}var Xt=function ur(Tt,Ct,Ar,er){for(var Ft in Tt){var ir=Tt[Ft],Pt=Ct+Ft;ir instanceof x?Ar[Pt]=[ir,er]:Array.isArray(ir)?Ar[Pt]=[ir[0],Pe(er,ir[1])]:ur(ir,Pt+"/",Ar,er)}};function wt(ur,Tt){var Ct=ur.length;if(!Tt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(ur);for(var Ar=new x(ur.length+(ur.length>>>1)),er=0,Ft=function(Pr){Ar[er++]=Pr},ir=0;ir<Ct;++ir){if(er+5>Ar.length){var Pt=new x(er+8+(Ct-ir<<1));Pt.set(Ar),Ar=Pt}var rr=ur.charCodeAt(ir);rr<128||Tt?Ft(rr):rr<2048?(Ft(192|rr>>>6),Ft(128|rr&63)):rr>55295&&rr<57344?(rr=65536+(rr&1023<<10)|ur.charCodeAt(++ir)&1023,Ft(240|rr>>>18),Ft(128|rr>>>12&63),Ft(128|rr>>>6&63),Ft(128|rr&63)):(Ft(224|rr>>>12),Ft(128|rr>>>6&63),Ft(128|rr&63))}return k(Ar,0,er)}function De(ur,Tt){var Ct="";if(!Tt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(ur);for(var Ar=0;Ar<ur.length;){var er=ur[Ar++];er<128||Tt?Ct+=String.fromCharCode(er):er<224?Ct+=String.fromCharCode((er&31)<<6|ur[Ar++]&63):er<240?Ct+=String.fromCharCode((er&15)<<12|(ur[Ar++]&63)<<6|ur[Ar++]&63):(er=((er&15)<<18|(ur[Ar++]&63)<<12|(ur[Ar++]&63)<<6|ur[Ar++]&63)-65536,Ct+=String.fromCharCode(55296|er>>10,56320|er&1023))}return Ct}var Re=function(Tt,Ct){return Ct+30+le(Tt,Ct+26)+le(Tt,Ct+28)},Me=function(Tt,Ct,Ar){var er=le(Tt,Ct+28),Ft=De(Tt.subarray(Ct+46,Ct+46+er),!(le(Tt,Ct+8)&2048)),ir=Ct+46+er,Pt=Ar?nt(Tt,ir):[pe(Tt,Ct+20),pe(Tt,Ct+24),pe(Tt,Ct+42)],rr=Pt[0],Yr=Pt[1],Pr=Pt[2];return[le(Tt,Ct+10),rr,Yr,Ft,ir+le(Tt,Ct+30)+le(Tt,Ct+32),Pr]},nt=function(Tt,Ct){for(;le(Tt,Ct)!=1;Ct+=4+le(Tt,Ct+2));return[pe(Tt,Ct+12),pe(Tt,Ct+4),pe(Tt,Ct+20)]},yt=function(Tt,Ct,Ar,er,Ft,ir,Pt,rr,Yr,Pr){var Mr=ir.length,fn=er.length;_e(Tt,Ct,Yr!=null?33639248:67324752),Ct+=4,Yr!=null&&(Tt[Ct]=20,Ct+=2),Tt[Ct]=20,Ct+=2,Tt[Ct++]=Pr==8&&(rr.level==1?6:rr.level<6?4:rr.level==9?2:0),Tt[Ct++]=Pt&&8,Tt[Ct]=Pr,Ct+=2;var wn=new Date(rr.mtime||Date.now()),ai=wn.getFullYear()-1980;if(ai<0||ai>119)throw"date not in range 1980-2099";_e(Tt,Ct,(ai<<24)*2|wn.getMonth()+1<<21|wn.getDate()<<16|wn.getHours()<<11|wn.getMinutes()<<5|wn.getSeconds()>>>1),Ct+=4,_e(Tt,Ct,Ar),_e(Tt,Ct+4,fn),_e(Tt,Ct+8,Ft),_e(Tt,Ct+12,Mr),Ct+=16,Yr!=null&&(_e(Tt,Ct+=10,Yr),Ct+=4),Tt.set(ir,Ct),Ct+=Mr,Yr==null&&Tt.set(er,Ct)},sr=function(Tt,Ct,Ar,er,Ft){_e(Tt,Ct,101010256),_e(Tt,Ct+8,Ar),_e(Tt,Ct+10,Ar),_e(Tt,Ct+12,er),_e(Tt,Ct+16,Ft)};function Nr(ur,Tt,Ct){if(Ct||(Ct=Tt,Tt={}),typeof Ct!="function")throw"no callback";var Ar={};Xt(ur,"",Ar,Tt);var er=Object.keys(Ar),Ft=er.length,ir=0,Pt=0,rr=Ft,Yr=new Array(Ft),Pr=[],Mr=function(){for(var gi=0;gi<Pr.length;++gi)Pr[gi]()},fn=function(){var gi=new x(Pt+22),Ii=ir,Mi=Pt-ir;Pt=0;for(var Qi=0;Qi<rr;++Qi){var ot=Yr[Qi];try{yt(gi,Pt,ot.c,ot.d,ot.m,ot.n,ot.u,ot.p,null,ot.t),yt(gi,ir,ot.c,ot.d,ot.m,ot.n,ot.u,ot.p,Pt,ot.t),ir+=46+ot.n.length,Pt+=30+ot.n.length+ot.d.length}catch(Ne){return Ct(Ne,null)}}sr(gi,ir,Yr.length,Mi,Ii),Ct(null,gi)};Ft||fn();for(var wn=function(gi){var Ii=er[gi],Mi=Ar[Ii],Qi=Mi[0],ot=Mi[1],Ne=ye(),He=Qi.length;Ne.p(Qi);var Ye=wt(Ii),at=Ye.length,qe=ot.level==0?0:8,lt=function(At,fr){if(At)Mr(),Ct(At,null);else{var Jr=fr.length;Yr[gi]={t:qe,d:fr,m:He,c:Ne.d(),u:Ii.length!=Jr,n:Ye,p:ot},ir+=30+at+Jr,Pt+=76+2*at+Jr,--Ft||fn()}};if(Ye.length>65535&&lt("filename too long",null),!qe)lt(null,Qi);else if(He<16e4)try{lt(null,Gt(Qi,ot))}catch(Et){lt(Et,null)}else Pr.push(Mt(Qi,ot,lt))},ai=0;ai<rr;++ai)wn(ai);return Mr}function mn(ur,Tt){Tt===void 0&&(Tt={});var Ct={},Ar=[];Xt(ur,"",Ct,Tt);var er=0,Ft=0;for(var ir in Ct){var Pt=Ct[ir],rr=Pt[0],Yr=Pt[1],Pr=Yr.level==0?0:8,Mr=wt(ir),fn=Mr.length;if(Mr.length>65535)throw"filename too long";var wn=Pr?Gt(rr,Yr):rr,ai=wn.length,ri=ye();ri.p(rr),Ar.push({t:Pr,d:wn,m:rr.length,c:ri.d(),u:ir.length!=fn,n:Mr,o:er,p:Yr}),er+=30+fn+ai,Ft+=76+2*fn+ai}for(var gi=new x(Ft+22),Ii=er,Mi=Ft-er,Qi=0;Qi<Ar.length;++Qi){var ot=Ar[Qi];yt(gi,ot.o,ot.c,ot.d,ot.m,ot.n,ot.u,ot.p,null,ot.t),yt(gi,er,ot.c,ot.d,ot.m,ot.n,ot.u,ot.p,ot.o,ot.t),er+=46+ot.n.length}return sr(gi,er,Ar.length,Mi,Ii),gi}function Yn(ur,Tt){if(typeof Tt!="function")throw"no callback";for(var Ct=[],Ar=function(){for(var wn=0;wn<Ct.length;++wn)Ct[wn]()},er={},Ft=ur.length-22;pe(ur,Ft)!=101010256;--Ft)if(!Ft||ur.length-Ft>65558){Tt("invalid zip file",null);return}var ir=le(ur,Ft+8);ir||Tt(null,{});var Pt=ir,rr=pe(ur,Ft+16),Yr=rr==4294967295;if(Yr){if(Ft=pe(ur,Ft-12),pe(ur,Ft)!=101075792)throw"invalid zip file";Pt=ir=pe(ur,Ft+32),rr=pe(ur,Ft+48)}for(var Pr=function(wn){var ai=Me(ur,rr,Yr),ri=ai[0],gi=ai[1],Ii=ai[2],Mi=ai[3],Qi=ai[4],ot=ai[5],Ne=Re(ur,ot);rr=Qi;var He=function(qe,lt){qe?(Ar(),Tt(qe,null)):(er[Mi]=lt,--ir||Tt(null,er))};if(!ri)He(null,k(ur,Ne,Ne+gi));else if(ri==8){var Ye=ur.subarray(Ne,Ne+gi);if(gi<32e4)try{He(null,Ze(Ye,new x(Ii)))}catch(at){He(at,null)}else Ct.push(te(Ye,{size:Ii},He))}else He("unknown compression type "+ri,null)},Mr=0;Mr<Pt;++Mr)Pr(Mr);return Ar}function Jn(ur){for(var Tt={},Ct=ur.length-22;pe(ur,Ct)!=101010256;--Ct)if(!Ct||ur.length-Ct>65558)throw"invalid zip file";var Ar=le(ur,Ct+8);if(!Ar)return{};var er=pe(ur,Ct+16),Ft=er==4294967295;if(Ft){if(Ct=pe(ur,Ct-12),pe(ur,Ct)!=101075792)throw"invalid zip file";Ar=pe(ur,Ct+32),er=pe(ur,Ct+48)}for(var ir=0;ir<Ar;++ir){var Pt=Me(ur,er,Ft),rr=Pt[0],Yr=Pt[1],Pr=Pt[2],Mr=Pt[3],fn=Pt[4],wn=Pt[5],ai=Re(ur,wn);if(er=fn,!rr)Tt[Mr]=k(ur,ai,ai+Yr);else if(rr==8)Tt[Mr]=Ze(ur.subarray(ai,ai+Yr),new x(Pr));else throw"unknown compression type "+rr}return Tt}},cv67:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(f){var x=y,A=x.lib,m=A.WordArray,p=A.Hasher,d=x.algo,u=[];(function(){for(var l=0;l<64;l++)u[l]=f.abs(f.sin(l+1))*4294967296|0})();var a=d.MD5=p.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(n,o){for(var c=0;c<16;c++){var h=o+c,g=n[h];n[h]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,b=n[o+0],S=n[o+1],E=n[o+2],C=n[o+3],_=n[o+4],T=n[o+5],w=n[o+6],O=n[o+7],I=n[o+8],k=n[o+9],M=n[o+10],U=n[o+11],P=n[o+12],X=n[o+13],F=n[o+14],j=n[o+15],K=v[0],z=v[1],V=v[2],Q=v[3];K=i(K,z,V,Q,b,7,u[0]),Q=i(Q,K,z,V,S,12,u[1]),V=i(V,Q,K,z,E,17,u[2]),z=i(z,V,Q,K,C,22,u[3]),K=i(K,z,V,Q,_,7,u[4]),Q=i(Q,K,z,V,T,12,u[5]),V=i(V,Q,K,z,w,17,u[6]),z=i(z,V,Q,K,O,22,u[7]),K=i(K,z,V,Q,I,7,u[8]),Q=i(Q,K,z,V,k,12,u[9]),V=i(V,Q,K,z,M,17,u[10]),z=i(z,V,Q,K,U,22,u[11]),K=i(K,z,V,Q,P,7,u[12]),Q=i(Q,K,z,V,X,12,u[13]),V=i(V,Q,K,z,F,17,u[14]),z=i(z,V,Q,K,j,22,u[15]),K=t(K,z,V,Q,S,5,u[16]),Q=t(Q,K,z,V,w,9,u[17]),V=t(V,Q,K,z,U,14,u[18]),z=t(z,V,Q,K,b,20,u[19]),K=t(K,z,V,Q,T,5,u[20]),Q=t(Q,K,z,V,M,9,u[21]),V=t(V,Q,K,z,j,14,u[22]),z=t(z,V,Q,K,_,20,u[23]),K=t(K,z,V,Q,k,5,u[24]),Q=t(Q,K,z,V,F,9,u[25]),V=t(V,Q,K,z,C,14,u[26]),z=t(z,V,Q,K,I,20,u[27]),K=t(K,z,V,Q,X,5,u[28]),Q=t(Q,K,z,V,E,9,u[29]),V=t(V,Q,K,z,O,14,u[30]),z=t(z,V,Q,K,P,20,u[31]),K=s(K,z,V,Q,T,4,u[32]),Q=s(Q,K,z,V,I,11,u[33]),V=s(V,Q,K,z,U,16,u[34]),z=s(z,V,Q,K,F,23,u[35]),K=s(K,z,V,Q,S,4,u[36]),Q=s(Q,K,z,V,_,11,u[37]),V=s(V,Q,K,z,O,16,u[38]),z=s(z,V,Q,K,M,23,u[39]),K=s(K,z,V,Q,X,4,u[40]),Q=s(Q,K,z,V,b,11,u[41]),V=s(V,Q,K,z,C,16,u[42]),z=s(z,V,Q,K,w,23,u[43]),K=s(K,z,V,Q,k,4,u[44]),Q=s(Q,K,z,V,P,11,u[45]),V=s(V,Q,K,z,j,16,u[46]),z=s(z,V,Q,K,E,23,u[47]),K=e(K,z,V,Q,b,6,u[48]),Q=e(Q,K,z,V,O,10,u[49]),V=e(V,Q,K,z,F,15,u[50]),z=e(z,V,Q,K,T,21,u[51]),K=e(K,z,V,Q,P,6,u[52]),Q=e(Q,K,z,V,C,10,u[53]),V=e(V,Q,K,z,M,15,u[54]),z=e(z,V,Q,K,S,21,u[55]),K=e(K,z,V,Q,I,6,u[56]),Q=e(Q,K,z,V,j,10,u[57]),V=e(V,Q,K,z,w,15,u[58]),z=e(z,V,Q,K,X,21,u[59]),K=e(K,z,V,Q,_,6,u[60]),Q=e(Q,K,z,V,U,10,u[61]),V=e(V,Q,K,z,E,15,u[62]),z=e(z,V,Q,K,k,21,u[63]),v[0]=v[0]+K|0,v[1]=v[1]+z|0,v[2]=v[2]+V|0,v[3]=v[3]+Q|0},_doFinalize:function(){var n=this._data,o=n.words,c=this._nDataBytes*8,h=n.sigBytes*8;o[h>>>5]|=128<<24-h%32;var g=f.floor(c/4294967296),v=c;o[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,o[(h+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,n.sigBytes=(o.length+1)*4,this._process();for(var b=this._hash,S=b.words,E=0;E<4;E++){var C=S[E];S[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return b},clone:function(){var n=p.clone.call(this);return n._hash=this._hash.clone(),n}});function i(l,n,o,c,h,g,v){var b=l+(n&o|~n&c)+h+v;return(b<<g|b>>>32-g)+n}function t(l,n,o,c,h,g,v){var b=l+(n&c|o&~c)+h+v;return(b<<g|b>>>32-g)+n}function s(l,n,o,c,h,g,v){var b=l+(n^o^c)+h+v;return(b<<g|b>>>32-g)+n}function e(l,n,o,c,h,g,v){var b=l+(o^(n|~c))+h+v;return(b<<g|b>>>32-g)+n}x.MD5=p._createHelper(a),x.HmacMD5=p._createHmacHelper(a)}(Math),y.MD5})},czTT:function(R,L,r){},d4KN:function(R,L,r){var y=r("ProS"),f=r("bYtY");function x(A,m){f.each(m,function(p){p.update="updateView",y.registerAction(p,function(d,u){var a={};return u.eachComponent({mainType:"series",subType:A,query:d},function(i){i[p.method]&&i[p.method](d.name,d.dataIndex);var t=i.getData();t.each(function(s){var e=t.getName(s);a[e]=i.isSelected(e)||!1})}),{name:d.name,selected:a,seriesId:d.seriesId}})})}R.exports=x},dBmv:function(R,L,r){var y=r("ProS"),f=r("szbU");r("vF/C"),r("qwVE"),r("MHoB"),r("PNag"),r("1u/T"),y.registerPreprocessor(f)},dD9F:function(R,L,r){var y=r("NykK"),f=r("shjB"),x=r("ExA7"),A="[object Arguments]",m="[object Array]",p="[object Boolean]",d="[object Date]",u="[object Error]",a="[object Function]",i="[object Map]",t="[object Number]",s="[object Object]",e="[object RegExp]",l="[object Set]",n="[object String]",o="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object Uint8Array]",_="[object Uint8ClampedArray]",T="[object Uint16Array]",w="[object Uint32Array]",O={};O[g]=O[v]=O[b]=O[S]=O[E]=O[C]=O[_]=O[T]=O[w]=!0,O[A]=O[m]=O[c]=O[p]=O[h]=O[d]=O[u]=O[a]=O[i]=O[t]=O[s]=O[e]=O[l]=O[n]=O[o]=!1;function I(k){return x(k)&&f(k.length)&&!!O[y(k)]}R.exports=I},"dF/Y":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="DownloadOutlined";var d=L.a=f.forwardRef(p)},dMvE:function(R,L){var r={linear:function(x){return x},quadraticIn:function(x){return x*x},quadraticOut:function(x){return x*(2-x)},quadraticInOut:function(x){return(x*=2)<1?.5*x*x:-.5*(--x*(x-2)-1)},cubicIn:function(x){return x*x*x},cubicOut:function(x){return--x*x*x+1},cubicInOut:function(x){return(x*=2)<1?.5*x*x*x:.5*((x-=2)*x*x+2)},quarticIn:function(x){return x*x*x*x},quarticOut:function(x){return 1- --x*x*x*x},quarticInOut:function(x){return(x*=2)<1?.5*x*x*x*x:-.5*((x-=2)*x*x*x-2)},quinticIn:function(x){return x*x*x*x*x},quinticOut:function(x){return--x*x*x*x*x+1},quinticInOut:function(x){return(x*=2)<1?.5*x*x*x*x*x:.5*((x-=2)*x*x*x*x+2)},sinusoidalIn:function(x){return 1-Math.cos(x*Math.PI/2)},sinusoidalOut:function(x){return Math.sin(x*Math.PI/2)},sinusoidalInOut:function(x){return .5*(1-Math.cos(Math.PI*x))},exponentialIn:function(x){return x===0?0:Math.pow(1024,x-1)},exponentialOut:function(x){return x===1?1:1-Math.pow(2,-10*x)},exponentialInOut:function(x){return x===0?0:x===1?1:(x*=2)<1?.5*Math.pow(1024,x-1):.5*(-Math.pow(2,-10*(x-1))+2)},circularIn:function(x){return 1-Math.sqrt(1-x*x)},circularOut:function(x){return Math.sqrt(1- --x*x)},circularInOut:function(x){return(x*=2)<1?-.5*(Math.sqrt(1-x*x)-1):.5*(Math.sqrt(1-(x-=2)*x)+1)},elasticIn:function(x){var A,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=p/4):A=p*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/p)))},elasticOut:function(x){var A,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=p/4):A=p*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*x)*Math.sin((x-A)*(2*Math.PI)/p)+1)},elasticInOut:function(x){var A,m=.1,p=.4;return x===0?0:x===1?1:(!m||m<1?(m=1,A=p/4):A=p*Math.asin(1/m)/(2*Math.PI),(x*=2)<1?-.5*(m*Math.pow(2,10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/p)):m*Math.pow(2,-10*(x-=1))*Math.sin((x-A)*(2*Math.PI)/p)*.5+1)},backIn:function(x){var A=1.70158;return x*x*((A+1)*x-A)},backOut:function(x){var A=1.70158;return--x*x*((A+1)*x+A)+1},backInOut:function(x){var A=1.70158*1.525;return(x*=2)<1?.5*(x*x*((A+1)*x-A)):.5*((x-=2)*x*((A+1)*x+A)+2)},bounceIn:function(x){return 1-r.bounceOut(1-x)},bounceOut:function(x){return x<1/2.75?7.5625*x*x:x<2/2.75?7.5625*(x-=1.5/2.75)*x+.75:x<2.5/2.75?7.5625*(x-=2.25/2.75)*x+.9375:7.5625*(x-=2.625/2.75)*x+.984375},bounceInOut:function(x){return x<.5?r.bounceIn(x*2)*.5:r.bounceOut(x*2-1)*.5+.5}},y=r;R.exports=y},dVn5:function(R,L){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function y(f){return f.match(r)||[]}R.exports=y},diRs:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("q1tI"),A=r.n(x),m=r("3S7+"),p=r("H84U"),d=r("bogI"),u=function(i,t){var s={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&t.indexOf(e)<0&&(s[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(i);l<e.length;l++)t.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(i,e[l])&&(s[e[l]]=i[e[l]]);return s},a=x.forwardRef(function(i,t){var s=i.prefixCls,e=i.title,l=i.content,n=u(i,["prefixCls","title","content"]),o=x.useContext(p.b),c=o.getPrefixCls,h=function(b){return x.createElement(x.Fragment,null,e&&x.createElement("div",{className:"".concat(b,"-title")},Object(d.a)(e)),x.createElement("div",{className:"".concat(b,"-inner-content")},Object(d.a)(l)))},g=c("popover",s);return x.createElement(m.a,f()({},n,{prefixCls:g,ref:t,overlay:h(g)}))});a.displayName="Popover",a.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},L.a=a},digP:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:function(x,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:A}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:x}}]}},name:"file",theme:"twotone"};L.default=y},dm2S:function(R,L,r){"use strict";r.d(L,"a",function(){return A});var y=r("ODXe"),f=r("q1tI"),x=r.n(f);function A(m){var p=f.useRef(!1),d=f.useState(m),u=Object(y.a)(d,2),a=u[0],i=u[1];f.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function t(s,e){if(e&&p.current)return;i(s)}return[a,t]}},dmGj:function(R,L,r){var y=r("DEFe"),f=r("ProS"),x=f.extendComponentView({type:"geo",init:function(A,m){var p=new y(m,!0);this._mapDraw=p,this.group.add(p.group)},render:function(A,m,p,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var u=this._mapDraw;A.get("show")?u.draw(A,m,p,this,d):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});R.exports=x},dnwI:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("YH21"),A=r("Kagy"),m=r("IUWy"),p=A.toolbox.dataView,d=new Array(60).join("-"),u=" ";function a(S){var E={},C=[],_=[];return S.eachRawSeries(function(T){var w=T.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var O=w.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;E[I]||(E[I]={categoryAxis:O,valueAxis:w.getOtherAxis(O),series:[]},_.push({axisDim:O.dim,axisIndex:O.index})),E[I].series.push(T)}else C.push(T)}else C.push(T)}),{seriesGroupByCategoryAxis:E,other:C,meta:_}}function i(S){var E=[];return f.each(S,function(C,_){var T=C.categoryAxis,w=C.valueAxis,O=w.dim,I=[" "].concat(f.map(C.series,function(F){return F.name})),k=[T.model.getCategories()];f.each(C.series,function(F){k.push(F.getRawData().mapArray(O,function(j){return j}))});for(var M=[I.join(u)],U=0;U<k[0].length;U++){for(var P=[],X=0;X<k.length;X++)P.push(k[X][U]);M.push(P.join(u))}E.push(M.join(`
`))}),E.join(`
`+d+`
`)}function t(S){return f.map(S,function(E){var C=E.getRawData(),_=[E.name],T=[];return C.each(C.dimensions,function(){for(var w=arguments.length,O=arguments[w-1],I=C.getName(O),k=0;k<w-1;k++)T[k]=arguments[k];_.push((I?I+u:"")+T.join(u))}),_.join(`
`)}).join(`
`+d+`
`)}function s(S){var E=a(S);return{value:f.filter([i(E.seriesGroupByCategoryAxis),t(E.other)],function(C){return C.replace(/[\n\t\s]/g,"")}).join(`
`+d+`
`),meta:E.meta}}function e(S){return S.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(S){var E=S.slice(0,S.indexOf(`
`));if(E.indexOf(u)>=0)return!0}var n=new RegExp("["+u+"]+","g");function o(S){for(var E=S.split(/\n+/g),C=e(E.shift()).split(n),_=[],T=f.map(C,function(k){return{name:k,data:[]}}),w=0;w<E.length;w++){var O=e(E[w]).split(n);_.push(O.shift());for(var I=0;I<O.length;I++)T[I]&&(T[I].data[w]=O[I])}return{series:T,categories:_}}function c(S){for(var E=S.split(/\n+/g),C=e(E.shift()),_=[],T=0;T<E.length;T++){var w=e(E[T]).split(n),O="",I,k=!1;isNaN(w[0])?(k=!0,O=w[0],w=w.slice(1),_[T]={name:O,value:[]},I=_[T].value):I=_[T]=[];for(var M=0;M<w.length;M++)I.push(+w[M]);I.length===1&&(k?_[T].value=I[0]:_[T]=I[0])}return{name:C,data:_}}function h(S,E){var C=S.split(new RegExp(`
*`+d+`
*`,"g")),_={series:[]};return f.each(C,function(T,w){if(l(T)){var O=o(T),I=E[w],k=I.axisDim+"Axis";I&&(_[k]=_[k]||[],_[k][I.axisIndex]={data:O.categories},_.series=_.series.concat(O.series))}else{var O=c(T);_.series.push(O)}}),_}function g(S){this._dom=null,this.model=S}g.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:f.clone(p.title),lang:f.clone(p.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},g.prototype.onclick=function(S,E){var C=E.getDom(),_=this.model;this._dom&&C.removeChild(this._dom);var T=document.createElement("div");T.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",T.style.backgroundColor=_.get("backgroundColor")||"#fff";var w=document.createElement("h4"),O=_.get("lang")||[];w.innerHTML=O[0]||_.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=_.get("textColor");var I=document.createElement("div"),k=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var M=_.get("optionToContent"),U=_.get("contentToOption"),P=s(S);if(typeof M=="function"){var X=M(E.getOption());typeof X=="string"?I.innerHTML=X:f.isDom(X)&&I.appendChild(X)}else I.appendChild(k),k.readOnly=_.get("readOnly"),k.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",k.style.color=_.get("textColor"),k.style.borderColor=_.get("textareaBorderColor"),k.style.backgroundColor=_.get("textareaColor"),k.value=P.value;var F=P.meta,j=document.createElement("div");j.style.cssText="position:absolute;bottom:0;left:0;right:0;";var K="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",z=document.createElement("div"),V=document.createElement("div");K+=";background-color:"+_.get("buttonColor"),K+=";color:"+_.get("buttonTextColor");var Q=this;function G(){C.removeChild(T),Q._dom=null}x.addEventListener(z,"click",G),x.addEventListener(V,"click",function(){var ee;try{typeof U=="function"?ee=U(I,E.getOption()):ee=h(k.value,F)}catch(se){throw G(),new Error("Data view format error "+se)}ee&&E.dispatchAction({type:"changeDataView",newOption:ee}),G()}),z.innerHTML=O[1],V.innerHTML=O[2],V.style.cssText=K,z.style.cssText=K,!_.get("readOnly")&&j.appendChild(V),j.appendChild(z),T.appendChild(w),T.appendChild(I),T.appendChild(j),I.style.height=C.clientHeight-80+"px",C.appendChild(T),this._dom=T},g.prototype.remove=function(S,E){this._dom&&E.getDom().removeChild(this._dom)},g.prototype.dispose=function(S,E){this.remove(S,E)};function v(S,E){return f.map(S,function(C,_){var T=E&&E[_];return f.isObject(T)&&!f.isArray(T)?(f.isObject(C)&&!f.isArray(C)&&(C=C.value),f.defaults({value:C},T)):C})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(S,E){var C=[];f.each(S.newOption.series,function(_){var T=E.getSeriesByName(_.name)[0];if(!T)C.push(f.extend({type:"scatter"},_));else{var w=T.get("data");C.push({name:_.name,data:v(_.data,w)})}}),E.mergeOption(f.defaults({series:C},S.newOption))});var b=g;R.exports=b},dqUG:function(R,L,r){var y=r("Gev7"),f=r("bYtY"),x=r("6GrX"),A=r("pzxd"),m=r("gut8"),p=m.ContextCachedBy,d=function(i){y.call(this,i)};d.prototype={constructor:d,type:"text",brush:function(i,t){var s=this.style;this.__dirty&&A.normalizeTextStyle(s,!0),s.fill=s.stroke=s.shadowBlur=s.shadowColor=s.shadowOffsetX=s.shadowOffsetY=null;var e=s.text;if(e!=null&&(e+=""),!A.needDrawText(e,s)){i.__attrCachedBy=p.NONE;return}this.setTransform(i),A.renderText(this,i,e,s,null,t),this.restoreTransform(i)},getBoundingRect:function(){var i=this.style;if(this.__dirty&&A.normalizeTextStyle(i,!0),!this._rect){var t=i.text;t!=null?t+="":t="";var s=x.getBoundingRect(i.text+"",i.font,i.textAlign,i.textVerticalAlign,i.textPadding,i.textLineHeight,i.rich);if(s.x+=i.x||0,s.y+=i.y||0,A.getStroke(i.textStroke,i.textStrokeWidth)){var e=i.textStrokeWidth;s.x-=e/2,s.y-=e/2,s.width+=e,s.height+=e}this._rect=s}return this._rect}},f.inherits(d,y);var u=d;R.exports=u},dt0z:function(R,L,r){var y=r("zoYe");function f(x){return x==null?"":y(x)}R.exports=f},dtIV:function(R,L,r){"use strict";r.r(L),function(y){r.d(L,"AcroForm",function(){return Xe}),r.d(L,"AcroFormAppearance",function(){return te}),r.d(L,"AcroFormButton",function(){return Ht}),r.d(L,"AcroFormCheckBox",function(){return Gt}),r.d(L,"AcroFormChoiceField",function(){return ct}),r.d(L,"AcroFormComboBox",function(){return Zt}),r.d(L,"AcroFormEditBox",function(){return ut}),r.d(L,"AcroFormListBox",function(){return je}),r.d(L,"AcroFormPasswordField",function(){return me}),r.d(L,"AcroFormPushButton",function(){return dr}),r.d(L,"AcroFormRadioButton",function(){return Vt}),r.d(L,"AcroFormTextField",function(){return Ve}),r.d(L,"GState",function(){return X}),r.d(L,"ShadingPattern",function(){return j}),r.d(L,"TilingPattern",function(){return K}),r.d(L,"jsPDF",function(){return z});var f=r("cDf5"),x=r.n(f),A=r("crp1");/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 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
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var m=function(){return typeof window!="undefined"?window:typeof y!="undefined"?y:typeof self!="undefined"?self:this}();function p(){m.console&&typeof m.console.log=="function"&&m.console.log.apply(m.console,arguments)}var d={log:p,warn:function(Ne){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):p.call(null,arguments))},error:function(Ne){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):p(Ne))}};function u(ot,Ne,He){var Ye=new XMLHttpRequest;Ye.open("GET",ot),Ye.responseType="blob",Ye.onload=function(){e(Ye.response,Ne,He)},Ye.onerror=function(){d.error("could not download file")},Ye.send()}function a(ot){var Ne=new XMLHttpRequest;Ne.open("HEAD",ot,!1);try{Ne.send()}catch(He){}return Ne.status>=200&&Ne.status<=299}function i(ot){try{ot.dispatchEvent(new MouseEvent("click"))}catch(He){var Ne=document.createEvent("MouseEvents");Ne.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),ot.dispatchEvent(Ne)}}var t,s,e=m.saveAs||((typeof window=="undefined"?"undefined":x()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(ot,Ne,He){var Ye=m.URL||m.webkitURL,at=document.createElement("a");Ne=Ne||ot.name||"download",at.download=Ne,at.rel="noopener",typeof ot=="string"?(at.href=ot,at.origin!==location.origin?a(at.href)?u(ot,Ne,He):i(at,at.target="_blank"):i(at)):(at.href=Ye.createObjectURL(ot),setTimeout(function(){Ye.revokeObjectURL(at.href)},4e4),setTimeout(function(){i(at)},0))}:"msSaveOrOpenBlob"in navigator?function(ot,Ne,He){if(Ne=Ne||ot.name||"download",typeof ot=="string")if(a(ot))u(ot,Ne,He);else{var Ye=document.createElement("a");Ye.href=ot,Ye.target="_blank",setTimeout(function(){i(Ye)})}else navigator.msSaveOrOpenBlob(function(at,qe){return qe===void 0?qe={autoBom:!1}:x()(qe)!=="object"&&(d.warn("Deprecated: Expected third argument to be a object"),qe={autoBom:!qe}),qe.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(at.type)?new Blob([String.fromCharCode(65279),at],{type:at.type}):at}(ot,He),Ne)}:function(ot,Ne,He,Ye){if((Ye=Ye||open("","_blank"))&&(Ye.document.title=Ye.document.body.innerText="downloading..."),typeof ot=="string")return u(ot,Ne,He);var at=ot.type==="application/octet-stream",qe=/constructor/i.test(m.HTMLElement)||m.safari,lt=/CriOS\/[\d]+/.test(navigator.userAgent);if((lt||at&&qe)&&(typeof FileReader=="undefined"?"undefined":x()(FileReader))==="object"){var Et=new FileReader;Et.onloadend=function(){var Jr=Et.result;Jr=lt?Jr:Jr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ye?Ye.location.href=Jr:location=Jr,Ye=null},Et.readAsDataURL(ot)}else{var At=m.URL||m.webkitURL,fr=At.createObjectURL(ot);Ye?Ye.location=fr:location.href=fr,Ye=null,setTimeout(function(){At.revokeObjectURL(fr)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function l(ot){var Ne;ot=ot||"",this.ok=!1,ot.charAt(0)=="#"&&(ot=ot.substr(1,6)),ot={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[ot=(ot=ot.replace(/ /g,"")).toLowerCase()]||ot;for(var He=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(At){return[parseInt(At[1]),parseInt(At[2]),parseInt(At[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(At){return[parseInt(At[1],16),parseInt(At[2],16),parseInt(At[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(At){return[parseInt(At[1]+At[1],16),parseInt(At[2]+At[2],16),parseInt(At[3]+At[3],16)]}}],Ye=0;Ye<He.length;Ye++){var at=He[Ye].re,qe=He[Ye].process,lt=at.exec(ot);lt&&(Ne=qe(lt),this.r=Ne[0],this.g=Ne[1],this.b=Ne[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Et=this.r.toString(16),At=this.g.toString(16),fr=this.b.toString(16);return Et.length==1&&(Et="0"+Et),At.length==1&&(At="0"+At),fr.length==1&&(fr="0"+fr),"#"+Et+At+fr}}/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function n(ot,Ne){var He=ot[0],Ye=ot[1],at=ot[2],qe=ot[3];He=c(He,Ye,at,qe,Ne[0],7,-680876936),qe=c(qe,He,Ye,at,Ne[1],12,-389564586),at=c(at,qe,He,Ye,Ne[2],17,606105819),Ye=c(Ye,at,qe,He,Ne[3],22,-1044525330),He=c(He,Ye,at,qe,Ne[4],7,-176418897),qe=c(qe,He,Ye,at,Ne[5],12,1200080426),at=c(at,qe,He,Ye,Ne[6],17,-1473231341),Ye=c(Ye,at,qe,He,Ne[7],22,-45705983),He=c(He,Ye,at,qe,Ne[8],7,1770035416),qe=c(qe,He,Ye,at,Ne[9],12,-1958414417),at=c(at,qe,He,Ye,Ne[10],17,-42063),Ye=c(Ye,at,qe,He,Ne[11],22,-1990404162),He=c(He,Ye,at,qe,Ne[12],7,1804603682),qe=c(qe,He,Ye,at,Ne[13],12,-40341101),at=c(at,qe,He,Ye,Ne[14],17,-1502002290),He=h(He,Ye=c(Ye,at,qe,He,Ne[15],22,1236535329),at,qe,Ne[1],5,-165796510),qe=h(qe,He,Ye,at,Ne[6],9,-1069501632),at=h(at,qe,He,Ye,Ne[11],14,643717713),Ye=h(Ye,at,qe,He,Ne[0],20,-373897302),He=h(He,Ye,at,qe,Ne[5],5,-701558691),qe=h(qe,He,Ye,at,Ne[10],9,38016083),at=h(at,qe,He,Ye,Ne[15],14,-660478335),Ye=h(Ye,at,qe,He,Ne[4],20,-405537848),He=h(He,Ye,at,qe,Ne[9],5,568446438),qe=h(qe,He,Ye,at,Ne[14],9,-1019803690),at=h(at,qe,He,Ye,Ne[3],14,-187363961),Ye=h(Ye,at,qe,He,Ne[8],20,1163531501),He=h(He,Ye,at,qe,Ne[13],5,-1444681467),qe=h(qe,He,Ye,at,Ne[2],9,-51403784),at=h(at,qe,He,Ye,Ne[7],14,1735328473),He=g(He,Ye=h(Ye,at,qe,He,Ne[12],20,-1926607734),at,qe,Ne[5],4,-378558),qe=g(qe,He,Ye,at,Ne[8],11,-2022574463),at=g(at,qe,He,Ye,Ne[11],16,1839030562),Ye=g(Ye,at,qe,He,Ne[14],23,-35309556),He=g(He,Ye,at,qe,Ne[1],4,-1530992060),qe=g(qe,He,Ye,at,Ne[4],11,1272893353),at=g(at,qe,He,Ye,Ne[7],16,-155497632),Ye=g(Ye,at,qe,He,Ne[10],23,-1094730640),He=g(He,Ye,at,qe,Ne[13],4,681279174),qe=g(qe,He,Ye,at,Ne[0],11,-358537222),at=g(at,qe,He,Ye,Ne[3],16,-722521979),Ye=g(Ye,at,qe,He,Ne[6],23,76029189),He=g(He,Ye,at,qe,Ne[9],4,-640364487),qe=g(qe,He,Ye,at,Ne[12],11,-421815835),at=g(at,qe,He,Ye,Ne[15],16,530742520),He=v(He,Ye=g(Ye,at,qe,He,Ne[2],23,-995338651),at,qe,Ne[0],6,-198630844),qe=v(qe,He,Ye,at,Ne[7],10,1126891415),at=v(at,qe,He,Ye,Ne[14],15,-1416354905),Ye=v(Ye,at,qe,He,Ne[5],21,-57434055),He=v(He,Ye,at,qe,Ne[12],6,1700485571),qe=v(qe,He,Ye,at,Ne[3],10,-1894986606),at=v(at,qe,He,Ye,Ne[10],15,-1051523),Ye=v(Ye,at,qe,He,Ne[1],21,-2054922799),He=v(He,Ye,at,qe,Ne[8],6,1873313359),qe=v(qe,He,Ye,at,Ne[15],10,-30611744),at=v(at,qe,He,Ye,Ne[6],15,-1560198380),Ye=v(Ye,at,qe,He,Ne[13],21,1309151649),He=v(He,Ye,at,qe,Ne[4],6,-145523070),qe=v(qe,He,Ye,at,Ne[11],10,-1120210379),at=v(at,qe,He,Ye,Ne[2],15,718787259),Ye=v(Ye,at,qe,He,Ne[9],21,-343485551),ot[0]=O(He,ot[0]),ot[1]=O(Ye,ot[1]),ot[2]=O(at,ot[2]),ot[3]=O(qe,ot[3])}function o(ot,Ne,He,Ye,at,qe){return Ne=O(O(Ne,ot),O(Ye,qe)),O(Ne<<at|Ne>>>32-at,He)}function c(ot,Ne,He,Ye,at,qe,lt){return o(Ne&He|~Ne&Ye,ot,Ne,at,qe,lt)}function h(ot,Ne,He,Ye,at,qe,lt){return o(Ne&Ye|He&~Ye,ot,Ne,at,qe,lt)}function g(ot,Ne,He,Ye,at,qe,lt){return o(Ne^He^Ye,ot,Ne,at,qe,lt)}function v(ot,Ne,He,Ye,at,qe,lt){return o(He^(Ne|~Ye),ot,Ne,at,qe,lt)}function b(ot){var Ne,He=ot.length,Ye=[1732584193,-271733879,-1732584194,271733878];for(Ne=64;Ne<=ot.length;Ne+=64)n(Ye,S(ot.substring(Ne-64,Ne)));ot=ot.substring(Ne-64);var at=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Ne=0;Ne<ot.length;Ne++)at[Ne>>2]|=ot.charCodeAt(Ne)<<(Ne%4<<3);if(at[Ne>>2]|=128<<(Ne%4<<3),Ne>55)for(n(Ye,at),Ne=0;Ne<16;Ne++)at[Ne]=0;return at[14]=8*He,n(Ye,at),Ye}function S(ot){var Ne,He=[];for(Ne=0;Ne<64;Ne+=4)He[Ne>>2]=ot.charCodeAt(Ne)+(ot.charCodeAt(Ne+1)<<8)+(ot.charCodeAt(Ne+2)<<16)+(ot.charCodeAt(Ne+3)<<24);return He}t=m.atob.bind(m),s=m.btoa.bind(m);var E="0123456789abcdef".split("");function C(ot){for(var Ne="",He=0;He<4;He++)Ne+=E[ot>>8*He+4&15]+E[ot>>8*He&15];return Ne}function _(ot){return String.fromCharCode((255&ot)>>0,(65280&ot)>>8,(16711680&ot)>>16,(4278190080&ot)>>24)}function T(ot){return b(ot).map(_).join("")}var w=function(ot){for(var Ne=0;Ne<ot.length;Ne++)ot[Ne]=C(ot[Ne]);return ot.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(ot,Ne){if(w){var He=(65535&ot)+(65535&Ne);return(ot>>16)+(Ne>>16)+(He>>16)<<16|65535&He}return ot+Ne&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function I(ot,Ne){var He,Ye,at,qe;if(ot!==He){for(var lt=(at=ot,qe=1+(256/ot.length>>0),new Array(qe+1).join(at)),Et=[],At=0;At<256;At++)Et[At]=At;var fr=0;for(At=0;At<256;At++){var Jr=Et[At];fr=(fr+Jr+lt.charCodeAt(At))%256,Et[At]=Et[fr],Et[fr]=Jr}He=ot,Ye=Et}else Et=Ye;var Vr=Ne.length,dn=0,gr=0,Wn="";for(At=0;At<Vr;At++)gr=(gr+(Jr=Et[dn=(dn+1)%256]))%256,Et[dn]=Et[gr],Et[gr]=Jr,lt=Et[(Et[dn]+Et[gr])%256],Wn+=String.fromCharCode(Ne.charCodeAt(At)^lt);return Wn}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var k={print:4,modify:8,copy:16,"annot-forms":32};function M(ot,Ne,He,Ye){this.v=1,this.r=2;var at=192;ot.forEach(function(Et){if(k.perm!==void 0)throw new Error("Invalid permission: "+Et);at+=k[Et]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var qe=(Ne+this.padding).substr(0,32),lt=(He+this.padding).substr(0,32);this.O=this.processOwnerPassword(qe,lt),this.P=-(1+(255^at)),this.encryptionKey=T(qe+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ye)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function U(ot){if(/[^\u0000-\u00ff]/.test(ot))throw new Error("Invalid PDF Name Object: "+ot+", Only accept ASCII characters.");for(var Ne="",He=ot.length,Ye=0;Ye<He;Ye++){var at=ot.charCodeAt(Ye);at<33||at===35||at===37||at===40||at===41||at===47||at===60||at===62||at===91||at===93||at===123||at===125||at>126?Ne+="#"+("0"+at.toString(16)).slice(-2):Ne+=ot[Ye]}return Ne}function P(ot){if(x()(ot)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Ne={};this.subscribe=function(He,Ye,at){if(at=at||!1,typeof He!="string"||typeof Ye!="function"||typeof at!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Ne.hasOwnProperty(He)||(Ne[He]={});var qe=Math.random().toString(35);return Ne[He][qe]=[Ye,!!at],qe},this.unsubscribe=function(He){for(var Ye in Ne)if(Ne[Ye][He])return delete Ne[Ye][He],Object.keys(Ne[Ye]).length===0&&delete Ne[Ye],!0;return!1},this.publish=function(He){if(Ne.hasOwnProperty(He)){var Ye=Array.prototype.slice.call(arguments,1),at=[];for(var qe in Ne[He]){var lt=Ne[He][qe];try{lt[0].apply(ot,Ye)}catch(Et){m.console&&d.error("jsPDF PubSub Error",Et.message,Et)}lt[1]&&at.push(qe)}at.length&&at.forEach(this.unsubscribe)}},this.getTopics=function(){return Ne}}function X(ot){if(!(this instanceof X))return new X(ot);var Ne="opacity,stroke-opacity".split(",");for(var He in ot)ot.hasOwnProperty(He)&&Ne.indexOf(He)>=0&&(this[He]=ot[He]);this.id="",this.objectNumber=-1}function F(ot,Ne){this.gState=ot,this.matrix=Ne,this.id="",this.objectNumber=-1}function j(ot,Ne,He,Ye,at){if(!(this instanceof j))return new j(ot,Ne,He,Ye,at);this.type=ot==="axial"?2:3,this.coords=Ne,this.colors=He,F.call(this,Ye,at)}function K(ot,Ne,He,Ye,at){if(!(this instanceof K))return new K(ot,Ne,He,Ye,at);this.boundingBox=ot,this.xStep=Ne,this.yStep=He,this.stream="",this.cloneIndex=0,F.call(this,Ye,at)}function z(ot){var Ne,He=typeof arguments[0]=="string"?arguments[0]:"p",Ye=arguments[1],at=arguments[2],qe=arguments[3],lt=[],Et=1,At=16,fr="S",Jr=null;x()(ot=ot||{})==="object"&&(He=ot.orientation,Ye=ot.unit||Ye,at=ot.format||at,qe=ot.compress||ot.compressPdf||qe,(Jr=ot.encryption||null)!==null&&(Jr.userPassword=Jr.userPassword||"",Jr.ownerPassword=Jr.ownerPassword||"",Jr.userPermissions=Jr.userPermissions||[]),Et=typeof ot.userUnit=="number"?Math.abs(ot.userUnit):1,ot.precision!==void 0&&(Ne=ot.precision),ot.floatPrecision!==void 0&&(At=ot.floatPrecision),fr=ot.defaultPathOperation||"S"),lt=ot.filters||(qe===!0?["FlateEncode"]:lt),Ye=Ye||"mm",He=(""+(He||"P")).toLowerCase();var Vr=ot.putOnlyUsedFonts||!1,dn={},gr={internal:{},__private__:{}};gr.__private__.PubSub=P;var Wn="1.3",kr=gr.__private__.getPdfVersion=function(){return Wn};gr.__private__.setPdfVersion=function(jt){Wn=jt};var Fn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};gr.__private__.getPageFormats=function(){return Fn};var vn=gr.__private__.getPageFormat=function(jt){return Fn[jt]};at=at||"a4";var $r={COMPAT:"compat",ADVANCED:"advanced"},ei=$r.COMPAT;function fi(){this.saveGraphicsState(),Rn(new na(Lr,0,0,-Lr,0,Ds()*Lr).toString()+" cm"),this.setFontSize(this.getFontSize()/Lr),fr="n",ei=$r.ADVANCED}function Pi(){this.restoreGraphicsState(),fr="S",ei=$r.COMPAT}var Zr=gr.__private__.combineFontStyleAndFontWeight=function(jt,or){if(jt=="bold"&&or=="normal"||jt=="bold"&&or==400||jt=="normal"&&or=="italic"||jt=="bold"&&or=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return or&&(jt=or==400||or==="normal"?jt==="italic"?"italic":"normal":or!=700&&or!=="bold"||jt!=="normal"?(or==700?"bold":or)+""+jt:"bold"),jt};gr.advancedAPI=function(jt){var or=ei===$r.COMPAT;return or&&fi.call(this),typeof jt!="function"||(jt(this),or&&Pi.call(this)),this},gr.compatAPI=function(jt){var or=ei===$r.ADVANCED;return or&&Pi.call(this),typeof jt!="function"||(jt(this),or&&fi.call(this)),this},gr.isAdvancedAPI=function(){return ei===$r.ADVANCED};var Sn,Gn=function(or){if(ei!==$r.ADVANCED)throw new Error(or+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Wt=gr.roundToPrecision=gr.__private__.roundToPrecision=function(jt,or){var In=Ne||or;if(isNaN(jt)||isNaN(In))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return jt.toFixed(In).replace(/0+$/,"")};Sn=gr.hpf=gr.__private__.hpf=typeof At=="number"?function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(jt,At)}:At==="smart"?function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(jt,jt>-1&&jt<1?16:5)}:function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return Wt(jt,16)};var Ot=gr.f2=gr.__private__.f2=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.f2");return Wt(jt,2)},Rt=gr.__private__.f3=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.f3");return Wt(jt,3)},Ut=gr.scale=gr.__private__.scale=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.scale");return ei===$r.COMPAT?jt*Lr:ei===$r.ADVANCED?jt:void 0},Kt=function(or){return ei===$r.COMPAT?Ds()-or:ei===$r.ADVANCED?or:void 0},Lt=function(or){return Ut(Kt(or))};gr.__private__.setPrecision=gr.setPrecision=function(jt){typeof parseInt(jt,10)=="number"&&(Ne=parseInt(jt,10))};var cr,vr="00000000000000000000000000000000",yr=gr.__private__.getFileId=function(){return vr},Rr=gr.__private__.setFileId=function(jt){return vr=jt!==void 0&&/^[a-fA-F0-9]{32}$/.test(jt)?jt.toUpperCase():vr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Jr!==null&&(wa=new M(Jr.userPermissions,Jr.userPassword,Jr.ownerPassword,vr)),vr};gr.setFileId=function(jt){return Rr(jt),this},gr.getFileId=function(){return yr()};var Vn=gr.__private__.convertDateToPDFDate=function(jt){var or=jt.getTimezoneOffset(),In=or<0?"+":"-",hi=Math.floor(Math.abs(or/60)),Nt=Math.abs(or%60),ce=[In,_n(hi),"'",_n(Nt),"'"].join("");return["D:",jt.getFullYear(),_n(jt.getMonth()+1),_n(jt.getDate()),_n(jt.getHours()),_n(jt.getMinutes()),_n(jt.getSeconds()),ce].join("")},kn=gr.__private__.convertPDFDateToDate=function(jt){var or=parseInt(jt.substr(2,4),10),In=parseInt(jt.substr(6,2),10)-1,hi=parseInt(jt.substr(8,2),10),Nt=parseInt(jt.substr(10,2),10),ce=parseInt(jt.substr(12,2),10),xe=parseInt(jt.substr(14,2),10);return new Date(or,In,hi,Nt,ce,xe,0)},di=gr.__private__.setCreationDate=function(jt){var or;if(jt===void 0&&(jt=new Date),jt instanceof Date)or=Vn(jt);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(jt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");or=jt}return cr=or},pn=gr.__private__.getCreationDate=function(jt){var or=cr;return jt==="jsDate"&&(or=kn(cr)),or};gr.setCreationDate=function(jt){return di(jt),this},gr.getCreationDate=function(jt){return pn(jt)};var Br,_n=gr.__private__.padd2=function(jt){return("0"+parseInt(jt)).slice(-2)},Xn=gr.__private__.padd2Hex=function(jt){return("00"+(jt=jt.toString())).substr(jt.length)},$n=0,oi=[],Ti=[],Ri=0,Di=[],oa=[],ma=!1,aa=Ti,ba=function(){$n=0,Ri=0,Ti=[],oi=[],Di=[],_a=Oa(),Va=Oa()};gr.__private__.setCustomOutputDestination=function(jt){ma=!0,aa=jt};var bi=function(or){ma||(aa=or)};gr.__private__.resetCustomOutputDestination=function(){ma=!1,aa=Ti};var Rn=gr.__private__.out=function(jt){return jt=jt.toString(),Ri+=jt.length+1,aa.push(jt),aa},ji=gr.__private__.write=function(jt){return Rn(arguments.length===1?jt.toString():Array.prototype.join.call(arguments," "))},ha=gr.__private__.getArrayBuffer=function(jt){for(var or=jt.length,In=new ArrayBuffer(or),hi=new Uint8Array(In);or--;)hi[or]=jt.charCodeAt(or);return In},ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];gr.__private__.getStandardFonts=function(){return ta};var ra=ot.fontSize||16;gr.__private__.setFontSize=gr.setFontSize=function(jt){return ra=ei===$r.ADVANCED?jt/Lr:jt,this};var Ir,Sr=gr.__private__.getFontSize=gr.getFontSize=function(){return ei===$r.COMPAT?ra:ra*Lr},Tn=ot.R2L||!1;gr.__private__.setR2L=gr.setR2L=function(jt){return Tn=jt,this},gr.__private__.getR2L=gr.getR2L=function(){return Tn};var pr,Dr=gr.__private__.setZoomMode=function(jt){var or=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(jt))Ir=jt;else if(isNaN(jt)){if(or.indexOf(jt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+jt+'" is not recognized.');Ir=jt}else Ir=parseInt(jt,10)};gr.__private__.getZoomMode=function(){return Ir};var Wr,ln=gr.__private__.setPageMode=function(jt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(jt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+jt+'" is not recognized.');pr=jt};gr.__private__.getPageMode=function(){return pr};var Pn=gr.__private__.setLayoutMode=function(jt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(jt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+jt+'" is not recognized.');Wr=jt};gr.__private__.getLayoutMode=function(){return Wr},gr.__private__.setDisplayMode=gr.setDisplayMode=function(jt,or,In){return Dr(jt),Pn(or),ln(In),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};gr.__private__.getDocumentProperty=function(jt){if(Object.keys(_t).indexOf(jt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[jt]},gr.__private__.getDocumentProperties=function(){return _t},gr.__private__.setDocumentProperties=gr.setProperties=gr.setDocumentProperties=function(jt){for(var or in _t)_t.hasOwnProperty(or)&&jt[or]&&(_t[or]=jt[or]);return this},gr.__private__.setDocumentProperty=function(jt,or){if(Object.keys(_t).indexOf(jt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[jt]=or};var _r,Lr,en,bn,On,yn={},qn={},Hn=[],pi={},Fi={},wi={},Oi={},zi=null,ea=0,Gi=[],Wi=new P(gr),Hi=ot.hotfixes||[],Ji={},ca={},Ca=[],na=function jt(or,In,hi,Nt,ce,xe){if(!(this instanceof jt))return new jt(or,In,hi,Nt,ce,xe);isNaN(or)&&(or=1),isNaN(In)&&(In=0),isNaN(hi)&&(hi=0),isNaN(Nt)&&(Nt=1),isNaN(ce)&&(ce=0),isNaN(xe)&&(xe=0),this._matrix=[or,In,hi,Nt,ce,xe]};Object.defineProperty(na.prototype,"sx",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"shy",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"shx",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"sy",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"tx",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"ty",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),Object.defineProperty(na.prototype,"a",{get:function(){return this._matrix[0]},set:function(or){this._matrix[0]=or}}),Object.defineProperty(na.prototype,"b",{get:function(){return this._matrix[1]},set:function(or){this._matrix[1]=or}}),Object.defineProperty(na.prototype,"c",{get:function(){return this._matrix[2]},set:function(or){this._matrix[2]=or}}),Object.defineProperty(na.prototype,"d",{get:function(){return this._matrix[3]},set:function(or){this._matrix[3]=or}}),Object.defineProperty(na.prototype,"e",{get:function(){return this._matrix[4]},set:function(or){this._matrix[4]=or}}),Object.defineProperty(na.prototype,"f",{get:function(){return this._matrix[5]},set:function(or){this._matrix[5]=or}}),Object.defineProperty(na.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(na.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(na.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(na.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),na.prototype.join=function(jt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Sn).join(jt)},na.prototype.multiply=function(jt){var or=jt.sx*this.sx+jt.shy*this.shx,In=jt.sx*this.shy+jt.shy*this.sy,hi=jt.shx*this.sx+jt.sy*this.shx,Nt=jt.shx*this.shy+jt.sy*this.sy,ce=jt.tx*this.sx+jt.ty*this.shx+this.tx,xe=jt.tx*this.shy+jt.ty*this.sy+this.ty;return new na(or,In,hi,Nt,ce,xe)},na.prototype.decompose=function(){var jt=this.sx,or=this.shy,In=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,xe=Math.sqrt(jt*jt+or*or),Ie=(jt/=xe)*In+(or/=xe)*hi;In-=jt*Ie,hi-=or*Ie;var Je=Math.sqrt(In*In+hi*hi);return Ie/=Je,jt*(hi/=Je)<or*(In/=Je)&&(jt=-jt,or=-or,Ie=-Ie,xe=-xe),{scale:new na(xe,0,0,Je,0,0),translate:new na(1,0,0,1,Nt,ce),rotate:new na(jt,or,-or,jt,0,0),skew:new na(1,0,Ie,1,0,0)}},na.prototype.toString=function(jt){return this.join(" ")},na.prototype.inversed=function(){var jt=this.sx,or=this.shy,In=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,xe=1/(jt*hi-or*In),Ie=hi*xe,Je=-or*xe,Dt=-In*xe,lr=jt*xe;return new na(Ie,Je,Dt,lr,-Ie*Nt-Dt*ce,-Je*Nt-lr*ce)},na.prototype.applyToPoint=function(jt){var or=jt.x*this.sx+jt.y*this.shx+this.tx,In=jt.x*this.shy+jt.y*this.sy+this.ty;return new tl(or,In)},na.prototype.applyToRectangle=function(jt){var or=this.applyToPoint(jt),In=this.applyToPoint(new tl(jt.x+jt.w,jt.y+jt.h));return new xs(or.x,or.y,In.x-or.x,In.y-or.y)},na.prototype.clone=function(){var jt=this.sx,or=this.shy,In=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty;return new na(jt,or,In,hi,Nt,ce)},gr.Matrix=na;var Pa=gr.matrixMult=function(jt,or){return or.multiply(jt)},La=new na(1,0,0,1,0,0);gr.unitMatrix=gr.identityMatrix=La;var va=function(or,In){if(!Fi[or]){var hi=(In instanceof j?"Sh":"P")+(Object.keys(pi).length+1).toString(10);In.id=hi,Fi[or]=hi,pi[hi]=In,Wi.publish("addPattern",In)}};gr.ShadingPattern=j,gr.TilingPattern=K,gr.addShadingPattern=function(jt,or){return Gn("addShadingPattern()"),va(jt,or),this},gr.beginTilingPattern=function(jt){Gn("beginTilingPattern()"),al(jt.boundingBox[0],jt.boundingBox[1],jt.boundingBox[2]-jt.boundingBox[0],jt.boundingBox[3]-jt.boundingBox[1],jt.matrix)},gr.endTilingPattern=function(jt,or){Gn("endTilingPattern()"),or.stream=oa[Br].join(`
`),va(jt,or),Wi.publish("endTilingPattern",or),Ca.pop().restore()};var ga=gr.__private__.newObject=function(){var jt=Oa();return Aa(jt,!0),jt},Oa=gr.__private__.newObjectDeferred=function(){return $n++,oi[$n]=function(){return Ri},$n},Aa=function(or,In){return In=typeof In=="boolean"&&In,oi[or]=Ri,In&&Rn(or+" 0 obj"),or},Xa=gr.__private__.newAdditionalObject=function(){var jt={objId:Oa(),content:""};return Di.push(jt),jt},_a=Oa(),Va=Oa(),Bi=gr.__private__.decodeColorString=function(jt){var or=jt.split(" ");if(or.length!==2||or[1]!=="g"&&or[1]!=="G")or.length===5&&(or[4]==="k"||or[4]==="K")&&(or=[(1-or[0])*(1-or[3]),(1-or[1])*(1-or[3]),(1-or[2])*(1-or[3]),"r"]);else{var In=parseFloat(or[0]);or=[In,In,In,"r"]}for(var hi="#",Nt=0;Nt<3;Nt++)hi+=("0"+Math.floor(255*parseFloat(or[Nt])).toString(16)).slice(-2);return hi},io=gr.__private__.encodeColorString=function(jt){var or;typeof jt=="string"&&(jt={ch1:jt});var In=jt.ch1,hi=jt.ch2,Nt=jt.ch3,ce=jt.ch4,xe=jt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof In=="string"&&In.charAt(0)!=="#"){var Ie=new l(In);if(Ie.ok)In=Ie.toHex();else if(!/^\d*\.?\d*$/.test(In))throw new Error('Invalid color "'+In+'" passed to jsPDF.encodeColorString.')}if(typeof In=="string"&&/^#[0-9A-Fa-f]{3}$/.test(In)&&(In="#"+In[1]+In[1]+In[2]+In[2]+In[3]+In[3]),typeof In=="string"&&/^#[0-9A-Fa-f]{6}$/.test(In)){var Je=parseInt(In.substr(1),16);In=Je>>16&255,hi=Je>>8&255,Nt=255&Je}if(hi===void 0||ce===void 0&&In===hi&&hi===Nt)if(typeof In=="string")or=In+" "+xe[0];else switch(jt.precision){case 2:or=Ot(In/255)+" "+xe[0];break;case 3:default:or=Rt(In/255)+" "+xe[0]}else if(ce===void 0||x()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return or=["1.","1.","1.",xe[1]].join(" ");if(typeof In=="string")or=[In,hi,Nt,xe[1]].join(" ");else switch(jt.precision){case 2:or=[Ot(In/255),Ot(hi/255),Ot(Nt/255),xe[1]].join(" ");break;default:case 3:or=[Rt(In/255),Rt(hi/255),Rt(Nt/255),xe[1]].join(" ")}}else if(typeof In=="string")or=[In,hi,Nt,ce,xe[2]].join(" ");else switch(jt.precision){case 2:or=[Ot(In),Ot(hi),Ot(Nt),Ot(ce),xe[2]].join(" ");break;case 3:default:or=[Rt(In),Rt(hi),Rt(Nt),Rt(ce),xe[2]].join(" ")}return or},oo=gr.__private__.getFilters=function(){return lt},Qo=gr.__private__.putStream=function(jt){var or=(jt=jt||{}).data||"",In=jt.filters||oo(),hi=jt.alreadyAppliedFilters||[],Nt=jt.addLength1||!1,ce=or.length,xe=jt.objectId,Ie=function(Ai){return Ai};if(Jr!==null&&xe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Jr!==null&&(Ie=wa.encryptor(xe,0));var Je={};In===!0&&(In=["FlateEncode"]);var Dt=jt.additionalKeyValues||[],lr=(Je=z.API.processDataByFilters!==void 0?z.API.processDataByFilters(or,In):{data:or,reverseChain:[]}).reverseChain+(Array.isArray(hi)?hi.join(" "):hi.toString());if(Je.data.length!==0&&(Dt.push({key:"Length",value:Je.data.length}),Nt===!0&&Dt.push({key:"Length1",value:ce})),lr.length!=0)if(lr.split("/").length-1==1)Dt.push({key:"Filter",value:lr});else{Dt.push({key:"Filter",value:"["+lr+"]"});for(var Xr=0;Xr<Dt.length;Xr+=1)if(Dt[Xr].key==="DecodeParms"){for(var hn=[],Nn=0;Nn<Je.reverseChain.split("/").length-1;Nn+=1)hn.push("null");hn.push(Dt[Xr].value),Dt[Xr].value="["+hn.join(" ")+"]"}}Rn("<<");for(var ui=0;ui<Dt.length;ui++)Rn("/"+Dt[ui].key+" "+Dt[ui].value);Rn(">>"),Je.data.length!==0&&(Rn("stream"),Rn(Ie(Je.data)),Rn("endstream"))},mo=gr.__private__.putPage=function(jt){var or=jt.number,In=jt.data,hi=jt.objId,Nt=jt.contentsObjId;Aa(hi,!0),Rn("<</Type /Page"),Rn("/Parent "+jt.rootDictionaryObjId+" 0 R"),Rn("/Resources "+jt.resourceDictionaryObjId+" 0 R"),Rn("/MediaBox ["+parseFloat(Sn(jt.mediaBox.bottomLeftX))+" "+parseFloat(Sn(jt.mediaBox.bottomLeftY))+" "+Sn(jt.mediaBox.topRightX)+" "+Sn(jt.mediaBox.topRightY)+"]"),jt.cropBox!==null&&Rn("/CropBox ["+Sn(jt.cropBox.bottomLeftX)+" "+Sn(jt.cropBox.bottomLeftY)+" "+Sn(jt.cropBox.topRightX)+" "+Sn(jt.cropBox.topRightY)+"]"),jt.bleedBox!==null&&Rn("/BleedBox ["+Sn(jt.bleedBox.bottomLeftX)+" "+Sn(jt.bleedBox.bottomLeftY)+" "+Sn(jt.bleedBox.topRightX)+" "+Sn(jt.bleedBox.topRightY)+"]"),jt.trimBox!==null&&Rn("/TrimBox ["+Sn(jt.trimBox.bottomLeftX)+" "+Sn(jt.trimBox.bottomLeftY)+" "+Sn(jt.trimBox.topRightX)+" "+Sn(jt.trimBox.topRightY)+"]"),jt.artBox!==null&&Rn("/ArtBox ["+Sn(jt.artBox.bottomLeftX)+" "+Sn(jt.artBox.bottomLeftY)+" "+Sn(jt.artBox.topRightX)+" "+Sn(jt.artBox.topRightY)+"]"),typeof jt.userUnit=="number"&&jt.userUnit!==1&&Rn("/UserUnit "+jt.userUnit),Wi.publish("putPage",{objId:hi,pageContext:Gi[or],pageNumber:or,page:In}),Rn("/Contents "+Nt+" 0 R"),Rn(">>"),Rn("endobj");var ce=In.join(`
`);return ei===$r.ADVANCED&&(ce+=`
Q`),Aa(Nt,!0),Qo({data:ce,filters:oo(),objectId:Nt}),Rn("endobj"),hi},To=gr.__private__.putPages=function(){var jt,or,In=[];for(jt=1;jt<=ea;jt++)Gi[jt].objId=Oa(),Gi[jt].contentsObjId=Oa();for(jt=1;jt<=ea;jt++)In.push(mo({number:jt,data:oa[jt],objId:Gi[jt].objId,contentsObjId:Gi[jt].contentsObjId,mediaBox:Gi[jt].mediaBox,cropBox:Gi[jt].cropBox,bleedBox:Gi[jt].bleedBox,trimBox:Gi[jt].trimBox,artBox:Gi[jt].artBox,userUnit:Gi[jt].userUnit,rootDictionaryObjId:_a,resourceDictionaryObjId:Va}));Aa(_a,!0),Rn("<</Type /Pages");var hi="/Kids [";for(or=0;or<ea;or++)hi+=In[or]+" 0 R ";Rn(hi+"]"),Rn("/Count "+ea),Rn(">>"),Rn("endobj"),Wi.publish("postPutPages")},ao=function(or){Wi.publish("putFont",{font:or,out:Rn,newObject:ga,putStream:Qo}),or.isAlreadyPutted!==!0&&(or.objectNumber=ga(),Rn("<<"),Rn("/Type /Font"),Rn("/BaseFont /"+U(or.postScriptName)),Rn("/Subtype /Type1"),typeof or.encoding=="string"&&Rn("/Encoding /"+or.encoding),Rn("/FirstChar 32"),Rn("/LastChar 255"),Rn(">>"),Rn("endobj"))},So=function(){for(var or in yn)yn.hasOwnProperty(or)&&(Vr===!1||Vr===!0&&dn.hasOwnProperty(or))&&ao(yn[or])},bo=function(or){or.objectNumber=ga();var In=[];In.push({key:"Type",value:"/XObject"}),In.push({key:"Subtype",value:"/Form"}),In.push({key:"BBox",value:"["+[Sn(or.x),Sn(or.y),Sn(or.x+or.width),Sn(or.y+or.height)].join(" ")+"]"}),In.push({key:"Matrix",value:"["+or.matrix.toString()+"]"});var hi=or.pages[1].join(`
`);Qo({data:hi,additionalKeyValues:In,objectId:or.objectNumber}),Rn("endobj")},to=function(){for(var or in Ji)Ji.hasOwnProperty(or)&&bo(Ji[or])},Jo=function(or,In){var hi,Nt=[],ce=1/(In-1);for(hi=0;hi<1;hi+=ce)Nt.push(hi);if(Nt.push(1),or[0].offset!=0){var xe={offset:0,color:or[0].color};or.unshift(xe)}if(or[or.length-1].offset!=1){var Ie={offset:1,color:or[or.length-1].color};or.push(Ie)}for(var Je="",Dt=0,lr=0;lr<Nt.length;lr++){for(hi=Nt[lr];hi>or[Dt+1].offset;)Dt++;var Xr=or[Dt].offset,hn=(hi-Xr)/(or[Dt+1].offset-Xr),Nn=or[Dt].color,ui=or[Dt+1].color;Je+=Xn(Math.round((1-hn)*Nn[0]+hn*ui[0]).toString(16))+Xn(Math.round((1-hn)*Nn[1]+hn*ui[1]).toString(16))+Xn(Math.round((1-hn)*Nn[2]+hn*ui[2]).toString(16))}return Je.trim()},Uo=function(or,In){In||(In=21);var hi=ga(),Nt=Jo(or.colors,In),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+In+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qo({data:Nt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hi}),Rn("endobj"),or.objectNumber=ga(),Rn("<< /ShadingType "+or.type),Rn("/ColorSpace /DeviceRGB");var xe="/Coords ["+Sn(parseFloat(or.coords[0]))+" "+Sn(parseFloat(or.coords[1]))+" ";or.type===2?xe+=Sn(parseFloat(or.coords[2]))+" "+Sn(parseFloat(or.coords[3])):xe+=Sn(parseFloat(or.coords[2]))+" "+Sn(parseFloat(or.coords[3]))+" "+Sn(parseFloat(or.coords[4]))+" "+Sn(parseFloat(or.coords[5])),Rn(xe+="]"),or.matrix&&Rn("/Matrix ["+or.matrix.toString()+"]"),Rn("/Function "+hi+" 0 R"),Rn("/Extend [true true]"),Rn(">>"),Rn("endobj")},wo=function(or,In){var hi=Oa(),Nt=ga();In.push({resourcesOid:hi,objectOid:Nt}),or.objectNumber=Nt;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+or.boundingBox.map(Sn).join(" ")+"]"}),ce.push({key:"XStep",value:Sn(or.xStep)}),ce.push({key:"YStep",value:Sn(or.yStep)}),ce.push({key:"Resources",value:hi+" 0 R"}),or.matrix&&ce.push({key:"Matrix",value:"["+or.matrix.toString()+"]"}),Qo({data:or.stream,additionalKeyValues:ce,objectId:or.objectNumber}),Rn("endobj")},ts=function(or){var In;for(In in pi)pi.hasOwnProperty(In)&&(pi[In]instanceof j?Uo(pi[In]):pi[In]instanceof K&&wo(pi[In],or))},Ia=function(or){for(var In in or.objectNumber=ga(),Rn("<<"),or)switch(In){case"opacity":Rn("/ca "+Ot(or[In]));break;case"stroke-opacity":Rn("/CA "+Ot(or[In]))}Rn(">>"),Rn("endobj")},Oo=function(){var or;for(or in wi)wi.hasOwnProperty(or)&&Ia(wi[or])},Io=function(){for(var or in Rn("/XObject <<"),Ji)Ji.hasOwnProperty(or)&&Ji[or].objectNumber>=0&&Rn("/"+or+" "+Ji[or].objectNumber+" 0 R");Wi.publish("putXobjectDict"),Rn(">>")},os=function(){wa.oid=ga(),Rn("<<"),Rn("/Filter /Standard"),Rn("/V "+wa.v),Rn("/R "+wa.r),Rn("/U <"+wa.toHexString(wa.U)+">"),Rn("/O <"+wa.toHexString(wa.O)+">"),Rn("/P "+wa.P),Rn(">>"),Rn("endobj")},xo=function(){for(var or in Rn("/Font <<"),yn)yn.hasOwnProperty(or)&&(Vr===!1||Vr===!0&&dn.hasOwnProperty(or))&&Rn("/"+or+" "+yn[or].objectNumber+" 0 R");Rn(">>")},rs=function(){if(Object.keys(pi).length>0){for(var or in Rn("/Shading <<"),pi)pi.hasOwnProperty(or)&&pi[or]instanceof j&&pi[or].objectNumber>=0&&Rn("/"+or+" "+pi[or].objectNumber+" 0 R");Wi.publish("putShadingPatternDict"),Rn(">>")}},Ho=function(or){if(Object.keys(pi).length>0){for(var In in Rn("/Pattern <<"),pi)pi.hasOwnProperty(In)&&pi[In]instanceof gr.TilingPattern&&pi[In].objectNumber>=0&&pi[In].objectNumber<or&&Rn("/"+In+" "+pi[In].objectNumber+" 0 R");Wi.publish("putTilingPatternDict"),Rn(">>")}},_o=function(){if(Object.keys(wi).length>0){var or;for(or in Rn("/ExtGState <<"),wi)wi.hasOwnProperty(or)&&wi[or].objectNumber>=0&&Rn("/"+or+" "+wi[or].objectNumber+" 0 R");Wi.publish("putGStateDict"),Rn(">>")}},uo=function(or){Aa(or.resourcesOid,!0),Rn("<<"),Rn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),xo(),rs(),Ho(or.objectOid),_o(),Io(),Rn(">>"),Rn("endobj")},Ha=function(){var or=[];So(),Oo(),to(),ts(or),Wi.publish("putResources"),or.forEach(uo),uo({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Wi.publish("postPutResources")},vt=function(){Wi.publish("putAdditionalObjects");for(var or=0;or<Di.length;or++){var In=Di[or];Aa(In.objId,!0),Rn(In.content),Rn("endobj")}Wi.publish("postPutAdditionalObjects")},Er=function(or){qn[or.fontName]=qn[or.fontName]||{},qn[or.fontName][or.fontStyle]=or.id},qr=function(or,In,hi,Nt,ce){var xe={id:"F"+(Object.keys(yn).length+1).toString(10),postScriptName:or,fontName:In,fontStyle:hi,encoding:Nt,isStandardFont:ce||!1,metadata:{}};return Wi.publish("addFont",{font:xe,instance:this}),yn[xe.id]=xe,Er(xe),xe.id},Gr=function(or){for(var In=0,hi=ta.length;In<hi;In++){var Nt=qr.call(this,or[In][0],or[In][1],or[In][2],ta[In][3],!0);Vr===!1&&(dn[Nt]=!0);var ce=or[In][0].split("-");Er({id:Nt,fontName:ce[0],fontStyle:ce[1]||""})}Wi.publish("addFonts",{fonts:yn,dictionary:qn})},Qn=function(or){return or.foo=function(){try{return or.apply(this,arguments)}catch(Nt){var In=Nt.stack||"";~In.indexOf(" at ")&&(In=In.split(" at ")[1]);var hi="Error in function "+In.split(`
`)[0].split("<")[0]+": "+Nt.message;if(!m.console)throw new Error(hi);m.console.error(hi,Nt),m.alert&&alert(hi)}},or.foo.bar=or,or.foo},un=function(or,In){var hi,Nt,ce,xe,Ie,Je,Dt,lr,Xr;if(ce=(In=In||{}).sourceEncoding||"Unicode",Ie=In.outputEncoding,(In.autoencode||Ie)&&yn[_r].metadata&&yn[_r].metadata[ce]&&yn[_r].metadata[ce].encoding&&(xe=yn[_r].metadata[ce].encoding,!Ie&&yn[_r].encoding&&(Ie=yn[_r].encoding),!Ie&&xe.codePages&&(Ie=xe.codePages[0]),typeof Ie=="string"&&(Ie=xe[Ie]),Ie)){for(Dt=!1,Je=[],hi=0,Nt=or.length;hi<Nt;hi++)(lr=Ie[or.charCodeAt(hi)])?Je.push(String.fromCharCode(lr)):Je.push(or[hi]),Je[hi].charCodeAt(0)>>8&&(Dt=!0);or=Je.join("")}for(hi=or.length;Dt===void 0&&hi!==0;)or.charCodeAt(hi-1)>>8&&(Dt=!0),hi--;if(!Dt)return or;for(Je=In.noBOM?[]:[254,255],hi=0,Nt=or.length;hi<Nt;hi++){if((Xr=(lr=or.charCodeAt(hi))>>8)>>8)throw new Error("Character at position "+hi+" of string '"+or+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Je.push(Xr),Je.push(lr-(Xr<<8))}return String.fromCharCode.apply(void 0,Je)},zr=gr.__private__.pdfEscape=gr.pdfEscape=function(jt,or){return un(jt,or).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ni=gr.__private__.beginPage=function(jt){oa[++ea]=[],Gi[ea]={objId:0,contentsObjId:0,userUnit:Number(Et),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(jt[0]),topRightY:Number(jt[1])}},li(ea),bi(oa[Br])},rn=function(or,In){var hi,Nt,ce;switch(He=In||He,typeof or=="string"&&(hi=vn(or.toLowerCase()),Array.isArray(hi)&&(Nt=hi[0],ce=hi[1])),Array.isArray(or)&&(Nt=or[0]*Lr,ce=or[1]*Lr),isNaN(Nt)&&(Nt=at[0],ce=at[1]),(Nt>14400||ce>14400)&&(d.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Nt=Math.min(14400,Nt),ce=Math.min(14400,ce)),at=[Nt,ce],He.substr(0,1)){case"l":ce>Nt&&(at=[ce,Nt]);break;case"p":Nt>ce&&(at=[ce,Nt])}ni(at),ss(Ao),Rn(hs),ds!==0&&Rn(ds+" J"),ks!==0&&Rn(ks+" j"),Wi.publish("addPage",{pageNumber:ea})},Kn=function(or){or>0&&or<=ea&&(oa.splice(or,1),Gi.splice(or,1),ea--,Br>ea&&(Br=ea),this.setPage(Br))},li=function(or){or>0&&or<=ea&&(Br=or)},ci=gr.__private__.getNumberOfPages=gr.getNumberOfPages=function(){return oa.length-1},si=function(or,In,hi){var Nt,ce=void 0;return hi=hi||{},or=or!==void 0?or:yn[_r].fontName,In=In!==void 0?In:yn[_r].fontStyle,Nt=or.toLowerCase(),qn[Nt]!==void 0&&qn[Nt][In]!==void 0?ce=qn[Nt][In]:qn[or]!==void 0&&qn[or][In]!==void 0?ce=qn[or][In]:hi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+or+"', '"+In+"'. Refer to getFontList() for available fonts."),ce||hi.noFallback||(ce=qn.times[In])==null&&(ce=qn.times.normal),ce},Ci=gr.__private__.putInfo=function(){var jt=ga(),or=function(Nt){return Nt};for(var In in Jr!==null&&(or=wa.encryptor(jt,0)),Rn("<<"),Rn("/Producer ("+zr(or("jsPDF "+z.version))+")"),_t)_t.hasOwnProperty(In)&&_t[In]&&Rn("/"+In.substr(0,1).toUpperCase()+In.substr(1)+" ("+zr(or(_t[In]))+")");Rn("/CreationDate ("+zr(or(cr))+")"),Rn(">>"),Rn("endobj")},mi=gr.__private__.putCatalog=function(jt){var or=(jt=jt||{}).rootDictionaryObjId||_a;switch(ga(),Rn("<<"),Rn("/Type /Catalog"),Rn("/Pages "+or+" 0 R"),Ir||(Ir="fullwidth"),Ir){case"fullwidth":Rn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Rn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Rn("/OpenAction [3 0 R /Fit]");break;case"original":Rn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var In=""+Ir;In.substr(In.length-1)==="%"&&(Ir=parseInt(Ir)/100),typeof Ir=="number"&&Rn("/OpenAction [3 0 R /XYZ null null "+Ot(Ir)+"]")}switch(Wr||(Wr="continuous"),Wr){case"continuous":Rn("/PageLayout /OneColumn");break;case"single":Rn("/PageLayout /SinglePage");break;case"two":case"twoleft":Rn("/PageLayout /TwoColumnLeft");break;case"tworight":Rn("/PageLayout /TwoColumnRight")}pr&&Rn("/PageMode /"+pr),Wi.publish("putCatalog"),Rn(">>"),Rn("endobj")},yi=gr.__private__.putTrailer=function(){Rn("trailer"),Rn("<<"),Rn("/Size "+($n+1)),Rn("/Root "+$n+" 0 R"),Rn("/Info "+($n-1)+" 0 R"),Jr!==null&&Rn("/Encrypt "+wa.oid+" 0 R"),Rn("/ID [ <"+vr+"> <"+vr+"> ]"),Rn(">>")},Ni=gr.__private__.putHeader=function(){Rn("%PDF-"+Wn),Rn("%\xBA\xDF\xAC\xE0")},ia=gr.__private__.putXRef=function(){var jt="0000000000";Rn("xref"),Rn("0 "+($n+1)),Rn("0000000000 65535 f ");for(var or=1;or<=$n;or++)typeof oi[or]=="function"?Rn((jt+oi[or]()).slice(-10)+" 00000 n "):oi[or]!==void 0?Rn((jt+oi[or]).slice(-10)+" 00000 n "):Rn("0000000000 00000 n ")},Ki=gr.__private__.buildDocument=function(){ba(),bi(Ti),Wi.publish("buildDocument"),Ni(),To(),vt(),Ha(),Jr!==null&&os(),Ci(),mi();var jt=Ri;return ia(),yi(),Rn("startxref"),Rn(""+jt),Rn("%%EOF"),bi(oa[Br]),Ti.join(`
`)},fa=gr.__private__.getBlob=function(jt){return new Blob([ha(jt)],{type:"application/pdf"})},Ya=gr.output=gr.__private__.output=Qn(function(jt,or){switch(typeof(or=or||{})=="string"?or={filename:or}:or.filename=or.filename||"generated.pdf",jt){case void 0:return Ki();case"save":gr.save(or.filename);break;case"arraybuffer":return ha(Ki());case"blob":return fa(Ki());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(Ki()))||void 0;d.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var In="",hi=Ki();try{In=s(hi)}catch(Nn){In=s(unescape(encodeURIComponent(hi)))}return"data:application/pdf;filename="+or.filename+";base64,"+In;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Nt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';or.pdfObjectUrl&&(Nt=or.pdfObjectUrl,ce="");var xe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Nt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(or)+");</script></body></html>",Ie=m.open();return Ie!==null&&Ie.document.write(xe),Ie}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(or.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+or.filename+'" width="500px" height="400px" /></body></html>',Dt=m.open();if(Dt!==null){Dt.document.write(Je);var lr=this;Dt.document.documentElement.querySelector("#pdfViewer").onload=function(){Dt.document.title=or.filename,Dt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(lr.output("bloburl"))}}return Dt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(m)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Xr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",or)+'"></iframe></body></html>',hn=m.open();if(hn!==null&&(hn.document.write(Xr),hn.document.title=or.filename),hn||typeof safari=="undefined")return hn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",or);default:return null}}),xa=function(or){return Array.isArray(Hi)===!0&&Hi.indexOf(or)>-1};switch(Ye){case"pt":Lr=1;break;case"mm":Lr=72/25.4;break;case"cm":Lr=72/2.54;break;case"in":Lr=72;break;case"px":Lr=xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":Lr=12;break;case"ex":Lr=6;break;default:if(typeof Ye!="number")throw new Error("Invalid unit: "+Ye);Lr=Ye}var wa=null;di(),Rr();var Da=function(or){return Jr!==null?wa.encryptor(or,0):function(In){return In}},ja=gr.__private__.getPageInfo=gr.getPageInfo=function(jt){if(isNaN(jt)||jt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gi[jt].objId,pageNumber:jt,pageContext:Gi[jt]}},ko=gr.__private__.getPageInfoByObjId=function(jt){if(isNaN(jt)||jt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var or in Gi)if(Gi[or].objId===jt)break;return ja(or)},ro=gr.__private__.getCurrentPageInfo=gr.getCurrentPageInfo=function(){return{objId:Gi[Br].objId,pageNumber:Br,pageContext:Gi[Br]}};gr.addPage=function(){return rn.apply(this,arguments),this},gr.setPage=function(){return li.apply(this,arguments),bi.call(this,oa[Br]),this},gr.insertPage=function(jt){return this.addPage(),this.movePage(Br,jt),this},gr.movePage=function(jt,or){var In,hi;if(jt>or){In=oa[jt],hi=Gi[jt];for(var Nt=jt;Nt>or;Nt--)oa[Nt]=oa[Nt-1],Gi[Nt]=Gi[Nt-1];oa[or]=In,Gi[or]=hi,this.setPage(or)}else if(jt<or){In=oa[jt],hi=Gi[jt];for(var ce=jt;ce<or;ce++)oa[ce]=oa[ce+1],Gi[ce]=Gi[ce+1];oa[or]=In,Gi[or]=hi,this.setPage(or)}return this},gr.deletePage=function(){return Kn.apply(this,arguments),this},gr.__private__.text=gr.text=function(jt,or,In,hi,Nt){var ce,xe,Ie,Je,Dt,lr,Xr,hn,Nn,ui=(hi=hi||{}).scope||this;if(typeof jt=="number"&&typeof or=="number"&&(typeof In=="string"||Array.isArray(In))){var xi=In;In=or,or=jt,jt=xi}if(arguments[3]instanceof na==!1?(Ie=arguments[4],Je=arguments[5],x()(Xr=arguments[3])==="object"&&Xr!==null||(typeof Ie=="string"&&(Je=Ie,Ie=null),typeof Xr=="string"&&(Je=Xr,Xr=null),typeof Xr=="number"&&(Ie=Xr,Xr=null),hi={flags:Xr,angle:Ie,align:Je})):(Gn("The transform parameter of text() with a Matrix value"),Nn=Nt),isNaN(or)||isNaN(In)||jt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(jt.length===0)return ui;var Ai="",Yi=!1,sa=typeof hi.lineHeightFactor=="number"?hi.lineHeightFactor:co,Ua=ui.internal.scaleFactor;function no(ol){return ol=ol.split(" ").join(Array(hi.TabLen||9).join(" ")),zr(ol,Xr)}function Wo(ol){for(var Ys,sl=ol.concat(),nl=[],xl=sl.length;xl--;)typeof(Ys=sl.shift())=="string"?nl.push(Ys):Array.isArray(ol)&&(Ys.length===1||Ys[1]===void 0&&Ys[2]===void 0)?nl.push(Ys[0]):nl.push([Ys[0],Ys[1],Ys[2]]);return nl}function Zo(ol,Ys){var sl;if(typeof ol=="string")sl=Ys(ol)[0];else if(Array.isArray(ol)){for(var nl,xl,Ml=ol.concat(),Wl=[],au=Ml.length;au--;)typeof(nl=Ml.shift())=="string"?Wl.push(Ys(nl)[0]):Array.isArray(nl)&&typeof nl[0]=="string"&&(xl=Ys(nl[0],nl[1],nl[2]),Wl.push([xl[0],xl[1],xl[2]]));sl=Wl}return sl}var Bo=!1,Es=!0;if(typeof jt=="string")Bo=!0;else if(Array.isArray(jt)){var As=jt.concat();xe=[];for(var $o,Do=As.length;Do--;)(typeof($o=As.shift())!="string"||Array.isArray($o)&&typeof $o[0]!="string")&&(Es=!1);Bo=Es}if(Bo===!1)throw new Error('Type of text must be string or Array. "'+jt+'" is not recognized.');typeof jt=="string"&&(jt=jt.match(/[\r?\n]/)?jt.split(/\r\n|\r|\n/g):[jt]);var vo=ra/ui.internal.scaleFactor,Ms=vo*(sa-1);switch(hi.baseline){case"bottom":In-=Ms;break;case"top":In+=vo-Ms;break;case"hanging":In+=vo-2*Ms;break;case"middle":In+=vo/2-Ms}if((lr=hi.maxWidth||0)>0&&(typeof jt=="string"?jt=ui.splitTextToSize(jt,lr):Object.prototype.toString.call(jt)==="[object Array]"&&(jt=jt.reduce(function(ol,Ys){return ol.concat(ui.splitTextToSize(Ys,lr))},[]))),ce={text:jt,x:or,y:In,options:hi,mutex:{pdfEscape:zr,activeFontKey:_r,fonts:yn,activeFontSize:ra}},Wi.publish("preProcessText",ce),jt=ce.text,Ie=(hi=ce.options).angle,Nn instanceof na==!1&&Ie&&typeof Ie=="number"){Ie*=Math.PI/180,hi.rotationDirection===0&&(Ie=-Ie),ei===$r.ADVANCED&&(Ie=-Ie);var rl=Math.cos(Ie),gs=Math.sin(Ie);Nn=new na(rl,gs,-gs,rl,0,0)}else Ie&&Ie instanceof na&&(Nn=Ie);ei!==$r.ADVANCED||Nn||(Nn=La),(Dt=hi.charSpace||el)!==void 0&&(Ai+=Sn(Ut(Dt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(hn=hi.horizontalScale)!==void 0&&(Ai+=Sn(100*hn)+` Tz
`),hi.lang;var Ra=-1,dl=hi.renderingMode!==void 0?hi.renderingMode:hi.stroke,fl=ui.internal.getCurrentPageInfo().pageContext;switch(dl){case 0:case!1:case"fill":Ra=0;break;case 1:case!0:case"stroke":Ra=1;break;case 2:case"fillThenStroke":Ra=2;break;case 3:case"invisible":Ra=3;break;case 4:case"fillAndAddForClipping":Ra=4;break;case 5:case"strokeAndAddPathForClipping":Ra=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ra=6;break;case 7:case"addToPathForClipping":Ra=7}var Us=fl.usedRenderingMode!==void 0?fl.usedRenderingMode:-1;Ra!==-1?Ai+=Ra+` Tr
`:Us!==-1&&(Ai+=`0 Tr
`),Ra!==-1&&(fl.usedRenderingMode=Ra),Je=hi.align||"left";var Os,Xs=ra*sa,Ql=ui.internal.pageSize.getWidth(),Ul=yn[_r];Dt=hi.charSpace||el,lr=hi.maxWidth||0,Xr=Object.assign({autoencode:!0,noBOM:!0},hi.flags);var wl=[];if(Object.prototype.toString.call(jt)==="[object Array]"){var Ts;xe=Wo(jt),Je!=="left"&&(Os=xe.map(function(ol){return ui.getStringUnitWidth(ol,{font:Ul,charSpace:Dt,fontSize:ra,doKerning:!1})*ra/Ua}));var Ws,Tl=0;if(Je==="right"){or-=Os[0],jt=[],Do=xe.length;for(var pl=0;pl<Do;pl++)pl===0?(Ws=Eo(or),Ts=zo(In)):(Ws=Ut(Tl-Os[pl]),Ts=-Xs),jt.push([xe[pl],Ws,Ts]),Tl=Os[pl]}else if(Je==="center"){or-=Os[0]/2,jt=[],Do=xe.length;for(var jo=0;jo<Do;jo++)jo===0?(Ws=Eo(or),Ts=zo(In)):(Ws=Ut((Tl-Os[jo])/2),Ts=-Xs),jt.push([xe[jo],Ws,Ts]),Tl=Os[jo]}else if(Je==="left"){jt=[],Do=xe.length;for(var yo=0;yo<Do;yo++)jt.push(xe[yo])}else{if(Je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');jt=[],Do=xe.length,lr=lr!==0?lr:Ql;for(var qo=0;qo<Do;qo++)Ts=qo===0?zo(In):-Xs,Ws=qo===0?Eo(or):0,qo<Do-1?wl.push(Sn(Ut((lr-Os[qo])/(xe[qo].split(" ").length-1)))):wl.push(0),jt.push([xe[qo],Ws,Ts])}}var ps=typeof hi.R2L=="boolean"?hi.R2L:Tn;ps===!0&&(jt=Zo(jt,function(ol,Ys,sl){return[ol.split("").reverse().join(""),Ys,sl]})),ce={text:jt,x:or,y:In,options:hi,mutex:{pdfEscape:zr,activeFontKey:_r,fonts:yn,activeFontSize:ra}},Wi.publish("postProcessText",ce),jt=ce.text,Yi=ce.mutex.isHex||!1;var Is=yn[_r].encoding;Is!=="WinAnsiEncoding"&&Is!=="StandardEncoding"||(jt=Zo(jt,function(ol,Ys,sl){return[no(ol),Ys,sl]})),xe=Wo(jt),jt=[];for(var es,Ls,Ps,ml=0,Rl=1,_l=Array.isArray(xe[0])?Rl:ml,Bl="",jl=function(Ys,sl,nl){var xl="";return nl instanceof na?(nl=typeof hi.angle=="number"?Pa(nl,new na(1,0,0,1,Ys,sl)):Pa(new na(1,0,0,1,Ys,sl),nl),ei===$r.ADVANCED&&(nl=Pa(new na(1,0,0,-1,0,0),nl)),xl=nl.join(" ")+` Tm
`):xl=Sn(Ys)+" "+Sn(sl)+` Td
`,xl},kl=0;kl<xe.length;kl++){switch(Bl="",_l){case Rl:Ps=(Yi?"<":"(")+xe[kl][0]+(Yi?">":")"),es=parseFloat(xe[kl][1]),Ls=parseFloat(xe[kl][2]);break;case ml:Ps=(Yi?"<":"(")+xe[kl]+(Yi?">":")"),es=Eo(or),Ls=zo(In)}wl!==void 0&&wl[kl]!==void 0&&(Bl=wl[kl]+` Tw
`),kl===0?jt.push(Bl+jl(es,Ls,Nn)+Ps):_l===ml?jt.push(Bl+Ps):_l===Rl&&jt.push(Bl+jl(es,Ls,Nn)+Ps)}jt=_l===ml?jt.join(` Tj
T* `):jt.join(` Tj
`),jt+=` Tj
`;var Xl=`BT
/`;return Xl+=_r+" "+ra+` Tf
`,Xl+=Sn(ra*sa)+` TL
`,Xl+=Ns+`
`,Xl+=Ai,Xl+=jt,Rn(Xl+="ET"),dn[_r]=!0,ui};var pa=gr.__private__.clip=gr.clip=function(jt){return Rn(jt==="evenodd"?"W*":"W"),this};gr.clipEvenOdd=function(){return pa("evenodd")},gr.__private__.discardPath=gr.discardPath=function(){return Rn("n"),this};var Ea=gr.__private__.isValidStyle=function(jt){var or=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(jt)!==-1&&(or=!0),or};gr.__private__.setDefaultPathOperation=gr.setDefaultPathOperation=function(jt){return Ea(jt)&&(fr=jt),this};var Fa=gr.__private__.getStyle=gr.getStyle=function(jt){var or=fr;switch(jt){case"D":case"S":or="S";break;case"F":or="f";break;case"FD":case"DF":or="B";break;case"f":case"f*":case"B":case"B*":or=jt}return or},Ka=gr.close=function(){return Rn("h"),this};gr.stroke=function(){return Rn("S"),this},gr.fill=function(jt){return lo("f",jt),this},gr.fillEvenOdd=function(jt){return lo("f*",jt),this},gr.fillStroke=function(jt){return lo("B",jt),this},gr.fillStrokeEvenOdd=function(jt){return lo("B*",jt),this};var lo=function(or,In){x()(In)==="object"?Lo(In,or):Rn(or)},so=function(or){or===null||ei===$r.ADVANCED&&or===void 0||(or=Fa(or),Rn(or))};function Co(jt,or,In,hi,Nt){var ce=new K(or||this.boundingBox,In||this.xStep,hi||this.yStep,this.gState,Nt||this.matrix);ce.stream=this.stream;var xe=jt+"$$"+this.cloneIndex+++"$$";return va(xe,ce),ce}var Lo=function(or,In){var hi=Fi[or.key],Nt=pi[hi];if(Nt instanceof j)Rn("q"),Rn(is(In)),Nt.gState&&gr.setGState(Nt.gState),Rn(or.matrix.toString()+" cm"),Rn("/"+hi+" sh"),Rn("Q");else if(Nt instanceof K){var ce=new na(1,0,0,-1,0,Ds());or.matrix&&(ce=ce.multiply(or.matrix||La),hi=Co.call(Nt,or.key,or.boundingBox,or.xStep,or.yStep,ce).id),Rn("q"),Rn("/Pattern cs"),Rn("/"+hi+" scn"),Nt.gState&&gr.setGState(Nt.gState),Rn(In),Rn("Q")}},is=function(or){switch(or){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=gr.moveTo=function(jt,or){return Rn(Sn(Ut(jt))+" "+Sn(Lt(or))+" m"),this},Rs=gr.lineTo=function(jt,or){return Rn(Sn(Ut(jt))+" "+Sn(Lt(or))+" l"),this},Ko=gr.curveTo=function(jt,or,In,hi,Nt,ce){return Rn([Sn(Ut(jt)),Sn(Lt(or)),Sn(Ut(In)),Sn(Lt(hi)),Sn(Ut(Nt)),Sn(Lt(ce)),"c"].join(" ")),this};gr.__private__.line=gr.line=function(jt,or,In,hi,Nt){if(isNaN(jt)||isNaN(or)||isNaN(In)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.line");return ei===$r.COMPAT?this.lines([[In-jt,hi-or]],jt,or,[1,1],Nt||"S"):this.lines([[In-jt,hi-or]],jt,or,[1,1]).stroke()},gr.__private__.lines=gr.lines=function(jt,or,In,hi,Nt,ce){var xe,Ie,Je,Dt,lr,Xr,hn,Nn,ui,xi,Ai,Yi;if(typeof jt=="number"&&(Yi=In,In=or,or=jt,jt=Yi),hi=hi||[1,1],ce=ce||!1,isNaN(or)||isNaN(In)||!Array.isArray(jt)||!Array.isArray(hi)||!Ea(Nt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(or,In),xe=hi[0],Ie=hi[1],Dt=jt.length,xi=or,Ai=In,Je=0;Je<Dt;Je++)(lr=jt[Je]).length===2?(xi=lr[0]*xe+xi,Ai=lr[1]*Ie+Ai,Rs(xi,Ai)):(Xr=lr[0]*xe+xi,hn=lr[1]*Ie+Ai,Nn=lr[2]*xe+xi,ui=lr[3]*Ie+Ai,xi=lr[4]*xe+xi,Ai=lr[5]*Ie+Ai,Ko(Xr,hn,Nn,ui,xi,Ai));return ce&&Ka(),so(Nt),this},gr.path=function(jt){for(var or=0;or<jt.length;or++){var In=jt[or],hi=In.c;switch(In.op){case"m":cs(hi[0],hi[1]);break;case"l":Rs(hi[0],hi[1]);break;case"c":Ko.apply(this,hi);break;case"h":Ka()}}return this},gr.__private__.rect=gr.rect=function(jt,or,In,hi,Nt){if(isNaN(jt)||isNaN(or)||isNaN(In)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.rect");return ei===$r.COMPAT&&(hi=-hi),Rn([Sn(Ut(jt)),Sn(Lt(or)),Sn(Ut(In)),Sn(Ut(hi)),"re"].join(" ")),so(Nt),this},gr.__private__.triangle=gr.triangle=function(jt,or,In,hi,Nt,ce,xe){if(isNaN(jt)||isNaN(or)||isNaN(In)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[In-jt,hi-or],[Nt-In,ce-hi],[jt-Nt,or-ce]],jt,or,[1,1],xe,!0),this},gr.__private__.roundedRect=gr.roundedRect=function(jt,or,In,hi,Nt,ce,xe){if(isNaN(jt)||isNaN(or)||isNaN(In)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Ea(xe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ie=4/3*(Math.SQRT2-1);return Nt=Math.min(Nt,.5*In),ce=Math.min(ce,.5*hi),this.lines([[In-2*Nt,0],[Nt*Ie,0,Nt,ce-ce*Ie,Nt,ce],[0,hi-2*ce],[0,ce*Ie,-Nt*Ie,ce,-Nt,ce],[2*Nt-In,0],[-Nt*Ie,0,-Nt,-ce*Ie,-Nt,-ce],[0,2*ce-hi],[0,-ce*Ie,Nt*Ie,-ce,Nt,-ce]],jt+Nt,or,[1,1],xe,!0),this},gr.__private__.ellipse=gr.ellipse=function(jt,or,In,hi,Nt){if(isNaN(jt)||isNaN(or)||isNaN(In)||isNaN(hi)||!Ea(Nt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*In,xe=4/3*(Math.SQRT2-1)*hi;return cs(jt+In,or),Ko(jt+In,or-xe,jt+ce,or-hi,jt,or-hi),Ko(jt-ce,or-hi,jt-In,or-xe,jt-In,or),Ko(jt-In,or+xe,jt-ce,or+hi,jt,or+hi),Ko(jt+ce,or+hi,jt+In,or+xe,jt+In,or),so(Nt),this},gr.__private__.circle=gr.circle=function(jt,or,In,hi){if(isNaN(jt)||isNaN(or)||isNaN(In)||!Ea(hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(jt,or,In,In,hi)},gr.setFont=function(jt,or,In){return In&&(or=Zr(or,In)),_r=si(jt,or,{disableWarning:!1}),this};var as=gr.__private__.getFont=gr.getFont=function(){return yn[si.apply(gr,arguments)]};gr.__private__.getFontList=gr.getFontList=function(){var jt,or,In={};for(jt in qn)if(qn.hasOwnProperty(jt))for(or in In[jt]=[],qn[jt])qn[jt].hasOwnProperty(or)&&In[jt].push(or);return In},gr.addFont=function(jt,or,In,hi,Nt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Nt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(In=Zr(In,hi)),Nt=Nt||"Identity-H",qr.call(this,jt,or,In,Nt)};var co,Ao=ot.lineWidth||.200025,$a=gr.__private__.getLineWidth=gr.getLineWidth=function(){return Ao},ss=gr.__private__.setLineWidth=gr.setLineWidth=function(jt){return Ao=jt,Rn(Sn(Ut(jt))+" w"),this};gr.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(jt,or){if(jt=jt||[],or=or||0,isNaN(or)||!Array.isArray(jt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return jt=jt.map(function(In){return Sn(Ut(In))}).join(" "),or=Sn(Ut(or)),Rn("["+jt+"] "+or+" d"),this};var _s=gr.__private__.getLineHeight=gr.getLineHeight=function(){return ra*co};gr.__private__.getLineHeight=gr.getLineHeight=function(){return ra*co};var Fo=gr.__private__.setLineHeightFactor=gr.setLineHeightFactor=function(jt){return typeof(jt=jt||1.15)=="number"&&(co=jt),this},il=gr.__private__.getLineHeightFactor=gr.getLineHeightFactor=function(){return co};Fo(ot.lineHeight);var Eo=gr.__private__.getHorizontalCoordinate=function(jt){return Ut(jt)},zo=gr.__private__.getVerticalCoordinate=function(jt){return ei===$r.ADVANCED?jt:Gi[Br].mediaBox.topRightY-Gi[Br].mediaBox.bottomLeftY-Ut(jt)},Fs=gr.__private__.getHorizontalCoordinateString=gr.getHorizontalCoordinateString=function(jt){return Sn(Eo(jt))},ms=gr.__private__.getVerticalCoordinateString=gr.getVerticalCoordinateString=function(jt){return Sn(zo(jt))},hs=ot.strokeColor||"0 G";gr.__private__.getStrokeColor=gr.getDrawColor=function(){return Bi(hs)},gr.__private__.setStrokeColor=gr.setDrawColor=function(jt,or,In,hi){return hs=io({ch1:jt,ch2:or,ch3:In,ch4:hi,pdfColorType:"draw",precision:2}),Rn(hs),this};var An=ot.fillColor||"0 g";gr.__private__.getFillColor=gr.getFillColor=function(){return Bi(An)},gr.__private__.setFillColor=gr.setFillColor=function(jt,or,In,hi){return An=io({ch1:jt,ch2:or,ch3:In,ch4:hi,pdfColorType:"fill",precision:2}),Rn(An),this};var Ns=ot.textColor||"0 g",Ll=gr.__private__.getTextColor=gr.getTextColor=function(){return Bi(Ns)};gr.__private__.setTextColor=gr.setTextColor=function(jt,or,In,hi){return Ns=io({ch1:jt,ch2:or,ch3:In,ch4:hi,pdfColorType:"text",precision:3}),this};var el=ot.charSpace,Gs=gr.__private__.getCharSpace=gr.getCharSpace=function(){return parseFloat(el||0)};gr.__private__.setCharSpace=gr.setCharSpace=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return el=jt,this};var ds=0;gr.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},gr.__private__.setLineCap=gr.setLineCap=function(jt){var or=gr.CapJoinStyles[jt];if(or===void 0)throw new Error("Line cap style of '"+jt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ds=or,Rn(or+" J"),this};var ks=0;gr.__private__.setLineJoin=gr.setLineJoin=function(jt){var or=gr.CapJoinStyles[jt];if(or===void 0)throw new Error("Line join style of '"+jt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ks=or,Rn(or+" j"),this},gr.__private__.setLineMiterLimit=gr.__private__.setMiterLimit=gr.setLineMiterLimit=gr.setMiterLimit=function(jt){if(jt=jt||0,isNaN(jt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Rn(Sn(Ut(jt))+" M"),this},gr.GState=X,gr.setGState=function(jt){(jt=typeof jt=="string"?wi[Oi[jt]]:Qs(null,jt)).equals(zi)||(Rn("/"+jt.id+" gs"),zi=jt)};var Qs=function(or,In){if(!or||!Oi[or]){var hi=!1;for(var Nt in wi)if(wi.hasOwnProperty(Nt)&&wi[Nt].equals(In)){hi=!0;break}if(hi)In=wi[Nt];else{var ce="GS"+(Object.keys(wi).length+1).toString(10);wi[ce]=In,In.id=ce}return or&&(Oi[or]=In.id),Wi.publish("addGState",In),In}};gr.addGState=function(jt,or){return Qs(jt,or),this},gr.saveGraphicsState=function(){return Rn("q"),Hn.push({key:_r,size:ra,color:Ns}),this},gr.restoreGraphicsState=function(){Rn("Q");var jt=Hn.pop();return _r=jt.key,ra=jt.size,Ns=jt.color,zi=null,this},gr.setCurrentTransformationMatrix=function(jt){return Rn(jt.toString()+" cm"),this},gr.comment=function(jt){return Rn("#"+jt),this};var tl=function(or,In){var hi=or||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hi},set:function(Ie){isNaN(Ie)||(hi=parseFloat(Ie))}});var Nt=In||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Nt},set:function(Ie){isNaN(Ie)||(Nt=parseFloat(Ie))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Ie){ce=Ie.toString()}}),this},xs=function(or,In,hi,Nt){tl.call(this,or,In),this.type="rect";var ce=hi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Je){isNaN(Je)||(ce=parseFloat(Je))}});var xe=Nt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return xe},set:function(Je){isNaN(Je)||(xe=parseFloat(Je))}}),this},Bs=function(){this.page=ea,this.currentPage=Br,this.pages=oa.slice(0),this.pagesContext=Gi.slice(0),this.x=en,this.y=bn,this.matrix=On,this.width=No(Br),this.height=Ds(Br),this.outputDestination=aa,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ea=this.page,Br=this.currentPage,Gi=this.pagesContext,oa=this.pages,en=this.x,bn=this.y,On=this.matrix,fs(Br,this.width),go(Br,this.height),aa=this.outputDestination};var al=function(or,In,hi,Nt,ce){Ca.push(new Bs),ea=Br=0,oa=[],en=or,bn=In,On=ce,ni([hi,Nt])},Js=function(or){if(ca[or])Ca.pop().restore();else{var In=new Bs,hi="Xo"+(Object.keys(Ji).length+1).toString(10);In.id=hi,ca[or]=hi,Ji[hi]=In,Wi.publish("addFormObject",In),Ca.pop().restore()}};for(var Vo in gr.beginFormObject=function(jt,or,In,hi,Nt){return al(jt,or,In,hi,Nt),this},gr.endFormObject=function(jt){return Js(jt),this},gr.doFormObject=function(jt,or){var In=Ji[ca[jt]];return Rn("q"),Rn(or.toString()+" cm"),Rn("/"+In.id+" Do"),Rn("Q"),this},gr.getFormObject=function(jt){var or=Ji[ca[jt]];return{x:or.x,y:or.y,width:or.width,height:or.height,matrix:or.matrix}},gr.save=function(jt,or){return jt=jt||"generated.pdf",(or=or||{}).returnPromise=or.returnPromise||!1,or.returnPromise===!1?(e(fa(Ki()),jt),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(In,hi){try{var Nt=e(fa(Ki()),jt);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),In(Nt)}catch(ce){hi(ce.message)}})},z.API)z.API.hasOwnProperty(Vo)&&(Vo==="events"&&z.API.events.length?function(jt,or){var In,hi,Nt;for(Nt=or.length-1;Nt!==-1;Nt--)In=or[Nt][0],hi=or[Nt][1],jt.subscribe.apply(jt,[In].concat(typeof hi=="function"?[hi]:hi))}(Wi,z.API.events):gr[Vo]=z.API[Vo]);var No=gr.getPageWidth=function(jt){return(Gi[jt=jt||Br].mediaBox.topRightX-Gi[jt].mediaBox.bottomLeftX)/Lr},fs=gr.setPageWidth=function(jt,or){Gi[jt].mediaBox.topRightX=or*Lr+Gi[jt].mediaBox.bottomLeftX},Ds=gr.getPageHeight=function(jt){return(Gi[jt=jt||Br].mediaBox.topRightY-Gi[jt].mediaBox.bottomLeftY)/Lr},go=gr.setPageHeight=function(jt,or){Gi[jt].mediaBox.topRightY=or*Lr+Gi[jt].mediaBox.bottomLeftY};return gr.internal={pdfEscape:zr,getStyle:Fa,getFont:as,getFontSize:Sr,getCharSpace:Gs,getTextColor:Ll,getLineHeight:_s,getLineHeightFactor:il,getLineWidth:$a,write:ji,getHorizontalCoordinate:Eo,getVerticalCoordinate:zo,getCoordinateString:Fs,getVerticalCoordinateString:ms,collections:{},newObject:ga,newAdditionalObject:Xa,newObjectDeferred:Oa,newObjectDeferredBegin:Aa,getFilters:oo,putStream:Qo,events:Wi,scaleFactor:Lr,pageSize:{getWidth:function(){return No(Br)},setWidth:function(or){fs(Br,or)},getHeight:function(){return Ds(Br)},setHeight:function(or){go(Br,or)}},encryptionOptions:Jr,encryption:wa,getEncryptor:Da,output:Ya,getNumberOfPages:ci,pages:oa,out:Rn,f2:Ot,f3:Rt,getPageInfo:ja,getPageInfoByObjId:ko,getCurrentPageInfo:ro,getPDFVersion:kr,Point:tl,Rectangle:xs,Matrix:na,hasHotfix:xa},Object.defineProperty(gr.internal.pageSize,"width",{get:function(){return No(Br)},set:function(or){fs(Br,or)},enumerable:!0,configurable:!0}),Object.defineProperty(gr.internal.pageSize,"height",{get:function(){return Ds(Br)},set:function(or){go(Br,or)},enumerable:!0,configurable:!0}),Gr.call(gr,ta),_r="F1",rn(at,He),Wi.publish("initialized"),gr}M.prototype.lsbFirstWord=function(ot){return String.fromCharCode(ot>>0&255,ot>>8&255,ot>>16&255,ot>>24&255)},M.prototype.toHexString=function(ot){return ot.split("").map(function(Ne){return("0"+(255&Ne.charCodeAt(0)).toString(16)).slice(-2)}).join("")},M.prototype.hexToBytes=function(ot){for(var Ne=[],He=0;He<ot.length;He+=2)Ne.push(String.fromCharCode(parseInt(ot.substr(He,2),16)));return Ne.join("")},M.prototype.processOwnerPassword=function(ot,Ne){return I(T(Ne).substr(0,5),ot)},M.prototype.encryptor=function(ot,Ne){var He=T(this.encryptionKey+String.fromCharCode(255&ot,ot>>8&255,ot>>16&255,255&Ne,Ne>>8&255)).substr(0,10);return function(Ye){return I(He,Ye)}},X.prototype.equals=function(ot){var Ne,He="id,objectNumber,equals";if(!ot||x()(ot)!==x()(this))return!1;var Ye=0;for(Ne in this)if(!(He.indexOf(Ne)>=0)){if(this.hasOwnProperty(Ne)&&!ot.hasOwnProperty(Ne))return!1;if(this[Ne]!==ot[Ne])return!1;Ye++}for(Ne in ot)ot.hasOwnProperty(Ne)&&He.indexOf(Ne)<0&&Ye--;return Ye===0},z.API={events:[]},z.version="2.5.1";var V=z.API,Q=1,G=function(Ne){return Ne.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ee=function(Ne){return Ne.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},se=function(Ne){return Ne.toFixed(2)},ye=function(Ne){return Ne.toFixed(5)};V.__acroform__={};var he=function(Ne,He){Ne.prototype=Object.create(He.prototype),Ne.prototype.constructor=Ne},ke=function(Ne){return Ne*Q},Pe=function(Ne){var He=new _e,Ye=te.internal.getHeight(Ne)||0,at=te.internal.getWidth(Ne)||0;return He.BBox=[0,0,Number(se(at)),Number(se(Ye))],He},Ue=V.__acroform__.setBit=function(ot,Ne){if(ot=ot||0,Ne=Ne||0,isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return ot|=1<<Ne},$e=V.__acroform__.clearBit=function(ot,Ne){if(ot=ot||0,Ne=Ne||0,isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return ot&=~(1<<Ne)},Ge=V.__acroform__.getBit=function(ot,Ne){if(isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(ot&1<<Ne)==0?0:1},ht=V.__acroform__.getBitForPdf=function(ot,Ne){if(isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ge(ot,Ne-1)},Fe=V.__acroform__.setBitForPdf=function(ot,Ne){if(isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ue(ot,Ne-1)},oe=V.__acroform__.clearBitForPdf=function(ot,Ne){if(isNaN(ot)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return $e(ot,Ne-1)},rt=V.__acroform__.calculateCoordinates=function(ot,Ne){var He=Ne.internal.getHorizontalCoordinate,Ye=Ne.internal.getVerticalCoordinate,at=ot[0],qe=ot[1],lt=ot[2],Et=ot[3],At={};return At.lowerLeft_X=He(at)||0,At.lowerLeft_Y=Ye(qe+Et)||0,At.upperRight_X=He(at+lt)||0,At.upperRight_Y=Ye(qe)||0,[Number(se(At.lowerLeft_X)),Number(se(At.lowerLeft_Y)),Number(se(At.upperRight_X)),Number(se(At.upperRight_Y))]},fe=function(Ne){if(Ne.appearanceStreamContent)return Ne.appearanceStreamContent;if(Ne.V||Ne.DV){var He=[],Ye=Ne._V||Ne.DV,at=J(Ne,Ye),qe=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id;He.push("/Tx BMC"),He.push("q"),He.push("BT"),He.push(Ne.scope.__private__.encodeColorString(Ne.color)),He.push("/"+qe+" "+se(at.fontSize)+" Tf"),He.push("1 0 0 1 0 0 Tm"),He.push(at.text),He.push("ET"),He.push("Q"),He.push("EMC");var lt=Pe(Ne);return lt.scope=Ne.scope,lt.stream=He.join(`
`),lt}},J=function(Ne,He){var Ye=Ne.fontSize===0?Ne.maxFontSize:Ne.fontSize,at={text:"",fontSize:""},qe=(He=(He=He.substr(0,1)=="("?He.substr(1):He).substr(He.length-1)==")"?He.substr(0,He.length-1):He).split(" ");qe=Ne.multiline?qe.map(function(Ut){return Ut.split(`
`)}):qe.map(function(Ut){return[Ut]});var lt=Ye,Et=te.internal.getHeight(Ne)||0;Et=Et<0?-Et:Et;var At=te.internal.getWidth(Ne)||0;At=At<0?-At:At;var fr=function(Kt,Lt,cr){if(Kt+1<qe.length){var vr=Lt+" "+qe[Kt+1][0];return Y(vr,Ne,cr).width<=At-4}return!1};lt++;e:for(;lt>0;){He="",lt--;var Jr,Vr,dn=Y("3",Ne,lt).height,gr=Ne.multiline?Et-lt:(Et-dn)/2,Wn=gr+=2,kr=0,Fn=0,vn=0;if(lt<=0){He=`(...) Tj
`,He+="% Width of Text: "+Y(He,Ne,lt=12).width+", FieldWidth:"+At+`
`;break}for(var $r="",ei=0,fi=0;fi<qe.length;fi++)if(qe.hasOwnProperty(fi)){var Pi=!1;if(qe[fi].length!==1&&vn!==qe[fi].length-1){if((dn+2)*(ei+2)+2>Et)continue e;$r+=qe[fi][vn],Pi=!0,Fn=fi,fi--}else{$r=($r+=qe[fi][vn]+" ").substr($r.length-1)==" "?$r.substr(0,$r.length-1):$r;var Zr=parseInt(fi),Sn=fr(Zr,$r,lt),Gn=fi>=qe.length-1;if(Sn&&!Gn){$r+=" ",vn=0;continue}if(Sn||Gn){if(Gn)Fn=Zr;else if(Ne.multiline&&(dn+2)*(ei+2)+2>Et)continue e}else{if(!Ne.multiline)continue e;if((dn+2)*(ei+2)+2>Et)continue e;Fn=Zr}}for(var Wt="",Ot=kr;Ot<=Fn;Ot++){var Rt=qe[Ot];if(Ne.multiline){if(Ot===Fn){Wt+=Rt[vn]+" ",vn=(vn+1)%Rt.length;continue}if(Ot===kr){Wt+=Rt[Rt.length-1]+" ";continue}}Wt+=Rt[0]+" "}switch(Wt=Wt.substr(Wt.length-1)==" "?Wt.substr(0,Wt.length-1):Wt,Vr=Y(Wt,Ne,lt).width,Ne.textAlign){case"right":Jr=At-Vr-2;break;case"center":Jr=(At-Vr)/2;break;case"left":default:Jr=2}He+=se(Jr)+" "+se(Wn)+` Td
`,He+="("+G(Wt)+`) Tj
`,He+=-se(Jr)+` 0 Td
`,Wn=-(lt+2),Vr=0,kr=Pi?Fn:Fn+1,ei++,$r=""}break}return at.text=He,at.fontSize=lt,at},Y=function(Ne,He,Ye){var at=He.scope.internal.getFont(He.fontName,He.fontStyle),qe=He.scope.getStringUnitWidth(Ne,{font:at,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye);return{height:He.scope.getStringUnitWidth("3",{font:at,fontSize:parseFloat(Ye),charSpace:0})*parseFloat(Ye)*1.5,width:qe}},$={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},de=function(Ne,He){var Ye={type:"reference",object:Ne};He.internal.getPageInfo(Ne.page).pageContext.annotations.find(function(at){return at.type===Ye.type&&at.object===Ye.object})===void 0&&He.internal.getPageInfo(Ne.page).pageContext.annotations.push(Ye)},we=function(Ne,He){for(var Ye in Ne)if(Ne.hasOwnProperty(Ye)){var at=Ye,qe=Ne[Ye];He.internal.newObjectDeferredBegin(qe.objId,!0),x()(qe)==="object"&&typeof qe.putStream=="function"&&qe.putStream(),delete Ne[at]}},Ce=function(Ne,He){if(He.scope=Ne,Ne.internal!==void 0&&(Ne.internal.acroformPlugin===void 0||Ne.internal.acroformPlugin.isInitialized===!1)){if(gt.FieldNum=0,Ne.internal.acroformPlugin=JSON.parse(JSON.stringify($)),Ne.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Ne.internal.scaleFactor,Ne.internal.acroformPlugin.acroFormDictionaryRoot=new tt,Ne.internal.acroformPlugin.acroFormDictionaryRoot.scope=Ne,Ne.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Ne.internal.events.subscribe("postPutResources",function(){!function(Ye){Ye.internal.events.unsubscribe(Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ye.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ye.internal.acroformPlugin.printedOut=!0}(Ne)}),Ne.internal.events.subscribe("buildDocument",function(){!function(Ye){Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var at=Ye.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var qe in at)if(at.hasOwnProperty(qe)){var lt=at[qe];lt.objId=void 0,lt.hasAnnotation&&de(lt,Ye)}}(Ne)}),Ne.internal.events.subscribe("putCatalog",function(){!function(Ye){if(Ye.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ye.internal.write("/AcroForm "+Ye.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Ne)}),Ne.internal.events.subscribe("postPutPages",function(Ye){!function(at,qe){var lt=!at;for(var Et in at||(qe.internal.newObjectDeferredBegin(qe.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),qe.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),at=at||qe.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(at.hasOwnProperty(Et)){var At=at[Et],fr=[],Jr=At.Rect;if(At.Rect&&(At.Rect=rt(At.Rect,qe)),qe.internal.newObjectDeferredBegin(At.objId,!0),At.DA=te.createDefaultAppearanceStream(At),x()(At)==="object"&&typeof At.getKeyValueListForStream=="function"&&(fr=At.getKeyValueListForStream()),At.Rect=Jr,At.hasAppearanceStream&&!At.appearanceStreamContent){var Vr=fe(At);fr.push({key:"AP",value:"<</N "+Vr+">>"}),qe.internal.acroformPlugin.xForms.push(Vr)}if(At.appearanceStreamContent){var dn="";for(var gr in At.appearanceStreamContent)if(At.appearanceStreamContent.hasOwnProperty(gr)){var Wn=At.appearanceStreamContent[gr];if(dn+="/"+gr+" ",dn+="<<",Object.keys(Wn).length>=1||Array.isArray(Wn)){for(var Et in Wn)if(Wn.hasOwnProperty(Et)){var kr=Wn[Et];typeof kr=="function"&&(kr=kr.call(qe,At)),dn+="/"+Et+" "+kr+" ",qe.internal.acroformPlugin.xForms.indexOf(kr)>=0||qe.internal.acroformPlugin.xForms.push(kr)}}else typeof(kr=Wn)=="function"&&(kr=kr.call(qe,At)),dn+="/"+Et+" "+kr,qe.internal.acroformPlugin.xForms.indexOf(kr)>=0||qe.internal.acroformPlugin.xForms.push(kr);dn+=">>"}fr.push({key:"AP",value:`<<
`+dn+">>"})}qe.internal.putStream({additionalKeyValues:fr,objectId:At.objId}),qe.internal.out("endobj")}lt&&we(qe.internal.acroformPlugin.xForms,qe)}(Ye,Ne)}),Ne.internal.acroformPlugin.isInitialized=!0}},Se=V.__acroform__.arrayToPdfArray=function(ot,Ne,He){var Ye=function(Et){return Et};if(Array.isArray(ot)){for(var at="[",qe=0;qe<ot.length;qe++)switch(qe!==0&&(at+=" "),x()(ot[qe])){case"boolean":case"number":case"object":at+=ot[qe].toString();break;case"string":ot[qe].substr(0,1)!=="/"?(Ne!==void 0&&He&&(Ye=He.internal.getEncryptor(Ne)),at+="("+G(Ye(ot[qe].toString()))+")"):at+=ot[qe].toString()}return at+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},le=function(Ne,He,Ye){var at=function(lt){return lt};return He!==void 0&&Ye&&(at=Ye.internal.getEncryptor(He)),(Ne=Ne||"").toString(),Ne="("+G(at(Ne))+")"},pe=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(He){this._objId=He}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};pe.prototype.toString=function(){return this.objId+" 0 R"},pe.prototype.putStream=function(){var ot=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:ot,objectId:this.objId}),this.scope.internal.out("endobj")},pe.prototype.getKeyValueListForStream=function(){var ot=[],Ne=Object.getOwnPropertyNames(this).filter(function(qe){return qe!="content"&&qe!="appearanceStreamContent"&&qe!="scope"&&qe!="objId"&&qe.substring(0,1)!="_"});for(var He in Ne)if(Object.getOwnPropertyDescriptor(this,Ne[He]).configurable===!1){var Ye=Ne[He],at=this[Ye];at&&(Array.isArray(at)?ot.push({key:Ye,value:Se(at,this.objId,this.scope)}):at instanceof pe?(at.scope=this.scope,ot.push({key:Ye,value:at.objId+" 0 R"})):typeof at!="function"&&ot.push({key:Ye,value:at}))}return ot};var _e=function(){pe.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Ne,He=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return He},set:function(at){He=at}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(at){Ne=at.trim()},get:function(){return Ne||null}})};he(_e,pe);var tt=function(){pe.call(this);var Ne,He=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return He.length>0?He:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return He}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Ne){var at=function(lt){return lt};return this.scope&&(at=this.scope.internal.getEncryptor(this.objId)),"("+G(at(Ne))+")"}},set:function(at){Ne=at}})};he(tt,pe);var gt=function ot(){pe.call(this);var Ne=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function($r){if(isNaN($r))throw new Error('Invalid value "'+$r+'" for attribute F supplied.');Ne=$r}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(Ne,3))},set:function($r){Boolean($r)===!0?this.F=Fe(Ne,3):this.F=oe(Ne,3)}});var He=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return He},set:function($r){if(isNaN($r))throw new Error('Invalid value "'+$r+'" for attribute Ff supplied.');He=$r}});var Ye=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ye.length!==0)return Ye},set:function($r){Ye=$r!==void 0?$r:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[0])?0:Ye[0]},set:function($r){Ye[0]=$r}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[1])?0:Ye[1]},set:function($r){Ye[1]=$r}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[2])?0:Ye[2]},set:function($r){Ye[2]=$r}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ye||isNaN(Ye[3])?0:Ye[3]},set:function($r){Ye[3]=$r}});var at="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return at},set:function($r){switch($r){case"/Btn":case"/Tx":case"/Ch":case"/Sig":at=$r;break;default:throw new Error('Invalid value "'+$r+'" for attribute FT supplied.')}}});var qe=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!qe||qe.length<1){if(this instanceof Mt)return;qe="FieldObject"+ot.FieldNum++}var $r=function(fi){return fi};return this.scope&&($r=this.scope.internal.getEncryptor(this.objId)),"("+G($r(qe))+")"},set:function($r){qe=$r.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return qe},set:function($r){qe=$r}});var lt="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return lt},set:function($r){lt=$r}});var Et="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Et},set:function($r){Et=$r}});var At=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return At},set:function($r){At=$r}});var fr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return fr===void 0?50/Q:fr},set:function($r){fr=$r}});var Jr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Jr},set:function($r){Jr=$r}});var Vr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Vr||this instanceof Mt||this instanceof Ve))return le(Vr,this.objId,this.scope)},set:function($r){$r=$r.toString(),Vr=$r}});var dn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(dn)return this instanceof Ht==!1?le(dn,this.objId,this.scope):dn},set:function($r){$r=$r.toString(),dn=this instanceof Ht==!1?$r.substr(0,1)==="("?ee($r.substr(1,$r.length-2)):ee($r):$r}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ht==!0?ee(dn.substr(1,dn.length-1)):dn},set:function($r){$r=$r.toString(),dn=this instanceof Ht==!0?"/"+$r:$r}});var gr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(gr)return gr},set:function($r){this.V=$r}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(gr)return this instanceof Ht==!1?le(gr,this.objId,this.scope):gr},set:function($r){$r=$r.toString(),gr=this instanceof Ht==!1?$r.substr(0,1)==="("?ee($r.substr(1,$r.length-2)):ee($r):$r}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ht==!0?ee(gr.substr(1,gr.length-1)):gr},set:function($r){$r=$r.toString(),gr=this instanceof Ht==!0?"/"+$r:$r}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Wn,kr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return kr},set:function($r){$r=Boolean($r),kr=$r}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Wn)return Wn},set:function($r){Wn=$r}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,1))},set:function($r){Boolean($r)===!0?this.Ff=Fe(this.Ff,1):this.Ff=oe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,2))},set:function($r){Boolean($r)===!0?this.Ff=Fe(this.Ff,2):this.Ff=oe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,3))},set:function($r){Boolean($r)===!0?this.Ff=Fe(this.Ff,3):this.Ff=oe(this.Ff,3)}});var Fn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Fn!==null)return Fn},set:function($r){if([0,1,2].indexOf($r)===-1)throw new Error('Invalid value "'+$r+'" for attribute Q supplied.');Fn=$r}}),Object.defineProperty(this,"textAlign",{get:function(){var $r;switch(Fn){case 0:default:$r="left";break;case 1:$r="center";break;case 2:$r="right"}return $r},configurable:!0,enumerable:!0,set:function($r){switch($r){case"right":case 2:Fn=2;break;case"center":case 1:Fn=1;break;case"left":case 0:default:Fn=0}}})};he(gt,pe);var ct=function(){gt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Ne=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(at){Ne=at}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(at){Ne=at}});var He=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Se(He,this.objId,this.scope)},set:function(at){var qe,lt;lt=[],typeof(qe=at)=="string"&&(lt=function(Et,At,fr){fr||(fr=1);for(var Jr,Vr=[];Jr=At.exec(Et);)Vr.push(Jr[fr]);return Vr}(qe,/\((.*?)\)/g)),He=lt}}),this.getOptions=function(){return He},this.setOptions=function(Ye){He=Ye,this.sort&&He.sort()},this.addOption=function(Ye){Ye=(Ye=Ye||"").toString(),He.push(Ye),this.sort&&He.sort()},this.removeOption=function(Ye,at){for(at=at||!1,Ye=(Ye=Ye||"").toString();He.indexOf(Ye)!==-1&&(He.splice(He.indexOf(Ye),1),at!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,18))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,18):this.Ff=oe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,19))},set:function(at){this.combo===!0&&(Boolean(at)===!0?this.Ff=Fe(this.Ff,19):this.Ff=oe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,20))},set:function(at){Boolean(at)===!0?(this.Ff=Fe(this.Ff,20),He.sort()):this.Ff=oe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,22))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,22):this.Ff=oe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,23))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,27))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,27):this.Ff=oe(this.Ff,27)}}),this.hasAppearanceStream=!1};he(ct,gt);var je=function(){ct.call(this),this.fontName="helvetica",this.combo=!1};he(je,ct);var Zt=function(){je.call(this),this.combo=!0};he(Zt,je);var ut=function(){Zt.call(this),this.edit=!0};he(ut,Zt);var Ht=function(){gt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,15))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,15):this.Ff=oe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,16))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,16):this.Ff=oe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,17))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,17):this.Ff=oe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,26))},set:function(at){Boolean(at)===!0?this.Ff=Fe(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Ne,He={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var at=function(At){return At};if(this.scope&&(at=this.scope.internal.getEncryptor(this.objId)),Object.keys(He).length!==0){var qe,lt=[];for(qe in lt.push("<<"),He)lt.push("/"+qe+" ("+G(at(He[qe]))+")");return lt.push(">>"),lt.join(`
`)}},set:function(at){x()(at)==="object"&&(He=at)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return He.CA||""},set:function(at){typeof at=="string"&&(He.CA=at)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(at){Ne=at}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ne.substr(1,Ne.length-1)},set:function(at){Ne="/"+at}})};he(Ht,gt);var dr=function(){Ht.call(this),this.pushButton=!0};he(dr,Ht);var Vt=function(){Ht.call(this),this.radio=!0,this.pushButton=!1;var Ne=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Ye){Ne=Ye!==void 0?Ye:[]}})};he(Vt,Ht);var Mt=function(){var Ne,He;gt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(lt){Ne=lt}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return He},set:function(lt){He=lt}});var Ye,at={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var lt=function(Jr){return Jr};this.scope&&(lt=this.scope.internal.getEncryptor(this.objId));var Et,At=[];for(Et in At.push("<<"),at)At.push("/"+Et+" ("+G(lt(at[Et]))+")");return At.push(">>"),At.join(`
`)},set:function(lt){x()(lt)==="object"&&(at=lt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return at.CA||""},set:function(lt){typeof lt=="string"&&(at.CA=lt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ye},set:function(lt){Ye=lt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ye.substr(1,Ye.length-1)},set:function(lt){Ye="/"+lt}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=te.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};he(Mt,gt),Vt.prototype.setAppearance=function(ot){if(!("createAppearanceStream"in ot)||!("getCA"in ot))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Ne in this.Kids)if(this.Kids.hasOwnProperty(Ne)){var He=this.Kids[Ne];He.appearanceStreamContent=ot.createAppearanceStream(He.optionName),He.caption=ot.getCA()}},Vt.prototype.createOption=function(ot){var Ne=new Mt;return Ne.Parent=this,Ne.optionName=ot,this.Kids.push(Ne),Ze.call(this.scope,Ne),Ne};var Gt=function(){Ht.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=te.CheckBox.createAppearanceStream()};he(Gt,Ht);var Ve=function(){gt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,13))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,13):this.Ff=oe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,21))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,21):this.Ff=oe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,23):this.Ff=oe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,24))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,24):this.Ff=oe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,25))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,25):this.Ff=oe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=Fe(this.Ff,26):this.Ff=oe(this.Ff,26)}});var Ne=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Ye){Ne=Ye}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Ye){Number.isInteger(Ye)&&(Ne=Ye)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};he(Ve,gt);var me=function(){Ve.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ht(this.Ff,14))},set:function(He){Boolean(He)===!0?this.Ff=Fe(this.Ff,14):this.Ff=oe(this.Ff,14)}}),this.password=!0};he(me,Ve);var te={CheckBox:{createAppearanceStream:function(){return{N:{On:te.CheckBox.YesNormal},D:{On:te.CheckBox.YesPushDown,Off:te.CheckBox.OffPushDown}}},YesPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[],at=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,qe=Ne.scope.__private__.encodeColorString(Ne.color),lt=J(Ne,Ne.caption);return Ye.push("0.749023 g"),Ye.push("0 0 "+se(te.internal.getWidth(Ne))+" "+se(te.internal.getHeight(Ne))+" re"),Ye.push("f"),Ye.push("BMC"),Ye.push("q"),Ye.push("0 0 1 rg"),Ye.push("/"+at+" "+se(lt.fontSize)+" Tf "+qe),Ye.push("BT"),Ye.push(lt.text),Ye.push("ET"),Ye.push("Q"),Ye.push("EMC"),He.stream=Ye.join(`
`),He},YesNormal:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,at=Ne.scope.__private__.encodeColorString(Ne.color),qe=[],lt=te.internal.getHeight(Ne),Et=te.internal.getWidth(Ne),At=J(Ne,Ne.caption);return qe.push("1 g"),qe.push("0 0 "+se(Et)+" "+se(lt)+" re"),qe.push("f"),qe.push("q"),qe.push("0 0 1 rg"),qe.push("0 0 "+se(Et-1)+" "+se(lt-1)+" re"),qe.push("W"),qe.push("n"),qe.push("0 g"),qe.push("BT"),qe.push("/"+Ye+" "+se(At.fontSize)+" Tf "+at),qe.push(At.text),qe.push("ET"),qe.push("Q"),He.stream=qe.join(`
`),He},OffPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+se(te.internal.getWidth(Ne))+" "+se(te.internal.getHeight(Ne))+" re"),Ye.push("f"),He.stream=Ye.join(`
`),He}},RadioButton:{Circle:{createAppearanceStream:function(Ne){var He={D:{Off:te.RadioButton.Circle.OffPushDown},N:{}};return He.N[Ne]=te.RadioButton.Circle.YesNormal,He.D[Ne]=te.RadioButton.Circle.YesPushDown,He},getCA:function(){return"l"},YesNormal:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[],at=te.internal.getWidth(Ne)<=te.internal.getHeight(Ne)?te.internal.getWidth(Ne)/4:te.internal.getHeight(Ne)/4;at=Number((.9*at).toFixed(5));var qe=te.internal.Bezier_C,lt=Number((at*qe).toFixed(5));return Ye.push("q"),Ye.push("1 0 0 1 "+ye(te.internal.getWidth(Ne)/2)+" "+ye(te.internal.getHeight(Ne)/2)+" cm"),Ye.push(at+" 0 m"),Ye.push(at+" "+lt+" "+lt+" "+at+" 0 "+at+" c"),Ye.push("-"+lt+" "+at+" -"+at+" "+lt+" -"+at+" 0 c"),Ye.push("-"+at+" -"+lt+" -"+lt+" -"+at+" 0 -"+at+" c"),Ye.push(lt+" -"+at+" "+at+" -"+lt+" "+at+" 0 c"),Ye.push("f"),Ye.push("Q"),He.stream=Ye.join(`
`),He},YesPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[],at=te.internal.getWidth(Ne)<=te.internal.getHeight(Ne)?te.internal.getWidth(Ne)/4:te.internal.getHeight(Ne)/4;at=Number((.9*at).toFixed(5));var qe=Number((2*at).toFixed(5)),lt=Number((qe*te.internal.Bezier_C).toFixed(5)),Et=Number((at*te.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ye(te.internal.getWidth(Ne)/2)+" "+ye(te.internal.getHeight(Ne)/2)+" cm"),Ye.push(qe+" 0 m"),Ye.push(qe+" "+lt+" "+lt+" "+qe+" 0 "+qe+" c"),Ye.push("-"+lt+" "+qe+" -"+qe+" "+lt+" -"+qe+" 0 c"),Ye.push("-"+qe+" -"+lt+" -"+lt+" -"+qe+" 0 -"+qe+" c"),Ye.push(lt+" -"+qe+" "+qe+" -"+lt+" "+qe+" 0 c"),Ye.push("f"),Ye.push("Q"),Ye.push("0 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ye(te.internal.getWidth(Ne)/2)+" "+ye(te.internal.getHeight(Ne)/2)+" cm"),Ye.push(at+" 0 m"),Ye.push(at+" "+Et+" "+Et+" "+at+" 0 "+at+" c"),Ye.push("-"+Et+" "+at+" -"+at+" "+Et+" -"+at+" 0 c"),Ye.push("-"+at+" -"+Et+" -"+Et+" -"+at+" 0 -"+at+" c"),Ye.push(Et+" -"+at+" "+at+" -"+Et+" "+at+" 0 c"),Ye.push("f"),Ye.push("Q"),He.stream=Ye.join(`
`),He},OffPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[],at=te.internal.getWidth(Ne)<=te.internal.getHeight(Ne)?te.internal.getWidth(Ne)/4:te.internal.getHeight(Ne)/4;at=Number((.9*at).toFixed(5));var qe=Number((2*at).toFixed(5)),lt=Number((qe*te.internal.Bezier_C).toFixed(5));return Ye.push("0.749023 g"),Ye.push("q"),Ye.push("1 0 0 1 "+ye(te.internal.getWidth(Ne)/2)+" "+ye(te.internal.getHeight(Ne)/2)+" cm"),Ye.push(qe+" 0 m"),Ye.push(qe+" "+lt+" "+lt+" "+qe+" 0 "+qe+" c"),Ye.push("-"+lt+" "+qe+" -"+qe+" "+lt+" -"+qe+" 0 c"),Ye.push("-"+qe+" -"+lt+" -"+lt+" -"+qe+" 0 -"+qe+" c"),Ye.push(lt+" -"+qe+" "+qe+" -"+lt+" "+qe+" 0 c"),Ye.push("f"),Ye.push("Q"),He.stream=Ye.join(`
`),He}},Cross:{createAppearanceStream:function(Ne){var He={D:{Off:te.RadioButton.Cross.OffPushDown},N:{}};return He.N[Ne]=te.RadioButton.Cross.YesNormal,He.D[Ne]=te.RadioButton.Cross.YesPushDown,He},getCA:function(){return"8"},YesNormal:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[],at=te.internal.calculateCross(Ne);return Ye.push("q"),Ye.push("1 1 "+se(te.internal.getWidth(Ne)-2)+" "+se(te.internal.getHeight(Ne)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(se(at.x1.x)+" "+se(at.x1.y)+" m"),Ye.push(se(at.x2.x)+" "+se(at.x2.y)+" l"),Ye.push(se(at.x4.x)+" "+se(at.x4.y)+" m"),Ye.push(se(at.x3.x)+" "+se(at.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),He.stream=Ye.join(`
`),He},YesPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=te.internal.calculateCross(Ne),at=[];return at.push("0.749023 g"),at.push("0 0 "+se(te.internal.getWidth(Ne))+" "+se(te.internal.getHeight(Ne))+" re"),at.push("f"),at.push("q"),at.push("1 1 "+se(te.internal.getWidth(Ne)-2)+" "+se(te.internal.getHeight(Ne)-2)+" re"),at.push("W"),at.push("n"),at.push(se(Ye.x1.x)+" "+se(Ye.x1.y)+" m"),at.push(se(Ye.x2.x)+" "+se(Ye.x2.y)+" l"),at.push(se(Ye.x4.x)+" "+se(Ye.x4.y)+" m"),at.push(se(Ye.x3.x)+" "+se(Ye.x3.y)+" l"),at.push("s"),at.push("Q"),He.stream=at.join(`
`),He},OffPushDown:function(Ne){var He=Pe(Ne);He.scope=Ne.scope;var Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+se(te.internal.getWidth(Ne))+" "+se(te.internal.getHeight(Ne))+" re"),Ye.push("f"),He.stream=Ye.join(`
`),He}}},createDefaultAppearanceStream:function(Ne){var He=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,Ye=Ne.scope.__private__.encodeColorString(Ne.color);return"/"+He+" "+Ne.fontSize+" Tf "+Ye}};te.internal={Bezier_C:.551915024494,calculateCross:function(Ne){var He=te.internal.getWidth(Ne),Ye=te.internal.getHeight(Ne),at=Math.min(He,Ye);return{x1:{x:(He-at)/2,y:(Ye-at)/2+at},x2:{x:(He-at)/2+at,y:(Ye-at)/2},x3:{x:(He-at)/2,y:(Ye-at)/2},x4:{x:(He-at)/2+at,y:(Ye-at)/2+at}}}},te.internal.getWidth=function(ot){var Ne=0;return x()(ot)==="object"&&(Ne=ke(ot.Rect[2])),Ne},te.internal.getHeight=function(ot){var Ne=0;return x()(ot)==="object"&&(Ne=ke(ot.Rect[3])),Ne};var Ze=V.addField=function(ot){if(Ce(this,ot),!(ot instanceof gt))throw new Error("Invalid argument passed to jsPDF.addField.");var Ne;return(Ne=ot).scope.internal.acroformPlugin.printedOut&&(Ne.scope.internal.acroformPlugin.printedOut=!1,Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Ne),ot.page=ot.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=ct,V.AcroFormListBox=je,V.AcroFormComboBox=Zt,V.AcroFormEditBox=ut,V.AcroFormButton=Ht,V.AcroFormPushButton=dr,V.AcroFormRadioButton=Vt,V.AcroFormCheckBox=Gt,V.AcroFormTextField=Ve,V.AcroFormPasswordField=me,V.AcroFormAppearance=te,V.AcroForm={ChoiceField:ct,ListBox:je,ComboBox:Zt,EditBox:ut,Button:Ht,PushButton:dr,RadioButton:Vt,CheckBox:Gt,TextField:Ve,PasswordField:me,Appearance:te},z.AcroForm={ChoiceField:ct,ListBox:je,ComboBox:Zt,EditBox:ut,Button:Ht,PushButton:dr,RadioButton:Vt,CheckBox:Gt,TextField:Ve,PasswordField:me,Appearance:te};var Xe=z.AcroForm;function ue(ot){return ot.reduce(function(Ne,He,Ye){return Ne[He]=Ye,Ne},{})}!function(ot){ot.__addimage__={};var Ne="UNKNOWN",He={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ye=ot.__addimage__.getImageFileTypeByImageData=function(Rt,Ut){var Kt,Lt,cr,vr,yr,Rr=Ne;if((Ut=Ut||Ne)==="RGBA"||Rt.data!==void 0&&Rt.data instanceof Uint8ClampedArray&&"height"in Rt&&"width"in Rt)return"RGBA";if(Zr(Rt))for(yr in He)for(cr=He[yr],Kt=0;Kt<cr.length;Kt+=1){for(vr=!0,Lt=0;Lt<cr[Kt].length;Lt+=1)if(cr[Kt][Lt]!==void 0&&cr[Kt][Lt]!==Rt[Lt]){vr=!1;break}if(vr===!0){Rr=yr;break}}else for(yr in He)for(cr=He[yr],Kt=0;Kt<cr.length;Kt+=1){for(vr=!0,Lt=0;Lt<cr[Kt].length;Lt+=1)if(cr[Kt][Lt]!==void 0&&cr[Kt][Lt]!==Rt.charCodeAt(Lt)){vr=!1;break}if(vr===!0){Rr=yr;break}}return Rr===Ne&&Ut!==Ne&&(Rr=Ut),Rr},at=function Rt(Ut){for(var Kt=this.internal.write,Lt=this.internal.putStream,cr=(0,this.internal.getFilters)();cr.indexOf("FlateEncode")!==-1;)cr.splice(cr.indexOf("FlateEncode"),1);Ut.objectId=this.internal.newObject();var vr=[];if(vr.push({key:"Type",value:"/XObject"}),vr.push({key:"Subtype",value:"/Image"}),vr.push({key:"Width",value:Ut.width}),vr.push({key:"Height",value:Ut.height}),Ut.colorSpace===Fn.INDEXED?vr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ut.palette.length/3-1)+" "+("sMask"in Ut&&Ut.sMask!==void 0?Ut.objectId+2:Ut.objectId+1)+" 0 R]"}):(vr.push({key:"ColorSpace",value:"/"+Ut.colorSpace}),Ut.colorSpace===Fn.DEVICE_CMYK&&vr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),vr.push({key:"BitsPerComponent",value:Ut.bitsPerComponent}),"decodeParameters"in Ut&&Ut.decodeParameters!==void 0&&vr.push({key:"DecodeParms",value:"<<"+Ut.decodeParameters+">>"}),"transparency"in Ut&&Array.isArray(Ut.transparency)){for(var yr="",Rr=0,Vn=Ut.transparency.length;Rr<Vn;Rr++)yr+=Ut.transparency[Rr]+" "+Ut.transparency[Rr]+" ";vr.push({key:"Mask",value:"["+yr+"]"})}Ut.sMask!==void 0&&vr.push({key:"SMask",value:Ut.objectId+1+" 0 R"});var kn=Ut.filter!==void 0?["/"+Ut.filter]:void 0;if(Lt({data:Ut.data,additionalKeyValues:vr,alreadyAppliedFilters:kn,objectId:Ut.objectId}),Kt("endobj"),"sMask"in Ut&&Ut.sMask!==void 0){var di="/Predictor "+Ut.predictor+" /Colors 1 /BitsPerComponent "+Ut.bitsPerComponent+" /Columns "+Ut.width,pn={width:Ut.width,height:Ut.height,colorSpace:"DeviceGray",bitsPerComponent:Ut.bitsPerComponent,decodeParameters:di,data:Ut.sMask};"filter"in Ut&&(pn.filter=Ut.filter),Rt.call(this,pn)}if(Ut.colorSpace===Fn.INDEXED){var Br=this.internal.newObject();Lt({data:Gn(new Uint8Array(Ut.palette)),objectId:Br}),Kt("endobj")}},qe=function(){var Ut=this.internal.collections.addImage_images;for(var Kt in Ut)at.call(this,Ut[Kt])},lt=function(){var Ut,Kt=this.internal.collections.addImage_images,Lt=this.internal.write;for(var cr in Kt)Lt("/I"+(Ut=Kt[cr]).index,Ut.objectId,"0","R")},Et=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",qe),this.internal.events.subscribe("putXobjectDict",lt))},At=function(){var Ut=this.internal.collections.addImage_images;return Et.call(this),Ut},fr=function(){return Object.keys(this.internal.collections.addImage_images).length},Jr=function(Ut){return typeof ot["process"+Ut.toUpperCase()]=="function"},Vr=function(Ut){return x()(Ut)==="object"&&Ut.nodeType===1},dn=function(Ut,Kt){if(Ut.nodeName==="IMG"&&Ut.hasAttribute("src")){var Lt=""+Ut.getAttribute("src");if(Lt.indexOf("data:image/")===0)return t(unescape(Lt).split("base64,").pop());var cr=ot.loadFile(Lt,!0);if(cr!==void 0)return cr}if(Ut.nodeName==="CANVAS"){if(Ut.width===0||Ut.height===0)throw new Error("Given canvas must have data. Canvas width: "+Ut.width+", height: "+Ut.height);var vr;switch(Kt){case"PNG":vr="image/png";break;case"WEBP":vr="image/webp";break;case"JPEG":case"JPG":default:vr="image/jpeg"}return t(Ut.toDataURL(vr,1).split("base64,").pop())}},gr=function(Ut){var Kt=this.internal.collections.addImage_images;if(Kt){for(var Lt in Kt)if(Ut===Kt[Lt].alias)return Kt[Lt]}},Wn=function(Ut,Kt,Lt){return Ut||Kt||(Ut=-96,Kt=-96),Ut<0&&(Ut=-1*Lt.width*72/Ut/this.internal.scaleFactor),Kt<0&&(Kt=-1*Lt.height*72/Kt/this.internal.scaleFactor),Ut===0&&(Ut=Kt*Lt.width/Lt.height),Kt===0&&(Kt=Ut*Lt.height/Lt.width),[Ut,Kt]},kr=function(Ut,Kt,Lt,cr,vr,yr){var Rr=Wn.call(this,Lt,cr,vr),Vn=this.internal.getCoordinateString,kn=this.internal.getVerticalCoordinateString,di=At.call(this);if(Lt=Rr[0],cr=Rr[1],di[vr.index]=vr,yr){yr*=Math.PI/180;var pn=Math.cos(yr),Br=Math.sin(yr),_n=function(oi){return oi.toFixed(4)},Xn=[_n(pn),_n(Br),_n(-1*Br),_n(pn),0,0,"cm"]}this.internal.write("q"),yr?(this.internal.write([1,"0","0",1,Vn(Ut),kn(Kt+cr),"cm"].join(" ")),this.internal.write(Xn.join(" ")),this.internal.write([Vn(Lt),"0","0",Vn(cr),"0","0","cm"].join(" "))):this.internal.write([Vn(Lt),"0","0",Vn(cr),Vn(Ut),kn(Kt+cr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+vr.index+" Do"),this.internal.write("Q")},Fn=ot.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};ot.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var vn=ot.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},$r=ot.__addimage__.sHashCode=function(Rt){var Ut,Kt,Lt=0;if(typeof Rt=="string")for(Kt=Rt.length,Ut=0;Ut<Kt;Ut++)Lt=(Lt<<5)-Lt+Rt.charCodeAt(Ut),Lt|=0;else if(Zr(Rt))for(Kt=Rt.byteLength/2,Ut=0;Ut<Kt;Ut++)Lt=(Lt<<5)-Lt+Rt[Ut],Lt|=0;return Lt},ei=ot.__addimage__.validateStringAsBase64=function(Rt){(Rt=Rt||"").toString().trim();var Ut=!0;return Rt.length===0&&(Ut=!1),Rt.length%4!=0&&(Ut=!1),/^[A-Za-z0-9+/]+$/.test(Rt.substr(0,Rt.length-2))===!1&&(Ut=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Rt.substr(-2))===!1&&(Ut=!1),Ut},fi=ot.__addimage__.extractImageFromDataUrl=function(Rt){var Ut=(Rt=Rt||"").split("base64,"),Kt=null;if(Ut.length===2){var Lt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Ut[0]);Array.isArray(Lt)&&(Kt={mimeType:Lt[1],charset:Lt[2],data:Ut[1]})}return Kt},Pi=ot.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};ot.__addimage__.isArrayBuffer=function(Rt){return Pi()&&Rt instanceof ArrayBuffer};var Zr=ot.__addimage__.isArrayBufferView=function(Rt){return Pi()&&typeof Uint32Array!="undefined"&&(Rt instanceof Int8Array||Rt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Rt instanceof Uint8ClampedArray||Rt instanceof Int16Array||Rt instanceof Uint16Array||Rt instanceof Int32Array||Rt instanceof Uint32Array||Rt instanceof Float32Array||Rt instanceof Float64Array)},Sn=ot.__addimage__.binaryStringToUint8Array=function(Rt){for(var Ut=Rt.length,Kt=new Uint8Array(Ut),Lt=0;Lt<Ut;Lt++)Kt[Lt]=Rt.charCodeAt(Lt);return Kt},Gn=ot.__addimage__.arrayBufferToBinaryString=function(Rt){for(var Ut="",Kt=Zr(Rt)?Rt:new Uint8Array(Rt),Lt=0;Lt<Kt.length;Lt+=8192)Ut+=String.fromCharCode.apply(null,Kt.subarray(Lt,Lt+8192));return Ut};ot.addImage=function(){var Rt,Ut,Kt,Lt,cr,vr,yr,Rr,Vn;if(typeof arguments[1]=="number"?(Ut=Ne,Kt=arguments[1],Lt=arguments[2],cr=arguments[3],vr=arguments[4],yr=arguments[5],Rr=arguments[6],Vn=arguments[7]):(Ut=arguments[1],Kt=arguments[2],Lt=arguments[3],cr=arguments[4],vr=arguments[5],yr=arguments[6],Rr=arguments[7],Vn=arguments[8]),x()(Rt=arguments[0])==="object"&&!Vr(Rt)&&"imageData"in Rt){var kn=Rt;Rt=kn.imageData,Ut=kn.format||Ut||Ne,Kt=kn.x||Kt||0,Lt=kn.y||Lt||0,cr=kn.w||kn.width||cr,vr=kn.h||kn.height||vr,yr=kn.alias||yr,Rr=kn.compression||Rr,Vn=kn.rotation||kn.angle||Vn}var di=this.internal.getFilters();if(Rr===void 0&&di.indexOf("FlateEncode")!==-1&&(Rr="SLOW"),isNaN(Kt)||isNaN(Lt))throw new Error("Invalid coordinates passed to jsPDF.addImage");Et.call(this);var pn=Wt.call(this,Rt,Ut,yr,Rr);return kr.call(this,Kt,Lt,cr,vr,pn,Vn),this};var Wt=function(Ut,Kt,Lt,cr){var vr,yr,Rr;if(typeof Ut=="string"&&Ye(Ut)===Ne){Ut=unescape(Ut);var Vn=Ot(Ut,!1);(Vn!==""||(Vn=ot.loadFile(Ut,!0))!==void 0)&&(Ut=Vn)}if(Vr(Ut)&&(Ut=dn(Ut,Kt)),Kt=Ye(Ut,Kt),!Jr(Kt))throw new Error("addImage does not support files of type '"+Kt+"', please ensure that a plugin for '"+Kt+"' support is added.");if(((Rr=Lt)==null||Rr.length===0)&&(Lt=function(kn){return typeof kn=="string"||Zr(kn)?$r(kn):Zr(kn.data)?$r(kn.data):null}(Ut)),(vr=gr.call(this,Lt))||(Pi()&&(Ut instanceof Uint8Array||Kt==="RGBA"||(yr=Ut,Ut=Sn(Ut))),vr=this["process"+Kt.toUpperCase()](Ut,fr.call(this),Lt,function(kn){return kn&&typeof kn=="string"&&(kn=kn.toUpperCase()),kn in ot.image_compression?kn:vn.NONE}(cr),yr)),!vr)throw new Error("An unknown error occurred whilst processing the image.");return vr},Ot=ot.__addimage__.convertBase64ToBinaryString=function(Rt,Ut){var Kt;Ut=typeof Ut!="boolean"||Ut;var Lt,cr="";if(typeof Rt=="string"){Lt=(Kt=fi(Rt))!==null?Kt.data:Rt;try{cr=t(Lt)}catch(vr){if(Ut)throw ei(Lt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+vr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return cr};ot.getImageProperties=function(Rt){var Ut,Kt,Lt="";if(Vr(Rt)&&(Rt=dn(Rt)),typeof Rt=="string"&&Ye(Rt)===Ne&&((Lt=Ot(Rt,!1))===""&&(Lt=ot.loadFile(Rt)||""),Rt=Lt),Kt=Ye(Rt),!Jr(Kt))throw new Error("addImage does not support files of type '"+Kt+"', please ensure that a plugin for '"+Kt+"' support is added.");if(!Pi()||Rt instanceof Uint8Array||(Rt=Sn(Rt)),!(Ut=this["process"+Kt.toUpperCase()](Rt)))throw new Error("An unknown error occurred whilst processing the image");return Ut.fileType=Kt,Ut}}(z.API),function(ot){var Ne=function(Ye){if(Ye!==void 0&&Ye!="")return!0};z.API.events.push(["addPage",function(He){this.internal.getPageInfo(He.pageNumber).pageContext.annotations=[]}]),ot.events.push(["putPage",function(He){for(var Ye,at,qe,lt=this.internal.getCoordinateString,Et=this.internal.getVerticalCoordinateString,At=this.internal.getPageInfoByObjId(He.objId),fr=He.pageContext.annotations,Jr=!1,Vr=0;Vr<fr.length&&!Jr;Vr++)switch((Ye=fr[Vr]).type){case"link":(Ne(Ye.options.url)||Ne(Ye.options.pageNumber))&&(Jr=!0);break;case"reference":case"text":case"freetext":Jr=!0}if(Jr!=0){this.internal.write("/Annots [");for(var dn=0;dn<fr.length;dn++){Ye=fr[dn];var gr=this.internal.pdfEscape,Wn=this.internal.getEncryptor(He.objId);switch(Ye.type){case"reference":this.internal.write(" "+Ye.object.objId+" 0 R ");break;case"text":var kr=this.internal.newAdditionalObject(),Fn=this.internal.newAdditionalObject(),vn=this.internal.getEncryptor(kr.objId),$r=Ye.title||"Note";qe="<</Type /Annot /Subtype /Text "+(at="/Rect ["+lt(Ye.bounds.x)+" "+Et(Ye.bounds.y+Ye.bounds.h)+" "+lt(Ye.bounds.x+Ye.bounds.w)+" "+Et(Ye.bounds.y)+"] ")+"/Contents ("+gr(vn(Ye.contents))+")",qe+=" /Popup "+Fn.objId+" 0 R",qe+=" /P "+At.objId+" 0 R",qe+=" /T ("+gr(vn($r))+") >>",kr.content=qe;var ei=kr.objId+" 0 R";qe="<</Type /Annot /Subtype /Popup "+(at="/Rect ["+lt(Ye.bounds.x+30)+" "+Et(Ye.bounds.y+Ye.bounds.h)+" "+lt(Ye.bounds.x+Ye.bounds.w+30)+" "+Et(Ye.bounds.y)+"] ")+" /Parent "+ei,Ye.open&&(qe+=" /Open true"),qe+=" >>",Fn.content=qe,this.internal.write(kr.objId,"0 R",Fn.objId,"0 R");break;case"freetext":at="/Rect ["+lt(Ye.bounds.x)+" "+Et(Ye.bounds.y)+" "+lt(Ye.bounds.x+Ye.bounds.w)+" "+Et(Ye.bounds.y+Ye.bounds.h)+"] ";var fi=Ye.color||"#000000";qe="<</Type /Annot /Subtype /FreeText "+at+"/Contents ("+gr(Wn(Ye.contents))+")",qe+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+fi+")",qe+=" /Border [0 0 0]",qe+=" >>",this.internal.write(qe);break;case"link":if(Ye.options.name){var Pi=this.annotations._nameMap[Ye.options.name];Ye.options.pageNumber=Pi.page,Ye.options.top=Pi.y}else Ye.options.top||(Ye.options.top=0);if(at="/Rect ["+Ye.finalBounds.x+" "+Ye.finalBounds.y+" "+Ye.finalBounds.w+" "+Ye.finalBounds.h+"] ",qe="",Ye.options.url)qe="<</Type /Annot /Subtype /Link "+at+"/Border [0 0 0] /A <</S /URI /URI ("+gr(Wn(Ye.options.url))+") >>";else if(Ye.options.pageNumber)switch(qe="<</Type /Annot /Subtype /Link "+at+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ye.options.pageNumber).objId+" 0 R",Ye.options.magFactor=Ye.options.magFactor||"XYZ",Ye.options.magFactor){case"Fit":qe+=" /Fit]";break;case"FitH":qe+=" /FitH "+Ye.options.top+"]";break;case"FitV":Ye.options.left=Ye.options.left||0,qe+=" /FitV "+Ye.options.left+"]";break;case"XYZ":default:var Zr=Et(Ye.options.top);Ye.options.left=Ye.options.left||0,Ye.options.zoom===void 0&&(Ye.options.zoom=0),qe+=" /XYZ "+Ye.options.left+" "+Zr+" "+Ye.options.zoom+"]"}qe!=""&&(qe+=" >>",this.internal.write(qe))}}this.internal.write("]")}}]),ot.createAnnotation=function(He){var Ye=this.internal.getCurrentPageInfo();switch(He.type){case"link":this.link(He.bounds.x,He.bounds.y,He.bounds.w,He.bounds.h,He);break;case"text":case"freetext":Ye.pageContext.annotations.push(He)}},ot.link=function(He,Ye,at,qe,lt){var Et=this.internal.getCurrentPageInfo(),At=this.internal.getCoordinateString,fr=this.internal.getVerticalCoordinateString;Et.pageContext.annotations.push({finalBounds:{x:At(He),y:fr(Ye),w:At(He+at),h:fr(Ye+qe)},options:lt,type:"link"})},ot.textWithLink=function(He,Ye,at,qe){var lt,Et,At=this.getTextWidth(He),fr=this.internal.getLineHeight()/this.internal.scaleFactor;if(qe.maxWidth!==void 0){Et=qe.maxWidth;var Jr=this.splitTextToSize(He,Et).length;lt=Math.ceil(fr*Jr)}else Et=At,lt=fr;return this.text(He,Ye,at,qe),at+=.2*fr,qe.align==="center"&&(Ye-=At/2),qe.align==="right"&&(Ye-=At),this.link(Ye,at-fr,Et,lt,qe),At},ot.getTextWidth=function(He){var Ye=this.internal.getFontSize();return this.getStringUnitWidth(He)*Ye/this.internal.scaleFactor}}(z.API),function(ot){var Ne={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},He={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ye={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},at=[1570,1571,1573,1575];ot.__arabicParser__={};var qe=ot.__arabicParser__.isInArabicSubstitutionA=function(kr){return Ne[kr.charCodeAt(0)]!==void 0},lt=ot.__arabicParser__.isArabicLetter=function(kr){return typeof kr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(kr)},Et=ot.__arabicParser__.isArabicEndLetter=function(kr){return lt(kr)&&qe(kr)&&Ne[kr.charCodeAt(0)].length<=2},At=ot.__arabicParser__.isArabicAlfLetter=function(kr){return lt(kr)&&at.indexOf(kr.charCodeAt(0))>=0};ot.__arabicParser__.arabicLetterHasIsolatedForm=function(kr){return lt(kr)&&qe(kr)&&Ne[kr.charCodeAt(0)].length>=1};var fr=ot.__arabicParser__.arabicLetterHasFinalForm=function(kr){return lt(kr)&&qe(kr)&&Ne[kr.charCodeAt(0)].length>=2};ot.__arabicParser__.arabicLetterHasInitialForm=function(kr){return lt(kr)&&qe(kr)&&Ne[kr.charCodeAt(0)].length>=3};var Jr=ot.__arabicParser__.arabicLetterHasMedialForm=function(kr){return lt(kr)&&qe(kr)&&Ne[kr.charCodeAt(0)].length==4},Vr=ot.__arabicParser__.resolveLigatures=function(kr){var Fn=0,vn=He,$r="",ei=0;for(Fn=0;Fn<kr.length;Fn+=1)vn[kr.charCodeAt(Fn)]!==void 0?(ei++,typeof(vn=vn[kr.charCodeAt(Fn)])=="number"&&($r+=String.fromCharCode(vn),vn=He,ei=0),Fn===kr.length-1&&(vn=He,$r+=kr.charAt(Fn-(ei-1)),Fn-=ei-1,ei=0)):(vn=He,$r+=kr.charAt(Fn-ei),Fn-=ei,ei=0);return $r};ot.__arabicParser__.isArabicDiacritic=function(kr){return kr!==void 0&&Ye[kr.charCodeAt(0)]!==void 0};var dn=ot.__arabicParser__.getCorrectForm=function(kr,Fn,vn){return lt(kr)?qe(kr)===!1?-1:!fr(kr)||!lt(Fn)&&!lt(vn)||!lt(vn)&&Et(Fn)||Et(kr)&&!lt(Fn)||Et(kr)&&At(Fn)||Et(kr)&&Et(Fn)?0:Jr(kr)&&lt(Fn)&&!Et(Fn)&&lt(vn)&&fr(vn)?3:Et(kr)||!lt(vn)?1:2:-1},gr=function(Fn){var vn=0,$r=0,ei=0,fi="",Pi="",Zr="",Sn=(Fn=Fn||"").split("\\s+"),Gn=[];for(vn=0;vn<Sn.length;vn+=1){for(Gn.push(""),$r=0;$r<Sn[vn].length;$r+=1)fi=Sn[vn][$r],Pi=Sn[vn][$r-1],Zr=Sn[vn][$r+1],lt(fi)?(ei=dn(fi,Pi,Zr),Gn[vn]+=ei!==-1?String.fromCharCode(Ne[fi.charCodeAt(0)][ei]):fi):Gn[vn]+=fi;Gn[vn]=Vr(Gn[vn])}return Gn.join(" ")},Wn=ot.__arabicParser__.processArabic=ot.processArabic=function(){var kr,Fn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,vn=[];if(Array.isArray(Fn)){var $r=0;for(vn=[],$r=0;$r<Fn.length;$r+=1)Array.isArray(Fn[$r])?vn.push([gr(Fn[$r][0]),Fn[$r][1],Fn[$r][2]]):vn.push([gr(Fn[$r])]);kr=vn}else kr=gr(Fn);return typeof arguments[0]=="string"?kr:(arguments[0].text=kr,arguments[0])};ot.events.push(["preProcessText",Wn])}(z.API),z.API.autoPrint=function(ot){var Ne;switch((ot=ot||{}).variant=ot.variant||"non-conform",ot.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Ne=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+Ne+" 0 R")})}return this},function(ot){var Ne=function(){var Ye=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ye},set:function(fr){Ye=fr}});var at=150;Object.defineProperty(this,"width",{get:function(){return at},set:function(fr){at=isNaN(fr)||Number.isInteger(fr)===!1||fr<0?150:fr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=at+1)}});var qe=300;Object.defineProperty(this,"height",{get:function(){return qe},set:function(fr){qe=isNaN(fr)||Number.isInteger(fr)===!1||fr<0?300:fr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=qe+1)}});var lt=[];Object.defineProperty(this,"childNodes",{get:function(){return lt},set:function(fr){lt=fr}});var Et={};Object.defineProperty(this,"style",{get:function(){return Et},set:function(fr){Et=fr}}),Object.defineProperty(this,"parentNode",{})};Ne.prototype.getContext=function(He,Ye){var at;if((He=He||"2d")!=="2d")return null;for(at in Ye)this.pdf.context2d.hasOwnProperty(at)&&(this.pdf.context2d[at]=Ye[at]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Ne.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},ot.events.push(["initialized",function(){this.canvas=new Ne,this.canvas.pdf=this}])}(z.API),function(ot){var Ne={left:0,top:0,bottom:0,right:0},He=!1,Ye=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},Ne),this.internal.__cell__.margins.width=this.getPageWidth(),at.call(this))},at=function(){this.internal.__cell__.lastCell=new qe,this.internal.__cell__.pages=1},qe=function(){var fr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return fr},set:function(vn){fr=vn}});var Jr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Jr},set:function(vn){Jr=vn}});var Vr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Vr},set:function(vn){Vr=vn}});var dn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return dn},set:function(vn){dn=vn}});var gr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return gr},set:function(vn){gr=vn}});var Wn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Wn},set:function(vn){Wn=vn}});var kr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return kr},set:function(vn){kr=vn}}),this};qe.prototype.clone=function(){return new qe(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},qe.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},ot.setHeaderFunction=function(At){return Ye.call(this),this.internal.__cell__.headerFunction=typeof At=="function"?At:void 0,this},ot.getTextDimensions=function(At,fr){Ye.call(this);var Jr=(fr=fr||{}).fontSize||this.getFontSize(),Vr=fr.font||this.getFont(),dn=fr.scaleFactor||this.internal.scaleFactor,gr=0,Wn=0,kr=0,Fn=this;if(!Array.isArray(At)&&typeof At!="string"){if(typeof At!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");At=String(At)}var vn=fr.maxWidth;vn>0?typeof At=="string"?At=this.splitTextToSize(At,vn):Object.prototype.toString.call(At)==="[object Array]"&&(At=At.reduce(function(ei,fi){return ei.concat(Fn.splitTextToSize(fi,vn))},[])):At=Array.isArray(At)?At:[At];for(var $r=0;$r<At.length;$r++)gr<(kr=this.getStringUnitWidth(At[$r],{font:Vr})*Jr)&&(gr=kr);return gr!==0&&(Wn=At.length),{w:gr/=dn,h:Math.max((Wn*Jr*this.getLineHeightFactor()-Jr*(this.getLineHeightFactor()-1))/dn,0)}},ot.cellAddPage=function(){Ye.call(this),this.addPage();var At=this.internal.__cell__.margins||Ne;return this.internal.__cell__.lastCell=new qe(At.left,At.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var lt=ot.cell=function(){var At;At=arguments[0]instanceof qe?arguments[0]:new qe(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ye.call(this);var fr=this.internal.__cell__.lastCell,Jr=this.internal.__cell__.padding,Vr=this.internal.__cell__.margins||Ne,dn=this.internal.__cell__.tableHeaderRow,gr=this.internal.__cell__.printHeaders;return fr.lineNumber!==void 0&&(fr.lineNumber===At.lineNumber?(At.x=(fr.x||0)+(fr.width||0),At.y=fr.y||0):fr.y+fr.height+At.height+Vr.bottom>this.getPageHeight()?(this.cellAddPage(),At.y=Vr.top,gr&&dn&&(this.printHeaderRow(At.lineNumber,!0),At.y+=dn[0].height)):At.y=fr.y+fr.height||At.y),At.text[0]!==void 0&&(this.rect(At.x,At.y,At.width,At.height,He===!0?"FD":void 0),At.align==="right"?this.text(At.text,At.x+At.width-Jr,At.y+Jr,{align:"right",baseline:"top"}):At.align==="center"?this.text(At.text,At.x+At.width/2,At.y+Jr,{align:"center",baseline:"top",maxWidth:At.width-Jr-Jr}):this.text(At.text,At.x+Jr,At.y+Jr,{align:"left",baseline:"top",maxWidth:At.width-Jr-Jr})),this.internal.__cell__.lastCell=At,this};ot.table=function(At,fr,Jr,Vr,dn){if(Ye.call(this),!Jr)throw new Error("No data for PDF table.");var gr,Wn,kr,Fn,vn=[],$r=[],ei=[],fi={},Pi={},Zr=[],Sn=[],Gn=(dn=dn||{}).autoSize||!1,Wt=dn.printHeaders!==!1,Ot=dn.css&&dn.css["font-size"]!==void 0?16*dn.css["font-size"]:dn.fontSize||12,Rt=dn.margins||Object.assign({width:this.getPageWidth()},Ne),Ut=typeof dn.padding=="number"?dn.padding:3,Kt=dn.headerBackgroundColor||"#c8c8c8",Lt=dn.headerTextColor||"#000";if(at.call(this),this.internal.__cell__.printHeaders=Wt,this.internal.__cell__.margins=Rt,this.internal.__cell__.table_font_size=Ot,this.internal.__cell__.padding=Ut,this.internal.__cell__.headerBackgroundColor=Kt,this.internal.__cell__.headerTextColor=Lt,this.setFontSize(Ot),Vr==null)$r=vn=Object.keys(Jr[0]),ei=vn.map(function(){return"left"});else if(Array.isArray(Vr)&&x()(Vr[0])==="object")for(vn=Vr.map(function(kn){return kn.name}),$r=Vr.map(function(kn){return kn.prompt||kn.name||""}),ei=Vr.map(function(kn){return kn.align||"left"}),gr=0;gr<Vr.length;gr+=1)Pi[Vr[gr].name]=Vr[gr].width*(19.049976/25.4);else Array.isArray(Vr)&&typeof Vr[0]=="string"&&($r=vn=Vr,ei=vn.map(function(){return"left"}));if(Gn||Array.isArray(Vr)&&typeof Vr[0]=="string")for(gr=0;gr<vn.length;gr+=1){for(fi[Fn=vn[gr]]=Jr.map(function(kn){return kn[Fn]}),this.setFont(void 0,"bold"),Zr.push(this.getTextDimensions($r[gr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Wn=fi[Fn],this.setFont(void 0,"normal"),kr=0;kr<Wn.length;kr+=1)Zr.push(this.getTextDimensions(Wn[kr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Pi[Fn]=Math.max.apply(null,Zr)+Ut+Ut,Zr=[]}if(Wt){var cr={};for(gr=0;gr<vn.length;gr+=1)cr[vn[gr]]={},cr[vn[gr]].text=$r[gr],cr[vn[gr]].align=ei[gr];var vr=Et.call(this,cr,Pi);Sn=vn.map(function(kn){return new qe(At,fr,Pi[kn],vr,cr[kn].text,void 0,cr[kn].align)}),this.setTableHeaderRow(Sn),this.printHeaderRow(1,!1)}var yr=Vr.reduce(function(kn,di){return kn[di.name]=di.align,kn},{});for(gr=0;gr<Jr.length;gr+=1){"rowStart"in dn&&dn.rowStart instanceof Function&&dn.rowStart({row:gr,data:Jr[gr]},this);var Rr=Et.call(this,Jr[gr],Pi);for(kr=0;kr<vn.length;kr+=1){var Vn=Jr[gr][vn[kr]];"cellStart"in dn&&dn.cellStart instanceof Function&&dn.cellStart({row:gr,col:kr,data:Vn},this),lt.call(this,new qe(At,fr,Pi[vn[kr]],Rr,Vn,gr+2,yr[vn[kr]]))}}return this.internal.__cell__.table_x=At,this.internal.__cell__.table_y=fr,this};var Et=function(fr,Jr){var Vr=this.internal.__cell__.padding,dn=this.internal.__cell__.table_font_size,gr=this.internal.scaleFactor;return Object.keys(fr).map(function(Wn){var kr=fr[Wn];return this.splitTextToSize(kr.hasOwnProperty("text")?kr.text:kr,Jr[Wn]-Vr-Vr)},this).map(function(Wn){return this.getLineHeightFactor()*Wn.length*dn/gr+Vr+Vr},this).reduce(function(Wn,kr){return Math.max(Wn,kr)},0)};ot.setTableHeaderRow=function(At){Ye.call(this),this.internal.__cell__.tableHeaderRow=At},ot.printHeaderRow=function(At,fr){if(Ye.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Jr;if(He=!0,typeof this.internal.__cell__.headerFunction=="function"){var Vr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new qe(Vr[0],Vr[1],Vr[2],Vr[3],void 0,-1)}this.setFont(void 0,"bold");for(var dn=[],gr=0;gr<this.internal.__cell__.tableHeaderRow.length;gr+=1){Jr=this.internal.__cell__.tableHeaderRow[gr].clone(),fr&&(Jr.y=this.internal.__cell__.margins.top||0,dn.push(Jr)),Jr.lineNumber=At;var Wn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),lt.call(this,Jr),this.setTextColor(Wn)}dn.length>0&&this.setTableHeaderRow(dn),this.setFont(void 0,"normal"),He=!1}}(z.API);var St={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Qt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],dt=ue(Qt),Jt=[100,200,300,400,500,600,700,800,900],$t=ue(Jt);function tn(ot){var Ne=ot.family.replace(/"|'/g,"").toLowerCase(),He=function(qe){return St[qe=qe||"normal"]?qe:"normal"}(ot.style),Ye=function(qe){if(!qe)return 400;if(typeof qe=="number")return qe>=100&&qe<=900&&qe%100==0?qe:400;if(/^\d00$/.test(qe))return parseInt(qe);switch(qe){case"bold":return 700;case"normal":default:return 400}}(ot.weight),at=function(qe){return typeof dt[qe=qe||"normal"]=="number"?qe:"normal"}(ot.stretch);return{family:Ne,style:He,weight:Ye,stretch:at,src:ot.src||[],ref:ot.ref||{name:Ne,style:[at,He,Ye].join(" ")}}}function kt(ot,Ne,He,Ye){var at;for(at=He;at>=0&&at<Ne.length;at+=Ye)if(ot[Ne[at]])return ot[Ne[at]];for(at=He;at>=0&&at<Ne.length;at-=Ye)if(ot[Ne[at]])return ot[Ne[at]]}var tr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Bt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ft(ot){return[ot.stretch,ot.style,ot.weight,ot.family].join(" ")}function it(ot,Ne,He){for(var Ye=(He=He||{}).defaultFontFamily||"times",at=Object.assign({},tr,He.genericFontFamilies||{}),qe=null,lt=null,Et=0;Et<Ne.length;++Et)if(at[(qe=tn(Ne[Et])).family]&&(qe.family=at[qe.family]),ot.hasOwnProperty(qe.family)){lt=ot[qe.family];break}if(!(lt=lt||ot[Ye]))throw new Error("Could not find a font-family for the rule '"+ft(qe)+"' and default family '"+Ye+"'.");if(lt=function(At,fr){if(fr[At])return fr[At];var Jr=dt[At],Vr=Jr<=dt.normal?-1:1,dn=kt(fr,Qt,Jr,Vr);if(!dn)throw new Error("Could not find a matching font-stretch value for "+At);return dn}(qe.stretch,lt),lt=function(At,fr){if(fr[At])return fr[At];for(var Jr=St[At],Vr=0;Vr<Jr.length;++Vr)if(fr[Jr[Vr]])return fr[Jr[Vr]];throw new Error("Could not find a matching font-style for "+At)}(qe.style,lt),!(lt=function(At,fr){if(fr[At])return fr[At];if(At===400&&fr[500])return fr[500];if(At===500&&fr[400])return fr[400];var Jr=$t[At],Vr=kt(fr,Jt,Jr,At<400?-1:1);if(!Vr)throw new Error("Could not find a matching font-weight for value "+At);return Vr}(qe.weight,lt)))throw new Error("Failed to resolve a font for the rule '"+ft(qe)+"'.");return lt}function Or(ot){return ot.trimLeft()}function an(ot,Ne){for(var He=0;He<ot.length;){if(ot.charAt(He)===Ne)return[ot.substring(0,He),ot.substring(He+1)];He+=1}return null}function En(ot){var Ne=ot.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Ne===null?null:[Ne[0],ot.substring(Ne[0].length)]}var Bn,vi,Ln,Mn=["times"];!function(ot){var Ne,He,Ye,at,qe,lt,Et,At,fr,Jr=function(Br){return Br=Br||{},this.isStrokeTransparent=Br.isStrokeTransparent||!1,this.strokeOpacity=Br.strokeOpacity||1,this.strokeStyle=Br.strokeStyle||"#000000",this.fillStyle=Br.fillStyle||"#000000",this.isFillTransparent=Br.isFillTransparent||!1,this.fillOpacity=Br.fillOpacity||1,this.font=Br.font||"10px sans-serif",this.textBaseline=Br.textBaseline||"alphabetic",this.textAlign=Br.textAlign||"left",this.lineWidth=Br.lineWidth||1,this.lineJoin=Br.lineJoin||"miter",this.lineCap=Br.lineCap||"butt",this.path=Br.path||[],this.transform=Br.transform!==void 0?Br.transform.clone():new At,this.globalCompositeOperation=Br.globalCompositeOperation||"normal",this.globalAlpha=Br.globalAlpha||1,this.clip_path=Br.clip_path||[],this.currentPoint=Br.currentPoint||new lt,this.miterLimit=Br.miterLimit||10,this.lastPoint=Br.lastPoint||new lt,this.lineDashOffset=Br.lineDashOffset||0,this.lineDash=Br.lineDash||[],this.margin=Br.margin||[0,0,0,0],this.prevPageLastElemOffset=Br.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Br.ignoreClearRect!="boolean"||Br.ignoreClearRect,this};ot.events.push(["initialized",function(){this.context2d=new Vr(this),Ne=this.internal.f2,He=this.internal.getCoordinateString,Ye=this.internal.getVerticalCoordinateString,at=this.internal.getHorizontalCoordinate,qe=this.internal.getVerticalCoordinate,lt=this.internal.Point,Et=this.internal.Rectangle,At=this.internal.Matrix,fr=new Jr}]);var Vr=function(Br){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _n=Br;Object.defineProperty(this,"pdf",{get:function(){return _n}});var Xn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Xn},set:function(ji){Xn=Boolean(ji)}});var $n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $n},set:function(ji){$n=Boolean(ji)}});var oi=0;Object.defineProperty(this,"posX",{get:function(){return oi},set:function(ji){isNaN(ji)||(oi=ji)}});var Ti=0;Object.defineProperty(this,"posY",{get:function(){return Ti},set:function(ji){isNaN(ji)||(Ti=ji)}}),Object.defineProperty(this,"margin",{get:function(){return fr.margin},set:function(ji){var ha;typeof ji=="number"?ha=[ji,ji,ji,ji]:((ha=new Array(4))[0]=ji[0],ha[1]=ji.length>=2?ji[1]:ha[0],ha[2]=ji.length>=3?ji[2]:ha[0],ha[3]=ji.length>=4?ji[3]:ha[1]),fr.margin=ha}});var Ri=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ri},set:function(ji){Ri=ji}});var Di=0;Object.defineProperty(this,"lastBreak",{get:function(){return Di},set:function(ji){Di=ji}});var oa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oa},set:function(ji){oa=ji}}),Object.defineProperty(this,"ctx",{get:function(){return fr},set:function(ji){ji instanceof Jr&&(fr=ji)}}),Object.defineProperty(this,"path",{get:function(){return fr.path},set:function(ji){fr.path=ji}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(ji){ma=ji}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ji){var ha;ha=dn(ji),this.ctx.fillStyle=ha.style,this.ctx.isFillTransparent=ha.a===0,this.ctx.fillOpacity=ha.a,this.pdf.setFillColor(ha.r,ha.g,ha.b,{a:ha.a}),this.pdf.setTextColor(ha.r,ha.g,ha.b,{a:ha.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ji){var ha=dn(ji);this.ctx.strokeStyle=ha.style,this.ctx.isStrokeTransparent=ha.a===0,this.ctx.strokeOpacity=ha.a,ha.a===0?this.pdf.setDrawColor(255,255,255):(ha.a,this.pdf.setDrawColor(ha.r,ha.g,ha.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ji){["butt","round","square"].indexOf(ji)!==-1&&(this.ctx.lineCap=ji,this.pdf.setLineCap(ji))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ji){isNaN(ji)||(this.ctx.lineWidth=ji,this.pdf.setLineWidth(ji))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ji){["bevel","round","miter"].indexOf(ji)!==-1&&(this.ctx.lineJoin=ji,this.pdf.setLineJoin(ji))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ji){isNaN(ji)||(this.ctx.miterLimit=ji,this.pdf.setMiterLimit(ji))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ji){this.ctx.textBaseline=ji}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ji){["right","end","center","left","start"].indexOf(ji)!==-1&&(this.ctx.textAlign=ji)}});var aa=null;function ba(Rn,ji){if(aa===null){var ha=function(ta){var ra=[];return Object.keys(ta).forEach(function(Ir){ta[Ir].forEach(function(Sr){var Tn=null;switch(Sr){case"bold":Tn={family:Ir,weight:"bold"};break;case"italic":Tn={family:Ir,style:"italic"};break;case"bolditalic":Tn={family:Ir,weight:"bold",style:"italic"};break;case"":case"normal":Tn={family:Ir}}Tn!==null&&(Tn.ref={name:Ir,style:Sr},ra.push(Tn))})}),ra}(Rn.getFontList());aa=function(ta){for(var ra={},Ir=0;Ir<ta.length;++Ir){var Sr=tn(ta[Ir]),Tn=Sr.family,pr=Sr.stretch,Dr=Sr.style,Wr=Sr.weight;ra[Tn]=ra[Tn]||{},ra[Tn][pr]=ra[Tn][pr]||{},ra[Tn][pr][Dr]=ra[Tn][pr][Dr]||{},ra[Tn][pr][Dr][Wr]=Sr}return ra}(ha.concat(ji))}return aa}var bi=null;Object.defineProperty(this,"fontFaces",{get:function(){return bi},set:function(ji){aa=null,bi=ji}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ji){var ha;if(this.ctx.font=ji,(ha=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ji))!==null){var ta=ha[1],ra=(ha[2],ha[3]),Ir=ha[4],Sr=(ha[5],ha[6]),Tn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ir)[2];Ir=Tn==="px"?Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor):Tn==="em"?Math.floor(parseFloat(Ir)*this.pdf.getFontSize()):Math.floor(parseFloat(Ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ir);var pr=function(Lr){var en,bn,On=[],yn=Lr.trim();if(yn==="")return Mn;if(yn in Bt)return[Bt[yn]];for(;yn!=="";){switch(bn=null,en=(yn=Or(yn)).charAt(0)){case'"':case"'":bn=an(yn.substring(1),en);break;default:bn=En(yn)}if(bn===null)return Mn;if(On.push(bn[0]),(yn=Or(bn[1]))!==""&&yn.charAt(0)!==",")return Mn;yn=yn.replace(/^,/,"")}return On}(Sr);if(this.fontFaces){var Dr=it(ba(this.pdf,this.fontFaces),pr.map(function(Lr){return{family:Lr,stretch:"normal",weight:ra,style:ta}}));this.pdf.setFont(Dr.ref.name,Dr.ref.style)}else{var Wr="";(ra==="bold"||parseInt(ra,10)>=700||ta==="bold")&&(Wr="bold"),ta==="italic"&&(Wr+="italic"),Wr.length===0&&(Wr="normal");for(var ln="",Pn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},_t=0;_t<pr.length;_t++){if(this.pdf.internal.getFont(pr[_t],Wr,{noFallback:!0,disableWarning:!0})!==void 0){ln=pr[_t];break}if(Wr==="bolditalic"&&this.pdf.internal.getFont(pr[_t],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ln=pr[_t],Wr="bold";else if(this.pdf.internal.getFont(pr[_t],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ln=pr[_t],Wr="normal";break}}if(ln===""){for(var _r=0;_r<pr.length;_r++)if(Pn[pr[_r]]){ln=Pn[pr[_r]];break}}ln=ln===""?"Times":ln,this.pdf.setFont(ln,Wr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ji){this.ctx.globalCompositeOperation=ji}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ji){this.ctx.globalAlpha=ji}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ji){this.ctx.lineDashOffset=ji,di.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ji){this.ctx.lineDash=ji,di.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ji){this.ctx.ignoreClearRect=Boolean(ji)}})};Vr.prototype.setLineDash=function(pn){this.lineDash=pn},Vr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Vr.prototype.fill=function(){fi.call(this,"fill",!1)},Vr.prototype.stroke=function(){fi.call(this,"stroke",!1)},Vr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Vr.prototype.moveTo=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var _n=this.ctx.transform.applyToPoint(new lt(pn,Br));this.path.push({type:"mt",x:_n.x,y:_n.y}),this.ctx.lastPoint=new lt(pn,Br)},Vr.prototype.closePath=function(){var pn=new lt(0,0),Br=0;for(Br=this.path.length-1;Br!==-1;Br--)if(this.path[Br].type==="begin"&&x()(this.path[Br+1])==="object"&&typeof this.path[Br+1].x=="number"){pn=new lt(this.path[Br+1].x,this.path[Br+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new lt(pn.x,pn.y)},Vr.prototype.lineTo=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var _n=this.ctx.transform.applyToPoint(new lt(pn,Br));this.path.push({type:"lt",x:_n.x,y:_n.y}),this.ctx.lastPoint=new lt(_n.x,_n.y)},Vr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),fi.call(this,null,!0)},Vr.prototype.quadraticCurveTo=function(pn,Br,_n,Xn){if(isNaN(_n)||isNaN(Xn)||isNaN(pn)||isNaN(Br))throw d.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $n=this.ctx.transform.applyToPoint(new lt(_n,Xn)),oi=this.ctx.transform.applyToPoint(new lt(pn,Br));this.path.push({type:"qct",x1:oi.x,y1:oi.y,x:$n.x,y:$n.y}),this.ctx.lastPoint=new lt($n.x,$n.y)},Vr.prototype.bezierCurveTo=function(pn,Br,_n,Xn,$n,oi){if(isNaN($n)||isNaN(oi)||isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ti=this.ctx.transform.applyToPoint(new lt($n,oi)),Ri=this.ctx.transform.applyToPoint(new lt(pn,Br)),Di=this.ctx.transform.applyToPoint(new lt(_n,Xn));this.path.push({type:"bct",x1:Ri.x,y1:Ri.y,x2:Di.x,y2:Di.y,x:Ti.x,y:Ti.y}),this.ctx.lastPoint=new lt(Ti.x,Ti.y)},Vr.prototype.arc=function(pn,Br,_n,Xn,$n,oi){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn)||isNaN($n))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(oi=Boolean(oi),!this.ctx.transform.isIdentity){var Ti=this.ctx.transform.applyToPoint(new lt(pn,Br));pn=Ti.x,Br=Ti.y;var Ri=this.ctx.transform.applyToPoint(new lt(0,_n)),Di=this.ctx.transform.applyToPoint(new lt(0,0));_n=Math.sqrt(Math.pow(Ri.x-Di.x,2)+Math.pow(Ri.y-Di.y,2))}Math.abs($n-Xn)>=2*Math.PI&&(Xn=0,$n=2*Math.PI),this.path.push({type:"arc",x:pn,y:Br,radius:_n,startAngle:Xn,endAngle:$n,counterclockwise:oi})},Vr.prototype.arcTo=function(pn,Br,_n,Xn,$n){throw new Error("arcTo not implemented.")},Vr.prototype.rect=function(pn,Br,_n,Xn){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(pn,Br),this.lineTo(pn+_n,Br),this.lineTo(pn+_n,Br+Xn),this.lineTo(pn,Br+Xn),this.lineTo(pn,Br),this.lineTo(pn+_n,Br),this.lineTo(pn,Br)},Vr.prototype.fillRect=function(pn,Br,_n,Xn){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!gr.call(this)){var $n={};this.lineCap!=="butt"&&($n.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(pn,Br,_n,Xn),this.fill(),$n.hasOwnProperty("lineCap")&&(this.lineCap=$n.lineCap),$n.hasOwnProperty("lineJoin")&&(this.lineJoin=$n.lineJoin)}},Vr.prototype.strokeRect=function(pn,Br,_n,Xn){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Wn.call(this)||(this.beginPath(),this.rect(pn,Br,_n,Xn),this.stroke())},Vr.prototype.clearRect=function(pn,Br,_n,Xn){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn))throw d.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(pn,Br,_n,Xn))},Vr.prototype.save=function(pn){pn=typeof pn!="boolean"||pn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,_n=0;_n<this.pdf.internal.getNumberOfPages();_n++)this.pdf.setPage(_n+1),this.pdf.internal.out("q");if(this.pdf.setPage(Br),pn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Xn=new Jr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Xn}},Vr.prototype.restore=function(pn){pn=typeof pn!="boolean"||pn;for(var Br=this.pdf.internal.getCurrentPageInfo().pageNumber,_n=0;_n<this.pdf.internal.getNumberOfPages();_n++)this.pdf.setPage(_n+1),this.pdf.internal.out("Q");this.pdf.setPage(Br),pn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Vr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var dn=function(Br){var _n,Xn,$n,oi;if(Br.isCanvasGradient===!0&&(Br=Br.getColor()),!Br)return{r:0,g:0,b:0,a:0,style:Br};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Br))_n=0,Xn=0,$n=0,oi=0;else{var Ti=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Br);if(Ti!==null)_n=parseInt(Ti[1]),Xn=parseInt(Ti[2]),$n=parseInt(Ti[3]),oi=1;else if((Ti=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Br))!==null)_n=parseInt(Ti[1]),Xn=parseInt(Ti[2]),$n=parseInt(Ti[3]),oi=parseFloat(Ti[4]);else{if(oi=1,typeof Br=="string"&&Br.charAt(0)!=="#"){var Ri=new l(Br);Br=Ri.ok?Ri.toHex():"#000000"}Br.length===4?(_n=Br.substring(1,2),_n+=_n,Xn=Br.substring(2,3),Xn+=Xn,$n=Br.substring(3,4),$n+=$n):(_n=Br.substring(1,3),Xn=Br.substring(3,5),$n=Br.substring(5,7)),_n=parseInt(_n,16),Xn=parseInt(Xn,16),$n=parseInt($n,16)}}return{r:_n,g:Xn,b:$n,a:oi,style:Br}},gr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Wn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Vr.prototype.fillText=function(pn,Br,_n,Xn){if(isNaN(Br)||isNaN(_n)||typeof pn!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Xn=isNaN(Xn)?void 0:Xn,!gr.call(this)){var $n=Rr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Ut.call(this,{text:pn,x:Br,y:_n,scale:oi,angle:$n,align:this.textAlign,maxWidth:Xn})}},Vr.prototype.strokeText=function(pn,Br,_n,Xn){if(isNaN(Br)||isNaN(_n)||typeof pn!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Wn.call(this)){Xn=isNaN(Xn)?void 0:Xn;var $n=Rr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Ut.call(this,{text:pn,x:Br,y:_n,scale:oi,renderingMode:"stroke",angle:$n,align:this.textAlign,maxWidth:Xn})}},Vr.prototype.measureText=function(pn){if(typeof pn!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Br=this.pdf,_n=this.pdf.internal.scaleFactor,Xn=Br.internal.getFontSize(),$n=Br.getStringUnitWidth(pn)*Xn/Br.internal.scaleFactor,oi=function(Ri){var Di=(Ri=Ri||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Di}}),this};return new oi({width:$n*=Math.round(96*_n/72*1e4)/1e4})},Vr.prototype.scale=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var _n=new At(pn,0,0,Br,0,0);this.ctx.transform=this.ctx.transform.multiply(_n)},Vr.prototype.rotate=function(pn){if(isNaN(pn))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Br=new At(Math.cos(pn),Math.sin(pn),-Math.sin(pn),Math.cos(pn),0,0);this.ctx.transform=this.ctx.transform.multiply(Br)},Vr.prototype.translate=function(pn,Br){if(isNaN(pn)||isNaN(Br))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var _n=new At(1,0,0,1,pn,Br);this.ctx.transform=this.ctx.transform.multiply(_n)},Vr.prototype.transform=function(pn,Br,_n,Xn,$n,oi){if(isNaN(pn)||isNaN(Br)||isNaN(_n)||isNaN(Xn)||isNaN($n)||isNaN(oi))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ti=new At(pn,Br,_n,Xn,$n,oi);this.ctx.transform=this.ctx.transform.multiply(Ti)},Vr.prototype.setTransform=function(pn,Br,_n,Xn,$n,oi){pn=isNaN(pn)?1:pn,Br=isNaN(Br)?0:Br,_n=isNaN(_n)?0:_n,Xn=isNaN(Xn)?1:Xn,$n=isNaN($n)?0:$n,oi=isNaN(oi)?0:oi,this.ctx.transform=new At(pn,Br,_n,Xn,$n,oi)};var kr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Vr.prototype.drawImage=function(pn,Br,_n,Xn,$n,oi,Ti,Ri,Di){var oa=this.pdf.getImageProperties(pn),ma=1,aa=1,ba=1,bi=1;Xn!==void 0&&Ri!==void 0&&(ba=Ri/Xn,bi=Di/$n,ma=oa.width/Xn*Ri/Xn,aa=oa.height/$n*Di/$n),oi===void 0&&(oi=Br,Ti=_n,Br=0,_n=0),Xn!==void 0&&Ri===void 0&&(Ri=Xn,Di=$n),Xn===void 0&&Ri===void 0&&(Ri=oa.width,Di=oa.height);for(var Rn,ji=this.ctx.transform.decompose(),ha=Rr(ji.rotate.shx),ta=new At,ra=(ta=(ta=(ta=ta.multiply(ji.translate)).multiply(ji.skew)).multiply(ji.scale)).applyToRectangle(new Et(oi-Br*ba,Ti-_n*bi,Xn*ma,$n*aa)),Ir=Fn.call(this,ra),Sr=[],Tn=0;Tn<Ir.length;Tn+=1)Sr.indexOf(Ir[Tn])===-1&&Sr.push(Ir[Tn]);if(ei(Sr),this.autoPaging)for(var pr=Sr[0],Dr=Sr[Sr.length-1],Wr=pr;Wr<Dr+1;Wr++){this.pdf.setPage(Wr);var ln=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Pn=Wr===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_r=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Lr=Wr===1?0:_t+(Wr-2)*_r;if(this.ctx.clip_path.length!==0){var en=this.path;Rn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=$r(Rn,this.posX+this.margin[3],-Lr+Pn+this.ctx.prevPageLastElemOffset),Pi.call(this,"fill",!0),this.path=en}var bn=JSON.parse(JSON.stringify(ra));bn=$r([bn],this.posX+this.margin[3],-Lr+Pn+this.ctx.prevPageLastElemOffset)[0];var On=(Wr>pr||Wr<Dr)&&kr.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,_r,null).clip().discardPath()),this.pdf.addImage(pn,"JPEG",bn.x,bn.y,bn.w,bn.h,null,null,ha),On&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(pn,"JPEG",ra.x,ra.y,ra.w,ra.h,null,null,ha)};var Fn=function(Br,_n,Xn){var $n=[];_n=_n||this.pdf.internal.pageSize.width,Xn=Xn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oi=this.posY+this.ctx.prevPageLastElemOffset;switch(Br.type){default:case"mt":case"lt":$n.push(Math.floor((Br.y+oi)/Xn)+1);break;case"arc":$n.push(Math.floor((Br.y+oi-Br.radius)/Xn)+1),$n.push(Math.floor((Br.y+oi+Br.radius)/Xn)+1);break;case"qct":var Ti=Vn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x,Br.y);$n.push(Math.floor((Ti.y+oi)/Xn)+1),$n.push(Math.floor((Ti.y+Ti.h+oi)/Xn)+1);break;case"bct":var Ri=kn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Br.x1,Br.y1,Br.x2,Br.y2,Br.x,Br.y);$n.push(Math.floor((Ri.y+oi)/Xn)+1),$n.push(Math.floor((Ri.y+Ri.h+oi)/Xn)+1);break;case"rect":$n.push(Math.floor((Br.y+oi)/Xn)+1),$n.push(Math.floor((Br.y+Br.h+oi)/Xn)+1)}for(var Di=0;Di<$n.length;Di+=1)for(;this.pdf.internal.getNumberOfPages()<$n[Di];)vn.call(this);return $n},vn=function(){var Br=this.fillStyle,_n=this.strokeStyle,Xn=this.font,$n=this.lineCap,oi=this.lineWidth,Ti=this.lineJoin;this.pdf.addPage(),this.fillStyle=Br,this.strokeStyle=_n,this.font=Xn,this.lineCap=$n,this.lineWidth=oi,this.lineJoin=Ti},$r=function(Br,_n,Xn){for(var $n=0;$n<Br.length;$n++)switch(Br[$n].type){case"bct":Br[$n].x2+=_n,Br[$n].y2+=Xn;case"qct":Br[$n].x1+=_n,Br[$n].y1+=Xn;case"mt":case"lt":case"arc":default:Br[$n].x+=_n,Br[$n].y+=Xn}return Br},ei=function(Br){return Br.sort(function(_n,Xn){return _n-Xn})},fi=function(Br,_n){for(var Xn,$n,oi=this.fillStyle,Ti=this.strokeStyle,Ri=this.lineCap,Di=this.lineWidth,oa=Math.abs(Di*this.ctx.transform.scaleX),ma=this.lineJoin,aa=JSON.parse(JSON.stringify(this.path)),ba=JSON.parse(JSON.stringify(this.path)),bi=[],Rn=0;Rn<ba.length;Rn++)if(ba[Rn].x!==void 0)for(var ji=Fn.call(this,ba[Rn]),ha=0;ha<ji.length;ha+=1)bi.indexOf(ji[ha])===-1&&bi.push(ji[ha]);for(var ta=0;ta<bi.length;ta++)for(;this.pdf.internal.getNumberOfPages()<bi[ta];)vn.call(this);if(ei(bi),this.autoPaging)for(var ra=bi[0],Ir=bi[bi.length-1],Sr=ra;Sr<Ir+1;Sr++){this.pdf.setPage(Sr),this.fillStyle=oi,this.strokeStyle=Ti,this.lineCap=Ri,this.lineWidth=oa,this.lineJoin=ma;var Tn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pr=Sr===1?this.posY+this.margin[0]:this.margin[0],Dr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ln=Sr===1?0:Dr+(Sr-2)*Wr;if(this.ctx.clip_path.length!==0){var Pn=this.path;Xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=$r(Xn,this.posX+this.margin[3],-ln+pr+this.ctx.prevPageLastElemOffset),Pi.call(this,Br,!0),this.path=Pn}if($n=JSON.parse(JSON.stringify(aa)),this.path=$r($n,this.posX+this.margin[3],-ln+pr+this.ctx.prevPageLastElemOffset),_n===!1||Sr===0){var _t=(Sr>ra||Sr<Ir)&&kr.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Tn,Wr,null).clip().discardPath()),Pi.call(this,Br,_n),_t&&this.pdf.restoreGraphicsState()}this.lineWidth=Di}else this.lineWidth=oa,Pi.call(this,Br,_n),this.lineWidth=Di;this.path=aa},Pi=function(Br,_n){if((Br!=="stroke"||_n||!Wn.call(this))&&(Br==="stroke"||_n||!gr.call(this))){for(var Xn,$n,oi=[],Ti=this.path,Ri=0;Ri<Ti.length;Ri++){var Di=Ti[Ri];switch(Di.type){case"begin":oi.push({begin:!0});break;case"close":oi.push({close:!0});break;case"mt":oi.push({start:Di,deltas:[],abs:[]});break;case"lt":var oa=oi.length;if(Ti[Ri-1]&&!isNaN(Ti[Ri-1].x)&&(Xn=[Di.x-Ti[Ri-1].x,Di.y-Ti[Ri-1].y],oa>0)){for(;oa>=0;oa--)if(oi[oa-1].close!==!0&&oi[oa-1].begin!==!0){oi[oa-1].deltas.push(Xn),oi[oa-1].abs.push(Di);break}}break;case"bct":Xn=[Di.x1-Ti[Ri-1].x,Di.y1-Ti[Ri-1].y,Di.x2-Ti[Ri-1].x,Di.y2-Ti[Ri-1].y,Di.x-Ti[Ri-1].x,Di.y-Ti[Ri-1].y],oi[oi.length-1].deltas.push(Xn);break;case"qct":var ma=Ti[Ri-1].x+2/3*(Di.x1-Ti[Ri-1].x),aa=Ti[Ri-1].y+2/3*(Di.y1-Ti[Ri-1].y),ba=Di.x+2/3*(Di.x1-Di.x),bi=Di.y+2/3*(Di.y1-Di.y),Rn=Di.x,ji=Di.y;Xn=[ma-Ti[Ri-1].x,aa-Ti[Ri-1].y,ba-Ti[Ri-1].x,bi-Ti[Ri-1].y,Rn-Ti[Ri-1].x,ji-Ti[Ri-1].y],oi[oi.length-1].deltas.push(Xn);break;case"arc":oi.push({deltas:[],abs:[],arc:!0}),Array.isArray(oi[oi.length-1].abs)&&oi[oi.length-1].abs.push(Di)}}$n=_n?null:Br==="stroke"?"stroke":"fill";for(var ha=!1,ta=0;ta<oi.length;ta++)if(oi[ta].arc)for(var ra=oi[ta].abs,Ir=0;Ir<ra.length;Ir++){var Sr=ra[Ir];Sr.type==="arc"?Gn.call(this,Sr.x,Sr.y,Sr.radius,Sr.startAngle,Sr.endAngle,Sr.counterclockwise,void 0,_n,!ha):Kt.call(this,Sr.x,Sr.y),ha=!0}else if(oi[ta].close===!0)this.pdf.internal.out("h"),ha=!1;else if(oi[ta].begin!==!0){var Tn=oi[ta].start.x,pr=oi[ta].start.y;Lt.call(this,oi[ta].deltas,Tn,pr),ha=!0}$n&&Wt.call(this,$n),_n&&Ot.call(this)}},Zr=function(Br){var _n=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Xn=_n*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Br-Xn;case"top":return Br+_n-Xn;case"hanging":return Br+_n-2*Xn;case"middle":return Br+_n/2-Xn;case"ideographic":return Br;case"alphabetic":default:return Br}},Sn=function(Br){return Br+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Vr.prototype.createLinearGradient=function(){var pn=function(){};return pn.colorStops=[],pn.addColorStop=function(Br,_n){this.colorStops.push([Br,_n])},pn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},pn.isCanvasGradient=!0,pn},Vr.prototype.createPattern=function(){return this.createLinearGradient()},Vr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Gn=function(Br,_n,Xn,$n,oi,Ti,Ri,Di,oa){for(var ma=vr.call(this,Xn,$n,oi,Ti),aa=0;aa<ma.length;aa++){var ba=ma[aa];aa===0&&(oa?Rt.call(this,ba.x1+Br,ba.y1+_n):Kt.call(this,ba.x1+Br,ba.y1+_n)),cr.call(this,Br,_n,ba.x2,ba.y2,ba.x3,ba.y3,ba.x4,ba.y4)}Di?Ot.call(this):Wt.call(this,Ri)},Wt=function(Br){switch(Br){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ot=function(){this.pdf.clip(),this.pdf.discardPath()},Rt=function(Br,_n){this.pdf.internal.out(He(Br)+" "+Ye(_n)+" m")},Ut=function(Br){var _n;switch(Br.align){case"right":case"end":_n="right";break;case"center":_n="center";break;case"left":case"start":default:_n="left"}var Xn=this.pdf.getTextDimensions(Br.text),$n=Zr.call(this,Br.y),oi=Sn.call(this,$n)-Xn.h,Ti=this.ctx.transform.applyToPoint(new lt(Br.x,$n)),Ri=this.ctx.transform.decompose(),Di=new At;Di=(Di=(Di=Di.multiply(Ri.translate)).multiply(Ri.skew)).multiply(Ri.scale);for(var oa,ma,aa,ba=this.ctx.transform.applyToRectangle(new Et(Br.x,$n,Xn.w,Xn.h)),bi=Di.applyToRectangle(new Et(Br.x,oi,Xn.w,Xn.h)),Rn=Fn.call(this,bi),ji=[],ha=0;ha<Rn.length;ha+=1)ji.indexOf(Rn[ha])===-1&&ji.push(Rn[ha]);if(ei(ji),this.autoPaging)for(var ta=ji[0],ra=ji[ji.length-1],Ir=ta;Ir<ra+1;Ir++){this.pdf.setPage(Ir);var Sr=Ir===1?this.posY+this.margin[0]:this.margin[0],Tn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],pr=this.pdf.internal.pageSize.height-this.margin[2],Dr=pr-this.margin[0],Wr=this.pdf.internal.pageSize.width-this.margin[1],ln=Wr-this.margin[3],Pn=Ir===1?0:Tn+(Ir-2)*Dr;if(this.ctx.clip_path.length!==0){var _t=this.path;oa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=$r(oa,this.posX+this.margin[3],-1*Pn+Sr),Pi.call(this,"fill",!0),this.path=_t}var _r=$r([JSON.parse(JSON.stringify(bi))],this.posX+this.margin[3],-Pn+Sr+this.ctx.prevPageLastElemOffset)[0];Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),aa=this.lineWidth,this.lineWidth=aa*Br.scale);var Lr=this.autoPaging!=="text";if(Lr||_r.y+_r.h<=pr){if(Lr||_r.y>=Sr&&_r.x<=Wr){var en=Lr?Br.text:this.pdf.splitTextToSize(Br.text,Br.maxWidth||Wr-_r.x)[0],bn=$r([JSON.parse(JSON.stringify(ba))],this.posX+this.margin[3],-Pn+Sr+this.ctx.prevPageLastElemOffset)[0],On=Lr&&(Ir>ta||Ir<ra)&&kr.call(this);On&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,Dr,null).clip().discardPath()),this.pdf.text(en,bn.x,bn.y,{angle:Br.angle,align:_n,renderingMode:Br.renderingMode}),On&&this.pdf.restoreGraphicsState()}}else _r.y<pr&&(this.ctx.prevPageLastElemOffset+=pr-_r.y);Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)}else Br.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Br.scale),aa=this.lineWidth,this.lineWidth=aa*Br.scale),this.pdf.text(Br.text,Ti.x+this.posX,Ti.y+this.posY,{angle:Br.angle,align:_n,renderingMode:Br.renderingMode,maxWidth:Br.maxWidth}),Br.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=aa)},Kt=function(Br,_n,Xn,$n){Xn=Xn||0,$n=$n||0,this.pdf.internal.out(He(Br+Xn)+" "+Ye(_n+$n)+" l")},Lt=function(Br,_n,Xn){return this.pdf.lines(Br,_n,Xn,null,null)},cr=function(Br,_n,Xn,$n,oi,Ti,Ri,Di){this.pdf.internal.out([Ne(at(Xn+Br)),Ne(qe($n+_n)),Ne(at(oi+Br)),Ne(qe(Ti+_n)),Ne(at(Ri+Br)),Ne(qe(Di+_n)),"c"].join(" "))},vr=function(Br,_n,Xn,$n){for(var oi=2*Math.PI,Ti=Math.PI/2;_n>Xn;)_n-=oi;var Ri=Math.abs(Xn-_n);Ri<oi&&$n&&(Ri=oi-Ri);for(var Di=[],oa=$n?-1:1,ma=_n;Ri>1e-5;){var aa=ma+oa*Math.min(Ri,Ti);Di.push(yr.call(this,Br,ma,aa)),Ri-=Math.abs(aa-ma),ma=aa}return Di},yr=function(Br,_n,Xn){var $n=(Xn-_n)/2,oi=Br*Math.cos($n),Ti=Br*Math.sin($n),Ri=oi,Di=-Ti,oa=Ri*Ri+Di*Di,ma=oa+Ri*oi+Di*Ti,aa=4/3*(Math.sqrt(2*oa*ma)-ma)/(Ri*Ti-Di*oi),ba=Ri-aa*Di,bi=Di+aa*Ri,Rn=ba,ji=-bi,ha=$n+_n,ta=Math.cos(ha),ra=Math.sin(ha);return{x1:Br*Math.cos(_n),y1:Br*Math.sin(_n),x2:ba*ta-bi*ra,y2:ba*ra+bi*ta,x3:Rn*ta-ji*ra,y3:Rn*ra+ji*ta,x4:Br*Math.cos(Xn),y4:Br*Math.sin(Xn)}},Rr=function(Br){return 180*Br/Math.PI},Vn=function(Br,_n,Xn,$n,oi,Ti){var Ri=Br+.5*(Xn-Br),Di=_n+.5*($n-_n),oa=oi+.5*(Xn-oi),ma=Ti+.5*($n-Ti),aa=Math.min(Br,oi,Ri,oa),ba=Math.max(Br,oi,Ri,oa),bi=Math.min(_n,Ti,Di,ma),Rn=Math.max(_n,Ti,Di,ma);return new Et(aa,bi,ba-aa,Rn-bi)},kn=function(Br,_n,Xn,$n,oi,Ti,Ri,Di){var oa,ma,aa,ba,bi,Rn,ji,ha,ta,ra,Ir,Sr,Tn,pr,Dr=Xn-Br,Wr=$n-_n,ln=oi-Xn,Pn=Ti-$n,_t=Ri-oi,_r=Di-Ti;for(ma=0;ma<41;ma++)ta=(ji=(aa=Br+(oa=ma/40)*Dr)+oa*((bi=Xn+oa*ln)-aa))+oa*(bi+oa*(oi+oa*_t-bi)-ji),ra=(ha=(ba=_n+oa*Wr)+oa*((Rn=$n+oa*Pn)-ba))+oa*(Rn+oa*(Ti+oa*_r-Rn)-ha),ma==0?(Ir=ta,Sr=ra,Tn=ta,pr=ra):(Ir=Math.min(Ir,ta),Sr=Math.min(Sr,ra),Tn=Math.max(Tn,ta),pr=Math.max(pr,ra));return new Et(Math.round(Ir),Math.round(Sr),Math.round(Tn-Ir),Math.round(pr-Sr))},di=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Br,_n,Xn=(Br=this.ctx.lineDash,_n=this.ctx.lineDashOffset,JSON.stringify({lineDash:Br,lineDashOffset:_n}));this.prevLineDash!==Xn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Xn)}}}(z.API),function(ot){var Ne=function(lt){var Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn;for(/[^\x00-\xFF]/.test(lt),At=[],fr=0,Jr=(lt+=Et="\0\0\0\0".slice(lt.length%4||4)).length;Jr>fr;fr+=4)(Vr=(lt.charCodeAt(fr)<<24)+(lt.charCodeAt(fr+1)<<16)+(lt.charCodeAt(fr+2)<<8)+lt.charCodeAt(fr+3))!==0?(dn=(Vr=((Vr=((Vr=((Vr=(Vr-(Fn=Vr%85))/85)-(kr=Vr%85))/85)-(Wn=Vr%85))/85)-(gr=Vr%85))/85)%85,At.push(dn+33,gr+33,Wn+33,kr+33,Fn+33)):At.push(122);return function(vn,$r){for(var ei=$r;ei>0;ei--)vn.pop()}(At,Et.length),String.fromCharCode.apply(String,At)+"~>"},He=function(lt){var Et,At,fr,Jr,Vr,dn=String,gr="length",Wn=255,kr="charCodeAt",Fn="slice",vn="replace";for(lt[Fn](-2),lt=lt[Fn](0,-2)[vn](/\s/g,"")[vn]("z","!!!!!"),fr=[],Jr=0,Vr=(lt+=Et="uuuuu"[Fn](lt[gr]%5||5))[gr];Vr>Jr;Jr+=5)At=52200625*(lt[kr](Jr)-33)+614125*(lt[kr](Jr+1)-33)+7225*(lt[kr](Jr+2)-33)+85*(lt[kr](Jr+3)-33)+(lt[kr](Jr+4)-33),fr.push(Wn&At>>24,Wn&At>>16,Wn&At>>8,Wn&At);return function($r,ei){for(var fi=ei;fi>0;fi--)$r.pop()}(fr,Et[gr]),dn.fromCharCode.apply(dn,fr)},Ye=function(lt){var Et=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((lt=lt.replace(/\s/g,"")).indexOf(">")!==-1&&(lt=lt.substr(0,lt.indexOf(">"))),lt.length%2&&(lt+="0"),Et.test(lt)===!1)return"";for(var At="",fr=0;fr<lt.length;fr+=2)At+=String.fromCharCode("0x"+(lt[fr]+lt[fr+1]));return At},at=function(lt){for(var Et=new Uint8Array(lt.length),At=lt.length;At--;)Et[At]=lt.charCodeAt(At);return lt=(Et=Object(A.b)(Et)).reduce(function(fr,Jr){return fr+String.fromCharCode(Jr)},"")};ot.processDataByFilters=function(qe,lt){var Et=0,At=qe||"",fr=[];for(typeof(lt=lt||[])=="string"&&(lt=[lt]),Et=0;Et<lt.length;Et+=1)switch(lt[Et]){case"ASCII85Decode":case"/ASCII85Decode":At=He(At),fr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":At=Ne(At),fr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":At=Ye(At),fr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":At=At.split("").map(function(Jr){return("0"+Jr.charCodeAt().toString(16)).slice(-2)}).join("")+">",fr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":At=at(At),fr.push("/FlateDecode");break;default:throw new Error('The filter: "'+lt[Et]+'" is not implemented')}return{data:At,reverseChain:fr.reverse().join(" ")}}}(z.API),function(ot){ot.loadFile=function(Ne,He,Ye){return function(at,qe,lt){qe=qe!==!1,lt=typeof lt=="function"?lt:function(){};var Et=void 0;try{Et=function(At,fr,Jr){var Vr=new XMLHttpRequest,dn=0,gr=function(kr){var Fn=kr.length,vn=[],$r=String.fromCharCode;for(dn=0;dn<Fn;dn+=1)vn.push($r(255&kr.charCodeAt(dn)));return vn.join("")};if(Vr.open("GET",At,!fr),Vr.overrideMimeType("text/plain; charset=x-user-defined"),fr===!1&&(Vr.onload=function(){Vr.status===200?Jr(gr(this.responseText)):Jr(void 0)}),Vr.send(null),fr&&Vr.status===200)return gr(Vr.responseText)}(at,qe,lt)}catch(At){}return Et}(Ne,He,Ye)},ot.loadImageFile=ot.loadFile}(z.API),function(ot){function Ne(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(r.t.bind(null,"wOnQ",7))).catch(function(lt){return Promise.reject(new Error("Could not load html2canvas: "+lt))}).then(function(lt){return lt.default?lt.default:lt})}function He(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):r.e(246).then(r.t.bind(null,"qZ2Q",7))).catch(function(lt){return Promise.reject(new Error("Could not load dompurify: "+lt))}).then(function(lt){return lt.default?lt.default:lt})}var Ye=function(Et){var At=x()(Et);return At==="undefined"?"undefined":At==="string"||Et instanceof String?"string":At==="number"||Et instanceof Number?"number":At==="function"||Et instanceof Function?"function":Et&&Et.constructor===Array?"array":Et&&Et.nodeType===1?"element":At==="object"?"object":"unknown"},at=function(Et,At){var fr=document.createElement(Et);for(var Jr in At.className&&(fr.className=At.className),At.innerHTML&&At.dompurify&&(fr.innerHTML=At.dompurify.sanitize(At.innerHTML)),At.style)fr.style[Jr]=At.style[Jr];return fr},qe=function lt(Et){var At=Object.assign(lt.convert(Promise.resolve()),JSON.parse(JSON.stringify(lt.template))),fr=lt.convert(Promise.resolve(),At);return fr=(fr=fr.setProgress(1,lt,1,[lt])).set(Et)};(qe.prototype=Object.create(Promise.prototype)).constructor=qe,qe.convert=function(lt,Et){return lt.__proto__=Et||qe.prototype,lt},qe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},qe.prototype.from=function(lt,Et){return this.then(function(){switch(Et=Et||function(At){switch(Ye(At)){case"string":return"string";case"element":return At.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(lt)){case"string":return this.then(He).then(function(At){return this.set({src:at("div",{innerHTML:lt,dompurify:At})})});case"element":return this.set({src:lt});case"canvas":return this.set({canvas:lt});case"img":return this.set({img:lt});default:return this.error("Unknown source type.")}})},qe.prototype.to=function(lt){switch(lt){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},qe.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var lt={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Et=function At(fr,Jr){for(var Vr=fr.nodeType===3?document.createTextNode(fr.nodeValue):fr.cloneNode(!1),dn=fr.firstChild;dn;dn=dn.nextSibling)Jr!==!0&&dn.nodeType===1&&dn.nodeName==="SCRIPT"||Vr.appendChild(At(dn,Jr));return fr.nodeType===1&&(fr.nodeName==="CANVAS"?(Vr.width=fr.width,Vr.height=fr.height,Vr.getContext("2d").drawImage(fr,0,0)):fr.nodeName!=="TEXTAREA"&&fr.nodeName!=="SELECT"||(Vr.value=fr.value),Vr.addEventListener("load",function(){Vr.scrollTop=fr.scrollTop,Vr.scrollLeft=fr.scrollLeft},!0)),Vr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Et.tagName==="BODY"&&(lt.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=at("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=at("div",{className:"html2pdf__container",style:lt}),this.prop.container.appendChild(Et),this.prop.container.firstChild.appendChild(at("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},qe.prototype.toCanvas=function(){var lt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(lt).then(Ne).then(function(Et){var At=Object.assign({},this.opt.html2canvas);return delete At.onrendered,Et(this.prop.container,At)}).then(function(Et){(this.opt.html2canvas.onrendered||function(){})(Et),this.prop.canvas=Et,document.body.removeChild(this.prop.overlay)})},qe.prototype.toContext2d=function(){var lt=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(lt).then(Ne).then(function(Et){var At=this.opt.jsPDF,fr=this.opt.fontFaces,Jr=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Vr=Object.assign({async:!0,allowTaint:!0,scale:Jr,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Vr.onrendered,At.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,At.context2d.posX=this.opt.x,At.context2d.posY=this.opt.y,At.context2d.margin=this.opt.margin,At.context2d.fontFaces=fr,fr)for(var dn=0;dn<fr.length;++dn){var gr=fr[dn],Wn=gr.src.find(function(kr){return kr.format==="truetype"});Wn&&At.addFont(Wn.url,gr.ref.name,gr.ref.style)}return Vr.windowHeight=Vr.windowHeight||0,Vr.windowHeight=Vr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Vr.windowHeight,At.context2d.save(!0),Et(this.prop.container,Vr)}).then(function(Et){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Et),this.prop.canvas=Et,document.body.removeChild(this.prop.overlay)})},qe.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var lt=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=lt})},qe.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},qe.prototype.output=function(lt,Et,At){return(At=At||"pdf").toLowerCase()==="img"||At.toLowerCase()==="image"?this.outputImg(lt,Et):this.outputPdf(lt,Et)},qe.prototype.outputPdf=function(lt,Et){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(lt,Et)})},qe.prototype.outputImg=function(lt){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(lt){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+lt+'" is not supported.'}})},qe.prototype.save=function(lt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(lt?{filename:lt}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},qe.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},qe.prototype.set=function(lt){if(Ye(lt)!=="object")return this;var Et=Object.keys(lt||{}).map(function(At){if(At in qe.template.prop)return function(){this.prop[At]=lt[At]};switch(At){case"margin":return this.setMargin.bind(this,lt.margin);case"jsPDF":return function(){return this.opt.jsPDF=lt.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,lt.pageSize);default:return function(){this.opt[At]=lt[At]}}},this);return this.then(function(){return this.thenList(Et)})},qe.prototype.get=function(lt,Et){return this.then(function(){var At=lt in qe.template.prop?this.prop[lt]:this.opt[lt];return Et?Et(At):At})},qe.prototype.setMargin=function(lt){return this.then(function(){switch(Ye(lt)){case"number":lt=[lt,lt,lt,lt];case"array":if(lt.length===2&&(lt=[lt[0],lt[1],lt[0],lt[1]]),lt.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=lt}).then(this.setPageSize)},qe.prototype.setPageSize=function(lt){function Et(At,fr){return Math.floor(At*fr/72*96)}return this.then(function(){(lt=lt||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(lt.inner={width:lt.width-this.opt.margin[1]-this.opt.margin[3],height:lt.height-this.opt.margin[0]-this.opt.margin[2]},lt.inner.px={width:Et(lt.inner.width,lt.k),height:Et(lt.inner.height,lt.k)},lt.inner.ratio=lt.inner.height/lt.inner.width),this.prop.pageSize=lt})},qe.prototype.setProgress=function(lt,Et,At,fr){return lt!=null&&(this.progress.val=lt),Et!=null&&(this.progress.state=Et),At!=null&&(this.progress.n=At),fr!=null&&(this.progress.stack=fr),this.progress.ratio=this.progress.val/this.progress.state,this},qe.prototype.updateProgress=function(lt,Et,At,fr){return this.setProgress(lt?this.progress.val+lt:null,Et||null,At?this.progress.n+At:null,fr?this.progress.stack.concat(fr):null)},qe.prototype.then=function(lt,Et){var At=this;return this.thenCore(lt,Et,function(fr,Jr){return At.updateProgress(null,null,1,[fr]),Promise.prototype.then.call(this,function(Vr){return At.updateProgress(null,fr),Vr}).then(fr,Jr).then(function(Vr){return At.updateProgress(1),Vr})})},qe.prototype.thenCore=function(lt,Et,At){At=At||Promise.prototype.then,lt&&(lt=lt.bind(this)),Et&&(Et=Et.bind(this));var fr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:qe.convert(Object.assign({},this),Promise.prototype),Jr=At.call(fr,lt,Et);return qe.convert(Jr,this.__proto__)},qe.prototype.thenExternal=function(lt,Et){return Promise.prototype.then.call(this,lt,Et)},qe.prototype.thenList=function(lt){var Et=this;return lt.forEach(function(At){Et=Et.thenCore(At)}),Et},qe.prototype.catch=function(lt){lt&&(lt=lt.bind(this));var Et=Promise.prototype.catch.call(this,lt);return qe.convert(Et,this)},qe.prototype.catchExternal=function(lt){return Promise.prototype.catch.call(this,lt)},qe.prototype.error=function(lt){return this.then(function(){throw new Error(lt)})},qe.prototype.using=qe.prototype.set,qe.prototype.saveAs=qe.prototype.save,qe.prototype.export=qe.prototype.output,qe.prototype.run=qe.prototype.then,z.getPageSize=function(lt,Et,At){if(x()(lt)==="object"){var fr=lt;lt=fr.orientation,Et=fr.unit||Et,At=fr.format||At}Et=Et||"mm",At=At||"a4",lt=(""+(lt||"P")).toLowerCase();var Jr,Vr=(""+At).toLowerCase(),dn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Et){case"pt":Jr=1;break;case"mm":Jr=72/25.4;break;case"cm":Jr=72/2.54;break;case"in":Jr=72;break;case"px":Jr=.75;break;case"pc":case"em":Jr=12;break;case"ex":Jr=6;break;default:throw"Invalid unit: "+Et}var gr,Wn=0,kr=0;if(dn.hasOwnProperty(Vr))Wn=dn[Vr][1]/Jr,kr=dn[Vr][0]/Jr;else try{Wn=At[1],kr=At[0]}catch(Fn){throw new Error("Invalid format: "+At)}if(lt==="p"||lt==="portrait")lt="p",kr>Wn&&(gr=kr,kr=Wn,Wn=gr);else{if(lt!=="l"&&lt!=="landscape")throw"Invalid orientation: "+lt;lt="l",Wn>kr&&(gr=kr,kr=Wn,Wn=gr)}return{width:kr,height:Wn,unit:Et,k:Jr,orientation:lt}},ot.html=function(lt,Et){(Et=Et||{}).callback=Et.callback||function(){},Et.html2canvas=Et.html2canvas||{},Et.html2canvas.canvas=Et.html2canvas.canvas||this.canvas,Et.jsPDF=Et.jsPDF||this,Et.fontFaces=Et.fontFaces?Et.fontFaces.map(tn):null;var At=new qe(Et);return Et.worker?At:At.from(lt).doCallback()}}(z.API),z.API.addJS=function(ot){return Ln=ot,this.internal.events.subscribe("postPutResources",function(){Bn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Bn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ln+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Bn!==void 0&&vi!==void 0&&this.internal.out("/Names <</JavaScript "+Bn+" 0 R>>")}),this},function(ot){var Ne;ot.events.push(["postPutResources",function(){var He=this,Ye=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var at=He.outline.render().split(/\r\n/),qe=0;qe<at.length;qe++){var lt=at[qe],Et=Ye.exec(lt);if(Et!=null){var At=Et[1];He.internal.newObjectDeferredBegin(At,!1)}He.internal.write(lt)}if(this.outline.createNamedDestinations){var fr=this.internal.pages.length,Jr=[];for(qe=0;qe<fr;qe++){var Vr=He.internal.newObject();Jr.push(Vr);var dn=He.internal.getPageInfo(qe+1);He.internal.write("<< /D["+dn.objId+" 0 R /XYZ null null null]>> endobj")}var gr=He.internal.newObject();for(He.internal.write("<< /Names [ "),qe=0;qe<Jr.length;qe++)He.internal.write("(page_"+(qe+1)+")"+Jr[qe]+" 0 R");He.internal.write(" ] >>","endobj"),Ne=He.internal.newObject(),He.internal.write("<< /Dests "+gr+" 0 R"),He.internal.write(">>","endobj")}}]),ot.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+Ne+" 0 R"))}]),ot.events.push(["initialized",function(){var He=this;He.outline={createNamedDestinations:!1,root:{children:[]}},He.outline.add=function(Ye,at,qe){var lt={title:at,options:qe,children:[]};return Ye==null&&(Ye=this.root),Ye.children.push(lt),lt},He.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=He,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},He.outline.genIds_r=function(Ye){Ye.id=He.internal.newObjectDeferred();for(var at=0;at<Ye.children.length;at++)this.genIds_r(Ye.children[at])},He.outline.renderRoot=function(Ye){this.objStart(Ye),this.line("/Type /Outlines"),Ye.children.length>0&&(this.line("/First "+this.makeRef(Ye.children[0])),this.line("/Last "+this.makeRef(Ye.children[Ye.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ye)),this.objEnd()},He.outline.renderItems=function(Ye){for(var at=this.ctx.pdf.internal.getVerticalCoordinateString,qe=0;qe<Ye.children.length;qe++){var lt=Ye.children[qe];this.objStart(lt),this.line("/Title "+this.makeString(lt.title)),this.line("/Parent "+this.makeRef(Ye)),qe>0&&this.line("/Prev "+this.makeRef(Ye.children[qe-1])),qe<Ye.children.length-1&&this.line("/Next "+this.makeRef(Ye.children[qe+1])),lt.children.length>0&&(this.line("/First "+this.makeRef(lt.children[0])),this.line("/Last "+this.makeRef(lt.children[lt.children.length-1])));var Et=this.count=this.count_r({count:0},lt);if(Et>0&&this.line("/Count "+Et),lt.options&&lt.options.pageNumber){var At=He.internal.getPageInfo(lt.options.pageNumber);this.line("/Dest ["+At.objId+" 0 R /XYZ 0 "+at(0)+" 0]")}this.objEnd()}for(var fr=0;fr<Ye.children.length;fr++)this.renderItems(Ye.children[fr])},He.outline.line=function(Ye){this.ctx.val+=Ye+`\r
`},He.outline.makeRef=function(Ye){return Ye.id+" 0 R"},He.outline.makeString=function(Ye){return"("+He.internal.pdfEscape(Ye)+")"},He.outline.objStart=function(Ye){this.ctx.val+=`\r
`+Ye.id+` 0 obj\r
<<\r
`},He.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},He.outline.count_r=function(Ye,at){for(var qe=0;qe<at.children.length;qe++)Ye.count++,this.count_r(Ye,at.children[qe]);return Ye.count}}])}(z.API),function(ot){var Ne=[192,193,194,195,196,197,198,199];ot.processJPEG=function(He,Ye,at,qe,lt,Et){var At,fr=this.decode.DCT_DECODE,Jr=null;if(typeof He=="string"||this.__addimage__.isArrayBuffer(He)||this.__addimage__.isArrayBufferView(He)){switch(He=lt||He,He=this.__addimage__.isArrayBuffer(He)?new Uint8Array(He):He,(At=function(Vr){for(var dn,gr=256*Vr.charCodeAt(4)+Vr.charCodeAt(5),Wn=Vr.length,kr={width:0,height:0,numcomponents:1},Fn=4;Fn<Wn;Fn+=2){if(Fn+=gr,Ne.indexOf(Vr.charCodeAt(Fn+1))!==-1){dn=256*Vr.charCodeAt(Fn+5)+Vr.charCodeAt(Fn+6),kr={width:256*Vr.charCodeAt(Fn+7)+Vr.charCodeAt(Fn+8),height:dn,numcomponents:Vr.charCodeAt(Fn+9)};break}gr=256*Vr.charCodeAt(Fn+2)+Vr.charCodeAt(Fn+3)}return kr}(He=this.__addimage__.isArrayBufferView(He)?this.__addimage__.arrayBufferToBinaryString(He):He)).numcomponents){case 1:Et=this.color_spaces.DEVICE_GRAY;break;case 4:Et=this.color_spaces.DEVICE_CMYK;break;case 3:Et=this.color_spaces.DEVICE_RGB}Jr={data:He,width:At.width,height:At.height,colorSpace:Et,bitsPerComponent:8,filter:fr,index:Ye,alias:at}}return Jr}}(z.API);var Xt,wt,De,Re,Me,nt=function(){var ot,Ne,He;function Ye(qe){var lt,Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn,vn,$r,ei;for(this.data=qe,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Vr=null;;){switch(lt=this.readUInt32(),Wn=function(){var fi,Pi;for(Pi=[],fi=0;fi<4;++fi)Pi.push(String.fromCharCode(this.data[this.pos++]));return Pi}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(lt);break;case"fcTL":Vr&&this.animation.frames.push(Vr),this.pos+=4,Vr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Jr=this.readUInt16(),fr=this.readUInt16()||100,Vr.delay=1e3*Jr/fr,Vr.disposeOp=this.data[this.pos++],Vr.blendOp=this.data[this.pos++],Vr.data=[];break;case"IDAT":case"fdAT":for(Wn==="fdAT"&&(this.pos+=4,lt-=4),qe=(Vr!=null?Vr.data:void 0)||this.imgData,vn=0;0<=lt?vn<lt:vn>lt;0<=lt?++vn:--vn)qe.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(At=this.palette.length/3,this.transparency.indexed=this.read(lt),this.transparency.indexed.length>At)throw new Error("More transparent colors than palette size");if((kr=At-this.transparency.indexed.length)>0)for($r=0;0<=kr?$r<kr:$r>kr;0<=kr?++$r:--$r)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(lt)[0];break;case 2:this.transparency.rgb=this.read(lt)}break;case"tEXt":dn=(Fn=this.read(lt)).indexOf(0),gr=String.fromCharCode.apply(String,Fn.slice(0,dn)),this.text[gr]=String.fromCharCode.apply(String,Fn.slice(dn+1));break;case"IEND":return Vr&&this.animation.frames.push(Vr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ei=this.colorType)===4||ei===6,Et=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Et,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=lt}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ye.prototype.read=function(qe){var lt,Et;for(Et=[],lt=0;0<=qe?lt<qe:lt>qe;0<=qe?++lt:--lt)Et.push(this.data[this.pos++]);return Et},Ye.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ye.prototype.decodePixels=function(qe){var lt=this.pixelBitlength/8,Et=new Uint8Array(this.width*this.height*lt),At=0,fr=this;if(qe==null&&(qe=this.imgData),qe.length===0)return new Uint8Array(0);function Jr(Vr,dn,gr,Wn){var kr,Fn,vn,$r,ei,fi,Pi,Zr,Sn,Gn,Wt,Ot,Rt,Ut,Kt,Lt,cr,vr,yr,Rr,Vn,kn=Math.ceil((fr.width-Vr)/gr),di=Math.ceil((fr.height-dn)/Wn),pn=fr.width==kn&&fr.height==di;for(Ut=lt*kn,Ot=pn?Et:new Uint8Array(Ut*di),fi=qe.length,Rt=0,Fn=0;Rt<di&&At<fi;){switch(qe[At++]){case 0:for($r=cr=0;cr<Ut;$r=cr+=1)Ot[Fn++]=qe[At++];break;case 1:for($r=vr=0;vr<Ut;$r=vr+=1)kr=qe[At++],ei=$r<lt?0:Ot[Fn-lt],Ot[Fn++]=(kr+ei)%256;break;case 2:for($r=yr=0;yr<Ut;$r=yr+=1)kr=qe[At++],vn=($r-$r%lt)/lt,Kt=Rt&&Ot[(Rt-1)*Ut+vn*lt+$r%lt],Ot[Fn++]=(Kt+kr)%256;break;case 3:for($r=Rr=0;Rr<Ut;$r=Rr+=1)kr=qe[At++],vn=($r-$r%lt)/lt,ei=$r<lt?0:Ot[Fn-lt],Kt=Rt&&Ot[(Rt-1)*Ut+vn*lt+$r%lt],Ot[Fn++]=(kr+Math.floor((ei+Kt)/2))%256;break;case 4:for($r=Vn=0;Vn<Ut;$r=Vn+=1)kr=qe[At++],vn=($r-$r%lt)/lt,ei=$r<lt?0:Ot[Fn-lt],Rt===0?Kt=Lt=0:(Kt=Ot[(Rt-1)*Ut+vn*lt+$r%lt],Lt=vn&&Ot[(Rt-1)*Ut+(vn-1)*lt+$r%lt]),Pi=ei+Kt-Lt,Zr=Math.abs(Pi-ei),Gn=Math.abs(Pi-Kt),Wt=Math.abs(Pi-Lt),Sn=Zr<=Gn&&Zr<=Wt?ei:Gn<=Wt?Kt:Lt,Ot[Fn++]=(kr+Sn)%256;break;default:throw new Error("Invalid filter algorithm: "+qe[At-1])}if(!pn){var Br=((dn+Rt*Wn)*fr.width+Vr)*lt,_n=Rt*Ut;for($r=0;$r<kn;$r+=1){for(var Xn=0;Xn<lt;Xn+=1)Et[Br++]=Ot[_n++];Br+=(gr-1)*lt}}Rt++}}return qe=Object(A.a)(qe),fr.interlaceMethod==1?(Jr(0,0,8,8),Jr(4,0,8,8),Jr(0,4,4,8),Jr(2,0,4,4),Jr(0,2,2,4),Jr(1,0,2,2),Jr(0,1,1,2)):Jr(0,0,1,1),Et},Ye.prototype.decodePalette=function(){var qe,lt,Et,At,fr,Jr,Vr,dn,gr;for(Et=this.palette,Jr=this.transparency.indexed||[],fr=new Uint8Array((Jr.length||0)+Et.length),At=0,qe=0,lt=Vr=0,dn=Et.length;Vr<dn;lt=Vr+=3)fr[At++]=Et[lt],fr[At++]=Et[lt+1],fr[At++]=Et[lt+2],fr[At++]=(gr=Jr[qe++])!=null?gr:255;return fr},Ye.prototype.copyToImageData=function(qe,lt){var Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn,vn;if(At=this.colors,kr=null,Et=this.hasAlphaChannel,this.palette.length&&(kr=(vn=this._decodedPalette)!=null?vn:this._decodedPalette=this.decodePalette(),At=4,Et=!0),Wn=(fr=qe.data||qe).length,Vr=kr||lt,Jr=dn=0,At===1)for(;Jr<Wn;)gr=kr?4*lt[Jr/4]:dn,Fn=Vr[gr++],fr[Jr++]=Fn,fr[Jr++]=Fn,fr[Jr++]=Fn,fr[Jr++]=Et?Vr[gr++]:255,dn=gr;else for(;Jr<Wn;)gr=kr?4*lt[Jr/4]:dn,fr[Jr++]=Vr[gr++],fr[Jr++]=Vr[gr++],fr[Jr++]=Vr[gr++],fr[Jr++]=Et?Vr[gr++]:255,dn=gr},Ye.prototype.decode=function(){var qe;return qe=new Uint8Array(this.width*this.height*4),this.copyToImageData(qe,this.decodePixels()),qe};var at=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Ne=m.document.createElement("canvas"),He=Ne.getContext("2d")}catch(lt){return!1}return!0}return!1};return at(),ot=function(lt){var Et;if(at()===!0)return He.width=lt.width,He.height=lt.height,He.clearRect(0,0,lt.width,lt.height),He.putImageData(lt,0,0),(Et=new Image).src=Ne.toDataURL(),Et;throw new Error("This method requires a Browser with Canvas-capability.")},Ye.prototype.decodeFrames=function(qe){var lt,Et,At,fr,Jr,Vr,dn,gr;if(this.animation){for(gr=[],Et=Jr=0,Vr=(dn=this.animation.frames).length;Jr<Vr;Et=++Jr)lt=dn[Et],At=qe.createImageData(lt.width,lt.height),fr=this.decodePixels(new Uint8Array(lt.data)),this.copyToImageData(At,fr),lt.imageData=At,gr.push(lt.image=ot(At));return gr}},Ye.prototype.renderFrame=function(qe,lt){var Et,At,fr;return Et=(At=this.animation.frames)[lt],fr=At[lt-1],lt===0&&qe.clearRect(0,0,this.width,this.height),(fr!=null?fr.disposeOp:void 0)===1?qe.clearRect(fr.xOffset,fr.yOffset,fr.width,fr.height):(fr!=null?fr.disposeOp:void 0)===2&&qe.putImageData(fr.imageData,fr.xOffset,fr.yOffset),Et.blendOp===0&&qe.clearRect(Et.xOffset,Et.yOffset,Et.width,Et.height),qe.drawImage(Et.image,Et.xOffset,Et.yOffset)},Ye.prototype.animate=function(qe){var lt,Et,At,fr,Jr,Vr,dn=this;return Et=0,Vr=this.animation,fr=Vr.numFrames,At=Vr.frames,Jr=Vr.numPlays,(lt=function(){var Wn,kr;if(Wn=Et++%fr,kr=At[Wn],dn.renderFrame(qe,Wn),fr>1&&Et/fr<Jr)return dn.animation._timeout=setTimeout(lt,kr.delay)})()},Ye.prototype.stopAnimation=function(){var qe;return clearTimeout((qe=this.animation)!=null?qe._timeout:void 0)},Ye.prototype.render=function(qe){var lt,Et;return qe._png&&qe._png.stopAnimation(),qe._png=this,qe.width=this.width,qe.height=this.height,lt=qe.getContext("2d"),this.animation?(this.decodeFrames(lt),this.animate(lt)):(Et=lt.createImageData(this.width,this.height),this.copyToImageData(Et,this.decodePixels()),lt.putImageData(Et,0,0))},Ye}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function yt(ot){var Ne=0;if(ot[Ne++]!==71||ot[Ne++]!==73||ot[Ne++]!==70||ot[Ne++]!==56||(ot[Ne++]+1&253)!=56||ot[Ne++]!==97)throw new Error("Invalid GIF 87a/89a header.");var He=ot[Ne++]|ot[Ne++]<<8,Ye=ot[Ne++]|ot[Ne++]<<8,at=ot[Ne++],qe=at>>7,lt=1<<(7&at)+1;ot[Ne++],ot[Ne++];var Et=null,At=null;qe&&(Et=Ne,At=lt,Ne+=3*lt);var fr=!0,Jr=[],Vr=0,dn=null,gr=0,Wn=null;for(this.width=He,this.height=Ye;fr&&Ne<ot.length;)switch(ot[Ne++]){case 33:switch(ot[Ne++]){case 255:if(ot[Ne]!==11||ot[Ne+1]==78&&ot[Ne+2]==69&&ot[Ne+3]==84&&ot[Ne+4]==83&&ot[Ne+5]==67&&ot[Ne+6]==65&&ot[Ne+7]==80&&ot[Ne+8]==69&&ot[Ne+9]==50&&ot[Ne+10]==46&&ot[Ne+11]==48&&ot[Ne+12]==3&&ot[Ne+13]==1&&ot[Ne+16]==0)Ne+=14,Wn=ot[Ne++]|ot[Ne++]<<8,Ne++;else for(Ne+=12;;){if(!((Rt=ot[Ne++])>=0))throw Error("Invalid block size");if(Rt===0)break;Ne+=Rt}break;case 249:if(ot[Ne++]!==4||ot[Ne+4]!==0)throw new Error("Invalid graphics extension block.");var kr=ot[Ne++];Vr=ot[Ne++]|ot[Ne++]<<8,dn=ot[Ne++],(1&kr)==0&&(dn=null),gr=kr>>2&7,Ne++;break;case 254:for(;;){if(!((Rt=ot[Ne++])>=0))throw Error("Invalid block size");if(Rt===0)break;Ne+=Rt}break;default:throw new Error("Unknown graphic control label: 0x"+ot[Ne-1].toString(16))}break;case 44:var Fn=ot[Ne++]|ot[Ne++]<<8,vn=ot[Ne++]|ot[Ne++]<<8,$r=ot[Ne++]|ot[Ne++]<<8,ei=ot[Ne++]|ot[Ne++]<<8,fi=ot[Ne++],Pi=fi>>6&1,Zr=1<<(7&fi)+1,Sn=Et,Gn=At,Wt=!1;fi>>7&&(Wt=!0,Sn=Ne,Gn=Zr,Ne+=3*Zr);var Ot=Ne;for(Ne++;;){var Rt;if(!((Rt=ot[Ne++])>=0))throw Error("Invalid block size");if(Rt===0)break;Ne+=Rt}Jr.push({x:Fn,y:vn,width:$r,height:ei,has_local_palette:Wt,palette_offset:Sn,palette_size:Gn,data_offset:Ot,data_length:Ne-Ot,transparent_index:dn,interlaced:!!Pi,delay:Vr,disposal:gr});break;case 59:fr=!1;break;default:throw new Error("Unknown gif block: 0x"+ot[Ne-1].toString(16))}this.numFrames=function(){return Jr.length},this.loopCount=function(){return Wn},this.frameInfo=function(Ut){if(Ut<0||Ut>=Jr.length)throw new Error("Frame index out of range.");return Jr[Ut]},this.decodeAndBlitFrameBGRA=function(Ut,Kt){var Lt=this.frameInfo(Ut),cr=Lt.width*Lt.height,vr=new Uint8Array(cr);sr(ot,Lt.data_offset,vr,cr);var yr=Lt.palette_offset,Rr=Lt.transparent_index;Rr===null&&(Rr=256);var Vn=Lt.width,kn=He-Vn,di=Vn,pn=4*(Lt.y*He+Lt.x),Br=4*((Lt.y+Lt.height)*He+Lt.x),_n=pn,Xn=4*kn;Lt.interlaced===!0&&(Xn+=4*He*7);for(var $n=8,oi=0,Ti=vr.length;oi<Ti;++oi){var Ri=vr[oi];if(di===0&&(di=Vn,(_n+=Xn)>=Br&&(Xn=4*kn+4*He*($n-1),_n=pn+(Vn+kn)*($n<<1),$n>>=1)),Ri===Rr)_n+=4;else{var Di=ot[yr+3*Ri],oa=ot[yr+3*Ri+1],ma=ot[yr+3*Ri+2];Kt[_n++]=ma,Kt[_n++]=oa,Kt[_n++]=Di,Kt[_n++]=255}--di}},this.decodeAndBlitFrameRGBA=function(Ut,Kt){var Lt=this.frameInfo(Ut),cr=Lt.width*Lt.height,vr=new Uint8Array(cr);sr(ot,Lt.data_offset,vr,cr);var yr=Lt.palette_offset,Rr=Lt.transparent_index;Rr===null&&(Rr=256);var Vn=Lt.width,kn=He-Vn,di=Vn,pn=4*(Lt.y*He+Lt.x),Br=4*((Lt.y+Lt.height)*He+Lt.x),_n=pn,Xn=4*kn;Lt.interlaced===!0&&(Xn+=4*He*7);for(var $n=8,oi=0,Ti=vr.length;oi<Ti;++oi){var Ri=vr[oi];if(di===0&&(di=Vn,(_n+=Xn)>=Br&&(Xn=4*kn+4*He*($n-1),_n=pn+(Vn+kn)*($n<<1),$n>>=1)),Ri===Rr)_n+=4;else{var Di=ot[yr+3*Ri],oa=ot[yr+3*Ri+1],ma=ot[yr+3*Ri+2];Kt[_n++]=Di,Kt[_n++]=oa,Kt[_n++]=ma,Kt[_n++]=255}--di}}}function sr(ot,Ne,He,Ye){for(var at=ot[Ne++],qe=1<<at,lt=qe+1,Et=lt+1,At=at+1,fr=(1<<At)-1,Jr=0,Vr=0,dn=0,gr=ot[Ne++],Wn=new Int32Array(4096),kr=null;;){for(;Jr<16&&gr!==0;)Vr|=ot[Ne++]<<Jr,Jr+=8,gr===1?gr=ot[Ne++]:--gr;if(Jr<At)break;var Fn=Vr&fr;if(Vr>>=At,Jr-=At,Fn!==qe){if(Fn===lt)break;for(var vn=Fn<Et?Fn:kr,$r=0,ei=vn;ei>qe;)ei=Wn[ei]>>8,++$r;var fi=ei;if(dn+$r+(vn!==Fn?1:0)>Ye)return void d.log("Warning, gif stream longer than expected.");He[dn++]=fi;var Pi=dn+=$r;for(vn!==Fn&&(He[dn++]=fi),ei=vn;$r--;)ei=Wn[ei],He[--Pi]=255&ei,ei>>=8;kr!==null&&Et<4096&&(Wn[Et++]=kr<<8|fi,Et>=fr+1&&At<12&&(++At,fr=fr<<1|1)),kr=Fn}else Et=lt+1,fr=(1<<(At=at+1))-1,kr=null}return dn!==Ye&&d.log("Warning, gif stream shorter than expected."),He}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Nr(ot){var Ne,He,Ye,at,qe,lt=Math.floor,Et=new Array(64),At=new Array(64),fr=new Array(64),Jr=new Array(64),Vr=new Array(65535),dn=new Array(65535),gr=new Array(64),Wn=new Array(64),kr=[],Fn=0,vn=7,$r=new Array(64),ei=new Array(64),fi=new Array(64),Pi=new Array(256),Zr=new Array(2048),Sn=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Gn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Wt=[0,1,2,3,4,5,6,7,8,9,10,11],Ot=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Rt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ut=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Kt=[0,1,2,3,4,5,6,7,8,9,10,11],Lt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],cr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function vr(pn,Br){for(var _n=0,Xn=0,$n=new Array,oi=1;oi<=16;oi++){for(var Ti=1;Ti<=pn[oi];Ti++)$n[Br[Xn]]=[],$n[Br[Xn]][0]=_n,$n[Br[Xn]][1]=oi,Xn++,_n++;_n*=2}return $n}function yr(pn){for(var Br=pn[0],_n=pn[1]-1;_n>=0;)Br&1<<_n&&(Fn|=1<<vn),_n--,--vn<0&&(Fn==255?(Rr(255),Rr(0)):Rr(Fn),vn=7,Fn=0)}function Rr(pn){kr.push(pn)}function Vn(pn){Rr(pn>>8&255),Rr(255&pn)}function kn(pn,Br,_n,Xn,$n){for(var oi,Ti=$n[0],Ri=$n[240],Di=function(ta,ra){var Ir,Sr,Tn,pr,Dr,Wr,ln,Pn,_t,_r,Lr=0;for(_t=0;_t<8;++_t){Ir=ta[Lr],Sr=ta[Lr+1],Tn=ta[Lr+2],pr=ta[Lr+3],Dr=ta[Lr+4],Wr=ta[Lr+5],ln=ta[Lr+6];var en=Ir+(Pn=ta[Lr+7]),bn=Ir-Pn,On=Sr+ln,yn=Sr-ln,qn=Tn+Wr,Hn=Tn-Wr,pi=pr+Dr,Fi=pr-Dr,wi=en+pi,Oi=en-pi,zi=On+qn,ea=On-qn;ta[Lr]=wi+zi,ta[Lr+4]=wi-zi;var Gi=.707106781*(ea+Oi);ta[Lr+2]=Oi+Gi,ta[Lr+6]=Oi-Gi;var Wi=.382683433*((wi=Fi+Hn)-(ea=yn+bn)),Hi=.5411961*wi+Wi,Ji=1.306562965*ea+Wi,ca=.707106781*(zi=Hn+yn),Ca=bn+ca,na=bn-ca;ta[Lr+5]=na+Hi,ta[Lr+3]=na-Hi,ta[Lr+1]=Ca+Ji,ta[Lr+7]=Ca-Ji,Lr+=8}for(Lr=0,_t=0;_t<8;++_t){Ir=ta[Lr],Sr=ta[Lr+8],Tn=ta[Lr+16],pr=ta[Lr+24],Dr=ta[Lr+32],Wr=ta[Lr+40],ln=ta[Lr+48];var Pa=Ir+(Pn=ta[Lr+56]),La=Ir-Pn,va=Sr+ln,ga=Sr-ln,Oa=Tn+Wr,Aa=Tn-Wr,Xa=pr+Dr,_a=pr-Dr,Va=Pa+Xa,Bi=Pa-Xa,io=va+Oa,oo=va-Oa;ta[Lr]=Va+io,ta[Lr+32]=Va-io;var Qo=.707106781*(oo+Bi);ta[Lr+16]=Bi+Qo,ta[Lr+48]=Bi-Qo;var mo=.382683433*((Va=_a+Aa)-(oo=ga+La)),To=.5411961*Va+mo,ao=1.306562965*oo+mo,So=.707106781*(io=Aa+ga),bo=La+So,to=La-So;ta[Lr+40]=to+To,ta[Lr+24]=to-To,ta[Lr+8]=bo+ao,ta[Lr+56]=bo-ao,Lr++}for(_t=0;_t<64;++_t)_r=ta[_t]*ra[_t],gr[_t]=_r>0?_r+.5|0:_r-.5|0;return gr}(pn,Br),oa=0;oa<64;++oa)Wn[Sn[oa]]=Di[oa];var ma=Wn[0]-_n;_n=Wn[0],ma==0?yr(Xn[0]):(yr(Xn[dn[oi=32767+ma]]),yr(Vr[oi]));for(var aa=63;aa>0&&Wn[aa]==0;)aa--;if(aa==0)return yr(Ti),_n;for(var ba,bi=1;bi<=aa;){for(var Rn=bi;Wn[bi]==0&&bi<=aa;)++bi;var ji=bi-Rn;if(ji>=16){ba=ji>>4;for(var ha=1;ha<=ba;++ha)yr(Ri);ji&=15}oi=32767+Wn[bi],yr($n[(ji<<4)+dn[oi]]),yr(Vr[oi]),bi++}return aa!=63&&yr(Ti),_n}function di(pn){(pn=Math.min(Math.max(pn,1),100),qe!=pn)&&(!function(Br){for(var _n=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Xn=0;Xn<64;Xn++){var $n=lt((_n[Xn]*Br+50)/100);$n=Math.min(Math.max($n,1),255),Et[Sn[Xn]]=$n}for(var oi=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ti=0;Ti<64;Ti++){var Ri=lt((oi[Ti]*Br+50)/100);Ri=Math.min(Math.max(Ri,1),255),At[Sn[Ti]]=Ri}for(var Di=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],oa=0,ma=0;ma<8;ma++)for(var aa=0;aa<8;aa++)fr[oa]=1/(Et[Sn[oa]]*Di[ma]*Di[aa]*8),Jr[oa]=1/(At[Sn[oa]]*Di[ma]*Di[aa]*8),oa++}(pn<50?Math.floor(5e3/pn):Math.floor(200-2*pn)),qe=pn)}this.encode=function(pn,Br){Br&&di(Br),kr=new Array,Fn=0,vn=7,Vn(65496),Vn(65504),Vn(16),Rr(74),Rr(70),Rr(73),Rr(70),Rr(0),Rr(1),Rr(1),Rr(0),Vn(1),Vn(1),Rr(0),Rr(0),function(){Vn(65499),Vn(132),Rr(0);for(var Sr=0;Sr<64;Sr++)Rr(Et[Sr]);Rr(1);for(var Tn=0;Tn<64;Tn++)Rr(At[Tn])}(),function(Sr,Tn){Vn(65472),Vn(17),Rr(8),Vn(Tn),Vn(Sr),Rr(3),Rr(1),Rr(17),Rr(0),Rr(2),Rr(17),Rr(1),Rr(3),Rr(17),Rr(1)}(pn.width,pn.height),function(){Vn(65476),Vn(418),Rr(0);for(var Sr=0;Sr<16;Sr++)Rr(Gn[Sr+1]);for(var Tn=0;Tn<=11;Tn++)Rr(Wt[Tn]);Rr(16);for(var pr=0;pr<16;pr++)Rr(Ot[pr+1]);for(var Dr=0;Dr<=161;Dr++)Rr(Rt[Dr]);Rr(1);for(var Wr=0;Wr<16;Wr++)Rr(Ut[Wr+1]);for(var ln=0;ln<=11;ln++)Rr(Kt[ln]);Rr(17);for(var Pn=0;Pn<16;Pn++)Rr(Lt[Pn+1]);for(var _t=0;_t<=161;_t++)Rr(cr[_t])}(),Vn(65498),Vn(12),Rr(3),Rr(1),Rr(0),Rr(2),Rr(17),Rr(3),Rr(17),Rr(0),Rr(63),Rr(0);var _n=0,Xn=0,$n=0;Fn=0,vn=7,this.encode.displayName="_encode_";for(var oi,Ti,Ri,Di,oa,ma,aa,ba,bi,Rn=pn.data,ji=pn.width,ha=pn.height,ta=4*ji,ra=0;ra<ha;){for(oi=0;oi<ta;){for(oa=ta*ra+oi,aa=-1,ba=0,bi=0;bi<64;bi++)ma=oa+(ba=bi>>3)*ta+(aa=4*(7&bi)),ra+ba>=ha&&(ma-=ta*(ra+1+ba-ha)),oi+aa>=ta&&(ma-=oi+aa-ta+4),Ti=Rn[ma++],Ri=Rn[ma++],Di=Rn[ma++],$r[bi]=(Zr[Ti]+Zr[Ri+256>>0]+Zr[Di+512>>0]>>16)-128,ei[bi]=(Zr[Ti+768>>0]+Zr[Ri+1024>>0]+Zr[Di+1280>>0]>>16)-128,fi[bi]=(Zr[Ti+1280>>0]+Zr[Ri+1536>>0]+Zr[Di+1792>>0]>>16)-128;_n=kn($r,fr,_n,Ne,Ye),Xn=kn(ei,Jr,Xn,He,at),$n=kn(fi,Jr,$n,He,at),oi+=32}ra+=8}if(vn>=0){var Ir=[];Ir[1]=vn+1,Ir[0]=(1<<vn+1)-1,yr(Ir)}return Vn(65497),new Uint8Array(kr)},ot=ot||50,function(){for(var pn=String.fromCharCode,Br=0;Br<256;Br++)Pi[Br]=pn(Br)}(),Ne=vr(Gn,Wt),He=vr(Ut,Kt),Ye=vr(Ot,Rt),at=vr(Lt,cr),function(){for(var pn=1,Br=2,_n=1;_n<=15;_n++){for(var Xn=pn;Xn<Br;Xn++)dn[32767+Xn]=_n,Vr[32767+Xn]=[],Vr[32767+Xn][1]=_n,Vr[32767+Xn][0]=Xn;for(var $n=-(Br-1);$n<=-pn;$n++)dn[32767+$n]=_n,Vr[32767+$n]=[],Vr[32767+$n][1]=_n,Vr[32767+$n][0]=Br-1+$n;pn<<=1,Br<<=1}}(),function(){for(var pn=0;pn<256;pn++)Zr[pn]=19595*pn,Zr[pn+256>>0]=38470*pn,Zr[pn+512>>0]=7471*pn+32768,Zr[pn+768>>0]=-11059*pn,Zr[pn+1024>>0]=-21709*pn,Zr[pn+1280>>0]=32768*pn+8421375,Zr[pn+1536>>0]=-27439*pn,Zr[pn+1792>>0]=-5329*pn}(),di(ot)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function mn(ot,Ne){if(this.pos=0,this.buffer=ot,this.datav=new DataView(ot.buffer),this.is_with_alpha=!!Ne,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Yn(ot){function Ne(Gn){if(!Gn)throw Error("assert :P")}function He(Gn,Wt,Ot){for(var Rt=0;4>Rt;Rt++)if(Gn[Wt+Rt]!=Ot.charCodeAt(Rt))return!0;return!1}function Ye(Gn,Wt,Ot,Rt,Ut){for(var Kt=0;Kt<Ut;Kt++)Gn[Wt+Kt]=Ot[Rt+Kt]}function at(Gn,Wt,Ot,Rt){for(var Ut=0;Ut<Rt;Ut++)Gn[Wt+Ut]=Ot}function qe(Gn){return new Int32Array(Gn)}function lt(Gn,Wt){for(var Ot=[],Rt=0;Rt<Gn;Rt++)Ot.push(new Wt);return Ot}function Et(Gn,Wt){var Ot=[];return function Rt(Ut,Kt,Lt){for(var cr=Lt[Kt],vr=0;vr<cr&&(Ut.push(Lt.length>Kt+1?[]:new Wt),!(Lt.length<Kt+1));vr++)Rt(Ut[vr],Kt+1,Lt)}(Ot,0,Gn),Ot}var At=function(){var Wt=this;function Ot(Ee,Qe){for(var xt=1<<Qe-1>>>0;Ee&xt;)xt>>>=1;return xt?(Ee&xt-1)+xt:Ee}function Rt(Ee,Qe,xt,hr,Fr){Ne(!(hr%xt));do Ee[Qe+(hr-=xt)]=Fr;while(0<hr)}function Ut(Ee,Qe,xt,hr,Fr){if(Ne(2328>=Fr),512>=Fr)var on=qe(512);else if((on=qe(Fr))==null)return 0;return function(Be,ie,Oe,et,bt,zt){var qt,ar,Kr=ie,cn=1<<Oe,Hr=qe(16),Ur=qe(16);for(Ne(bt!=0),Ne(et!=null),Ne(Be!=null),Ne(0<Oe),ar=0;ar<bt;++ar){if(15<et[ar])return 0;++Hr[et[ar]]}if(Hr[0]==bt)return 0;for(Ur[1]=0,qt=1;15>qt;++qt){if(Hr[qt]>1<<qt)return 0;Ur[qt+1]=Ur[qt]+Hr[qt]}for(ar=0;ar<bt;++ar)qt=et[ar],0<et[ar]&&(zt[Ur[qt]++]=ar);if(Ur[15]==1)return(et=new Kt).g=0,et.value=zt[0],Rt(Be,Kr,1,cn,et),cn;var sn,gn=-1,zn=cn-1,Li=0,ki=1,da=1,$i=1<<Oe;for(ar=0,qt=1,bt=2;qt<=Oe;++qt,bt<<=1){if(ki+=da<<=1,0>(da-=Hr[qt]))return 0;for(;0<Hr[qt];--Hr[qt])(et=new Kt).g=qt,et.value=zt[ar++],Rt(Be,Kr+Li,bt,$i,et),Li=Ot(Li,qt)}for(qt=Oe+1,bt=2;15>=qt;++qt,bt<<=1){if(ki+=da<<=1,0>(da-=Hr[qt]))return 0;for(;0<Hr[qt];--Hr[qt]){if(et=new Kt,(Li&zn)!=gn){for(Kr+=$i,sn=1<<(gn=qt)-Oe;15>gn&&!(0>=(sn-=Hr[gn]));)++gn,sn<<=1;cn+=$i=1<<(sn=gn-Oe),Be[ie+(gn=Li&zn)].g=sn+Oe,Be[ie+gn].value=Kr-ie-gn}et.g=qt-Oe,et.value=zt[ar++],Rt(Be,Kr+(Li>>Oe),bt,$i,et),Li=Ot(Li,qt)}}return ki!=2*Ur[15]-1?0:cn}(Ee,Qe,xt,hr,Fr,on)}function Kt(){this.value=this.g=0}function Lt(){this.value=this.g=0}function cr(){this.G=lt(5,Kt),this.H=qe(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=lt(vo,Lt)}function vr(Ee,Qe,xt,hr){Ne(Ee!=null),Ne(Qe!=null),Ne(2147483648>hr),Ee.Ca=254,Ee.I=0,Ee.b=-8,Ee.Ka=0,Ee.oa=Qe,Ee.pa=xt,Ee.Jd=Qe,Ee.Yc=xt+hr,Ee.Zc=4<=hr?xt+hr-4+1:xt,Ti(Ee)}function yr(Ee,Qe){for(var xt=0;0<Qe--;)xt|=Di(Ee,128)<<Qe;return xt}function Rr(Ee,Qe){var xt=yr(Ee,Qe);return Ri(Ee)?-xt:xt}function Vn(Ee,Qe,xt,hr){var Fr,on=0;for(Ne(Ee!=null),Ne(Qe!=null),Ne(4294967288>hr),Ee.Sb=hr,Ee.Ra=0,Ee.u=0,Ee.h=0,4<hr&&(hr=4),Fr=0;Fr<hr;++Fr)on+=Qe[xt+Fr]<<8*Fr;Ee.Ra=on,Ee.bb=hr,Ee.oa=Qe,Ee.pa=xt}function kn(Ee){for(;8<=Ee.u&&Ee.bb<Ee.Sb;)Ee.Ra>>>=8,Ee.Ra+=Ee.oa[Ee.pa+Ee.bb]<<gs-8>>>0,++Ee.bb,Ee.u-=8;Xn(Ee)&&(Ee.h=1,Ee.u=0)}function di(Ee,Qe){if(Ne(0<=Qe),!Ee.h&&Qe<=rl){var xt=_n(Ee)&Ms[Qe];return Ee.u+=Qe,kn(Ee),xt}return Ee.h=1,Ee.u=0}function pn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Br(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _n(Ee){return Ee.Ra>>>(Ee.u&gs-1)>>>0}function Xn(Ee){return Ne(Ee.bb<=Ee.Sb),Ee.h||Ee.bb==Ee.Sb&&Ee.u>gs}function $n(Ee,Qe){Ee.u=Qe,Ee.h=Xn(Ee)}function oi(Ee){Ee.u>=Ra&&(Ne(Ee.u>=Ra),kn(Ee))}function Ti(Ee){Ne(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Zc?(Ee.I=(Ee.oa[Ee.pa++]|Ee.I<<8)>>>0,Ee.b+=8):(Ne(Ee!=null&&Ee.oa!=null),Ee.pa<Ee.Yc?(Ee.b+=8,Ee.I=Ee.oa[Ee.pa++]|Ee.I<<8):Ee.Ka?Ee.b=0:(Ee.I<<=8,Ee.b+=8,Ee.Ka=1))}function Ri(Ee){return yr(Ee,1)}function Di(Ee,Qe){var xt=Ee.Ca;0>Ee.b&&Ti(Ee);var hr=Ee.b,Fr=xt*Qe>>>8,on=(Ee.I>>>hr>Fr)+0;for(on?(xt-=Fr,Ee.I-=Fr+1<<hr>>>0):xt=Fr+1,hr=xt,Fr=0;256<=hr;)Fr+=8,hr>>=8;return hr=7^Fr+dl[hr],Ee.b-=hr,Ee.Ca=(xt<<hr)-1,on}function oa(Ee,Qe,xt){Ee[Qe+0]=xt>>24&255,Ee[Qe+1]=xt>>16&255,Ee[Qe+2]=xt>>8&255,Ee[Qe+3]=xt>>0&255}function ma(Ee,Qe){return Ee[Qe+0]<<0|Ee[Qe+1]<<8}function aa(Ee,Qe){return ma(Ee,Qe)|Ee[Qe+2]<<16}function ba(Ee,Qe){return ma(Ee,Qe)|ma(Ee,Qe+2)<<16}function bi(Ee,Qe){var xt=1<<Qe;return Ne(Ee!=null),Ne(0<Qe),Ee.X=qe(xt),Ee.X==null?0:(Ee.Mb=32-Qe,Ee.Xa=Qe,1)}function Rn(Ee,Qe){Ne(Ee!=null),Ne(Qe!=null),Ne(Ee.Xa==Qe.Xa),Ye(Qe.X,0,Ee.X,0,1<<Qe.Xa)}function ji(){this.X=[],this.Xa=this.Mb=0}function ha(Ee,Qe,xt,hr){Ne(xt!=null),Ne(hr!=null);var Fr=xt[0],on=hr[0];return Fr==0&&(Fr=(Ee*on+Qe/2)/Qe),on==0&&(on=(Qe*Fr+Ee/2)/Ee),0>=Fr||0>=on?0:(xt[0]=Fr,hr[0]=on,1)}function ta(Ee,Qe){return Ee+(1<<Qe)-1>>>Qe}function ra(Ee,Qe){return((4278255360&Ee)+(4278255360&Qe)>>>0&4278255360)+((16711935&Ee)+(16711935&Qe)>>>0&16711935)>>>0}function Ir(Ee,Qe){Wt[Qe]=function(xt,hr,Fr,on,Be,ie,Oe){var et;for(et=0;et<Be;++et){var bt=Wt[Ee](ie[Oe+et-1],Fr,on+et);ie[Oe+et]=ra(xt[hr+et],bt)}}}function Sr(){this.ud=this.hd=this.jd=0}function Tn(Ee,Qe){return((4278124286&(Ee^Qe))>>>1)+(Ee&Qe)>>>0}function pr(Ee){return 0<=Ee&&256>Ee?Ee:0>Ee?0:255<Ee?255:void 0}function Dr(Ee,Qe){return pr(Ee+(Ee-Qe+.5>>1))}function Wr(Ee,Qe,xt){return Math.abs(Qe-xt)-Math.abs(Ee-xt)}function ln(Ee,Qe,xt,hr,Fr,on,Be){for(hr=on[Be-1],xt=0;xt<Fr;++xt)on[Be+xt]=hr=ra(Ee[Qe+xt],hr)}function Pn(Ee,Qe,xt,hr,Fr){var on;for(on=0;on<xt;++on){var Be=Ee[Qe+on],ie=Be>>8&255,Oe=16711935&(Oe=(Oe=16711935&Be)+((ie<<16)+ie));hr[Fr+on]=(4278255360&Be)+Oe>>>0}}function _t(Ee,Qe){Qe.jd=Ee>>0&255,Qe.hd=Ee>>8&255,Qe.ud=Ee>>16&255}function _r(Ee,Qe,xt,hr,Fr,on){var Be;for(Be=0;Be<hr;++Be){var ie=Qe[xt+Be],Oe=ie>>>8,et=ie,bt=255&(bt=(bt=ie>>>16)+((Ee.jd<<24>>24)*(Oe<<24>>24)>>>5));et=255&(et=(et=et+((Ee.hd<<24>>24)*(Oe<<24>>24)>>>5))+((Ee.ud<<24>>24)*(bt<<24>>24)>>>5)),Fr[on+Be]=(4278255360&ie)+(bt<<16)+et}}function Lr(Ee,Qe,xt,hr,Fr){Wt[Qe]=function(on,Be,ie,Oe,et,bt,zt,qt,ar){for(Oe=zt;Oe<qt;++Oe)for(zt=0;zt<ar;++zt)et[bt++]=Fr(ie[hr(on[Be++])])},Wt[Ee]=function(on,Be,ie,Oe,et,bt,zt){var qt=8>>on.b,ar=on.Ea,Kr=on.K[0],cn=on.w;if(8>qt)for(on=(1<<on.b)-1,cn=(1<<qt)-1;Be<ie;++Be){var Hr,Ur=0;for(Hr=0;Hr<ar;++Hr)Hr&on||(Ur=hr(Oe[et++])),bt[zt++]=Fr(Kr[Ur&cn]),Ur>>=qt}else Wt["VP8LMapColor"+xt](Oe,et,Kr,cn,bt,zt,Be,ie,ar)}}function en(Ee,Qe,xt,hr,Fr){for(xt=Qe+xt;Qe<xt;){var on=Ee[Qe++];hr[Fr++]=on>>16&255,hr[Fr++]=on>>8&255,hr[Fr++]=on>>0&255}}function bn(Ee,Qe,xt,hr,Fr){for(xt=Qe+xt;Qe<xt;){var on=Ee[Qe++];hr[Fr++]=on>>16&255,hr[Fr++]=on>>8&255,hr[Fr++]=on>>0&255,hr[Fr++]=on>>24&255}}function On(Ee,Qe,xt,hr,Fr){for(xt=Qe+xt;Qe<xt;){var on=(Be=Ee[Qe++])>>16&240|Be>>12&15,Be=Be>>0&240|Be>>28&15;hr[Fr++]=on,hr[Fr++]=Be}}function yn(Ee,Qe,xt,hr,Fr){for(xt=Qe+xt;Qe<xt;){var on=(Be=Ee[Qe++])>>16&248|Be>>13&7,Be=Be>>5&224|Be>>3&31;hr[Fr++]=on,hr[Fr++]=Be}}function qn(Ee,Qe,xt,hr,Fr){for(xt=Qe+xt;Qe<xt;){var on=Ee[Qe++];hr[Fr++]=on>>0&255,hr[Fr++]=on>>8&255,hr[Fr++]=on>>16&255}}function Hn(Ee,Qe,xt,hr,Fr,on){if(on==0)for(xt=Qe+xt;Qe<xt;)oa(hr,((on=Ee[Qe++])[0]>>24|on[1]>>8&65280|on[2]<<8&16711680|on[3]<<24)>>>0),Fr+=32;else Ye(hr,Fr,Ee,Qe,xt)}function pi(Ee,Qe){Wt[Qe][0]=Wt[Ee+"0"],Wt[Qe][1]=Wt[Ee+"1"],Wt[Qe][2]=Wt[Ee+"2"],Wt[Qe][3]=Wt[Ee+"3"],Wt[Qe][4]=Wt[Ee+"4"],Wt[Qe][5]=Wt[Ee+"5"],Wt[Qe][6]=Wt[Ee+"6"],Wt[Qe][7]=Wt[Ee+"7"],Wt[Qe][8]=Wt[Ee+"8"],Wt[Qe][9]=Wt[Ee+"9"],Wt[Qe][10]=Wt[Ee+"10"],Wt[Qe][11]=Wt[Ee+"11"],Wt[Qe][12]=Wt[Ee+"12"],Wt[Qe][13]=Wt[Ee+"13"],Wt[Qe][14]=Wt[Ee+"0"],Wt[Qe][15]=Wt[Ee+"0"]}function Fi(Ee){return Ee==Lu||Ee==zl||Ee==ru||Ee==ou}function wi(){this.eb=[],this.size=this.A=this.fb=0}function Oi(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function zi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new wi,this.f.kb=new Oi,this.sd=null}function ea(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Gi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Wi(Ee){return alert("todo:WebPSamplerProcessPlane"),Ee.T}function Hi(Ee,Qe){var xt=Ee.T,hr=Qe.ba.f.RGBA,Fr=hr.eb,on=hr.fb+Ee.ka*hr.A,Be=ze[Qe.ba.S],ie=Ee.y,Oe=Ee.O,et=Ee.f,bt=Ee.N,zt=Ee.ea,qt=Ee.W,ar=Qe.cc,Kr=Qe.dc,cn=Qe.Mc,Hr=Qe.Nc,Ur=Ee.ka,sn=Ee.ka+Ee.T,gn=Ee.U,zn=gn+1>>1;for(Ur==0?Be(ie,Oe,null,null,et,bt,zt,qt,et,bt,zt,qt,Fr,on,null,null,gn):(Be(Qe.ec,Qe.fc,ie,Oe,ar,Kr,cn,Hr,et,bt,zt,qt,Fr,on-hr.A,Fr,on,gn),++xt);Ur+2<sn;Ur+=2)ar=et,Kr=bt,cn=zt,Hr=qt,bt+=Ee.Rc,qt+=Ee.Rc,on+=2*hr.A,Be(ie,(Oe+=2*Ee.fa)-Ee.fa,ie,Oe,ar,Kr,cn,Hr,et,bt,zt,qt,Fr,on-hr.A,Fr,on,gn);return Oe+=Ee.fa,Ee.j+sn<Ee.o?(Ye(Qe.ec,Qe.fc,ie,Oe,gn),Ye(Qe.cc,Qe.dc,et,bt,zn),Ye(Qe.Mc,Qe.Nc,zt,qt,zn),xt--):1&sn||Be(ie,Oe,null,null,et,bt,zt,qt,et,bt,zt,qt,Fr,on+hr.A,null,null,gn),xt}function Ji(Ee,Qe,xt){var hr=Ee.F,Fr=[Ee.J];if(hr!=null){var on=Ee.U,Be=Qe.ba.S,ie=Be==Ol||Be==ru;Qe=Qe.ba.f.RGBA;var Oe=[0],et=Ee.ka;Oe[0]=Ee.T,Ee.Kb&&(et==0?--Oe[0]:(--et,Fr[0]-=Ee.width),Ee.j+Ee.ka+Ee.T==Ee.o&&(Oe[0]=Ee.o-Ee.j-et));var bt=Qe.eb;et=Qe.fb+et*Qe.A,Ee=Nl(hr,Fr[0],Ee.width,on,Oe,bt,et+(ie?0:3),Qe.A),Ne(xt==Oe),Ee&&Fi(Be)&&Wl(bt,et,ie,on,Oe,Qe.A)}return 0}function ca(Ee){var Qe=Ee.ma,xt=Qe.ba.S,hr=11>xt,Fr=xt==Su||xt==Au||xt==Ol||xt==cu||xt==12||Fi(xt);if(Qe.memory=null,Qe.Ib=null,Qe.Jb=null,Qe.Nd=null,!As(Qe.Oa,Ee,Fr?11:12))return 0;if(Fr&&Fi(xt)&&Je(),Ee.da)alert("todo:use_scaling");else{if(hr){if(Qe.Ib=Wi,Ee.Kb){if(xt=Ee.U+1>>1,Qe.memory=qe(Ee.U+2*xt),Qe.memory==null)return 0;Qe.ec=Qe.memory,Qe.fc=0,Qe.cc=Qe.ec,Qe.dc=Qe.fc+Ee.U,Qe.Mc=Qe.cc,Qe.Nc=Qe.dc+xt,Qe.Ib=Hi,Je()}}else alert("todo:EmitYUV");Fr&&(Qe.Jb=Ji,hr&&xe())}if(hr&&!Zi){for(Ee=0;256>Ee;++Ee)ka[Ee]=89858*(Ee-128)+Dn>>Cn,Sa[Ee]=-22014*(Ee-128)+Dn,Ba[Ee]=-45773*(Ee-128),Ga[Ee]=113618*(Ee-128)+Dn>>Cn;for(Ee=Zn;Ee<Si;++Ee)Qe=76283*(Ee-16)+Dn>>Cn,Go[Ee-Zn]=_o(Qe,255),bs[Ee-Zn]=_o(Qe+8>>4,15);Zi=1}return 1}function Ca(Ee){var Qe=Ee.ma,xt=Ee.U,hr=Ee.T;return Ne(!(1&Ee.ka)),0>=xt||0>=hr?0:(xt=Qe.Ib(Ee,Qe),Qe.Jb!=null&&Qe.Jb(Ee,Qe,xt),Qe.Dc+=xt,1)}function na(Ee){Ee.ma.memory=null}function Pa(Ee,Qe,xt,hr){return di(Ee,8)!=47?0:(Qe[0]=di(Ee,14)+1,xt[0]=di(Ee,14)+1,hr[0]=di(Ee,1),di(Ee,3)!=0?0:!Ee.h)}function La(Ee,Qe){if(4>Ee)return Ee+1;var xt=Ee-2>>1;return(2+(1&Ee)<<xt)+di(Qe,xt)+1}function va(Ee,Qe){return 120<Qe?Qe-120:1<=(xt=((xt=yu[Qe-1])>>4)*Ee+(8-(15&xt)))?xt:1;var xt}function ga(Ee,Qe,xt){var hr=_n(xt),Fr=Ee[Qe+=255&hr].g-8;return 0<Fr&&($n(xt,xt.u+8),hr=_n(xt),Qe+=Ee[Qe].value,Qe+=hr&(1<<Fr)-1),$n(xt,xt.u+Ee[Qe].g),Ee[Qe].value}function Oa(Ee,Qe,xt){return xt.g+=Ee.g,xt.value+=Ee.value<<Qe>>>0,Ne(8>=xt.g),Ee.g}function Aa(Ee,Qe,xt){var hr=Ee.xc;return Ne((Qe=hr==0?0:Ee.vc[Ee.md*(xt>>hr)+(Qe>>hr)])<Ee.Wb),Ee.Ya[Qe]}function Xa(Ee,Qe,xt,hr){var Fr=Ee.ab,on=Ee.c*Qe,Be=Ee.C;Qe=Be+Qe;var ie=xt,Oe=hr;for(hr=Ee.Ta,xt=Ee.Ua;0<Fr--;){var et=Ee.gc[Fr],bt=Be,zt=Qe,qt=ie,ar=Oe,Kr=(Oe=hr,ie=xt,et.Ea);switch(Ne(bt<zt),Ne(zt<=et.nc),et.hc){case 2:Os(qt,ar,(zt-bt)*Kr,Oe,ie);break;case 0:var cn=bt,Hr=zt,Ur=Oe,sn=ie,gn=($i=et).Ea;cn==0&&(fl(qt,ar,null,null,1,Ur,sn),ln(qt,ar+1,0,0,gn-1,Ur,sn+1),ar+=gn,sn+=gn,++cn);for(var zn=1<<$i.b,Li=zn-1,ki=ta(gn,$i.b),da=$i.K,$i=$i.w+(cn>>$i.b)*ki;cn<Hr;){var Qa=da,ya=$i,fo=1;for(Us(qt,ar,Ur,sn-gn,1,Ur,sn);fo<gn;){var za=(fo&~Li)+zn;za>gn&&(za=gn),(0,Ts[Qa[ya++]>>8&15])(qt,ar+ +fo,Ur,sn+fo-gn,za-fo,Ur,sn+fo),fo=za}ar+=gn,sn+=gn,++cn&Li||($i+=ki)}zt!=et.nc&&Ye(Oe,ie-Kr,Oe,ie+(zt-bt-1)*Kr,Kr);break;case 1:for(Kr=qt,Hr=ar,gn=(qt=et.Ea)-(sn=qt&~(Ur=(ar=1<<et.b)-1)),cn=ta(qt,et.b),zn=et.K,et=et.w+(bt>>et.b)*cn;bt<zt;){for(Li=zn,ki=et,da=new Sr,$i=Hr+sn,Qa=Hr+qt;Hr<$i;)_t(Li[ki++],da),Ws(da,Kr,Hr,ar,Oe,ie),Hr+=ar,ie+=ar;Hr<Qa&&(_t(Li[ki++],da),Ws(da,Kr,Hr,gn,Oe,ie),Hr+=gn,ie+=gn),++bt&Ur||(et+=cn)}break;case 3:if(qt==Oe&&ar==ie&&0<et.b){for(Hr=Oe,qt=Kr=ie+(zt-bt)*Kr-(sn=(zt-bt)*ta(et.Ea,et.b)),ar=Oe,Ur=ie,cn=[],sn=(gn=sn)-1;0<=sn;--sn)cn[sn]=ar[Ur+sn];for(sn=gn-1;0<=sn;--sn)Hr[qt+sn]=cn[sn];Xs(et,bt,zt,Oe,Kr,Oe,ie)}else Xs(et,bt,zt,qt,ar,Oe,ie)}ie=hr,Oe=xt}Oe!=xt&&Ye(hr,xt,ie,Oe,on)}function _a(Ee,Qe){var xt=Ee.V,hr=Ee.Ba+Ee.c*Ee.C,Fr=Qe-Ee.C;if(Ne(Qe<=Ee.l.o),Ne(16>=Fr),0<Fr){var on=Ee.l,Be=Ee.Ta,ie=Ee.Ua,Oe=on.width;if(Xa(Ee,Fr,xt,hr),Fr=ie=[ie],Ne((xt=Ee.C)<(hr=Qe)),Ne(on.v<on.va),hr>on.o&&(hr=on.o),xt<on.j){var et=on.j-xt;xt=on.j,Fr[0]+=et*Oe}if(xt>=hr?xt=0:(Fr[0]+=4*on.v,on.ka=xt-on.j,on.U=on.va-on.v,on.T=hr-xt,xt=1),xt){if(ie=ie[0],11>(xt=Ee.ca).S){var bt=xt.f.RGBA,zt=(hr=xt.S,Fr=on.U,on=on.T,et=bt.eb,bt.A),qt=on;for(bt=bt.fb+Ee.Ma*bt.A;0<qt--;){var ar=Be,Kr=ie,cn=Fr,Hr=et,Ur=bt;switch(hr){case Sl:Tl(ar,Kr,cn,Hr,Ur);break;case Su:pl(ar,Kr,cn,Hr,Ur);break;case Lu:pl(ar,Kr,cn,Hr,Ur),Wl(Hr,Ur,0,cn,1,0);break;case vu:qo(ar,Kr,cn,Hr,Ur);break;case Au:Hn(ar,Kr,cn,Hr,Ur,1);break;case zl:Hn(ar,Kr,cn,Hr,Ur,1),Wl(Hr,Ur,0,cn,1,0);break;case Ol:Hn(ar,Kr,cn,Hr,Ur,0);break;case ru:Hn(ar,Kr,cn,Hr,Ur,0),Wl(Hr,Ur,1,cn,1,0);break;case cu:jo(ar,Kr,cn,Hr,Ur);break;case ou:jo(ar,Kr,cn,Hr,Ur),au(Hr,Ur,cn,1,0);break;case du:yo(ar,Kr,cn,Hr,Ur);break;default:Ne(0)}ie+=Oe,bt+=zt}Ee.Ma+=on}else alert("todo:EmitRescaledRowsYUVA");Ne(Ee.Ma<=xt.height)}}Ee.C=Qe,Ne(Ee.C<=Ee.i)}function Va(Ee){var Qe;if(0<Ee.ua)return 0;for(Qe=0;Qe<Ee.Wb;++Qe){var xt=Ee.Ya[Qe].G,hr=Ee.Ya[Qe].H;if(0<xt[1][hr[1]+0].g||0<xt[2][hr[2]+0].g||0<xt[3][hr[3]+0].g)return 0}return 1}function Bi(Ee,Qe,xt,hr,Fr,on){if(Ee.Z!=0){var Be=Ee.qd,ie=Ee.rd;for(Ne(Te[Ee.Z]!=null);Qe<xt;++Qe)Te[Ee.Z](Be,ie,hr,Fr,hr,Fr,on),Be=hr,ie=Fr,Fr+=on;Ee.qd=Be,Ee.rd=ie}}function io(Ee,Qe){var xt=Ee.l.ma,hr=xt.Z==0||xt.Z==1?Ee.l.j:Ee.C;if(hr=Ee.C<hr?hr:Ee.C,Ne(Qe<=Ee.l.o),Qe>hr){var Fr=Ee.l.width,on=xt.ca,Be=xt.tb+Fr*hr,ie=Ee.V,Oe=Ee.Ba+Ee.c*hr,et=Ee.gc;Ne(Ee.ab==1),Ne(et[0].hc==3),Ul(et[0],hr,Qe,ie,Oe,on,Be),Bi(xt,hr,Qe,on,Be,Fr)}Ee.C=Ee.Ma=Qe}function oo(Ee,Qe,xt,hr,Fr,on,Be){var ie=Ee.$/hr,Oe=Ee.$%hr,et=Ee.m,bt=Ee.s,zt=xt+Ee.$,qt=zt;Fr=xt+hr*Fr;var ar=xt+hr*on,Kr=280+bt.ua,cn=Ee.Pb?ie:16777216,Hr=0<bt.ua?bt.Wa:null,Ur=bt.wc,sn=zt<ar?Aa(bt,Oe,ie):null;Ne(Ee.C<on),Ne(ar<=Fr);var gn=!1;e:for(;;){for(;gn||zt<ar;){var zn=0;if(ie>=cn){var Li=zt-xt;Ne((cn=Ee).Pb),cn.wd=cn.m,cn.xd=Li,0<cn.s.ua&&Rn(cn.s.Wa,cn.s.vb),cn=ie+bu}if(Oe&Ur||(sn=Aa(bt,Oe,ie)),Ne(sn!=null),sn.Qb&&(Qe[zt]=sn.qb,gn=!0),!gn)if(oi(et),sn.jc){zn=et,Li=Qe;var ki=zt,da=sn.pd[_n(zn)&vo-1];Ne(sn.jc),256>da.g?($n(zn,zn.u+da.g),Li[ki]=da.value,zn=0):($n(zn,zn.u+da.g-256),Ne(256<=da.value),zn=da.value),zn==0&&(gn=!0)}else zn=ga(sn.G[0],sn.H[0],et);if(et.h)break;if(gn||256>zn){if(!gn)if(sn.nd)Qe[zt]=(sn.qb|zn<<8)>>>0;else{if(oi(et),gn=ga(sn.G[1],sn.H[1],et),oi(et),Li=ga(sn.G[2],sn.H[2],et),ki=ga(sn.G[3],sn.H[3],et),et.h)break;Qe[zt]=(ki<<24|gn<<16|zn<<8|Li)>>>0}if(gn=!1,++zt,++Oe>=hr&&(Oe=0,++ie,Be!=null&&ie<=on&&!(ie%16)&&Be(Ee,ie),Hr!=null))for(;qt<zt;)zn=Qe[qt++],Hr.X[(506832829*zn&4294967295)>>>Hr.Mb]=zn}else if(280>zn){if(zn=La(zn-256,et),Li=ga(sn.G[4],sn.H[4],et),oi(et),Li=va(hr,Li=La(Li,et)),et.h)break;if(zt-xt<Li||Fr-zt<zn)break e;for(ki=0;ki<zn;++ki)Qe[zt+ki]=Qe[zt+ki-Li];for(zt+=zn,Oe+=zn;Oe>=hr;)Oe-=hr,++ie,Be!=null&&ie<=on&&!(ie%16)&&Be(Ee,ie);if(Ne(zt<=Fr),Oe&Ur&&(sn=Aa(bt,Oe,ie)),Hr!=null)for(;qt<zt;)zn=Qe[qt++],Hr.X[(506832829*zn&4294967295)>>>Hr.Mb]=zn}else{if(!(zn<Kr))break e;for(gn=zn-280,Ne(Hr!=null);qt<zt;)zn=Qe[qt++],Hr.X[(506832829*zn&4294967295)>>>Hr.Mb]=zn;zn=zt,Ne(!(gn>>>(Li=Hr).Xa)),Qe[zn]=Li.X[gn],gn=!0}gn||Ne(et.h==Xn(et))}if(Ee.Pb&&et.h&&zt<Fr)Ne(Ee.m.h),Ee.a=5,Ee.m=Ee.wd,Ee.$=Ee.xd,0<Ee.s.ua&&Rn(Ee.s.vb,Ee.s.Wa);else{if(et.h)break e;Be!=null&&Be(Ee,ie>on?on:ie),Ee.a=0,Ee.$=zt-xt}return 1}return Ee.a=3,0}function Qo(Ee){Ne(Ee!=null),Ee.vc=null,Ee.yc=null,Ee.Ya=null;var Qe=Ee.Wa;Qe!=null&&(Qe.X=null),Ee.vb=null,Ne(Ee!=null)}function mo(){var Ee=new No;return Ee==null?null:(Ee.a=0,Ee.xb=ve,pi("Predictor","VP8LPredictors"),pi("Predictor","VP8LPredictors_C"),pi("PredictorAdd","VP8LPredictorsAdd"),pi("PredictorAdd","VP8LPredictorsAdd_C"),Os=Pn,Ws=_r,Tl=en,pl=bn,jo=On,yo=yn,qo=qn,Wt.VP8LMapColor32b=Ql,Wt.VP8LMapColor8b=wl,Ee)}function To(Ee,Qe,xt,hr,Fr){var on=1,Be=[Ee],ie=[Qe],Oe=hr.m,et=hr.s,bt=null,zt=0;e:for(;;){if(xt)for(;on&&di(Oe,1);){var qt=Be,ar=ie,Kr=hr,cn=1,Hr=Kr.m,Ur=Kr.gc[Kr.ab],sn=di(Hr,2);if(Kr.Oc&1<<sn)on=0;else{switch(Kr.Oc|=1<<sn,Ur.hc=sn,Ur.Ea=qt[0],Ur.nc=ar[0],Ur.K=[null],++Kr.ab,Ne(4>=Kr.ab),sn){case 0:case 1:Ur.b=di(Hr,3)+2,cn=To(ta(Ur.Ea,Ur.b),ta(Ur.nc,Ur.b),0,Kr,Ur.K),Ur.K=Ur.K[0];break;case 3:var gn,zn=di(Hr,8)+1,Li=16<zn?0:4<zn?1:2<zn?2:3;if(qt[0]=ta(Ur.Ea,Li),Ur.b=Li,gn=cn=To(zn,1,0,Kr,Ur.K)){var ki,da=zn,$i=Ur,Qa=1<<(8>>$i.b),ya=qe(Qa);if(ya==null)gn=0;else{var fo=$i.K[0],za=$i.w;for(ya[0]=$i.K[0][0],ki=1;ki<1*da;++ki)ya[ki]=ra(fo[za+ki],ya[ki-1]);for(;ki<4*Qa;++ki)ya[ki]=0;$i.K[0]=null,$i.K[0]=ya,gn=1}}cn=gn;break;case 2:break;default:Ne(0)}on=cn}}if(Be=Be[0],ie=ie[0],on&&di(Oe,1)&&!(on=1<=(zt=di(Oe,4))&&11>=zt)){hr.a=3;break e}var Xo;if(Xo=on)t:{var ls,D,B,ne=hr,ae=Be,ge=ie,Ke=zt,It=xt,nr=ne.m,br=ne.s,Cr=[null],jn=1,ti=0,Ei=xu[Ke];r:for(;;){if(It&&di(nr,1)){var _i=di(nr,3)+2,la=ta(ae,_i),Ta=ta(ge,_i),Wa=la*Ta;if(!To(la,Ta,0,ne,Cr))break r;for(Cr=Cr[0],br.xc=_i,ls=0;ls<Wa;++ls){var Ma=Cr[ls]>>8&65535;Cr[ls]=Ma,Ma>=jn&&(jn=Ma+1)}}if(nr.h)break r;for(D=0;5>D;++D){var Na=Du[D];!D&&0<Ke&&(Na+=1<<Ke),ti<Na&&(ti=Na)}var qa=lt(jn*Ei,Kt),ho=jn,ns=lt(ho,cr);if(ns==null)var Mo=null;else Ne(65536>=ho),Mo=ns;var Ss=qe(ti);if(Mo==null||Ss==null||qa==null){ne.a=1;break r}var Zs=qa;for(ls=B=0;ls<jn;++ls){var yl=Mo[ls],ul=yl.G,Pl=yl.H,Vl=0,Il=1,Gl=0;for(D=0;5>D;++D){Na=Du[D],ul[D]=Zs,Pl[D]=B,!D&&0<Ke&&(Na+=1<<Ke);i:{var Fl,Ja=Na,vl=ne,gl=Ss,El=Zs,Bu=B,Ks=0,vs=vl.m,lu=di(vs,1);if(at(gl,0,0,Ja),lu){var Kl=di(vs,1)+1,Uu=di(vs,1),Eu=di(vs,Uu==0?1:8);gl[Eu]=1,Kl==2&&(gl[Eu=di(vs,8)]=1);var uu=1}else{var ku=qe(19),Yl=di(vs,4)+4;if(19<Yl){vl.a=3;var Tu=0;break i}for(Fl=0;Fl<Yl;++Fl)ku[Zl[Fl]]=di(vs,3);var Vu=void 0,Ju=void 0,vc=vl,Ac=ku,tc=Ja,yc=gl,sc=0,ju=vc.m,hc=8,bc=lt(128,Kt);n:for(;Ut(bc,0,7,Ac,19);){if(di(ju,1)){var Tc=2+2*di(ju,3);if((Vu=2+di(ju,Tc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){oi(ju);var wc=bc[0+(127&_n(ju))];$n(ju,ju.u+wc.g);var Pu=wc.value;if(16>Pu)yc[Ju++]=Pu,Pu!=0&&(hc=Pu);else{var Cu=Pu==16,fc=Pu-16,lc=Jl[fc],Sc=di(ju,su[fc])+lc;if(Ju+Sc>tc)break n;for(var Cc=Cu?hc:0;0<Sc--;)yc[Ju++]=Cc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!vs.h)&&(Ks=Ut(El,Bu,8,gl,Ja)),uu&&Ks!=0?Tu=Ks:(vl.a=3,Tu=0)}if(Tu==0)break r;if(Il&&Ru[D]==1&&(Il=Zs[B].g==0),Vl+=Zs[B].g,B+=Tu,3>=D){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);Gl+=Hu}}if(yl.nd=Il,yl.Qb=0,Il&&(yl.qb=(ul[3][Pl[3]+0].value<<24|ul[1][Pl[1]+0].value<<16|ul[2][Pl[2]+0].value)>>>0,Vl==0&&256>ul[0][Pl[0]+0].value&&(yl.Qb=1,yl.qb+=ul[0][Pl[0]+0].value<<8)),yl.jc=!yl.Qb&&6>Gl,yl.jc){var Xu,Fu=yl;for(Xu=0;Xu<vo;++Xu){var wu=Xu,Ku=Fu.pd[wu],uc=Fu.G[0][Fu.H[0]+wu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,wu>>=Oa(uc,8,Ku),wu>>=Oa(Fu.G[1][Fu.H[1]+wu],16,Ku),wu>>=Oa(Fu.G[2][Fu.H[2]+wu],0,Ku),Oa(Fu.G[3][Fu.H[3]+wu],24,Ku))}}}br.vc=Cr,br.Wb=jn,br.Ya=Mo,br.yc=qa,Xo=1;break t}Xo=0}if(!(on=Xo)){hr.a=3;break e}if(0<zt){if(et.ua=1<<zt,!bi(et.Wa,zt)){hr.a=1,on=0;break e}}else et.ua=0;var cc=hr,xc=Be,Ec=ie,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ta(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,xt){hr.xb=re;break e}if((bt=qe(Be*ie))==null){hr.a=1,on=0;break e}on=(on=oo(hr,bt,0,Be,ie,ie,null))&&!Oe.h;break e}return on?(Fr!=null?Fr[0]=bt:(Ne(bt==null),Ne(xt)),hr.$=0,xt||Qo(et)):Qo(et),on}function ao(Ee,Qe){var xt=Ee.c*Ee.i,hr=xt+Qe+16*Qe;return Ne(Ee.c<=Qe),Ee.V=qe(hr),Ee.V==null?(Ee.Ta=null,Ee.Ua=0,Ee.a=1,0):(Ee.Ta=Ee.V,Ee.Ua=Ee.Ba+xt+Qe,1)}function So(Ee,Qe){var xt=Ee.C,hr=Qe-xt,Fr=Ee.V,on=Ee.Ba+Ee.c*xt;for(Ne(Qe<=Ee.l.o);0<hr;){var Be=16<hr?16:hr,ie=Ee.l.ma,Oe=Ee.l.width,et=Oe*Be,bt=ie.ca,zt=ie.tb+Oe*xt,qt=Ee.Ta,ar=Ee.Ua;Xa(Ee,Be,Fr,on),$l(qt,ar,bt,zt,et),Bi(ie,xt,xt+Be,bt,zt,Oe),hr-=Be,Fr+=Be*Ee.c,xt+=Be}Ne(xt==Qe),Ee.C=Ee.Ma=Qe}function bo(){this.ub=this.yd=this.td=this.Rb=0}function to(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Jo(){this.Fb=this.Bb=this.Cb=0,this.Zb=qe(4),this.Lb=qe(4)}function Uo(){this.Yb=function(){var Ee=[];return function Qe(xt,hr,Fr){for(var on=Fr[hr],Be=0;Be<on&&(xt.push(Fr.length>hr+1?[]:0),!(Fr.length<hr+1));Be++)Qe(xt[Be],hr+1,Fr)}(Ee,0,[3,11]),Ee}()}function wo(){this.jb=qe(3),this.Wc=Et([4,8],Uo),this.Xc=Et([4,17],Uo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new qe(4),this.od=new qe(4)}function Ia(){this.ld=this.La=this.dd=this.tc=0}function Oo(){this.Na=this.la=0}function Io(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function os(){this.ad=qe(384),this.Za=0,this.Ob=qe(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function xo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ia),this.Y=0,this.ya=Array(new os),this.aa=0,this.l=new uo}function rs(){this.y=qe(16),this.f=qe(8),this.ea=qe(8)}function Ho(){this.cb=this.a=0,this.sc="",this.m=new pn,this.Od=new bo,this.Kc=new to,this.ed=new ts,this.Qa=new Jo,this.Ic=this.$c=this.Aa=0,this.D=new xo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=lt(8,pn),this.ia=0,this.pb=lt(4,Io),this.Pa=new wo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new rs),this.Hd=0,this.rb=Array(new Oo),this.sb=0,this.wa=Array(new Ia),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new os),this.L=this.aa=0,this.gd=Et([4,2],Ia),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _o(Ee,Qe){return 0>Ee?0:Ee>Qe?Qe:Ee}function uo(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ha(){var Ee=new Ho;return Ee!=null&&(Ee.a=0,Ee.sc="OK",Ee.cb=0,Ee.Xb=0,nu||(nu=Gr)),Ee}function vt(Ee,Qe,xt){return Ee.a==0&&(Ee.a=Qe,Ee.sc=xt,Ee.cb=0),0}function Er(Ee,Qe,xt){return 3<=xt&&Ee[Qe+0]==157&&Ee[Qe+1]==1&&Ee[Qe+2]==42}function qr(Ee,Qe){if(Ee==null)return 0;if(Ee.a=0,Ee.sc="OK",Qe==null)return vt(Ee,2,"null VP8Io passed to VP8GetHeaders()");var xt=Qe.data,hr=Qe.w,Fr=Qe.ha;if(4>Fr)return vt(Ee,7,"Truncated header.");var on=xt[hr+0]|xt[hr+1]<<8|xt[hr+2]<<16,Be=Ee.Od;if(Be.Rb=!(1&on),Be.td=on>>1&7,Be.yd=on>>4&1,Be.ub=on>>5,3<Be.td)return vt(Ee,3,"Incorrect keyframe parameters.");if(!Be.yd)return vt(Ee,4,"Frame not displayable.");hr+=3,Fr-=3;var ie=Ee.Kc;if(Be.Rb){if(7>Fr)return vt(Ee,7,"cannot parse picture header");if(!Er(xt,hr,Fr))return vt(Ee,3,"Bad code word");ie.c=16383&(xt[hr+4]<<8|xt[hr+3]),ie.Td=xt[hr+4]>>6,ie.i=16383&(xt[hr+6]<<8|xt[hr+5]),ie.Ud=xt[hr+6]>>6,hr+=7,Fr-=7,Ee.za=ie.c+15>>4,Ee.Ub=ie.i+15>>4,Qe.width=ie.c,Qe.height=ie.i,Qe.Da=0,Qe.j=0,Qe.v=0,Qe.va=Qe.width,Qe.o=Qe.height,Qe.da=0,Qe.ib=Qe.width,Qe.hb=Qe.height,Qe.U=Qe.width,Qe.T=Qe.height,at((on=Ee.Pa).jb,0,255,on.jb.length),Ne((on=Ee.Qa)!=null),on.Cb=0,on.Bb=0,on.Fb=1,at(on.Zb,0,0,on.Zb.length),at(on.Lb,0,0,on.Lb)}if(Be.ub>Fr)return vt(Ee,7,"bad partition length");vr(on=Ee.m,xt,hr,Be.ub),hr+=Be.ub,Fr-=Be.ub,Be.Rb&&(ie.Ld=Ri(on),ie.Kd=Ri(on)),ie=Ee.Qa;var Oe,et=Ee.Pa;if(Ne(on!=null),Ne(ie!=null),ie.Cb=Ri(on),ie.Cb){if(ie.Bb=Ri(on),Ri(on)){for(ie.Fb=Ri(on),Oe=0;4>Oe;++Oe)ie.Zb[Oe]=Ri(on)?Rr(on,7):0;for(Oe=0;4>Oe;++Oe)ie.Lb[Oe]=Ri(on)?Rr(on,6):0}if(ie.Bb)for(Oe=0;3>Oe;++Oe)et.jb[Oe]=Ri(on)?yr(on,8):255}else ie.Bb=0;if(on.Ka)return vt(Ee,3,"cannot parse segment header");if((ie=Ee.ed).zd=Ri(on),ie.Tb=yr(on,6),ie.wb=yr(on,3),ie.Pc=Ri(on),ie.Pc&&Ri(on)){for(et=0;4>et;++et)Ri(on)&&(ie.vd[et]=Rr(on,6));for(et=0;4>et;++et)Ri(on)&&(ie.od[et]=Rr(on,6))}if(Ee.L=ie.Tb==0?0:ie.zd?1:2,on.Ka)return vt(Ee,3,"cannot parse filter header");var bt=Fr;if(Fr=Oe=hr,hr=Oe+bt,ie=bt,Ee.Xb=(1<<yr(Ee.m,2))-1,bt<3*(et=Ee.Xb))xt=7;else{for(Oe+=3*et,ie-=3*et,bt=0;bt<et;++bt){var zt=xt[Fr+0]|xt[Fr+1]<<8|xt[Fr+2]<<16;zt>ie&&(zt=ie),vr(Ee.Jc[+bt],xt,Oe,zt),Oe+=zt,ie-=zt,Fr+=3}vr(Ee.Jc[+et],xt,Oe,ie),xt=Oe<hr?0:5}if(xt!=0)return vt(Ee,xt,"cannot parse partitions");for(xt=yr(Oe=Ee.m,7),Fr=Ri(Oe)?Rr(Oe,4):0,hr=Ri(Oe)?Rr(Oe,4):0,ie=Ri(Oe)?Rr(Oe,4):0,et=Ri(Oe)?Rr(Oe,4):0,Oe=Ri(Oe)?Rr(Oe,4):0,bt=Ee.Qa,zt=0;4>zt;++zt){if(bt.Cb){var qt=bt.Zb[zt];bt.Fb||(qt+=xt)}else{if(0<zt){Ee.pb[zt]=Ee.pb[0];continue}qt=xt}var ar=Ee.pb[zt];ar.Sc[0]=hl[_o(qt+Fr,127)],ar.Sc[1]=Dl[_o(qt+0,127)],ar.Eb[0]=2*hl[_o(qt+hr,127)],ar.Eb[1]=101581*Dl[_o(qt+ie,127)]>>16,8>ar.Eb[1]&&(ar.Eb[1]=8),ar.Qc[0]=hl[_o(qt+et,117)],ar.Qc[1]=Dl[_o(qt+Oe,127)],ar.lc=qt+Oe}if(!Be.Rb)return vt(Ee,4,"Not a key frame.");for(Ri(on),Be=Ee.Pa,xt=0;4>xt;++xt){for(Fr=0;8>Fr;++Fr)for(hr=0;3>hr;++hr)for(ie=0;11>ie;++ie)et=Di(on,q[xt][Fr][hr][ie])?yr(on,8):iu[xt][Fr][hr][ie],Be.Wc[xt][Fr].Yb[hr][ie]=et;for(Fr=0;17>Fr;++Fr)Be.Xc[xt][Fr]=Be.Wc[xt][N[Fr]]}return Ee.kc=Ri(on),Ee.kc&&(Ee.Bd=yr(on,8)),Ee.cb=1}function Gr(Ee,Qe,xt,hr,Fr,on,Be){var ie=Qe[Fr].Yb[xt];for(xt=0;16>Fr;++Fr){if(!Di(Ee,ie[xt+0]))return Fr;for(;!Di(Ee,ie[xt+1]);)if(ie=Qe[++Fr].Yb[0],xt=0,Fr==16)return 16;var Oe=Qe[Fr+1].Yb;if(Di(Ee,ie[xt+2])){var et=Ee,bt=0;if(Di(et,(qt=ie)[(zt=xt)+3]))if(Di(et,qt[zt+6])){for(ie=0,zt=2*(bt=Di(et,qt[zt+8]))+(qt=Di(et,qt[zt+9+bt])),bt=0,qt=Nu[zt];qt[ie];++ie)bt+=bt+Di(et,qt[ie]);bt+=3+(8<<zt)}else Di(et,qt[zt+7])?(bt=7+2*Di(et,165),bt+=Di(et,145)):bt=5+Di(et,159);else bt=Di(et,qt[zt+4])?3+Di(et,qt[zt+5]):2;ie=Oe[2]}else bt=1,ie=Oe[1];Oe=Be+hu[Fr],0>(et=Ee).b&&Ti(et);var zt,qt=et.b,ar=(zt=et.Ca>>1)-(et.I>>qt)>>31;--et.b,et.Ca+=ar,et.Ca|=1,et.I-=(zt+1&ar)<<qt,on[Oe]=((bt^ar)-ar)*hr[(0<Fr)+0]}return 16}function Qn(Ee){var Qe=Ee.rb[Ee.sb-1];Qe.la=0,Qe.Na=0,at(Ee.zc,0,0,Ee.zc.length),Ee.ja=0}function un(Ee,Qe){if(Ee==null)return 0;if(Qe==null)return vt(Ee,2,"NULL VP8Io parameter in VP8Decode().");if(!Ee.cb&&!qr(Ee,Qe))return 0;if(Ne(Ee.cb),Qe.ac==null||Qe.ac(Qe)){Qe.ob&&(Ee.L=0);var xt=Cs[Ee.L];if(Ee.L==2?(Ee.yb=0,Ee.zb=0):(Ee.yb=Qe.v-xt>>4,Ee.zb=Qe.j-xt>>4,0>Ee.yb&&(Ee.yb=0),0>Ee.zb&&(Ee.zb=0)),Ee.Va=Qe.o+15+xt>>4,Ee.Hb=Qe.va+15+xt>>4,Ee.Hb>Ee.za&&(Ee.Hb=Ee.za),Ee.Va>Ee.Ub&&(Ee.Va=Ee.Ub),0<Ee.L){var hr=Ee.ed;for(xt=0;4>xt;++xt){var Fr;if(Ee.Qa.Cb){var on=Ee.Qa.Lb[xt];Ee.Qa.Fb||(on+=hr.Tb)}else on=hr.Tb;for(Fr=0;1>=Fr;++Fr){var Be=Ee.gd[xt][Fr],ie=on;if(hr.Pc&&(ie+=hr.vd[0],Fr&&(ie+=hr.od[0])),0<(ie=0>ie?0:63<ie?63:ie)){var Oe=ie;0<hr.wb&&(Oe=4<hr.wb?Oe>>2:Oe>>1)>9-hr.wb&&(Oe=9-hr.wb),1>Oe&&(Oe=1),Be.dd=Oe,Be.tc=2*ie+Oe,Be.ld=40<=ie?2:15<=ie?1:0}else Be.tc=0;Be.La=Fr}}}xt=0}else vt(Ee,6,"Frame setup failed"),xt=Ee.a;if(xt=xt==0){if(xt){Ee.$c=0,0<Ee.Aa||(Ee.Ic=ws);e:{xt=Ee.Ic,hr=4*(Oe=Ee.za);var et=32*Oe,bt=Oe+1,zt=0<Ee.L?Oe*(0<Ee.Aa?2:1):0,qt=(Ee.Aa==2?2:1)*Oe;if((Be=hr+832+(Fr=3*(16*xt+Cs[Ee.L])/2*et)+(on=Ee.Fa!=null&&0<Ee.Fa.length?Ee.Kc.c*Ee.Kc.i:0))!=Be)xt=0;else{if(Be>Ee.Vb){if(Ee.Vb=0,Ee.Ec=qe(Be),Ee.Fc=0,Ee.Ec==null){xt=vt(Ee,1,"no memory during frame initialization.");break e}Ee.Vb=Be}Be=Ee.Ec,ie=Ee.Fc,Ee.Ac=Be,Ee.Bc=ie,ie+=hr,Ee.Gd=lt(et,rs),Ee.Hd=0,Ee.rb=lt(bt+1,Oo),Ee.sb=1,Ee.wa=zt?lt(zt,Ia):null,Ee.Y=0,Ee.D.Nb=0,Ee.D.wa=Ee.wa,Ee.D.Y=Ee.Y,0<Ee.Aa&&(Ee.D.Y+=Oe),Ne(!0),Ee.oc=Be,Ee.pc=ie,ie+=832,Ee.ya=lt(qt,os),Ee.aa=0,Ee.D.ya=Ee.ya,Ee.D.aa=Ee.aa,Ee.Aa==2&&(Ee.D.aa+=Oe),Ee.R=16*Oe,Ee.B=8*Oe,Oe=(et=Cs[Ee.L])*Ee.R,et=et/2*Ee.B,Ee.sa=Be,Ee.ta=ie+Oe,Ee.qa=Ee.sa,Ee.ra=Ee.ta+16*xt*Ee.R+et,Ee.Ha=Ee.qa,Ee.Ia=Ee.ra+8*xt*Ee.B+et,Ee.$c=0,ie+=Fr,Ee.mb=on?Be:null,Ee.nb=on?ie:null,Ne(ie+on<=Ee.Fc+Ee.Vb),Qn(Ee),at(Ee.Ac,Ee.Bc,0,hr),xt=1}}if(xt){if(Qe.ka=0,Qe.y=Ee.sa,Qe.O=Ee.ta,Qe.f=Ee.qa,Qe.N=Ee.ra,Qe.ea=Ee.Ha,Qe.Vd=Ee.Ia,Qe.fa=Ee.R,Qe.Rc=Ee.B,Qe.F=null,Qe.J=0,!gu){for(xt=-255;255>=xt;++xt)tu[255+xt]=0>xt?-xt:xt;for(xt=-1020;1020>=xt;++xt)Iu[1020+xt]=-128>xt?-128:127<xt?127:xt;for(xt=-112;112>=xt;++xt)pu[112+xt]=-16>xt?-16:15<xt?15:xt;for(xt=-255;510>=xt;++xt)mu[255+xt]=0>xt?0:255<xt?255:xt;gu=1}ps=yi,Is=ci,Ls=si,Ps=Ci,ml=mi,es=li,Rl=Ll,_l=el,Bl=ks,jl=Qs,kl=Gs,Xl=ds,ol=tl,Ys=xs,sl=zo,nl=Fs,xl=ms,Ml=hs,H[0]=Ka,H[1]=ia,H[2]=Ea,H[3]=Fa,H[4]=lo,H[5]=Co,H[6]=so,H[7]=Lo,H[8]=cs,H[9]=is,W[0]=Da,W[1]=fa,W[2]=Ya,W[3]=xa,W[4]=ja,W[5]=ko,W[6]=ro,Z[0]=co,Z[1]=Ki,Z[2]=Rs,Z[3]=Ko,Z[4]=$a,Z[5]=Ao,Z[6]=ss,xt=1}else xt=0}xt&&(xt=function(ar,Kr){for(ar.M=0;ar.M<ar.Va;++ar.M){var cn,Hr=ar.Jc[ar.M&ar.Xb],Ur=ar.m,sn=ar;for(cn=0;cn<sn.za;++cn){var gn=Ur,zn=sn,Li=zn.Ac,ki=zn.Bc+4*cn,da=zn.zc,$i=zn.ya[zn.aa+cn];if(zn.Qa.Bb?$i.$b=Di(gn,zn.Pa.jb[0])?2+Di(gn,zn.Pa.jb[2]):Di(gn,zn.Pa.jb[1]):$i.$b=0,zn.kc&&($i.Ad=Di(gn,zn.Bd)),$i.Za=!Di(gn,145)+0,$i.Za){var Qa=$i.Ob,ya=0;for(zn=0;4>zn;++zn){var fo,za=da[0+zn];for(fo=0;4>fo;++fo){za=Ae[Li[ki+fo]][za];for(var Xo=fu[Di(gn,za[0])];0<Xo;)Xo=fu[2*Xo+Di(gn,za[Xo])];za=-Xo,Li[ki+fo]=za}Ye(Qa,ya,Li,ki,4),ya+=4,da[0+zn]=za}}else za=Di(gn,156)?Di(gn,128)?1:3:Di(gn,163)?2:0,$i.Ob[0]=za,at(Li,ki,za,4),at(da,0,za,4);$i.Dd=Di(gn,142)?Di(gn,114)?Di(gn,183)?1:3:2:0}if(sn.m.Ka)return vt(ar,7,"Premature end-of-partition0 encountered.");for(;ar.ja<ar.za;++ar.ja){if(sn=Hr,gn=(Ur=ar).rb[Ur.sb-1],Li=Ur.rb[Ur.sb+Ur.ja],cn=Ur.ya[Ur.aa+Ur.ja],ki=Ur.kc?cn.Ad:0)gn.la=Li.la=0,cn.Za||(gn.Na=Li.Na=0),cn.Hc=0,cn.Gc=0,cn.ia=0;else{var ls,D;if(gn=Li,Li=sn,ki=Ur.Pa.Xc,da=Ur.ya[Ur.aa+Ur.ja],$i=Ur.pb[da.$b],zn=da.ad,Qa=0,ya=Ur.rb[Ur.sb-1],za=fo=0,at(zn,Qa,0,384),da.Za)var B=0,ne=ki[3];else{Xo=qe(16);var ae=gn.Na+ya.Na;if(ae=nu(Li,ki[1],ae,$i.Eb,0,Xo,0),gn.Na=ya.Na=(0<ae)+0,1<ae)ps(Xo,0,zn,Qa);else{var ge=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)zn[Qa+Xo]=ge}B=1,ne=ki[0]}var Ke=15&gn.la,It=15&ya.la;for(Xo=0;4>Xo;++Xo){var nr=1&It;for(ge=D=0;4>ge;++ge)Ke=Ke>>1|(nr=(ae=nu(Li,ne,ae=nr+(1&Ke),$i.Sc,B,zn,Qa))>B)<<7,D=D<<2|(3<ae?3:1<ae?2:zn[Qa+0]!=0),Qa+=16;Ke>>=4,It=It>>1|nr<<7,fo=(fo<<8|D)>>>0}for(ne=Ke,B=It>>4,ls=0;4>ls;ls+=2){for(D=0,Ke=gn.la>>4+ls,It=ya.la>>4+ls,Xo=0;2>Xo;++Xo){for(nr=1&It,ge=0;2>ge;++ge)ae=nr+(1&Ke),Ke=Ke>>1|(nr=0<(ae=nu(Li,ki[2],ae,$i.Qc,0,zn,Qa)))<<3,D=D<<2|(3<ae?3:1<ae?2:zn[Qa+0]!=0),Qa+=16;Ke>>=2,It=It>>1|nr<<5}za|=D<<4*ls,ne|=Ke<<4<<ls,B|=(240&It)<<ls}gn.la=ne,ya.la=B,da.Hc=fo,da.Gc=za,da.ia=43690&za?0:$i.ia,ki=!(fo|za)}if(0<Ur.L&&(Ur.wa[Ur.Y+Ur.ja]=Ur.gd[cn.$b][cn.Za],Ur.wa[Ur.Y+Ur.ja].La|=!ki),sn.Ka)return vt(ar,7,"Premature end-of-file encountered.")}if(Qn(ar),Ur=Kr,sn=1,cn=(Hr=ar).D,gn=0<Hr.L&&Hr.M>=Hr.zb&&Hr.M<=Hr.Va,Hr.Aa==0)e:{if(cn.M=Hr.M,cn.uc=gn,Bo(Hr,cn),sn=1,cn=(D=Hr.D).Nb,gn=(za=Cs[Hr.L])*Hr.R,Li=za/2*Hr.B,Xo=16*cn*Hr.R,ge=8*cn*Hr.B,ki=Hr.sa,da=Hr.ta-gn+Xo,$i=Hr.qa,zn=Hr.ra-Li+ge,Qa=Hr.Ha,ya=Hr.Ia-Li+ge,It=(Ke=D.M)==0,fo=Ke>=Hr.Va-1,Hr.Aa==2&&Bo(Hr,D),D.uc)for(nr=(ae=Hr).D.M,Ne(ae.D.uc),D=ae.yb;D<ae.Hb;++D){B=D,ne=nr;var br=(Cr=(Na=ae).D).Nb;ls=Na.R;var Cr=Cr.wa[Cr.Y+B],jn=Na.sa,ti=Na.ta+16*br*ls+16*B,Ei=Cr.dd,_i=Cr.tc;if(_i!=0)if(Ne(3<=_i),Na.L==1)0<B&&nl(jn,ti,ls,_i+4),Cr.La&&Ml(jn,ti,ls,_i),0<ne&&sl(jn,ti,ls,_i+4),Cr.La&&xl(jn,ti,ls,_i);else{var la=Na.B,Ta=Na.qa,Wa=Na.ra+8*br*la+8*B,Ma=Na.Ha,Na=Na.Ia+8*br*la+8*B;br=Cr.ld,0<B&&(_l(jn,ti,ls,_i+4,Ei,br),jl(Ta,Wa,Ma,Na,la,_i+4,Ei,br)),Cr.La&&(Xl(jn,ti,ls,_i,Ei,br),Ys(Ta,Wa,Ma,Na,la,_i,Ei,br)),0<ne&&(Rl(jn,ti,ls,_i+4,Ei,br),Bl(Ta,Wa,Ma,Na,la,_i+4,Ei,br)),Cr.La&&(kl(jn,ti,ls,_i,Ei,br),ol(Ta,Wa,Ma,Na,la,_i,Ei,br))}}if(Hr.ia&&alert("todo:DitherRow"),Ur.put!=null){if(D=16*Ke,Ke=16*(Ke+1),It?(Ur.y=Hr.sa,Ur.O=Hr.ta+Xo,Ur.f=Hr.qa,Ur.N=Hr.ra+ge,Ur.ea=Hr.Ha,Ur.W=Hr.Ia+ge):(D-=za,Ur.y=ki,Ur.O=da,Ur.f=$i,Ur.N=zn,Ur.ea=Qa,Ur.W=ya),fo||(Ke-=za),Ke>Ur.o&&(Ke=Ur.o),Ur.F=null,Ur.J=null,Hr.Fa!=null&&0<Hr.Fa.length&&D<Ke&&(Ur.J=or(Hr,Ur,D,Ke-D),Ur.F=Hr.mb,Ur.F==null&&Ur.F.length==0)){sn=vt(Hr,3,"Could not decode alpha data.");break e}D<Ur.j&&(za=Ur.j-D,D=Ur.j,Ne(!(1&za)),Ur.O+=Hr.R*za,Ur.N+=Hr.B*(za>>1),Ur.W+=Hr.B*(za>>1),Ur.F!=null&&(Ur.J+=Ur.width*za)),D<Ke&&(Ur.O+=Ur.v,Ur.N+=Ur.v>>1,Ur.W+=Ur.v>>1,Ur.F!=null&&(Ur.J+=Ur.v),Ur.ka=D-Ur.j,Ur.U=Ur.va-Ur.v,Ur.T=Ke-D,sn=Ur.put(Ur))}cn+1!=Hr.Ic||fo||(Ye(Hr.sa,Hr.ta-gn,ki,da+16*Hr.R,gn),Ye(Hr.qa,Hr.ra-Li,$i,zn+8*Hr.B,Li),Ye(Hr.Ha,Hr.Ia-Li,Qa,ya+8*Hr.B,Li))}if(!sn)return vt(ar,6,"Output aborted.")}return 1}(Ee,Qe)),Qe.bc!=null&&Qe.bc(Qe),xt&=1}return xt?(Ee.cb=0,xt):0}function zr(Ee,Qe,xt,hr,Fr){Fr=Ee[Qe+xt+32*hr]+(Fr>>3),Ee[Qe+xt+32*hr]=-256&Fr?0>Fr?0:255:Fr}function ni(Ee,Qe,xt,hr,Fr,on){zr(Ee,Qe,0,xt,hr+Fr),zr(Ee,Qe,1,xt,hr+on),zr(Ee,Qe,2,xt,hr-on),zr(Ee,Qe,3,xt,hr-Fr)}function rn(Ee){return(20091*Ee>>16)+Ee}function Kn(Ee,Qe,xt,hr){var Fr,on=0,Be=qe(16);for(Fr=0;4>Fr;++Fr){var ie=Ee[Qe+0]+Ee[Qe+8],Oe=Ee[Qe+0]-Ee[Qe+8],et=(35468*Ee[Qe+4]>>16)-rn(Ee[Qe+12]),bt=rn(Ee[Qe+4])+(35468*Ee[Qe+12]>>16);Be[on+0]=ie+bt,Be[on+1]=Oe+et,Be[on+2]=Oe-et,Be[on+3]=ie-bt,on+=4,Qe++}for(Fr=on=0;4>Fr;++Fr)ie=(Ee=Be[on+0]+4)+Be[on+8],Oe=Ee-Be[on+8],et=(35468*Be[on+4]>>16)-rn(Be[on+12]),zr(xt,hr,0,0,ie+(bt=rn(Be[on+4])+(35468*Be[on+12]>>16))),zr(xt,hr,1,0,Oe+et),zr(xt,hr,2,0,Oe-et),zr(xt,hr,3,0,ie-bt),on++,hr+=32}function li(Ee,Qe,xt,hr){var Fr=Ee[Qe+0]+4,on=35468*Ee[Qe+4]>>16,Be=rn(Ee[Qe+4]),ie=35468*Ee[Qe+1]>>16;ni(xt,hr,0,Fr+Be,Ee=rn(Ee[Qe+1]),ie),ni(xt,hr,1,Fr+on,Ee,ie),ni(xt,hr,2,Fr-on,Ee,ie),ni(xt,hr,3,Fr-Be,Ee,ie)}function ci(Ee,Qe,xt,hr,Fr){Kn(Ee,Qe,xt,hr),Fr&&Kn(Ee,Qe+16,xt,hr+4)}function si(Ee,Qe,xt,hr){Is(Ee,Qe+0,xt,hr,1),Is(Ee,Qe+32,xt,hr+128,1)}function Ci(Ee,Qe,xt,hr){var Fr;for(Ee=Ee[Qe+0]+4,Fr=0;4>Fr;++Fr)for(Qe=0;4>Qe;++Qe)zr(xt,hr,Qe,Fr,Ee)}function mi(Ee,Qe,xt,hr){Ee[Qe+0]&&Ps(Ee,Qe+0,xt,hr),Ee[Qe+16]&&Ps(Ee,Qe+16,xt,hr+4),Ee[Qe+32]&&Ps(Ee,Qe+32,xt,hr+128),Ee[Qe+48]&&Ps(Ee,Qe+48,xt,hr+128+4)}function yi(Ee,Qe,xt,hr){var Fr,on=qe(16);for(Fr=0;4>Fr;++Fr){var Be=Ee[Qe+0+Fr]+Ee[Qe+12+Fr],ie=Ee[Qe+4+Fr]+Ee[Qe+8+Fr],Oe=Ee[Qe+4+Fr]-Ee[Qe+8+Fr],et=Ee[Qe+0+Fr]-Ee[Qe+12+Fr];on[0+Fr]=Be+ie,on[8+Fr]=Be-ie,on[4+Fr]=et+Oe,on[12+Fr]=et-Oe}for(Fr=0;4>Fr;++Fr)Be=(Ee=on[0+4*Fr]+3)+on[3+4*Fr],ie=on[1+4*Fr]+on[2+4*Fr],Oe=on[1+4*Fr]-on[2+4*Fr],et=Ee-on[3+4*Fr],xt[hr+0]=Be+ie>>3,xt[hr+16]=et+Oe>>3,xt[hr+32]=Be-ie>>3,xt[hr+48]=et-Oe>>3,hr+=64}function Ni(Ee,Qe,xt){var hr,Fr=Qe-32,on=ll,Be=255-Ee[Fr-1];for(hr=0;hr<xt;++hr){var ie,Oe=on,et=Be+Ee[Qe-1];for(ie=0;ie<xt;++ie)Ee[Qe+ie]=Oe[et+Ee[Fr+ie]];Qe+=32}}function ia(Ee,Qe){Ni(Ee,Qe,4)}function Ki(Ee,Qe){Ni(Ee,Qe,8)}function fa(Ee,Qe){Ni(Ee,Qe,16)}function Ya(Ee,Qe){var xt;for(xt=0;16>xt;++xt)Ye(Ee,Qe+32*xt,Ee,Qe-32,16)}function xa(Ee,Qe){var xt;for(xt=16;0<xt;--xt)at(Ee,Qe,Ee[Qe-1],16),Qe+=32}function wa(Ee,Qe,xt){var hr;for(hr=0;16>hr;++hr)at(Qe,xt+32*hr,Ee,16)}function Da(Ee,Qe){var xt,hr=16;for(xt=0;16>xt;++xt)hr+=Ee[Qe-1+32*xt]+Ee[Qe+xt-32];wa(hr>>5,Ee,Qe)}function ja(Ee,Qe){var xt,hr=8;for(xt=0;16>xt;++xt)hr+=Ee[Qe-1+32*xt];wa(hr>>4,Ee,Qe)}function ko(Ee,Qe){var xt,hr=8;for(xt=0;16>xt;++xt)hr+=Ee[Qe+xt-32];wa(hr>>4,Ee,Qe)}function ro(Ee,Qe){wa(128,Ee,Qe)}function pa(Ee,Qe,xt){return Ee+2*Qe+xt+2>>2}function Ea(Ee,Qe){var xt,hr=Qe-32;for(hr=new Uint8Array([pa(Ee[hr-1],Ee[hr+0],Ee[hr+1]),pa(Ee[hr+0],Ee[hr+1],Ee[hr+2]),pa(Ee[hr+1],Ee[hr+2],Ee[hr+3]),pa(Ee[hr+2],Ee[hr+3],Ee[hr+4])]),xt=0;4>xt;++xt)Ye(Ee,Qe+32*xt,hr,0,hr.length)}function Fa(Ee,Qe){var xt=Ee[Qe-1],hr=Ee[Qe-1+32],Fr=Ee[Qe-1+64],on=Ee[Qe-1+96];oa(Ee,Qe+0,16843009*pa(Ee[Qe-1-32],xt,hr)),oa(Ee,Qe+32,16843009*pa(xt,hr,Fr)),oa(Ee,Qe+64,16843009*pa(hr,Fr,on)),oa(Ee,Qe+96,16843009*pa(Fr,on,on))}function Ka(Ee,Qe){var xt,hr=4;for(xt=0;4>xt;++xt)hr+=Ee[Qe+xt-32]+Ee[Qe-1+32*xt];for(hr>>=3,xt=0;4>xt;++xt)at(Ee,Qe+32*xt,hr,4)}function lo(Ee,Qe){var xt=Ee[Qe-1+0],hr=Ee[Qe-1+32],Fr=Ee[Qe-1+64],on=Ee[Qe-1-32],Be=Ee[Qe+0-32],ie=Ee[Qe+1-32],Oe=Ee[Qe+2-32],et=Ee[Qe+3-32];Ee[Qe+0+96]=pa(hr,Fr,Ee[Qe-1+96]),Ee[Qe+1+96]=Ee[Qe+0+64]=pa(xt,hr,Fr),Ee[Qe+2+96]=Ee[Qe+1+64]=Ee[Qe+0+32]=pa(on,xt,hr),Ee[Qe+3+96]=Ee[Qe+2+64]=Ee[Qe+1+32]=Ee[Qe+0+0]=pa(Be,on,xt),Ee[Qe+3+64]=Ee[Qe+2+32]=Ee[Qe+1+0]=pa(ie,Be,on),Ee[Qe+3+32]=Ee[Qe+2+0]=pa(Oe,ie,Be),Ee[Qe+3+0]=pa(et,Oe,ie)}function so(Ee,Qe){var xt=Ee[Qe+1-32],hr=Ee[Qe+2-32],Fr=Ee[Qe+3-32],on=Ee[Qe+4-32],Be=Ee[Qe+5-32],ie=Ee[Qe+6-32],Oe=Ee[Qe+7-32];Ee[Qe+0+0]=pa(Ee[Qe+0-32],xt,hr),Ee[Qe+1+0]=Ee[Qe+0+32]=pa(xt,hr,Fr),Ee[Qe+2+0]=Ee[Qe+1+32]=Ee[Qe+0+64]=pa(hr,Fr,on),Ee[Qe+3+0]=Ee[Qe+2+32]=Ee[Qe+1+64]=Ee[Qe+0+96]=pa(Fr,on,Be),Ee[Qe+3+32]=Ee[Qe+2+64]=Ee[Qe+1+96]=pa(on,Be,ie),Ee[Qe+3+64]=Ee[Qe+2+96]=pa(Be,ie,Oe),Ee[Qe+3+96]=pa(ie,Oe,Oe)}function Co(Ee,Qe){var xt=Ee[Qe-1+0],hr=Ee[Qe-1+32],Fr=Ee[Qe-1+64],on=Ee[Qe-1-32],Be=Ee[Qe+0-32],ie=Ee[Qe+1-32],Oe=Ee[Qe+2-32],et=Ee[Qe+3-32];Ee[Qe+0+0]=Ee[Qe+1+64]=on+Be+1>>1,Ee[Qe+1+0]=Ee[Qe+2+64]=Be+ie+1>>1,Ee[Qe+2+0]=Ee[Qe+3+64]=ie+Oe+1>>1,Ee[Qe+3+0]=Oe+et+1>>1,Ee[Qe+0+96]=pa(Fr,hr,xt),Ee[Qe+0+64]=pa(hr,xt,on),Ee[Qe+0+32]=Ee[Qe+1+96]=pa(xt,on,Be),Ee[Qe+1+32]=Ee[Qe+2+96]=pa(on,Be,ie),Ee[Qe+2+32]=Ee[Qe+3+96]=pa(Be,ie,Oe),Ee[Qe+3+32]=pa(ie,Oe,et)}function Lo(Ee,Qe){var xt=Ee[Qe+0-32],hr=Ee[Qe+1-32],Fr=Ee[Qe+2-32],on=Ee[Qe+3-32],Be=Ee[Qe+4-32],ie=Ee[Qe+5-32],Oe=Ee[Qe+6-32],et=Ee[Qe+7-32];Ee[Qe+0+0]=xt+hr+1>>1,Ee[Qe+1+0]=Ee[Qe+0+64]=hr+Fr+1>>1,Ee[Qe+2+0]=Ee[Qe+1+64]=Fr+on+1>>1,Ee[Qe+3+0]=Ee[Qe+2+64]=on+Be+1>>1,Ee[Qe+0+32]=pa(xt,hr,Fr),Ee[Qe+1+32]=Ee[Qe+0+96]=pa(hr,Fr,on),Ee[Qe+2+32]=Ee[Qe+1+96]=pa(Fr,on,Be),Ee[Qe+3+32]=Ee[Qe+2+96]=pa(on,Be,ie),Ee[Qe+3+64]=pa(Be,ie,Oe),Ee[Qe+3+96]=pa(ie,Oe,et)}function is(Ee,Qe){var xt=Ee[Qe-1+0],hr=Ee[Qe-1+32],Fr=Ee[Qe-1+64],on=Ee[Qe-1+96];Ee[Qe+0+0]=xt+hr+1>>1,Ee[Qe+2+0]=Ee[Qe+0+32]=hr+Fr+1>>1,Ee[Qe+2+32]=Ee[Qe+0+64]=Fr+on+1>>1,Ee[Qe+1+0]=pa(xt,hr,Fr),Ee[Qe+3+0]=Ee[Qe+1+32]=pa(hr,Fr,on),Ee[Qe+3+32]=Ee[Qe+1+64]=pa(Fr,on,on),Ee[Qe+3+64]=Ee[Qe+2+64]=Ee[Qe+0+96]=Ee[Qe+1+96]=Ee[Qe+2+96]=Ee[Qe+3+96]=on}function cs(Ee,Qe){var xt=Ee[Qe-1+0],hr=Ee[Qe-1+32],Fr=Ee[Qe-1+64],on=Ee[Qe-1+96],Be=Ee[Qe-1-32],ie=Ee[Qe+0-32],Oe=Ee[Qe+1-32],et=Ee[Qe+2-32];Ee[Qe+0+0]=Ee[Qe+2+32]=xt+Be+1>>1,Ee[Qe+0+32]=Ee[Qe+2+64]=hr+xt+1>>1,Ee[Qe+0+64]=Ee[Qe+2+96]=Fr+hr+1>>1,Ee[Qe+0+96]=on+Fr+1>>1,Ee[Qe+3+0]=pa(ie,Oe,et),Ee[Qe+2+0]=pa(Be,ie,Oe),Ee[Qe+1+0]=Ee[Qe+3+32]=pa(xt,Be,ie),Ee[Qe+1+32]=Ee[Qe+3+64]=pa(hr,xt,Be),Ee[Qe+1+64]=Ee[Qe+3+96]=pa(Fr,hr,xt),Ee[Qe+1+96]=pa(on,Fr,hr)}function Rs(Ee,Qe){var xt;for(xt=0;8>xt;++xt)Ye(Ee,Qe+32*xt,Ee,Qe-32,8)}function Ko(Ee,Qe){var xt;for(xt=0;8>xt;++xt)at(Ee,Qe,Ee[Qe-1],8),Qe+=32}function as(Ee,Qe,xt){var hr;for(hr=0;8>hr;++hr)at(Qe,xt+32*hr,Ee,8)}function co(Ee,Qe){var xt,hr=8;for(xt=0;8>xt;++xt)hr+=Ee[Qe+xt-32]+Ee[Qe-1+32*xt];as(hr>>4,Ee,Qe)}function Ao(Ee,Qe){var xt,hr=4;for(xt=0;8>xt;++xt)hr+=Ee[Qe+xt-32];as(hr>>3,Ee,Qe)}function $a(Ee,Qe){var xt,hr=4;for(xt=0;8>xt;++xt)hr+=Ee[Qe-1+32*xt];as(hr>>3,Ee,Qe)}function ss(Ee,Qe){as(128,Ee,Qe)}function _s(Ee,Qe,xt){var hr=Ee[Qe-xt],Fr=Ee[Qe+0],on=3*(Fr-hr)+ql[1020+Ee[Qe-2*xt]-Ee[Qe+xt]],Be=Cl[112+(on+4>>3)];Ee[Qe-xt]=ll[255+hr+Cl[112+(on+3>>3)]],Ee[Qe+0]=ll[255+Fr-Be]}function Fo(Ee,Qe,xt,hr){var Fr=Ee[Qe+0],on=Ee[Qe+xt];return Hl[255+Ee[Qe-2*xt]-Ee[Qe-xt]]>hr||Hl[255+on-Fr]>hr}function il(Ee,Qe,xt,hr){return 4*Hl[255+Ee[Qe-xt]-Ee[Qe+0]]+Hl[255+Ee[Qe-2*xt]-Ee[Qe+xt]]<=hr}function Eo(Ee,Qe,xt,hr,Fr){var on=Ee[Qe-3*xt],Be=Ee[Qe-2*xt],ie=Ee[Qe-xt],Oe=Ee[Qe+0],et=Ee[Qe+xt],bt=Ee[Qe+2*xt],zt=Ee[Qe+3*xt];return 4*Hl[255+ie-Oe]+Hl[255+Be-et]>hr?0:Hl[255+Ee[Qe-4*xt]-on]<=Fr&&Hl[255+on-Be]<=Fr&&Hl[255+Be-ie]<=Fr&&Hl[255+zt-bt]<=Fr&&Hl[255+bt-et]<=Fr&&Hl[255+et-Oe]<=Fr}function zo(Ee,Qe,xt,hr){var Fr=2*hr+1;for(hr=0;16>hr;++hr)il(Ee,Qe+hr,xt,Fr)&&_s(Ee,Qe+hr,xt)}function Fs(Ee,Qe,xt,hr){var Fr=2*hr+1;for(hr=0;16>hr;++hr)il(Ee,Qe+hr*xt,1,Fr)&&_s(Ee,Qe+hr*xt,1)}function ms(Ee,Qe,xt,hr){var Fr;for(Fr=3;0<Fr;--Fr)zo(Ee,Qe+=4*xt,xt,hr)}function hs(Ee,Qe,xt,hr){var Fr;for(Fr=3;0<Fr;--Fr)Fs(Ee,Qe+=4,xt,hr)}function An(Ee,Qe,xt,hr,Fr,on,Be,ie){for(on=2*on+1;0<Fr--;){if(Eo(Ee,Qe,xt,on,Be))if(Fo(Ee,Qe,xt,ie))_s(Ee,Qe,xt);else{var Oe=Ee,et=Qe,bt=xt,zt=Oe[et-2*bt],qt=Oe[et-bt],ar=Oe[et+0],Kr=Oe[et+bt],cn=Oe[et+2*bt],Hr=27*(sn=ql[1020+3*(ar-qt)+ql[1020+zt-Kr]])+63>>7,Ur=18*sn+63>>7,sn=9*sn+63>>7;Oe[et-3*bt]=ll[255+Oe[et-3*bt]+sn],Oe[et-2*bt]=ll[255+zt+Ur],Oe[et-bt]=ll[255+qt+Hr],Oe[et+0]=ll[255+ar-Hr],Oe[et+bt]=ll[255+Kr-Ur],Oe[et+2*bt]=ll[255+cn-sn]}Qe+=hr}}function Ns(Ee,Qe,xt,hr,Fr,on,Be,ie){for(on=2*on+1;0<Fr--;){if(Eo(Ee,Qe,xt,on,Be))if(Fo(Ee,Qe,xt,ie))_s(Ee,Qe,xt);else{var Oe=Ee,et=Qe,bt=xt,zt=Oe[et-bt],qt=Oe[et+0],ar=Oe[et+bt],Kr=Cl[112+((cn=3*(qt-zt))+4>>3)],cn=Cl[112+(cn+3>>3)],Hr=Kr+1>>1;Oe[et-2*bt]=ll[255+Oe[et-2*bt]+Hr],Oe[et-bt]=ll[255+zt+cn],Oe[et+0]=ll[255+qt-Kr],Oe[et+bt]=ll[255+ar-Hr]}Qe+=hr}}function Ll(Ee,Qe,xt,hr,Fr,on){An(Ee,Qe,xt,1,16,hr,Fr,on)}function el(Ee,Qe,xt,hr,Fr,on){An(Ee,Qe,1,xt,16,hr,Fr,on)}function Gs(Ee,Qe,xt,hr,Fr,on){var Be;for(Be=3;0<Be;--Be)Ns(Ee,Qe+=4*xt,xt,1,16,hr,Fr,on)}function ds(Ee,Qe,xt,hr,Fr,on){var Be;for(Be=3;0<Be;--Be)Ns(Ee,Qe+=4,1,xt,16,hr,Fr,on)}function ks(Ee,Qe,xt,hr,Fr,on,Be,ie){An(Ee,Qe,Fr,1,8,on,Be,ie),An(xt,hr,Fr,1,8,on,Be,ie)}function Qs(Ee,Qe,xt,hr,Fr,on,Be,ie){An(Ee,Qe,1,Fr,8,on,Be,ie),An(xt,hr,1,Fr,8,on,Be,ie)}function tl(Ee,Qe,xt,hr,Fr,on,Be,ie){Ns(Ee,Qe+4*Fr,Fr,1,8,on,Be,ie),Ns(xt,hr+4*Fr,Fr,1,8,on,Be,ie)}function xs(Ee,Qe,xt,hr,Fr,on,Be,ie){Ns(Ee,Qe+4,1,Fr,8,on,Be,ie),Ns(xt,hr+4,1,Fr,8,on,Be,ie)}function Bs(){this.ba=new zi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Gi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function al(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Vo(){this.ua=0,this.Wa=new ji,this.vb=new ji,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new cr,this.yc=new Kt}function No(){this.xb=this.a=0,this.l=new uo,this.ca=new zi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Br,this.Pb=0,this.wd=new Br,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Vo,this.ab=0,this.gc=lt(4,Js),this.Oc=0}function fs(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new uo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ds(Ee,Qe,xt,hr,Fr,on,Be){for(Ee=Ee==null?0:Ee[Qe+0],Qe=0;Qe<Be;++Qe)Fr[on+Qe]=Ee+xt[hr+Qe]&255,Ee=Fr[on+Qe]}function go(Ee,Qe,xt,hr,Fr,on,Be){var ie;if(Ee==null)Ds(null,null,xt,hr,Fr,on,Be);else for(ie=0;ie<Be;++ie)Fr[on+ie]=Ee[Qe+ie]+xt[hr+ie]&255}function jt(Ee,Qe,xt,hr,Fr,on,Be){if(Ee==null)Ds(null,null,xt,hr,Fr,on,Be);else{var ie,Oe=Ee[Qe+0],et=Oe,bt=Oe;for(ie=0;ie<Be;++ie)et=bt+(Oe=Ee[Qe+ie])-et,bt=xt[hr+ie]+(-256&et?0>et?0:255:et)&255,et=Oe,Fr[on+ie]=bt}}function or(Ee,Qe,xt,hr){var Fr=Qe.width,on=Qe.o;if(Ne(Ee!=null&&Qe!=null),0>xt||0>=hr||xt+hr>on)return null;if(!Ee.Cc){if(Ee.ga==null){var Be;if(Ee.ga=new fs,(Be=Ee.ga==null)||(Be=Qe.width*Qe.o,Ne(Ee.Gb.length==0),Ee.Gb=qe(Be),Ee.Uc=0,Ee.Gb==null?Be=0:(Ee.mb=Ee.Gb,Ee.nb=Ee.Uc,Ee.rc=null,Be=1),Be=!Be),!Be){Be=Ee.ga;var ie=Ee.Fa,Oe=Ee.P,et=Ee.qc,bt=Ee.mb,zt=Ee.nb,qt=Oe+1,ar=et-1,Kr=Be.l;if(Ne(ie!=null&&bt!=null&&Qe!=null),Te[0]=null,Te[1]=Ds,Te[2]=go,Te[3]=jt,Be.ca=bt,Be.tb=zt,Be.c=Qe.width,Be.i=Qe.height,Ne(0<Be.c&&0<Be.i),1>=et)Qe=0;else if(Be.$a=ie[Oe+0]>>0&3,Be.Z=ie[Oe+0]>>2&3,Be.Lc=ie[Oe+0]>>4&3,Oe=ie[Oe+0]>>6&3,0>Be.$a||1<Be.$a||4<=Be.Z||1<Be.Lc||Oe)Qe=0;else if(Kr.put=Ca,Kr.ac=ca,Kr.bc=na,Kr.ma=Be,Kr.width=Qe.width,Kr.height=Qe.height,Kr.Da=Qe.Da,Kr.v=Qe.v,Kr.va=Qe.va,Kr.j=Qe.j,Kr.o=Qe.o,Be.$a)e:{Ne(Be.$a==1),Qe=mo();t:for(;;){if(Qe==null){Qe=0;break e}if(Ne(Be!=null),Be.mc=Qe,Qe.c=Be.c,Qe.i=Be.i,Qe.l=Be.l,Qe.l.ma=Be,Qe.l.width=Be.c,Qe.l.height=Be.i,Qe.a=0,Vn(Qe.m,ie,qt,ar),!To(Be.c,Be.i,1,Qe,null))break t;if(Qe.ab==1&&Qe.gc[0].hc==3&&Va(Qe.s)?(Be.ic=1,ie=Qe.c*Qe.i,Qe.Ta=null,Qe.Ua=0,Qe.V=qe(ie),Qe.Ba=0,Qe.V==null?(Qe.a=1,Qe=0):Qe=1):(Be.ic=0,Qe=ao(Qe,Be.c)),!Qe)break t;Qe=1;break e}Be.mc=null,Qe=0}else Qe=ar>=Be.c*Be.i;Be=!Qe}if(Be)return null;Ee.ga.Lc!=1?Ee.Ga=0:hr=on-xt}Ne(Ee.ga!=null),Ne(xt+hr<=on);e:{if(Qe=(ie=Ee.ga).c,on=ie.l.o,ie.$a==0){if(qt=Ee.rc,ar=Ee.Vc,Kr=Ee.Fa,Oe=Ee.P+1+xt*Qe,et=Ee.mb,bt=Ee.nb+xt*Qe,Ne(Oe<=Ee.P+Ee.qc),ie.Z!=0)for(Ne(Te[ie.Z]!=null),Be=0;Be<hr;++Be)Te[ie.Z](qt,ar,Kr,Oe,et,bt,Qe),qt=et,ar=bt,bt+=Qe,Oe+=Qe;else for(Be=0;Be<hr;++Be)Ye(et,bt,Kr,Oe,Qe),qt=et,ar=bt,bt+=Qe,Oe+=Qe;Ee.rc=qt,Ee.Vc=ar}else{if(Ne(ie.mc!=null),Qe=xt+hr,Ne((Be=ie.mc)!=null),Ne(Qe<=Be.i),Be.C>=Qe)Qe=1;else if(ie.ic||xe(),ie.ic){ie=Be.V,qt=Be.Ba,ar=Be.c;var cn=Be.i,Hr=(Kr=1,Oe=Be.$/ar,et=Be.$%ar,bt=Be.m,zt=Be.s,Be.$),Ur=ar*cn,sn=ar*Qe,gn=zt.wc,zn=Hr<sn?Aa(zt,et,Oe):null;Ne(Hr<=Ur),Ne(Qe<=cn),Ne(Va(zt));t:for(;;){for(;!bt.h&&Hr<sn;){if(et&gn||(zn=Aa(zt,et,Oe)),Ne(zn!=null),oi(bt),256>(cn=ga(zn.G[0],zn.H[0],bt)))ie[qt+Hr]=cn,++Hr,++et>=ar&&(et=0,++Oe<=Qe&&!(Oe%16)&&io(Be,Oe));else{if(!(280>cn)){Kr=0;break t}cn=La(cn-256,bt);var Li,ki=ga(zn.G[4],zn.H[4],bt);if(oi(bt),!(Hr>=(ki=va(ar,ki=La(ki,bt)))&&Ur-Hr>=cn)){Kr=0;break t}for(Li=0;Li<cn;++Li)ie[qt+Hr+Li]=ie[qt+Hr+Li-ki];for(Hr+=cn,et+=cn;et>=ar;)et-=ar,++Oe<=Qe&&!(Oe%16)&&io(Be,Oe);Hr<sn&&et&gn&&(zn=Aa(zt,et,Oe))}Ne(bt.h==Xn(bt))}io(Be,Oe>Qe?Qe:Oe);break t}!Kr||bt.h&&Hr<Ur?(Kr=0,Be.a=bt.h?5:3):Be.$=Hr,Qe=Kr}else Qe=oo(Be,Be.V,Be.Ba,Be.c,Be.i,Qe,So);if(!Qe){hr=0;break e}}xt+hr>=on&&(Ee.Cc=1),hr=1}if(!hr)return null;if(Ee.Cc&&((hr=Ee.ga)!=null&&(hr.mc=null),Ee.ga=null,0<Ee.Ga))return alert("todo:WebPDequantizeLevels"),null}return Ee.nb+xt*Fr}function In(Ee,Qe,xt,hr,Fr,on){for(;0<Fr--;){var Be,ie=Ee,Oe=Qe+(xt?1:0),et=Ee,bt=Qe+(xt?0:3);for(Be=0;Be<hr;++Be){var zt=et[bt+4*Be];zt!=255&&(zt*=32897,ie[Oe+4*Be+0]=ie[Oe+4*Be+0]*zt>>23,ie[Oe+4*Be+1]=ie[Oe+4*Be+1]*zt>>23,ie[Oe+4*Be+2]=ie[Oe+4*Be+2]*zt>>23)}Qe+=on}}function hi(Ee,Qe,xt,hr,Fr){for(;0<hr--;){var on;for(on=0;on<xt;++on){var Be=Ee[Qe+2*on+0],ie=15&(et=Ee[Qe+2*on+1]),Oe=4369*ie,et=(240&et|et>>4)*Oe>>16;Ee[Qe+2*on+0]=(240&Be|Be>>4)*Oe>>16&240|(15&Be|Be<<4)*Oe>>16>>4&15,Ee[Qe+2*on+1]=240&et|ie}Qe+=Fr}}function Nt(Ee,Qe,xt,hr,Fr,on,Be,ie){var Oe,et,bt=255;for(et=0;et<Fr;++et){for(Oe=0;Oe<hr;++Oe){var zt=Ee[Qe+Oe];on[Be+4*Oe]=zt,bt&=zt}Qe+=xt,Be+=ie}return bt!=255}function ce(Ee,Qe,xt,hr,Fr){var on;for(on=0;on<Fr;++on)xt[hr+on]=Ee[Qe+on]>>8}function xe(){Wl=In,au=hi,Nl=Nt,$l=ce}function Ie(Ee,Qe,xt){Wt[Ee]=function(hr,Fr,on,Be,ie,Oe,et,bt,zt,qt,ar,Kr,cn,Hr,Ur,sn,gn){var zn,Li=gn-1>>1,ki=ie[Oe+0]|et[bt+0]<<16,da=zt[qt+0]|ar[Kr+0]<<16;Ne(hr!=null);var $i=3*ki+da+131074>>2;for(Qe(hr[Fr+0],255&$i,$i>>16,cn,Hr),on!=null&&($i=3*da+ki+131074>>2,Qe(on[Be+0],255&$i,$i>>16,Ur,sn)),zn=1;zn<=Li;++zn){var Qa=ie[Oe+zn]|et[bt+zn]<<16,ya=zt[qt+zn]|ar[Kr+zn]<<16,fo=ki+Qa+da+ya+524296,za=fo+2*(Qa+da)>>3;$i=za+ki>>1,ki=(fo=fo+2*(ki+ya)>>3)+Qa>>1,Qe(hr[Fr+2*zn-1],255&$i,$i>>16,cn,Hr+(2*zn-1)*xt),Qe(hr[Fr+2*zn-0],255&ki,ki>>16,cn,Hr+(2*zn-0)*xt),on!=null&&($i=fo+da>>1,ki=za+ya>>1,Qe(on[Be+2*zn-1],255&$i,$i>>16,Ur,sn+(2*zn-1)*xt),Qe(on[Be+2*zn+0],255&ki,ki>>16,Ur,sn+(2*zn+0)*xt)),ki=Qa,da=ya}1&gn||($i=3*ki+da+131074>>2,Qe(hr[Fr+gn-1],255&$i,$i>>16,cn,Hr+(gn-1)*xt),on!=null&&($i=3*da+ki+131074>>2,Qe(on[Be+gn-1],255&$i,$i>>16,Ur,sn+(gn-1)*xt)))}}function Je(){ze[Sl]=st,ze[Su]=Yt,ze[vu]=mt,ze[Au]=Tr,ze[Ol]=wr,ze[cu]=jr,ze[du]=Qr,ze[Lu]=Yt,ze[zl]=Tr,ze[ru]=wr,ze[ou]=jr}function Dt(Ee){return Ee&~Vi?0>Ee?0:255:Ee>>ua}function lr(Ee,Qe){return Dt((19077*Ee>>8)+(26149*Qe>>8)-14234)}function Xr(Ee,Qe,xt){return Dt((19077*Ee>>8)-(6419*Qe>>8)-(13320*xt>>8)+8708)}function hn(Ee,Qe){return Dt((19077*Ee>>8)+(33050*Qe>>8)-17685)}function Nn(Ee,Qe,xt,hr,Fr){hr[Fr+0]=lr(Ee,xt),hr[Fr+1]=Xr(Ee,Qe,xt),hr[Fr+2]=hn(Ee,Qe)}function ui(Ee,Qe,xt,hr,Fr){hr[Fr+0]=hn(Ee,Qe),hr[Fr+1]=Xr(Ee,Qe,xt),hr[Fr+2]=lr(Ee,xt)}function xi(Ee,Qe,xt,hr,Fr){var on=Xr(Ee,Qe,xt);Qe=on<<3&224|hn(Ee,Qe)>>3,hr[Fr+0]=248&lr(Ee,xt)|on>>5,hr[Fr+1]=Qe}function Ai(Ee,Qe,xt,hr,Fr){var on=240&hn(Ee,Qe)|15;hr[Fr+0]=240&lr(Ee,xt)|Xr(Ee,Qe,xt)>>4,hr[Fr+1]=on}function Yi(Ee,Qe,xt,hr,Fr){hr[Fr+0]=255,Nn(Ee,Qe,xt,hr,Fr+1)}function sa(Ee,Qe,xt,hr,Fr){ui(Ee,Qe,xt,hr,Fr),hr[Fr+3]=255}function Ua(Ee,Qe,xt,hr,Fr){Nn(Ee,Qe,xt,hr,Fr),hr[Fr+3]=255}function _o(Ee,Qe){return 0>Ee?0:Ee>Qe?Qe:Ee}function no(Ee,Qe,xt){Wt[Ee]=function(hr,Fr,on,Be,ie,Oe,et,bt,zt){for(var qt=bt+(-2&zt)*xt;bt!=qt;)Qe(hr[Fr+0],on[Be+0],ie[Oe+0],et,bt),Qe(hr[Fr+1],on[Be+0],ie[Oe+0],et,bt+xt),Fr+=2,++Be,++Oe,bt+=2*xt;1&zt&&Qe(hr[Fr+0],on[Be+0],ie[Oe+0],et,bt)}}function Wo(Ee,Qe,xt){return xt==0?Ee==0?Qe==0?6:5:Qe==0?4:0:xt}function Zo(Ee,Qe,xt,hr,Fr){switch(Ee>>>30){case 3:Is(Qe,xt,hr,Fr,0);break;case 2:es(Qe,xt,hr,Fr);break;case 1:Ps(Qe,xt,hr,Fr)}}function Bo(Ee,Qe){var xt,hr,Fr=Qe.M,on=Qe.Nb,Be=Ee.oc,ie=Ee.pc+40,Oe=Ee.oc,et=Ee.pc+584,bt=Ee.oc,zt=Ee.pc+600;for(xt=0;16>xt;++xt)Be[ie+32*xt-1]=129;for(xt=0;8>xt;++xt)Oe[et+32*xt-1]=129,bt[zt+32*xt-1]=129;for(0<Fr?Be[ie-1-32]=Oe[et-1-32]=bt[zt-1-32]=129:(at(Be,ie-32-1,127,21),at(Oe,et-32-1,127,9),at(bt,zt-32-1,127,9)),hr=0;hr<Ee.za;++hr){var qt=Qe.ya[Qe.aa+hr];if(0<hr){for(xt=-1;16>xt;++xt)Ye(Be,ie+32*xt-4,Be,ie+32*xt+12,4);for(xt=-1;8>xt;++xt)Ye(Oe,et+32*xt-4,Oe,et+32*xt+4,4),Ye(bt,zt+32*xt-4,bt,zt+32*xt+4,4)}var ar=Ee.Gd,Kr=Ee.Hd+hr,cn=qt.ad,Hr=qt.Hc;if(0<Fr&&(Ye(Be,ie-32,ar[Kr].y,0,16),Ye(Oe,et-32,ar[Kr].f,0,8),Ye(bt,zt-32,ar[Kr].ea,0,8)),qt.Za){var Ur=Be,sn=ie-32+16;for(0<Fr&&(hr>=Ee.za-1?at(Ur,sn,ar[Kr].y[15],4):Ye(Ur,sn,ar[Kr+1].y,0,4)),xt=0;4>xt;xt++)Ur[sn+128+xt]=Ur[sn+256+xt]=Ur[sn+384+xt]=Ur[sn+0+xt];for(xt=0;16>xt;++xt,Hr<<=2)Ur=Be,sn=ie+ys[xt],H[qt.Ob[xt]](Ur,sn),Zo(Hr,cn,16*+xt,Ur,sn)}else if(Ur=Wo(hr,Fr,qt.Ob[0]),W[Ur](Be,ie),Hr!=0)for(xt=0;16>xt;++xt,Hr<<=2)Zo(Hr,cn,16*+xt,Be,ie+ys[xt]);for(xt=qt.Gc,Ur=Wo(hr,Fr,qt.Dd),Z[Ur](Oe,et),Z[Ur](bt,zt),Hr=cn,Ur=Oe,sn=et,255&(qt=xt>>0)&&(170&qt?Ls(Hr,256,Ur,sn):ml(Hr,256,Ur,sn)),qt=bt,Hr=zt,255&(xt>>=8)&&(170&xt?Ls(cn,320,qt,Hr):ml(cn,320,qt,Hr)),Fr<Ee.Ub-1&&(Ye(ar[Kr].y,0,Be,ie+480,16),Ye(ar[Kr].f,0,Oe,et+224,8),Ye(ar[Kr].ea,0,bt,zt+224,8)),xt=8*on*Ee.B,ar=Ee.sa,Kr=Ee.ta+16*hr+16*on*Ee.R,cn=Ee.qa,qt=Ee.ra+8*hr+xt,Hr=Ee.Ha,Ur=Ee.Ia+8*hr+xt,xt=0;16>xt;++xt)Ye(ar,Kr+xt*Ee.R,Be,ie+32*xt,16);for(xt=0;8>xt;++xt)Ye(cn,qt+xt*Ee.B,Oe,et+32*xt,8),Ye(Hr,Ur+xt*Ee.B,bt,zt+32*xt,8)}}function Es(Ee,Qe,xt,hr,Fr,on,Be,ie,Oe){var et=[0],bt=[0],zt=0,qt=Oe!=null?Oe.kd:0,ar=Oe!=null?Oe:new al;if(Ee==null||12>xt)return 7;ar.data=Ee,ar.w=Qe,ar.ha=xt,Qe=[Qe],xt=[xt],ar.gb=[ar.gb];e:{var Kr=Qe,cn=xt,Hr=ar.gb;if(Ne(Ee!=null),Ne(cn!=null),Ne(Hr!=null),Hr[0]=0,12<=cn[0]&&!He(Ee,Kr[0],"RIFF")){if(He(Ee,Kr[0]+8,"WEBP")){Hr=3;break e}var Ur=ba(Ee,Kr[0]+4);if(12>Ur||4294967286<Ur){Hr=3;break e}if(qt&&Ur>cn[0]-8){Hr=7;break e}Hr[0]=Ur,Kr[0]+=12,cn[0]-=12}Hr=0}if(Hr!=0)return Hr;for(Ur=0<ar.gb[0],xt=xt[0];;){e:{var sn=Ee;cn=Qe,Hr=xt;var gn=et,zn=bt,Li=Kr=[0];if(($i=zt=[zt])[0]=0,8>Hr[0])Hr=7;else{if(!He(sn,cn[0],"VP8X")){if(ba(sn,cn[0]+4)!=10){Hr=3;break e}if(18>Hr[0]){Hr=7;break e}var ki=ba(sn,cn[0]+8),da=1+aa(sn,cn[0]+12);if(2147483648<=da*(sn=1+aa(sn,cn[0]+15))){Hr=3;break e}Li!=null&&(Li[0]=ki),gn!=null&&(gn[0]=da),zn!=null&&(zn[0]=sn),cn[0]+=18,Hr[0]-=18,$i[0]=1}Hr=0}}if(zt=zt[0],Kr=Kr[0],Hr!=0)return Hr;if(cn=!!(2&Kr),!Ur&&zt)return 3;if(on!=null&&(on[0]=!!(16&Kr)),Be!=null&&(Be[0]=cn),ie!=null&&(ie[0]=0),Be=et[0],Kr=bt[0],zt&&cn&&Oe==null){Hr=0;break}if(4>xt){Hr=7;break}if(Ur&&zt||!Ur&&!zt&&!He(Ee,Qe[0],"ALPH")){xt=[xt],ar.na=[ar.na],ar.P=[ar.P],ar.Sa=[ar.Sa];e:{ki=Ee,Hr=Qe,Ur=xt;var $i=ar.gb;gn=ar.na,zn=ar.P,Li=ar.Sa,da=22,Ne(ki!=null),Ne(Ur!=null),sn=Hr[0];var Qa=Ur[0];for(Ne(gn!=null),Ne(Li!=null),gn[0]=null,zn[0]=null,Li[0]=0;;){if(Hr[0]=sn,Ur[0]=Qa,8>Qa){Hr=7;break e}var ya=ba(ki,sn+4);if(4294967286<ya){Hr=3;break e}var fo=8+ya+1&-2;if(da+=fo,0<$i&&da>$i){Hr=3;break e}if(!He(ki,sn,"VP8 ")||!He(ki,sn,"VP8L")){Hr=0;break e}if(Qa[0]<fo){Hr=7;break e}He(ki,sn,"ALPH")||(gn[0]=ki,zn[0]=sn+8,Li[0]=ya),sn+=fo,Qa-=fo}}if(xt=xt[0],ar.na=ar.na[0],ar.P=ar.P[0],ar.Sa=ar.Sa[0],Hr!=0)break}xt=[xt],ar.Ja=[ar.Ja],ar.xa=[ar.xa];e:if($i=Ee,Hr=Qe,Ur=xt,gn=ar.gb[0],zn=ar.Ja,Li=ar.xa,ki=Hr[0],sn=!He($i,ki,"VP8 "),da=!He($i,ki,"VP8L"),Ne($i!=null),Ne(Ur!=null),Ne(zn!=null),Ne(Li!=null),8>Ur[0])Hr=7;else{if(sn||da){if($i=ba($i,ki+4),12<=gn&&$i>gn-12){Hr=3;break e}if(qt&&$i>Ur[0]-8){Hr=7;break e}zn[0]=$i,Hr[0]+=8,Ur[0]-=8,Li[0]=da}else Li[0]=5<=Ur[0]&&$i[ki+0]==47&&!($i[ki+4]>>5),zn[0]=Ur[0];Hr=0}if(xt=xt[0],ar.Ja=ar.Ja[0],ar.xa=ar.xa[0],Qe=Qe[0],Hr!=0)break;if(4294967286<ar.Ja)return 3;if(ie==null||cn||(ie[0]=ar.xa?2:1),Be=[Be],Kr=[Kr],ar.xa){if(5>xt){Hr=7;break}ie=Be,qt=Kr,cn=on,Ee==null||5>xt?Ee=0:5<=xt&&Ee[Qe+0]==47&&!(Ee[Qe+4]>>5)?(Ur=[0],$i=[0],gn=[0],Vn(zn=new Br,Ee,Qe,xt),Pa(zn,Ur,$i,gn)?(ie!=null&&(ie[0]=Ur[0]),qt!=null&&(qt[0]=$i[0]),cn!=null&&(cn[0]=gn[0]),Ee=1):Ee=0):Ee=0}else{if(10>xt){Hr=7;break}ie=Kr,Ee==null||10>xt||!Er(Ee,Qe+3,xt-3)?Ee=0:(qt=Ee[Qe+0]|Ee[Qe+1]<<8|Ee[Qe+2]<<16,cn=16383&(Ee[Qe+7]<<8|Ee[Qe+6]),Ee=16383&(Ee[Qe+9]<<8|Ee[Qe+8]),1&qt||3<(qt>>1&7)||!(qt>>4&1)||qt>>5>=ar.Ja||!cn||!Ee?Ee=0:(Be&&(Be[0]=cn),ie&&(ie[0]=Ee),Ee=1))}if(!Ee)return 3;if(Be=Be[0],Kr=Kr[0],zt&&(et[0]!=Be||bt[0]!=Kr))return 3;Oe!=null&&(Oe[0]=ar,Oe.offset=Qe-Oe.w,Ne(4294967286>Qe-Oe.w),Ne(Oe.offset==Oe.ha-xt));break}return Hr==0||Hr==7&&zt&&Oe==null?(on!=null&&(on[0]|=ar.na!=null&&0<ar.na.length),hr!=null&&(hr[0]=Be),Fr!=null&&(Fr[0]=Kr),0):Hr}function As(Ee,Qe,xt){var hr=Qe.width,Fr=Qe.height,on=0,Be=0,ie=hr,Oe=Fr;if(Qe.Da=Ee!=null&&0<Ee.Da,Qe.Da&&(ie=Ee.cd,Oe=Ee.bd,on=Ee.v,Be=Ee.j,11>xt||(on&=-2,Be&=-2),0>on||0>Be||0>=ie||0>=Oe||on+ie>hr||Be+Oe>Fr))return 0;if(Qe.v=on,Qe.j=Be,Qe.va=on+ie,Qe.o=Be+Oe,Qe.U=ie,Qe.T=Oe,Qe.da=Ee!=null&&0<Ee.da,Qe.da){if(!ha(ie,Oe,xt=[Ee.ib],on=[Ee.hb]))return 0;Qe.ib=xt[0],Qe.hb=on[0]}return Qe.ob=Ee!=null&&Ee.ob,Qe.Kb=Ee==null||!Ee.Sd,Qe.da&&(Qe.ob=Qe.ib<3*hr/4&&Qe.hb<3*Fr/4,Qe.Kb=0),1}function $o(Ee){if(Ee==null)return 2;if(11>Ee.S){var Qe=Ee.f.RGBA;Qe.fb+=(Ee.height-1)*Qe.A,Qe.A=-Qe.A}else Qe=Ee.f.kb,Ee=Ee.height,Qe.O+=(Ee-1)*Qe.fa,Qe.fa=-Qe.fa,Qe.N+=(Ee-1>>1)*Qe.Ab,Qe.Ab=-Qe.Ab,Qe.W+=(Ee-1>>1)*Qe.Db,Qe.Db=-Qe.Db,Qe.F!=null&&(Qe.J+=(Ee-1)*Qe.lb,Qe.lb=-Qe.lb);return 0}function Do(Ee,Qe,xt,hr){if(hr==null||0>=Ee||0>=Qe)return 2;if(xt!=null){if(xt.Da){var Fr=xt.cd,on=xt.bd,Be=-2&xt.v,ie=-2&xt.j;if(0>Be||0>ie||0>=Fr||0>=on||Be+Fr>Ee||ie+on>Qe)return 2;Ee=Fr,Qe=on}if(xt.da){if(!ha(Ee,Qe,Fr=[xt.ib],on=[xt.hb]))return 2;Ee=Fr[0],Qe=on[0]}}hr.width=Ee,hr.height=Qe;e:{var Oe=hr.width,et=hr.height;if(Ee=hr.S,0>=Oe||0>=et||!(Ee>=Sl&&13>Ee))Ee=2;else{if(0>=hr.Rd&&hr.sd==null){Be=on=Fr=Qe=0;var bt=(ie=Oe*Hs[Ee])*et;if(11>Ee||(on=(et+1)/2*(Qe=(Oe+1)/2),Ee==12&&(Be=(Fr=Oe)*et)),(et=qe(bt+2*on+Be))==null){Ee=1;break e}hr.sd=et,11>Ee?((Oe=hr.f.RGBA).eb=et,Oe.fb=0,Oe.A=ie,Oe.size=bt):((Oe=hr.f.kb).y=et,Oe.O=0,Oe.fa=ie,Oe.Fd=bt,Oe.f=et,Oe.N=0+bt,Oe.Ab=Qe,Oe.Cd=on,Oe.ea=et,Oe.W=0+bt+on,Oe.Db=Qe,Oe.Ed=on,Ee==12&&(Oe.F=et,Oe.J=0+bt+2*on),Oe.Tc=Be,Oe.lb=Fr)}if(Qe=1,Fr=hr.S,on=hr.width,Be=hr.height,Fr>=Sl&&13>Fr)if(11>Fr)Ee=hr.f.RGBA,Qe&=(ie=Math.abs(Ee.A))*(Be-1)+on<=Ee.size,Qe&=ie>=on*Hs[Fr],Qe&=Ee.eb!=null;else{Ee=hr.f.kb,ie=(on+1)/2,bt=(Be+1)/2,Oe=Math.abs(Ee.fa),et=Math.abs(Ee.Ab);var zt=Math.abs(Ee.Db),qt=Math.abs(Ee.lb),ar=qt*(Be-1)+on;Qe&=Oe*(Be-1)+on<=Ee.Fd,Qe&=et*(bt-1)+ie<=Ee.Cd,Qe=(Qe&=zt*(bt-1)+ie<=Ee.Ed)&Oe>=on&et>=ie&zt>=ie,Qe&=Ee.y!=null,Qe&=Ee.f!=null,Qe&=Ee.ea!=null,Fr==12&&(Qe&=qt>=on,Qe&=ar<=Ee.Tc,Qe&=Ee.F!=null)}else Qe=0;Ee=Qe?0:2}}return Ee!=0||xt!=null&&xt.fd&&(Ee=$o(hr)),Ee}var vo=64,Ms=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],rl=24,gs=32,Ra=8,dl=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ir("Predictor0","PredictorAdd0"),Wt.Predictor0=function(){return 4278190080},Wt.Predictor1=function(Ee){return Ee},Wt.Predictor2=function(Ee,Qe,xt){return Qe[xt+0]},Wt.Predictor3=function(Ee,Qe,xt){return Qe[xt+1]},Wt.Predictor4=function(Ee,Qe,xt){return Qe[xt-1]},Wt.Predictor5=function(Ee,Qe,xt){return Tn(Tn(Ee,Qe[xt+1]),Qe[xt+0])},Wt.Predictor6=function(Ee,Qe,xt){return Tn(Ee,Qe[xt-1])},Wt.Predictor7=function(Ee,Qe,xt){return Tn(Ee,Qe[xt+0])},Wt.Predictor8=function(Ee,Qe,xt){return Tn(Qe[xt-1],Qe[xt+0])},Wt.Predictor9=function(Ee,Qe,xt){return Tn(Qe[xt+0],Qe[xt+1])},Wt.Predictor10=function(Ee,Qe,xt){return Tn(Tn(Ee,Qe[xt-1]),Tn(Qe[xt+0],Qe[xt+1]))},Wt.Predictor11=function(Ee,Qe,xt){var hr=Qe[xt+0];return 0>=Wr(hr>>24&255,Ee>>24&255,(Qe=Qe[xt-1])>>24&255)+Wr(hr>>16&255,Ee>>16&255,Qe>>16&255)+Wr(hr>>8&255,Ee>>8&255,Qe>>8&255)+Wr(255&hr,255&Ee,255&Qe)?hr:Ee},Wt.Predictor12=function(Ee,Qe,xt){var hr=Qe[xt+0];return(pr((Ee>>24&255)+(hr>>24&255)-((Qe=Qe[xt-1])>>24&255))<<24|pr((Ee>>16&255)+(hr>>16&255)-(Qe>>16&255))<<16|pr((Ee>>8&255)+(hr>>8&255)-(Qe>>8&255))<<8|pr((255&Ee)+(255&hr)-(255&Qe)))>>>0},Wt.Predictor13=function(Ee,Qe,xt){var hr=Qe[xt-1];return(Dr((Ee=Tn(Ee,Qe[xt+0]))>>24&255,hr>>24&255)<<24|Dr(Ee>>16&255,hr>>16&255)<<16|Dr(Ee>>8&255,hr>>8&255)<<8|Dr(Ee>>0&255,hr>>0&255))>>>0};var fl=Wt.PredictorAdd0;Wt.PredictorAdd1=ln,Ir("Predictor2","PredictorAdd2"),Ir("Predictor3","PredictorAdd3"),Ir("Predictor4","PredictorAdd4"),Ir("Predictor5","PredictorAdd5"),Ir("Predictor6","PredictorAdd6"),Ir("Predictor7","PredictorAdd7"),Ir("Predictor8","PredictorAdd8"),Ir("Predictor9","PredictorAdd9"),Ir("Predictor10","PredictorAdd10"),Ir("Predictor11","PredictorAdd11"),Ir("Predictor12","PredictorAdd12"),Ir("Predictor13","PredictorAdd13");var Us=Wt.PredictorAdd2;Lr("ColorIndexInverseTransform","MapARGB","32b",function(Ee){return Ee>>8&255},function(Ee){return Ee}),Lr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(Ee){return Ee},function(Ee){return Ee>>8&255});var Os,Xs=Wt.ColorIndexInverseTransform,Ql=Wt.MapARGB,Ul=Wt.VP8LColorIndexInverseTransformAlpha,wl=Wt.MapAlpha,Ts=Wt.VP8LPredictorsAdd=[];Ts.length=16,(Wt.VP8LPredictors=[]).length=16,(Wt.VP8LPredictorsAdd_C=[]).length=16,(Wt.VP8LPredictors_C=[]).length=16;var Ws,Tl,pl,jo,yo,qo,ps,Is,es,Ls,Ps,ml,Rl,_l,Bl,jl,kl,Xl,ol,Ys,sl,nl,xl,Ml,Wl,au,Nl,$l,tu=qe(511),Iu=qe(2041),pu=qe(225),mu=qe(767),gu=0,ql=Iu,Cl=pu,ll=mu,Hl=tu,Sl=0,Su=1,vu=2,Au=3,Ol=4,cu=5,du=6,Lu=7,zl=8,ru=9,ou=10,su=[2,3,7],Jl=[3,3,11],Du=[280,256,256,256,40],Ru=[0,1,1,1,0],Zl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],yu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],bu=8,hl=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Dl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nu=null,Nu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],hu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Ae=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],q=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],N=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],W=[],H=[],Z=[],re=1,ve=2,Te=[],ze=[];Ie("UpsampleRgbLinePair",Nn,3),Ie("UpsampleBgrLinePair",ui,3),Ie("UpsampleRgbaLinePair",Ua,4),Ie("UpsampleBgraLinePair",sa,4),Ie("UpsampleArgbLinePair",Yi,4),Ie("UpsampleRgba4444LinePair",Ai,2),Ie("UpsampleRgb565LinePair",xi,2);var st=Wt.UpsampleRgbLinePair,mt=Wt.UpsampleBgrLinePair,Yt=Wt.UpsampleRgbaLinePair,Tr=Wt.UpsampleBgraLinePair,wr=Wt.UpsampleArgbLinePair,jr=Wt.UpsampleRgba4444LinePair,Qr=Wt.UpsampleRgb565LinePair,Cn=16,Dn=1<<Cn-1,Zn=-227,Si=482,ua=6,Vi=(256<<ua)-1,Zi=0,ka=qe(256),Ga=qe(256),Ba=qe(256),Sa=qe(256),Go=qe(Si-Zn),bs=qe(Si-Zn);no("YuvToRgbRow",Nn,3),no("YuvToBgrRow",ui,3),no("YuvToRgbaRow",Ua,4),no("YuvToBgraRow",sa,4),no("YuvToArgbRow",Yi,4),no("YuvToRgba4444Row",Ai,2),no("YuvToRgb565Row",xi,2);var ys=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Cs=[0,2,8],js=[8,7,6,4,4,2,2,2,1,1,1,1],ws=1;this.WebPDecodeRGBA=function(Ee,Qe,xt,hr,Fr){var on=Su,Be=new Bs,ie=new zi;Be.ba=ie,ie.S=on,ie.width=[ie.width],ie.height=[ie.height];var Oe=ie.width,et=ie.height,bt=new ea;if(bt==null||Ee==null)var zt=2;else Ne(bt!=null),zt=Es(Ee,Qe,xt,bt.width,bt.height,bt.Pd,bt.Qd,bt.format,null);if(zt!=0?Oe=0:(Oe!=null&&(Oe[0]=bt.width[0]),et!=null&&(et[0]=bt.height[0]),Oe=1),Oe){ie.width=ie.width[0],ie.height=ie.height[0],hr!=null&&(hr[0]=ie.width),Fr!=null&&(Fr[0]=ie.height);e:{if(hr=new uo,(Fr=new al).data=Ee,Fr.w=Qe,Fr.ha=xt,Fr.kd=1,Qe=[0],Ne(Fr!=null),((Ee=Es(Fr.data,Fr.w,Fr.ha,null,null,null,Qe,null,Fr))==0||Ee==7)&&Qe[0]&&(Ee=4),(Qe=Ee)==0){if(Ne(Be!=null),hr.data=Fr.data,hr.w=Fr.w+Fr.offset,hr.ha=Fr.ha-Fr.offset,hr.put=Ca,hr.ac=ca,hr.bc=na,hr.ma=Be,Fr.xa){if((Ee=mo())==null){Be=1;break e}if(function(qt,ar){var Kr=[0],cn=[0],Hr=[0];t:for(;;){if(qt==null)return 0;if(ar==null)return qt.a=2,0;if(qt.l=ar,qt.a=0,Vn(qt.m,ar.data,ar.w,ar.ha),!Pa(qt.m,Kr,cn,Hr)){qt.a=3;break t}if(qt.xb=ve,ar.width=Kr[0],ar.height=cn[0],!To(Kr[0],cn[0],1,qt,null))break t;return 1}return Ne(qt.a!=0),0}(Ee,hr)){if(hr=(Qe=Do(hr.width,hr.height,Be.Oa,Be.ba))==0){t:{hr=Ee;r:for(;;){if(hr==null){hr=0;break t}if(Ne(hr.s.yc!=null),Ne(hr.s.Ya!=null),Ne(0<hr.s.Wb),Ne((xt=hr.l)!=null),Ne((Fr=xt.ma)!=null),hr.xb!=0){if(hr.ca=Fr.ba,hr.tb=Fr.tb,Ne(hr.ca!=null),!As(Fr.Oa,xt,Au)){hr.a=2;break r}if(!ao(hr,xt.width))break r;if(xt.da)break r;if((xt.da||Fi(hr.ca.S))&&xe(),11>hr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),hr.ca.f.kb.F!=null&&xe()),hr.Pb&&0<hr.s.ua&&hr.s.vb.X==null&&!bi(hr.s.vb,hr.s.Wa.Xa)){hr.a=1;break r}hr.xb=0}if(!oo(hr,hr.V,hr.Ba,hr.c,hr.i,xt.o,_a))break r;Fr.Dc=hr.Ma,hr=1;break t}Ne(hr.a!=0),hr=0}hr=!hr}hr&&(Qe=Ee.a)}else Qe=Ee.a}else{if((Ee=new Ha)==null){Be=1;break e}if(Ee.Fa=Fr.na,Ee.P=Fr.P,Ee.qc=Fr.Sa,qr(Ee,hr)){if((Qe=Do(hr.width,hr.height,Be.Oa,Be.ba))==0){if(Ee.Aa=0,xt=Be.Oa,Ne((Fr=Ee)!=null),xt!=null){if(0<(Oe=0>(Oe=xt.Md)?0:100<Oe?255:255*Oe/100)){for(et=bt=0;4>et;++et)12>(zt=Fr.pb[et]).lc&&(zt.ia=Oe*js[0>zt.lc?0:zt.lc]>>3),bt|=zt.ia;bt&&(alert("todo:VP8InitRandom"),Fr.ia=1)}Fr.Ga=xt.Id,100<Fr.Ga?Fr.Ga=100:0>Fr.Ga&&(Fr.Ga=0)}un(Ee,hr)||(Qe=Ee.a)}}else Qe=Ee.a}Qe==0&&Be.Oa!=null&&Be.Oa.fd&&(Qe=$o(Be.ba))}Be=Qe}on=Be!=0?null:11>on?ie.f.RGBA.eb:ie.f.kb.y}else on=null;return on};var Hs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function fr(Gn,Wt){for(var Ot="",Rt=0;Rt<4;Rt++)Ot+=String.fromCharCode(Gn[Wt++]);return Ot}function Jr(Gn,Wt){return(Gn[Wt+0]<<0|Gn[Wt+1]<<8|Gn[Wt+2]<<16)>>>0}function Vr(Gn,Wt){return(Gn[Wt+0]<<0|Gn[Wt+1]<<8|Gn[Wt+2]<<16|Gn[Wt+3]<<24)>>>0}new At;var dn=[0],gr=[0],Wn=[],kr=new At,Fn=ot,vn=function(Gn,Wt){var Ot={},Rt=0,Ut=!1,Kt=0,Lt=0;if(Ot.frames=[],!function(Br,_n,Xn,$n){for(var oi=0;oi<$n;oi++)if(Br[_n+oi]!=Xn.charCodeAt(oi))return!0;return!1}(Gn,Wt,"RIFF",4)){var cr,vr;for(Vr(Gn,Wt+=4),Wt+=8;Wt<Gn.length;){var yr=fr(Gn,Wt),Rr=Vr(Gn,Wt+=4);Wt+=4;var Vn=Rr+(1&Rr);switch(yr){case"VP8 ":case"VP8L":Ot.frames[Rt]===void 0&&(Ot.frames[Rt]={}),(pn=Ot.frames[Rt]).src_off=Ut?Lt:Wt-8,pn.src_size=Kt+Rr+8,Rt++,Ut&&(Ut=!1,Kt=0,Lt=0);break;case"VP8X":(pn=Ot.header={}).feature_flags=Gn[Wt];var kn=Wt+4;pn.canvas_width=1+Jr(Gn,kn),kn+=3,pn.canvas_height=1+Jr(Gn,kn),kn+=3;break;case"ALPH":Ut=!0,Kt=Vn+8,Lt=Wt-8;break;case"ANIM":(pn=Ot.header).bgcolor=Vr(Gn,Wt),kn=Wt+4,pn.loop_count=(cr=Gn)[(vr=kn)+0]<<0|cr[vr+1]<<8,kn+=2;break;case"ANMF":var di,pn;(pn=Ot.frames[Rt]={}).offset_x=2*Jr(Gn,Wt),Wt+=3,pn.offset_y=2*Jr(Gn,Wt),Wt+=3,pn.width=1+Jr(Gn,Wt),Wt+=3,pn.height=1+Jr(Gn,Wt),Wt+=3,pn.duration=Jr(Gn,Wt),Wt+=3,di=Gn[Wt++],pn.dispose=1&di,pn.blend=di>>1&1}yr!="ANMF"&&(Wt+=Vn)}return Ot}}(Fn,0);vn.response=Fn,vn.rgbaoutput=!0,vn.dataurl=!1;var $r=vn.header?vn.header:null,ei=vn.frames?vn.frames:null;if($r){$r.loop_counter=$r.loop_count,dn=[$r.canvas_height],gr=[$r.canvas_width];for(var fi=0;fi<ei.length&&ei[fi].blend!=0;fi++);}var Pi=ei[0],Zr=kr.WebPDecodeRGBA(Fn,Pi.src_off,Pi.src_size,gr,dn);Pi.rgba=Zr,Pi.imgwidth=gr[0],Pi.imgheight=dn[0];for(var Sn=0;Sn<gr[0]*dn[0]*4;Sn++)Wn[Sn]=Zr[Sn];return this.width=gr,this.height=dn,this.data=Wn,this}!function(ot){var Ne=function(){return typeof A.b=="function"},He=function(gr,Wn,kr,Fn){var vn=4,$r=lt;switch(Fn){case ot.image_compression.FAST:vn=1,$r=qe;break;case ot.image_compression.MEDIUM:vn=6,$r=Et;break;case ot.image_compression.SLOW:vn=9,$r=At}gr=Ye(gr,Wn,kr,$r);var ei=Object(A.b)(gr,{level:vn});return ot.__addimage__.arrayBufferToBinaryString(ei)},Ye=function(gr,Wn,kr,Fn){for(var vn,$r,ei,fi=gr.length/Wn,Pi=new Uint8Array(gr.length+fi),Zr=Jr(),Sn=0;Sn<fi;Sn+=1){if(ei=Sn*Wn,vn=gr.subarray(ei,ei+Wn),Fn)Pi.set(Fn(vn,kr,$r),ei+Sn);else{for(var Gn,Wt=Zr.length,Ot=[];Gn<Wt;Gn+=1)Ot[Gn]=Zr[Gn](vn,kr,$r);var Rt=Vr(Ot.concat());Pi.set(Ot[Rt],ei+Sn)}$r=vn}return Pi},at=function(gr){var Wn=Array.apply([],gr);return Wn.unshift(0),Wn},qe=function(gr,Wn){var kr,Fn=[],vn=gr.length;Fn[0]=1;for(var $r=0;$r<vn;$r+=1)kr=gr[$r-Wn]||0,Fn[$r+1]=gr[$r]-kr+256&255;return Fn},lt=function(gr,Wn,kr){var Fn,vn=[],$r=gr.length;vn[0]=2;for(var ei=0;ei<$r;ei+=1)Fn=kr&&kr[ei]||0,vn[ei+1]=gr[ei]-Fn+256&255;return vn},Et=function(gr,Wn,kr){var Fn,vn,$r=[],ei=gr.length;$r[0]=3;for(var fi=0;fi<ei;fi+=1)Fn=gr[fi-Wn]||0,vn=kr&&kr[fi]||0,$r[fi+1]=gr[fi]+256-(Fn+vn>>>1)&255;return $r},At=function(gr,Wn,kr){var Fn,vn,$r,ei,fi=[],Pi=gr.length;fi[0]=4;for(var Zr=0;Zr<Pi;Zr+=1)Fn=gr[Zr-Wn]||0,vn=kr&&kr[Zr]||0,$r=kr&&kr[Zr-Wn]||0,ei=fr(Fn,vn,$r),fi[Zr+1]=gr[Zr]-ei+256&255;return fi},fr=function(gr,Wn,kr){if(gr===Wn&&Wn===kr)return gr;var Fn=Math.abs(Wn-kr),vn=Math.abs(gr-kr),$r=Math.abs(gr+Wn-kr-kr);return Fn<=vn&&Fn<=$r?gr:vn<=$r?Wn:kr},Jr=function(){return[at,qe,lt,Et,At]},Vr=function(gr){var Wn=gr.map(function(kr){return kr.reduce(function(Fn,vn){return Fn+Math.abs(vn)},0)});return Wn.indexOf(Math.min.apply(null,Wn))};ot.processPNG=function(dn,gr,Wn,kr){var Fn,vn,$r,ei,fi,Pi,Zr,Sn,Gn,Wt,Ot,Rt,Ut,Kt,Lt,cr=this.decode.FLATE_DECODE,vr="";if(this.__addimage__.isArrayBuffer(dn)&&(dn=new Uint8Array(dn)),this.__addimage__.isArrayBufferView(dn)){if(dn=($r=new nt(dn)).imgData,vn=$r.bits,Fn=$r.colorSpace,fi=$r.colors,[4,6].indexOf($r.colorType)!==-1){if($r.bits===8){Gn=(Sn=$r.pixelBitlength==32?new Uint32Array($r.decodePixels().buffer):$r.pixelBitlength==16?new Uint16Array($r.decodePixels().buffer):new Uint8Array($r.decodePixels().buffer)).length,Ot=new Uint8Array(Gn*$r.colors),Wt=new Uint8Array(Gn);var yr,Rr=$r.pixelBitlength-$r.bits;for(Kt=0,Lt=0;Kt<Gn;Kt++){for(Ut=Sn[Kt],yr=0;yr<Rr;)Ot[Lt++]=Ut>>>yr&255,yr+=$r.bits;Wt[Kt]=Ut>>>yr&255}}if($r.bits===16){Gn=(Sn=new Uint32Array($r.decodePixels().buffer)).length,Ot=new Uint8Array(Gn*(32/$r.pixelBitlength)*$r.colors),Wt=new Uint8Array(Gn*(32/$r.pixelBitlength)),Rt=$r.colors>1,Kt=0,Lt=0;for(var Vn=0;Kt<Gn;)Ut=Sn[Kt++],Ot[Lt++]=Ut>>>0&255,Rt&&(Ot[Lt++]=Ut>>>16&255,Ut=Sn[Kt++],Ot[Lt++]=Ut>>>0&255),Wt[Vn++]=Ut>>>16&255;vn=8}kr!==ot.image_compression.NONE&&Ne()?(dn=He(Ot,$r.width*$r.colors,$r.colors,kr),Zr=He(Wt,$r.width,1,kr)):(dn=Ot,Zr=Wt,cr=void 0)}if($r.colorType===3&&(Fn=this.color_spaces.INDEXED,Pi=$r.palette,$r.transparency.indexed)){var kn=$r.transparency.indexed,di=0;for(Kt=0,Gn=kn.length;Kt<Gn;++Kt)di+=kn[Kt];if((di/=255)===Gn-1&&kn.indexOf(0)!==-1)ei=[kn.indexOf(0)];else if(di!==Gn){for(Sn=$r.decodePixels(),Wt=new Uint8Array(Sn.length),Kt=0,Gn=Sn.length;Kt<Gn;Kt++)Wt[Kt]=kn[Sn[Kt]];Zr=He(Wt,$r.width,1)}}var pn=function(Br){var _n;switch(Br){case ot.image_compression.FAST:_n=11;break;case ot.image_compression.MEDIUM:_n=13;break;case ot.image_compression.SLOW:_n=14;break;default:_n=12}return _n}(kr);return cr===this.decode.FLATE_DECODE&&(vr="/Predictor "+pn+" "),vr+="/Colors "+fi+" /BitsPerComponent "+vn+" /Columns "+$r.width,(this.__addimage__.isArrayBuffer(dn)||this.__addimage__.isArrayBufferView(dn))&&(dn=this.__addimage__.arrayBufferToBinaryString(dn)),(Zr&&this.__addimage__.isArrayBuffer(Zr)||this.__addimage__.isArrayBufferView(Zr))&&(Zr=this.__addimage__.arrayBufferToBinaryString(Zr)),{alias:Wn,data:dn,index:gr,filter:cr,decodeParameters:vr,transparency:ei,palette:Pi,sMask:Zr,predictor:pn,width:$r.width,height:$r.height,bitsPerComponent:vn,colorSpace:Fn}}}}(z.API),function(ot){ot.processGIF89A=function(Ne,He,Ye,at){var qe=new yt(Ne),lt=qe.width,Et=qe.height,At=[];qe.decodeAndBlitFrameRGBA(0,At);var fr={data:At,width:lt,height:Et},Jr=new Nr(100).encode(fr,100);return ot.processJPEG.call(this,Jr,He,Ye,at)},ot.processGIF87A=ot.processGIF89A}(z.API),mn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var ot=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(ot);for(var Ne=0;Ne<ot;Ne++){var He=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),at=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0);this.palette[Ne]={red:at,green:Ye,blue:He,quad:qe}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},mn.prototype.parseBGR=function(){this.pos=this.offset;try{var ot="bit"+this.bitPP,Ne=this.width*this.height*4;this.data=new Uint8Array(Ne),this[ot]()}catch(He){d.log("bit decode error:"+He)}},mn.prototype.bit1=function(){var ot,Ne=Math.ceil(this.width/8),He=Ne%4;for(ot=this.height-1;ot>=0;ot--){for(var Ye=this.bottom_up?ot:this.height-1-ot,at=0;at<Ne;at++)for(var qe=this.datav.getUint8(this.pos++,!0),lt=Ye*this.width*4+8*at*4,Et=0;Et<8&&8*at+Et<this.width;Et++){var At=this.palette[qe>>7-Et&1];this.data[lt+4*Et]=At.blue,this.data[lt+4*Et+1]=At.green,this.data[lt+4*Et+2]=At.red,this.data[lt+4*Et+3]=255}He!==0&&(this.pos+=4-He)}},mn.prototype.bit4=function(){for(var ot=Math.ceil(this.width/2),Ne=ot%4,He=this.height-1;He>=0;He--){for(var Ye=this.bottom_up?He:this.height-1-He,at=0;at<ot;at++){var qe=this.datav.getUint8(this.pos++,!0),lt=Ye*this.width*4+2*at*4,Et=qe>>4,At=15&qe,fr=this.palette[Et];if(this.data[lt]=fr.blue,this.data[lt+1]=fr.green,this.data[lt+2]=fr.red,this.data[lt+3]=255,2*at+1>=this.width)break;fr=this.palette[At],this.data[lt+4]=fr.blue,this.data[lt+4+1]=fr.green,this.data[lt+4+2]=fr.red,this.data[lt+4+3]=255}Ne!==0&&(this.pos+=4-Ne)}},mn.prototype.bit8=function(){for(var ot=this.width%4,Ne=this.height-1;Ne>=0;Ne--){for(var He=this.bottom_up?Ne:this.height-1-Ne,Ye=0;Ye<this.width;Ye++){var at=this.datav.getUint8(this.pos++,!0),qe=He*this.width*4+4*Ye;if(at<this.palette.length){var lt=this.palette[at];this.data[qe]=lt.red,this.data[qe+1]=lt.green,this.data[qe+2]=lt.blue,this.data[qe+3]=255}else this.data[qe]=255,this.data[qe+1]=255,this.data[qe+2]=255,this.data[qe+3]=255}ot!==0&&(this.pos+=4-ot)}},mn.prototype.bit15=function(){for(var ot=this.width%3,Ne=parseInt("11111",2),He=this.height-1;He>=0;He--){for(var Ye=this.bottom_up?He:this.height-1-He,at=0;at<this.width;at++){var qe=this.datav.getUint16(this.pos,!0);this.pos+=2;var lt=(qe&Ne)/Ne*255|0,Et=(qe>>5&Ne)/Ne*255|0,At=(qe>>10&Ne)/Ne*255|0,fr=qe>>15?255:0,Jr=Ye*this.width*4+4*at;this.data[Jr]=At,this.data[Jr+1]=Et,this.data[Jr+2]=lt,this.data[Jr+3]=fr}this.pos+=ot}},mn.prototype.bit16=function(){for(var ot=this.width%3,Ne=parseInt("11111",2),He=parseInt("111111",2),Ye=this.height-1;Ye>=0;Ye--){for(var at=this.bottom_up?Ye:this.height-1-Ye,qe=0;qe<this.width;qe++){var lt=this.datav.getUint16(this.pos,!0);this.pos+=2;var Et=(lt&Ne)/Ne*255|0,At=(lt>>5&He)/He*255|0,fr=(lt>>11)/Ne*255|0,Jr=at*this.width*4+4*qe;this.data[Jr]=fr,this.data[Jr+1]=At,this.data[Jr+2]=Et,this.data[Jr+3]=255}this.pos+=ot}},mn.prototype.bit24=function(){for(var ot=this.height-1;ot>=0;ot--){for(var Ne=this.bottom_up?ot:this.height-1-ot,He=0;He<this.width;He++){var Ye=this.datav.getUint8(this.pos++,!0),at=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),lt=Ne*this.width*4+4*He;this.data[lt]=qe,this.data[lt+1]=at,this.data[lt+2]=Ye,this.data[lt+3]=255}this.pos+=this.width%4}},mn.prototype.bit32=function(){for(var ot=this.height-1;ot>=0;ot--)for(var Ne=this.bottom_up?ot:this.height-1-ot,He=0;He<this.width;He++){var Ye=this.datav.getUint8(this.pos++,!0),at=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),lt=this.datav.getUint8(this.pos++,!0),Et=Ne*this.width*4+4*He;this.data[Et]=qe,this.data[Et+1]=at,this.data[Et+2]=Ye,this.data[Et+3]=lt}},mn.prototype.getData=function(){return this.data},function(ot){ot.processBMP=function(Ne,He,Ye,at){var qe=new mn(Ne,!1),lt=qe.width,Et=qe.height,At={data:qe.getData(),width:lt,height:Et},fr=new Nr(100).encode(At,100);return ot.processJPEG.call(this,fr,He,Ye,at)}}(z.API),Yn.prototype.getData=function(){return this.data},function(ot){ot.processWEBP=function(Ne,He,Ye,at){var qe=new Yn(Ne,!1),lt=qe.width,Et=qe.height,At={data:qe.getData(),width:lt,height:Et},fr=new Nr(100).encode(At,100);return ot.processJPEG.call(this,fr,He,Ye,at)}}(z.API),z.API.processRGBA=function(ot,Ne,He){for(var Ye=ot.data,at=Ye.length,qe=new Uint8Array(at/4*3),lt=new Uint8Array(at/4),Et=0,At=0,fr=0;fr<at;fr+=4){var Jr=Ye[fr],Vr=Ye[fr+1],dn=Ye[fr+2],gr=Ye[fr+3];qe[Et++]=Jr,qe[Et++]=Vr,qe[Et++]=dn,lt[At++]=gr}var Wn=this.__addimage__.arrayBufferToBinaryString(qe);return{alpha:this.__addimage__.arrayBufferToBinaryString(lt),data:Wn,index:Ne,alias:He,colorSpace:"DeviceRGB",bitsPerComponent:8,width:ot.width,height:ot.height}},z.API.setLanguage=function(ot){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[ot]!==void 0&&(this.internal.languageSettings.languageCode=ot,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Xt=z.API,wt=Xt.getCharWidthsArray=function(ot,Ne){var He,Ye,at=(Ne=Ne||{}).font||this.internal.getFont(),qe=Ne.fontSize||this.internal.getFontSize(),lt=Ne.charSpace||this.internal.getCharSpace(),Et=Ne.widths?Ne.widths:at.metadata.Unicode.widths,At=Et.fof?Et.fof:1,fr=Ne.kerning?Ne.kerning:at.metadata.Unicode.kerning,Jr=fr.fof?fr.fof:1,Vr=Ne.doKerning!==!1,dn=0,gr=ot.length,Wn=0,kr=Et[0]||At,Fn=[];for(He=0;He<gr;He++)Ye=ot.charCodeAt(He),typeof at.metadata.widthOfString=="function"?Fn.push((at.metadata.widthOfGlyph(at.metadata.characterToGlyph(Ye))+lt*(1e3/qe)||0)/1e3):(dn=Vr&&x()(fr[Ye])==="object"&&!isNaN(parseInt(fr[Ye][Wn],10))?fr[Ye][Wn]/Jr:0,Fn.push((Et[Ye]||kr)/At+dn)),Wn=Ye;return Fn},De=Xt.getStringUnitWidth=function(ot,Ne){var He=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),Ye=Ne.font||this.internal.getFont(),at=Ne.charSpace||this.internal.getCharSpace();return Xt.processArabic&&(ot=Xt.processArabic(ot)),typeof Ye.metadata.widthOfString=="function"?Ye.metadata.widthOfString(ot,He,at)/He:wt.apply(this,arguments).reduce(function(qe,lt){return qe+lt},0)},Re=function(Ne,He,Ye,at){for(var qe=[],lt=0,Et=Ne.length,At=0;lt!==Et&&At+He[lt]<Ye;)At+=He[lt],lt++;qe.push(Ne.slice(0,lt));var fr=lt;for(At=0;lt!==Et;)At+He[lt]>at&&(qe.push(Ne.slice(fr,lt)),At=0,fr=lt),At+=He[lt],lt++;return fr!==lt&&qe.push(Ne.slice(fr,lt)),qe},Me=function(Ne,He,Ye){Ye||(Ye={});var at,qe,lt,Et,At,fr,Jr,Vr=[],dn=[Vr],gr=Ye.textIndent||0,Wn=0,kr=0,Fn=Ne.split(" "),vn=wt.apply(this,[" ",Ye])[0];if(fr=Ye.lineIndent===-1?Fn[0].length+2:Ye.lineIndent||0){var $r=Array(fr).join(" "),ei=[];Fn.map(function(Pi){(Pi=Pi.split(/\s*\n/)).length>1?ei=ei.concat(Pi.map(function(Zr,Sn){return(Sn&&Zr.length?`
`:"")+Zr})):ei.push(Pi[0])}),Fn=ei,fr=De.apply(this,[$r,Ye])}for(lt=0,Et=Fn.length;lt<Et;lt++){var fi=0;if(at=Fn[lt],fr&&at[0]==`
`&&(at=at.substr(1),fi=1),gr+Wn+(kr=(qe=wt.apply(this,[at,Ye])).reduce(function(Pi,Zr){return Pi+Zr},0))>He||fi){if(kr>He){for(At=Re.apply(this,[at,qe,He-(gr+Wn),He]),Vr.push(At.shift()),Vr=[At.pop()];At.length;)dn.push([At.shift()]);kr=qe.slice(at.length-(Vr[0]?Vr[0].length:0)).reduce(function(Pi,Zr){return Pi+Zr},0)}else Vr=[at];dn.push(Vr),gr=kr+fr,Wn=vn}else Vr.push(at),gr+=Wn+kr,Wn=vn}return Jr=fr?function(Pi,Zr){return(Zr?$r:"")+Pi.join(" ")}:function(Pi){return Pi.join(" ")},dn.map(Jr)},Xt.splitTextToSize=function(ot,Ne,He){var Ye,at=(He=He||{}).fontSize||this.internal.getFontSize(),qe=function(Jr){if(Jr.widths&&Jr.kerning)return{widths:Jr.widths,kerning:Jr.kerning};var Vr=this.internal.getFont(Jr.fontName,Jr.fontStyle);return Vr.metadata.Unicode?{widths:Vr.metadata.Unicode.widths||{0:1},kerning:Vr.metadata.Unicode.kerning||{}}:{font:Vr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,He);Ye=Array.isArray(ot)?ot:String(ot).split(/\r?\n/);var lt=1*this.internal.scaleFactor*Ne/at;qe.textIndent=He.textIndent?1*He.textIndent*this.internal.scaleFactor/at:0,qe.lineIndent=He.lineIndent;var Et,At,fr=[];for(Et=0,At=Ye.length;Et<At;Et++)fr=fr.concat(Me.apply(this,[Ye[Et],lt,qe]));return fr},function(ot){ot.__fontmetrics__=ot.__fontmetrics__||{};for(var Ne="klmnopqrstuvwxyz",He={},Ye={},at=0;at<Ne.length;at++)He[Ne[at]]="0123456789abcdef"[at],Ye["0123456789abcdef"[at]]=Ne[at];var qe=function(dn){return"0x"+parseInt(dn,10).toString(16)},lt=ot.__fontmetrics__.compress=function(Vr){var dn,gr,Wn,kr,Fn=["{"];for(var vn in Vr){if(dn=Vr[vn],isNaN(parseInt(vn,10))?gr="'"+vn+"'":(vn=parseInt(vn,10),gr=(gr=qe(vn).slice(2)).slice(0,-1)+Ye[gr.slice(-1)]),typeof dn=="number")dn<0?(Wn=qe(dn).slice(3),kr="-"):(Wn=qe(dn).slice(2),kr=""),Wn=kr+Wn.slice(0,-1)+Ye[Wn.slice(-1)];else{if(x()(dn)!=="object")throw new Error("Don't know what to do with value type "+x()(dn)+".");Wn=lt(dn)}Fn.push(gr+Wn)}return Fn.push("}"),Fn.join("")},Et=ot.__fontmetrics__.uncompress=function(Vr){if(typeof Vr!="string")throw new Error("Invalid argument passed to uncompress.");for(var dn,gr,Wn,kr,Fn={},vn=1,$r=Fn,ei=[],fi="",Pi="",Zr=Vr.length-1,Sn=1;Sn<Zr;Sn+=1)(kr=Vr[Sn])=="'"?dn?(Wn=dn.join(""),dn=void 0):dn=[]:dn?dn.push(kr):kr=="{"?(ei.push([$r,Wn]),$r={},Wn=void 0):kr=="}"?((gr=ei.pop())[0][gr[1]]=$r,Wn=void 0,$r=gr[0]):kr=="-"?vn=-1:Wn===void 0?He.hasOwnProperty(kr)?(fi+=He[kr],Wn=parseInt(fi,16)*vn,vn=1,fi=""):fi+=kr:He.hasOwnProperty(kr)?(Pi+=He[kr],$r[Wn]=parseInt(Pi,16)*vn,vn=1,Wn=void 0,Pi=""):Pi+=kr;return Fn},At={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Et("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},fr={Unicode:{Courier:At,"Courier-Bold":At,"Courier-BoldOblique":At,"Courier-Oblique":At,Helvetica:At,"Helvetica-Bold":At,"Helvetica-BoldOblique":At,"Helvetica-Oblique":At,"Times-Roman":At,"Times-Bold":At,"Times-BoldItalic":At,"Times-Italic":At}},Jr={Unicode:{"Courier-Oblique":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Et("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Et("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Et("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Et("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Et("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Et("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Et("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Et("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Et("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Et("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Et("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};ot.events.push(["addFont",function(Vr){var dn=Vr.font,gr=Jr.Unicode[dn.postScriptName];gr&&(dn.metadata.Unicode={},dn.metadata.Unicode.widths=gr.widths,dn.metadata.Unicode.kerning=gr.kerning);var Wn=fr.Unicode[dn.postScriptName];Wn&&(dn.metadata.Unicode.encoding=Wn,dn.encoding=Wn.codePages[0])}])}(z.API),function(ot){var Ne=function(Ye){for(var at=Ye.length,qe=new Uint8Array(at),lt=0;lt<at;lt++)qe[lt]=Ye.charCodeAt(lt);return qe};ot.API.events.push(["addFont",function(He){var Ye=void 0,at=He.font,qe=He.instance;if(!at.isStandardFont){if(qe===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+at.postScriptName+"').");if(typeof(Ye=qe.existsFileInVFS(at.postScriptName)===!1?qe.loadFile(at.postScriptName):qe.getFileFromVFS(at.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+at.postScriptName+"').");!function(lt,Et){Et=/^\x00\x01\x00\x00/.test(Et)?Ne(Et):Ne(t(Et)),lt.metadata=ot.API.TTFFont.open(Et),lt.metadata.Unicode=lt.metadata.Unicode||{encoding:{},kerning:{},widths:[]},lt.metadata.glyIdsUsed=[0]}(at,Ye)}}])}(z),function(ot){function Ne(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([r.e(0),r.e(241)]).then(r.bind(null,"DXPr"))).catch(function(He){return Promise.reject(new Error("Could not load canvg: "+He))}).then(function(He){return He.default?He.default:He})}z.API.addSvgAsImage=function(He,Ye,at,qe,lt,Et,At,fr){if(isNaN(Ye)||isNaN(at))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(qe)||isNaN(lt))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Jr=document.createElement("canvas");Jr.width=qe,Jr.height=lt;var Vr=Jr.getContext("2d");Vr.fillStyle="#fff",Vr.fillRect(0,0,Jr.width,Jr.height);var dn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},gr=this;return Ne().then(function(Wn){return Wn.fromString(Vr,He,dn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Wn){return Wn.render(dn)}).then(function(){gr.addImage(Jr.toDataURL("image/jpeg",1),Ye,at,qe,lt,At,fr)})}}(),z.API.putTotalPages=function(ot){var Ne,He=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ne=new RegExp(ot,"g"),He=this.internal.getNumberOfPages()):(Ne=new RegExp(this.pdfEscape16(ot,this.internal.getFont()),"g"),He=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ye=1;Ye<=this.internal.getNumberOfPages();Ye++)for(var at=0;at<this.internal.pages[Ye].length;at++)this.internal.pages[Ye][at]=this.internal.pages[Ye][at].replace(Ne,He);return this},z.API.viewerPreferences=function(ot,Ne){var He;ot=ot||{},Ne=Ne||!1;var Ye,at,qe,lt={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Et=Object.keys(lt),At=[],fr=0,Jr=0,Vr=0;function dn(Wn,kr){var Fn,vn=!1;for(Fn=0;Fn<Wn.length;Fn+=1)Wn[Fn]===kr&&(vn=!0);return vn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(lt)),this.internal.viewerpreferences.isSubscribed=!1),He=this.internal.viewerpreferences.configuration,ot==="reset"||Ne===!0){var gr=Et.length;for(Vr=0;Vr<gr;Vr+=1)He[Et[Vr]].value=He[Et[Vr]].defaultValue,He[Et[Vr]].explicitSet=!1}if(x()(ot)==="object"){for(at in ot)if(qe=ot[at],dn(Et,at)&&qe!==void 0){if(He[at].type==="boolean"&&typeof qe=="boolean")He[at].value=qe;else if(He[at].type==="name"&&dn(He[at].valueSet,qe))He[at].value=qe;else if(He[at].type==="integer"&&Number.isInteger(qe))He[at].value=qe;else if(He[at].type==="array"){for(fr=0;fr<qe.length;fr+=1)if(Ye=!0,qe[fr].length===1&&typeof qe[fr][0]=="number")At.push(String(qe[fr]-1));else if(qe[fr].length>1){for(Jr=0;Jr<qe[fr].length;Jr+=1)typeof qe[fr][Jr]!="number"&&(Ye=!1);Ye===!0&&At.push([qe[fr][0]-1,qe[fr][1]-1].join(" "))}He[at].value="["+At.join(" ")+"]"}else He[at].value=He[at].defaultValue;He[at].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Wn,kr=[];for(Wn in He)He[Wn].explicitSet===!0&&(He[Wn].type==="name"?kr.push("/"+Wn+" /"+He[Wn].value):kr.push("/"+Wn+" "+He[Wn].value));kr.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+kr.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=He,this},function(ot){var Ne=function(){var at='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',qe=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),lt=unescape(encodeURIComponent(at)),Et=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),At=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),fr=unescape(encodeURIComponent("</x:xmpmeta>")),Jr=lt.length+Et.length+At.length+qe.length+fr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Jr+" >>"),this.internal.write("stream"),this.internal.write(qe+lt+Et+At+fr),this.internal.write("endstream"),this.internal.write("endobj")},He=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};ot.addMetadata=function(Ye,at){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ye,namespaceuri:at||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",He),this.internal.events.subscribe("postPutResources",Ne)),this}}(z.API),function(ot){var Ne=ot.API,He=Ne.pdfEscape16=function(qe,lt){for(var Et,At=lt.metadata.Unicode.widths,fr=["","0","00","000","0000"],Jr=[""],Vr=0,dn=qe.length;Vr<dn;++Vr){if(Et=lt.metadata.characterToGlyph(qe.charCodeAt(Vr)),lt.metadata.glyIdsUsed.push(Et),lt.metadata.toUnicode[Et]=qe.charCodeAt(Vr),At.indexOf(Et)==-1&&(At.push(Et),At.push([parseInt(lt.metadata.widthOfGlyph(Et),10)])),Et=="0")return Jr.join("");Et=Et.toString(16),Jr.push(fr[4-Et.length],Et)}return Jr.join("")},Ye=function(lt){var Et,At,fr,Jr,Vr,dn,gr;for(Vr=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,fr=[],dn=0,gr=(At=Object.keys(lt).sort(function(Wn,kr){return Wn-kr})).length;dn<gr;dn++)Et=At[dn],fr.length>=100&&(Vr+=`
`+fr.length+` beginbfchar
`+fr.join(`
`)+`
endbfchar`,fr=[]),lt[Et]!==void 0&&lt[Et]!==null&&typeof lt[Et].toString=="function"&&(Jr=("0000"+lt[Et].toString(16)).slice(-4),Et=("0000"+(+Et).toString(16)).slice(-4),fr.push("<"+Et+"><"+Jr+">"));return fr.length&&(Vr+=`
`+fr.length+` beginbfchar
`+fr.join(`
`)+`
endbfchar
`),Vr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Ne.events.push(["putFont",function(qe){!function(lt){var Et=lt.font,At=lt.out,fr=lt.newObject,Jr=lt.putStream;if(Et.metadata instanceof ot.API.TTFFont&&Et.encoding==="Identity-H"){for(var Vr=Et.metadata.Unicode.widths,dn=Et.metadata.subset.encode(Et.metadata.glyIdsUsed,1),gr="",Wn=0;Wn<dn.length;Wn++)gr+=String.fromCharCode(dn[Wn]);var kr=fr();Jr({data:gr,addLength1:!0,objectId:kr}),At("endobj");var Fn=fr();Jr({data:Ye(Et.metadata.toUnicode),addLength1:!0,objectId:Fn}),At("endobj");var vn=fr();At("<<"),At("/Type /FontDescriptor"),At("/FontName /"+U(Et.fontName)),At("/FontFile2 "+kr+" 0 R"),At("/FontBBox "+ot.API.PDFObject.convert(Et.metadata.bbox)),At("/Flags "+Et.metadata.flags),At("/StemV "+Et.metadata.stemV),At("/ItalicAngle "+Et.metadata.italicAngle),At("/Ascent "+Et.metadata.ascender),At("/Descent "+Et.metadata.decender),At("/CapHeight "+Et.metadata.capHeight),At(">>"),At("endobj");var $r=fr();At("<<"),At("/Type /Font"),At("/BaseFont /"+U(Et.fontName)),At("/FontDescriptor "+vn+" 0 R"),At("/W "+ot.API.PDFObject.convert(Vr)),At("/CIDToGIDMap /Identity"),At("/DW 1000"),At("/Subtype /CIDFontType2"),At("/CIDSystemInfo"),At("<<"),At("/Supplement 0"),At("/Registry (Adobe)"),At("/Ordering ("+Et.encoding+")"),At(">>"),At(">>"),At("endobj"),Et.objectNumber=fr(),At("<<"),At("/Type /Font"),At("/Subtype /Type0"),At("/ToUnicode "+Fn+" 0 R"),At("/BaseFont /"+U(Et.fontName)),At("/Encoding /"+Et.encoding),At("/DescendantFonts ["+$r+" 0 R]"),At(">>"),At("endobj"),Et.isAlreadyPutted=!0}}(qe)}]),Ne.events.push(["putFont",function(qe){!function(lt){var Et=lt.font,At=lt.out,fr=lt.newObject,Jr=lt.putStream;if(Et.metadata instanceof ot.API.TTFFont&&Et.encoding==="WinAnsiEncoding"){for(var Vr=Et.metadata.rawData,dn="",gr=0;gr<Vr.length;gr++)dn+=String.fromCharCode(Vr[gr]);var Wn=fr();Jr({data:dn,addLength1:!0,objectId:Wn}),At("endobj");var kr=fr();Jr({data:Ye(Et.metadata.toUnicode),addLength1:!0,objectId:kr}),At("endobj");var Fn=fr();At("<<"),At("/Descent "+Et.metadata.decender),At("/CapHeight "+Et.metadata.capHeight),At("/StemV "+Et.metadata.stemV),At("/Type /FontDescriptor"),At("/FontFile2 "+Wn+" 0 R"),At("/Flags 96"),At("/FontBBox "+ot.API.PDFObject.convert(Et.metadata.bbox)),At("/FontName /"+U(Et.fontName)),At("/ItalicAngle "+Et.metadata.italicAngle),At("/Ascent "+Et.metadata.ascender),At(">>"),At("endobj"),Et.objectNumber=fr();for(var vn=0;vn<Et.metadata.hmtx.widths.length;vn++)Et.metadata.hmtx.widths[vn]=parseInt(Et.metadata.hmtx.widths[vn]*(1e3/Et.metadata.head.unitsPerEm));At("<</Subtype/TrueType/Type/Font/ToUnicode "+kr+" 0 R/BaseFont/"+U(Et.fontName)+"/FontDescriptor "+Fn+" 0 R/Encoding/"+Et.encoding+" /FirstChar 29 /LastChar 255 /Widths "+ot.API.PDFObject.convert(Et.metadata.hmtx.widths)+">>"),At("endobj"),Et.isAlreadyPutted=!0}}(qe)}]);var at=function(lt){var Et,At=lt.text||"",fr=lt.x,Jr=lt.y,Vr=lt.options||{},dn=lt.mutex||{},gr=dn.pdfEscape,Wn=dn.activeFontKey,kr=dn.fonts,Fn=Wn,vn="",$r=0,ei="",fi=kr[Fn].encoding;if(kr[Fn].encoding!=="Identity-H")return{text:At,x:fr,y:Jr,options:Vr,mutex:dn};for(ei=At,Fn=Wn,Array.isArray(At)&&(ei=At[0]),$r=0;$r<ei.length;$r+=1)kr[Fn].metadata.hasOwnProperty("cmap")&&(Et=kr[Fn].metadata.cmap.unicode.codeMap[ei[$r].charCodeAt(0)]),Et||ei[$r].charCodeAt(0)<256&&kr[Fn].metadata.hasOwnProperty("Unicode")?vn+=ei[$r]:vn+="";var Pi="";return parseInt(Fn.slice(1))<14||fi==="WinAnsiEncoding"?Pi=gr(vn,Fn).split("").map(function(Zr){return Zr.charCodeAt(0).toString(16)}).join(""):fi==="Identity-H"&&(Pi=He(vn,kr[Fn])),dn.isHex=!0,{text:Pi,x:fr,y:Jr,options:Vr,mutex:dn}};Ne.events.push(["postProcessText",function(qe){var lt=qe.text||"",Et=[],At={text:lt,x:qe.x,y:qe.y,options:qe.options,mutex:qe.mutex};if(Array.isArray(lt)){var fr=0;for(fr=0;fr<lt.length;fr+=1)Array.isArray(lt[fr])&&lt[fr].length===3?Et.push([at(Object.assign({},At,{text:lt[fr][0]})).text,lt[fr][1],lt[fr][2]]):Et.push(at(Object.assign({},At,{text:lt[fr]})).text);qe.text=Et}else qe.text=at(Object.assign({},At,{text:lt})).text}])}(z),function(ot){var Ne=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};ot.existsFileInVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0},ot.addFileToVFS=function(He,Ye){return Ne.call(this),this.internal.vFS[He]=Ye,this},ot.getFileFromVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0?this.internal.vFS[He]:null}}(z.API),function(ot){ot.__bidiEngine__=ot.prototype.__bidiEngine__=function(Ye){var at,qe,lt,Et,At,fr,Jr,Vr=Ne,dn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],gr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Wn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},kr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Fn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],vn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),$r=!1,ei=0;this.__bidiEngine__={};var fi=function(Ut){var Kt=Ut.charCodeAt(),Lt=Kt>>8,cr=kr[Lt];return cr!==void 0?Vr[256*cr+(255&Kt)]:Lt===252||Lt===253?"AL":vn.test(Lt)?"L":Lt===8?"R":"N"},Pi=function(Ut){for(var Kt,Lt=0;Lt<Ut.length;Lt++){if((Kt=fi(Ut.charAt(Lt)))==="L")return!1;if(Kt==="R")return!0}return!1},Zr=function(Ut,Kt,Lt,cr){var vr,yr,Rr,Vn,kn=Kt[cr];switch(kn){case"L":case"R":$r=!1;break;case"N":case"AN":break;case"EN":$r&&(kn="AN");break;case"AL":$r=!0,kn="R";break;case"WS":kn="N";break;case"CS":cr<1||cr+1>=Kt.length||(vr=Lt[cr-1])!=="EN"&&vr!=="AN"||(yr=Kt[cr+1])!=="EN"&&yr!=="AN"?kn="N":$r&&(yr="AN"),kn=yr===vr?yr:"N";break;case"ES":kn=(vr=cr>0?Lt[cr-1]:"B")==="EN"&&cr+1<Kt.length&&Kt[cr+1]==="EN"?"EN":"N";break;case"ET":if(cr>0&&Lt[cr-1]==="EN"){kn="EN";break}if($r){kn="N";break}for(Rr=cr+1,Vn=Kt.length;Rr<Vn&&Kt[Rr]==="ET";)Rr++;kn=Rr<Vn&&Kt[Rr]==="EN"?"EN":"N";break;case"NSM":if(lt&&!Et){for(Vn=Kt.length,Rr=cr+1;Rr<Vn&&Kt[Rr]==="NSM";)Rr++;if(Rr<Vn){var di=Ut[cr],pn=di>=1425&&di<=2303||di===64286;if(vr=Kt[Rr],pn&&(vr==="R"||vr==="AL")){kn="R";break}}}kn=cr<1||(vr=Kt[cr-1])==="B"?"N":Lt[cr-1];break;case"B":$r=!1,at=!0,kn=ei;break;case"S":qe=!0,kn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":$r=!1;break;case"BN":kn="N"}return kn},Sn=function(Ut,Kt,Lt){var cr=Ut.split("");return Lt&&Gn(cr,Lt,{hiLevel:ei}),cr.reverse(),Kt&&Kt.reverse(),cr.join("")},Gn=function(Ut,Kt,Lt){var cr,vr,yr,Rr,Vn,kn=-1,di=Ut.length,pn=0,Br=[],_n=ei?gr:dn,Xn=[];for($r=!1,at=!1,qe=!1,vr=0;vr<di;vr++)Xn[vr]=fi(Ut[vr]);for(yr=0;yr<di;yr++){if(Vn=pn,Br[yr]=Zr(Ut,Xn,Br,yr),cr=240&(pn=_n[Vn][Wn[Br[yr]]]),pn&=15,Kt[yr]=Rr=_n[pn][5],cr>0)if(cr===16){for(vr=kn;vr<yr;vr++)Kt[vr]=1;kn=-1}else kn=-1;if(_n[pn][6])kn===-1&&(kn=yr);else if(kn>-1){for(vr=kn;vr<yr;vr++)Kt[vr]=Rr;kn=-1}Xn[yr]==="B"&&(Kt[yr]=0),Lt.hiLevel|=Rr}qe&&function($n,oi,Ti){for(var Ri=0;Ri<Ti;Ri++)if($n[Ri]==="S"){oi[Ri]=ei;for(var Di=Ri-1;Di>=0&&$n[Di]==="WS";Di--)oi[Di]=ei}}(Xn,Kt,di)},Wt=function(Ut,Kt,Lt,cr,vr){if(!(vr.hiLevel<Ut)){if(Ut===1&&ei===1&&!at)return Kt.reverse(),void(Lt&&Lt.reverse());for(var yr,Rr,Vn,kn,di=Kt.length,pn=0;pn<di;){if(cr[pn]>=Ut){for(Vn=pn+1;Vn<di&&cr[Vn]>=Ut;)Vn++;for(kn=pn,Rr=Vn-1;kn<Rr;kn++,Rr--)yr=Kt[kn],Kt[kn]=Kt[Rr],Kt[Rr]=yr,Lt&&(yr=Lt[kn],Lt[kn]=Lt[Rr],Lt[Rr]=yr);pn=Vn}pn++}}},Ot=function(Ut,Kt,Lt){var cr=Ut.split(""),vr={hiLevel:ei};return Lt||(Lt=[]),Gn(cr,Lt,vr),function(yr,Rr,Vn){if(Vn.hiLevel!==0&&Jr)for(var kn,di=0;di<yr.length;di++)Rr[di]===1&&(kn=Fn.indexOf(yr[di]))>=0&&(yr[di]=Fn[kn+1])}(cr,Lt,vr),Wt(2,cr,Kt,Lt,vr),Wt(1,cr,Kt,Lt,vr),cr.join("")};return this.__bidiEngine__.doBidiReorder=function(Rt,Ut,Kt){if(function(cr,vr){if(vr)for(var yr=0;yr<cr.length;yr++)vr[yr]=yr;Et===void 0&&(Et=Pi(cr)),fr===void 0&&(fr=Pi(cr))}(Rt,Ut),lt||!At||fr)if(lt&&At&&Et^fr)ei=Et?1:0,Rt=Sn(Rt,Ut,Kt);else if(!lt&&At&&fr)ei=Et?1:0,Rt=Ot(Rt,Ut,Kt),Rt=Sn(Rt,Ut);else if(!lt||Et||At||fr){if(lt&&!At&&Et^fr)Rt=Sn(Rt,Ut),Et?(ei=0,Rt=Ot(Rt,Ut,Kt)):(ei=1,Rt=Ot(Rt,Ut,Kt),Rt=Sn(Rt,Ut));else if(lt&&Et&&!At&&fr)ei=1,Rt=Ot(Rt,Ut,Kt),Rt=Sn(Rt,Ut);else if(!lt&&!At&&Et^fr){var Lt=Jr;Et?(ei=1,Rt=Ot(Rt,Ut,Kt),ei=0,Jr=!1,Rt=Ot(Rt,Ut,Kt),Jr=Lt):(ei=0,Rt=Ot(Rt,Ut,Kt),Rt=Sn(Rt,Ut),ei=1,Jr=!1,Rt=Ot(Rt,Ut,Kt),Jr=Lt,Rt=Sn(Rt,Ut))}}else ei=0,Rt=Ot(Rt,Ut,Kt);else ei=Et?1:0,Rt=Ot(Rt,Ut,Kt);return Rt},this.__bidiEngine__.setOptions=function(Rt){Rt&&(lt=Rt.isInputVisual,At=Rt.isOutputVisual,Et=Rt.isInputRtl,fr=Rt.isOutputRtl,Jr=Rt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ye),this.__bidiEngine__};var Ne=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],He=new ot.__bidiEngine__({isInputVisual:!0});ot.API.events.push(["postProcessText",function(Ye){var at=Ye.text,qe=(Ye.x,Ye.y,Ye.options||{}),lt=(Ye.mutex,qe.lang,[]);if(qe.isInputVisual=typeof qe.isInputVisual!="boolean"||qe.isInputVisual,He.setOptions(qe),Object.prototype.toString.call(at)==="[object Array]"){var Et=0;for(lt=[],Et=0;Et<at.length;Et+=1)Object.prototype.toString.call(at[Et])==="[object Array]"?lt.push([He.doBidiReorder(at[Et][0]),at[Et][1],at[Et][2]]):lt.push([He.doBidiReorder(at[Et])]);Ye.text=lt}else Ye.text=He.doBidiReorder(at);He.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function ot(Ne){var He;if(this.rawData=Ne,He=this.contents=new ur(Ne),this.contents.pos=4,He.readString(4)==="ttcf")throw new Error("TTCF not supported.");He.pos=0,this.parse(),this.subset=new Qi(this),this.registerTTF()}return ot.open=function(Ne){return new ot(Ne)},ot.prototype.parse=function(){return this.directory=new Tt(this.contents),this.head=new er(this),this.name=new Mr(this),this.cmap=new ir(this),this.toUnicode={},this.hhea=new Pt(this),this.maxp=new fn(this),this.hmtx=new wn(this),this.post=new Yr(this),this.os2=new rr(this),this.loca=new Mi(this),this.glyf=new ri(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},ot.prototype.registerTTF=function(){var Ne,He,Ye,at,qe;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var lt,Et,At,fr;for(fr=[],lt=0,Et=(At=this.bbox).length;lt<Et;lt++)Ne=At[lt],fr.push(Math.round(Ne*this.scaleFactor));return fr}.call(this),this.stemV=0,this.post.exists?(Ye=255&(at=this.post.italic_angle),(32768&(He=at>>16))!=0&&(He=-(1+(65535^He))),this.italicAngle=+(He+"."+Ye)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(qe=this.familyClass)===1||qe===2||qe===3||qe===4||qe===5||qe===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},ot.prototype.characterToGlyph=function(Ne){var He;return((He=this.cmap.unicode)!=null?He.codeMap[Ne]:void 0)||0},ot.prototype.widthOfGlyph=function(Ne){var He;return He=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Ne).advance*He},ot.prototype.widthOfString=function(Ne,He,Ye){var at,qe,lt,Et;for(lt=0,qe=0,Et=(Ne=""+Ne).length;0<=Et?qe<Et:qe>Et;qe=0<=Et?++qe:--qe)at=Ne.charCodeAt(qe),lt+=this.widthOfGlyph(this.characterToGlyph(at))+Ye*(1e3/He)||0;return lt*(He/1e3)},ot.prototype.lineHeight=function(Ne,He){var Ye;return He==null&&(He=!1),Ye=He?this.lineGap:0,(this.ascender+Ye-this.decender)/1e3*Ne},ot}();var Jn,ur=function(){function ot(Ne){this.data=Ne!=null?Ne:[],this.pos=0,this.length=this.data.length}return ot.prototype.readByte=function(){return this.data[this.pos++]},ot.prototype.writeByte=function(Ne){return this.data[this.pos++]=Ne},ot.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},ot.prototype.writeUInt32=function(Ne){return this.writeByte(Ne>>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},ot.prototype.readInt32=function(){var Ne;return(Ne=this.readUInt32())>=2147483648?Ne-4294967296:Ne},ot.prototype.writeInt32=function(Ne){return Ne<0&&(Ne+=4294967296),this.writeUInt32(Ne)},ot.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},ot.prototype.writeUInt16=function(Ne){return this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},ot.prototype.readInt16=function(){var Ne;return(Ne=this.readUInt16())>=32768?Ne-65536:Ne},ot.prototype.writeInt16=function(Ne){return Ne<0&&(Ne+=65536),this.writeUInt16(Ne)},ot.prototype.readString=function(Ne){var He,Ye;for(Ye=[],He=0;0<=Ne?He<Ne:He>Ne;He=0<=Ne?++He:--He)Ye[He]=String.fromCharCode(this.readByte());return Ye.join("")},ot.prototype.writeString=function(Ne){var He,Ye,at;for(at=[],He=0,Ye=Ne.length;0<=Ye?He<Ye:He>Ye;He=0<=Ye?++He:--He)at.push(this.writeByte(Ne.charCodeAt(He)));return at},ot.prototype.readShort=function(){return this.readInt16()},ot.prototype.writeShort=function(Ne){return this.writeInt16(Ne)},ot.prototype.readLongLong=function(){var Ne,He,Ye,at,qe,lt,Et,At;return Ne=this.readByte(),He=this.readByte(),Ye=this.readByte(),at=this.readByte(),qe=this.readByte(),lt=this.readByte(),Et=this.readByte(),At=this.readByte(),128&Ne?-1*(72057594037927940*(255^Ne)+281474976710656*(255^He)+1099511627776*(255^Ye)+4294967296*(255^at)+16777216*(255^qe)+65536*(255^lt)+256*(255^Et)+(255^At)+1):72057594037927940*Ne+281474976710656*He+1099511627776*Ye+4294967296*at+16777216*qe+65536*lt+256*Et+At},ot.prototype.writeLongLong=function(Ne){var He,Ye;return He=Math.floor(Ne/4294967296),Ye=4294967295&Ne,this.writeByte(He>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He),this.writeByte(Ye>>24&255),this.writeByte(Ye>>16&255),this.writeByte(Ye>>8&255),this.writeByte(255&Ye)},ot.prototype.readInt=function(){return this.readInt32()},ot.prototype.writeInt=function(Ne){return this.writeInt32(Ne)},ot.prototype.read=function(Ne){var He,Ye;for(He=[],Ye=0;0<=Ne?Ye<Ne:Ye>Ne;Ye=0<=Ne?++Ye:--Ye)He.push(this.readByte());return He},ot.prototype.write=function(Ne){var He,Ye,at,qe;for(qe=[],Ye=0,at=Ne.length;Ye<at;Ye++)He=Ne[Ye],qe.push(this.writeByte(He));return qe},ot}(),Tt=function(){var ot;function Ne(He){var Ye,at,qe;for(this.scalarType=He.readInt(),this.tableCount=He.readShort(),this.searchRange=He.readShort(),this.entrySelector=He.readShort(),this.rangeShift=He.readShort(),this.tables={},at=0,qe=this.tableCount;0<=qe?at<qe:at>qe;at=0<=qe?++at:--at)Ye={tag:He.readString(4),checksum:He.readInt(),offset:He.readInt(),length:He.readInt()},this.tables[Ye.tag]=Ye}return Ne.prototype.encode=function(He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn,gr,Wn,kr;for(kr in gr=Object.keys(He).length,At=Math.log(2),Vr=16*Math.floor(Math.log(gr)/At),lt=Math.floor(Vr/At),Jr=16*gr-Vr,(at=new ur).writeInt(this.scalarType),at.writeShort(gr),at.writeShort(Vr),at.writeShort(lt),at.writeShort(Jr),qe=16*gr,fr=at.pos+qe,Et=null,Wn=[],He)for(dn=He[kr],at.writeString(kr),at.writeInt(ot(dn)),at.writeInt(fr),at.writeInt(dn.length),Wn=Wn.concat(dn),kr==="head"&&(Et=fr),fr+=dn.length;fr%4;)Wn.push(0),fr++;return at.write(Wn),Ye=2981146554-ot(at.data),at.pos=Et+8,at.writeUInt32(Ye),at.data},ot=function(Ye){var at,qe,lt,Et;for(Ye=ai.call(Ye);Ye.length%4;)Ye.push(0);for(lt=new ur(Ye),qe=0,at=0,Et=Ye.length;at<Et;at=at+=4)qe+=lt.readUInt32();return 4294967295&qe},Ne}(),Ct={}.hasOwnProperty,Ar=function(Ne,He){for(var Ye in He)Ct.call(He,Ye)&&(Ne[Ye]=He[Ye]);function at(){this.constructor=Ne}return at.prototype=He.prototype,Ne.prototype=new at,Ne.__super__=He.prototype,Ne};Jn=function(){function ot(Ne){var He;this.file=Ne,He=this.file.directory.tables[this.tag],this.exists=!!He,He&&(this.offset=He.offset,this.length=He.length,this.parse(this.file.contents))}return ot.prototype.parse=function(){},ot.prototype.encode=function(){},ot.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},ot}();var er=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="head",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.revision=He.readInt(),this.checkSumAdjustment=He.readInt(),this.magicNumber=He.readInt(),this.flags=He.readShort(),this.unitsPerEm=He.readShort(),this.created=He.readLongLong(),this.modified=He.readLongLong(),this.xMin=He.readShort(),this.yMin=He.readShort(),this.xMax=He.readShort(),this.yMax=He.readShort(),this.macStyle=He.readShort(),this.lowestRecPPEM=He.readShort(),this.fontDirectionHint=He.readShort(),this.indexToLocFormat=He.readShort(),this.glyphDataFormat=He.readShort()},Ne.prototype.encode=function(He){var Ye;return(Ye=new ur).writeInt(this.version),Ye.writeInt(this.revision),Ye.writeInt(this.checkSumAdjustment),Ye.writeInt(this.magicNumber),Ye.writeShort(this.flags),Ye.writeShort(this.unitsPerEm),Ye.writeLongLong(this.created),Ye.writeLongLong(this.modified),Ye.writeShort(this.xMin),Ye.writeShort(this.yMin),Ye.writeShort(this.xMax),Ye.writeShort(this.yMax),Ye.writeShort(this.macStyle),Ye.writeShort(this.lowestRecPPEM),Ye.writeShort(this.fontDirectionHint),Ye.writeShort(He),Ye.writeShort(this.glyphDataFormat),Ye.data},Ne}(),Ft=function(){function ot(Ne,He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn,vn,$r,ei;switch(this.platformID=Ne.readUInt16(),this.encodingID=Ne.readShort(),this.offset=He+Ne.readInt(),Vr=Ne.pos,Ne.pos=this.offset,this.format=Ne.readUInt16(),this.length=Ne.readUInt16(),this.language=Ne.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(At=0;At<256;++At)this.codeMap[At]=Ne.readByte();break;case 4:for(gr=Ne.readUInt16(),dn=gr/2,Ne.pos+=6,qe=function(){var fi,Pi;for(Pi=[],At=fi=0;0<=dn?fi<dn:fi>dn;At=0<=dn?++fi:--fi)Pi.push(Ne.readUInt16());return Pi}(),Ne.pos+=2,kr=function(){var fi,Pi;for(Pi=[],At=fi=0;0<=dn?fi<dn:fi>dn;At=0<=dn?++fi:--fi)Pi.push(Ne.readUInt16());return Pi}(),fr=function(){var fi,Pi;for(Pi=[],At=fi=0;0<=dn?fi<dn:fi>dn;At=0<=dn?++fi:--fi)Pi.push(Ne.readUInt16());return Pi}(),Jr=function(){var fi,Pi;for(Pi=[],At=fi=0;0<=dn?fi<dn:fi>dn;At=0<=dn?++fi:--fi)Pi.push(Ne.readUInt16());return Pi}(),at=(this.length-Ne.pos+this.offset)/2,Et=function(){var fi,Pi;for(Pi=[],At=fi=0;0<=at?fi<at:fi>at;At=0<=at?++fi:--fi)Pi.push(Ne.readUInt16());return Pi}(),At=vn=0,ei=qe.length;vn<ei;At=++vn)for(Fn=qe[At],Ye=$r=Wn=kr[At];Wn<=Fn?$r<=Fn:$r>=Fn;Ye=Wn<=Fn?++$r:--$r)Jr[At]===0?lt=Ye+fr[At]:(lt=Et[Jr[At]/2+(Ye-Wn)-(dn-At)]||0)!==0&&(lt+=fr[At]),this.codeMap[Ye]=65535&lt}Ne.pos=Vr}return ot.encode=function(Ne,He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn,vn,$r,ei,fi,Pi,Zr,Sn,Gn,Wt,Ot,Rt,Ut,Kt,Lt,cr,vr,yr,Rr,Vn,kn,di,pn,Br,_n,Xn,$n,oi,Ti,Ri,Di,oa,ma;switch(Lt=new ur,lt=Object.keys(Ne).sort(function(aa,ba){return aa-ba}),He){case"macroman":for(kr=0,Fn=function(){var aa=[];for(Wn=0;Wn<256;++Wn)aa.push(0);return aa}(),$r={0:0},qe={},cr=0,Vn=lt.length;cr<Vn;cr++)$r[Ri=Ne[at=lt[cr]]]==null&&($r[Ri]=++kr),qe[at]={old:Ne[at],new:$r[Ne[at]]},Fn[at]=$r[Ne[at]];return Lt.writeUInt16(1),Lt.writeUInt16(0),Lt.writeUInt32(12),Lt.writeUInt16(0),Lt.writeUInt16(262),Lt.writeUInt16(0),Lt.write(Fn),{charMap:qe,subtable:Lt.data,maxGlyphID:kr+1};case"unicode":for(Ut=[],Vr=[],ei=0,$r={},Ye={},vn=fr=null,vr=0,kn=lt.length;vr<kn;vr++)$r[Pi=Ne[at=lt[vr]]]==null&&($r[Pi]=++ei),Ye[at]={old:Pi,new:$r[Pi]},Et=$r[Pi]-at,vn!=null&&Et===fr||(vn&&Vr.push(vn),Ut.push(at),fr=Et),vn=at;for(vn&&Vr.push(vn),Vr.push(65535),Ut.push(65535),Ot=2*(Wt=Ut.length),Gn=2*Math.pow(Math.log(Wt)/Math.LN2,2),dn=Math.log(Gn/2)/Math.LN2,Sn=2*Wt-Gn,At=[],Zr=[],gr=[],Wn=yr=0,di=Ut.length;yr<di;Wn=++yr){if(Rt=Ut[Wn],Jr=Vr[Wn],Rt===65535){At.push(0),Zr.push(0);break}if(Rt-(Kt=Ye[Rt].new)>=32768)for(At.push(0),Zr.push(2*(gr.length+Wt-Wn)),at=Rr=Rt;Rt<=Jr?Rr<=Jr:Rr>=Jr;at=Rt<=Jr?++Rr:--Rr)gr.push(Ye[at].new);else At.push(Kt-Rt),Zr.push(0)}for(Lt.writeUInt16(3),Lt.writeUInt16(1),Lt.writeUInt32(12),Lt.writeUInt16(4),Lt.writeUInt16(16+8*Wt+2*gr.length),Lt.writeUInt16(0),Lt.writeUInt16(Ot),Lt.writeUInt16(Gn),Lt.writeUInt16(dn),Lt.writeUInt16(Sn),oi=0,pn=Vr.length;oi<pn;oi++)at=Vr[oi],Lt.writeUInt16(at);for(Lt.writeUInt16(0),Ti=0,Br=Ut.length;Ti<Br;Ti++)at=Ut[Ti],Lt.writeUInt16(at);for(Di=0,_n=At.length;Di<_n;Di++)Et=At[Di],Lt.writeUInt16(Et);for(oa=0,Xn=Zr.length;oa<Xn;oa++)fi=Zr[oa],Lt.writeUInt16(fi);for(ma=0,$n=gr.length;ma<$n;ma++)kr=gr[ma],Lt.writeUInt16(kr);return{charMap:Ye,subtable:Lt.data,maxGlyphID:ei+1}}},ot}(),ir=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="cmap",Ne.prototype.parse=function(He){var Ye,at,qe;for(He.pos=this.offset,this.version=He.readUInt16(),qe=He.readUInt16(),this.tables=[],this.unicode=null,at=0;0<=qe?at<qe:at>qe;at=0<=qe?++at:--at)Ye=new Ft(He,this.offset),this.tables.push(Ye),Ye.isUnicode&&this.unicode==null&&(this.unicode=Ye);return!0},Ne.encode=function(He,Ye){var at,qe;return Ye==null&&(Ye="macroman"),at=Ft.encode(He,Ye),(qe=new ur).writeUInt16(0),qe.writeUInt16(1),at.table=qe.data.concat(at.subtable),at},Ne}(),Pt=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="hhea",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.ascender=He.readShort(),this.decender=He.readShort(),this.lineGap=He.readShort(),this.advanceWidthMax=He.readShort(),this.minLeftSideBearing=He.readShort(),this.minRightSideBearing=He.readShort(),this.xMaxExtent=He.readShort(),this.caretSlopeRise=He.readShort(),this.caretSlopeRun=He.readShort(),this.caretOffset=He.readShort(),He.pos+=8,this.metricDataFormat=He.readShort(),this.numberOfMetrics=He.readUInt16()},Ne}(),rr=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="OS/2",Ne.prototype.parse=function(He){if(He.pos=this.offset,this.version=He.readUInt16(),this.averageCharWidth=He.readShort(),this.weightClass=He.readUInt16(),this.widthClass=He.readUInt16(),this.type=He.readShort(),this.ySubscriptXSize=He.readShort(),this.ySubscriptYSize=He.readShort(),this.ySubscriptXOffset=He.readShort(),this.ySubscriptYOffset=He.readShort(),this.ySuperscriptXSize=He.readShort(),this.ySuperscriptYSize=He.readShort(),this.ySuperscriptXOffset=He.readShort(),this.ySuperscriptYOffset=He.readShort(),this.yStrikeoutSize=He.readShort(),this.yStrikeoutPosition=He.readShort(),this.familyClass=He.readShort(),this.panose=function(){var Ye,at;for(at=[],Ye=0;Ye<10;++Ye)at.push(He.readByte());return at}(),this.charRange=function(){var Ye,at;for(at=[],Ye=0;Ye<4;++Ye)at.push(He.readInt());return at}(),this.vendorID=He.readString(4),this.selection=He.readShort(),this.firstCharIndex=He.readShort(),this.lastCharIndex=He.readShort(),this.version>0&&(this.ascent=He.readShort(),this.descent=He.readShort(),this.lineGap=He.readShort(),this.winAscent=He.readShort(),this.winDescent=He.readShort(),this.codePageRange=function(){var Ye,at;for(at=[],Ye=0;Ye<2;Ye=++Ye)at.push(He.readInt());return at}(),this.version>1))return this.xHeight=He.readShort(),this.capHeight=He.readShort(),this.defaultChar=He.readShort(),this.breakChar=He.readShort(),this.maxContext=He.readShort()},Ne}(),Yr=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="post",Ne.prototype.parse=function(He){var Ye,at,qe;switch(He.pos=this.offset,this.format=He.readInt(),this.italicAngle=He.readInt(),this.underlinePosition=He.readShort(),this.underlineThickness=He.readShort(),this.isFixedPitch=He.readInt(),this.minMemType42=He.readInt(),this.maxMemType42=He.readInt(),this.minMemType1=He.readInt(),this.maxMemType1=He.readInt(),this.format){case 65536:break;case 131072:var lt;for(at=He.readUInt16(),this.glyphNameIndex=[],lt=0;0<=at?lt<at:lt>at;lt=0<=at?++lt:--lt)this.glyphNameIndex.push(He.readUInt16());for(this.names=[],qe=[];He.pos<this.offset+this.length;)Ye=He.readByte(),qe.push(this.names.push(He.readString(Ye)));return qe;case 151552:return at=He.readUInt16(),this.offsets=He.read(at);case 196608:break;case 262144:return this.map=function(){var Et,At,fr;for(fr=[],lt=Et=0,At=this.file.maxp.numGlyphs;0<=At?Et<At:Et>At;lt=0<=At?++Et:--Et)fr.push(He.readUInt32());return fr}.call(this)}},Ne}(),Pr=function(Ne,He){this.raw=Ne,this.length=Ne.length,this.platformID=He.platformID,this.encodingID=He.encodingID,this.languageID=He.languageID},Mr=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="name",Ne.prototype.parse=function(He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn,gr;for(He.pos=this.offset,He.readShort(),Ye=He.readShort(),At=He.readShort(),at=[],lt=0;0<=Ye?lt<Ye:lt>Ye;lt=0<=Ye?++lt:--lt)at.push({platformID:He.readShort(),encodingID:He.readShort(),languageID:He.readShort(),nameID:He.readShort(),length:He.readShort(),offset:this.offset+At+He.readShort()});for(fr={},lt=Vr=0,dn=at.length;Vr<dn;lt=++Vr)qe=at[lt],He.pos=qe.offset,Jr=He.readString(qe.length),Et=new Pr(Jr,qe),fr[gr=qe.nameID]==null&&(fr[gr]=[]),fr[qe.nameID].push(Et);this.strings=fr,this.copyright=fr[0],this.fontFamily=fr[1],this.fontSubfamily=fr[2],this.uniqueSubfamily=fr[3],this.fontName=fr[4],this.version=fr[5];try{this.postscriptName=fr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Wn){this.postscriptName=fr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=fr[7],this.manufacturer=fr[8],this.designer=fr[9],this.description=fr[10],this.vendorUrl=fr[11],this.designerUrl=fr[12],this.license=fr[13],this.licenseUrl=fr[14],this.preferredFamily=fr[15],this.preferredSubfamily=fr[17],this.compatibleFull=fr[18],this.sampleText=fr[19]},Ne}(),fn=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="maxp",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.numGlyphs=He.readUInt16(),this.maxPoints=He.readUInt16(),this.maxContours=He.readUInt16(),this.maxCompositePoints=He.readUInt16(),this.maxComponentContours=He.readUInt16(),this.maxZones=He.readUInt16(),this.maxTwilightPoints=He.readUInt16(),this.maxStorage=He.readUInt16(),this.maxFunctionDefs=He.readUInt16(),this.maxInstructionDefs=He.readUInt16(),this.maxStackElements=He.readUInt16(),this.maxSizeOfInstructions=He.readUInt16(),this.maxComponentElements=He.readUInt16(),this.maxComponentDepth=He.readUInt16()},Ne}(),wn=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="hmtx",Ne.prototype.parse=function(He){var Ye,at,qe,lt,Et,At,fr;for(He.pos=this.offset,this.metrics=[],Ye=0,At=this.file.hhea.numberOfMetrics;0<=At?Ye<At:Ye>At;Ye=0<=At?++Ye:--Ye)this.metrics.push({advance:He.readUInt16(),lsb:He.readInt16()});for(qe=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Jr,Vr;for(Vr=[],Ye=Jr=0;0<=qe?Jr<qe:Jr>qe;Ye=0<=qe?++Jr:--Jr)Vr.push(He.readInt16());return Vr}(),this.widths=function(){var Jr,Vr,dn,gr;for(gr=[],Jr=0,Vr=(dn=this.metrics).length;Jr<Vr;Jr++)lt=dn[Jr],gr.push(lt.advance);return gr}.call(this),at=this.widths[this.widths.length-1],fr=[],Ye=Et=0;0<=qe?Et<qe:Et>qe;Ye=0<=qe?++Et:--Et)fr.push(this.widths.push(at));return fr},Ne.prototype.forGlyph=function(He){return He in this.metrics?this.metrics[He]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[He-this.metrics.length]}},Ne}(),ai=[].slice,ri=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="glyf",Ne.prototype.parse=function(){return this.cache={}},Ne.prototype.glyphFor=function(He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn;return He in this.cache?this.cache[He]:(lt=this.file.loca,Ye=this.file.contents,at=lt.indexOf(He),(qe=lt.lengthOf(He))===0?this.cache[He]=null:(Ye.pos=this.offset+at,Et=(At=new ur(Ye.read(qe))).readShort(),Jr=At.readShort(),dn=At.readShort(),fr=At.readShort(),Vr=At.readShort(),this.cache[He]=Et===-1?new Ii(At,Jr,dn,fr,Vr):new gi(At,Et,Jr,dn,fr,Vr),this.cache[He]))},Ne.prototype.encode=function(He,Ye,at){var qe,lt,Et,At,fr;for(Et=[],lt=[],At=0,fr=Ye.length;At<fr;At++)qe=He[Ye[At]],lt.push(Et.length),qe&&(Et=Et.concat(qe.encode(at)));return lt.push(Et.length),{table:Et,offsets:lt}},Ne}(),gi=function(){function ot(Ne,He,Ye,at,qe,lt){this.raw=Ne,this.numberOfContours=He,this.xMin=Ye,this.yMin=at,this.xMax=qe,this.yMax=lt,this.compound=!1}return ot.prototype.encode=function(){return this.raw.data},ot}(),Ii=function(){function ot(Ne,He,Ye,at,qe){var lt,Et;for(this.raw=Ne,this.xMin=He,this.yMin=Ye,this.xMax=at,this.yMax=qe,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],lt=this.raw;Et=lt.readShort(),this.glyphOffsets.push(lt.pos),this.glyphIDs.push(lt.readUInt16()),32&Et;)lt.pos+=1&Et?4:2,128&Et?lt.pos+=8:64&Et?lt.pos+=4:8&Et&&(lt.pos+=2)}return ot.prototype.encode=function(){var Ne,He,Ye;for(He=new ur(ai.call(this.raw.data)),Ne=0,Ye=this.glyphIDs.length;Ne<Ye;++Ne)He.pos=this.glyphOffsets[Ne];return He.data},ot}(),Mi=function(ot){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return Ar(Ne,Jn),Ne.prototype.tag="loca",Ne.prototype.parse=function(He){var Ye,at;return He.pos=this.offset,Ye=this.file.head.indexToLocFormat,this.offsets=Ye===0?function(){var qe,lt;for(lt=[],at=0,qe=this.length;at<qe;at+=2)lt.push(2*He.readUInt16());return lt}.call(this):function(){var qe,lt;for(lt=[],at=0,qe=this.length;at<qe;at+=4)lt.push(He.readUInt32());return lt}.call(this)},Ne.prototype.indexOf=function(He){return this.offsets[He]},Ne.prototype.lengthOf=function(He){return this.offsets[He+1]-this.offsets[He]},Ne.prototype.encode=function(He,Ye){for(var at=new Uint32Array(this.offsets.length),qe=0,lt=0,Et=0;Et<at.length;++Et)if(at[Et]=qe,lt<Ye.length&&Ye[lt]==Et){++lt,at[Et]=qe;var At=this.offsets[Et],fr=this.offsets[Et+1]-At;fr>0&&(qe+=fr)}for(var Jr=new Array(4*at.length),Vr=0;Vr<at.length;++Vr)Jr[4*Vr+3]=255&at[Vr],Jr[4*Vr+2]=(65280&at[Vr])>>8,Jr[4*Vr+1]=(16711680&at[Vr])>>16,Jr[4*Vr]=(4278190080&at[Vr])>>24;return Jr},Ne}(),Qi=function(){function ot(Ne){this.font=Ne,this.subset={},this.unicodes={},this.next=33}return ot.prototype.generateCmap=function(){var Ne,He,Ye,at,qe;for(He in at=this.font.cmap.tables[0].codeMap,Ne={},qe=this.subset)Ye=qe[He],Ne[He]=at[Ye];return Ne},ot.prototype.glyphsFor=function(Ne){var He,Ye,at,qe,lt,Et,At;for(at={},lt=0,Et=Ne.length;lt<Et;lt++)at[qe=Ne[lt]]=this.font.glyf.glyphFor(qe);for(qe in He=[],at)((Ye=at[qe])!=null?Ye.compound:void 0)&&He.push.apply(He,Ye.glyphIDs);if(He.length>0)for(qe in At=this.glyphsFor(He))Ye=At[qe],at[qe]=Ye;return at},ot.prototype.encode=function(Ne,He){var Ye,at,qe,lt,Et,At,fr,Jr,Vr,dn,gr,Wn,kr,Fn,vn;for(at in Ye=ir.encode(this.generateCmap(),"unicode"),lt=this.glyphsFor(Ne),gr={0:0},vn=Ye.charMap)gr[(At=vn[at]).old]=At.new;for(Wn in dn=Ye.maxGlyphID,lt)Wn in gr||(gr[Wn]=dn++);return Jr=function($r){var ei,fi;for(ei in fi={},$r)fi[$r[ei]]=ei;return fi}(gr),Vr=Object.keys(Jr).sort(function($r,ei){return $r-ei}),kr=function(){var $r,ei,fi;for(fi=[],$r=0,ei=Vr.length;$r<ei;$r++)Et=Vr[$r],fi.push(Jr[Et]);return fi}(),qe=this.font.glyf.encode(lt,kr,gr),fr=this.font.loca.encode(qe.offsets,kr),Fn={cmap:this.font.cmap.raw(),glyf:qe.table,loca:fr,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(He)},this.font.os2.exists&&(Fn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Fn)},ot}();z.API.PDFObject=function(){var ot;function Ne(){}return ot=function(Ye,at){return(Array(at+1).join("0")+Ye).slice(-at)},Ne.convert=function(He){var Ye,at,qe,lt;if(Array.isArray(He))return"["+function(){var Et,At,fr;for(fr=[],Et=0,At=He.length;Et<At;Et++)Ye=He[Et],fr.push(Ne.convert(Ye));return fr}().join(" ")+"]";if(typeof He=="string")return"/"+He;if(He!=null?He.isString:void 0)return"("+He+")";if(He instanceof Date)return"(D:"+ot(He.getUTCFullYear(),4)+ot(He.getUTCMonth(),2)+ot(He.getUTCDate(),2)+ot(He.getUTCHours(),2)+ot(He.getUTCMinutes(),2)+ot(He.getUTCSeconds(),2)+"Z)";if({}.toString.call(He)==="[object Object]"){for(at in qe=["<<"],He)lt=He[at],qe.push("/"+at+" "+Ne.convert(lt));return qe.push(">>"),qe.join(`
`)}return""+He},Ne}(),L.default=z}.call(this,r("yLpj"))},e4Nc:function(R,L,r){var y=r("fGT3"),f=r("k+1r"),x=r("JHgL"),A=r("pSRY"),m=r("H8j4");function p(d){var u=-1,a=d==null?0:d.length;for(this.clear();++u<a;){var i=d[u];this.set(i[0],i[1])}}p.prototype.clear=y,p.prototype.delete=f,p.prototype.get=x,p.prototype.has=A,p.prototype.set=m,R.exports=p},e5cp:function(R,L,r){var y=r("fmRc"),f=r("or5M"),x=r("HDyB"),A=r("seXi"),m=r("QqLw"),p=r("Z0cm"),d=r("DSRE"),u=r("c6wG"),a=1,i="[object Arguments]",t="[object Array]",s="[object Object]",e=Object.prototype,l=e.hasOwnProperty;function n(o,c,h,g,v,b){var S=p(o),E=p(c),C=S?t:m(o),_=E?t:m(c);C=C==i?s:C,_=_==i?s:_;var T=C==s,w=_==s,O=C==_;if(O&&d(o)){if(!d(c))return!1;S=!0,T=!1}if(O&&!T)return b||(b=new y),S||u(o)?f(o,c,h,g,v,b):x(o,c,C,h,g,v,b);if(!(h&a)){var I=T&&l.call(o,"__wrapped__"),k=w&&l.call(c,"__wrapped__");if(I||k){var M=I?o.value():o,U=k?c.value():c;return b||(b=new y),v(M,U,h,g,b)}}return O?(b||(b=new y),A(o,c,h,g,v,b)):!1}R.exports=n},e7zE:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("3y9D"),r("WYAk"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.Base,m=x.WordArray,p=f.algo,d=p.SHA1,u=p.HMAC,a=p.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:d,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,s){for(var e=this.cfg,l=u.create(e.hasher,t),n=m.create(),o=m.create([1]),c=n.words,h=o.words,g=e.keySize,v=e.iterations;c.length<g;){var b=l.update(s).finalize(o);l.reset();for(var S=b.words,E=S.length,C=b,_=1;_<v;_++){C=l.finalize(C),l.reset();for(var T=C.words,w=0;w<E;w++)S[w]^=T[w]}n.concat(b),h[0]++}return n.sigBytes=g*4,n}});f.PBKDF2=function(i,t,s){return a.create(s).compute(i,t)}}(),y.PBKDF2})},eIcI:function(R,L,r){var y=r("bYtY"),f=r("hM6l");function x(m,p,d){f.call(this,m,p,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(x,f);var A=x;R.exports=A},eJH7:function(R,L,r){var y=r("bYtY");function f(x){var A=x.polar;if(A){y.isArray(A)||(A=[A]);var m=[];y.each(A,function(p,d){p.indicator?(p.type&&!p.shape&&(p.shape=p.type),x.radar=x.radar||[],y.isArray(x.radar)||(x.radar=[x.radar]),x.radar.push(p)):m.push(p)}),x.polar=m}y.each(x.series,function(p){p&&p.type==="radar"&&p.polarIndex&&(p.radarIndex=p.polarIndex)})}R.exports=f},eP3c:function(R,L,r){"use strict";function y(Ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(te){return typeof te}:y=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},y(Ve)}Object.defineProperty(L,"__esModule",{value:!0}),L.inflateReset=le,L.inflateReset2=pe,L.inflateResetKeep=Se,L.inflateInit=tt,L.inflateInit2=_e,L.inflate=Ht,L.inflateEnd=dr,L.inflateGetHeader=Vt,L.inflateSetDictionary=Mt,L.inflateInfo=L.Z_DEFLATED=L.Z_BUF_ERROR=L.Z_MEM_ERROR=L.Z_DATA_ERROR=L.Z_STREAM_ERROR=L.Z_NEED_DICT=L.Z_STREAM_END=L.Z_OK=L.Z_TREES=L.Z_BLOCK=L.Z_FINISH=void 0;var f=a(r("6BzB")),x=d(r("xlC8")),A=d(r("QV2g")),m=d(r("sjKO")),p=d(r("JSwD"));function d(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function u(){if(typeof WeakMap!="function")return null;var Ve=new WeakMap;return u=function(){return Ve},Ve}function a(Ve){if(Ve&&Ve.__esModule)return Ve;if(Ve===null||y(Ve)!=="object"&&typeof Ve!="function")return{default:Ve};var me=u();if(me&&me.has(Ve))return me.get(Ve);var te={},Ze=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Xe in Ve)if(Object.prototype.hasOwnProperty.call(Ve,Xe)){var ue=Ze?Object.getOwnPropertyDescriptor(Ve,Xe):null;ue&&(ue.get||ue.set)?Object.defineProperty(te,Xe,ue):te[Xe]=Ve[Xe]}return te.default=Ve,me&&me.set(Ve,te),te}var i=0,t=1,s=2,e=4;L.Z_FINISH=e;var l=5;L.Z_BLOCK=l;var n=6;L.Z_TREES=n;var o=0;L.Z_OK=o;var c=1;L.Z_STREAM_END=c;var h=2;L.Z_NEED_DICT=h;var g=-2;L.Z_STREAM_ERROR=g;var v=-3;L.Z_DATA_ERROR=v;var b=-4;L.Z_MEM_ERROR=b;var S=-5;L.Z_BUF_ERROR=S;var E=8;L.Z_DEFLATED=E;var C=1,_=2,T=3,w=4,O=5,I=6,k=7,M=8,U=9,P=10,X=11,F=12,j=13,K=14,z=15,V=16,Q=17,G=18,ee=19,se=20,ye=21,he=22,ke=23,Pe=24,Ue=25,$e=26,Ge=27,ht=28,Fe=29,oe=30,rt=31,fe=32,J=852,Y=592,$=15,de=$;function we(Ve){return(Ve>>>24&255)+(Ve>>>8&65280)+((Ve&65280)<<8)+((Ve&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Se(Ve){var me;return!Ve||!Ve.state?g:(me=Ve.state,Ve.total_in=Ve.total_out=me.total=0,Ve.msg="",me.wrap&&(Ve.adler=me.wrap&1),me.mode=C,me.last=0,me.havedict=0,me.dmax=32768,me.head=null,me.hold=0,me.bits=0,me.lencode=me.lendyn=new f.Buf32(J),me.distcode=me.distdyn=new f.Buf32(Y),me.sane=1,me.back=-1,o)}function le(Ve){var me;return!Ve||!Ve.state?g:(me=Ve.state,me.wsize=0,me.whave=0,me.wnext=0,Se(Ve))}function pe(Ve,me){var te,Ze;return!Ve||!Ve.state?g:(Ze=Ve.state,me<0?(te=0,me=-me):(te=(me>>4)+1,me<48&&(me&=15)),me&&(me<8||me>15)?g:(Ze.window!==null&&Ze.wbits!==me&&(Ze.window=null),Ze.wrap=te,Ze.wbits=me,le(Ve)))}function _e(Ve,me){var te,Ze;return Ve?(Ze=new Ce,Ve.state=Ze,Ze.window=null,te=pe(Ve,me),te!==o&&(Ve.state=null),te):g}function tt(Ve){return _e(Ve,de)}var gt=!0,ct,je;function Zt(Ve){if(gt){var me;for(ct=new f.Buf32(512),je=new f.Buf32(32),me=0;me<144;)Ve.lens[me++]=8;for(;me<256;)Ve.lens[me++]=9;for(;me<280;)Ve.lens[me++]=7;for(;me<288;)Ve.lens[me++]=8;for((0,p.default)(t,Ve.lens,0,288,ct,0,Ve.work,{bits:9}),me=0;me<32;)Ve.lens[me++]=5;(0,p.default)(s,Ve.lens,0,32,je,0,Ve.work,{bits:5}),gt=!1}Ve.lencode=ct,Ve.lenbits=9,Ve.distcode=je,Ve.distbits=5}function ut(Ve,me,te,Ze){var Xe,ue=Ve.state;return ue.window===null&&(ue.wsize=1<<ue.wbits,ue.wnext=0,ue.whave=0,ue.window=new f.Buf8(ue.wsize)),Ze>=ue.wsize?(f.arraySet(ue.window,me,te-ue.wsize,ue.wsize,0),ue.wnext=0,ue.whave=ue.wsize):(Xe=ue.wsize-ue.wnext,Xe>Ze&&(Xe=Ze),f.arraySet(ue.window,me,te-Ze,Xe,ue.wnext),Ze-=Xe,Ze?(f.arraySet(ue.window,me,te-Ze,Ze,0),ue.wnext=Ze,ue.whave=ue.wsize):(ue.wnext+=Xe,ue.wnext===ue.wsize&&(ue.wnext=0),ue.whave<ue.wsize&&(ue.whave+=Xe))),0}function Ht(Ve,me){var te,Ze,Xe,ue,St,Qt,dt,Jt,$t,tn,kt,tr,Bt,ft,it=0,Or,an,En,Bn,vi,Ln,Mn,Xt,wt=new f.Buf8(4),De,Re,Me=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ve||!Ve.state||!Ve.output||!Ve.input&&Ve.avail_in!==0)return g;te=Ve.state,te.mode===F&&(te.mode=j),St=Ve.next_out,Xe=Ve.output,dt=Ve.avail_out,ue=Ve.next_in,Ze=Ve.input,Qt=Ve.avail_in,Jt=te.hold,$t=te.bits,tn=Qt,kt=dt,Xt=o;e:for(;;)switch(te.mode){case C:if(te.wrap===0){te.mode=j;break}for(;$t<16;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(te.wrap&2&&Jt===35615){te.check=0,wt[0]=Jt&255,wt[1]=Jt>>>8&255,te.check=(0,A.default)(te.check,wt,2,0),Jt=0,$t=0,te.mode=_;break}if(te.flags=0,te.head&&(te.head.done=!1),!(te.wrap&1)||(((Jt&255)<<8)+(Jt>>8))%31){Ve.msg="incorrect header check",te.mode=oe;break}if((Jt&15)!==E){Ve.msg="unknown compression method",te.mode=oe;break}if(Jt>>>=4,$t-=4,Mn=(Jt&15)+8,te.wbits===0)te.wbits=Mn;else if(Mn>te.wbits){Ve.msg="invalid window size",te.mode=oe;break}te.dmax=1<<Mn,Ve.adler=te.check=1,te.mode=Jt&512?P:F,Jt=0,$t=0;break;case _:for(;$t<16;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(te.flags=Jt,(te.flags&255)!==E){Ve.msg="unknown compression method",te.mode=oe;break}if(te.flags&57344){Ve.msg="unknown header flags set",te.mode=oe;break}te.head&&(te.head.text=Jt>>8&1),te.flags&512&&(wt[0]=Jt&255,wt[1]=Jt>>>8&255,te.check=(0,A.default)(te.check,wt,2,0)),Jt=0,$t=0,te.mode=T;case T:for(;$t<32;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.head&&(te.head.time=Jt),te.flags&512&&(wt[0]=Jt&255,wt[1]=Jt>>>8&255,wt[2]=Jt>>>16&255,wt[3]=Jt>>>24&255,te.check=(0,A.default)(te.check,wt,4,0)),Jt=0,$t=0,te.mode=w;case w:for(;$t<16;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.head&&(te.head.xflags=Jt&255,te.head.os=Jt>>8),te.flags&512&&(wt[0]=Jt&255,wt[1]=Jt>>>8&255,te.check=(0,A.default)(te.check,wt,2,0)),Jt=0,$t=0,te.mode=O;case O:if(te.flags&1024){for(;$t<16;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.length=Jt,te.head&&(te.head.extra_len=Jt),te.flags&512&&(wt[0]=Jt&255,wt[1]=Jt>>>8&255,te.check=(0,A.default)(te.check,wt,2,0)),Jt=0,$t=0}else te.head&&(te.head.extra=null);te.mode=I;case I:if(te.flags&1024&&(tr=te.length,tr>Qt&&(tr=Qt),tr&&(te.head&&(Mn=te.head.extra_len-te.length,te.head.extra||(te.head.extra=new Array(te.head.extra_len)),f.arraySet(te.head.extra,Ze,ue,tr,Mn)),te.flags&512&&(te.check=(0,A.default)(te.check,Ze,tr,ue)),Qt-=tr,ue+=tr,te.length-=tr),te.length))break e;te.length=0,te.mode=k;case k:if(te.flags&2048){if(Qt===0)break e;tr=0;do Mn=Ze[ue+tr++],te.head&&Mn&&te.length<65536&&(te.head.name+=String.fromCharCode(Mn));while(Mn&&tr<Qt);if(te.flags&512&&(te.check=(0,A.default)(te.check,Ze,tr,ue)),Qt-=tr,ue+=tr,Mn)break e}else te.head&&(te.head.name=null);te.length=0,te.mode=M;case M:if(te.flags&4096){if(Qt===0)break e;tr=0;do Mn=Ze[ue+tr++],te.head&&Mn&&te.length<65536&&(te.head.comment+=String.fromCharCode(Mn));while(Mn&&tr<Qt);if(te.flags&512&&(te.check=(0,A.default)(te.check,Ze,tr,ue)),Qt-=tr,ue+=tr,Mn)break e}else te.head&&(te.head.comment=null);te.mode=U;case U:if(te.flags&512){for(;$t<16;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(Jt!==(te.check&65535)){Ve.msg="header crc mismatch",te.mode=oe;break}Jt=0,$t=0}te.head&&(te.head.hcrc=te.flags>>9&1,te.head.done=!0),Ve.adler=te.check=0,te.mode=F;break;case P:for(;$t<32;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}Ve.adler=te.check=we(Jt),Jt=0,$t=0,te.mode=X;case X:if(te.havedict===0)return Ve.next_out=St,Ve.avail_out=dt,Ve.next_in=ue,Ve.avail_in=Qt,te.hold=Jt,te.bits=$t,h;Ve.adler=te.check=1,te.mode=F;case F:if(me===l||me===n)break e;case j:if(te.last){Jt>>>=$t&7,$t-=$t&7,te.mode=Ge;break}for(;$t<3;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.last=Jt&1,Jt>>>=1,$t-=1;switch(Jt&3){case 0:te.mode=K;break;case 1:if(Zt(te),te.mode=se,me===n){Jt>>>=2,$t-=2;break e}break;case 2:te.mode=Q;break;case 3:Ve.msg="invalid block type",te.mode=oe}Jt>>>=2,$t-=2;break;case K:for(Jt>>>=$t&7,$t-=$t&7;$t<32;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if((Jt&65535)!==(Jt>>>16^65535)){Ve.msg="invalid stored block lengths",te.mode=oe;break}if(te.length=Jt&65535,Jt=0,$t=0,te.mode=z,me===n)break e;case z:te.mode=V;case V:if(tr=te.length,tr){if(tr>Qt&&(tr=Qt),tr>dt&&(tr=dt),tr===0)break e;f.arraySet(Xe,Ze,ue,tr,St),Qt-=tr,ue+=tr,dt-=tr,St+=tr,te.length-=tr;break}te.mode=F;break;case Q:for(;$t<14;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(te.nlen=(Jt&31)+257,Jt>>>=5,$t-=5,te.ndist=(Jt&31)+1,Jt>>>=5,$t-=5,te.ncode=(Jt&15)+4,Jt>>>=4,$t-=4,te.nlen>286||te.ndist>30){Ve.msg="too many length or distance symbols",te.mode=oe;break}te.have=0,te.mode=G;case G:for(;te.have<te.ncode;){for(;$t<3;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.lens[Me[te.have++]]=Jt&7,Jt>>>=3,$t-=3}for(;te.have<19;)te.lens[Me[te.have++]]=0;if(te.lencode=te.lendyn,te.lenbits=7,De={bits:te.lenbits},Xt=(0,p.default)(i,te.lens,0,19,te.lencode,0,te.work,De),te.lenbits=De.bits,Xt){Ve.msg="invalid code lengths set",te.mode=oe;break}te.have=0,te.mode=ee;case ee:for(;te.have<te.nlen+te.ndist;){for(;!(it=te.lencode[Jt&(1<<te.lenbits)-1],Or=it>>>24,an=it>>>16&255,En=it&65535,Or<=$t);){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(En<16)Jt>>>=Or,$t-=Or,te.lens[te.have++]=En;else{if(En===16){for(Re=Or+2;$t<Re;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(Jt>>>=Or,$t-=Or,te.have===0){Ve.msg="invalid bit length repeat",te.mode=oe;break}Mn=te.lens[te.have-1],tr=3+(Jt&3),Jt>>>=2,$t-=2}else if(En===17){for(Re=Or+3;$t<Re;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}Jt>>>=Or,$t-=Or,Mn=0,tr=3+(Jt&7),Jt>>>=3,$t-=3}else{for(Re=Or+7;$t<Re;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}Jt>>>=Or,$t-=Or,Mn=0,tr=11+(Jt&127),Jt>>>=7,$t-=7}if(te.have+tr>te.nlen+te.ndist){Ve.msg="invalid bit length repeat",te.mode=oe;break}for(;tr--;)te.lens[te.have++]=Mn}}if(te.mode===oe)break;if(te.lens[256]===0){Ve.msg="invalid code -- missing end-of-block",te.mode=oe;break}if(te.lenbits=9,De={bits:te.lenbits},Xt=(0,p.default)(t,te.lens,0,te.nlen,te.lencode,0,te.work,De),te.lenbits=De.bits,Xt){Ve.msg="invalid literal/lengths set",te.mode=oe;break}if(te.distbits=6,te.distcode=te.distdyn,De={bits:te.distbits},Xt=(0,p.default)(s,te.lens,te.nlen,te.ndist,te.distcode,0,te.work,De),te.distbits=De.bits,Xt){Ve.msg="invalid distances set",te.mode=oe;break}if(te.mode=se,me===n)break e;case se:te.mode=ye;case ye:if(Qt>=6&&dt>=258){Ve.next_out=St,Ve.avail_out=dt,Ve.next_in=ue,Ve.avail_in=Qt,te.hold=Jt,te.bits=$t,(0,m.default)(Ve,kt),St=Ve.next_out,Xe=Ve.output,dt=Ve.avail_out,ue=Ve.next_in,Ze=Ve.input,Qt=Ve.avail_in,Jt=te.hold,$t=te.bits,te.mode===F&&(te.back=-1);break}for(te.back=0;!(it=te.lencode[Jt&(1<<te.lenbits)-1],Or=it>>>24,an=it>>>16&255,En=it&65535,Or<=$t);){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(an&&(an&240)===0){for(Bn=Or,vi=an,Ln=En;!(it=te.lencode[Ln+((Jt&(1<<Bn+vi)-1)>>Bn)],Or=it>>>24,an=it>>>16&255,En=it&65535,Bn+Or<=$t);){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}Jt>>>=Bn,$t-=Bn,te.back+=Bn}if(Jt>>>=Or,$t-=Or,te.back+=Or,te.length=En,an===0){te.mode=$e;break}if(an&32){te.back=-1,te.mode=F;break}if(an&64){Ve.msg="invalid literal/length code",te.mode=oe;break}te.extra=an&15,te.mode=he;case he:if(te.extra){for(Re=te.extra;$t<Re;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.length+=Jt&(1<<te.extra)-1,Jt>>>=te.extra,$t-=te.extra,te.back+=te.extra}te.was=te.length,te.mode=ke;case ke:for(;!(it=te.distcode[Jt&(1<<te.distbits)-1],Or=it>>>24,an=it>>>16&255,En=it&65535,Or<=$t);){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if((an&240)===0){for(Bn=Or,vi=an,Ln=En;!(it=te.distcode[Ln+((Jt&(1<<Bn+vi)-1)>>Bn)],Or=it>>>24,an=it>>>16&255,En=it&65535,Bn+Or<=$t);){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}Jt>>>=Bn,$t-=Bn,te.back+=Bn}if(Jt>>>=Or,$t-=Or,te.back+=Or,an&64){Ve.msg="invalid distance code",te.mode=oe;break}te.offset=En,te.extra=an&15,te.mode=Pe;case Pe:if(te.extra){for(Re=te.extra;$t<Re;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}te.offset+=Jt&(1<<te.extra)-1,Jt>>>=te.extra,$t-=te.extra,te.back+=te.extra}if(te.offset>te.dmax){Ve.msg="invalid distance too far back",te.mode=oe;break}te.mode=Ue;case Ue:if(dt===0)break e;if(tr=kt-dt,te.offset>tr){if(tr=te.offset-tr,tr>te.whave&&te.sane){Ve.msg="invalid distance too far back",te.mode=oe;break}tr>te.wnext?(tr-=te.wnext,Bt=te.wsize-tr):Bt=te.wnext-tr,tr>te.length&&(tr=te.length),ft=te.window}else ft=Xe,Bt=St-te.offset,tr=te.length;tr>dt&&(tr=dt),dt-=tr,te.length-=tr;do Xe[St++]=ft[Bt++];while(--tr);te.length===0&&(te.mode=ye);break;case $e:if(dt===0)break e;Xe[St++]=te.length,dt--,te.mode=ye;break;case Ge:if(te.wrap){for(;$t<32;){if(Qt===0)break e;Qt--,Jt|=Ze[ue++]<<$t,$t+=8}if(kt-=dt,Ve.total_out+=kt,te.total+=kt,kt&&(Ve.adler=te.check=te.flags?(0,A.default)(te.check,Xe,kt,St-kt):(0,x.default)(te.check,Xe,kt,St-kt)),kt=dt,(te.flags?Jt:we(Jt))!==te.check){Ve.msg="incorrect data check",te.mode=oe;break}Jt=0,$t=0}te.mode=ht;case ht:if(te.wrap&&te.flags){for(;$t<32;){if(Qt===0)break e;Qt--,Jt+=Ze[ue++]<<$t,$t+=8}if(Jt!==(te.total&4294967295)){Ve.msg="incorrect length check",te.mode=oe;break}Jt=0,$t=0}te.mode=Fe;case Fe:Xt=c;break e;case oe:Xt=v;break e;case rt:return b;case fe:default:return g}return Ve.next_out=St,Ve.avail_out=dt,Ve.next_in=ue,Ve.avail_in=Qt,te.hold=Jt,te.bits=$t,(te.wsize||kt!==Ve.avail_out&&te.mode<oe&&(te.mode<Ge||me!==e))&&ut(Ve,Ve.output,Ve.next_out,kt-Ve.avail_out)?(te.mode=rt,b):(tn-=Ve.avail_in,kt-=Ve.avail_out,Ve.total_in+=tn,Ve.total_out+=kt,te.total+=kt,te.wrap&&kt&&(Ve.adler=te.check=te.flags?(0,A.default)(te.check,Xe,kt,Ve.next_out-kt):(0,x.default)(te.check,Xe,kt,Ve.next_out-kt)),Ve.data_type=te.bits+(te.last?64:0)+(te.mode===F?128:0)+(te.mode===se||te.mode===z?256:0),(tn===0&&kt===0||me===e)&&Xt===o&&(Xt=S),Xt)}function dr(Ve){if(!Ve||!Ve.state)return g;var me=Ve.state;return me.window&&(me.window=null),Ve.state=null,o}function Vt(Ve,me){var te;return!Ve||!Ve.state?g:(te=Ve.state,(te.wrap&2)===0?g:(te.head=me,me.done=!1,o))}function Mt(Ve,me){var te=me.length,Ze,Xe,ue;return!Ve||!Ve.state?g:(Ze=Ve.state,Ze.wrap!==0&&Ze.mode!==X?g:Ze.mode===X&&(Xe=1,Xe=(0,x.default)(Xe,me,te,0),Xe!==Ze.check)?v:(ue=ut(Ve,me,te,te),ue?(Ze.mode=rt,b):(Ze.havedict=1,o)))}var Gt="pako inflate (from Nodeca project)";L.inflateInfo=Gt},ePAk:function(R,L,r){var y=r("ProS");r("2fGM");var f=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(x){var A,m=this.ecModel;return m.eachComponent(x,function(p){p.getCoordSysModel()===this&&(A=p)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});R.exports=f},eRkO:function(R,L,r){var y=r("+TT/"),f=y.getLayoutRect,x=y.box,A=y.positionElement,m=r("7aKB"),p=r("IwbS");function d(a,i,t){var s=i.getBoxLayoutParams(),e=i.get("padding"),l={width:t.getWidth(),height:t.getHeight()},n=f(s,l,e);x(i.get("orient"),a,i.get("itemGap"),n.width,n.height),A(a,s,l,e)}function u(a,i){var t=m.normalizeCssArray(i.get("padding")),s=i.getItemStyle(["color","opacity"]);s.fill=i.get("backgroundColor");var a=new p.Rect({shape:{x:a.x-t[3],y:a.y-t[0],width:a.width+t[1]+t[3],height:a.height+t[0]+t[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1});return a}L.layout=d,L.makeBackground=u},eS4l:function(R,L,r){r("HM/N"),r("FNN5")},eUgh:function(R,L){function r(y,f){for(var x=-1,A=y==null?0:y.length,m=Array(A);++x<A;)m[x]=f(y[x],x,y);return m}R.exports=r},ebwN:function(R,L,r){var y=r("Cwc5"),f=r("Kz5y"),x=y(f,"Map");R.exports=x},ekgI:function(R,L,r){var y=r("YESw"),f=Object.prototype,x=f.hasOwnProperty;function A(m){var p=this.__data__;return y?p[m]!==void 0:x.call(p,m)}R.exports=A},eokw:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("b8jI"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},ewwo:function(R,L,r){var y=r("bMXI"),f=r("+TT/"),x=f.getLayoutRect,A=r("4mN7");function m(d,u,a){var i=d.getBoxLayoutParams();return i.aspect=a,x(i,{width:u.getWidth(),height:u.getHeight()})}function p(d,u){var a=[];return d.eachSeriesByType("graph",function(i){var t=i.get("coordinateSystem");if(!t||t==="view"){var s=i.getData(),e=s.mapArray(function(E){var C=s.getItemModel(E);return[+C.get("x"),+C.get("y")]}),l=[],n=[];A.fromPoints(e,l,n),n[0]-l[0]===0&&(n[0]+=1,l[0]-=1),n[1]-l[1]===0&&(n[1]+=1,l[1]-=1);var o=(n[0]-l[0])/(n[1]-l[1]),c=m(i,u,o);isNaN(o)&&(l=[c.x,c.y],n=[c.x+c.width,c.y+c.height]);var h=n[0]-l[0],g=n[1]-l[1],v=c.width,b=c.height,S=i.coordinateSystem=new y;S.zoomLimit=i.get("scaleLimit"),S.setBoundingRect(l[0],l[1],h,g),S.setViewRect(c.x,c.y,v,b),S.setCenter(i.get("center")),S.setZoom(i.get("zoom")),a.push(S)}}),a}R.exports=p},f1nB:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("bYtY"),m=r("4NO4"),p=r("IwbS"),d=r("+TT/"),u=r("OELB"),a=u.parsePercent,i={path:null,compoundPath:null,group:p.Group,image:p.Image,text:p.Text};x.registerPreprocessor(function(v){var b=v.graphic;A.isArray(b)?!b[0]||!b[0].elements?v.graphic=[{elements:b}]:v.graphic=[v.graphic[0]]:b&&!b.elements&&(v.graphic=[{elements:[b]}])});var t=x.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(v){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(v,b){var S=this.option,E=(b?S:v).elements,C=S.elements=b?[]:S.elements,_=[];this._flatten(E,_);var T=m.mappingToExists(C,_);m.makeIdAndName(T);var w=this._elOptionsToUpdate=[];A.each(T,function(I,k){var M=I.option;if(!M)return;w.push(M),o(I,M),c(C,k,M),h(C[k],M)},this);for(var O=C.length-1;O>=0;O--)C[O]==null?C.splice(O,1):delete C[O].$action},_flatten:function(v,b,S){A.each(v,function(E){if(!E)return;S&&(E.parentOption=S),b.push(E);var C=E.children;E.type==="group"&&C&&this._flatten(C,b,E),delete E.children},this)},useElOptionsToUpdate:function(){var v=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,v}});x.extendComponentView({type:"graphic",init:function(v,b){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(v,b,S){v!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=v,this._updateElements(v),this._relocate(v,S)},_updateElements:function(v){var b=v.useElOptionsToUpdate();if(!b)return;var S=this._elMap,E=this.group;A.each(b,function(C){var _=C.$action,T=C.id,w=S.get(T),O=C.parentId,I=O!=null?S.get(O):E,k=C.style;C.type==="text"&&k&&(C.hv&&C.hv[1]&&(k.textVerticalAlign=k.textBaseline=null),!k.hasOwnProperty("textFill")&&k.fill&&(k.textFill=k.fill),!k.hasOwnProperty("textStroke")&&k.stroke&&(k.textStroke=k.stroke));var M=l(C);!_||_==="merge"?w?w.attr(M):s(T,I,M,S):_==="replace"?(e(w,S),s(T,I,M,S)):_==="remove"&&e(w,S);var U=S.get(T);U&&(U.__ecGraphicWidthOption=C.width,U.__ecGraphicHeightOption=C.height,g(U,v,C))})},_relocate:function(v,b){for(var S=v.option.elements,E=this.group,C=this._elMap,_=b.getWidth(),T=b.getHeight(),w=0;w<S.length;w++){var O=S[w],I=C.get(O.id);if(!I||!I.isGroup)continue;var k=I.parent,M=k===E;I.__ecGraphicWidth=a(I.__ecGraphicWidthOption,M?_:k.__ecGraphicWidth)||0,I.__ecGraphicHeight=a(I.__ecGraphicHeightOption,M?T:k.__ecGraphicHeight)||0}for(var w=S.length-1;w>=0;w--){var O=S[w],I=C.get(O.id);if(!I)continue;var k=I.parent,U=k===E?{width:_,height:T}:{width:k.__ecGraphicWidth,height:k.__ecGraphicHeight};d.positionElement(I,O,U,null,{hv:O.hv,boundingMode:O.bounding})}},_clear:function(){var v=this._elMap;v.each(function(b){e(b,v)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function s(v,b,S,E){var C=S.type,_=i.hasOwnProperty(C)?i[C]:p.getShapeClass(C),T=new _(S);b.add(T),E.set(v,T),T.__ecGraphicId=v}function e(v,b){var S=v&&v.parent;S&&(v.type==="group"&&v.traverse(function(E){e(E,b)}),b.removeKey(v.__ecGraphicId),S.remove(v))}function l(v){return v=A.extend({},v),A.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete v[b]}),v}function n(v,b){var S;return A.each(b,function(E){v[E]!=null&&v[E]!=="auto"&&(S=!0)}),S}function o(v,b){var S=v.exist;if(b.id=v.keyInfo.id,!b.type&&S&&(b.type=S.type),b.parentId==null){var E=b.parentOption;E?b.parentId=E.id:S&&(b.parentId=S.parentId)}b.parentOption=null}function c(v,b,S){var E=A.extend({},S),C=v[b],_=S.$action||"merge";_==="merge"?C?(A.merge(C,E,!0),d.mergeLayoutParam(C,E,{ignoreSize:!0}),d.copyLayoutParams(S,C)):v[b]=E:_==="replace"?v[b]=E:_==="remove"&&(C&&(v[b]=null))}function h(v,b){if(!v)return;v.hv=b.hv=[n(b,["left","right"]),n(b,["top","bottom"])],v.type==="group"&&(v.width==null&&(v.width=b.width=0),v.height==null&&(v.height=b.height=0))}function g(v,b,S){var E=v.eventData;!v.silent&&!v.ignore&&!E&&(E=v.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:v.name}),E&&(E.info=v.info)}},f3JH:function(R,L,r){r("aTJb"),r("OlYY"),r("fc+c"),r("oY9F"),r("MqEG"),r("LBfv"),r("noeP")},f5HG:function(R,L,r){var y=r("IwbS"),f=r("QBsz"),x=y.Line.prototype,A=y.BezierCurve.prototype;function m(d){return isNaN(+d.cpx1)||isNaN(+d.cpy1)}var p=y.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(d,u){this[m(u)?"_buildPathLine":"_buildPathCurve"](d,u)},_buildPathLine:x.buildPath,_buildPathCurve:A.buildPath,pointAt:function(d){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:x.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(d){var u=this.shape,a=m(u)?[u.x2-u.x1,u.y2-u.y1]:this._tangentAtCurve(d);return f.normalize(a,a)},_tangentAtCurve:A.tangentAt});R.exports=p},f5Yq:function(R,L,r){var y=r("bYtY"),f=y.isFunction;function x(A,m,p){return{seriesType:A,performRawSeries:!0,reset:function(d,u,a){var i=d.getData(),t=d.get("symbol"),s=d.get("symbolSize"),e=d.get("symbolKeepAspect"),l=d.get("symbolRotate"),n=f(t),o=f(s),c=f(l),h=n||o||c,g=!n&&t?t:m,v=o?null:s,b=c?null:b;if(i.setVisual({legendSymbol:p||g,symbol:g,symbolSize:v,symbolKeepAspect:e,symbolRotate:l}),u.isSeriesFiltered(d))return;function S(E,C){if(h){var _=d.getRawValue(C),T=d.getDataParams(C);n&&E.setItemVisual(C,"symbol",t(_,T)),o&&E.setItemVisual(C,"symbolSize",s(_,T)),c&&E.setItemVisual(C,"symbolRotate",l(_,T))}if(E.hasItemOption){var w=E.getItemModel(C),O=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),k=w.getShallow("symbolRotate",!0),M=w.getShallow("symbolKeepAspect",!0);O!=null&&E.setItemVisual(C,"symbol",O),I!=null&&E.setItemVisual(C,"symbolSize",I),k!=null&&E.setItemVisual(C,"symbolRotate",k),M!=null&&E.setItemVisual(C,"symbolKeepAspect",M)}}return{dataEach:i.hasItemOption||h?S:null}}}}R.exports=x},fE02:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("/IIm"),A=r("vZ6x"),m=r("b9oc"),p=r("72pK"),d=r("Kagy"),u=r("IUWy");r("3TkU");var a=d.toolbox.dataZoom,i=f.each,t="\0_ec_\0toolbox-dataZoom_";function s(g,v,b){(this._brushController=new x(b.getZr())).on("brush",f.bind(this._onBrush,this)).mount(),this._isZoomActive}s.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:f.clone(a.title)};var e=s.prototype;e.render=function(g,v,b,S){this.model=g,this.ecModel=v,this.api=b,c(g,v,this,S,b),o(g,v)},e.onclick=function(g,v,b){l[b].call(this)},e.remove=function(g,v){this._brushController.unmount()},e.dispose=function(g,v){this._brushController.dispose()};var l={zoom:function(){var g=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:g})},back:function(){this._dispatchZoomAction(m.pop(this.ecModel))}};e._onBrush=function(g,v){if(!v.isEnd||!g.length)return;var b={},S=this.ecModel;this._brushController.updateCovers([]);var E=new A(n(this.model.option),S,{include:["grid"]});E.matchOutputRanges(g,S,function(T,w,O){if(O.type!=="cartesian2d")return;var I=T.brushType;I==="rect"?(C("x",O,w[0]),C("y",O,w[1])):C({lineX:"x",lineY:"y"}[I],O,w)}),m.push(S,b),this._dispatchZoomAction(b);function C(T,w,O){var I=w.getAxis(T),k=I.model,M=_(T,k,S),U=M.findRepresentativeAxisProxy(k).getMinMaxSpan();(U.minValueSpan!=null||U.maxValueSpan!=null)&&(O=p(0,O.slice(),I.scale.getExtent(),0,U.minValueSpan,U.maxValueSpan)),M&&(b[M.id]={dataZoomId:M.id,startValue:O[0],endValue:O[1]})}function _(T,w,O){var I;return O.eachComponent({mainType:"dataZoom",subType:"select"},function(k){var M=k.getAxisModel(T,w.componentIndex);M&&(I=k)}),I}},e._dispatchZoomAction=function(g){var v=[];i(g,function(b,S){v.push(f.clone(b))}),v.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:v})};function n(g){var v={};return f.each(["xAxisIndex","yAxisIndex"],function(b){v[b]=g[b],v[b]==null&&(v[b]="all"),(v[b]===!1||v[b]==="none")&&(v[b]=[])}),v}function o(g,v){g.setIconStatus("back",m.count(v)>1?"emphasis":"normal")}function c(g,v,b,S,E){var C=b._isZoomActive;S&&S.type==="takeGlobalCursor"&&(C=S.key==="dataZoomSelect"?S.dataZoomSelectActive:!1),b._isZoomActive=C,g.setIconStatus("zoom",C?"emphasis":"normal");var _=new A(n(g.option),v,{include:["grid"]});b._brushController.setPanels(_.makePanelOpts(E,function(T){return T.xAxisDeclared&&!T.yAxisDeclared?"lineX":!T.xAxisDeclared&&T.yAxisDeclared?"lineY":"rect"})).enableBrush(C?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}u.register("dataZoom",s),y.registerPreprocessor(function(g){if(!g)return;var v=g.dataZoom||(g.dataZoom=[]);f.isArray(v)||(g.dataZoom=v=[v]);var b=g.toolbox;if(b&&(f.isArray(b)&&(b=b[0]),b&&b.feature)){var S=b.feature.dataZoom;E("xAxis",S),E("yAxis",S)}function E(_,T){if(!T)return;var w=_+"Index",O=T[w];O!=null&&O!=="all"&&!f.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),C(_,function(I,k){if(O!=null&&O!=="all"&&f.indexOf(O,k)===-1)return;var M={type:"select",$fromToolbox:!0,filterMode:T.filterMode||"filter",id:t+_+k};M[w]=k,v.push(M)})}function C(_,T){var w=g[_];f.isArray(w)||(w=w?[w]:[]),i(w,T)}});var h=s;R.exports=h},fGT3:function(R,L,r){var y=r("4kuk"),f=r("Xi7e"),x=r("ebwN");function A(){this.size=0,this.__data__={hash:new y,map:new(x||f),string:new y}}R.exports=A},"fR/l":function(R,L,r){var y=r("CH3K"),f=r("Z0cm");function x(A,m,p){var d=m(A);return f(A)?d:y(d,p(A))}R.exports=x},fW2E:function(R,L){var r={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(f,x,A){return r.hasOwnProperty(x)?A*=f.dpr:A}R.exports=y},"fc+c":function(R,L,r){var y=r("sS/r"),f=y.extend({type:"dataZoom",render:function(x,A,m,p){this.dataZoomModel=x,this.ecModel=A,this.api=m},getTargetCoordInfo:function(){var x=this.dataZoomModel,A=this.ecModel,m={};x.eachTargetAxis(function(d,u){var a=A.getComponent(d.axis,u);if(a){var i=a.getCoordSysModel();i&&p(i,a,m[i.mainType]||(m[i.mainType]=[]),i.componentIndex)}},this);function p(d,u,a,i){for(var t,s=0;s<a.length;s++)if(a[s].model===d){t=a[s];break}t||a.push(t={model:d,axisModels:[],coordIndex:i}),t.axisModels.push(u)}return m}});R.exports=f},fjKi:function(R,L,r){var y=r("ProS");r("Q7if"),r("jndi"),y.registerPreprocessor(function(f){f.markArea=f.markArea||{}})},"fk+n":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("wgjA")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="LeftOutlined";var i=A.forwardRef(a);L.default=i},fls0:function(R,L,r){var y=r("bYtY"),f=r("QBsz"),x=r("oVpE"),A=r("f5HG"),m=r("IwbS"),p=r("OELB"),d=p.round,u=["fromSymbol","toSymbol"];function a(c){return"_"+c+"Type"}function i(c,h,g){var v=h.getItemVisual(g,"color"),b=h.getItemVisual(g,c),S=h.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(S)||(S=[S,S]);var E=x.createSymbol(b,-S[0]/2,-S[1]/2,S[0],S[1],v);return E.name=c,E}function t(c){var h=new A({name:"line",subPixelOptimize:!0});return s(h.shape,c),h}function s(c,h){c.x1=h[0][0],c.y1=h[0][1],c.x2=h[1][0],c.y2=h[1][1],c.percent=1;var g=h[2];g?(c.cpx1=g[0],c.cpy1=g[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,h=c.childOfName("fromSymbol"),g=c.childOfName("toSymbol"),v=c.childOfName("label");if(!h&&!g&&v.ignore)return;for(var b=1,S=this.parent;S;)S.scale&&(b/=S.scale[0]),S=S.parent;var E=c.childOfName("line");if(!this.__dirty&&!E.__dirty)return;var C=E.shape.percent,_=E.pointAt(0),T=E.pointAt(C),w=f.sub([],T,_);if(f.normalize(w,w),h){h.attr("position",_);var O=E.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[b*C,b*C])}if(g){g.attr("position",T);var O=E.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),g.attr("scale",[b*C,b*C])}if(!v.ignore){v.attr("position",T);var I,k,M,U,P=v.__labelDistance,X=P[0]*b,F=P[1]*b,j=C/2,O=E.tangentAt(j),K=[O[1],-O[0]],z=E.pointAt(j);K[1]>0&&(K[0]=-K[0],K[1]=-K[1]);var V=O[0]<0?-1:1;if(v.__position!=="start"&&v.__position!=="end"){var Q=-Math.atan2(O[1],O[0]);T[0]<_[0]&&(Q=Math.PI+Q),v.attr("rotation",Q)}var G;switch(v.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-F,M="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=F,M="top";break;default:G=0,M="middle"}switch(v.__position){case"end":I=[w[0]*X+T[0],w[1]*F+T[1]],k=w[0]>.8?"left":w[0]<-.8?"right":"center",M=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*X+_[0],-w[1]*F+_[1]],k=w[0]>.8?"right":w[0]<-.8?"left":"center",M=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[X*V+_[0],_[1]+G],k=O[0]<0?"right":"left",U=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[z[0],z[1]+G],k="center",U=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-X*V+T[0],T[1]+G],k=O[0]>=0?"right":"left",U=[X*V,-G];break}v.attr({style:{textVerticalAlign:v.__verticalAlign||M,textAlign:v.__textAlign||k},position:I,scale:[b,b],origin:U})}}function l(c,h,g){m.Group.call(this),this._createLine(c,h,g)}var n=l.prototype;n.beforeUpdate=e,n._createLine=function(c,h,g){var v=c.hostModel,b=c.getItemLayout(h),S=t(b);S.shape.percent=0,m.initProps(S,{shape:{percent:1}},v,h),this.add(S);var E=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(E),y.each(u,function(C){var _=i(C,c,h);this.add(_),this[a(C)]=c.getItemVisual(h,C)},this),this._updateCommonStl(c,h,g)},n.updateData=function(c,h,g){var v=c.hostModel,b=this.childOfName("line"),S=c.getItemLayout(h),E={shape:{}};s(E.shape,S),m.updateProps(b,E,v,h),y.each(u,function(C){var _=c.getItemVisual(h,C),T=a(C);if(this[T]!==_){this.remove(this.childOfName(C));var w=i(C,c,h);this.add(w)}this[T]=_},this),this._updateCommonStl(c,h,g)},n._updateCommonStl=function(c,h,g){var v=c.hostModel,b=this.childOfName("line"),S=g&&g.lineStyle,E=g&&g.hoverLineStyle,C=g&&g.labelModel,_=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var T=c.getItemModel(h);S=T.getModel("lineStyle").getLineStyle(),E=T.getModel("emphasis.lineStyle").getLineStyle(),C=T.getModel("label"),_=T.getModel("emphasis.label")}var w=c.getItemVisual(h,"color"),O=y.retrieve3(c.getItemVisual(h,"opacity"),S.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:O},S)),b.hoverStyle=E,y.each(u,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(w),Q.setStyle({opacity:O}))},this);var I=C.getShallow("show"),k=_.getShallow("show"),M=this.childOfName("label"),U,P;if((I||k)&&(U=w||"#000",P=v.getFormattedLabel(h,"normal",c.dataType),P==null)){var X=v.getRawValue(h);P=X==null?c.getName(h):isFinite(X)?d(X):X}var F=I?P:null,j=k?y.retrieve2(v.getFormattedLabel(h,"emphasis",c.dataType),P):null,K=M.style;if(F!=null||j!=null){m.setTextStyle(M.style,C,{text:F},{autoColor:U}),M.__textAlign=K.textAlign,M.__verticalAlign=K.textVerticalAlign,M.__position=C.get("position")||"middle";var z=C.get("distance");y.isArray(z)||(z=[z,z]),M.__labelDistance=z}j!=null?M.hoverStyle={text:j,textFill:_.getTextColor(!0),fontStyle:_.getShallow("fontStyle"),fontWeight:_.getShallow("fontWeight"),fontSize:_.getShallow("fontSize"),fontFamily:_.getShallow("fontFamily")}:M.hoverStyle={text:null},M.ignore=!I&&!k,m.setHoverStyle(this)},n.highlight=function(){this.trigger("emphasis")},n.downplay=function(){this.trigger("normal")},n.updateLayout=function(c,h){this.setLinePoints(c.getItemLayout(h))},n.setLinePoints=function(c){var h=this.childOfName("line");s(h.shape,c),h.dirty()},y.inherits(l,m.Group);var o=l;R.exports=o},fmMI:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.each,m=x.filter,p=x.map,d=x.isArray,u=x.indexOf,a=x.isObject,i=x.isString,t=x.createHashMap,s=x.assert,e=x.clone,l=x.merge,n=x.extend,o=x.mixin,c=r("4NO4"),h=r("Qxkt"),g=r("bLfw"),v=r("iXHM"),b=r("5Hur"),S=r("D5nY"),E=S.resetSourceDefaulter,C="\0_ec_inner",_=h.extend({init:function(F,j,K,z){K=K||{},this.option=null,this._theme=new h(K),this._optionManager=z},setOption:function(F,j){s(!(C in F),"please use chart.getOption()"),this._optionManager.setOption(F,j),this.resetOption(null)},resetOption:function(F){var j=!1,K=this._optionManager;if(!F||F==="recreate"){var z=K.mountOption(F==="recreate");!this.option||F==="recreate"?O.call(this,z):(this.restoreData(),this.mergeOption(z)),j=!0}if((F==="timeline"||F==="media")&&this.restoreData(),!F||F==="recreate"||F==="timeline"){var V=K.getTimelineOption(this);V&&(this.mergeOption(V),j=!0)}if(!F||F==="recreate"||F==="media"){var Q=K.getMediaOption(this,this._api);Q.length&&A(Q,function(G){this.mergeOption(G,j=!0)},this)}return j},mergeOption:function(F){var j=this.option,K=this._componentsMap,z=[];E(this),A(F,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&z.push(G):j[G]=j[G]==null?e(Q):l(j[G],Q,!0)}),g.topologicalTravel(z,g.getAllClassMainTypes(),V,this);function V(Q,G){var ee=c.normalizeToArray(F[Q]),se=c.mappingToExists(K.get(Q),ee);c.makeIdAndName(se),A(se,function(he,ke){var Pe=he.option;a(Pe)&&(he.keyInfo.mainType=Q,he.keyInfo.subType=k(Q,Pe,he.exist))});var ye=I(K,G);j[Q]=[],K.set(Q,[]),A(se,function(he,ke){var Pe=he.exist,Ue=he.option;if(s(a(Ue)||Pe,"Empty component definition"),!Ue)Pe.mergeOption({},this),Pe.optionUpdated({},!1);else{var $e=g.getClass(Q,he.keyInfo.subType,!0);if(Pe&&Pe.constructor===$e)Pe.name=he.keyInfo.name,Pe.mergeOption(Ue,this),Pe.optionUpdated(Ue,!1);else{var Ge=n({dependentModels:ye,componentIndex:ke},he.keyInfo);Pe=new $e(Ue,this,this,Ge),n(Pe,Ge),Pe.init(Ue,this,this,Ge),Pe.optionUpdated(null,!0)}}K.get(Q)[ke]=Pe,j[Q][ke]=Pe.option},this),Q==="series"&&M(this,K.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var F=e(this.option);return A(F,function(j,K){if(g.hasClass(K)){for(var j=c.normalizeToArray(j),z=j.length-1;z>=0;z--)c.isIdInner(j[z])&&j.splice(z,1);F[K]=j}}),delete F[C],F},getTheme:function(){return this._theme},getComponent:function(F,j){var K=this._componentsMap.get(F);if(K)return K[j||0]},queryComponents:function(F){var j=F.mainType;if(!j)return[];var K=F.index,z=F.id,V=F.name,Q=this._componentsMap.get(j);if(!Q||!Q.length)return[];var G;if(K!=null)d(K)||(K=[K]),G=m(p(K,function(ye){return Q[ye]}),function(ye){return!!ye});else if(z!=null){var ee=d(z);G=m(Q,function(ye){return ee&&u(z,ye.id)>=0||!ee&&ye.id===z})}else if(V!=null){var se=d(V);G=m(Q,function(ye){return se&&u(V,ye.name)>=0||!se&&ye.name===V})}else G=Q.slice();return U(G,F)},findComponents:function(F){var j=F.query,K=F.mainType,z=Q(j),V=z?this.queryComponents(z):this._componentsMap.get(K);return G(U(V,F));function Q(ee){var se=K+"Index",ye=K+"Id",he=K+"Name";return ee&&(ee[se]!=null||ee[ye]!=null||ee[he]!=null)?{mainType:K,index:ee[se],id:ee[ye],name:ee[he]}:null}function G(ee){return F.filter?m(ee,F.filter):ee}},eachComponent:function(F,j,K){var z=this._componentsMap;if(typeof F=="function")K=j,j=F,z.each(function(Q,G){A(Q,function(ee,se){j.call(K,G,ee,se)})});else if(i(F))A(z.get(F),j,K);else if(a(F)){var V=this.findComponents(F);A(V,j,K)}},getSeriesByName:function(F){var j=this._componentsMap.get("series");return m(j,function(K){return K.name===F})},getSeriesByIndex:function(F){return this._componentsMap.get("series")[F]},getSeriesByType:function(F){var j=this._componentsMap.get("series");return m(j,function(K){return K.subType===F})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(F,j){P(this),A(this._seriesIndices,function(K){var z=this._componentsMap.get("series")[K];F.call(j,z,K)},this)},eachRawSeries:function(F,j){A(this._componentsMap.get("series"),F,j)},eachSeriesByType:function(F,j,K){P(this),A(this._seriesIndices,function(z){var V=this._componentsMap.get("series")[z];V.subType===F&&j.call(K,V,z)},this)},eachRawSeriesByType:function(F,j,K){return A(this.getSeriesByType(F),j,K)},isSeriesFiltered:function(F){return P(this),this._seriesIndicesMap.get(F.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(F,j){P(this);var K=m(this._componentsMap.get("series"),F,j);M(this,K)},restoreData:function(F){var j=this._componentsMap;M(this,j.get("series"));var K=[];j.each(function(z,V){K.push(V)}),g.topologicalTravel(K,g.getAllClassMainTypes(),function(z,V){A(j.get(z),function(Q){(z!=="series"||!T(Q,F))&&Q.restoreData()})})}});function T(F,j){if(j){var K=j.seiresIndex,z=j.seriesId,V=j.seriesName;return K!=null&&F.componentIndex!==K||z!=null&&F.id!==z||V!=null&&F.name!==V}}function w(F,j){var K=F.color&&!F.colorLayer;A(j,function(z,V){if(V==="colorLayer"&&K)return;g.hasClass(V)||(typeof z=="object"?F[V]=F[V]?l(F[V],z,!1):e(z):F[V]==null&&(F[V]=z))})}function O(F){F=F,this.option={},this.option[C]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(F,this._theme.option),l(F,v,!1),this.mergeOption(F)}function I(F,j){d(j)||(j=j?[j]:[]);var K={};return A(j,function(z){K[z]=(F.get(z)||[]).slice()}),K}function k(F,j,K){var z=j.type?j.type:K?K.subType:g.determineSubType(F,j);return z}function M(F,j){F._seriesIndicesMap=t(F._seriesIndices=p(j,function(K){return K.componentIndex})||[])}function U(F,j){return j.hasOwnProperty("subType")?m(F,function(K){return K.subType===j.subType}):F}function P(F){}o(_,b);var X=_;R.exports=X},fmRc:function(R,L,r){var y=r("Xi7e"),f=r("77Zs"),x=r("L8xA"),A=r("gCq4"),m=r("VaNO"),p=r("0Cz8");function d(u){var a=this.__data__=new y(u);this.size=a.size}d.prototype.clear=f,d.prototype.delete=x,d.prototype.get=A,d.prototype.has=m,d.prototype.set=p,R.exports=d},fo6e:function(R,L){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function y(f){return r.test(f)}R.exports=y},ftKO:function(R,L){var r="__lodash_hash_undefined__";function y(f){return this.__data__.set(f,r),this}R.exports=y},fyUT:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r.n(m),d=r("TSYQ"),u=r.n(d),a=r("Ff2n"),i=r("rePB"),t=r("1OyB"),s=r("vuIU"),e=r("Ji7U"),l=r("md7G"),n=r("foSv"),o=r("4IlW");function c(G,ee){var se=Object.keys(G);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(G);ee&&(ye=ye.filter(function(he){return Object.getOwnPropertyDescriptor(G,he).enumerable})),se.push.apply(se,ye)}return se}function h(G){for(var ee=1;ee<arguments.length;ee++){var se=arguments[ee]!=null?arguments[ee]:{};ee%2?c(Object(se),!0).forEach(function(ye){Object(i.a)(G,ye,se[ye])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(se)):c(Object(se)).forEach(function(ye){Object.defineProperty(G,ye,Object.getOwnPropertyDescriptor(se,ye))})}return G}function g(G){var ee=v();return function(){var ye=Object(n.a)(G),he;if(ee){var ke=Object(n.a)(this).constructor;he=Reflect.construct(ye,arguments,ke)}else he=ye.apply(this,arguments);return Object(l.a)(this,he)}}function v(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function b(){}function S(G){G.preventDefault()}var E=function(ee){return ee.replace(/[^\w.-]+/g,"")},C=200,_=600,T=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(ee){return ee!=null},O=function(ee,se){return se===ee||typeof se=="number"&&typeof ee=="number"&&isNaN(se)&&isNaN(ee)},I=function(G){Object(e.a)(se,G);var ee=g(se);function se(ye){var he;Object(t.a)(this,se),he=ee.call(this,ye),he.onKeyDown=function(Ue){var $e=he.props,Ge=$e.onKeyDown,ht=$e.onPressEnter;if(Ue.keyCode===o.a.UP){var Fe=he.getRatio(Ue);he.up(Ue,Fe,null),he.stop()}else if(Ue.keyCode===o.a.DOWN){var oe=he.getRatio(Ue);he.down(Ue,oe,null),he.stop()}else Ue.keyCode===o.a.ENTER&&ht&&ht(Ue);if(he.recordCursorPosition(),he.lastKeyCode=Ue.keyCode,Ge){for(var rt=arguments.length,fe=new Array(rt>1?rt-1:0),J=1;J<rt;J++)fe[J-1]=arguments[J];Ge.apply(void 0,[Ue].concat(fe))}},he.onKeyUp=function(Ue){var $e=he.props.onKeyUp;if(he.stop(),he.recordCursorPosition(),$e){for(var Ge=arguments.length,ht=new Array(Ge>1?Ge-1:0),Fe=1;Fe<Ge;Fe++)ht[Fe-1]=arguments[Fe];$e.apply(void 0,[Ue].concat(ht))}},he.onChange=function(Ue){var $e=he.props.onChange;he.state.focused&&(he.inputting=!0),he.rawInput=he.props.parser(he.getValueFromEvent(Ue)),he.setState({inputValue:he.rawInput}),$e(he.toNumber(he.rawInput))},he.onMouseUp=function(){var Ue=he.props.onMouseUp;he.recordCursorPosition(),Ue&&Ue.apply(void 0,arguments)},he.onFocus=function(){var Ue;he.setState({focused:!0}),(Ue=he.props).onFocus.apply(Ue,arguments)},he.onBlur=function(){var Ue=he.props.onBlur;he.inputting=!1,he.setState({focused:!1});var $e=he.getCurrentValidValue(he.state.inputValue),Ge=he.setValue($e,b);if(Ue){var ht=he.input.value,Fe=he.getInputDisplayValue({focus:!1,value:Ge});he.input.value=Fe&&Number(Fe),Ue.apply(void 0,arguments),he.input.value=ht}},he.getRatio=function(Ue){var $e=1;return Ue.metaKey||Ue.ctrlKey?$e=.1:Ue.shiftKey&&($e=10),$e},he.getFullNum=function(Ue){return isNaN(Ue)?Ue:/e/i.test(String(Ue))?Number(Ue).toFixed(18).replace(/\.?0+$/,""):Ue},he.getPrecision=function(Ue){if(w(he.props.precision))return he.props.precision;var $e=String(Ue);if($e.indexOf("e-")>=0)return parseInt($e.slice($e.indexOf("e-")+2),10);var Ge=0;return $e.indexOf(".")>=0&&(Ge=$e.length-$e.indexOf(".")-1),Ge},he.getInputDisplayValue=function(Ue){var $e=Ue||he.state,Ge=$e.focused,ht=$e.inputValue,Fe=$e.value,oe;Ge?oe=ht:oe=he.toPrecisionAsStep(Fe),oe==null&&(oe="");var rt=he.formatWrapper(oe);return w(he.props.decimalSeparator)&&(rt=rt.toString().replace(".",he.props.decimalSeparator)),rt},he.recordCursorPosition=function(){try{he.cursorStart=he.input.selectionStart,he.cursorEnd=he.input.selectionEnd,he.currentValue=he.input.value,he.cursorBefore=he.input.value.substring(0,he.cursorStart),he.cursorAfter=he.input.value.substring(he.cursorEnd)}catch(Ue){}},he.restoreByAfter=function(Ue){if(Ue===void 0)return!1;var $e=he.input.value,Ge=$e.lastIndexOf(Ue);if(Ge===-1)return!1;var ht=he.cursorBefore.length;return he.lastKeyCode===o.a.DELETE&&he.cursorBefore.charAt(ht-1)===Ue[0]?(he.fixCaret(ht,ht),!0):Ge+Ue.length===$e.length?(he.fixCaret(Ge,Ge),!0):!1},he.partRestoreByAfter=function(Ue){return Ue===void 0?!1:Array.prototype.some.call(Ue,function($e,Ge){var ht=Ue.substring(Ge);return he.restoreByAfter(ht)})},he.isNotCompleteNumber=function(Ue){return isNaN(Ue)||Ue===""||Ue===null||Ue&&Ue.toString().indexOf(".")===Ue.toString().length-1},he.stop=function(){he.autoStepTimer&&clearTimeout(he.autoStepTimer)},he.down=function(Ue,$e,Ge){he.pressingUpOrDown=!0,he.step("down",Ue,$e,Ge)},he.up=function(Ue,$e,Ge){he.pressingUpOrDown=!0,he.step("up",Ue,$e,Ge)},he.saveInput=function(Ue){he.input=Ue};var ke=ye.value;ke===void 0&&(ke=ye.defaultValue),he.state={focused:ye.autoFocus};var Pe=he.getValidValue(he.toNumber(ke));return he.state=h(h({},he.state),{},{inputValue:he.toPrecisionAsStep(Pe),value:Pe}),he}return Object(s.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(he){var ke=this.props,Pe=ke.value,Ue=ke.onChange,$e=ke.max,Ge=ke.min,ht=this.state.focused;if(he){if(!O(he.value,Pe)||!O(he.max,$e)||!O(he.min,Ge)){var Fe=ht?Pe:this.getValidValue(Pe),oe;this.pressingUpOrDown?oe=Fe:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep(Fe),this.setState({value:Fe,inputValue:oe})}var rt="value"in this.props?Pe:this.state.value;"max"in this.props&&he.max!==$e&&typeof rt=="number"&&rt>$e&&Ue&&Ue($e),"min"in this.props&&he.min!==Ge&&typeof rt=="number"&&rt<Ge&&Ue&&Ue(Ge)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var fe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===o.a.BACKSPACE?fe=this.cursorStart-1:this.lastKeyCode===o.a.DELETE&&(fe=this.cursorStart):fe=this.input.value.length,this.fixCaret(fe,fe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case o.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case o.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(J){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(he){var ke=he;return ke===""?ke="":this.isNotCompleteNumber(parseFloat(ke))?ke=this.state.value:ke=this.getValidValue(ke),this.toNumber(ke)}},{key:"getValueFromEvent",value:function(he){var ke=he.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(ke=ke.replace(this.props.decimalSeparator,".")),ke}},{key:"getValidValue",value:function(he){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Ue=parseFloat(he);return isNaN(Ue)?he:(Ue<ke&&(Ue=ke),Ue>Pe&&(Ue=Pe),Ue)}},{key:"setValue",value:function(he,ke){var Pe=this.props.precision,Ue=this.isNotCompleteNumber(parseFloat(he))?null:parseFloat(he),$e=this.state.value,Ge=$e===void 0?null:$e,ht=this.state.inputValue,Fe=ht===void 0?null:ht,oe=typeof Ue=="number"?Ue.toFixed(Pe):"".concat(Ue),rt=Ue!==Ge||oe!=="".concat(Fe);return"value"in this.props?(Fe=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Fe},ke)):this.setState({value:Ue,inputValue:this.toPrecisionAsStep(he)},ke),rt&&this.props.onChange(Ue),Ue}},{key:"getMaxPrecision",value:function(he){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=this.props,Ue=Pe.precision,$e=Pe.step;if(w(Ue))return Ue;var Ge=this.getPrecision(ke),ht=this.getPrecision($e),Fe=this.getPrecision(he);return he?Math.max(Fe,Ge+ht):Ge+ht}},{key:"getPrecisionFactor",value:function(he){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=this.getMaxPrecision(he,ke);return Math.pow(10,Pe)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(he){return this.props.formatter?this.props.formatter(he):he}},{key:"toPrecisionAsStep",value:function(he){if(this.isNotCompleteNumber(he)||he==="")return he;var ke=Math.abs(this.getMaxPrecision(he));return isNaN(ke)?he.toString():Number(he).toFixed(ke)}},{key:"toNumber",value:function(he){var ke=this.props.precision,Pe=this.state.focused,Ue=he&&he.length>16&&Pe;return this.isNotCompleteNumber(he)||Ue?he:w(ke)?Math.round(he*Math.pow(10,ke))/Math.pow(10,ke):Number(he)}},{key:"upStep",value:function(he,ke){var Pe=this.props.step,Ue=this.getPrecisionFactor(he,ke),$e=Math.abs(this.getMaxPrecision(he,ke)),Ge=((Ue*he+Ue*Pe*ke)/Ue).toFixed($e);return this.toNumber(Ge)}},{key:"downStep",value:function(he,ke){var Pe=this.props.step,Ue=this.getPrecisionFactor(he,ke),$e=Math.abs(this.getMaxPrecision(he,ke)),Ge=((Ue*he-Ue*Pe*ke)/Ue).toFixed($e);return this.toNumber(Ge)}},{key:"step",value:function(he,ke){var Pe=this,Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$e=arguments.length>3?arguments[3]:void 0;this.stop(),ke&&(ke.persist(),ke.preventDefault());var Ge=this.props;if(Ge.disabled)return;var ht=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ht))return;var Fe=this["".concat(he,"Step")](ht,Ue),oe=Fe>Ge.max||Fe<Ge.min;if(Fe>Ge.max?Fe=Ge.max:Fe<Ge.min&&(Fe=Ge.min),this.setValue(Fe,null),this.setState({focused:!0},function(){Pe.pressingUpOrDown=!1}),oe)return;this.autoStepTimer=setTimeout(function(){Pe[he](ke,Ue,!0)},$e?C:_)}},{key:"fixCaret",value:function(he,ke){if(he===void 0||ke===void 0||!this.input||!this.input.value)return;try{var Pe=this.input.selectionStart,Ue=this.input.selectionEnd;(he!==Pe||ke!==Ue)&&this.input.setSelectionRange(he,ke)}catch($e){}}},{key:"render",value:function(){var he,ke=this.props,Pe=ke.prefixCls,Ue=ke.disabled,$e=ke.readOnly,Ge=ke.useTouch,ht=ke.autoComplete,Fe=ke.upHandler,oe=ke.downHandler,rt=ke.className,fe=ke.max,J=ke.min,Y=ke.style,$=ke.title,de=ke.onMouseEnter,we=ke.onMouseLeave,Ce=ke.onMouseOver,Se=ke.onMouseOut,le=ke.required,pe=ke.onClick,_e=ke.tabIndex,tt=ke.type,gt=ke.placeholder,ct=ke.id,je=ke.inputMode,Zt=ke.pattern,ut=ke.step,Ht=ke.maxLength,dr=ke.autoFocus,Vt=ke.name,Mt=ke.onPaste,Gt=ke.onInput,Ve=Object(a.a)(ke,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),me=this.state,te=me.value,Ze=me.focused,Xe=u()(Pe,(he={},Object(i.a)(he,rt,!!rt),Object(i.a)(he,"".concat(Pe,"-disabled"),Ue),Object(i.a)(he,"".concat(Pe,"-focused"),Ze),he)),ue={};Object.keys(Ve).forEach(function(it){(it.substr(0,5)==="data-"||it.substr(0,5)==="aria-"||it==="role")&&(ue[it]=Ve[it])});var St=!$e&&!Ue,Qt=this.getInputDisplayValue(null),dt=(te||te===0)&&(isNaN(te)||Number(te)>=fe),Jt=(te||te===0)&&(isNaN(te)||Number(te)<=J),$t=dt||Ue||$e,tn=Jt||Ue||$e,kt=u()("".concat(Pe,"-handler"),"".concat(Pe,"-handler-up"),Object(i.a)({},"".concat(Pe,"-handler-up-disabled"),$t)),tr=u()("".concat(Pe,"-handler"),"".concat(Pe,"-handler-down"),Object(i.a)({},"".concat(Pe,"-handler-down-disabled"),tn)),Bt=Ge?{onTouchStart:$t?b:this.up,onTouchEnd:this.stop}:{onMouseDown:$t?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ft=Ge?{onTouchStart:tn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:tn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return p.a.createElement("div",{className:Xe,style:Y,title:$,onMouseEnter:de,onMouseLeave:we,onMouseOver:Ce,onMouseOut:Se,onFocus:function(){return null},onBlur:function(){return null}},p.a.createElement("div",{className:"".concat(Pe,"-handler-wrap")},p.a.createElement("span",Object.assign({unselectable:"on"},Bt,{role:"button","aria-label":"Increase Value","aria-disabled":$t,className:kt}),Fe||p.a.createElement("span",{unselectable:"on",className:"".concat(Pe,"-handler-up-inner"),onClick:S})),p.a.createElement("span",Object.assign({unselectable:"on"},ft,{role:"button","aria-label":"Decrease Value","aria-disabled":tn,className:tr}),oe||p.a.createElement("span",{unselectable:"on",className:"".concat(Pe,"-handler-down-inner"),onClick:S}))),p.a.createElement("div",{className:"".concat(Pe,"-input-wrap")},p.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":J,"aria-valuemax":fe,"aria-valuenow":te,required:le,type:tt,placeholder:gt,onPaste:Mt,onClick:pe,onMouseUp:this.onMouseUp,className:"".concat(Pe,"-input"),tabIndex:_e,autoComplete:ht,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:St?this.onKeyDown:b,onKeyUp:St?this.onKeyUp:b,autoFocus:dr,maxLength:Ht,readOnly:$e,disabled:Ue,max:fe,min:J,step:ut,name:Vt,title:$,id:ct,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Qt),pattern:Zt,inputMode:je,onInput:Gt},ue))))}}]),se}(p.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:T,min:-T,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var k=I,M=k,U=r("QDgn"),P=r.n(U),X=r("Ved0"),F=r.n(X),j=r("H84U"),K=r("3Nzz"),z=function(G,ee){var se={};for(var ye in G)Object.prototype.hasOwnProperty.call(G,ye)&&ee.indexOf(ye)<0&&(se[ye]=G[ye]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ye=Object.getOwnPropertySymbols(G);he<ye.length;he++)ee.indexOf(ye[he])<0&&Object.prototype.propertyIsEnumerable.call(G,ye[he])&&(se[ye[he]]=G[ye[he]]);return se},V=m.forwardRef(function(G,ee){var se=function(he){var ke=he.getPrefixCls,Pe=he.direction,Ue=G.className,$e=G.size,Ge=G.prefixCls,ht=G.readOnly,Fe=z(G,["className","size","prefixCls","readOnly"]),oe=ke("input-number",Ge),rt=m.createElement(P.a,{className:"".concat(oe,"-handler-up-inner")}),fe=m.createElement(F.a,{className:"".concat(oe,"-handler-down-inner")});return m.createElement(K.b.Consumer,null,function(J){var Y,$=$e||J,de=u()((Y={},A()(Y,"".concat(oe,"-lg"),$==="large"),A()(Y,"".concat(oe,"-sm"),$==="small"),A()(Y,"".concat(oe,"-rtl"),Pe==="rtl"),A()(Y,"".concat(oe,"-readonly"),ht),Y),Ue);return m.createElement(M,f()({ref:ee,className:de,upHandler:rt,downHandler:fe,prefixCls:oe,readOnly:ht},Fe))})};return m.createElement(j.a,null,se)});V.defaultProps={step:1};var Q=L.a=V},g0SD:function(R,L,r){var y=r("bYtY"),f=r("9wZj"),x=r("OELB"),A=r("YXkt"),m=r("kj2x"),p=r("iPDy");function d(i,t,s){var e=t.coordinateSystem;i.each(function(l){var n=i.getItemModel(l),o,c=x.parsePercent(n.get("x"),s.getWidth()),h=x.parsePercent(n.get("y"),s.getHeight());if(!isNaN(c)&&!isNaN(h))o=[c,h];else if(t.getMarkerPosition)o=t.getMarkerPosition(i.getValues(i.dimensions,l));else if(e){var g=i.get(e.dimensions[0],l),v=i.get(e.dimensions[1],l);o=e.dataToPoint([g,v])}isNaN(c)||(o[0]=c),isNaN(h)||(o[1]=h),i.setItemLayout(l,o)})}var u=p.extend({type:"markPoint",updateTransform:function(i,t,s){t.eachSeries(function(e){var l=e.markPointModel;l&&(d(l.getData(),e,s),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(i,t,s,e){var l=i.coordinateSystem,n=i.id,o=i.getData(),c=this.markerGroupMap,h=c.get(n)||c.set(n,new f),g=a(l,i,t);t.setData(g),d(t.getData(),i,e),g.each(function(v){var b=g.getItemModel(v),S=b.getShallow("symbol"),E=b.getShallow("symbolSize"),C=y.isFunction(S),_=y.isFunction(E);if(C||_){var T=t.getRawValue(v),w=t.getDataParams(v);C&&(S=S(T,w)),_&&(E=E(T,w))}g.setItemVisual(v,{symbol:S,symbolSize:E,color:b.get("itemStyle.color")||o.getVisual("color")})}),h.updateData(g),this.group.add(h.group),g.eachItemGraphicEl(function(v){v.traverse(function(b){b.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||i.get("silent")}});function a(i,t,s){var e;i?e=y.map(i&&i.dimensions,function(o){var c=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return y.defaults({name:o},c)}):e=[{name:"value",type:"float"}];var l=new A(e,s),n=y.map(s.get("data"),y.curry(m.dataTransform,t));return i&&(n=y.filter(n,y.curry(m.dataFilter,i))),l.initData(n,null,i?m.dimValueGetter:function(o){return o.value}),l}R.exports=u},g7p0:function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("+TT/"),A=x.getLayoutParams,m=x.sizeCalculable,p=x.mergeLayoutParam,d=f.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(i,t,s,e){var l=A(i);d.superApply(this,"init",arguments),u(i,l)},mergeOption:function(i,t){d.superApply(this,"mergeOption",arguments),u(this.option,i)}});function u(i,t){var s=i.cellSize;y.isArray(s)?s.length===1&&(s[1]=s[0]):s=i.cellSize=[s,s];var e=y.map([0,1],function(l){return m(t,l)&&(s[l]="auto"),s[l]!=null&&s[l]!=="auto"});p(i,t,{type:"box",ignoreSize:e})}var a=d;R.exports=a},g9YV:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("pED+"),A=r.n(x),m=r("+L6B"),p=r("R9oj"),d=r("7Kak"),u=r("sRBo"),a=r("qVdP"),i=r("T2oS"),t=r("DjyN"),s=r("5Dmo")},gCq4:function(R,L){function r(y){return this.__data__.get(y)}R.exports=r},gGsP:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("m546")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CopyOutlined";var i=A.forwardRef(a);L.default=i},gIYZ:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};L.default=y},gKaM:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};L.default=y},gPAo:function(R,L){function r(A){return A}function y(A,m,p,d,u){this._old=A,this._new=m,this._oldKeyGetter=p||r,this._newKeyGetter=d||r,this.context=u}y.prototype={constructor:y,add:function(A){return this._add=A,this},update:function(A){return this._update=A,this},remove:function(A){return this._remove=A,this},execute:function(){var A=this._old,m=this._new,p={},d={},u=[],a=[],i;for(f(A,p,u,"_oldKeyGetter",this),f(m,d,a,"_newKeyGetter",this),i=0;i<A.length;i++){var t=u[i],s=d[t];if(s!=null){var e=s.length;e?(e===1&&(d[t]=null),s=s.shift()):d[t]=null,this._update&&this._update(s,i)}else this._remove&&this._remove(i)}for(var i=0;i<a.length;i++){var t=a[i];if(d.hasOwnProperty(t)){var s=d[t];if(s==null)continue;if(!s.length)this._add&&this._add(s);else for(var l=0,e=s.length;l<e;l++)this._add&&this._add(s[l])}}}};function f(A,m,p,d,u){for(var a=0;a<A.length;a++){var i="_ec_"+u[d](A[a],a),t=m[i];t==null?(p.push(i),m[i]=a):(t.length||(m[i]=t=[t]),t.push(a))}}var x=y;R.exports=x},gQMU:function(R,L,r){var y=r("0ZTe"),f=y("toUpperCase");R.exports=f},gRFJ:function(R,L,r){R.exports=[r("rdUC"),r("ynwM"),r("RELg"),r("DlR+"),r("CrYA"),r("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(R){return R<10?"0"+R:R}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(R){return rx_escapable.lastIndex=0,rx_escapable.test(R)?'"'+R.replace(rx_escapable,function(L){var r=meta[L];return typeof r=="string"?r:"\\u"+("0000"+L.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+R+'"'}function str(R,L){var r,y,f,x,A=gap,m,p=L[R];p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(R)),typeof rep=="function"&&(p=rep.call(L,R,p));switch(typeof p){case"string":return quote(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(gap+=indent,m=[],Object.prototype.toString.apply(p)==="[object Array]"){for(x=p.length,r=0;r<x;r+=1)m[r]=str(r,p)||"null";return f=m.length===0?"[]":gap?`[
`+gap+m.join(`,
`+gap)+`
`+A+"]":"["+m.join(",")+"]",gap=A,f}if(rep&&typeof rep=="object")for(x=rep.length,r=0;r<x;r+=1)typeof rep[r]=="string"&&(y=rep[r],f=str(y,p),f&&m.push(quote(y)+(gap?": ":":")+f));else for(y in p)Object.prototype.hasOwnProperty.call(p,y)&&(f=str(y,p),f&&m.push(quote(y)+(gap?": ":":")+f));return f=m.length===0?"{}":gap?`{
`+gap+m.join(`,
`+gap)+`
`+A+"}":"{"+m.join(",")+"}",gap=A,f}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(R,L,r){var y;if(gap="",indent="",typeof r=="number")for(y=0;y<r;y+=1)indent+=" ";else typeof r=="string"&&(indent=r);if(rep=L,L&&typeof L!="function"&&(typeof L!="object"||typeof L.length!="number"))throw new Error("JSON.stringify");return str("",{"":R})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(R,L){var r,y,f=R[L];if(f&&typeof f=="object")for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(y=walk(f,r),y!==void 0?f[r]=y:delete f[r]);return reviver.call(R,L,f)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(R){return"\\u"+("0000"+R.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(R,L,r){var y=r("+TT/"),f=r("bYtY"),x=r("4NO4"),A=x.groupData;function m(O,I,k){O.eachSeriesByType("sankey",function(M){var U=M.get("nodeWidth"),P=M.get("nodeGap"),X=p(M,I);M.layoutInfo=X;var F=X.width,j=X.height,K=M.getGraph(),z=K.nodes,V=K.edges;u(z);var Q=f.filter(z,function(ye){return ye.getLayout().value===0}),G=Q.length!==0?0:M.get("layoutIterations"),ee=M.get("orient"),se=M.get("nodeAlign");d(z,V,U,P,F,j,G,ee,se)})}function p(O,I){return y.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function d(O,I,k,M,U,P,X,F,j){a(O,I,k,U,P,F,j),l(O,I,P,U,M,X,F),w(O,F)}function u(O){f.each(O,function(I){var k=_(I.outEdges,C),M=_(I.inEdges,C),U=I.getValue()||0,P=Math.max(k,M,U);I.setLayout({value:P},!0)})}function a(O,I,k,M,U,P,X){for(var F=[],j=[],K=[],z=[],V=0,Q=0,G=0;G<I.length;G++)F[G]=1;for(G=0;G<O.length;G++)j[G]=O[G].inEdges.length,j[G]===0&&K.push(O[G]);for(var ee=-1;K.length;){for(var se=0;se<K.length;se++){var ye=K[se],he=ye.hostGraph.data.getRawDataItem(ye.dataIndex),ke=he.depth!=null&&he.depth>=0;ke&&he.depth>ee&&(ee=he.depth),ye.setLayout({depth:ke?he.depth:V},!0),P==="vertical"?ye.setLayout({dy:k},!0):ye.setLayout({dx:k},!0);for(var Pe=0;Pe<ye.outEdges.length;Pe++){var Ue=ye.outEdges[Pe],$e=I.indexOf(Ue);F[$e]=0;var Ge=Ue.node2,ht=O.indexOf(Ge);--j[ht]===0&&z.indexOf(Ge)<0&&z.push(Ge)}}++V,K=z,z=[]}for(G=0;G<F.length;G++)if(F[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Fe=ee>V-1?ee:V-1;X&&X!=="left"&&t(O,X,P,Fe);var Q=P==="vertical"?(U-k)/Fe:(M-k)/Fe;e(O,Q,P)}function i(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function t(O,I,k,M){if(I==="right"){for(var U=[],P=O,X=0;P.length;){for(var F=0;F<P.length;F++){var j=P[F];j.setLayout({skNodeHeight:X},!0);for(var K=0;K<j.inEdges.length;K++){var z=j.inEdges[K];U.indexOf(z.node1)<0&&U.push(z.node1)}}P=U,U=[],++X}f.each(O,function(V){i(V)||V.setLayout({depth:Math.max(0,M-V.getLayout().skNodeHeight)},!0)})}else I==="justify"&&s(O,M)}function s(O,I){f.each(O,function(k){!i(k)&&!k.outEdges.length&&k.setLayout({depth:I},!0)})}function e(O,I,k){f.each(O,function(M){var U=M.getLayout().depth*I;k==="vertical"?M.setLayout({y:U},!0):M.setLayout({x:U},!0)})}function l(O,I,k,M,U,P,X){var F=n(O,X);o(F,I,k,M,U,X),c(F,U,k,M,X);for(var j=1;P>0;P--)j*=.99,h(F,j,X),c(F,U,k,M,X),T(F,j,X),c(F,U,k,M,X)}function n(O,I){var k=[],M=I==="vertical"?"y":"x",U=A(O,function(P){return P.getLayout()[M]});return U.keys.sort(function(P,X){return P-X}),f.each(U.keys,function(P){k.push(U.buckets.get(P))}),k}function o(O,I,k,M,U,P){var X=Infinity;f.each(O,function(F){var j=F.length,K=0;f.each(F,function(V){K+=V.getLayout().value});var z=P==="vertical"?(M-(j-1)*U)/K:(k-(j-1)*U)/K;z<X&&(X=z)}),f.each(O,function(F){f.each(F,function(j,K){var z=j.getLayout().value*X;P==="vertical"?(j.setLayout({x:K},!0),j.setLayout({dx:z},!0)):(j.setLayout({y:K},!0),j.setLayout({dy:z},!0))})}),f.each(I,function(F){var j=+F.getValue()*X;F.setLayout({dy:j},!0)})}function c(O,I,k,M,U){var P=U==="vertical"?"x":"y";f.each(O,function(X){X.sort(function(se,ye){return se.getLayout()[P]-ye.getLayout()[P]});for(var F,j,K,z=0,V=X.length,Q=U==="vertical"?"dx":"dy",G=0;G<V;G++)j=X[G],K=z-j.getLayout()[P],K>0&&(F=j.getLayout()[P]+K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]+j.getLayout()[Q]+I;var ee=U==="vertical"?M:k;if(K=z-I-ee,K>0)for(F=j.getLayout()[P]-K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0),z=F,G=V-2;G>=0;--G)j=X[G],K=j.getLayout()[P]+j.getLayout()[Q]+I-z,K>0&&(F=j.getLayout()[P]-K,U==="vertical"?j.setLayout({x:F},!0):j.setLayout({y:F},!0)),z=j.getLayout()[P]})}function h(O,I,k){f.each(O.slice().reverse(),function(M){f.each(M,function(U){if(U.outEdges.length){var P=_(U.outEdges,g,k)/_(U.outEdges,C,k);if(isNaN(P)){var X=U.outEdges.length;P=X?_(U.outEdges,v,k)/X:0}if(k==="vertical"){var F=U.getLayout().x+(P-E(U,k))*I;U.setLayout({x:F},!0)}else{var j=U.getLayout().y+(P-E(U,k))*I;U.setLayout({y:j},!0)}}})})}function g(O,I){return E(O.node2,I)*O.getValue()}function v(O,I){return E(O.node2,I)}function b(O,I){return E(O.node1,I)*O.getValue()}function S(O,I){return E(O.node1,I)}function E(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function C(O){return O.getValue()}function _(O,I,k){for(var M=0,U=O.length,P=-1;++P<U;){var X=+I.call(O,O[P],k);isNaN(X)||(M+=X)}return M}function T(O,I,k){f.each(O,function(M){f.each(M,function(U){if(U.inEdges.length){var P=_(U.inEdges,b,k)/_(U.inEdges,C,k);if(isNaN(P)){var X=U.inEdges.length;P=X?_(U.inEdges,S,k)/X:0}if(k==="vertical"){var F=U.getLayout().x+(P-E(U,k))*I;U.setLayout({x:F},!0)}else{var j=U.getLayout().y+(P-E(U,k))*I;U.setLayout({y:j},!0)}}})})}function w(O,I){var k=I==="vertical"?"x":"y";f.each(O,function(M){M.outEdges.sort(function(U,P){return U.node2.getLayout()[k]-P.node2.getLayout()[k]}),M.inEdges.sort(function(U,P){return U.node1.getLayout()[k]-P.node1.getLayout()[k]})}),f.each(O,function(M){var U=0,P=0;f.each(M.outEdges,function(X){X.setLayout({sy:U},!0),U+=X.getLayout().dy}),f.each(M.inEdges,function(X){X.setLayout({ty:P},!0),P+=X.getLayout().dy})})}R.exports=m},"gb/T":function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.mode.ECB=function(){var f=y.lib.BlockCipherMode.extend();return f.Encryptor=f.extend({processBlock:function(A,m){this._cipher.encryptBlock(A,m)}}),f.Decryptor=f.extend({processBlock:function(A,m){this._cipher.decryptBlock(A,m)}}),f}(),y.mode.ECB})},"giR+":function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("QbM5"),A=r.n(x)},gut8:function(R,L){var r={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;L.ContextCachedBy=r,L.WILL_BE_RESTORED=y},gvm7:function(R,L,r){var y=r("bYtY"),f=r("dqUG");function x(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}x.prototype={constructor:x,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,p,d){this.el&&this._zr.remove(this.el);for(var u={},a=m,i="{marker",t="|}",s=a.indexOf(i);s>=0;){var e=a.indexOf(t),l=a.substr(s+i.length,e-s-i.length);l.indexOf("sub")>-1?u["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:p[l],textOffset:[3,0]}:u["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:p[l]},a=a.substr(e+1),s=a.indexOf("{marker")}this.el=new f({style:{rich:u,text:m,textLineHeight:20,textBackgroundColor:d.get("backgroundColor"),textBorderRadius:d.get("borderRadius"),textFill:d.get("textStyle.color"),textPadding:d.get("padding")},z:d.get("z")}),this._zr.add(this.el);var n=this;this.el.on("mouseover",function(){n._enterable&&(clearTimeout(n._hideTimeout),n._show=!0),n._inContent=!0}),this.el.on("mouseout",function(){n._enterable&&(n._show&&n.hideLater(n._hideDelay)),n._inContent=!1})},setEnterable:function(m){this._enterable=m},getSize:function(){var m=this.el.getBoundingRect();return[m.width,m.height]},moveTo:function(m,p){this.el&&this.el.attr("position",[m,p])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(m){this._show&&!(this._inContent&&this._enterable)&&(m?(this._hideDelay=m,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),m)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var m=this.getSize();return{width:m[0],height:m[1]}}};var A=x;R.exports=A},gwTy:function(R,L,r){},h54F:function(R,L,r){var y=r("ProS"),f=r("YXkt"),x=r("bYtY"),A=r("4NO4"),m=A.defaultEmphasis,p=r("Qxkt"),d=r("7aKB"),u=d.encodeHTML,a=r("I3/A"),i=r("xKMd"),t=y.extendSeriesModel({type:"series.graph",init:function(e){t.superApply(this,"init",arguments);var l=this;function n(){return l._categoriesData}this.legendVisualProvider=new i(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){t.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){t.superApply(this,"mergeDefaultAndTheme",arguments),m(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var n=e.edges||e.links||[],o=e.data||e.nodes||[],c=this;if(o&&n)return a(o,n,this,!0,h).data;function h(g,v){g.wrapMethod("getItemModel",function(T){var w=c._categoriesModels,O=T.getShallow("category"),I=w[O];return I&&(I.parentModel=T.parentModel,T.parentModel=I),T});var b=c.getModel("edgeLabel"),S=new p({label:b.option},b.parentModel,l),E=c.getModel("emphasis.edgeLabel"),C=new p({emphasis:{label:E.option}},E.parentModel,l);v.wrapMethod("getItemModel",function(T){return T.customizeGetParent(_),T});function _(T){return T=this.parsePath(T),T&&T[0]==="label"?S:T&&T[0]==="emphasis"&&T[1]==="label"?C:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,n){if(n==="edge"){var o=this.getData(),c=this.getDataParams(e,n),h=o.graph.getEdgeByIndex(e),g=o.getName(h.node1.dataIndex),v=o.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),v!=null&&b.push(v),b=u(b.join(" > ")),c.value&&(b+=" : "+u(c.value)),b}else return t.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=x.map(this.option.categories||[],function(n){return n.value!=null?n:x.extend({value:0},n)}),l=new f(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(n){return l.getItemModel(n,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return t.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),s=t;R.exports=s},h7HQ:function(R,L,r){var y=r("y+Vt"),f=r("T6xi"),x=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,p){f.buildPath(m,p,!0)}});R.exports=x},h7i7:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("SRve")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="PlusOutlined";var i=A.forwardRef(a);L.default=i},h8O9:function(R,L,r){var y=r("bYtY"),f=y.map,x=r("zM3Q"),A=r("7hqr"),m=A.isDimensionStacked;function p(d){return{seriesType:d,plan:x(),reset:function(u){var a=u.getData(),i=u.coordinateSystem,t=u.pipelineContext,s=t.large;if(!i)return;var e=f(i.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=e.length,n=a.getCalculationInfo("stackResultDimension");m(a,e[0])&&(e[0]=n),m(a,e[1])&&(e[1]=n);function o(c,h){for(var g=c.end-c.start,v=s&&new Float32Array(g*l),b=c.start,S=0,E=[],C=[];b<c.end;b++){var _;if(l===1){var T=h.get(e[0],b);_=!isNaN(T)&&i.dataToPoint(T,null,C)}else{var T=E[0]=h.get(e[0],b),w=E[1]=h.get(e[1],b);_=!isNaN(T)&&!isNaN(w)&&i.dataToPoint(E,null,C)}s?(v[S++]=_?_[0]:NaN,v[S++]=_?_[1]:NaN):h.setItemLayout(b,_&&_.slice()||[NaN,NaN])}s&&h.setLayout("symbolPoints",v)}return l&&{progress:o}}}}R.exports=p},hD7B:function(R,L,r){var y=r("bYtY"),f=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function x(m){y.each(f,function(p){this[p]=y.bind(m[p],m)},this)}var A=x;R.exports=A},hFM2:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("sI3+"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},hFmY:function(R,L,r){var y=r("ProS"),f={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(f,function(x,A){A.eachComponent({mainType:"parallelAxis",query:x},function(m){m.axis.model.setActiveIntervals(x.intervals)})}),y.registerAction("parallelAxisExpand",function(x,A){A.eachComponent({mainType:"parallel",query:x},function(m){m.setAxisExpand(x)})})},hJvP:function(R,L,r){var y=r("2dDv"),f=r("IDmD");function x(A,m){var p=[];return A.eachComponent("parallel",function(d,u){var a=new y(d,A,m);a.name="parallel_"+u,a.resize(d,m),d.coordinateSystem=a,a.model=d,p.push(a)}),A.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var u=A.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=u.coordinateSystem}}),p}f.register("parallel",{create:x})},hM6l:function(R,L,r){var y=r("bYtY"),f=y.each,x=y.map,A=r("OELB"),m=A.linearMap,p=A.getPixelPrecision,d=A.round,u=r("4HMb"),a=u.createAxisTicks,i=u.createAxisLabels,t=u.calculateCategoryInterval,s=[0,1],e=function(c,h,g){this.dim=c,this.scale=h,this._extent=g||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var h=this._extent,g=Math.min(h[0],h[1]),v=Math.max(h[0],h[1]);return c>=g&&c<=v},containData:function(c){return this.scale.contain(c)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(c){return p(c||this.scale.getExtent(),this._extent)},setExtent:function(c,h){var g=this._extent;g[0]=c,g[1]=h},dataToCoord:function(c,h){var g=this._extent,v=this.scale;return c=v.normalize(c),this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count())),m(c,s,g,h)},coordToData:function(c,h){var g=this._extent,v=this.scale;this.onBand&&v.type==="ordinal"&&(g=g.slice(),l(g,v.count()));var b=m(c,g,s,h);return this.scale.scale(b)},pointToData:function(c,h){},getTicksCoords:function(c){c=c||{};var h=c.tickModel||this.getTickModel(),g=a(this,h),v=g.ticks,b=x(v,function(E){return{coord:this.dataToCoord(E),tickValue:E}},this),S=h.get("alignWithLabel");return n(this,b,S,c.clamp),b},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var c=this.model.getModel("minorTick"),h=c.get("splitNumber");h>0&&h<100||(h=5);var g=this.scale.getMinorTicks(h),v=x(g,function(b){return x(b,function(S){return{coord:this.dataToCoord(S),tickValue:S}},this)},this);return v},getViewLabels:function(){return i(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var c=this._extent,h=this.scale.getExtent(),g=h[1]-h[0]+(this.onBand?1:0);g===0&&(g=1);var v=Math.abs(c[1]-c[0]);return Math.abs(v)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function l(c,h){var g=c[1]-c[0],v=h,b=g/v/2;c[0]+=b,c[1]-=b}function n(c,h,g,v){var b=h.length;if(!c.onBand||g||!b)return;var S=c.getExtent(),E,C;if(b===1)h[0].coord=S[0],E=h[1]={coord:S[0]};else{var _=h[b-1].tickValue-h[0].tickValue,T=(h[b-1].coord-h[0].coord)/_;f(h,function(k){k.coord-=T/2});var w=c.scale.getExtent();C=1+w[1]-h[b-1].tickValue,E={coord:h[b-1].coord+T*C},h.push(E)}var O=S[0]>S[1];I(h[0].coord,S[0])&&(v?h[0].coord=S[0]:h.shift()),v&&I(S[0],h[0].coord)&&h.unshift({coord:S[0]}),I(S[1],E.coord)&&(v?E.coord=S[1]:h.pop()),v&&I(E.coord,S[1])&&h.push({coord:S[1]});function I(k,M){return k=d(k),M=d(M),O?k>M:k<M}}var o=e;R.exports=o},hNWo:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("Qxkt"),A=r("4NO4"),m=A.isNameSpecified,p=r("Kagy"),d=p.legend.selector,u={all:{type:"all",title:f.clone(d.all)},inverse:{type:"inverse",title:f.clone(d.inverse)}},a=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,s,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){a.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var s=t.selector;s===!0&&(s=t.selector=["all","inverse"]),f.isArray(s)&&f.each(s,function(e,l){f.isString(e)&&(e={type:e}),s[l]=f.merge(e,u[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var s=!1,e=0;e<t.length;e++){var l=t[e].get("name");if(this.isSelected(l)){this.select(l),s=!0;break}}!s&&this.select(t[0].get("name"))}},_updateData:function(t){var s=[],e=[];t.eachRawSeries(function(o){var c=o.name;e.push(c);var h;if(o.legendVisualProvider){var g=o.legendVisualProvider,v=g.getAllNames();t.isSeriesFiltered(o)||(e=e.concat(v)),v.length?s=s.concat(v):h=!0}else h=!0;h&&m(o)&&s.push(o.name)}),this._availableNames=e;var l=this.get("data")||s,n=f.map(l,function(o){return(typeof o=="string"||typeof o=="number")&&(o={name:o}),new x(o,this,this.ecModel)},this);this._data=n},getData:function(){return this._data},select:function(t){var s=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;f.each(l,function(n){s[n.get("name")]=!1})}s[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var s=this.option.selected;s.hasOwnProperty(t)||(s[t]=!0),this[s[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,s=this.option.selected;f.each(t,function(e){s[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,s=this.option.selected;f.each(t,function(e){var l=e.get("name",!0);s.hasOwnProperty(l)||(s[l]=!0),s[l]=!s[l]})},isSelected:function(t){var s=this.option.selected;return!(s.hasOwnProperty(t)&&!s[t])&&f.indexOf(this._availableNames,t)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),i=a;R.exports=i},hOwI:function(R,L){var r=Math.log(2);function y(x,A,m,p,d,u){var a=p+"-"+d,i=x.length;if(u.hasOwnProperty(a))return u[a];if(A===1){var t=Math.round(Math.log((1<<i)-1&~d)/r);return x[m][t]}for(var s=p|1<<m,e=m+1;p&1<<e;)e++;for(var l=0,n=0,o=0;n<i;n++){var c=1<<n;c&d||(l+=(o%2?-1:1)*x[m][n]*y(x,A-1,e,s,d|c,u),o++)}return u[a]=l,l}function f(x,A){var m=[[x[0],x[1],1,0,0,0,-A[0]*x[0],-A[0]*x[1]],[0,0,0,x[0],x[1],1,-A[1]*x[0],-A[1]*x[1]],[x[2],x[3],1,0,0,0,-A[2]*x[2],-A[2]*x[3]],[0,0,0,x[2],x[3],1,-A[3]*x[2],-A[3]*x[3]],[x[4],x[5],1,0,0,0,-A[4]*x[4],-A[4]*x[5]],[0,0,0,x[4],x[5],1,-A[5]*x[4],-A[5]*x[5]],[x[6],x[7],1,0,0,0,-A[6]*x[6],-A[6]*x[7]],[0,0,0,x[6],x[7],1,-A[7]*x[6],-A[7]*x[7]]],p={},d=y(m,8,0,0,0,p);if(d===0)return;for(var u=[],a=0;a<8;a++)for(var i=0;i<8;i++)u[i]==null&&(u[i]=0),u[i]+=((a+i)%2?-1:1)*y(m,7,a===0?1:0,1<<a,1<<i,p)/d*A[a];return function(t,s,e){var l=s*u[6]+e*u[7]+1;t[0]=(s*u[0]+e*u[1]+u[2])/l,t[1]=(s*u[3]+e*u[4]+u[5])/l}}L.buildTransformer=f},hX1E:function(R,L){var r=Math.PI*2;function y(f){return f%=r,f<0&&(f+=r),f}L.normalizeRadian=y},hXwI:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){for(var d=0;d<p.length;d++){var u=p[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(m,u.key,u)}}function x(m,p,d){return p&&f(m.prototype,p),d&&f(m,d),m}var A=function(){function m(){y(this,m)}return x(m,[{key:"decodeRect",value:function(d,u,a,i,t,s,e){if(t.rQwait("COPYRECT",4))return!1;var l=t.rQshift16(),n=t.rQshift16();return s.copyImage(l,n,d,u,a,i),!0}}]),m}();L.default=A},hi0g:function(R,L,r){var y=r("bYtY"),f=y.createHashMap,x=y.each,A=y.isString,m=y.defaults,p=y.extend,d=y.isObject,u=y.clone,a=r("4NO4"),i=a.normalizeToArray,t=r("D5nY"),s=t.guessOrdinal,e=t.BE_ORDINAL,l=r("7G+c"),n=r("L0Ub"),o=n.OTHER_DIMENSIONS,c=r("Vi4m");function h(S,E,C){l.isInstance(E)||(E=l.seriesDataToSource(E)),C=C||{},S=(S||[]).slice();for(var _=(C.dimsDef||[]).slice(),T=f(),w=f(),O=[],I=g(E,S,_,C.dimCount),k=0;k<I;k++){var M=_[k]=p({},d(_[k])?_[k]:{name:_[k]}),U=M.name,P=O[k]=new c;U!=null&&T.get(U)==null&&(P.name=P.displayName=U,T.set(U,k)),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName)}var X=C.encodeDef;!X&&C.encodeDefaulter&&(X=C.encodeDefaulter(E,I)),X=f(X),X.each(function(se,ye){if(se=i(se).slice(),se.length===1&&!A(se[0])&&se[0]<0){X.set(ye,!1);return}var he=X.set(ye,[]);x(se,function(ke,Pe){A(ke)&&(ke=T.get(ke)),ke!=null&&ke<I&&(he[Pe]=ke,j(O[ke],ye,Pe))})});var F=0;x(S,function(se,ye){var he,se,ke,Pe;if(A(se))he=se,se={};else{he=se.name;var Ue=se.ordinalMeta;se.ordinalMeta=null,se=u(se),se.ordinalMeta=Ue,ke=se.dimsDef,Pe=se.otherDims,se.name=se.coordDim=se.coordDimIndex=se.dimsDef=se.otherDims=null}var $e=X.get(he);if($e===!1)return;var $e=i($e);if(!$e.length)for(var Ge=0;Ge<(ke&&ke.length||1);Ge++){for(;F<O.length&&O[F].coordDim!=null;)F++;F<O.length&&$e.push(F++)}x($e,function(ht,Fe){var oe=O[ht];if(j(m(oe,se),he,Fe),oe.name==null&&ke){var rt=ke[Fe];!d(rt)&&(rt={name:rt}),oe.name=oe.displayName=rt.name,oe.defaultTooltip=rt.defaultTooltip}Pe&&m(oe.otherDims,Pe)})});function j(se,ye,he){o.get(ye)!=null?se.otherDims[ye]=he:(se.coordDim=ye,se.coordDimIndex=he,w.set(ye,!0))}var K=C.generateCoord,z=C.generateCoordCount,V=z!=null;z=K?z||1:0;for(var Q=K||"value",G=0;G<I;G++){var P=O[G]=O[G]||new c,ee=P.coordDim;ee==null&&(P.coordDim=v(Q,w,V),P.coordDimIndex=0,(!K||z<=0)&&(P.isExtraCoord=!0),z--),P.name==null&&(P.name=v(P.coordDim,T)),P.type==null&&(s(E,G,P.name)===e.Must||P.isExtraCoord&&(P.otherDims.itemName!=null||P.otherDims.seriesName!=null))&&(P.type="ordinal")}return O}function g(S,E,C,_){var T=Math.max(S.dimensionsDetectCount||1,E.length,C.length,_||0);return x(E,function(w){var O=w.dimsDef;O&&(T=Math.max(T,O.length))}),T}function v(S,E,C){if(C||E.get(S)!=null){for(var _=0;E.get(S+_)!=null;)_++;S+=_}return E.set(S,!0),S}var b=h;R.exports=b},hkKa:function(R,L,r){"use strict";r.d(L,"a",function(){return m});var y=r("J4zp"),f=r.n(y),x=r("q1tI"),A=r.n(x);function m(){var p=x.useReducer(function(a){return a+1},0),d=f()(p,2),u=d[1];return u}},hw6D:function(R,L,r){var y=r("bYtY");function f(m){m.eachSeriesByType("radar",function(p){var d=p.getData(),u=[],a=p.coordinateSystem;if(!a)return;var i=a.getIndicatorAxes();y.each(i,function(t,s){d.each(d.mapDimension(i[s].dim),function(e,l){u[l]=u[l]||[];var n=a.dataToPoint(e,s);u[l][s]=x(n)?n:A(a)})}),d.each(function(t){var s=y.find(u[t],function(e){return x(e)})||A(a);u[t].push(s.slice()),d.setItemLayout(t,u[t])})})}function x(m){return!isNaN(m[0])&&!isNaN(m[1])}function A(m){return[m.cx,m.cy]}R.exports=f},hydK:function(R,L){var r="http://www.w3.org/2000/svg";function y(f){return document.createElementNS(r,f)}L.createElement=y},hyiK:function(R,L){function r(y,f,x,A,m,p){if(p>f&&p>A||p<f&&p<A)return 0;if(A===f)return 0;var d=A<f?1:-1,u=(p-f)/(A-f);(u===1||u===0)&&(d=A<f?.5:-.5);var a=u*(x-y)+y;return a===m?Infinity:a>m?d:0}R.exports=r},i38C:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=x.createHashMap,m=x.retrieve,p=x.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function u(t){var s=t.get("coordinateSystem"),e=new d(s),l=a[s];if(l)return l(t,e,e.axisMap,e.categoryAxisMap),e}var a={cartesian2d:function(t,s,e,l){var n=t.getReferringComponents("xAxis")[0],o=t.getReferringComponents("yAxis")[0];s.coordSysDims=["x","y"],e.set("x",n),e.set("y",o),i(n)&&(l.set("x",n),s.firstCategoryDimIndex=0),i(o)&&(l.set("y",o),s.firstCategoryDimIndex==null&(s.firstCategoryDimIndex=1))},singleAxis:function(t,s,e,l){var n=t.getReferringComponents("singleAxis")[0];s.coordSysDims=["single"],e.set("single",n),i(n)&&(l.set("single",n),s.firstCategoryDimIndex=0)},polar:function(t,s,e,l){var n=t.getReferringComponents("polar")[0],o=n.findAxisModel("radiusAxis"),c=n.findAxisModel("angleAxis");s.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",c),i(o)&&(l.set("radius",o),s.firstCategoryDimIndex=0),i(c)&&(l.set("angle",c),s.firstCategoryDimIndex==null&&(s.firstCategoryDimIndex=1))},geo:function(t,s,e,l){s.coordSysDims=["lng","lat"]},parallel:function(t,s,e,l){var n=t.ecModel,o=n.getComponent("parallel",t.get("parallelIndex")),c=s.coordSysDims=o.dimensions.slice();p(o.parallelAxisIndex,function(h,g){var v=n.getComponent("parallelAxis",h),b=c[g];e.set(b,v),i(v)&&s.firstCategoryDimIndex==null&&(l.set(b,v),s.firstCategoryDimIndex=g)})}};function i(t){return t.get("type")==="category"}L.getCoordSysInfoBySeries=u},i6bk:function(R,L,r){"use strict";r.d(L,"b",function(){return y}),r.d(L,"a",function(){return f});function y(x){return x!=null&&x===x.window}function f(x,A){if(typeof window=="undefined")return 0;var m=A?"scrollTop":"scrollLeft",p=0;return y(x)?p=x[A?"pageYOffset":"pageXOffset"]:x instanceof Document?p=x.documentElement[m]:x&&(p=x[m]),x&&!y(x)&&typeof p!="number"&&(p=(x.ownerDocument||x).documentElement[m]),p}},iLNv:function(R,L){var r="\0__throttleOriginMethod",y="\0__throttleRate",f="\0__throttleType";function x(p,d,u){var a,i=0,t=0,s=null,e,l,n,o;d=d||0;function c(){t=new Date().getTime(),s=null,p.apply(l,n||[])}var h=function(){a=new Date().getTime(),l=this,n=arguments;var g=o||d,v=o||u;o=null,e=a-(v?i:t)-g,clearTimeout(s),v?s=setTimeout(c,g):e>=0?c():s=setTimeout(c,-e),i=a};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.debounceNextCall=function(g){o=g},h}function A(p,d,u,a){var i=p[d];if(!i)return;var t=i[r]||i,s=i[f],e=i[y];if(e!==u||s!==a){if(u==null||!a)return p[d]=t;i=p[d]=x(t,u,a==="debounce"),i[r]=t,i[f]=a,i[y]=u}return i}function m(p,d){var u=p[d];u&&u[r]&&(p[d]=u[r])}L.throttle=x,L.createOrUpdate=A,L.clear=m},iPDy:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=f.createHashMap()},render:function(A,m,p){var d=this.markerGroupMap;d.each(function(a){a.__keep=!1});var u=this.type+"Model";m.eachSeries(function(a){var i=a[u];i&&this.renderSeries(a,i,m,p)},this),d.each(function(a){!a.__keep&&this.group.remove(a.group)},this)},renderSeries:function(){}});R.exports=x},iQDF:function(R,L,r){"use strict";var y=r("ZTW2"),f=r.n(y),x=r("+BJd"),A=r("+L6B")},iRjW:function(R,L,r){var y=r("bYtY"),f=r("Yl7c"),x=f.parseClassType,A=0;function m(u){return[u||"",A++,Math.random().toFixed(5)].join("_")}function p(u){var a={};return u.registerSubTypeDefaulter=function(i,t){i=x(i),a[i.main]=t},u.determineSubType=function(i,t){var s=t.type;if(!s){var e=x(i).main;u.hasSubTypes(i)&&a[e]&&(s=a[e](t))}return s},u}function d(u,a){u.topologicalTravel=function(e,l,n,o){if(!e.length)return;var c=i(l),h=c.graph,g=c.noEntryList,v={};for(y.each(e,function(T){v[T]=!0});g.length;){var b=g.pop(),S=h[b],E=!!v[b];E&&(n.call(o,b,S.originalDeps.slice()),delete v[b]),y.each(S.successor,E?_:C)}y.each(v,function(){throw new Error("Circle dependency may exists")});function C(T){h[T].entryCount--,h[T].entryCount===0&&g.push(T)}function _(T){v[T]=!0,C(T)}};function i(e){var l={},n=[];return y.each(e,function(o){var c=t(l,o),h=c.originalDeps=a(o),g=s(h,e);c.entryCount=g.length,c.entryCount===0&&n.push(o),y.each(g,function(v){y.indexOf(c.predecessor,v)<0&&c.predecessor.push(v);var b=t(l,v);y.indexOf(b.successor,v)<0&&b.successor.push(o)})}),{graph:l,noEntryList:n}}function t(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function s(e,l){var n=[];return y.each(e,function(o){y.indexOf(l,o)>=0&&n.push(o)}),n}}L.getUID=m,L.enableSubTypeDefaulter=p,L.enableTopologicalTravel=d},iUHT:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;function y(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function f(S,E){for(var C=0;C<E.length;C++){var _=E[C];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}function x(S,E,C){return E&&f(S.prototype,E),C&&f(S,C),S}var A=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=0,d,u,a,i,t,s;d=1<<16,u=1<<24,a=d|u,i=1<<2,t=1<<10,s=i|t;var e=[a|t,p|p,d|p,a|s,a|i,d|s,p|i,d|p,p|t,a|t,a|s,p|t,u|s,a|i,u|p,p|i,p|s,u|t,u|t,d|t,d|t,a|p,a|p,u|s,d|i,u|i,u|i,d|i,p|p,p|s,d|s,u|p,d|p,a|s,p|i,a|p,a|t,u|p,u|p,p|t,a|i,d|p,d|t,u|i,p|t,p|i,u|s,d|s,a|s,d|i,a|p,u|s,u|i,p|s,d|s,a|t,p|s,u|t,u|t,p|p,d|i,d|t,p|p,a|i];d=1<<20,u=1<<31,a=d|u,i=1<<5,t=1<<15,s=i|t;var l=[a|s,u|t,p|t,d|s,d|p,p|i,a|i,u|s,u|i,a|s,a|t,u|p,u|t,d|p,p|i,a|i,d|t,d|i,u|s,p|p,u|p,p|t,d|s,a|p,d|i,u|i,p|p,d|t,p|s,a|t,a|p,p|s,p|p,d|s,a|i,d|p,u|s,a|p,a|t,p|t,a|p,u|t,p|i,a|s,d|s,p|i,p|t,u|p,p|s,a|t,d|p,u|i,d|i,u|s,u|i,d|i,d|t,p|p,u|t,p|s,u|p,a|i,a|s,d|t];d=1<<17,u=1<<27,a=d|u,i=1<<3,t=1<<9,s=i|t;var n=[p|s,a|t,p|p,a|i,u|t,p|p,d|s,u|t,d|i,u|i,u|i,d|p,a|s,d|i,a|p,p|s,u|p,p|i,a|t,p|t,d|t,a|p,a|i,d|s,u|s,d|t,d|p,u|s,p|i,a|s,p|t,u|p,a|t,u|p,d|i,p|s,d|p,a|t,u|t,p|p,p|t,d|i,a|s,u|t,u|i,p|t,p|p,a|i,u|s,d|p,u|p,a|s,p|i,d|s,d|t,u|i,a|p,u|s,p|s,a|p,d|s,p|i,a|i,d|t];d=1<<13,u=1<<23,a=d|u,i=1<<0,t=1<<7,s=i|t;var o=[a|i,d|s,d|s,p|t,a|t,u|s,u|i,d|i,p|p,a|p,a|p,a|s,p|s,p|p,u|t,u|i,p|i,d|p,u|p,a|i,p|t,u|p,d|i,d|t,u|s,p|i,d|t,u|t,d|p,a|t,a|s,p|s,u|t,u|i,a|p,a|s,p|s,p|p,p|p,a|p,d|t,u|t,u|s,p|i,a|i,d|s,d|s,p|t,a|s,p|s,p|i,d|p,u|i,d|i,a|t,u|s,d|i,d|t,u|p,a|i,p|t,u|p,d|p,a|t];d=1<<25,u=1<<30,a=d|u,i=1<<8,t=1<<19,s=i|t;var c=[p|i,d|s,d|t,a|i,p|t,p|i,u|p,d|t,u|s,p|t,d|i,u|s,a|i,a|t,p|s,u|p,d|p,u|t,u|t,p|p,u|i,a|s,a|s,d|i,a|t,u|i,p|p,a|p,d|s,d|p,a|p,p|s,p|t,a|i,p|i,d|p,u|p,d|t,a|i,u|s,d|i,u|p,a|t,d|s,u|s,p|i,d|p,a|t,a|s,p|s,a|p,a|s,d|t,p|p,u|t,a|p,p|s,d|i,u|i,p|t,p|p,u|t,d|s,u|i];d=1<<22,u=1<<29,a=d|u,i=1<<4,t=1<<14,s=i|t;var h=[u|i,a|p,p|t,a|s,a|p,p|i,a|s,d|p,u|t,d|s,d|p,u|i,d|i,u|t,u|p,p|s,p|p,d|i,u|s,p|t,d|t,u|s,p|i,a|i,a|i,p|p,d|s,a|t,p|s,d|t,a|t,u|p,u|t,p|i,a|i,d|t,a|s,d|p,p|s,u|i,d|p,u|t,u|p,p|s,u|i,a|s,d|t,a|p,d|s,a|t,p|p,a|i,p|i,p|t,a|p,d|s,p|t,d|i,u|s,p|p,a|t,u|p,d|i,u|s];d=1<<21,u=1<<26,a=d|u,i=1<<1,t=1<<11,s=i|t;var g=[d|p,a|i,u|s,p|p,p|t,u|s,d|s,a|t,a|s,d|p,p|p,u|i,p|i,u|p,a|i,p|s,u|t,d|s,d|i,u|t,u|i,a|p,a|t,d|i,a|p,p|t,p|s,a|s,d|t,p|i,u|p,d|t,u|p,d|t,d|p,u|s,u|s,a|i,a|i,p|i,d|i,u|p,u|t,d|p,a|t,p|s,d|s,a|t,p|s,u|i,a|s,a|p,d|t,p|p,p|i,a|s,p|p,d|s,a|p,p|t,u|i,u|t,p|t,d|i];d=1<<18,u=1<<28,a=d|u,i=1<<6,t=1<<12,s=i|t;var v=[u|s,p|t,d|p,a|s,u|p,u|s,p|i,u|p,d|i,a|p,a|s,d|t,a|t,d|s,p|t,p|i,a|p,u|i,u|t,p|s,d|t,d|i,a|i,a|t,p|s,p|p,p|p,a|i,u|i,u|t,d|s,d|p,d|s,d|p,a|t,p|t,p|i,a|i,p|t,d|s,u|t,p|i,u|i,a|p,a|i,u|p,d|p,u|s,p|p,a|s,d|i,u|i,a|p,u|t,u|s,p|p,a|s,d|t,d|t,p|s,p|s,d|i,u|p,a|t],b=function(){function S(E){y(this,S),this.keys=[];for(var C=[],_=[],T=[],w=0,O=56;w<56;++w,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;C[w]=(E[O>>>3]&1<<I)!==0?1:0}for(var k=0;k<16;++k){var M=k<<1,U=M+1;T[M]=T[U]=0;for(var P=28;P<59;P+=28)for(var X=P-28;X<P;++X){var F=X+m[k];_[X]=F<P?C[F]:C[F-28]}for(var j=0;j<24;++j)_[A[j]]!==0&&(T[M]|=1<<23-j),_[A[j+24]]!==0&&(T[U]|=1<<23-j)}for(var K=0,z=0,V=0;K<16;++K){var Q=T[z++],G=T[z++];this.keys[V]=(Q&16515072)<<6,this.keys[V]|=(Q&4032)<<10,this.keys[V]|=(G&16515072)>>>10,this.keys[V]|=(G&4032)>>>6,++V,this.keys[V]=(Q&258048)<<12,this.keys[V]|=(Q&63)<<16,this.keys[V]|=(G&258048)>>>4,this.keys[V]|=G&63,++V}}return x(S,[{key:"enc8",value:function(C){var _=C.slice(),T=0,w,O,I;w=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],O=_[T++]<<24|_[T++]<<16|_[T++]<<8|_[T++],I=(w>>>4^O)&252645135,O^=I,w^=I<<4,I=(w>>>16^O)&65535,O^=I,w^=I<<16,I=(O>>>2^w)&858993459,w^=I,O^=I<<2,I=(O>>>8^w)&16711935,w^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<1|w>>>31&1;for(var k=0,M=0;k<8;++k){I=O<<28|O>>>4,I^=this.keys[M++];var U=g[I&63];U|=c[I>>>8&63],U|=n[I>>>16&63],U|=e[I>>>24&63],I=O^this.keys[M++],U|=v[I&63],U|=h[I>>>8&63],U|=o[I>>>16&63],U|=l[I>>>24&63],w^=U,I=w<<28|w>>>4,I^=this.keys[M++],U=g[I&63],U|=c[I>>>8&63],U|=n[I>>>16&63],U|=e[I>>>24&63],I=w^this.keys[M++],U|=v[I&63],U|=h[I>>>8&63],U|=o[I>>>16&63],U|=l[I>>>24&63],O^=U}for(O=O<<31|O>>>1,I=(w^O)&2863311530,w^=I,O^=I,w=w<<31|w>>>1,I=(w>>>8^O)&16711935,O^=I,w^=I<<8,I=(w>>>2^O)&858993459,O^=I,w^=I<<2,I=(O>>>16^w)&65535,w^=I,O^=I<<16,I=(O>>>4^w)&252645135,w^=I,O^=I<<4,I=[O,w],T=0;T<8;T++)_[T]=(I[T>>>2]>>>8*(3-T%4))%256,_[T]<0&&(_[T]+=256);return _}},{key:"encrypt",value:function(C){return this.enc8(C.slice(0,8)).concat(this.enc8(C.slice(8,16)))}}]),S}();L.default=b},iXHM:function(R,L){var r="";typeof navigator!="undefined"&&(r=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:r.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};R.exports=y},iXp4:function(R,L,r){var y=r("ItGF"),f=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function x(A){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,p=this.style,d;if(m)for(var u=0;u<m.length;u++){var a=m[u],i=a&&a.shape,t=a&&a.type;if(i&&(t==="sector"&&i.startAngle===i.endAngle||t==="rect"&&(!i.width||!i.height))){for(var s=0;s<f.length;s++)f[s][2]=p[f[s][0]],p[f[s][0]]=f[s][1];d=!0;break}}if(A.apply(this,arguments),d)for(var s=0;s<f.length;s++)p[f[s][0]]=f[s][2]}:A}R.exports=x},ieMj:function(R,L,r){var y=r("OELB"),f=r("7aKB"),x=r("4NgU"),A=r("lE7J"),m=y.round,p=x.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(u,a){var i=this._extent;isNaN(u)||(i[0]=parseFloat(u)),isNaN(a)||(i[1]=parseFloat(a))},unionExtent:function(u){var a=this._extent;u[0]<a[0]&&(a[0]=u[0]),u[1]>a[1]&&(a[1]=u[1]),p.prototype.setExtent.call(this,a[0],a[1])},getInterval:function(){return this._interval},setInterval:function(u){this._interval=u,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(u)},getTicks:function(u){var a=this._interval,i=this._extent,t=this._niceExtent,s=this._intervalPrecision,e=[];if(!a)return e;var l=1e4;i[0]<t[0]&&(u?e.push(m(t[0]-a,s)):e.push(i[0]));for(var n=t[0];n<=t[1]&&!(e.push(n),n=m(n+a,s),n===e[e.length-1]);)if(e.length>l)return[];var o=e.length?e[e.length-1]:t[1];return i[1]>o&&(u?e.push(m(o+a,s)):e.push(i[1])),e},getMinorTicks:function(u){for(var a=this.getTicks(!0),i=[],t=this.getExtent(),s=1;s<a.length;s++){for(var e=a[s],l=a[s-1],n=0,o=[],c=e-l,h=c/u;n<u-1;){var g=y.round(l+(n+1)*h);g>t[0]&&g<t[1]&&o.push(g),n++}i.push(o)}return i},getLabel:function(u,a){if(u==null)return"";var i=a&&a.precision;return i==null?i=y.getPrecisionSafe(u)||0:i==="auto"&&(i=this._intervalPrecision),u=m(u,i,!0),f.addCommas(u)},niceTicks:function(u,a,i){u=u||5;var t=this._extent,s=t[1]-t[0];if(!isFinite(s))return;s<0&&(s=-s,t.reverse());var e=A.intervalScaleNiceTicks(t,u,a,i);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(u){var a=this._extent;if(a[0]===a[1])if(a[0]!==0){var i=a[0];u.fixMax||(a[1]+=i/2),a[0]-=i/2}else a[1]=1;var t=a[1]-a[0];isFinite(t)||(a[0]=0,a[1]=1),this.niceTicks(u.splitNumber,u.minInterval,u.maxInterval);var s=this._interval;u.fixMin||(a[0]=m(Math.floor(a[0]/s)*s)),u.fixMax||(a[1]=m(Math.ceil(a[1]/s)*s))}});p.create=function(){return new p};var d=p;R.exports=d},j5sG:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.createSensor=void 0;var y=r("24YM"),f=x(r("NohK"));function x(m){return m&&m.__esModule?m:{default:m}}var A=function(p,d){var u=void 0,a=[],i=(0,f.default)(function(){a.forEach(function(n){n(p)})}),t=function(){var o=new ResizeObserver(i);return o.observe(p),i(),o},s=function(o){u||(u=t()),a.indexOf(o)===-1&&a.push(o)},e=function(){u.disconnect(),a=[],u=void 0,p.removeAttribute(y.SizeSensorId),d&&d()},l=function(o){var c=a.indexOf(o);c!==-1&&a.splice(c,1),a.length===0&&u&&e()};return{element:p,bind:s,destroy:e,unbind:l}};L.createSensor=A},jCoz:function(R,L,r){var y=r("bYtY"),f=r("4NgU"),x=r("OELB"),A=r("ieMj"),m=f.prototype,p=A.prototype,d=x.getPrecisionSafe,u=x.round,a=Math.floor,i=Math.ceil,t=Math.pow,s=Math.log,e=f.extend({type:"log",base:10,$constructor:function(){f.apply(this,arguments),this._originalScale=new A},getTicks:function(o){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(p.getTicks.call(this,o),function(v){var b=x.round(t(this.base,v));return b=v===h[0]&&c.__fixMin?l(b,g[0]):b,b=v===h[1]&&c.__fixMax?l(b,g[1]):b,b},this)},getMinorTicks:p.getMinorTicks,getLabel:p.getLabel,scale:function(o){return o=m.scale.call(this,o),t(this.base,o)},setExtent:function(o,c){var h=this.base;o=s(o)/s(h),c=s(c)/s(h),p.setExtent.call(this,o,c)},getExtent:function(){var o=this.base,c=m.getExtent.call(this);c[0]=t(o,c[0]),c[1]=t(o,c[1]);var h=this._originalScale,g=h.getExtent();return h.__fixMin&&(c[0]=l(c[0],g[0])),h.__fixMax&&(c[1]=l(c[1],g[1])),c},unionExtent:function(o){this._originalScale.unionExtent(o);var c=this.base;o[0]=s(o[0])/s(c),o[1]=s(o[1])/s(c),m.unionExtent.call(this,o)},unionExtentFromData:function(o,c){this.unionExtent(o.getApproximateExtent(c))},niceTicks:function(o){o=o||10;var c=this._extent,h=c[1]-c[0];if(h===Infinity||h<=0)return;var g=x.quantity(h),v=o/h*g;for(v<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[x.round(i(c[0]/g)*g),x.round(a(c[1]/g)*g)];this._interval=g,this._niceExtent=b},niceExtent:function(o){p.niceExtent.call(this,o);var c=this._originalScale;c.__fixMin=o.fixMin,c.__fixMax=o.fixMax}});y.each(["contain","normalize"],function(o){e.prototype[o]=function(c){return c=s(c)/s(this.base),m[o].call(this,c)}}),e.create=function(){return new e};function l(o,c){return u(o,d(c))}var n=e;R.exports=n},jN4g:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CloseCircleFilled";var d=L.a=f.forwardRef(p)},jO45:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="CheckCircleFilled";var d=L.a=f.forwardRef(p)},jO9C:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(x,A){x.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(x,A)},unpad:function(x){y.pad.ZeroPadding.unpad(x),x.sigBytes--}},y.pad.Iso97971})},jTL6:function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(A,m){var p=m.cx,d=m.cy,u=Math.max(m.r,0),a=m.startAngle,i=m.endAngle,t=m.clockwise,s=Math.cos(a),e=Math.sin(a);A.moveTo(s*u+p,e*u+d),A.arc(p,d,u,a,i,!t)}});R.exports=f},je13:function(R,L,r){var y=r("5nXd"),f=r("gRFJ"),x=[r("uQRt")];R.exports=y.createStore(f,x)},jett:function(R,L,r){var y=r("ProS");r("VSLf"),r("oBaM"),r("FGaS");var f=r("mOdp"),x=r("f5Yq"),A=r("hw6D"),m=r("0/Rx"),p=r("eJH7");y.registerVisual(f("radar")),y.registerVisual(x("radar","circle")),y.registerLayout(A),y.registerProcessor(m("radar")),y.registerPreprocessor(p)},jhfD:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="ArrowLeftOutlined";var d=L.a=f.forwardRef(p)},jkPA:function(R,L,r){var y=r("bYtY"),f=y.createHashMap,x=y.isObject,A=y.map;function m(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this._map}m.createByAxisModel=function(i){var t=i.option,s=t.data,e=s&&A(s,u);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var p=m.prototype;p.getOrdinal=function(i){return d(this).get(i)},p.parseAndCollect=function(i){var t,s=this._needCollect;if(typeof i!="string"&&!s)return i;if(s&&!this._deduplication)return t=this.categories.length,this.categories[t]=i,t;var e=d(this);return t=e.get(i),t==null&&(s?(t=this.categories.length,this.categories[t]=i,e.set(i,t)):t=NaN),t};function d(i){return i._map||(i._map=f(i.categories))}function u(i){return x(i)&&i.value!=null?i.value:i+""}var a=m;R.exports=a},jndi:function(R,L,r){var y=r("bYtY"),f=r("Qe9p"),x=r("YXkt"),A=r("OELB"),m=r("IwbS"),p=r("kj2x"),d=r("iPDy"),u=function(n,o,c,h){var g=p.dataTransform(n,h[0]),v=p.dataTransform(n,h[1]),b=y.retrieve,S=g.coord,E=v.coord;S[0]=b(S[0],-Infinity),S[1]=b(S[1],-Infinity),E[0]=b(E[0],Infinity),E[1]=b(E[1],Infinity);var C=y.mergeAll([{},g,v]);return C.coord=[g.coord,v.coord],C.x0=g.x,C.y0=g.y,C.x1=v.x,C.y1=v.y,C};function a(n){return!isNaN(n)&&!isFinite(n)}function i(n,o,c,h){var g=1-n;return a(o[g])&&a(c[g])}function t(n,o){var c=o.coord[0],h=o.coord[1];return n.type==="cartesian2d"&&(c&&h&&(i(1,c,h,n)||i(0,c,h,n)))?!0:p.dataFilter(n,{coord:c,x:o.x0,y:o.y0})||p.dataFilter(n,{coord:h,x:o.x1,y:o.y1})}function s(n,o,c,h,g){var v=h.coordinateSystem,b=n.getItemModel(o),S,E=A.parsePercent(b.get(c[0]),g.getWidth()),C=A.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(E)&&!isNaN(C))S=[E,C];else{if(h.getMarkerPosition)S=h.getMarkerPosition(n.getValues(c,o));else{var _=n.get(c[0],o),T=n.get(c[1],o),w=[_,T];v.clampData&&v.clampData(w,w),S=v.dataToPoint(w,!0)}if(v.type==="cartesian2d"){var O=v.getAxis("x"),I=v.getAxis("y"),_=n.get(c[0],o),T=n.get(c[1],o);a(_)?S[0]=O.toGlobalCoord(O.getExtent()[c[0]==="x0"?0:1]):a(T)&&(S[1]=I.toGlobalCoord(I.getExtent()[c[1]==="y0"?0:1]))}isNaN(E)||(S[0]=E),isNaN(C)||(S[1]=C)}return S}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(n,o,c){o.eachSeries(function(h){var g=h.markAreaModel;if(g){var v=g.getData();v.each(function(b){var S=y.map(e,function(C){return s(v,b,C,h,c)});v.setItemLayout(b,S);var E=v.getItemGraphicEl(b);E.setShape("points",S)})}},this)},renderSeries:function(n,o,c,h){var g=n.coordinateSystem,v=n.id,b=n.getData(),S=this.markerGroupMap,E=S.get(v)||S.set(v,{group:new m.Group});this.group.add(E.group),E.__keep=!0;var C=l(g,n,o);o.setData(C),C.each(function(_){C.setItemLayout(_,y.map(e,function(T){return s(C,_,T,n,h)})),C.setItemVisual(_,{color:b.getVisual("color")})}),C.diff(E.__data).add(function(_){var T=new m.Polygon({shape:{points:C.getItemLayout(_)}});C.setItemGraphicEl(_,T),E.group.add(T)}).update(function(_,T){var w=E.__data.getItemGraphicEl(T);m.updateProps(w,{shape:{points:C.getItemLayout(_)}},o,_),E.group.add(w),C.setItemGraphicEl(_,w)}).remove(function(_){var T=E.__data.getItemGraphicEl(_);E.group.remove(T)}).execute(),C.eachItemGraphicEl(function(_,T){var w=C.getItemModel(T),O=w.getModel("label"),I=w.getModel("emphasis.label"),k=C.getItemVisual(T,"color");_.useStyle(y.defaults(w.getModel("itemStyle").getItemStyle(),{fill:f.modifyAlpha(k,.4),stroke:k})),_.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(_.style,_.hoverStyle,O,I,{labelFetcher:o,labelDataIndex:T,defaultText:C.getName(T)||"",isRectText:!0,autoColor:k}),m.setHoverStyle(_,{}),_.dataModel=o}),E.__data=C,E.group.silent=o.get("silent")||n.get("silent")}});function l(n,o,c){var h,g,v=["x0","y0","x1","y1"];n?(h=y.map(n&&n.dimensions,function(E){var C=o.getData(),_=C.getDimensionInfo(C.mapDimension(E))||{};return y.defaults({name:E},_)}),g=new x(y.map(v,function(E,C){return{name:E,type:h[C%2].type}}),c)):(h=[{name:"value",type:"float"}],g=new x(h,c));var b=y.map(c.get("data"),y.curry(u,o,n,c));n&&(b=y.filter(b,y.curry(t,n)));var S=n?function(E,C,_,T){return E.coord[Math.floor(T/2)][T%2]}:function(E){return E.value};return g.initData(b,null,S),g.hasItemOption=!0,g}},"jsU+":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IUWy"),A=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),f.each(this.option.feature,function(p,d){var u=x.get(d);u&&f.merge(p,u.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),m=A;R.exports=m},jtI2:function(R,L,r){r("SMc4");var y=r("bLfw"),f=y.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});R.exports=f},juDX:function(R,L,r){r("P47w");var y=r("aX58"),f=y.registerPainter,x=r("3CBa");f("svg",x)},"k+1r":function(R,L,r){var y=r("QkVE");function f(x){var A=y(this,x).delete(x);return this.size-=A?1:0,A}R.exports=f},k5C7:function(R,L,r){r("0JAE"),r("g7p0"),r("7mYs")},k773:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("O0TS"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},k9D9:function(R,L){var r="original",y="arrayRows",f="objectRows",x="keyedColumns",A="unknown",m="typedArray",p="column",d="row";L.SOURCE_FORMAT_ORIGINAL=r,L.SOURCE_FORMAT_ARRAY_ROWS=y,L.SOURCE_FORMAT_OBJECT_ROWS=f,L.SOURCE_FORMAT_KEYED_COLUMNS=x,L.SOURCE_FORMAT_UNKNOWN=A,L.SOURCE_FORMAT_TYPED_ARRAY=m,L.SERIES_LAYOUT_BY_COLUMN=p,L.SERIES_LAYOUT_BY_ROW=d},kDyi:function(R,L){function r(y){var f=y.findComponents({mainType:"legend"});f&&f.length&&y.filterSeries(function(x){for(var A=0;A<f.length;A++)if(!f[A].isSelected(x.name))return!1;return!0})}R.exports=r},kMLO:function(R,L,r){var y=r("XxSj"),f=r("Qe9p"),x=r("bYtY"),A=x.isArray,m="itemStyle",p={seriesType:"treemap",reset:function(n,o,c,h){var g=n.getData().tree,v=g.root,b=n.getModel(m);if(v.isRemoved())return;var S=x.map(g.levelModels,function(E){return E?E.get(m):null});d(v,{},S,b,n.getViewRoot().getAncestors(),n)}};function d(n,o,c,h,g,v){var b=n.getModel(),S=n.getLayout();if(!S||S.invisible||!S.isInView)return;var E=n.getModel(m),C=c[n.depth],_=u(E,o,C,h),T=E.get("borderColor"),w=E.get("borderColorSaturation"),O;w!=null&&(O=a(_,n),T=i(w,O)),n.setVisual("borderColor",T);var I=n.viewChildren;if(!I||!I.length)O=a(_,n),n.setVisual("color",O);else{var k=s(n,b,S,E,_,I);x.each(I,function(M,U){if(M.depth>=g.length||M===g[M.depth]){var P=l(b,_,M,U,k,v);d(M,P,c,h,g,v)}})}}function u(n,o,c,h){var g=x.extend({},o);return x.each(["color","colorAlpha","colorSaturation"],function(v){var b=n.get(v,!0);b==null&&c&&(b=c[v]),b==null&&(b=o[v]),b==null&&(b=h.get(v)),b!=null&&(g[v]=b)}),g}function a(n){var o=t(n,"color");if(o){var c=t(n,"colorAlpha"),h=t(n,"colorSaturation");return h&&(o=f.modifyHSL(o,null,null,h)),c&&(o=f.modifyAlpha(o,c)),o}}function i(n,o){return o!=null?f.modifyHSL(o,null,null,n):null}function t(n,o){var c=n[o];if(c!=null&&c!=="none")return c}function s(n,o,c,h,g,v){if(!v||!v.length)return;var b=e(o,"color")||g.color!=null&&g.color!=="none"&&(e(o,"colorAlpha")||e(o,"colorSaturation"));if(!b)return;var S=o.get("visualMin"),E=o.get("visualMax"),C=c.dataExtent.slice();S!=null&&S<C[0]&&(C[0]=S),E!=null&&E>C[1]&&(C[1]=E);var _=o.get("colorMappingBy"),T={type:b.name,dataExtent:C,visual:b.range};T.type==="color"&&(_==="index"||_==="id")?(T.mappingMethod="category",T.loop=!0):T.mappingMethod="linear";var w=new y(T);return w.__drColorMappingBy=_,w}function e(n,o){var c=n.get(o);return A(c)&&c.length?{name:o,range:c}:null}function l(n,o,c,h,g,v){var b=x.extend({},o);if(g){var S=g.type,E=S==="color"&&g.__drColorMappingBy,C=E==="index"?h:E==="id"?v.mapIdToIndex(c.getId()):c.getValue(n.get("visualDimension"));b[S]=g.mapValueToVisual(C)}return b}R.exports=p},kRqF:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("CP8R")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="FilterFilled";var i=A.forwardRef(a);L.default=i},"kVK+":function(R,L){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(r,y,f,x,A){var m,p,d=A*8-x-1,u=(1<<d)-1,a=u>>1,i=-7,t=f?A-1:0,s=f?-1:1,e=r[y+t];for(t+=s,m=e&(1<<-i)-1,e>>=-i,i+=d;i>0;m=m*256+r[y+t],t+=s,i-=8);for(p=m&(1<<-i)-1,m>>=-i,i+=x;i>0;p=p*256+r[y+t],t+=s,i-=8);if(m===0)m=1-a;else{if(m===u)return p?NaN:(e?-1:1)*Infinity;p=p+Math.pow(2,x),m=m-a}return(e?-1:1)*p*Math.pow(2,m-x)},L.write=function(r,y,f,x,A,m){var p,d,u,a=m*8-A-1,i=(1<<a)-1,t=i>>1,s=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=x?0:m-1,l=x?1:-1,n=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===Infinity?(d=isNaN(y)?1:0,p=i):(p=Math.floor(Math.log(y)/Math.LN2),y*(u=Math.pow(2,-p))<1&&(p--,u*=2),p+t>=1?y+=s/u:y+=s*Math.pow(2,1-t),y*u>=2&&(p++,u/=2),p+t>=i?(d=0,p=i):p+t>=1?(d=(y*u-1)*Math.pow(2,A),p=p+t):(d=y*Math.pow(2,t-1)*Math.pow(2,A),p=0));A>=8;r[f+e]=d&255,e+=l,d/=256,A-=8);for(p=p<<A|d,a+=A;a>0;r[f+e]=p&255,e+=l,p/=256,a-=8);r[f+e-l]|=n*128}},kekF:function(R,L){function r(y,f){return function(x){return y(f(x))}}R.exports=r},kj2x:function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=r("7hqr"),A=x.isDimensionStacked,m=y.indexOf;function p(c){return!(isNaN(parseFloat(c.x))&&isNaN(parseFloat(c.y)))}function d(c){return!isNaN(parseFloat(c.x))&&!isNaN(parseFloat(c.y))}function u(c,h,g,v,b,S){var E=[],C=A(h,v),_=C?h.getCalculationInfo("stackResultDimension"):v,T=o(h,_,c),w=h.indicesOfNearest(_,T)[0];E[b]=h.get(g,w),E[S]=h.get(_,w);var O=h.get(v,w),I=f.getPrecision(h.get(v,w));return I=Math.min(I,20),I>=0&&(E[S]=+E[S].toFixed(I)),[E,O]}var a=y.curry,i={min:a(u,"min"),max:a(u,"max"),average:a(u,"average")};function t(c,h){var g=c.getData(),v=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&v){var b=v.dimensions,S=s(h,g,v,c);if(h=y.clone(h),h.type&&i[h.type]&&S.baseAxis&&S.valueAxis){var E=m(b,S.baseAxis.dim),C=m(b,S.valueAxis.dim),_=i[h.type](g,S.baseDataDim,S.valueDataDim,E,C);h.coord=_[0],h.value=_[1]}else{for(var T=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],w=0;w<2;w++)i[T[w]]&&(T[w]=o(g,g.mapDimension(b[w]),T[w]));h.coord=T}}return h}function s(c,h,g,v){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?h.getDimension(c.valueIndex):c.valueDim,b.valueAxis=g.getAxis(e(v,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=v.getBaseAxis(),b.valueAxis=g.getOtherAxis(b.baseAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim),b.valueDataDim=h.mapDimension(b.valueAxis.dim)),b}function e(c,h){var g=c.getData(),v=g.dimensions;h=g.getDimension(h);for(var b=0;b<v.length;b++){var S=g.getDimensionInfo(v[b]);if(S.name===h)return S.coordDim}}function l(c,h){return c&&c.containData&&h.coord&&!p(h)?c.containData(h.coord):!0}function n(c,h,g,v){return v<2?c.coord&&c.coord[v]:c.value}function o(c,h,g){if(g==="average"){var v=0,b=0;return c.each(h,function(S,E){isNaN(S)||(v+=S,b++)}),v/b}else return g==="median"?c.getMedian(h):c.getDataExtent(h,!0)[g==="max"?1:0]}L.dataTransform=t,L.getAxisInfo=s,L.dataFilter=l,L.dimValueGetter=n,L.numCalculate=o},knOB:function(R,L,r){var y=r("bYtY"),f=r("hM6l");function x(m,p){f.call(this,"radius",m,p),this.type="category"}x.prototype={constructor:x,pointToData:function(m,p){return this.polar.pointToData(m,p)[this.dim==="radius"?0:1]},dataToRadius:f.prototype.dataToCoord,radiusToData:f.prototype.coordToData},y.inherits(x,f);var A=x;R.exports=A},ko1b:function(R,L,r){var y=r("bYtY"),f=r("T4UG"),x=r("Bsck"),A=r("Qxkt"),m=r("7aKB"),p=m.encodeHTML,d=m.addCommas,u=r("VaxA"),a=u.wrapTreePathInfo,i=f.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,l){var n={name:e.name,children:e.data};t(n);var o=e.levels||[];o=e.levels=s(o,l);var c=y.map(o||[],function(v){return new A(v,this,l)},this),h=x.createTree(n,this,null,g);function g(v){v.wrapMethod("getItemModel",function(b,S){var E=h.getNodeByDataIndex(S),C=c[E.depth];return C&&(b.parentModel=C),b})}return h.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),n=this.getRawValue(e),o=y.isArray(n)?d(n[0]):d(n),c=l.getName(e);return p(c+": "+o)},getDataParams:function(e){var l=f.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=a(n,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},y.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=y.createHashMap(),this._idIndexMapCount=0);var n=l.get(e);return n==null&&l.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function t(e){var l=0;y.each(e.children,function(o){t(o);var c=o.value;y.isArray(c)&&(c=c[0]),l+=c});var n=e.value;y.isArray(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=l),n<0&&(n=0),y.isArray(e.value)?e.value[0]=n:e.value=n}function s(e,l){var n=l.get("color");if(!n)return;e=e||[];var o;if(y.each(e,function(h){var g=new A(h),v=g.get("color");(g.get("itemStyle.color")||v&&v!=="none")&&(o=!0)}),!o){var c=e[0]||(e[0]={});c.color=n.slice()}return e}R.exports=i},kuFg:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("WtK/"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},kzFp:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y=L.pick=function(x,A){var m={};return A.forEach(function(p){m[p]=x[p]}),m}},kzvK:function(R,L,r){var y=r("sS/r"),f=y.extend({type:"timeline"});R.exports=f},"l+S1":function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="SearchOutlined";var d=L.a=f.forwardRef(p)},lE7J:function(R,L,r){var y=r("OELB"),f=y.round;function x(d,u,a,i){var t={},s=d[1]-d[0],e=t.interval=y.nice(s/u,!0);a!=null&&e<a&&(e=t.interval=a),i!=null&&e>i&&(e=t.interval=i);var l=t.intervalPrecision=A(e),n=t.niceTickExtent=[f(Math.ceil(d[0]/e)*e,l),f(Math.floor(d[1]/e)*e,l)];return p(n,d),t}function A(d){return y.getPrecisionSafe(d)+2}function m(d,u,a){d[u]=Math.max(Math.min(d[u],a[1]),a[0])}function p(d,u){!isFinite(d[0])&&(d[0]=u[0]),!isFinite(d[1])&&(d[1]=u[1]),m(d,0,u),m(d,1,u),d[0]>d[1]&&(d[0]=d[1])}L.intervalScaleNiceTicks=x,L.getIntervalPrecision=A,L.fixExtent=p},lELe:function(R,L,r){var y=r("bYtY");function f(x){var A=[];y.each(x.series,function(m){m&&m.type==="map"&&(A.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}R.exports=f},lLGD:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("nVfU"),A=x.layout,m=x.largeLayout;r("Wqna"),r("F7hV"),r("Z8zF"),r("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,f.curry(A,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(p){p.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(R,L,r){"use strict";function y(ue){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Qt){return typeof Qt}:y=function(Qt){return Qt&&typeof Symbol=="function"&&Qt.constructor===Symbol&&Qt!==Symbol.prototype?"symbol":typeof Qt},y(ue)}Object.defineProperty(L,"__esModule",{value:!0}),L.deflateInit=Ve,L.deflateInit2=Gt,L.deflateReset=Vt,L.deflateResetKeep=dr,L.deflateSetHeader=Mt,L.deflate=me,L.deflateEnd=te,L.deflateSetDictionary=Ze,L.deflateInfo=L.Z_DEFLATED=L.Z_UNKNOWN=L.Z_DEFAULT_STRATEGY=L.Z_FIXED=L.Z_RLE=L.Z_HUFFMAN_ONLY=L.Z_FILTERED=L.Z_DEFAULT_COMPRESSION=L.Z_BUF_ERROR=L.Z_DATA_ERROR=L.Z_STREAM_ERROR=L.Z_STREAM_END=L.Z_OK=L.Z_BLOCK=L.Z_FINISH=L.Z_FULL_FLUSH=L.Z_PARTIAL_FLUSH=L.Z_NO_FLUSH=void 0;var f=a(r("6BzB")),x=a(r("c5fP")),A=d(r("xlC8")),m=d(r("QV2g")),p=d(r("xSIq"));function d(ue){return ue&&ue.__esModule?ue:{default:ue}}function u(){if(typeof WeakMap!="function")return null;var ue=new WeakMap;return u=function(){return ue},ue}function a(ue){if(ue&&ue.__esModule)return ue;if(ue===null||y(ue)!=="object"&&typeof ue!="function")return{default:ue};var St=u();if(St&&St.has(ue))return St.get(ue);var Qt={},dt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Jt in ue)if(Object.prototype.hasOwnProperty.call(ue,Jt)){var $t=dt?Object.getOwnPropertyDescriptor(ue,Jt):null;$t&&($t.get||$t.set)?Object.defineProperty(Qt,Jt,$t):Qt[Jt]=ue[Jt]}return Qt.default=ue,St&&St.set(ue,Qt),Qt}var i=0;L.Z_NO_FLUSH=i;var t=1;L.Z_PARTIAL_FLUSH=t;var s=3;L.Z_FULL_FLUSH=s;var e=4;L.Z_FINISH=e;var l=5;L.Z_BLOCK=l;var n=0;L.Z_OK=n;var o=1;L.Z_STREAM_END=o;var c=-2;L.Z_STREAM_ERROR=c;var h=-3;L.Z_DATA_ERROR=h;var g=-5;L.Z_BUF_ERROR=g;var v=-1;L.Z_DEFAULT_COMPRESSION=v;var b=1;L.Z_FILTERED=b;var S=2;L.Z_HUFFMAN_ONLY=S;var E=3;L.Z_RLE=E;var C=4;L.Z_FIXED=C;var _=0;L.Z_DEFAULT_STRATEGY=_;var T=2;L.Z_UNKNOWN=T;var w=8;L.Z_DEFLATED=w;var O=9,I=15,k=8,M=29,U=256,P=U+1+M,X=30,F=19,j=2*P+1,K=15,z=3,V=258,Q=V+z+1,G=32,ee=42,se=69,ye=73,he=91,ke=103,Pe=113,Ue=666,$e=1,Ge=2,ht=3,Fe=4,oe=3;function rt(ue,St){return ue.msg=p.default[St],St}function fe(ue){return(ue<<1)-(ue>4?9:0)}function J(ue){for(var St=ue.length;--St>=0;)ue[St]=0}function Y(ue){var St=ue.state,Qt=St.pending;if(Qt>ue.avail_out&&(Qt=ue.avail_out),Qt===0)return;f.arraySet(ue.output,St.pending_buf,St.pending_out,Qt,ue.next_out),ue.next_out+=Qt,St.pending_out+=Qt,ue.total_out+=Qt,ue.avail_out-=Qt,St.pending-=Qt,St.pending===0&&(St.pending_out=0)}function $(ue,St){x._tr_flush_block(ue,ue.block_start>=0?ue.block_start:-1,ue.strstart-ue.block_start,St),ue.block_start=ue.strstart,Y(ue.strm)}function de(ue,St){ue.pending_buf[ue.pending++]=St}function we(ue,St){ue.pending_buf[ue.pending++]=St>>>8&255,ue.pending_buf[ue.pending++]=St&255}function Ce(ue,St,Qt,dt){var Jt=ue.avail_in;return Jt>dt&&(Jt=dt),Jt===0?0:(ue.avail_in-=Jt,f.arraySet(St,ue.input,ue.next_in,Jt,Qt),ue.state.wrap===1?ue.adler=(0,A.default)(ue.adler,St,Jt,Qt):ue.state.wrap===2&&(ue.adler=(0,m.default)(ue.adler,St,Jt,Qt)),ue.next_in+=Jt,ue.total_in+=Jt,Jt)}function Se(ue,St){var Qt=ue.max_chain_length,dt=ue.strstart,Jt,$t,tn=ue.prev_length,kt=ue.nice_match,tr=ue.strstart>ue.w_size-Q?ue.strstart-(ue.w_size-Q):0,Bt=ue.window,ft=ue.w_mask,it=ue.prev,Or=ue.strstart+V,an=Bt[dt+tn-1],En=Bt[dt+tn];ue.prev_length>=ue.good_match&&(Qt>>=2),kt>ue.lookahead&&(kt=ue.lookahead);do{if(Jt=St,Bt[Jt+tn]!==En||Bt[Jt+tn-1]!==an||Bt[Jt]!==Bt[dt]||Bt[++Jt]!==Bt[dt+1])continue;dt+=2,Jt++;do;while(Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&Bt[++dt]===Bt[++Jt]&&dt<Or);if($t=V-(Or-dt),dt=Or-V,$t>tn){if(ue.match_start=St,tn=$t,$t>=kt)break;an=Bt[dt+tn-1],En=Bt[dt+tn]}}while((St=it[St&ft])>tr&&--Qt!==0);return tn<=ue.lookahead?tn:ue.lookahead}function le(ue){var St=ue.w_size,Qt,dt,Jt,$t,tn;do{if($t=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=St+(St-Q)){f.arraySet(ue.window,ue.window,St,St,0),ue.match_start-=St,ue.strstart-=St,ue.block_start-=St,dt=ue.hash_size,Qt=dt;do Jt=ue.head[--Qt],ue.head[Qt]=Jt>=St?Jt-St:0;while(--dt);dt=St,Qt=dt;do Jt=ue.prev[--Qt],ue.prev[Qt]=Jt>=St?Jt-St:0;while(--dt);$t+=St}if(ue.strm.avail_in===0)break;if(dt=Ce(ue.strm,ue.window,ue.strstart+ue.lookahead,$t),ue.lookahead+=dt,ue.lookahead+ue.insert>=z)for(tn=ue.strstart-ue.insert,ue.ins_h=ue.window[tn],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[tn+1])&ue.hash_mask;ue.insert&&!(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[tn+z-1])&ue.hash_mask,ue.prev[tn&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=tn,tn++,ue.insert--,ue.lookahead+ue.insert<z););}while(ue.lookahead<Q&&ue.strm.avail_in!==0)}function pe(ue,St){var Qt=65535;for(Qt>ue.pending_buf_size-5&&(Qt=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(le(ue),ue.lookahead===0&&St===i)return $e;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var dt=ue.block_start+Qt;if((ue.strstart===0||ue.strstart>=dt)&&(ue.lookahead=ue.strstart-dt,ue.strstart=dt,$(ue,!1),ue.strm.avail_out===0))return $e;if(ue.strstart-ue.block_start>=ue.w_size-Q&&($(ue,!1),ue.strm.avail_out===0))return $e}return ue.insert=0,St===e?($(ue,!0),ue.strm.avail_out===0?ht:Fe):(ue.strstart>ue.block_start&&($(ue,!1),ue.strm.avail_out===0),$e)}function _e(ue,St){for(var Qt,dt;;){if(ue.lookahead<Q){if(le(ue),ue.lookahead<Q&&St===i)return $e;if(ue.lookahead===0)break}if(Qt=0,ue.lookahead>=z&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+z-1])&ue.hash_mask,Qt=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),Qt!==0&&ue.strstart-Qt<=ue.w_size-Q&&(ue.match_length=Se(ue,Qt)),ue.match_length>=z)if(dt=x._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-z),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=z){ue.match_length--;do ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+z-1])&ue.hash_mask,Qt=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart;while(--ue.match_length!==0);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else dt=x._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(dt&&($(ue,!1),ue.strm.avail_out===0))return $e}return ue.insert=ue.strstart<z-1?ue.strstart:z-1,St===e?($(ue,!0),ue.strm.avail_out===0?ht:Fe):ue.last_lit&&($(ue,!1),ue.strm.avail_out===0)?$e:Ge}function tt(ue,St){for(var Qt,dt,Jt;;){if(ue.lookahead<Q){if(le(ue),ue.lookahead<Q&&St===i)return $e;if(ue.lookahead===0)break}if(Qt=0,ue.lookahead>=z&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+z-1])&ue.hash_mask,Qt=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=z-1,Qt!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-Qt<=ue.w_size-Q&&(ue.match_length=Se(ue,Qt),ue.match_length<=5&&(ue.strategy===b||ue.match_length===z&&ue.strstart-ue.match_start>4096)&&(ue.match_length=z-1)),ue.prev_length>=z&&ue.match_length<=ue.prev_length){Jt=ue.strstart+ue.lookahead-z,dt=x._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-z),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;do++ue.strstart<=Jt&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+z-1])&ue.hash_mask,Qt=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart);while(--ue.prev_length!==0);if(ue.match_available=0,ue.match_length=z-1,ue.strstart++,dt&&($(ue,!1),ue.strm.avail_out===0))return $e}else if(ue.match_available){if(dt=x._tr_tally(ue,0,ue.window[ue.strstart-1]),dt&&$(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return $e}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(dt=x._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<z-1?ue.strstart:z-1,St===e?($(ue,!0),ue.strm.avail_out===0?ht:Fe):ue.last_lit&&($(ue,!1),ue.strm.avail_out===0)?$e:Ge}function gt(ue,St){for(var Qt,dt,Jt,$t,tn=ue.window;;){if(ue.lookahead<=V){if(le(ue),ue.lookahead<=V&&St===i)return $e;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=z&&ue.strstart>0&&(Jt=ue.strstart-1,dt=tn[Jt],dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt])){$t=ue.strstart+V;do;while(dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&dt===tn[++Jt]&&Jt<$t);ue.match_length=V-($t-Jt),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=z?(Qt=x._tr_tally(ue,1,ue.match_length-z),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Qt=x._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Qt&&($(ue,!1),ue.strm.avail_out===0))return $e}return ue.insert=0,St===e?($(ue,!0),ue.strm.avail_out===0?ht:Fe):ue.last_lit&&($(ue,!1),ue.strm.avail_out===0)?$e:Ge}function ct(ue,St){for(var Qt;;){if(ue.lookahead===0&&(le(ue),ue.lookahead===0)){if(St===i)return $e;break}if(ue.match_length=0,Qt=x._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Qt&&($(ue,!1),ue.strm.avail_out===0))return $e}return ue.insert=0,St===e?($(ue,!0),ue.strm.avail_out===0?ht:Fe):ue.last_lit&&($(ue,!1),ue.strm.avail_out===0)?$e:Ge}function je(ue,St,Qt,dt,Jt){this.good_length=ue,this.max_lazy=St,this.nice_length=Qt,this.max_chain=dt,this.func=Jt}var Zt;Zt=[new je(0,0,0,0,pe),new je(4,4,8,4,_e),new je(4,5,16,8,_e),new je(4,6,32,32,_e),new je(4,4,16,16,tt),new je(8,16,32,32,tt),new je(8,16,128,128,tt),new je(8,32,128,256,tt),new je(32,128,258,1024,tt),new je(32,258,258,4096,tt)];function ut(ue){ue.window_size=2*ue.w_size,J(ue.head),ue.max_lazy_match=Zt[ue.level].max_lazy,ue.good_match=Zt[ue.level].good_length,ue.nice_match=Zt[ue.level].nice_length,ue.max_chain_length=Zt[ue.level].max_chain,ue.strstart=0,ue.block_start=0,ue.lookahead=0,ue.insert=0,ue.match_length=ue.prev_length=z-1,ue.match_available=0,ue.ins_h=0}function Ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new f.Buf16(j*2),this.dyn_dtree=new f.Buf16((2*X+1)*2),this.bl_tree=new f.Buf16((2*F+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(K+1),this.heap=new f.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function dr(ue){var St;return!ue||!ue.state?rt(ue,c):(ue.total_in=ue.total_out=0,ue.data_type=T,St=ue.state,St.pending=0,St.pending_out=0,St.wrap<0&&(St.wrap=-St.wrap),St.status=St.wrap?ee:Pe,ue.adler=St.wrap===2?0:1,St.last_flush=i,x._tr_init(St),n)}function Vt(ue){var St=dr(ue);return St===n&&ut(ue.state),St}function Mt(ue,St){return!ue||!ue.state||ue.state.wrap!==2?c:(ue.state.gzhead=St,n)}function Gt(ue,St,Qt,dt,Jt,$t){if(!ue)return c;var tn=1;if(St===v&&(St=6),dt<0?(tn=0,dt=-dt):dt>15&&(tn=2,dt-=16),Jt<1||Jt>O||Qt!==w||dt<8||dt>15||St<0||St>9||$t<0||$t>C)return rt(ue,c);dt===8&&(dt=9);var kt=new Ht;return ue.state=kt,kt.strm=ue,kt.wrap=tn,kt.gzhead=null,kt.w_bits=dt,kt.w_size=1<<kt.w_bits,kt.w_mask=kt.w_size-1,kt.hash_bits=Jt+7,kt.hash_size=1<<kt.hash_bits,kt.hash_mask=kt.hash_size-1,kt.hash_shift=~~((kt.hash_bits+z-1)/z),kt.window=new f.Buf8(kt.w_size*2),kt.head=new f.Buf16(kt.hash_size),kt.prev=new f.Buf16(kt.w_size),kt.lit_bufsize=1<<Jt+6,kt.pending_buf_size=kt.lit_bufsize*4,kt.pending_buf=new f.Buf8(kt.pending_buf_size),kt.d_buf=1*kt.lit_bufsize,kt.l_buf=(1+2)*kt.lit_bufsize,kt.level=St,kt.strategy=$t,kt.method=Qt,Vt(ue)}function Ve(ue,St){return Gt(ue,St,w,I,k,_)}function me(ue,St){var Qt,dt,Jt,$t;if(!ue||!ue.state||St>l||St<0)return ue?rt(ue,c):c;if(dt=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||dt.status===Ue&&St!==e)return rt(ue,ue.avail_out===0?g:c);if(dt.strm=ue,Qt=dt.last_flush,dt.last_flush=St,dt.status===ee)if(dt.wrap===2)ue.adler=0,de(dt,31),de(dt,139),de(dt,8),dt.gzhead?(de(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),de(dt,dt.gzhead.time&255),de(dt,dt.gzhead.time>>8&255),de(dt,dt.gzhead.time>>16&255),de(dt,dt.gzhead.time>>24&255),de(dt,dt.level===9?2:dt.strategy>=S||dt.level<2?4:0),de(dt,dt.gzhead.os&255),dt.gzhead.extra&&dt.gzhead.extra.length&&(de(dt,dt.gzhead.extra.length&255),de(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=se):(de(dt,0),de(dt,0),de(dt,0),de(dt,0),de(dt,0),de(dt,dt.level===9?2:dt.strategy>=S||dt.level<2?4:0),de(dt,oe),dt.status=Pe);else{var tn=w+(dt.w_bits-8<<4)<<8,kt=-1;dt.strategy>=S||dt.level<2?kt=0:dt.level<6?kt=1:dt.level===6?kt=2:kt=3,tn|=kt<<6,dt.strstart!==0&&(tn|=G),tn+=31-tn%31,dt.status=Pe,we(dt,tn),dt.strstart!==0&&(we(dt,ue.adler>>>16),we(dt,ue.adler&65535)),ue.adler=1}if(dt.status===se)if(dt.gzhead.extra){for(Jt=dt.pending;dt.gzindex<(dt.gzhead.extra.length&65535)&&!(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),Y(ue),Jt=dt.pending,dt.pending===dt.pending_buf_size));)de(dt,dt.gzhead.extra[dt.gzindex]&255),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=ye)}else dt.status=ye;if(dt.status===ye)if(dt.gzhead.name){Jt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),Y(ue),Jt=dt.pending,dt.pending===dt.pending_buf_size)){$t=1;break}dt.gzindex<dt.gzhead.name.length?$t=dt.gzhead.name.charCodeAt(dt.gzindex++)&255:$t=0,de(dt,$t)}while($t!==0);dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),$t===0&&(dt.gzindex=0,dt.status=he)}else dt.status=he;if(dt.status===he)if(dt.gzhead.comment){Jt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),Y(ue),Jt=dt.pending,dt.pending===dt.pending_buf_size)){$t=1;break}dt.gzindex<dt.gzhead.comment.length?$t=dt.gzhead.comment.charCodeAt(dt.gzindex++)&255:$t=0,de(dt,$t)}while($t!==0);dt.gzhead.hcrc&&dt.pending>Jt&&(ue.adler=(0,m.default)(ue.adler,dt.pending_buf,dt.pending-Jt,Jt)),$t===0&&(dt.status=ke)}else dt.status=ke;if(dt.status===ke&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&Y(ue),dt.pending+2<=dt.pending_buf_size&&(de(dt,ue.adler&255),de(dt,ue.adler>>8&255),ue.adler=0,dt.status=Pe)):dt.status=Pe),dt.pending!==0){if(Y(ue),ue.avail_out===0)return dt.last_flush=-1,n}else if(ue.avail_in===0&&fe(St)<=fe(Qt)&&St!==e)return rt(ue,g);if(dt.status===Ue&&ue.avail_in!==0)return rt(ue,g);if(ue.avail_in!==0||dt.lookahead!==0||St!==i&&dt.status!==Ue){var tr=dt.strategy===S?ct(dt,St):dt.strategy===E?gt(dt,St):Zt[dt.level].func(dt,St);if((tr===ht||tr===Fe)&&(dt.status=Ue),tr===$e||tr===ht)return ue.avail_out===0&&(dt.last_flush=-1),n;if(tr===Ge&&(St===t?x._tr_align(dt):St!==l&&(x._tr_stored_block(dt,0,0,!1),St===s&&(J(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),Y(ue),ue.avail_out===0))return dt.last_flush=-1,n}return St!==e?n:dt.wrap<=0?o:(dt.wrap===2?(de(dt,ue.adler&255),de(dt,ue.adler>>8&255),de(dt,ue.adler>>16&255),de(dt,ue.adler>>24&255),de(dt,ue.total_in&255),de(dt,ue.total_in>>8&255),de(dt,ue.total_in>>16&255),de(dt,ue.total_in>>24&255)):(we(dt,ue.adler>>>16),we(dt,ue.adler&65535)),Y(ue),dt.wrap>0&&(dt.wrap=-dt.wrap),dt.pending!==0?n:o)}function te(ue){var St;return!ue||!ue.state?c:(St=ue.state.status,St!==ee&&St!==se&&St!==ye&&St!==he&&St!==ke&&St!==Pe&&St!==Ue?rt(ue,c):(ue.state=null,St===Pe?rt(ue,h):n))}function Ze(ue,St){var Qt=St.length,dt,Jt,$t,tn,kt,tr,Bt,ft;if(!ue||!ue.state)return c;if(dt=ue.state,tn=dt.wrap,tn===2||tn===1&&dt.status!==ee||dt.lookahead)return c;for(tn===1&&(ue.adler=(0,A.default)(ue.adler,St,Qt,0)),dt.wrap=0,Qt>=dt.w_size&&(tn===0&&(J(dt.head),dt.strstart=0,dt.block_start=0,dt.insert=0),ft=new f.Buf8(dt.w_size),f.arraySet(ft,St,Qt-dt.w_size,dt.w_size,0),St=ft,Qt=dt.w_size),kt=ue.avail_in,tr=ue.next_in,Bt=ue.input,ue.avail_in=Qt,ue.next_in=0,ue.input=St,le(dt);dt.lookahead>=z;){Jt=dt.strstart,$t=dt.lookahead-(z-1);do dt.ins_h=(dt.ins_h<<dt.hash_shift^dt.window[Jt+z-1])&dt.hash_mask,dt.prev[Jt&dt.w_mask]=dt.head[dt.ins_h],dt.head[dt.ins_h]=Jt,Jt++;while(--$t);dt.strstart=Jt,dt.lookahead=z-1,le(dt)}return dt.strstart+=dt.lookahead,dt.block_start=dt.strstart,dt.insert=dt.lookahead,dt.lookahead=0,dt.match_length=dt.prev_length=z-1,dt.match_available=0,ue.next_in=tr,ue.input=Bt,ue.avail_in=kt,dt.wrap=tn,n}var Xe="pako deflate (from Nodeca project)";L.deflateInfo=Xe},lOQZ:function(R,L,r){var y=r("QBsz"),f=r("U/Mo"),x=f.getSymbolSize,A=f.getNodeGlobalScale,m=Math.PI,p=[];function d(a,i){var t=a.coordinateSystem;if(t&&t.type!=="view")return;var s=t.getBoundingRect(),e=a.getData(),l=e.graph,n=s.width/2+s.x,o=s.height/2+s.y,c=Math.min(s.width,s.height)/2,h=e.count();if(e.setLayout({cx:n,cy:o}),!h)return;u[i](a,t,l,e,c,n,o,h),l.eachEdge(function(g){var v=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),S=y.clone(g.node2.getLayout()),E,C=(b[0]+S[0])/2,_=(b[1]+S[1])/2;+v&&(v*=3,E=[n*v+C*(1-v),o*v+_*(1-v)]),g.setLayout([b,S,E])})}var u={value:function(a,i,t,s,e,l,n,o){var c=0,h=s.getSum("value"),g=Math.PI*2/(h||o);t.eachNode(function(v){var b=v.getValue("value"),S=g*(h?b:1)/2;c+=S,v.setLayout([e*Math.cos(c)+l,e*Math.sin(c)+n]),c+=S})},symbolSize:function(a,i,t,s,e,l,n,o){var c=0;p.length=o;var h=A(a);t.eachNode(function(b){var S=x(b);isNaN(S)&&(S=2),S<0&&(S=0),S*=h;var E=Math.asin(S/2/e);isNaN(E)&&(E=m/2),p[b.dataIndex]=E,c+=E*2});var g=(2*m-c)/o/2,v=0;t.eachNode(function(b){var S=g+p[b.dataIndex];v+=S,b.setLayout([e*Math.cos(v)+l,e*Math.sin(v)+n]),v+=S})}};L.circularLayout=d},lPiR:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(f){var x=y,A=x.lib,m=A.WordArray,p=A.Hasher,d=x.algo,u=[],a=[];(function(){function s(o){for(var c=f.sqrt(o),h=2;h<=c;h++)if(!(o%h))return!1;return!0}function e(o){return(o-(o|0))*4294967296|0}for(var l=2,n=0;n<64;)s(l)&&(n<8&&(u[n]=e(f.pow(l,1/2))),a[n]=e(f.pow(l,1/3)),n++),l++})();var i=[],t=d.SHA256=p.extend({_doReset:function(){this._hash=new m.init(u.slice(0))},_doProcessBlock:function(e,l){for(var n=this._hash.words,o=n[0],c=n[1],h=n[2],g=n[3],v=n[4],b=n[5],S=n[6],E=n[7],C=0;C<64;C++){if(C<16)i[C]=e[l+C]|0;else{var _=i[C-15],T=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,w=i[C-2],O=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;i[C]=T+i[C-7]+O+i[C-16]}var I=v&b^~v&S,k=o&c^o&h^c&h,M=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),U=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),P=E+U+I+a[C]+i[C],X=M+k;E=S,S=b,b=v,v=g+P|0,g=h,h=c,c=o,o=P+X|0}n[0]=n[0]+o|0,n[1]=n[1]+c|0,n[2]=n[2]+h|0,n[3]=n[3]+g|0,n[4]=n[4]+v|0,n[5]=n[5]+b|0,n[6]=n[6]+S|0,n[7]=n[7]+E|0},_doFinalize:function(){var e=this._data,l=e.words,n=this._nDataBytes*8,o=e.sigBytes*8;return l[o>>>5]|=128<<24-o%32,l[(o+64>>>9<<4)+14]=f.floor(n/4294967296),l[(o+64>>>9<<4)+15]=n,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=p.clone.call(this);return e._hash=this._hash.clone(),e}});x.SHA256=p._createHelper(t),x.HmacSHA256=p._createHmacHelper(t)}(Math),y.SHA256})},lSCD:function(R,L,r){var y=r("NykK"),f=r("GoyQ"),x="[object AsyncFunction]",A="[object Function]",m="[object GeneratorFunction]",p="[object Proxy]";function d(u){if(!f(u))return!1;var a=y(u);return a==A||a==m||a==x||a==p}R.exports=d},lUTK:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("x54q"),A=r.n(x),m=r("5Dmo")},lZu9:function(R,L,r){(function(y){y(r("VrN/"),r("1eCo"),r("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(f,x){var A=y.getMode(f,"text/html"),m=A.name=="null";function p(K){if(y.findModeByName){var z=y.findModeByName(K);z&&(K=z.mime||z.mimes[0])}var V=y.getMode(f,K);return V.name=="null"?null:V}x.highlightFormatting===void 0&&(x.highlightFormatting=!1),x.maxBlockquoteDepth===void 0&&(x.maxBlockquoteDepth=0),x.taskLists===void 0&&(x.taskLists=!1),x.strikethrough===void 0&&(x.strikethrough=!1),x.emoji===void 0&&(x.emoji=!1),x.fencedCodeBlockHighlighting===void 0&&(x.fencedCodeBlockHighlighting=!0),x.fencedCodeBlockDefaultMode===void 0&&(x.fencedCodeBlockDefaultMode="text/plain"),x.xml===void 0&&(x.xml=!0),x.tokenTypeOverrides===void 0&&(x.tokenTypeOverrides={});var d={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var u in d)d.hasOwnProperty(u)&&x.tokenTypeOverrides[u]&&(d[u]=x.tokenTypeOverrides[u]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,i=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,s=x.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,o=/^\s*\[[^\]]+?\]:.*$/,c=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,h=" ";function g(K,z,V){return z.f=z.inline=V,V(K,z)}function v(K,z,V){return z.f=z.block=V,V(K,z)}function b(K){return!K||!/\S/.test(K.string)}function S(K){if(K.linkTitle=!1,K.linkHref=!1,K.linkText=!1,K.em=!1,K.strong=!1,K.strikethrough=!1,K.quote=0,K.indentedCode=!1,K.f==C){var z=m;if(!z){var V=y.innerMode(A,K.htmlState);z=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}z&&(K.f=O,K.block=E,K.htmlState=null)}return K.trailingSpace=0,K.trailingSpaceNewLine=!1,K.prevLine=K.thisLine,K.thisLine={stream:null},null}function E(K,z){var V=K.column()===z.indentation,Q=b(z.prevLine.stream),G=z.indentedCode,ee=z.prevLine.hr,se=z.list!==!1,ye=(z.listStack[z.listStack.length-1]||0)+3;z.indentedCode=!1;var he=z.indentation;if(z.indentationDiff===null&&(z.indentationDiff=z.indentation,se)){for(z.list=null;he<z.listStack[z.listStack.length-1];)z.listStack.pop(),z.listStack.length?z.indentation=z.listStack[z.listStack.length-1]:z.list=!1;z.list!==!1&&(z.indentationDiff=he-z.listStack[z.listStack.length-1])}var ke=!Q&&!ee&&!z.prevLine.header&&(!se||!G)&&!z.prevLine.fencedCodeEnd,Pe=(z.list===!1||ee||Q)&&z.indentation<=ye&&K.match(a),Ue=null;if(z.indentationDiff>=4&&(G||z.prevLine.fencedCodeEnd||z.prevLine.header||Q))return K.skipToEnd(),z.indentedCode=!0,d.code;if(K.eatSpace())return null;if(V&&z.indentation<=ye&&(Ue=K.match(s))&&Ue[1].length<=6)return z.quote=0,z.header=Ue[1].length,z.thisLine.header=!0,x.highlightFormatting&&(z.formatting="header"),z.f=z.inline,T(z);if(z.indentation<=ye&&K.eat(">"))return z.quote=V?1:z.quote+1,x.highlightFormatting&&(z.formatting="quote"),K.eatSpace(),T(z);if(!Pe&&!z.setext&&V&&z.indentation<=ye&&(Ue=K.match(i))){var $e=Ue[1]?"ol":"ul";return z.indentation=he+K.current().length,z.list=!0,z.quote=0,z.listStack.push(z.indentation),z.em=!1,z.strong=!1,z.code=!1,z.strikethrough=!1,x.taskLists&&K.match(t,!1)&&(z.taskList=!0),z.f=z.inline,x.highlightFormatting&&(z.formatting=["list","list-"+$e]),T(z)}else{if(V&&z.indentation<=ye&&(Ue=K.match(n,!0)))return z.quote=0,z.fencedEndRE=new RegExp(Ue[1]+"+ *$"),z.localMode=x.fencedCodeBlockHighlighting&&p(Ue[2]||x.fencedCodeBlockDefaultMode),z.localMode&&(z.localState=y.startState(z.localMode)),z.f=z.block=_,x.highlightFormatting&&(z.formatting="code-block"),z.code=-1,T(z);if(z.setext||(!ke||!se)&&!z.quote&&z.list===!1&&!z.code&&!Pe&&!o.test(K.string)&&(Ue=K.lookAhead(1))&&(Ue=Ue.match(e)))return z.setext?(z.header=z.setext,z.setext=0,K.skipToEnd(),x.highlightFormatting&&(z.formatting="header")):(z.header=Ue[0].charAt(0)=="="?1:2,z.setext=z.header),z.thisLine.header=!0,z.f=z.inline,T(z);if(Pe)return K.skipToEnd(),z.hr=!0,z.thisLine.hr=!0,d.hr;if(K.peek()==="[")return g(K,z,P)}return g(K,z,z.inline)}function C(K,z){var V=A.token(K,z.htmlState);if(!m){var Q=y.innerMode(A,z.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||z.md_inside&&K.current().indexOf(">")>-1)&&(z.f=O,z.block=E,z.htmlState=null)}return V}function _(K,z){var V=z.listStack[z.listStack.length-1]||0,Q=z.indentation<V,G=V+3;if(z.fencedEndRE&&z.indentation<=G&&(Q||K.match(z.fencedEndRE))){x.highlightFormatting&&(z.formatting="code-block");var ee;return Q||(ee=T(z)),z.localMode=z.localState=null,z.block=E,z.f=O,z.fencedEndRE=null,z.code=0,z.thisLine.fencedCodeEnd=!0,Q?v(K,z,z.block):ee}else return z.localMode?z.localMode.token(K,z.localState):(K.skipToEnd(),d.code)}function T(K){var z=[];if(K.formatting){z.push(d.formatting),typeof K.formatting=="string"&&(K.formatting=[K.formatting]);for(var V=0;V<K.formatting.length;V++)z.push(d.formatting+"-"+K.formatting[V]),K.formatting[V]==="header"&&z.push(d.formatting+"-"+K.formatting[V]+"-"+K.header),K.formatting[V]==="quote"&&(!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.formatting+"-"+K.formatting[V]+"-"+K.quote):z.push("error"))}if(K.taskOpen)return z.push("meta"),z.length?z.join(" "):null;if(K.taskClosed)return z.push("property"),z.length?z.join(" "):null;if(K.linkHref?z.push(d.linkHref,"url"):(K.strong&&z.push(d.strong),K.em&&z.push(d.em),K.strikethrough&&z.push(d.strikethrough),K.emoji&&z.push(d.emoji),K.linkText&&z.push(d.linkText),K.code&&z.push(d.code),K.image&&z.push(d.image),K.imageAltText&&z.push(d.imageAltText,"link"),K.imageMarker&&z.push(d.imageMarker)),K.header&&z.push(d.header,d.header+"-"+K.header),K.quote&&(z.push(d.quote),!x.maxBlockquoteDepth||x.maxBlockquoteDepth>=K.quote?z.push(d.quote+"-"+K.quote):z.push(d.quote+"-"+x.maxBlockquoteDepth)),K.list!==!1){var Q=(K.listStack.length-1)%3;Q?Q===1?z.push(d.list2):z.push(d.list3):z.push(d.list1)}return K.trailingSpaceNewLine?z.push("trailing-space-new-line"):K.trailingSpace&&z.push("trailing-space-"+(K.trailingSpace%2?"a":"b")),z.length?z.join(" "):null}function w(K,z){return K.match(l,!0)?T(z):void 0}function O(K,z){var V=z.text(K,z);if(typeof V!="undefined")return V;if(z.list)return z.list=null,T(z);if(z.taskList){var Q=K.match(t,!0)[1]===" ";return Q?z.taskOpen=!0:z.taskClosed=!0,x.highlightFormatting&&(z.formatting="task"),z.taskList=!1,T(z)}if(z.taskOpen=!1,z.taskClosed=!1,z.header&&K.match(/^#+$/,!0))return x.highlightFormatting&&(z.formatting="header"),T(z);var G=K.next();if(z.linkTitle){z.linkTitle=!1;var ee=G;G==="("&&(ee=")"),ee=(ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var se="^\\s*(?:[^"+ee+"\\\\]+|\\\\\\\\|\\\\.)"+ee;if(K.match(new RegExp(se),!0))return d.linkHref}if(G==="`"){var ye=z.formatting;x.highlightFormatting&&(z.formatting="code"),K.eatWhile("`");var he=K.current().length;if(z.code==0&&(!z.quote||he==1))return z.code=he,T(z);if(he==z.code){var ke=T(z);return z.code=0,ke}else return z.formatting=ye,T(z)}else if(z.code)return T(z);if(G==="\\"&&(K.next(),x.highlightFormatting)){var Pe=T(z),Ue=d.formatting+"-escape";return Pe?Pe+" "+Ue:Ue}if(G==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return z.imageMarker=!0,z.image=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="["&&z.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return z.imageMarker=!1,z.imageAltText=!0,x.highlightFormatting&&(z.formatting="image"),T(z);if(G==="]"&&z.imageAltText){x.highlightFormatting&&(z.formatting="image");var Pe=T(z);return z.imageAltText=!1,z.image=!1,z.inline=z.f=k,Pe}if(G==="["&&!z.image)return z.linkText&&K.match(/^.*?\]/)||(z.linkText=!0,x.highlightFormatting&&(z.formatting="link")),T(z);if(G==="]"&&z.linkText){x.highlightFormatting&&(z.formatting="link");var Pe=T(z);return z.linkText=!1,z.inline=z.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?k:O,Pe}if(G==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Pe=T(z);return Pe?Pe+=" ":Pe="",Pe+d.linkInline}if(G==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){z.f=z.inline=I,x.highlightFormatting&&(z.formatting="link");var Pe=T(z);return Pe?Pe+=" ":Pe="",Pe+d.linkEmail}if(x.xml&&G==="<"&&K.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $e=K.string.indexOf(">",K.pos);if($e!=-1){var Ge=K.string.substring(K.start,$e);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ge)&&(z.md_inside=!0)}return K.backUp(1),z.htmlState=y.startState(A),v(K,z,C)}if(x.xml&&G==="<"&&K.match(/^\/\w*?>/))return z.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var ht=1,Fe=K.pos==1?" ":K.string.charAt(K.pos-2);ht<3&&K.eat(G);)ht++;var oe=K.peek()||" ",rt=!/\s/.test(oe)&&(!c.test(oe)||/\s/.test(Fe)||c.test(Fe)),fe=!/\s/.test(Fe)&&(!c.test(Fe)||/\s/.test(oe)||c.test(oe)),J=null,Y=null;if(ht%2&&(!z.em&&rt&&(G==="*"||!fe||c.test(Fe))?J=!0:z.em==G&&fe&&(G==="*"||!rt||c.test(oe))&&(J=!1)),ht>1&&(!z.strong&&rt&&(G==="*"||!fe||c.test(Fe))?Y=!0:z.strong==G&&fe&&(G==="*"||!rt||c.test(oe))&&(Y=!1)),Y!=null||J!=null){x.highlightFormatting&&(z.formatting=J==null?"strong":Y==null?"em":"strong em"),J===!0&&(z.em=G),Y===!0&&(z.strong=G);var ke=T(z);return J===!1&&(z.em=!1),Y===!1&&(z.strong=!1),ke}}else if(G===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return T(z);K.backUp(1)}if(x.strikethrough){if(G==="~"&&K.eatWhile(G)){if(z.strikethrough){x.highlightFormatting&&(z.formatting="strikethrough");var ke=T(z);return z.strikethrough=!1,ke}else if(K.match(/^[^\s]/,!1))return z.strikethrough=!0,x.highlightFormatting&&(z.formatting="strikethrough"),T(z)}else if(G===" "&&K.match(/^~~/,!0)){if(K.peek()===" ")return T(z);K.backUp(2)}}if(x.emoji&&G===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){z.emoji=!0,x.highlightFormatting&&(z.formatting="emoji");var $=T(z);return z.emoji=!1,$}return G===" "&&(K.match(/^ +$/,!1)?z.trailingSpace++:z.trailingSpace&&(z.trailingSpaceNewLine=!0)),T(z)}function I(K,z){var V=K.next();if(V===">"){z.f=z.inline=O,x.highlightFormatting&&(z.formatting="link");var Q=T(z);return Q?Q+=" ":Q="",Q+d.linkInline}return K.match(/^[^>]+/,!0),d.linkInline}function k(K,z){if(K.eatSpace())return null;var V=K.next();return V==="("||V==="["?(z.f=z.inline=U(V==="("?")":"]"),x.highlightFormatting&&(z.formatting="link-string"),z.linkHref=!0,T(z)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function U(K){return function(z,V){var Q=z.next();if(Q===K){V.f=V.inline=O,x.highlightFormatting&&(V.formatting="link-string");var G=T(V);return V.linkHref=!1,G}return z.match(M[K]),V.linkHref=!0,T(V)}}function P(K,z){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(z.f=X,K.next(),x.highlightFormatting&&(z.formatting="link"),z.linkText=!0,T(z)):g(K,z,O)}function X(K,z){if(K.match(/^\]:/,!0)){z.f=z.inline=F,x.highlightFormatting&&(z.formatting="link");var V=T(z);return z.linkText=!1,V}return K.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function F(K,z){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?z.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),z.f=z.inline=O,d.linkHref+" url")}var j={startState:function(){return{f:E,prevLine:{stream:null},thisLine:{stream:null},block:E,htmlState:null,indentation:0,inline:O,text:w,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(z){return{f:z.f,prevLine:z.prevLine,thisLine:z.thisLine,block:z.block,htmlState:z.htmlState&&y.copyState(A,z.htmlState),indentation:z.indentation,localMode:z.localMode,localState:z.localMode?y.copyState(z.localMode,z.localState):null,inline:z.inline,text:z.text,formatting:!1,linkText:z.linkText,linkTitle:z.linkTitle,linkHref:z.linkHref,code:z.code,em:z.em,strong:z.strong,strikethrough:z.strikethrough,emoji:z.emoji,header:z.header,setext:z.setext,hr:z.hr,taskList:z.taskList,list:z.list,listStack:z.listStack.slice(0),quote:z.quote,indentedCode:z.indentedCode,trailingSpace:z.trailingSpace,trailingSpaceNewLine:z.trailingSpaceNewLine,md_inside:z.md_inside,fencedEndRE:z.fencedEndRE}},token:function(z,V){if(V.formatting=!1,z!=V.thisLine.stream){if(V.header=0,V.hr=!1,z.match(/^\s*$/,!0))return S(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:z},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=C)){var Q=z.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(z,V)},innerMode:function(z){return z.block==C?{state:z.htmlState,mode:A}:z.localState?{state:z.localState,mode:z.localMode}:{state:z,mode:j}},indent:function(z,V,Q){return z.block==C&&A.indent?A.indent(z.htmlState,V,Q):z.localState&&z.localMode.indent?z.localMode.indent(z.localState,V,Q):y.Pass},blankLine:S,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(R,L,r){var y=r("ProS");r("GVMX"),r("MH26"),y.registerPreprocessor(function(f){f.markLine=f.markLine||{}})},ljhN:function(R,L){function r(y,f){return y===f||y!==y&&f!==f}R.exports=r},lnY3:function(R,L,r){},loD1:function(R,L){function r(y,f,x,A,m,p,d){if(m===0)return!1;var u=m,a=0,i=y;if(d>f+u&&d>A+u||d<f-u&&d<A-u||p>y+u&&p>x+u||p<y-u&&p<x-u)return!1;if(y!==x)a=(f-A)/(y-x),i=(y*A-x*f)/(y-x);else return Math.abs(p-y)<=u/2;var t=a*p-d+i,s=t*t/(a*a+1);return s<=u/2*u/2}L.containStroke=r},lr6o:function(R,L,r){"use strict";var y=r("rePB"),f=r("Ff2n"),x=r("VTBJ"),A=r("1OyB"),m=r("vuIU"),p=r("JX7q"),d=r("Ji7U"),u=r("LK+K"),a=r("q1tI"),i=r("TSYQ"),t=r.n(i),s=r("FTAc"),e=r("wPhX"),l=function(C){var _=C.prefixCls,T=C.level,w=C.isStart,O=C.isEnd;if(!T)return null;for(var I="".concat(_,"-indent-unit"),k=[],M=0;M<T;M+=1){var U;k.push(a.createElement("span",{key:M,className:t()(I,(U={},Object(y.a)(U,"".concat(I,"-start"),w[M+1]),Object(y.a)(U,"".concat(I,"-end"),O[M+1]),Object(y.a)(U,"".concat(I,"-end-first-level"),!M&&O[0]),U))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(_,"-indent")},k)},n=l,o=r("c3jg"),c="open",h="close",g="---",v=function(E){Object(d.a)(_,E);var C=Object(u.a)(_);function _(){var T;return Object(A.a)(this,_),T=C.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(w){var O=T.props.context.onNodeClick;O(w,Object(o.b)(T.props)),T.isSelectable()?T.onSelect(w):T.onCheck(w)},T.onSelectorDoubleClick=function(w){var O=T.props.context.onNodeDoubleClick;O(w,Object(o.b)(T.props))},T.onSelect=function(w){if(T.isDisabled())return;var O=T.props.context.onNodeSelect;w.preventDefault(),O(w,Object(o.b)(T.props))},T.onCheck=function(w){if(T.isDisabled())return;var O=T.props,I=O.disableCheckbox,k=O.checked,M=T.props.context.onNodeCheck;if(!T.isCheckable()||I)return;w.preventDefault();var U=!k;M(w,Object(o.b)(T.props),U)},T.onMouseEnter=function(w){var O=T.props.context.onNodeMouseEnter;O(w,Object(o.b)(T.props))},T.onMouseLeave=function(w){var O=T.props.context.onNodeMouseLeave;O(w,Object(o.b)(T.props))},T.onContextMenu=function(w){var O=T.props.context.onNodeContextMenu;O(w,Object(o.b)(T.props))},T.onDragStart=function(w){var O=T.props.context.onNodeDragStart;w.stopPropagation(),T.setState({dragNodeHighlight:!0}),O(w,Object(p.a)(T));try{w.dataTransfer.setData("text/plain","")}catch(I){}},T.onDragEnter=function(w){var O=T.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragOver=function(w){var O=T.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragLeave=function(w){var O=T.props.context.onNodeDragLeave;w.stopPropagation(),O(w,Object(p.a)(T))},T.onDragEnd=function(w){var O=T.props.context.onNodeDragEnd;w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(p.a)(T))},T.onDrop=function(w){var O=T.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),T.setState({dragNodeHighlight:!1}),O(w,Object(p.a)(T))},T.onExpand=function(w){var O=T.props.context.onNodeExpand;O(w,Object(o.b)(T.props))},T.setSelectHandle=function(w){T.selectHandle=w},T.getNodeState=function(){var w=T.props.expanded;return T.isLeaf()?null:w?c:h},T.hasChildren=function(){var w=T.props.eventKey,O=T.props.context.keyEntities,I=O[w]||{},k=I.children;return!!(k||[]).length},T.isLeaf=function(){var w=T.props,O=w.isLeaf,I=w.loaded,k=T.props.context.loadData,M=T.hasChildren();return O===!1?!1:O||!k&&!M||k&&I&&!M},T.isDisabled=function(){var w=T.props.disabled,O=T.props.context.disabled;return!!(O||w)},T.isCheckable=function(){var w=T.props.checkable,O=T.props.context.checkable;return!O||w===!1?!1:O},T.syncLoadData=function(w){var O=w.expanded,I=w.loading,k=w.loaded,M=T.props.context,U=M.loadData,P=M.onNodeLoad;if(I)return;U&&O&&!T.isLeaf()&&(!T.hasChildren()&&!k&&P(Object(o.b)(T.props)))},T.renderSwitcher=function(){var w=T.props,O=w.expanded,I=w.switcherIcon,k=T.props.context,M=k.prefixCls,U=k.switcherIcon,P=I||U;if(T.isLeaf())return a.createElement("span",{className:t()("".concat(M,"-switcher"),"".concat(M,"-switcher-noop"))},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!0})):P);var X=t()("".concat(M,"-switcher"),"".concat(M,"-switcher_").concat(O?c:h));return a.createElement("span",{onClick:T.onExpand,className:X},typeof P=="function"?P(Object(x.a)(Object(x.a)({},T.props),{},{isLeaf:!1})):P)},T.renderCheckbox=function(){var w=T.props,O=w.checked,I=w.halfChecked,k=w.disableCheckbox,M=T.props.context.prefixCls,U=T.isDisabled(),P=T.isCheckable();if(!P)return null;var X=typeof P!="boolean"?P:null;return a.createElement("span",{className:t()("".concat(M,"-checkbox"),O&&"".concat(M,"-checkbox-checked"),!O&&I&&"".concat(M,"-checkbox-indeterminate"),(U||k)&&"".concat(M,"-checkbox-disabled")),onClick:T.onCheck},X)},T.renderIcon=function(){var w=T.props.loading,O=T.props.context.prefixCls;return a.createElement("span",{className:t()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(T.getNodeState()||"docu"),w&&"".concat(O,"-icon_loading"))})},T.renderSelector=function(){var w=T.state.dragNodeHighlight,O=T.props,I=O.title,k=O.selected,M=O.icon,U=O.loading,P=O.data,X=T.props.context,F=X.prefixCls,j=X.showIcon,K=X.icon,z=X.draggable,V=X.loadData,Q=X.titleRender,G=T.isDisabled(),ee="".concat(F,"-node-content-wrapper"),se;if(j){var ye=M||K;se=ye?a.createElement("span",{className:t()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof ye=="function"?ye(T.props):ye):T.renderIcon()}else V&&U&&(se=T.renderIcon());var he;typeof I=="function"?he=I(P):Q?he=Q(P):he=I;var ke=a.createElement("span",{className:"".concat(F,"-title")},he);return a.createElement("span",{ref:T.setSelectHandle,title:typeof I=="string"?I:"",className:t()("".concat(ee),"".concat(ee,"-").concat(T.getNodeState()||"normal"),!G&&(k||w)&&"".concat(F,"-node-selected"),!G&&z&&"draggable"),draggable:!G&&z||void 0,"aria-grabbed":!G&&z||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:z?T.onDragStart:void 0},se,ke)},T}return Object(m.a)(_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var w=this.props.selectable,O=this.props.context.selectable;return typeof w=="boolean"?w:O}},{key:"render",value:function(){var w,O=this.props,I=O.eventKey,k=O.className,M=O.style,U=O.dragOver,P=O.dragOverGapTop,X=O.dragOverGapBottom,F=O.isLeaf,j=O.isStart,K=O.isEnd,z=O.expanded,V=O.selected,Q=O.checked,G=O.halfChecked,ee=O.loading,se=O.domRef,ye=O.active,he=O.onMouseMove,ke=Object(f.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Pe=this.props.context,Ue=Pe.prefixCls,$e=Pe.filterTreeNode,Ge=Pe.draggable,ht=Pe.keyEntities,Fe=this.isDisabled(),oe=Object(e.f)(ke),rt=ht[I]||{},fe=rt.level,J=K[K.length-1];return a.createElement("div",Object.assign({ref:se,className:t()(k,"".concat(Ue,"-treenode"),(w={},Object(y.a)(w,"".concat(Ue,"-treenode-disabled"),Fe),Object(y.a)(w,"".concat(Ue,"-treenode-switcher-").concat(z?"open":"close"),!F),Object(y.a)(w,"".concat(Ue,"-treenode-checkbox-checked"),Q),Object(y.a)(w,"".concat(Ue,"-treenode-checkbox-indeterminate"),G),Object(y.a)(w,"".concat(Ue,"-treenode-selected"),V),Object(y.a)(w,"".concat(Ue,"-treenode-loading"),ee),Object(y.a)(w,"".concat(Ue,"-treenode-active"),ye),Object(y.a)(w,"".concat(Ue,"-treenode-leaf-last"),J),Object(y.a)(w,"drag-over",!Fe&&U),Object(y.a)(w,"drag-over-gap-top",!Fe&&P),Object(y.a)(w,"drag-over-gap-bottom",!Fe&&X),Object(y.a)(w,"filter-node",$e&&$e(Object(o.b)(this.props))),w)),style:M,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:he},oe),a.createElement(n,{prefixCls:Ue,level:fe,isStart:j,isEnd:K}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),_}(a.Component),b=function(C){return a.createElement(s.a.Consumer,null,function(_){return a.createElement(v,Object.assign({},C,{context:_}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var S=L.a=b},lrIw:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("cDf5"),A=r.n(x),m=r("J4zp"),p=r.n(m),d=r("q1tI"),u=r.n(d),a=r("Zm9Q"),i=r("TSYQ"),t=r.n(i),s=r("BGR+"),e=r("2fM7"),l=r("H84U"),n=r("uaoM"),o=r("0n0R"),c=e.a.Option,h=e.a;function g(S){return S&&S.type&&(S.type.isSelectOption||S.type.isSelectOptGroup)}var v=function(E,C){var _=E.prefixCls,T=E.className,w=E.children,O=E.dataSource,I=Object(a.a)(w),k=d.useRef();d.useImperativeHandle(C,function(){return k.current});var M;if(I.length===1&&Object(o.b)(I[0])&&!g(I[0])){var U=p()(I,1);M=U[0]}var P=function(){return M},X;return I.length&&g(I[0])?X=w:X=O?O.map(function(F){if(Object(o.b)(F))return F;switch(A()(F)){case"string":return d.createElement(c,{key:F,value:F},F);case"object":{var j=F.value;return d.createElement(c,{key:j,value:j},F.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(n.a)(!("dataSource"in E),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(n.a)(!M||!("size"in E),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(l.a,null,function(F){var j=F.getPrefixCls,K=j("select",_);return d.createElement(h,f()({ref:k},Object(s.default)(E,["dataSource"]),{prefixCls:K,className:t()(T,"".concat(K,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:P}),X)})},b=d.forwardRef(v);b.Option=c,L.a=b},lwQL:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("9wZj"),A=r("c8qY"),m=r("SgGq"),p=r("Ae+d"),d=r("xSat"),u=d.onIrrelevantElement,a=r("IwbS"),i=r("SA8n"),t=r("U/Mo"),s=t.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",n=["itemStyle","opacity"],o=["lineStyle","opacity"];function c(b,S){var E=b.getVisual("opacity");return E!=null?E:b.getModel().get(S)}function h(b,S,E){var C=b.getGraphicEl(),_=c(b,S);E!=null&&(_==null&&(_=1),_*=E),C.downplay&&C.downplay(),C.traverse(function(T){if(!T.isGroup){var w=T.lineLabelOriginalOpacity;(w==null||E!=null)&&(w=_),T.setStyle("opacity",w)}})}function g(b,S){var E=c(b,S),C=b.getGraphicEl();C.traverse(function(_){!_.isGroup&&_.setStyle("opacity",E)}),C.highlight&&C.highlight()}var v=y.extendChartView({type:"graph",init:function(b,S){var E=new x,C=new A,_=this.group;this._controller=new m(S.getZr()),this._controllerHost={target:_},_.add(E.group),_.add(C.group),this._symbolDraw=E,this._lineDraw=C,this._firstRender=!0},render:function(b,S,E){var C=this,_=b.coordinateSystem;this._model=b;var T=this._symbolDraw,w=this._lineDraw,O=this.group;if(_.type==="view"){var I={position:_.position,scale:_.scale};this._firstRender?O.attr(I):a.updateProps(O,I,b)}i(b.getGraph(),s(b));var k=b.getData();T.updateData(k);var M=b.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(b,S,E),clearTimeout(this._layoutTimeout);var U=b.forceLayout,P=b.get("force.layoutAnimation");U&&this._startForceLayoutIteration(U,P),k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z);K.off("drag").off("dragend");var Q=V.get("draggable");Q&&K.on("drag",function(){U&&(U.warmUp(),!this._layouting&&this._startForceLayoutIteration(U,P),U.setFixed(z),k.setItemLayout(z,K.position))},this).on("dragend",function(){U&&U.setUnfixed(z)},this),K.setDraggable(Q&&U),K[e]&&K.off("mouseover",K[e]),K[l]&&K.off("mouseout",K[l]),V.get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:K.dataIndex})}),K.on("mouseout",K[l]=function(){C._dispatchUnfocus(E)}))},this),k.graph.eachEdge(function(K){var z=K.getGraphicEl();z[e]&&z.off("mouseover",z[e]),z[l]&&z.off("mouseout",z[l]),K.getModel().get("focusNodeAdjacency")&&(z.on("mouseover",z[e]=function(){C._clearTimer(),E.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:K.dataIndex})}),z.on("mouseout",z[l]=function(){C._dispatchUnfocus(E)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),F=k.getLayout("cx"),j=k.getLayout("cy");k.eachItemGraphicEl(function(K,z){var V=k.getItemModel(z),Q=V.get("label.rotate")||0,G=K.getSymbolPath();if(X){var ee=k.getItemLayout(z),se=Math.atan2(ee[1]-j,ee[0]-F);se<0&&(se=Math.PI*2+se);var ye=ee[0]<F;ye&&(se=se-Math.PI);var he=ye?"left":"right";a.modifyLabelStyle(G,{textRotation:-se,textPosition:he,textOrigin:"center"},{textPosition:he})}else a.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,S){var E=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){E._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:E._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,S,E,C){var _=b.getData(),T=_.graph,w=C.dataIndex,O=C.edgeDataIndex,I=T.getNodeByIndex(w),k=T.getEdgeByIndex(O);if(!I&&!k)return;T.eachNode(function(M){h(M,n,.1)}),T.eachEdge(function(M){h(M,o,.1)}),I&&(g(I,n),f.each(I.edges,function(M){if(M.dataIndex<0)return;g(M,o),g(M.node1,n),g(M.node2,n)})),k&&(g(k,o),g(k.node1,n),g(k.node2,n))},unfocusNodeAdjacency:function(b,S,E,C){var _=b.getData().graph;_.eachNode(function(T){h(T,n)}),_.eachEdge(function(T){h(T,o)})},_startForceLayoutIteration:function(b,S){var E=this;(function C(){b.step(function(_){E.updateLayout(E._model),(E._layouting=!_)&&(S?E._layoutTimeout=setTimeout(C,16):C())})})()},_updateController:function(b,S,E){var C=this._controller,_=this._controllerHost,T=this.group;if(C.setPointerChecker(function(w,O,I){var k=T.getBoundingRect();return k.applyTransform(T.transform),k.contain(O,I)&&!u(w,E,b)}),b.coordinateSystem.type!=="view"){C.disable();return}C.enable(b.get("roam")),_.zoomLimit=b.get("scaleLimit"),_.zoom=b.coordinateSystem.getZoom(),C.off("pan").off("zoom").on("pan",function(w){p.updateViewOnPan(_,w.dx,w.dy),E.dispatchAction({seriesId:b.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){p.updateViewOnZoom(_,w.scale,w.originX,w.originY),E.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),i(b.getGraph(),s(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,S=b.getData(),E=s(b),C=[E,E];S.eachItemGraphicEl(function(_,T){_.attr("scale",C)})},updateLayout:function(b){i(b.getGraph(),s(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,S){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});R.exports=v},m546:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};L.default=y},m9t5:function(R,L,r){var y=r("KCsZ"),f=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),x={getAreaStyle:function(A,m){return f(this,A,m)}};R.exports=x},mBDr:function(R,L,r){"use strict";r.d(L,"a",function(){return x});var y=r("q1tI"),f=r.n(y);function x(A){var m=y.useRef();m.current=A;var p=y.useCallback(function(){for(var d,u=arguments.length,a=new Array(u),i=0;i<u;i++)a[i]=arguments[i];return(d=m.current)===null||d===void 0?void 0:d.call.apply(d,[m].concat(a))},[]);return p}},mFDi:function(R,L,r){var y=r("QBsz"),f=r("Fofx"),x=y.applyTransform,A=Math.min,m=Math.max;function p(u,a,i,t){i<0&&(u=u+i,i=-i),t<0&&(a=a+t,t=-t),this.x=u,this.y=a,this.width=i,this.height=t}p.prototype={constructor:p,union:function(a){var i=A(a.x,this.x),t=A(a.y,this.y);this.width=m(a.x+a.width,this.x+this.width)-i,this.height=m(a.y+a.height,this.y+this.height)-t,this.x=i,this.y=t},applyTransform:function(){var u=[],a=[],i=[],t=[];return function(s){if(!s)return;u[0]=i[0]=this.x,u[1]=t[1]=this.y,a[0]=t[0]=this.x+this.width,a[1]=i[1]=this.y+this.height,x(u,u,s),x(a,a,s),x(i,i,s),x(t,t,s),this.x=A(u[0],a[0],i[0],t[0]),this.y=A(u[1],a[1],i[1],t[1]);var e=m(u[0],a[0],i[0],t[0]),l=m(u[1],a[1],i[1],t[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(a){var i=this,t=a.width/i.width,s=a.height/i.height,e=f.create();return f.translate(e,e,[-i.x,-i.y]),f.scale(e,e,[t,s]),f.translate(e,e,[a.x,a.y]),e},intersect:function(a){if(!a)return!1;a instanceof p||(a=p.create(a));var i=this,t=i.x,s=i.x+i.width,e=i.y,l=i.y+i.height,n=a.x,o=a.x+a.width,c=a.y,h=a.y+a.height;return!(s<n||o<t||l<c||h<e)},contain:function(a,i){var t=this;return a>=t.x&&a<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},clone:function(){return new p(this.x,this.y,this.width,this.height)},copy:function(a){this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},p.create=function(u){return new p(u.x,u.y,u.width,u.height)};var d=p;R.exports=d},mHUz:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};L.default=y},mLcG:function(R,L){var r=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};R.exports=r},mOdp:function(R,L,r){var y=r("bYtY"),f=y.createHashMap;function x(A){return{getTargetSeries:function(m){var p={},d=f();return m.eachSeriesByType(A,function(u){u.__paletteScope=p,d.set(u.uid,u)}),d},reset:function(m,p){var d=m.getRawData(),u={},a=m.getData();a.each(function(i){var t=a.getRawIndex(i);u[t]=i}),d.each(function(i){var t=u[i],s=t!=null&&a.getItemVisual(t,"color",!0),e=t!=null&&a.getItemVisual(t,"borderColor",!0),l;if((!s||!e)&&(l=d.getItemModel(i)),!s){var n=l.get("itemStyle.color")||m.getColorFromPalette(d.getName(i)||i+"",m.__paletteScope,d.count());t!=null&&a.setItemVisual(t,"color",n)}if(!e){var o=l.get("itemStyle.borderColor");t!=null&&a.setItemVisual(t,"borderColor",o)}})}}}R.exports=x},mTgk:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("mHUz"));function f(u){return u&&u.__esModule?u:{default:u}}var x={};function A(u,a){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,a]}function m(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,i,a]}function p(u,a,i){if(a===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(i===void 0)throw new Error('Undefined keysym for key "'+u+'"');if(u in x)throw new Error('Duplicate entry for key "'+u+'"');x[u]=[a,a,a,i]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),A("AltGraph",y.default.XK_ISO_Level3_Shift),A("CapsLock",y.default.XK_Caps_Lock),m("Control",y.default.XK_Control_L,y.default.XK_Control_R),m("Meta",y.default.XK_Super_L,y.default.XK_Super_R),A("NumLock",y.default.XK_Num_Lock),A("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),p("Enter",y.default.XK_Return,y.default.XK_KP_Enter),A("Tab",y.default.XK_Tab),p(" ",y.default.XK_space,y.default.XK_KP_Space),p("ArrowDown",y.default.XK_Down,y.default.XK_KP_Down),p("ArrowUp",y.default.XK_Up,y.default.XK_KP_Up),p("ArrowLeft",y.default.XK_Left,y.default.XK_KP_Left),p("ArrowRight",y.default.XK_Right,y.default.XK_KP_Right),p("End",y.default.XK_End,y.default.XK_KP_End),p("Home",y.default.XK_Home,y.default.XK_KP_Home),p("PageDown",y.default.XK_Next,y.default.XK_KP_Next),p("PageUp",y.default.XK_Prior,y.default.XK_KP_Prior),A("Backspace",y.default.XK_BackSpace),p("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),A("Copy",y.default.XF86XK_Copy),A("Cut",y.default.XF86XK_Cut),p("Delete",y.default.XK_Delete,y.default.XK_KP_Delete),p("Insert",y.default.XK_Insert,y.default.XK_KP_Insert),A("Paste",y.default.XF86XK_Paste),A("Redo",y.default.XK_Redo),A("Undo",y.default.XK_Undo),A("Cancel",y.default.XK_Cancel),A("ContextMenu",y.default.XK_Menu),A("Escape",y.default.XK_Escape),A("Execute",y.default.XK_Execute),A("Find",y.default.XK_Find),A("Help",y.default.XK_Help),A("Pause",y.default.XK_Pause),A("Select",y.default.XK_Select),A("ZoomIn",y.default.XF86XK_ZoomIn),A("ZoomOut",y.default.XF86XK_ZoomOut),A("BrightnessDown",y.default.XF86XK_MonBrightnessDown),A("BrightnessUp",y.default.XF86XK_MonBrightnessUp),A("Eject",y.default.XF86XK_Eject),A("LogOff",y.default.XF86XK_LogOff),A("Power",y.default.XF86XK_PowerOff),A("PowerOff",y.default.XF86XK_PowerDown),A("PrintScreen",y.default.XK_Print),A("Hibernate",y.default.XF86XK_Hibernate),A("Standby",y.default.XF86XK_Standby),A("WakeUp",y.default.XF86XK_WakeUp),A("AllCandidates",y.default.XK_MultipleCandidate),A("Alphanumeric",y.default.XK_Eisu_Shift),A("CodeInput",y.default.XK_Codeinput),A("Compose",y.default.XK_Multi_key),A("Convert",y.default.XK_Henkan),A("GroupFirst",y.default.XK_ISO_First_Group),A("GroupLast",y.default.XK_ISO_Last_Group),A("GroupNext",y.default.XK_ISO_Next_Group),A("GroupPrevious",y.default.XK_ISO_Prev_Group),A("NonConvert",y.default.XK_Muhenkan),A("PreviousCandidate",y.default.XK_PreviousCandidate),A("SingleCandidate",y.default.XK_SingleCandidate),A("HangulMode",y.default.XK_Hangul),A("HanjaMode",y.default.XK_Hangul_Hanja),A("JunjuaMode",y.default.XK_Hangul_Jeonja),A("Eisu",y.default.XK_Eisu_toggle),A("Hankaku",y.default.XK_Hankaku),A("Hiragana",y.default.XK_Hiragana),A("HiraganaKatakana",y.default.XK_Hiragana_Katakana),A("KanaMode",y.default.XK_Kana_Shift),A("KanjiMode",y.default.XK_Kanji),A("Katakana",y.default.XK_Katakana),A("Romaji",y.default.XK_Romaji),A("Zenkaku",y.default.XK_Zenkaku),A("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),A("F1",y.default.XK_F1),A("F2",y.default.XK_F2),A("F3",y.default.XK_F3),A("F4",y.default.XK_F4),A("F5",y.default.XK_F5),A("F6",y.default.XK_F6),A("F7",y.default.XK_F7),A("F8",y.default.XK_F8),A("F9",y.default.XK_F9),A("F10",y.default.XK_F10),A("F11",y.default.XK_F11),A("F12",y.default.XK_F12),A("F13",y.default.XK_F13),A("F14",y.default.XK_F14),A("F15",y.default.XK_F15),A("F16",y.default.XK_F16),A("F17",y.default.XK_F17),A("F18",y.default.XK_F18),A("F19",y.default.XK_F19),A("F20",y.default.XK_F20),A("F21",y.default.XK_F21),A("F22",y.default.XK_F22),A("F23",y.default.XK_F23),A("F24",y.default.XK_F24),A("F25",y.default.XK_F25),A("F26",y.default.XK_F26),A("F27",y.default.XK_F27),A("F28",y.default.XK_F28),A("F29",y.default.XK_F29),A("F30",y.default.XK_F30),A("F31",y.default.XK_F31),A("F32",y.default.XK_F32),A("F33",y.default.XK_F33),A("F34",y.default.XK_F34),A("F35",y.default.XK_F35),A("Close",y.default.XF86XK_Close),A("MailForward",y.default.XF86XK_MailForward),A("MailReply",y.default.XF86XK_Reply),A("MailSend",y.default.XF86XK_Send),A("MediaFastForward",y.default.XF86XK_AudioForward),A("MediaPause",y.default.XF86XK_AudioPause),A("MediaPlay",y.default.XF86XK_AudioPlay),A("MediaRecord",y.default.XF86XK_AudioRecord),A("MediaRewind",y.default.XF86XK_AudioRewind),A("MediaStop",y.default.XF86XK_AudioStop),A("MediaTrackNext",y.default.XF86XK_AudioNext),A("MediaTrackPrevious",y.default.XF86XK_AudioPrev),A("New",y.default.XF86XK_New),A("Open",y.default.XF86XK_Open),A("Print",y.default.XK_Print),A("Save",y.default.XF86XK_Save),A("SpellCheck",y.default.XF86XK_Spell),A("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",y.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),A("LaunchApplication1",y.default.XF86XK_MyComputer),A("LaunchApplication2",y.default.XF86XK_Calculator),A("LaunchCalendar",y.default.XF86XK_Calendar),A("LaunchMail",y.default.XF86XK_Mail),A("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",y.default.XF86XK_Music),A("LaunchPhone",y.default.XF86XK_Phone),A("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",y.default.XF86XK_Excel),A("LaunchWebBrowser",y.default.XF86XK_WWW),A("LaunchWebCam",y.default.XF86XK_WebCam),A("LaunchWordProcessor",y.default.XF86XK_Word),A("BrowserBack",y.default.XF86XK_Back),A("BrowserFavorites",y.default.XF86XK_Favorites),A("BrowserForward",y.default.XF86XK_Forward),A("BrowserHome",y.default.XF86XK_HomePage),A("BrowserRefresh",y.default.XF86XK_Refresh),A("BrowserSearch",y.default.XF86XK_Search),A("BrowserStop",y.default.XF86XK_Stop),A("Dimmer",y.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),A("RandomToggle",y.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",y.default.XF86XK_SplitScreen),A("Subtitle",y.default.XF86XK_Subtitle),A("VideoModeNext",y.default.XF86XK_Next_VMode),p("=",y.default.XK_equal,y.default.XK_KP_Equal),p("+",y.default.XK_plus,y.default.XK_KP_Add),p("-",y.default.XK_minus,y.default.XK_KP_Subtract),p("*",y.default.XK_asterisk,y.default.XK_KP_Multiply),p("/",y.default.XK_slash,y.default.XK_KP_Divide),p(".",y.default.XK_period,y.default.XK_KP_Decimal),p(",",y.default.XK_comma,y.default.XK_KP_Separator),p("0",y.default.XK_0,y.default.XK_KP_0),p("1",y.default.XK_1,y.default.XK_KP_1),p("2",y.default.XK_2,y.default.XK_KP_2),p("3",y.default.XK_3,y.default.XK_KP_3),p("4",y.default.XK_4,y.default.XK_KP_4),p("5",y.default.XK_5,y.default.XK_KP_5),p("6",y.default.XK_6,y.default.XK_KP_6),p("7",y.default.XK_7,y.default.XK_KP_7),p("8",y.default.XK_8,y.default.XK_KP_8),p("9",y.default.XK_9,y.default.XK_KP_9);var d=x;L.default=d},mYwL:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("6GrX"),A=Math.PI;function m(p,d){d=d||{},y.defaults(d,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var u=new f.Group,a=new f.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});u.add(a);var i=d.fontSize+" sans-serif",t=new f.Rect({style:{fill:"none",text:d.text,font:i,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(u.add(t),d.showSpinner){var s=new f.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:d.spinnerRadius},style:{stroke:d.color,lineCap:"round",lineWidth:d.lineWidth},zlevel:d.zlevel,z:10001});s.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),u.add(s)}return u.resize=function(){var e=x.getWidth(d.text,i),l=d.showSpinner?d.spinnerRadius:0,n=(p.getWidth()-l*2-(d.showSpinner&&e?10:0)-e)/2-(d.showSpinner?0:e/2),o=p.getHeight()/2;d.showSpinner&&s.setShape({cx:n,cy:o}),t.setShape({x:n-l,y:o-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:p.getWidth(),height:p.getHeight()})},u.resize(),u}R.exports=m},mdPL:function(R,L,r){(function(y){var f=r("WFqU"),x=L&&!L.nodeType&&L,A=x&&typeof y=="object"&&y&&!y.nodeType&&y,m=A&&A.exports===x,p=m&&f.process,d=function(){try{var u=A&&A.require&&A.require("util").types;return u||p&&p.binding&&p.binding("util")}catch(a){}}();y.exports=d}).call(this,r("YuTi")(R))},mdZa:function(R,L,r){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(f,x){"use strict";if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(f),m=1;m<arguments.length;m++){var p=arguments[m];if(p!=null)for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(A[d]=p[d])}return A},writable:!0,configurable:!0}),function(){function y(f,x){x=x||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(f,x.bubbles,x.cancelable,x.detail),A}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(f){return typeof f=="number"&&isFinite(f)&&Math.floor(f)===f}},meAc:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("56O1"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},"mh/l":function(R,L,r){"use strict";r.d(L,"b",function(){return S}),r.d(L,"d",function(){return E}),r.d(L,"c",function(){return C});var y=r("pVnL"),f=r.n(y),x=r("lwsE"),A=r.n(x),m=r("W8MJ"),p=r.n(m),d=r("7W2i"),u=r.n(d),a=r("LQ03"),i=r.n(a),t=r("lSNA"),s=r.n(t),e=r("q1tI"),l=r.n(e),n=r("TSYQ"),o=r.n(n),c=r("BGR+"),h=r("LlR5"),g=r("H84U"),v=r("3Nzz"),b=r("uaoM");function S(T){return typeof T=="undefined"||T===null?"":T}function E(T,w,O){if(O){var I=w;if(w.type==="click"){I=Object.create(w),I.target=T,I.currentTarget=T;var k=T.value;T.value="",O(I),T.value=k;return}O(I)}}function C(T,w,O,I,k){var M;return o()(T,(M={},s()(M,"".concat(T,"-sm"),O==="small"),s()(M,"".concat(T,"-lg"),O==="large"),s()(M,"".concat(T,"-disabled"),I),s()(M,"".concat(T,"-rtl"),k==="rtl"),s()(M,"".concat(T,"-borderless"),!w),M))}var _=function(T){u()(O,T);var w=i()(O);function O(I){var k;A()(this,O),k=w.call(this,I),k.direction="ltr",k.focus=function(){k.input.focus()},k.saveClearableInput=function(U){k.clearableInput=U},k.saveInput=function(U){k.input=U},k.onFocus=function(U){var P=k.props.onFocus;k.setState({focused:!0},k.clearPasswordValueAttribute),P&&P(U)},k.onBlur=function(U){var P=k.props.onBlur;k.setState({focused:!1},k.clearPasswordValueAttribute),P&&P(U)},k.handleReset=function(U){k.setValue("",function(){k.focus()}),E(k.input,U,k.props.onChange)},k.renderInput=function(U,P,X){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=k.props,K=j.className,z=j.addonBefore,V=j.addonAfter,Q=j.size,G=j.disabled,ee=Object(c.default)(k.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",f()({autoComplete:F.autoComplete},ee,{onChange:k.handleChange,onFocus:k.onFocus,onBlur:k.onBlur,onKeyDown:k.handleKeyDown,className:o()(C(U,X,Q||P,G,k.direction),s()({},K,K&&!z&&!V)),ref:k.saveInput}))},k.clearPasswordValueAttribute=function(){k.removePasswordTimeout=setTimeout(function(){k.input&&k.input.getAttribute("type")==="password"&&k.input.hasAttribute("value")&&k.input.removeAttribute("value")})},k.handleChange=function(U){k.setValue(U.target.value,k.clearPasswordValueAttribute),E(k.input,U,k.props.onChange)},k.handleKeyDown=function(U){var P=k.props,X=P.onPressEnter,F=P.onKeyDown;U.keyCode===13&&X&&X(U),F&&F(U)},k.renderComponent=function(U){var P=U.getPrefixCls,X=U.direction,F=U.input,j=k.state,K=j.value,z=j.focused,V=k.props,Q=V.prefixCls,G=V.bordered,ee=G===void 0?!0:G,se=P("input",Q);return k.direction=X,e.createElement(v.b.Consumer,null,function(ye){return e.createElement(h.a,f()({size:ye},k.props,{prefixCls:se,inputType:"input",value:S(K),element:k.renderInput(se,ye,ee,F),handleReset:k.handleReset,ref:k.saveClearableInput,direction:X,focused:z,triggerFocus:k.focus,bordered:ee}))})};var M=typeof I.value=="undefined"?I.defaultValue:I.value;return k.state={value:M,focused:!1,prevValue:I.value},k}return p()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(k){return Object(h.b)(k)!==Object(h.b)(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(k,M){this.props.value===void 0&&this.setState({value:k},M)}},{key:"render",value:function(){return e.createElement(g.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(k,M){var U=M.prevValue,P={prevValue:k.value};return(k.value!==void 0||U!==k.value)&&(P.value=k.value),P}}]),O}(e.Component);_.defaultProps={type:"text"},L.a=_},mr32:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("J4zp"),p=r.n(m),d=r("q1tI"),u=r("TSYQ"),a=r.n(u),i=r("BGR+"),t=r("1S0Z"),s=r.n(t),e=r("H84U"),l=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},n=function(T){var w,O=d.useContext(e.b),I=O.getPrefixCls,k=function(z){var V=T.checked,Q=T.onChange,G=T.onClick;Q&&Q(!V),G&&G(z)},M=T.prefixCls,U=T.className,P=T.checked,X=l(T,["prefixCls","className","checked"]),F=I("tag",M),j=a()(F,(w={},f()(w,"".concat(F,"-checkable"),!0),f()(w,"".concat(F,"-checkable-checked"),P),w),U);return delete X.onChange,d.createElement("span",A()({},X,{className:j,onClick:k}))},o=n,c=r("09Wf"),h=r("g0mS"),g=function(_,T){var w={};for(var O in _)Object.prototype.hasOwnProperty.call(_,O)&&T.indexOf(O)<0&&(w[O]=_[O]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(_);I<O.length;I++)T.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(_,O[I])&&(w[O[I]]=_[O[I]]);return w},v=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),S=function(T,w){var O,I=T.prefixCls,k=T.className,M=T.style,U=T.children,P=T.icon,X=T.color,F=T.onClose,j=T.closeIcon,K=T.closable,z=K===void 0?!1:K,V=g(T,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),G=Q.getPrefixCls,ee=Q.direction,se=d.useState(!0),ye=p()(se,2),he=ye[0],ke=ye[1];d.useEffect(function(){"visible"in V&&ke(V.visible)},[V.visible]);var Pe=function(){return X?v.test(X)||b.test(X):!1},Ue=A()({backgroundColor:X&&!Pe()?X:void 0},M),$e=Pe(),Ge=G("tag",I),ht=a()(Ge,(O={},f()(O,"".concat(Ge,"-").concat(X),$e),f()(O,"".concat(Ge,"-has-color"),X&&!$e),f()(O,"".concat(Ge,"-hidden"),!he),f()(O,"".concat(Ge,"-rtl"),ee==="rtl"),O),k),Fe=function(we){if(we.stopPropagation(),F&&F(we),we.defaultPrevented)return;"visible"in V||ke(!1)},oe=function(){return z?j?d.createElement("div",{className:"".concat(Ge,"-close-icon"),onClick:Fe},j):d.createElement(s.a,{className:"".concat(Ge,"-close-icon"),onClick:Fe}):null},rt="onClick"in V||U&&U.type==="a",fe=Object(i.default)(V,["visible"]),J=P||null,Y=J?d.createElement(d.Fragment,null,J,d.createElement("span",null,U)):U,$=d.createElement("span",A()({},fe,{ref:w,className:ht,style:Ue}),Y,oe());return rt?d.createElement(h.a,null,$):$},E=d.forwardRef(S);E.displayName="Tag",E.CheckableTag=o;var C=L.a=E},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(R){if(!0)module.exports=R();else var L})(function(){var define,module,exports;return function(){function R(L,r,y){function f(m,p){if(!r[m]){if(!L[m]){var d=typeof require=="function"&&require;if(!p&&d)return require(m,!0);if(x)return x(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var a=r[m]={exports:{}};L[m][0].call(a.exports,function(i){var t=L[m][1][i];return f(t||i)},a,a.exports,R,L,r,y)}return r[m].exports}for(var x=typeof require=="function"&&require,A=0;A<y.length;A++)f(y[A]);return f}return R}()({1:[function(R,L,r){"use strict";var y=R("./browser/client");y.Buffer=R("buffer").Buffer,y.urllib=R("../shims/xhr"),y.version=R("./browser/version").version,L.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(R,L,r){(function(y,f){"use strict";var x=R("babel-runtime/core-js/promise"),A=a(x),m=R("babel-runtime/regenerator"),p=a(m),d=R("babel-runtime/core-js/object/assign"),u=a(d);function a(P){return P&&P.__esModule?P:{default:P}}var i=R("debug")("ali-oss"),t=R("copy-to"),s=R("xml2js"),e=R("agentkeepalive"),l=R("merge-descriptors"),n=R("url"),o=R("is-type-of"),c=R("platform"),h=R("utility"),g=R("urllib"),v=R("./version"),b=R("bowser"),S=R("../common/signUtils"),E=R("../common/utils/isIP"),C=E.isIP,_=R("../common/client/initOptions"),T=R("../common/utils/createRequest"),w=T.createRequest,O=new e;function I(){var P=c.name,X=c.version;P&&P.toLowerCase&&P.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function k(){return location&&location.protocol==="https:"}function M(P,X){if(I(),!(this instanceof M))return new M(P,X);P&&P.inited?this.options=P:this.options=M.initOptions(P),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||O),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}L.exports=M,M.initOptions=function(X){X.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var F=(0,u.default)({secure:k(),useFetch:!1},X);return _(F)};var U=M.prototype;U.debug=i,l(U,R("./object")),l(U,R("../common/bucket/getBucketWebsite")),l(U,R("../common/bucket/putBucketWebsite")),l(U,R("../common/bucket/deleteBucketWebsite")),l(U,R("../common/bucket/getBucketLifecycle")),l(U,R("../common/bucket/putBucketLifecycle")),l(U,R("../common/bucket/deleteBucketLifecycle")),l(U,R("../common/bucket/putBucketVersioning")),l(U,R("../common/bucket/getBucketVersioning")),l(U,R("./managed-upload")),l(U,R("../common/multipart")),l(U,R("../common/parallel")),U.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),S.computeSignature(this.options.accessKeySecret,X)},U.authorization=function(X,F,j,K){var z=S.buildCanonicalString(X.toUpperCase(),F,{headers:K,parameters:j});return S.authorization(this.options.accessKeyId,this.options.accessKeySecret,z)},U.request=function(X){var F,j,K,z,V,Q;return p.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return F=w.call(this,X),this.options.useFetch||(F.params.mode="disable-fetch"),j=void 0,K=void 0,z=!!X.stream,ee.prev=5,ee.next=8,p.default.awrap(this.urllib.request(F.url,F.params));case 8:j=ee.sent,this.debug("response %s %s, got %s, headers: %j",X.method,F.url,j.status,j.headers,"info"),ee.next=15;break;case 12:ee.prev=12,ee.t0=ee.catch(5),K=ee.t0;case 15:if(V=void 0,!(j&&X.successStatuses&&X.successStatuses.indexOf(j.status)===-1)){ee.next=28;break}return ee.next=19,p.default.awrap(this.requestError(j));case 19:if(V=ee.sent,!(V.code==="RequestTimeTooSkewed"&&!z)){ee.next=25;break}return this.options.amendTimeSkewed=+new Date(V.serverTime)-new Date,ee.next=24,p.default.awrap(this.request(X));case 24:return ee.abrupt("return",ee.sent);case 25:V.params=X,ee.next=32;break;case 28:if(!K){ee.next=32;break}return ee.next=31,p.default.awrap(this.requestError(K));case 31:V=ee.sent;case 32:if(!V){ee.next=34;break}throw V;case 34:if(!X.xmlResponse){ee.next=39;break}return ee.next=37,p.default.awrap(this.parseXML(j.data));case 37:Q=ee.sent,j.data=Q;case 39:return ee.abrupt("return",j);case 40:case"end":return ee.stop()}},null,this,[[5,12]])},U._getResource=function(X){var F="/";return X.bucket&&(F+=X.bucket+"/"),X.object&&(F+=X.object),F},U._isIP=C,U._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},U._getReqUrl=function(X){var F={};t(this.options.endpoint).to(F);var j=this._isIP(F.hostname),K=this.options.cname;X.bucket&&!K&&!j&&(F.host=X.bucket+"."+F.host);var z="/";X.bucket&&j&&(z+=X.bucket+"/"),X.object&&(z+=this._escape(X.object).replace(/\+/g,"%2B")),F.pathname=z;var V={};if(X.query&&l(V,X.query),X.subres){var Q={};o.string(X.subres)?Q[X.subres]="":o.array(X.subres)?X.subres.forEach(function(G){Q[G]=""}):Q=X.subres,l(V,Q)}return F.query=V,n.format(F)},U._getUserAgent=function(){var X=f&&f.browser?"js":"nodejs",F="aliyun-sdk-"+X+"/"+v.version,j=c.description;return!j&&f&&(j="Node.js "+f.version.slice(1)+" on "+f.platform+" "+f.arch),this._checkUserAgent(F+" "+j)},U._checkUserAgent=function(X){var F=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return F},U.checkBrowserAndVersion=function(X,F){return b.name===X&&b.version.split(".")[0]===F},U.parseXML=function(X){return new A.default(function(F,j){y.isBuffer(X)&&(X=X.toString()),s.parseString(X,{explicitRoot:!1,explicitArray:!1},function(K,z){K?j(K):F(z)})})},U.requestError=function(X){var F,j,K,z;return p.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(F=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(F=new Error(X.message),F.name=X.name,F.status=X.status,F.code=X.name):(X.status===404?(F=new Error("Object not exists"),F.name="NoSuchKeyError",F.status=404,F.code="NoSuchKey"):X.status===412?(F=new Error("Pre condition failed"),F.name="PreconditionFailedError",F.status=412,F.code="PreconditionFailed"):(F=new Error("Unknow error, status: "+X.status),F.name="UnknowError",F.status=X.status),F.requestId=X.headers["x-oss-request-id"],F.host=""),Q.next=33;break;case 5:return j=String(X.data),this.debug("request response error data: %s",j,"error"),K=void 0,Q.prev=8,Q.next=11,p.default.awrap(this.parseXML(j));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:K=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(j,"error"),Q.t1.message+=`
raw xml: `+j,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:z=K.Message||"unknow request error, status: "+X.status,K.Condition&&(z+=" (condition: "+K.Condition+")"),F=new Error(z),F.name=K.Code?K.Code+"Error":"UnknowError",F.status=X.status,F.code=K.Code,F.requestId=K.RequestId,F.hostId=K.HostId,F.serverTime=K.ServerTime;case 33:return this.debug("generate error %j",F,"error"),Q.abrupt("return",F);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:R("../../node_modules/is-buffer/index.js")},R("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/core-js/array/from"),x=u(f),A=R("babel-runtime/core-js/promise"),m=u(A),p=R("babel-runtime/regenerator"),d=u(p);function u(S){return S&&S.__esModule?S:{default:S}}var a=R("is-type-of"),i=R("util"),t=R("path"),s=R("mime"),e=R("copy-to"),l=R("../common/utils/isBlob"),n=l.isBlob,o=R("../common/utils/isFile"),c=o.isFile,h=r;h.multipartUpload=function(E,C,_){var T,w,O,I,k,M,U,P,X;return d.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),_=_||{},!(_.checkpoint&&_.checkpoint.uploadId)){j.next=6;break}return j.next=5,d.default.awrap(this._resumeMultipart(_.checkpoint,_));case 5:return j.abrupt("return",j.sent);case 6:return T=100*1024,_.mime||(c(C)?_.mime=s.getType(t.extname(C.name)):n(C)?_.mime=C.type:_.mime=s.getType(t.extname(C))),_.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),j.next=12,d.default.awrap(this._getFileSize(C));case 12:if(w=j.sent,!(w<T)){j.next=25;break}return O=this._createStream(C,0,w),_.contentLength=w,j.next=18,d.default.awrap(this.putStream(E,O,_));case 18:if(I=j.sent,!(_&&_.progress)){j.next=22;break}return j.next=22,d.default.awrap(_.progress(1));case 22:return k={res:I.res,bucket:this.options.bucket,name:E,etag:I.res.headers.etag},(_.headers&&_.headers["x-oss-callback"]||_.callback)&&(k.data=I.data),j.abrupt("return",k);case 25:if(!(_.partSize&&!(parseInt(_.partSize,10)===_.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(_.partSize&&_.partSize<T)){j.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return j.next=31,d.default.awrap(this.initMultipartUpload(E,_));case 31:if(M=j.sent,U=M.uploadId,P=this._getPartSize(w,_.partSize),X={file:C,name:E,fileSize:w,partSize:P,uploadId:U,doneParts:[]},!(_&&_.progress)){j.next=38;break}return j.next=38,d.default.awrap(_.progress(0,X,M.res));case 38:return j.next=40,d.default.awrap(this._resumeMultipart(X,_));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},h._resumeMultipart=function(E,C){var _,T,w,O,I,k,M,U,P,X,F,j,K,z,V,Q,G,ee;return d.default.async(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(_=this,!this.isCancel()){ye.next=3;break}throw this._makeCancelEvent();case 3:return T=E.file,w=E.fileSize,O=E.partSize,I=E.uploadId,k=E.doneParts,M=E.name,U=[],k.length>0&&e(k).to(U),P=this._divideParts(w,O),X=P.length,F=!1,j=function(ke,Pe){var Ue=this;return new m.default(function(Ge,ht){var Fe,oe,rt,fe;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,ke.isCancel()){Y.next=18;break}return Fe=P[Pe-1],oe={stream:ke._createStream(T,Fe.start,Fe.end),size:Fe.end-Fe.start},Y.next=6,d.default.awrap(ke._uploadPart(M,I,Pe,oe));case 6:if(rt=Y.sent,!(!ke.isCancel()&&!F)){Y.next=15;break}if(E.doneParts.push({number:Pe,etag:rt.res.headers.etag}),!C.progress){Y.next=12;break}return Y.next=12,d.default.awrap(C.progress(k.length/X,E,rt.res));case 12:Ge({number:Pe,etag:rt.res.headers.etag}),Y.next=16;break;case 15:Ge();case 16:Y.next=19;break;case 18:Ge();case 19:Y.next=30;break;case 21:Y.prev=21,Y.t0=Y.catch(0),fe=new Error,fe.name=Y.t0.name,fe.message=Y.t0.message,fe.stack=Y.t0.stack,fe.partNum=Pe,e(Y.t0).to(fe),ht(fe);case 30:case"end":return Y.stop()}},null,Ue,[[0,21]])})},K=(0,x.default)(new Array(X),function(he,ke){return ke+1}),z=U.map(function(he){return he.number}),V=K.filter(function(he){return z.indexOf(he)<0}),Q=5,G=C.parallel||Q,ye.next=17,d.default.awrap(this._parallel(V,G,function(he){return new m.default(function(ke,Pe){j(_,he).then(function(Ue){Ue&&U.push(Ue),ke()}).catch(function(Ue){Pe(Ue)})})}));case 17:if(ee=ye.sent,F=!0,!this.isCancel()){ye.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(ee&&ee.length>0)){ye.next=25;break}throw ee[0].message="Failed to upload some parts with error: "+ee[0].toString()+" part_num: "+ee[0].partNum,ee[0];case 25:return ye.next=27,d.default.awrap(this.completeMultipartUpload(M,I,U,C));case 27:return ye.abrupt("return",ye.sent);case 28:case"end":return ye.stop()}},null,this)},h._getFileSize=function(E){return d.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!a.buffer(E)){_.next=4;break}return _.abrupt("return",E.length);case 4:if(!(n(E)||c(E))){_.next=6;break}return _.abrupt("return",E.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _.stop()}},null,this)};var g=R("stream"),v=g.Readable;function b(S,E){if(!(this instanceof b))return new b(S,E);v.call(this,E),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}i.inherits(b,v),b.prototype.readFileAndPush=function(E){if(this.fileBuffer)for(var C=!0;C&&this.fileBuffer&&this.start<this.fileBuffer.length;){var _=this.start,T=_+E;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,C=this.push(this.fileBuffer.slice(_,T))}},b.prototype._read=function(E){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var C=16*1024;E=E||C;var _=this;this.reader.onload=function(w){_.fileBuffer=y.from(new Uint8Array(w.target.result)),_.file=null,_.readFileAndPush(E)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(E)},h._createStream=function(E,C,_){if(n(E)||c(E))return new b(E.slice(C,_));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(E,C){var _=10*1e3,T=1024*1024;return C?Math.max(Math.ceil(E/_),C):T},h._divideParts=function(E,C){for(var _=Math.ceil(E/C),T=[],w=0;w<_;w++){var O=C*w,I=Math.min(O+C,E);T.push({start:O,end:I})}return T}}).call(this,R("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/promise"),f=a(y),x=R("babel-runtime/core-js/object/keys"),A=a(x),m=R("babel-runtime/core-js/object/assign"),p=a(m),d=R("babel-runtime/regenerator"),u=a(d);function a(_){return _&&_.__esModule?_:{default:_}}var i=R("utility"),t=R("fs"),s=R("is-type-of"),e=R("url"),l=R("copy-to"),n=R("path"),o=R("mime"),c=R("../common/callback"),h=R("../common/signUtils"),g=R("merge-descriptors"),v=R("../common/utils/isBlob"),b=v.isBlob,S=R("../common/utils/isFile"),E=S.isFile,C=r;C.append=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",M.next=6,u.default.awrap(this.put(T,w,O));case 6:return I=M.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],M.abrupt("return",I);case 9:case"end":return M.stop()}},null,this)},C.put=function(T,w,O){var I,k,M,U,P,X,F;return u.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(I=void 0,O=O||{},T=this._objectName(T),!s.buffer(w)){K.next=7;break}I=w,K.next=33;break;case 7:if(!(b(w)||E(w))){K.next=32;break}return O.mime||(E(w)?O.mime=o.getType(n.extname(w.name)):O.mime=w.type),k=this._createStream(w,0,w.size),K.next=12,u.default.awrap(this._getFileSize(w));case 12:return O.contentLength=K.sent,K.prev=13,K.next=16,u.default.awrap(this.putStream(T,k,O));case 16:return M=K.sent,K.abrupt("return",M);case 20:if(K.prev=20,K.t0=K.catch(13),!(K.t0.code==="RequestTimeTooSkewed")){K.next=29;break}return this.options.amendTimeSkewed=+new Date(K.t0.serverTime)-new Date,K.next=26,u.default.awrap(this.put(T,w,O));case 26:return K.abrupt("return",K.sent);case 29:throw K.t0;case 30:K.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),U=O.method||"PUT",P=this._objectRequestParams(U,T,O),c.encodeCallback(P,O),P.mime=O.mime,P.content=I,P.successStatuses=[200],K.next=43,u.default.awrap(this.request(P));case 43:return X=K.sent,F={name:T,url:this._objectUrl(T),res:X.res},P.headers&&P.headers["x-oss-callback"]&&(F.data=JSON.parse(X.data.toString())),K.abrupt("return",F);case 47:case"end":return K.stop()}},null,this,[[13,20]])},C.putStream=function(T,w,O){var I,k,M,U;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=O||{},O.headers=O.headers||{},T=this._objectName(T),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",k=this._objectRequestParams(I,T,O),c.encodeCallback(k,O),k.mime=O.mime,k.stream=w,k.successStatuses=[200],X.next=13,u.default.awrap(this.request(k));case 13:return M=X.sent,U={name:T,url:this._objectUrl(T),res:M.res},k.headers&&k.headers["x-oss-callback"]&&(U.data=JSON.parse(M.data.toString())),X.abrupt("return",U);case 17:case"end":return X.stop()}},null,this)},g(C,R("../common/object/copyObject")),g(C,R("../common/object/getObjectTagging")),g(C,R("../common/object/putObjectTagging")),g(C,R("../common/object/deleteObjectTagging")),g(C,R("../common/image")),g(C,R("../common/object/getBucketVersions")),g(C,R("../common/object/getACL")),g(C,R("../common/object/putACL")),g(C,R("../common/object/head")),g(C,R("../common/object/delete")),g(C,R("../common/object/get")),g(C,R("../common/object/putSymlink")),g(C,R("../common/object/getSymlink")),g(C,R("../common/object/deleteMulti")),g(C,R("../common/object/getObjectMeta")),C.putMeta=function(T,w,O){var I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,u.default.awrap(this.copy(T,T,{meta:w||{},timeout:O&&O.timeout,ctx:O&&O.ctx}));case 2:return I=M.sent,M.abrupt("return",I);case 4:case"end":return M.stop()}},null,this)},C.list=function(T,w){var O,I,k,M,U;return u.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return O=this._objectRequestParams("GET","",w),O.query=T,O.xmlResponse=!0,O.successStatuses=[200],X.next=6,u.default.awrap(this.request(O));case 6:return I=X.sent,k=I.data.Contents,M=this,k&&(Array.isArray(k)||(k=[k]),k=k.map(function(F){return{name:F.Key,url:M._objectUrl(F.Key),lastModified:F.LastModified,etag:F.ETag,type:F.Type,size:Number(F.Size),storageClass:F.StorageClass,owner:{id:F.Owner.ID,displayName:F.Owner.DisplayName}}})),U=I.data.CommonPrefixes||null,U&&(Array.isArray(U)||(U=[U]),U=U.map(function(F){return F.Prefix})),X.abrupt("return",{res:I.res,objects:k,prefixes:U,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},C.restore=function(T,w){var O,I;return u.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return w=w||{},w.subres=(0,p.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),O=this._objectRequestParams("POST",T,w),O.successStatuses=[202],M.next=7,u.default.awrap(this.request(O));case 7:return I=M.sent,M.abrupt("return",{res:I.res});case 9:case"end":return M.stop()}},null,this)},C.signatureUrl=function(T,w){w=w||{},T=this._objectName(T),w.method=w.method||"GET";var O=i.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:T},k=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var M=h._signatureForURL(this.options.accessKeySecret,w,k,O),U=e.parse(this._getReqUrl(I));return U.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:M.Signature},l(M.subResource).to(U.query),U.format()},C.getObjectUrl=function(T,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(T))},C._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},C.generateObjectUrl=function(_,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var w=e.parse(T),O=this.options.bucket;w.hostname=O+"."+w.hostname,w.host=O+"."+w.host,T=w.format()}return T+this._escape(this._objectName(_))},C._objectRequestParams=function(T,w,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:T,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.headers).to(I.headers)),I},C._objectName=function(T){return T.replace(/^\/+/,"")},C._convertMetaToHeaders=function(T,w){if(!T)return;(0,A.default)(T).forEach(function(O){w["x-oss-meta-"+O]=T[O]})},C._deleteFileSafe=function(T){var w=this;return new f.default(function(O){t.exists(T,function(I){I?t.unlink(T,function(k){k&&w.debug("unlink %j error: %s",T,k,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(R,L,r){"use strict";r.version="6.10.0"},{}],6:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=r;p.deleteBucketLifecycle=function(u,a){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"lifecycle",a),i.successStatuses=[204],e.next=5,f.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=r;p.deleteBucketWebsite=function(u,a){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(u),i=this._bucketRequestParams("DELETE",u,"website",a),i.successStatuses=[204],e.next=5,f.default.awrap(this.request(i));case 5:return t=e.sent,e.abrupt("return",{res:t.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("../utils/isArray"),d=p.isArray,u=R("../utils/formatObjKey"),a=u.formatObjKey,i=r;i.getBucketLifecycle=function(s,e){var l,n,o;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(s),l=this._bucketRequestParams("GET",s,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,h.next=6,f.default.awrap(this.request(l));case 6:return n=h.sent,o=n.data.Rule||null,o&&(d(o)||(o=[o]),o=o.map(function(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!d(g.Tag)&&(g.Tag=[g.Tag]),a(g,"firstLowerCase")})),h.abrupt("return",{rules:o,res:n.res});case 10:case"end":return h.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=r;p.getBucketVersioning=function(u,a){var i,t,s;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return m(u),i=this._bucketRequestParams("GET",u,"versioning",a),i.xmlResponse=!0,i.successStatuses=[200],l.next=6,f.default.awrap(this.request(i));case 6:return t=l.sent,s=t.data.Status,l.abrupt("return",{status:t.status,versionStatus:s,res:t.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("../utils/isObject"),d=p.isObject,u=r;u.getBucketWebsite=function(i,t){var s,e,l;return f.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return m(i),s=this._bucketRequestParams("GET",i,"website",t),s.successStatuses=[200],s.xmlResponse=!0,o.next=6,f.default.awrap(this.request(s));case 6:return e=o.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(d(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),o.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:l,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return o.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(E){return E&&E.__esModule?E:{default:E}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("../utils/isArray"),d=p.isArray,u=R("../utils/deepCopy"),a=u.deepCopy,i=R("../utils/isObject"),t=i.isObject,s=R("../utils/obj2xml"),e=s.obj2xml,l=R("../utils/checkObjectTag"),n=l.checkObjectTag,o=R("../utils/getStrBytesCount"),c=o.getStrBytesCount,h=r;h.putBucketLifecycle=function(C,_,T){var w,O,I,k,M;return f.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(m(C),d(_)){P.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",C,"lifecycle",T),O=[],I={LifecycleConfiguration:{Rule:O}},_.forEach(function(X){g(X),S(X),X.id&&(X.ID=X.id,delete X.id),O.push(X)}),k=e(I,{headers:!0,firstUpperCase:!0}),w.content=k,w.mime="xml",w.successStatuses=[200],P.next=13,f.default.awrap(this.request(w));case 13:return M=P.sent,P.abrupt("return",{res:M.res});case 15:case"end":return P.stop()}},null,this)};function g(E){E.days&&(E.expiration={days:E.days}),E.date&&(E.expiration={createdBeforeDate:E.date})}function v(E,C){var _=E.days,T=E.createdBeforeDate;if(!_&&!T)throw new Error(C+" must includes days or createdBeforeDate");if(_&&!/^[1-9][0-9]*$/.test(_))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(E){if(!d(E)&&!t(E))throw new Error("tag must be Object or Array");E=t(E)?[E]:E;var C={},_=a(E);_.forEach(function(T){C[T.key]=T.value}),n(C)}function S(E){if(E.id&&c(E.id)>255)throw new Error("ID is composed of 255 bytes at most");if(E.prefix===""||E.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(E.status))throw new Error("Status must be Enabled or Disabled");if(E.transition){if(!["IA","Archive"].includes(E.transition.storageClass))throw new Error("StorageClass must be IA or Archive");v(E.transition,"Transition")}if(E.expiration){if(!E.expiration.expiredObjectDeleteMarker)v(E.expiration,"Expiration");else if(E.expiration.days||E.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(E.abortMultipartUpload&&v(E.abortMultipartUpload,"AbortMultipartUpload"),!E.expiration&&!E.abortMultipartUpload&&!E.transition&&!E.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(E.tag){if(E.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(E.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("../utils/obj2xml"),d=p.obj2xml,u=r;u.putBucketVersioning=function(i,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,n;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(i),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",i,"versioning",s),l={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(l,{headers:!0}),c.next=9,f.default.awrap(this.request(e));case 9:return n=c.sent,c.abrupt("return",{res:n.res,status:n.status});case 11:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("../utils/obj2xml"),d=p.obj2xml,u=R("../utils/isArray"),a=u.isArray,i=r;i.putBucketWebsite=function(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],n,o,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(s),n=this._bucketRequestParams("PUT",s,"website",l),o={Suffix:e.index||"index.html"},c={IndexDocument:o},h={WebsiteConfiguration:c},e.supportSubDir&&(o.SupportSubDir=e.supportSubDir),e.type&&(o.Type=e.type),e.error&&(c.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){b.next=12;break}if(a(e.routingRules)){b.next=11;break}throw new Error("RoutingRules must be Array");case 11:c.RoutingRules={RoutingRule:e.routingRules};case 12:return h=d(h),n.content=h,n.mime="xml",n.successStatuses=[200],b.next=18,f.default.awrap(this.request(n));case 18:return g=b.sent,b.abrupt("return",{res:g.res});case 20:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/core-js/object/keys"),x=p(f),A=R("babel-runtime/core-js/json/stringify"),m=p(A);function p(d){return d&&d.__esModule?d:{default:d}}r.encodeCallback=function(u,a){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&a.callback){var i={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};a.callback.host&&(i.callbackHost=a.callback.host),a.callback.contentType&&(i.callbackBodyType=a.callback.contentType);var t=y.from((0,m.default)(i)).toString("base64");if(u.headers["x-oss-callback"]=t,a.callback.customValue){var s={};(0,x.default)(a.callback.customValue).forEach(function(e){s["x:"+e]=a.callback.customValue[e]}),u.headers["x-oss-callback-var"]=y.from((0,m.default)(s)).toString("base64")}}}}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/assign"),f=x(y);function x(i){return i&&i.__esModule?i:{default:i}}var A=R("humanize-ms"),m=R("url"),p=R("../utils/checkBucketName"),d=p.checkBucketName;function u(i,t){var s=m.parse(i);if(s.protocol||(s=m.parse("http"+(t?"s":"")+"://"+i)),s.protocol!=="http:"&&s.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return s}function a(i,t,s){var e=s?"https://":"http://",l=t?"-internal.aliyuncs.com":".aliyuncs.com",n="vpc100-oss-cn-";return i.substr(0,n.length)===n&&(l=".aliyuncs.com"),m.parse(e+i+l)}L.exports=function(i){if(!i||!i.accessKeyId||!i.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");i.bucket&&d(i.bucket);var t=(0,f.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},i);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=A(t.timeout)),t.endpoint)t.endpoint=u(t.endpoint,t.secure);else if(t.region)t.endpoint=a(t.region,t.internal,t.secure);else throw new Error("require options.endpoint or options.region");return t.inited=!0,t}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(R,L,r){"use strict";var y=R("merge-descriptors"),f=r;y(f,R("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}var A=R("../utils/checkBucketName"),m=A.checkBucketName,p=R("querystring"),d=R("js-base64"),u=d.Base64.encode,a=r;a.processObjectSave=function(s,e,l,n){var o,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return i(s,"sourceObject"),i(e,"targetObject"),i(l,"process"),e=this._objectName(e),n&&m(n),o=this._objectRequestParams("POST",s,{subres:"x-oss-process"}),c=n?",b_"+u(n):"",e=u(e),h={"x-oss-process":l+"|sys/saveas,o_"+e+c},o.content=p.stringify(h),b.next=12,f.default.awrap(this.request(o));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.res.status});case 14:case"end":return b.stop()}},null,this)};function i(t,s){if(!t)throw new Error(s+" is required");if(typeof t!="string")throw new Error(s+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=x(y);function x(a){return a&&a.__esModule?a:{default:a}}var A=R("copy-to"),m=R("./callback"),p=R("./utils/deepCopy"),d=p.deepCopy,u=r;u.listUploads=function(i,t){var s,e,l,n;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},s={},A(t).to(s),s.subres="uploads",e=this._objectRequestParams("GET","",s),e.query=i,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,f.default.awrap(this.request(e));case 10:return l=c.sent,n=l.data.Upload||[],Array.isArray(n)||(n=[n]),n=n.map(function(h){return{name:h.Key,uploadId:h.UploadId,initiated:h.Initiated}}),c.abrupt("return",{res:l.res,uploads:n,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return c.stop()}},null,this)},u.listParts=function(i,t,s,e){var l,n,o;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:t},n=this._objectRequestParams("GET",i,l),n.query=s,n.xmlResponse=!0,n.successStatuses=[200],h.next=10,f.default.awrap(this.request(n));case 10:return o=h.sent,h.abrupt("return",{res:o.res,uploadId:o.data.UploadId,bucket:o.data.Bucket,name:o.data.Key,partNumberMarker:o.data.PartNumberMarker,nextPartNumberMarker:o.data.NextPartNumberMarker,maxParts:o.data.MaxParts,isTruncated:o.data.IsTruncated,parts:o.data.Part||[]});case 12:case"end":return h.stop()}},null,this)},u.abortMultipartUpload=function(i,t,s){var e,l,n;return f.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),s=s||{},e={},A(s).to(e),e.subres={uploadId:t},l=this._objectRequestParams("DELETE",i,e),l.successStatuses=[204],c.next=9,f.default.awrap(this.request(l));case 9:return n=c.sent,c.abrupt("return",{res:n.res});case 11:case"end":return c.stop()}},null,this)},u.initMultipartUpload=function(i,t){var s,e,l;return f.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t=t||{},s={},A(t).to(s),s.headers=s.headers||{},this._convertMetaToHeaders(t.meta,s.headers),s.subres="uploads",e=this._objectRequestParams("POST",i,s),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],o.next=12,f.default.awrap(this.request(e));case 12:return l=o.sent,o.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return o.stop()}},null,this)},u.uploadPart=function(i,t,s,e,l,n,o){var c;return f.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,l,n),size:n-l},g.next=3,f.default.awrap(this._uploadPart(i,t,s,c,o));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},u.completeMultipartUpload=function(i,t,s,e){var l,n,o,c,h,g,v,b;return f.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:for(l=s.concat().sort(function(C,_){return C.number-_.number}).filter(function(C,_,T){return!_||C.number!==T[_-1].number}),n=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,o=0;o<l.length;o++)c=l[o],n+=`<Part>
`,n+="<PartNumber>"+c.number+`</PartNumber>
`,n+="<ETag>"+c.etag+`</ETag>
`,n+=`</Part>
`;return n+="</CompleteMultipartUpload>",e=e||{},h={},h=d(e),h.headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:t},g=this._objectRequestParams("POST",i,h),m.encodeCallback(g,h),g.mime="xml",g.content=n,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],E.next=17,f.default.awrap(this.request(g));case 17:return v=E.sent,b={res:v.res,bucket:g.bucket,name:i,etag:v.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(v.data.toString())),E.abrupt("return",b);case 21:case"end":return E.stop()}},null,this)},u._uploadPart=function(i,t,s,e,l){var n,o,c;return f.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return l=l||{},n={},A(l).to(n),n.headers={"Content-Length":e.size},n.subres={partNumber:s,uploadId:t},o=this._objectRequestParams("PUT",i,n),o.mime=n.mime,o.stream=e.stream,o.successStatuses=[200],g.next=11,f.default.awrap(this.request(o));case 11:if(c=g.sent,c.res.headers.etag){g.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return e.stream=null,o.stream=null,g.abrupt("return",{name:i,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),A=d(x),m=R("babel-runtime/helpers/typeof"),p=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var u=R("../utils/checkBucketName"),a=u.checkBucketName,i=r;i.copy=function(s,e,l,n){var o,c,h;return f.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return(typeof l=="undefined"?"undefined":(0,p.default)(l))==="object"&&(n=l),n=n||{},n.headers=n.headers||{},(0,A.default)(n.headers).forEach(function(b){n.headers["x-oss-copy-source-"+b.toLowerCase()]=n.headers[b]}),n.meta&&(n.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(n.meta,n.headers),e=this._getSourceName(e,l),n.versionId&&(e=e+"?versionId="+n.versionId),n.headers["x-oss-copy-source"]=e,o=this._objectRequestParams("PUT",s,n),o.xmlResponse=!0,o.successStatuses=[200,304],v.next=14,f.default.awrap(this.request(o));case 14:return c=v.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),v.abrupt("return",{data:h,res:c.res});case 18:case"end":return v.stop()}},null,this)},i._getSourceName=function(s,e){return typeof e=="string"?s=this._objectName(s):s[0]!=="/"?e=this.options.bucket:(e=s.replace(/\/(.+?)(\/.*)/,"$1"),s=s.replace(/(\/.+?\/)(.*)/,"$2")),a(e),s=encodeURI(s),s="/"+e+"/"+s,s}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.delete=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=6,f.default.awrap(this.request(i));case 6:return t=e.sent,e.abrupt("return",{res:t.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(i){return i&&i.__esModule?i:{default:i}}var p=R("utility"),d=R("../utils/obj2xml"),u=d.obj2xml,a=r;a.deleteMulti=function(t){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,n,o,c,h,g,v,b,S,E,C;return f.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(e=[],!(!t||!t.length)){T.next=3;break}throw new Error("names is required");case 3:for(l=0;l<t.length;l++)n={},typeof t[l]=="string"?n.Key=p.escape(this._objectName(t[l])):(o=t[l],c=o.key,h=o.versionId,n.Key=p.escape(this._objectName(c)),n.VersionId=h),e.push(n);return g={Delete:{Quiet:!!s.quiet,Object:e}},v=u(g,{headers:!0}),s.subres=(0,A.default)({delete:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),b=this._objectRequestParams("POST","",s),b.mime="xml",b.content=v,b.xmlResponse=!0,b.successStatuses=[200],T.next=15,f.default.awrap(this.request(b));case 15:return S=T.sent,E=S.data,C=E&&E.Deleted||null,C&&(Array.isArray(C)||(C=[C])),T.abrupt("return",{res:S.res,deleted:C||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.deleteObjectTagging=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("DELETE",u,a),i.successStatuses=[204],e.next=7,f.default.awrap(this.request(i));case 7:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var p=R("fs"),d=R("is-type-of"),u=r;u.get=function(i,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,n,o;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=null,l=!1,d.writableStream(t)?e=t:d.string(t)?(e=p.createWriteStream(t),l=!0):s=t,s=s||{},s.subres=(0,A.default)({},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.process&&(s.subres["x-oss-process"]=s.process),n=void 0,h.prev=8,o=this._objectRequestParams("GET",i,s),o.writeStream=e,o.successStatuses=[200,206,304],h.next=14,f.default.awrap(this.request(o));case 14:n=h.sent,l&&e.destroy(),h.next=25;break;case 18:if(h.prev=18,h.t0=h.catch(8),!l){h.next=24;break}return e.destroy(),h.next=24,f.default.awrap(this._deleteFileSafe(t));case 24:throw h.t0;case 25:return h.abrupt("return",{res:n.res,content:n.data});case 26:case"end":return h.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.getACL=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a.subres=(0,A.default)({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],i.xmlResponse=!0,e.next=8,f.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{acl:t.data.AccessControlList.Grant,owner:{id:t.data.Owner.ID,displayName:t.data.Owner.DisplayName},res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=d(y),x=R("babel-runtime/regenerator"),A=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(o){return o&&o.__esModule?o:{default:o}}var u=r,a=R("../utils/isObject"),i=a.isObject,t=R("../utils/isArray"),s=t.isArray;u.getBucketVersions=e,u.listObjectVersions=e;function e(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h,g,v,b,S,E;return A.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!(o.versionIdMarker&&o.keyMarker===void 0)){_.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return c.subres=(0,p.default)({versions:""},c.subres),c.versionId&&(c.subres.versionId=c.versionId),h=this._objectRequestParams("GET","",c),h.xmlResponse=!0,h.successStatuses=[200],h.query=n(o),_.next=10,A.default.awrap(this.request(h));case 10:return g=_.sent,v=g.data.Version||[],b=g.data.DeleteMarker||[],S=this,v&&(Array.isArray(v)||(v=[v]),v=v.map(function(T){return{name:T.Key,url:S._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),b&&(s(b)||(b=[b]),b=b.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),E=g.data.CommonPrefixes||null,E&&(s(E)||(E=[E]),E=E.map(function(T){return T.Prefix})),_.abrupt("return",{res:g.res,objects:v,deleteMarker:b,prefixes:E,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return _.stop()}},null,this)}function l(o){return o.replace(/([A-Z])/g,"-$1").toLowerCase()}function n(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c={};return i(o)&&(0,f.default)(o).forEach(function(h){c[l(h)]=o[h]}),c}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.getObjectMeta=function(u,a){var i,t;return f.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},u=this._objectName(u),a.subres=(0,A.default)({objectMeta:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),i=this._objectRequestParams("HEAD",u,a),i.successStatuses=[200],e.next=8,f.default.awrap(this.request(i));case 8:return t=e.sent,e.abrupt("return",{status:t.status,res:t.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(a){return a&&a.__esModule?a:{default:a}}var p=r,d=R("../utils/isObject"),u=d.isObject;p.getObjectTagging=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,e,l,n,o;return f.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return t.subres=(0,A.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),i=this._objectName(i),s=this._objectRequestParams("GET",i,t),s.successStatuses=[200],h.next=7,f.default.awrap(this.request(s));case 7:return e=h.sent,h.next=10,f.default.awrap(this.parseXML(e.data));case 10:return l=h.sent,n=l.TagSet.Tag,n=n&&u(n)?[n]:n||[],o={},n.forEach(function(g){o[g.Key]=g.Value}),h.abrupt("return",{status:e.status,res:e.res,tag:o});case 16:case"end":return h.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.getSymlink=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,t,s;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a.subres=(0,A.default)({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),u=this._objectName(u),i=this._objectRequestParams("GET",u,a),i.successStatuses=[200],l.next=7,f.default.awrap(this.request(i));case 7:return t=l.sent,s=t.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(s),res:t.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),A=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(a){return a&&a.__esModule?a:{default:a}}var u=r;u.head=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,e,l;return f.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return t.subres=(0,p.default)({},t.subres),t.versionId&&(t.subres.versionId=t.versionId),s=this._objectRequestParams("HEAD",i,t),s.successStatuses=[200,304],o.next=6,f.default.awrap(this.request(s));case 6:return e=o.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(c){c.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[c.substring(11)]=e.headers[c])}),o.abrupt("return",l);case 10:case"end":return o.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.putACL=function(u,a,i){var t,s;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.subres=(0,A.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.headers=i.headers||{},i.headers["x-oss-object-acl"]=a,u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=10,f.default.awrap(this.request(t));case 10:return s=l.sent,l.abrupt("return",{res:s.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=d(y),x=R("babel-runtime/core-js/object/keys"),A=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var u=R("../utils/obj2xml"),a=u.obj2xml,i=R("../utils/checkObjectTag"),t=i.checkObjectTag,s=r;s.putObjectTagging=function(l,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return t(n),o.subres=(0,p.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),c=this._objectRequestParams("PUT",l,o),c.successStatuses=[200],n=(0,A.default)(n).map(function(S){return{Key:S,Value:n[S]}}),h={Tagging:{TagSet:{Tag:n}}},c.mime="xml",c.content=a(h),b.next=12,f.default.awrap(this.request(c));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.status});case 14:case"end":return b.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/object/assign"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p.putSymlink=function(u,a,i){var t,s;return f.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return i=i||{},i.headers=i.headers||{},a=this._escape(this._objectName(a)),this._convertMetaToHeaders(i.meta,i.headers),i.headers["x-oss-symlink-target"]=a,i.subres=(0,A.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),i.storageClass&&(i.headers["x-oss-storage-class"]=i.storageClass),u=this._objectName(u),t=this._objectRequestParams("PUT",u,i),t.successStatuses=[200],l.next=13,f.default.awrap(this.request(t));case 13:return s=l.sent,l.abrupt("return",{res:s.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(R,L,r){"use strict";var y=R("babel-runtime/regenerator"),f=m(y),x=R("babel-runtime/core-js/promise"),A=m(x);function m(d){return d&&d.__esModule?d:{default:d}}var p=r;p._parallelNode=function(u,a,i,t){var s,e,l,n,o,c,h,g;return f.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:s=this,e=[],l=[],n=u.length/a,o=u.length%a,c=o===0?n:(u.length-o)/a+1,h=1,g=0;case 8:if(!(g<u.length)){b.next=26;break}if(!s.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?l.push(i(s,u[g],t)):l.push(i(s,u[g])),!(l.length===a||h===c&&g===u.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,f.default.awrap(A.default.all(l));case 17:b.next=22;break;case 19:b.prev=19,b.t0=b.catch(13),e.push(b.t0);case 22:l=[];case 23:g++,b.next=8;break;case 26:return b.abrupt("return",e);case 27:case"end":return b.stop()}},null,this,[[13,19]])},p._parallel=function(u,a,i){var t=this;return new A.default(function(s){var e=[];if(a<=0||!u){s(e);return}function l(E){return function(){if(E===null)throw new Error("Callback was already called.");var C=E;E=null;for(var _=arguments.length,T=Array(_),w=0;w<_;w++)T[w]=arguments[w];C.apply(this,T)}}function n(E){var C=-1,_=E.length;return function(){return++C<_&&!t.isCancel()?{value:E[C],key:C}:null}}var o=n(u),c=!1,h=0,g=!1;function v(E,C){h-=1,E?(c=!0,e.push(E),s(e)):C==={}||c&&h<=0?(c=!0,s(e)):g||(t.isCancel()?s(e):S())}function b(E,C){i(E).then(function(_){C(null,_)}).catch(function(_){C(_)})}function S(){for(g=!0;h<a&&!c&&!t.isCancel();){var E=o();if(E===null||e.length>0){c=!0,h<=0&&s(e);return}h+=1,b(E.value,l(v))}g=!1}S()})},p.cancel=function(u){this.options.cancelFlag=!0,u&&this.abortMultipartUpload(u.name,u.uploadId,u.options)},p.isCancel=function(){return this.options.cancelFlag},p.resetCancelFlag=function(){this.options.cancelFlag=!1},p._stop=function(){this.options.cancelFlag=!0},p._makeCancelEvent=function(){var u={status:0,name:"cancel"};return u}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/core-js/json/stringify"),x=p(f),A=R("babel-runtime/core-js/object/keys"),m=p(A);function p(a){return a&&a.__esModule?a:{default:a}}var d=R("./../../shims/crypto/crypto.js"),u=R("is-type-of");r.buildCanonicalizedResource=function(i,t){var s=""+i,e="?";if(u.string(t)&&t.trim()!=="")s+=e+t;else if(u.array(t))t.sort(),s+=e+t.join("&");else if(t){var l=function(c,h){return c[0]>h[0]?1:c[0]<h[0]?-1:0},n=function(c){s+=e+c,t[c]&&(s+="="+t[c]),e="&"};(0,m.default)(t).sort(l).forEach(n)}return s},r.buildCanonicalString=function(i,t,s,e){s=s||{};var l=s.headers||{},n="x-oss-",o=[],c={},h=[i.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,m.default)(l).forEach(function(g){var v=g.toLowerCase();v.indexOf(n)===0&&(c[v]=String(l[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){o.push(g+":"+c[g])}),h=h.concat(o),h.push(this.buildCanonicalizedResource(t,s.parameters)),h.join(`
`)},r.computeSignature=function(i,t){var s=d.createHmac("sha1",i);return s.update(y.from(t,"utf8")).digest("base64")},r.authorization=function(i,t,s){return"OSS "+i+":"+this.computeSignature(t,s)},r._signatureForURL=function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],e=arguments[3],l={},n=t.subResource,o=n===void 0?{}:n;if(t.process){var c="x-oss-process";o[c]=t.process}if(t.trafficLimit){var h="x-oss-traffic-limit";o[h]=t.trafficLimit}if(t.response&&(0,m.default)(t.response).forEach(function(S){var E="response-"+S.toLowerCase();o[E]=t.response[S]}),(0,m.default)(t).forEach(function(S){var E=S.toLowerCase(),C=t[S];E.indexOf("x-oss-")===0?l[E]=C:(E.indexOf("content-md5")===0||E.indexOf("content-type")===0)&&(l[S]=C)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(o["security-token"]=t["security-token"]),Object.prototype.hasOwnProperty.call(t,"callback")){var g={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body};if(t.callback.host&&(g.callbackHost=t.callback.host),t.callback.contentType&&(g.callbackBodyType=t.callback.contentType),o.callback=y.from((0,x.default)(g)).toString("base64"),t.callback.customValue){var v={};(0,m.default)(t.callback.customValue).forEach(function(S){v["x:"+S]=t.callback.customValue[S]}),o["callback-var"]=y.from((0,x.default)(v)).toString("base64")}}var b=this.buildCanonicalString(t.method,s,{headers:l,parameters:o},e.toString());return{Signature:this.computeSignature(i,b),subResource:o}}}).call(this,R("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(y,f){var x=f?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!x.test(y))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/entries"),f=x(y);function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(r,"__esModule",{value:!0}),r.checkObjectTag=void 0;var A=R("./checkValid"),m=A.checkValid,p=R("./isObject"),d=p.isObject,u=[{validator:function(s){if(typeof s!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],a={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function i(t){if(!d(t))throw new Error("tag must be Object");var s=(0,f.default)(t);if(s.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];s.forEach(function(l){l.forEach(function(n,o){m(n,a[e[o]])})})}r.checkObjectTag=i},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkValid=void 0;function y(f,x){x.forEach(function(A){if(A.validator)A.validator(f);else if(A.pattern&&!A.pattern.test(f))throw new Error(A.msg)})}r.checkValid=y},{}],38:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/core-js/object/assign"),x=A(f);function A(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var m=R("./../../../shims/crypto/crypto.js"),p=R("debug")("ali-oss"),d=R("mime"),u=R("dateformat"),a=R("copy-to"),i=R("path");function t(l,n){return l[n]||l[n.toLowerCase()]}function s(l,n){delete l[n],delete l[n.toLowerCase()]}function e(l){var n=new Date;this.options.amendTimeSkewed&&(n=+new Date+this.options.amendTimeSkewed);var o={"x-oss-date":u(n,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(o["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,x.default)(o,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(o["x-oss-security-token"]=this.options.stsToken),a(l.headers).to(o),t(o,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?o["Content-Type"]=l.mime:o["Content-Type"]=d.getType(l.mime||i.extname(l.object||""))),t(o,"Content-Type")||s(o,"Content-Type"),l.content&&(o["Content-Md5"]=m.createHash("md5").update(y.from(l.content,"utf8")).digest("base64"),o["Content-Length"]||(o["Content-Length"]=l.content.length));var c=this._getResource(l);o.authorization=this.authorization(l.method,c,l.subres,o);var h=this._getReqUrl(l);p("request %s %s, with headers %j, !!stream: %s",l.method,h,o,!!l.stream);var g=l.timeout||this.options.timeout,v={method:l.method,content:l.content,stream:l.stream,headers:o,timeout:g,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(v.agent=this.agent),this.httpsAgent&&(v.httpsAgent=this.httpsAgent),{url:h,params:v}}r.createRequest=e}).call(this,R("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/helpers/typeof"),A=m(x);function m(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(r,"__esModule",{value:!0}),r.deepCopy=void 0,r.deepCopy=function(p){if(p===null||(typeof p=="undefined"?"undefined":(0,A.default)(p))!=="object")return p;var d=Array.isArray(p)?[]:{};return(0,f.default)(p).forEach(function(u){d[u]=r.deepCopy(p[u])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/helpers/typeof"),A=m(x);function m(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(r,"__esModule",{value:!0}),r.formatObjKey=void 0;function p(u,a){if(u===null||(typeof u=="undefined"?"undefined":(0,A.default)(u))!=="object")return u;var i=void 0;if(Array.isArray(u)){i=[];for(var t=0;t<u.length;t++)i.push(p(u[t],a))}else i={},(0,f.default)(u).forEach(function(s){i[d(s,a)]=p(u[s],a)});return i}r.formatObjKey=p;function d(u,a){return a==="firstUpperCase"?u=u.replace(/^./,function(i){return i.toUpperCase()}):a==="firstLowerCase"&&(u=u.replace(/^./,function(i){return i.toLowerCase()})),u}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getStrBytesCount=void 0;function y(f){for(var x=0,A=0;A<f.length;A++){var m=f.charAt(A);/^[\u00-\uff]$/.test(m)?x+=1:x+=2}return x}r.getStrBytesCount=y},{}],42:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=void 0,r.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBlob=void 0;function y(f){return typeof Blob!="undefined"&&f instanceof Blob}r.isBlob=y},{}],44:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFile=void 0,r.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isIP=void 0,r.isIP=function(y){var f=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,x=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return f.test(y)||x.test(y)}},{}],46:[function(R,L,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=void 0,r.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(r,"__esModule",{value:!0}),r.obj2xml=void 0;var A=R("./formatObjKey");function m(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function p(d,u){var a="";return u&&u.headers&&(a=`<?xml version="1.0" encoding="UTF-8"?>
`),u&&u.firstUpperCase&&(d=A.formatObjKey(d,"firstUpperCase")),m(d)==="object"?(0,f.default)(d).forEach(function(i){m(d[i])==="string"||m(d[i])==="number"?a+="<"+i+">"+d[i]+"</"+i+">":m(d[i])==="object"?a+="<"+i+">"+p(d[i])+"</"+i+">":m(d[i])==="array"?a+=d[i].map(function(t){return"<"+i+">"+p(t)+"</"+i+">"}).join(""):a+="<"+i+">"+d[i].toString()+"</"+i+">"}):a+=d.toString(),a}r.obj2xml=p},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(R,L,r){L.exports=y,L.exports.HttpsAgent=y;function y(){}},{}],49:[function(R,L,r){L.exports=R("./register")().Promise},{"./register":51}],50:[function(R,L,r){"use strict";var y="@@any-promise/REGISTRATION",f=null;L.exports=function(x,A){return function(p,d){p=p||null,d=d||{};var u=d.global!==!1;if(f===null&&u&&(f=x[y]||null),f!==null&&p!==null&&f.implementation!==p)throw new Error('any-promise already defined as "'+f.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return f===null&&(p!==null&&typeof d.Promise!="undefined"?f={Promise:d.Promise,implementation:p}:f=A(p),u&&(x[y]=f)),f}}},{}],51:[function(R,L,r){"use strict";L.exports=R("./loader")(window,y);function y(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(R,L,r){L.exports={default:R("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(R,L,r){L.exports={default:R("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(R,L,r){L.exports={default:R("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(R,L,r){L.exports={default:R("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(R,L,r){L.exports={default:R("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(R,L,r){L.exports={default:R("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(R,L,r){L.exports={default:R("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(R,L,r){L.exports={default:R("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(R,L,r){L.exports={default:R("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(R,L,r){"use strict";r.__esModule=!0;var y=R("../core-js/symbol/iterator"),f=p(y),x=R("../core-js/symbol"),A=p(x),m=typeof A.default=="function"&&typeof f.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof A.default=="function"&&d.constructor===A.default&&d!==A.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}r.default=typeof A.default=="function"&&m(f.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":m(d)}:function(d){return d&&typeof A.default=="function"&&d.constructor===A.default&&d!==A.default.prototype?"symbol":typeof d=="undefined"?"undefined":m(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(R,L,r){L.exports=R("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(R,L,r){"use strict";r.byteLength=u,r.toByteArray=i,r.fromByteArray=e;for(var y=[],f=[],x=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,p=A.length;m<p;++m)y[m]=A[m],f[A.charCodeAt(m)]=m;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63;function d(l){var n=l.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=l.indexOf("=");o===-1&&(o=n);var c=o===n?0:4-o%4;return[o,c]}function u(l){var n=d(l),o=n[0],c=n[1];return(o+c)*3/4-c}function a(l,n,o){return(n+o)*3/4-o}function i(l){var n,o=d(l),c=o[0],h=o[1],g=new x(a(l,c,h)),v=0,b=h>0?c-4:c,S;for(S=0;S<b;S+=4)n=f[l.charCodeAt(S)]<<18|f[l.charCodeAt(S+1)]<<12|f[l.charCodeAt(S+2)]<<6|f[l.charCodeAt(S+3)],g[v++]=n>>16&255,g[v++]=n>>8&255,g[v++]=n&255;return h===2&&(n=f[l.charCodeAt(S)]<<2|f[l.charCodeAt(S+1)]>>4,g[v++]=n&255),h===1&&(n=f[l.charCodeAt(S)]<<10|f[l.charCodeAt(S+1)]<<4|f[l.charCodeAt(S+2)]>>2,g[v++]=n>>8&255,g[v++]=n&255),g}function t(l){return y[l>>18&63]+y[l>>12&63]+y[l>>6&63]+y[l&63]}function s(l,n,o){for(var c,h=[],g=n;g<o;g+=3)c=(l[g]<<16&16711680)+(l[g+1]<<8&65280)+(l[g+2]&255),h.push(t(c));return h.join("")}function e(l){for(var n,o=l.length,c=o%3,h=[],g=16383,v=0,b=o-c;v<b;v+=g)h.push(s(l,v,v+g>b?b:v+g));return c===1?(n=l[o-1],h.push(y[n>>2]+y[n<<4&63]+"==")):c===2&&(n=(l[o-2]<<8)+l[o-1],h.push(y[n>>10]+y[n>>4&63]+y[n<<2&63]+"=")),h.join("")}},{}],70:[function(R,L,r){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(y,f,x){typeof L!="undefined"&&L.exports?L.exports=x():typeof define=="function"&&define.amd?define(f,x):y[f]=x()}(this,"bowser",function(){var y=!0;function f(a){function i(j){var K=a.match(j);return K&&K.length>1&&K[1]||""}function t(j){var K=a.match(j);return K&&K.length>1&&K[2]||""}var s=i(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(a),l=!e&&/android/i.test(a),n=/nexus\s*[0-6]\s*/i.test(a),o=!n&&/nexus\s*[0-9]+/i.test(a),c=/CrOS/.test(a),h=/silk/i.test(a),g=/sailfish/i.test(a),v=/tizen/i.test(a),b=/(web|hpw)(o|0)s/i.test(a),S=/windows phone/i.test(a),E=/SamsungBrowser/i.test(a),C=!S&&/windows/i.test(a),_=!s&&!h&&/macintosh/i.test(a),T=!l&&!g&&!v&&!b&&/linux/i.test(a),w=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=i(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(a)&&!/tablet pc/i.test(a),k=!I&&/[^-]mobi/i.test(a),M=/xbox/i.test(a),U;/opera/i.test(a)?U={name:"Opera",opera:y,version:O||i(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?U={name:"Opera",opera:y,version:i(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(a)?U={name:"Samsung Internet for Android",samsungBrowser:y,version:O||i(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(a)?U={name:"NAVER Whale browser",whale:y,version:i(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(a)?U={name:"MZ Browser",mzbrowser:y,version:i(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(a)?U={name:"Opera Coast",coast:y,version:O||i(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(a)?U={name:"Focus",focus:y,version:i(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(a)?U={name:"Yandex Browser",yandexbrowser:y,version:O||i(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?U={name:"UC Browser",ucbrowser:y,version:i(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?U={name:"Maxthon",maxthon:y,version:i(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?U={name:"Epiphany",epiphany:y,version:i(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?U={name:"Puffin",puffin:y,version:i(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?U={name:"Sleipnir",sleipnir:y,version:i(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?U={name:"K-Meleon",kMeleon:y,version:i(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:S?(U={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},w?(U.msedge=y,U.version=w):(U.msie=y,U.version=i(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?U={name:"Internet Explorer",msie:y,version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?U={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?U={name:"Microsoft Edge",msedge:y,version:w}:/vivaldi/i.test(a)?U={name:"Vivaldi",vivaldi:y,version:i(/vivaldi\/(\d+(\.\d+)?)/i)||O}:g?U={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:i(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?U={name:"SeaMonkey",seamonkey:y,version:i(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(U={name:"Firefox",firefox:y,version:i(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(U.firefoxos=y,U.osname="Firefox OS")):h?U={name:"Amazon Silk",silk:y,version:i(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?U={name:"PhantomJS",phantom:y,version:i(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?U={name:"SlimerJS",slimer:y,version:i(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?U={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:O||i(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(U={name:"WebOS",osname:"WebOS",webos:y,version:O||i(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(U.touchpad=y)):/bada/i.test(a)?U={name:"Bada",osname:"Bada",bada:y,version:i(/dolfin\/(\d+(\.\d+)?)/i)}:v?U={name:"Tizen",osname:"Tizen",tizen:y,version:i(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(a)?U={name:"QupZilla",qupzilla:y,version:i(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(a)?U={name:"Chromium",chromium:y,version:i(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(a)?U={name:"Chrome",chrome:y,version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?U={name:"Android",version:O}:/safari|applewebkit/i.test(a)?(U={name:"Safari",safari:y},O&&(U.version=O)):s?(U={name:s=="iphone"?"iPhone":s=="ipad"?"iPad":"iPod"},O&&(U.version=O)):/googlebot/i.test(a)?U={name:"Googlebot",googlebot:y,version:i(/googlebot\/(\d+(\.\d+))/i)||O}:U={name:i(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!U.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(U.name=U.name||"Blink",U.blink=y):(U.name=U.name||"Webkit",U.webkit=y),!U.version&&O&&(U.version=O)):!U.opera&&/gecko\//i.test(a)&&(U.name=U.name||"Gecko",U.gecko=y,U.version=U.version||i(/gecko\/(\d+(\.\d+)?)/i)),!U.windowsphone&&(l||U.silk)?(U.android=y,U.osname="Android"):!U.windowsphone&&s?(U[s]=y,U.ios=y,U.osname="iOS"):_?(U.mac=y,U.osname="macOS"):M?(U.xbox=y,U.osname="Xbox"):C?(U.windows=y,U.osname="Windows"):T&&(U.linux=y,U.osname="Linux");function P(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var X="";U.windows?X=P(i(/Windows ((NT|XP)( \d\d?.\d)?)/i)):U.windowsphone?X=i(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):U.mac?(X=i(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):s?(X=i(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):l?X=i(/android[ \/-](\d+(\.\d+)*)/i):U.webos?X=i(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):U.blackberry?X=i(/rim\stablet\sos\s(\d+(\.\d+)*)/i):U.bada?X=i(/bada\/(\d+(\.\d+)*)/i):U.tizen&&(X=i(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(U.osversion=X);var F=!U.windows&&X.split(".")[0];return I||o||s=="ipad"||l&&(F==3||F>=4&&!k)||U.silk?U.tablet=y:(k||s=="iphone"||s=="ipod"||l||n||U.blackberry||U.webos||U.bada)&&(U.mobile=y),U.msedge||U.msie&&U.version>=10||U.yandexbrowser&&U.version>=15||U.vivaldi&&U.version>=1||U.chrome&&U.version>=20||U.samsungBrowser&&U.version>=4||U.whale&&p([U.version,"1.0"])===1||U.mzbrowser&&p([U.version,"6.0"])===1||U.focus&&p([U.version,"1.0"])===1||U.firefox&&U.version>=20||U.safari&&U.version>=6||U.opera&&U.version>=10||U.ios&&U.osversion&&U.osversion.split(".")[0]>=6||U.blackberry&&U.version>=10.1||U.chromium&&U.version>=20?U.a=y:U.msie&&U.version<10||U.chrome&&U.version<20||U.firefox&&U.version<20||U.safari&&U.version<6||U.opera&&U.version<10||U.ios&&U.osversion&&U.osversion.split(".")[0]<6||U.chromium&&U.version<20?U.c=y:U.x=y,U}var x=f(typeof navigator!="undefined"&&navigator.userAgent||"");x.test=function(a){for(var i=0;i<a.length;++i){var t=a[i];if(typeof t=="string"&&t in x)return!0}return!1};function A(a){return a.split(".").length}function m(a,i){var t=[],s;if(Array.prototype.map)return Array.prototype.map.call(a,i);for(s=0;s<a.length;s++)t.push(i(a[s]));return t}function p(a){for(var i=Math.max(A(a[0]),A(a[1])),t=m(a,function(s){var e=i-A(s);return s=s+new Array(e+1).join(".0"),m(s.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--i>=0;){if(t[0][i]>t[1][i])return 1;if(t[0][i]===t[1][i]){if(i===0)return 0}else return-1}}function d(a,i,t){var s=x;typeof i=="string"&&(t=i,i=void 0),i===void 0&&(i=!1),t&&(s=f(t));var e=""+s.version;for(var l in a)if(a.hasOwnProperty(l)&&s[l]){if(typeof a[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(a));return p([e,a[l]])<0}return i}function u(a,i,t){return!d(a,i,t)}return x.isUnsupportedBrowser=d,x.compareVersions=p,x.check=u,x._detect=f,x.detect=f,x})},{}],71:[function(R,L,r){},{}],72:[function(R,L,r){var y=R("buffer").Buffer,f=y.isEncoding||function(u){switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(u){if(u&&!f(u))throw new Error("Unknown encoding: "+u)}var A=r.StringDecoder=function(u){this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),x(u);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=p;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=d;break;default:this.write=m;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(u){for(var a="";this.charLength;){var i=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,i),this.charReceived+=i,this.charReceived<this.charLength)return"";u=u.slice(i,u.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var s=a.charCodeAt(a.length-1);if(s>=55296&&s<=56319){this.charLength+=this.surrogateSize,a="";continue}if(this.charReceived=this.charLength=0,u.length===0)return a;break}this.detectIncompleteChar(u);var t=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,t),t-=this.charReceived),a+=u.toString(this.encoding,0,t);var t=a.length-1,s=a.charCodeAt(t);if(s>=55296&&s<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),u.copy(this.charBuffer,0,0,e),a.substring(0,t)}return a},A.prototype.detectIncompleteChar=function(u){for(var a=u.length>=3?3:u.length;a>0;a--){var i=u[u.length-a];if(a==1&&i>>5==6){this.charLength=2;break}if(a<=2&&i>>4==14){this.charLength=3;break}if(a<=3&&i>>3==30){this.charLength=4;break}}this.charReceived=a},A.prototype.end=function(u){var a="";if(u&&u.length&&(a=this.write(u)),this.charReceived){var i=this.charReceived,t=this.charBuffer,s=this.encoding;a+=t.slice(0,i).toString(s)}return a};function m(u){return u.toString(this.encoding)}function p(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function d(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(R,L,r){(function(y,f){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var x=R("base64-js"),A=R("ieee754"),m=R("isarray");r.Buffer=f,r.SlowBuffer=h,r.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:p(),r.kMaxLength=d();function p(){try{var fe=new Uint8Array(1);return fe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},fe.foo()===42&&typeof fe.subarray=="function"&&fe.subarray(1,1).byteLength===0}catch(J){return!1}}function d(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(fe,J){if(d()<J)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(fe=new Uint8Array(J),fe.__proto__=f.prototype):(fe===null&&(fe=new f(J)),fe.length=J),fe}function f(fe,J,Y){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(fe,J,Y);if(typeof fe=="number"){if(typeof J=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,fe)}return a(this,fe,J,Y)}f.poolSize=8192,f._augment=function(fe){return fe.__proto__=f.prototype,fe};function a(fe,J,Y,$){if(typeof J=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&J instanceof ArrayBuffer?n(fe,J,Y,$):typeof J=="string"?e(fe,J,Y):o(fe,J)}f.from=function(fe,J,Y){return a(null,fe,J,Y)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}));function i(fe){if(typeof fe!="number")throw new TypeError('"size" argument must be a number');if(fe<0)throw new RangeError('"size" argument must not be negative')}function t(fe,J,Y,$){return i(J),J<=0?u(fe,J):Y!==void 0?typeof $=="string"?u(fe,J).fill(Y,$):u(fe,J).fill(Y):u(fe,J)}f.alloc=function(fe,J,Y){return t(null,fe,J,Y)};function s(fe,J){if(i(J),fe=u(fe,J<0?0:c(J)|0),!f.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<J;++Y)fe[Y]=0;return fe}f.allocUnsafe=function(fe){return s(null,fe)},f.allocUnsafeSlow=function(fe){return s(null,fe)};function e(fe,J,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!f.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var $=g(J,Y)|0;fe=u(fe,$);var de=fe.write(J,Y);return de!==$&&(fe=fe.slice(0,de)),fe}function l(fe,J){var Y=J.length<0?0:c(J.length)|0;fe=u(fe,Y);for(var $=0;$<Y;$+=1)fe[$]=J[$]&255;return fe}function n(fe,J,Y,$){if(J.byteLength,Y<0||J.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(J.byteLength<Y+($||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&$===void 0?J=new Uint8Array(J):$===void 0?J=new Uint8Array(J,Y):J=new Uint8Array(J,Y,$),f.TYPED_ARRAY_SUPPORT?(fe=J,fe.__proto__=f.prototype):fe=l(fe,J),fe}function o(fe,J){if(f.isBuffer(J)){var Y=c(J.length)|0;return fe=u(fe,Y),fe.length===0||J.copy(fe,0,0,Y),fe}if(J){if(typeof ArrayBuffer!="undefined"&&J.buffer instanceof ArrayBuffer||"length"in J)return typeof J.length!="number"||rt(J.length)?u(fe,0):l(fe,J);if(J.type==="Buffer"&&m(J.data))return l(fe,J.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(fe){if(fe>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return fe|0}function h(fe){return+fe!=fe&&(fe=0),f.alloc(+fe)}f.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},f.compare=function(J,Y){if(!f.isBuffer(J)||!f.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(J===Y)return 0;for(var $=J.length,de=Y.length,we=0,Ce=Math.min($,de);we<Ce;++we)if(J[we]!==Y[we]){$=J[we],de=Y[we];break}return $<de?-1:de<$?1:0},f.isEncoding=function(J){switch(String(J).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(J,Y){if(!m(J))throw new TypeError('"list" argument must be an Array of Buffers');if(J.length===0)return f.alloc(0);var $;if(Y===void 0)for(Y=0,$=0;$<J.length;++$)Y+=J[$].length;var de=f.allocUnsafe(Y),we=0;for($=0;$<J.length;++$){var Ce=J[$];if(!f.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(de,we),we+=Ce.length}return de};function g(fe,J){if(f.isBuffer(fe))return fe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(fe)||fe instanceof ArrayBuffer))return fe.byteLength;typeof fe!="string"&&(fe=""+fe);var Y=fe.length;if(Y===0)return 0;for(var $=!1;;)switch(J){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return $e(fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Fe(fe).length;default:if($)return $e(fe).length;J=(""+J).toLowerCase(),$=!0}}f.byteLength=g;function v(fe,J,Y){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,J>>>=0,Y<=J)return"";for(fe||(fe="utf8");;)switch(fe){case"hex":return j(this,J,Y);case"utf8":case"utf-8":return M(this,J,Y);case"ascii":return X(this,J,Y);case"latin1":case"binary":return F(this,J,Y);case"base64":return k(this,J,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,J,Y);default:if($)throw new TypeError("Unknown encoding: "+fe);fe=(fe+"").toLowerCase(),$=!0}}f.prototype._isBuffer=!0;function b(fe,J,Y){var $=fe[J];fe[J]=fe[Y],fe[Y]=$}f.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<J;Y+=2)b(this,Y,Y+1);return this},f.prototype.swap32=function(){var J=this.length;if(J%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<J;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},f.prototype.swap64=function(){var J=this.length;if(J%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<J;Y+=8)b(this,Y,Y+7),b(this,Y+1,Y+6),b(this,Y+2,Y+5),b(this,Y+3,Y+4);return this},f.prototype.toString=function(){var J=this.length|0;return J===0?"":arguments.length===0?M(this,0,J):v.apply(this,arguments)},f.prototype.equals=function(J){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");return this===J?!0:f.compare(this,J)===0},f.prototype.inspect=function(){var J="",Y=r.INSPECT_MAX_BYTES;return this.length>0&&(J=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(J+=" ... ")),"<Buffer "+J+">"},f.prototype.compare=function(J,Y,$,de,we){if(!f.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),$===void 0&&($=J?J.length:0),de===void 0&&(de=0),we===void 0&&(we=this.length),Y<0||$>J.length||de<0||we>this.length)throw new RangeError("out of range index");if(de>=we&&Y>=$)return 0;if(de>=we)return-1;if(Y>=$)return 1;if(Y>>>=0,$>>>=0,de>>>=0,we>>>=0,this===J)return 0;for(var Ce=we-de,Se=$-Y,le=Math.min(Ce,Se),pe=this.slice(de,we),_e=J.slice(Y,$),tt=0;tt<le;++tt)if(pe[tt]!==_e[tt]){Ce=pe[tt],Se=_e[tt];break}return Ce<Se?-1:Se<Ce?1:0};function S(fe,J,Y,$,de){if(fe.length===0)return-1;if(typeof Y=="string"?($=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=de?0:fe.length-1),Y<0&&(Y=fe.length+Y),Y>=fe.length){if(de)return-1;Y=fe.length-1}else if(Y<0)if(de)Y=0;else return-1;if(typeof J=="string"&&(J=f.from(J,$)),f.isBuffer(J))return J.length===0?-1:E(fe,J,Y,$,de);if(typeof J=="number")return J=J&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(fe,J,Y):Uint8Array.prototype.lastIndexOf.call(fe,J,Y):E(fe,[J],Y,$,de);throw new TypeError("val must be string, number or Buffer")}function E(fe,J,Y,$,de){var we=1,Ce=fe.length,Se=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(fe.length<2||J.length<2)return-1;we=2,Ce/=2,Se/=2,Y/=2}function le(ct,je){return we===1?ct[je]:ct.readUInt16BE(je*we)}var pe;if(de){var _e=-1;for(pe=Y;pe<Ce;pe++)if(le(fe,pe)===le(J,_e===-1?0:pe-_e)){if(_e===-1&&(_e=pe),pe-_e+1===Se)return _e*we}else _e!==-1&&(pe-=pe-_e),_e=-1}else for(Y+Se>Ce&&(Y=Ce-Se),pe=Y;pe>=0;pe--){for(var tt=!0,gt=0;gt<Se;gt++)if(le(fe,pe+gt)!==le(J,gt)){tt=!1;break}if(tt)return pe}return-1}f.prototype.includes=function(J,Y,$){return this.indexOf(J,Y,$)!==-1},f.prototype.indexOf=function(J,Y,$){return S(this,J,Y,$,!0)},f.prototype.lastIndexOf=function(J,Y,$){return S(this,J,Y,$,!1)};function C(fe,J,Y,$){Y=Number(Y)||0;var de=fe.length-Y;$?($=Number($),$>de&&($=de)):$=de;var we=J.length;if(we%2!==0)throw new TypeError("Invalid hex string");$>we/2&&($=we/2);for(var Ce=0;Ce<$;++Ce){var Se=parseInt(J.substr(Ce*2,2),16);if(isNaN(Se))return Ce;fe[Y+Ce]=Se}return Ce}function _(fe,J,Y,$){return oe($e(J,fe.length-Y),fe,Y,$)}function T(fe,J,Y,$){return oe(Ge(J),fe,Y,$)}function w(fe,J,Y,$){return T(fe,J,Y,$)}function O(fe,J,Y,$){return oe(Fe(J),fe,Y,$)}function I(fe,J,Y,$){return oe(ht(J,fe.length-Y),fe,Y,$)}f.prototype.write=function(J,Y,$,de){if(Y===void 0)de="utf8",$=this.length,Y=0;else if($===void 0&&typeof Y=="string")de=Y,$=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite($)?($=$|0,de===void 0&&(de="utf8")):(de=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-Y;if(($===void 0||$>we)&&($=we),J.length>0&&($<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var Ce=!1;;)switch(de){case"hex":return C(this,J,Y,$);case"utf8":case"utf-8":return _(this,J,Y,$);case"ascii":return T(this,J,Y,$);case"latin1":case"binary":return w(this,J,Y,$);case"base64":return O(this,J,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,J,Y,$);default:if(Ce)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Ce=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(fe,J,Y){return J===0&&Y===fe.length?x.fromByteArray(fe):x.fromByteArray(fe.slice(J,Y))}function M(fe,J,Y){Y=Math.min(fe.length,Y);for(var $=[],de=J;de<Y;){var we=fe[de],Ce=null,Se=we>239?4:we>223?3:we>191?2:1;if(de+Se<=Y){var le,pe,_e,tt;switch(Se){case 1:we<128&&(Ce=we);break;case 2:le=fe[de+1],(le&192)===128&&(tt=(we&31)<<6|le&63,tt>127&&(Ce=tt));break;case 3:le=fe[de+1],pe=fe[de+2],(le&192)===128&&(pe&192)===128&&(tt=(we&15)<<12|(le&63)<<6|pe&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:le=fe[de+1],pe=fe[de+2],_e=fe[de+3],(le&192)===128&&(pe&192)===128&&(_e&192)===128&&(tt=(we&15)<<18|(le&63)<<12|(pe&63)<<6|_e&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,Se=1):Ce>65535&&(Ce-=65536,$.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),$.push(Ce),de+=Se}return P($)}var U=4096;function P(fe){var J=fe.length;if(J<=U)return String.fromCharCode.apply(String,fe);for(var Y="",$=0;$<J;)Y+=String.fromCharCode.apply(String,fe.slice($,$+=U));return Y}function X(fe,J,Y){var $="";Y=Math.min(fe.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(fe[de]&127);return $}function F(fe,J,Y){var $="";Y=Math.min(fe.length,Y);for(var de=J;de<Y;++de)$+=String.fromCharCode(fe[de]);return $}function j(fe,J,Y){var $=fe.length;(!J||J<0)&&(J=0),(!Y||Y<0||Y>$)&&(Y=$);for(var de="",we=J;we<Y;++we)de+=Ue(fe[we]);return de}function K(fe,J,Y){for(var $=fe.slice(J,Y),de="",we=0;we<$.length;we+=2)de+=String.fromCharCode($[we]+$[we+1]*256);return de}f.prototype.slice=function(J,Y){var $=this.length;J=~~J,Y=Y===void 0?$:~~Y,J<0?(J+=$,J<0&&(J=0)):J>$&&(J=$),Y<0?(Y+=$,Y<0&&(Y=0)):Y>$&&(Y=$),Y<J&&(Y=J);var de;if(f.TYPED_ARRAY_SUPPORT)de=this.subarray(J,Y),de.__proto__=f.prototype;else{var we=Y-J;de=new f(we,void 0);for(var Ce=0;Ce<we;++Ce)de[Ce]=this[Ce+J]}return de};function z(fe,J,Y){if(fe%1!==0||fe<0)throw new RangeError("offset is not uint");if(fe+J>Y)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)de+=this[J+Ce]*we;return de},f.prototype.readUIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J+--Y],we=1;Y>0&&(we*=256);)de+=this[J+--Y]*we;return de},f.prototype.readUInt8=function(J,Y){return Y||z(J,1,this.length),this[J]},f.prototype.readUInt16LE=function(J,Y){return Y||z(J,2,this.length),this[J]|this[J+1]<<8},f.prototype.readUInt16BE=function(J,Y){return Y||z(J,2,this.length),this[J]<<8|this[J+1]},f.prototype.readUInt32LE=function(J,Y){return Y||z(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},f.prototype.readUInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},f.prototype.readIntLE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=this[J],we=1,Ce=0;++Ce<Y&&(we*=256);)de+=this[J+Ce]*we;return we*=128,de>=we&&(de-=Math.pow(2,8*Y)),de},f.prototype.readIntBE=function(J,Y,$){J=J|0,Y=Y|0,$||z(J,Y,this.length);for(var de=Y,we=1,Ce=this[J+--de];de>0&&(we*=256);)Ce+=this[J+--de]*we;return we*=128,Ce>=we&&(Ce-=Math.pow(2,8*Y)),Ce},f.prototype.readInt8=function(J,Y){return Y||z(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},f.prototype.readInt16LE=function(J,Y){Y||z(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},f.prototype.readInt16BE=function(J,Y){Y||z(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},f.prototype.readInt32LE=function(J,Y){return Y||z(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},f.prototype.readInt32BE=function(J,Y){return Y||z(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},f.prototype.readFloatLE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!0,23,4)},f.prototype.readFloatBE=function(J,Y){return Y||z(J,4,this.length),A.read(this,J,!1,23,4)},f.prototype.readDoubleLE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!0,52,8)},f.prototype.readDoubleBE=function(J,Y){return Y||z(J,8,this.length),A.read(this,J,!1,52,8)};function V(fe,J,Y,$,de,we){if(!f.isBuffer(fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>de||J<we)throw new RangeError('"value" argument is out of bounds');if(Y+$>fe.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ce=1,Se=0;for(this[Y]=J&255;++Se<$&&(Ce*=256);)this[Y+Se]=J/Ce&255;return Y+$},f.prototype.writeUIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,$=$|0,!de){var we=Math.pow(2,8*$)-1;V(this,J,Y,$,we,0)}var Ce=$-1,Se=1;for(this[Y+Ce]=J&255;--Ce>=0&&(Se*=256);)this[Y+Ce]=J/Se&255;return Y+$},f.prototype.writeUInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,255,0),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[Y]=J&255,Y+1};function Q(fe,J,Y,$){J<0&&(J=65535+J+1);for(var de=0,we=Math.min(fe.length-Y,2);de<we;++de)fe[Y+de]=(J&255<<8*($?de:1-de))>>>($?de:1-de)*8}f.prototype.writeUInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},f.prototype.writeUInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2};function G(fe,J,Y,$){J<0&&(J=4294967295+J+1);for(var de=0,we=Math.min(fe.length-Y,4);de<we;++de)fe[Y+de]=J>>>($?de:3-de)*8&255}f.prototype.writeUInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[Y+3]=J>>>24,this[Y+2]=J>>>16,this[Y+1]=J>>>8,this[Y]=J&255):G(this,J,Y,!0),Y+4},f.prototype.writeUInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4},f.prototype.writeIntLE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ce=0,Se=1,le=0;for(this[Y]=J&255;++Ce<$&&(Se*=256);)J<0&&le===0&&this[Y+Ce-1]!==0&&(le=1),this[Y+Ce]=(J/Se>>0)-le&255;return Y+$},f.prototype.writeIntBE=function(J,Y,$,de){if(J=+J,Y=Y|0,!de){var we=Math.pow(2,8*$-1);V(this,J,Y,$,we-1,-we)}var Ce=$-1,Se=1,le=0;for(this[Y+Ce]=J&255;--Ce>=0&&(Se*=256);)J<0&&le===0&&this[Y+Ce+1]!==0&&(le=1),this[Y+Ce]=(J/Se>>0)-le&255;return Y+$},f.prototype.writeInt8=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,1,127,-128),f.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[Y]=J&255,Y+1},f.prototype.writeInt16LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8):Q(this,J,Y,!0),Y+2},f.prototype.writeInt16BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>8,this[Y+1]=J&255):Q(this,J,Y,!1),Y+2},f.prototype.writeInt32LE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[Y]=J&255,this[Y+1]=J>>>8,this[Y+2]=J>>>16,this[Y+3]=J>>>24):G(this,J,Y,!0),Y+4},f.prototype.writeInt32BE=function(J,Y,$){return J=+J,Y=Y|0,$||V(this,J,Y,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),f.TYPED_ARRAY_SUPPORT?(this[Y]=J>>>24,this[Y+1]=J>>>16,this[Y+2]=J>>>8,this[Y+3]=J&255):G(this,J,Y,!1),Y+4};function ee(fe,J,Y,$,de,we){if(Y+$>fe.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function se(fe,J,Y,$,de){return de||ee(fe,J,Y,4,34028234663852886e22,-34028234663852886e22),A.write(fe,J,Y,$,23,4),Y+4}f.prototype.writeFloatLE=function(J,Y,$){return se(this,J,Y,!0,$)},f.prototype.writeFloatBE=function(J,Y,$){return se(this,J,Y,!1,$)};function ye(fe,J,Y,$,de){return de||ee(fe,J,Y,8,17976931348623157e292,-17976931348623157e292),A.write(fe,J,Y,$,52,8),Y+8}f.prototype.writeDoubleLE=function(J,Y,$){return ye(this,J,Y,!0,$)},f.prototype.writeDoubleBE=function(J,Y,$){return ye(this,J,Y,!1,$)},f.prototype.copy=function(J,Y,$,de){if($||($=0),!de&&de!==0&&(de=this.length),Y>=J.length&&(Y=J.length),Y||(Y=0),de>0&&de<$&&(de=$),de===$)return 0;if(J.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),J.length-Y<de-$&&(de=J.length-Y+$);var we=de-$,Ce;if(this===J&&$<Y&&Y<de)for(Ce=we-1;Ce>=0;--Ce)J[Ce+Y]=this[Ce+$];else if(we<1e3||!f.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<we;++Ce)J[Ce+Y]=this[Ce+$];else Uint8Array.prototype.set.call(J,this.subarray($,$+we),Y);return we},f.prototype.fill=function(J,Y,$,de){if(typeof J=="string"){if(typeof Y=="string"?(de=Y,Y=0,$=this.length):typeof $=="string"&&(de=$,$=this.length),J.length===1){var we=J.charCodeAt(0);we<256&&(J=we)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!f.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof J=="number"&&(J=J&255);if(Y<0||this.length<Y||this.length<$)throw new RangeError("Out of range index");if($<=Y)return this;Y=Y>>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var Ce;if(typeof J=="number")for(Ce=Y;Ce<$;++Ce)this[Ce]=J;else{var Se=f.isBuffer(J)?J:$e(new f(J,de).toString()),le=Se.length;for(Ce=0;Ce<$-Y;++Ce)this[Ce+Y]=Se[Ce%le]}return this};var he=/[^+\/0-9A-Za-z-_]/g;function ke(fe){if(fe=Pe(fe).replace(he,""),fe.length<2)return"";for(;fe.length%4!==0;)fe=fe+"=";return fe}function Pe(fe){return fe.trim?fe.trim():fe.replace(/^\s+|\s+$/g,"")}function Ue(fe){return fe<16?"0"+fe.toString(16):fe.toString(16)}function $e(fe,J){J=J||Infinity;for(var Y,$=fe.length,de=null,we=[],Ce=0;Ce<$;++Ce){if(Y=fe.charCodeAt(Ce),Y>55295&&Y<57344){if(!de){if(Y>56319){(J-=3)>-1&&we.push(239,191,189);continue}else if(Ce+1===$){(J-=3)>-1&&we.push(239,191,189);continue}de=Y;continue}if(Y<56320){(J-=3)>-1&&we.push(239,191,189),de=Y;continue}Y=(de-55296<<10|Y-56320)+65536}else de&&((J-=3)>-1&&we.push(239,191,189));if(de=null,Y<128){if((J-=1)<0)break;we.push(Y)}else if(Y<2048){if((J-=2)<0)break;we.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((J-=3)<0)break;we.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((J-=4)<0)break;we.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,Y&63|128)}else throw new Error("Invalid code point")}return we}function Ge(fe){for(var J=[],Y=0;Y<fe.length;++Y)J.push(fe.charCodeAt(Y)&255);return J}function ht(fe,J){for(var Y,$,de,we=[],Ce=0;Ce<fe.length&&!((J-=2)<0);++Ce)Y=fe.charCodeAt(Ce),$=Y>>8,de=Y%256,we.push(de),we.push($);return we}function Fe(fe){return x.toByteArray(ke(fe))}function oe(fe,J,Y,$){for(var de=0;de<$&&!(de+Y>=J.length||de>=fe.length);++de)J[de+Y]=fe[de];return de}function rt(fe){return fe!==fe}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(R,L,r){L.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(R,L,r){L.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(R,L,r){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=Array.prototype.slice;L.exports=f;function f(A,m){if(!(this instanceof f))return new f(A,m);this.src=A,this._withAccess=m}f.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},f.prototype.pick=function(A){return Array.isArray(A)||(A=y.call(arguments)),A.length&&(this.keys=A),this},f.prototype.to=function(A){if(A=A||{},!this.src)return A;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var p=0;p<m.length;p++){if(d=m[p],A[d]!==void 0)continue;A[d]=this.src[d]}return A}for(var p=0;p<m.length;p++){var d=m[p];if(!x(A,d))continue;var u=this.src.__lookupGetter__(d),a=this.src.__lookupSetter__(d);u&&A.__defineGetter__(d,u),a&&A.__defineSetter__(d,a),!u&&!a&&(A[d]=this.src[d])}return A},f.prototype.toCover=function(A){for(var m=this.keys||Object.keys(this.src),p=0;p<m.length;p++){var d=m[p];delete A[d];var u=this.src.__lookupGetter__(d),a=this.src.__lookupSetter__(d);u&&A.__defineGetter__(d,u),a&&A.__defineSetter__(d,a),!u&&!a&&(A[d]=this.src[d])}},f.prototype.override=f.prototype.toCover,f.prototype.and=function(A){var m={};return this.to(m),this.src=A,this.to(m),this.src=m,this};function x(A,m){return A[m]===void 0&&A.__lookupGetter__(m)===void 0&&A.__lookupSetter__(m)===void 0}},{}],77:[function(R,L,r){R("../../modules/es6.string.iterator"),R("../../modules/es6.array.from"),L.exports=R("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(R,L,r){var y=R("../../modules/_core"),f=y.JSON||(y.JSON={stringify:JSON.stringify});L.exports=function(A){return f.stringify.apply(f,arguments)}},{"../../modules/_core":99}],79:[function(R,L,r){R("../../modules/es6.object.assign"),L.exports=R("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(R,L,r){R("../../modules/es6.object.create");var y=R("../../modules/_core").Object;L.exports=function(x,A){return y.create(x,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(R,L,r){R("../../modules/es6.object.define-property");var y=R("../../modules/_core").Object;L.exports=function(x,A,m){return y.defineProperty(x,A,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(R,L,r){R("../../modules/es7.object.entries"),L.exports=R("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(R,L,r){R("../../modules/es6.object.get-own-property-names");var y=R("../../modules/_core").Object;L.exports=function(x){return y.getOwnPropertyNames(x)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(R,L,r){R("../../modules/es6.object.get-prototype-of"),L.exports=R("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(R,L,r){R("../../modules/es6.object.keys"),L.exports=R("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(R,L,r){R("../modules/es6.object.to-string"),R("../modules/es6.string.iterator"),R("../modules/web.dom.iterable"),R("../modules/es6.promise"),R("../modules/es7.promise.finally"),R("../modules/es7.promise.try"),L.exports=R("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(R,L,r){R("../modules/web.immediate"),L.exports=R("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(R,L,r){R("../../modules/es6.string.from-code-point"),L.exports=R("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(R,L,r){R("../../modules/es6.function.has-instance"),L.exports=R("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(R,L,r){R("../../modules/es6.symbol"),R("../../modules/es6.object.to-string"),R("../../modules/es7.symbol.async-iterator"),R("../../modules/es7.symbol.observable"),L.exports=R("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(R,L,r){R("../../modules/es6.string.iterator"),R("../../modules/web.dom.iterable"),L.exports=R("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(R,L,r){L.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(R,L,r){L.exports=function(){}},{}],94:[function(R,L,r){L.exports=function(y,f,x,A){if(!(y instanceof f)||A!==void 0&&A in y)throw TypeError(x+": incorrect invocation!");return y}},{}],95:[function(R,L,r){var y=R("./_is-object");L.exports=function(f){if(!y(f))throw TypeError(f+" is not an object!");return f}},{"./_is-object":119}],96:[function(R,L,r){var y=R("./_to-iobject"),f=R("./_to-length"),x=R("./_to-absolute-index");L.exports=function(A){return function(m,p,d){var u=y(m),a=f(u.length),i=x(d,a),t;if(A&&p!=p){for(;a>i;)if(t=u[i++],t!=t)return!0}else for(;a>i;i++)if((A||i in u)&&u[i]===p)return A||i||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(R,L,r){var y=R("./_cof"),f=R("./_wks")("toStringTag"),x=y(function(){return arguments}())=="Arguments",A=function(p,d){try{return p[d]}catch(u){}};L.exports=function(m){var p,d,u;return m===void 0?"Undefined":m===null?"Null":typeof(d=A(p=Object(m),f))=="string"?d:x?y(p):(u=y(p))=="Object"&&typeof p.callee=="function"?"Arguments":u}},{"./_cof":98,"./_wks":166}],98:[function(R,L,r){var y={}.toString;L.exports=function(f){return y.call(f).slice(8,-1)}},{}],99:[function(R,L,r){var y=L.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(R,L,r){"use strict";var y=R("./_object-dp"),f=R("./_property-desc");L.exports=function(x,A,m){A in x?y.f(x,A,f(0,m)):x[A]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(R,L,r){var y=R("./_a-function");L.exports=function(f,x,A){if(y(f),x===void 0)return f;switch(A){case 1:return function(m){return f.call(x,m)};case 2:return function(m,p){return f.call(x,m,p)};case 3:return function(m,p,d){return f.call(x,m,p,d)}}return function(){return f.apply(x,arguments)}}},{"./_a-function":92}],102:[function(R,L,r){L.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(R,L,r){L.exports=!R("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(R,L,r){var y=R("./_is-object"),f=R("./_global").document,x=y(f)&&y(f.createElement);L.exports=function(A){return x?f.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(R,L,r){L.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(R,L,r){var y=R("./_object-keys"),f=R("./_object-gops"),x=R("./_object-pie");L.exports=function(A){var m=y(A),p=f.f;if(p)for(var d=p(A),u=x.f,a=0,i;d.length>a;)u.call(A,i=d[a++])&&m.push(i);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(R,L,r){var y=R("./_global"),f=R("./_core"),x=R("./_ctx"),A=R("./_hide"),m=R("./_has"),p="prototype",d=function u(a,i,t){var s=a&u.F,e=a&u.G,l=a&u.S,n=a&u.P,o=a&u.B,c=a&u.W,h=e?f:f[i]||(f[i]={}),g=h[p],v=e?y:l?y[i]:(y[i]||{})[p],b,S,E;e&&(t=i);for(b in t){if(S=!s&&v&&v[b]!==void 0,S&&m(h,b))continue;E=S?v[b]:t[b],h[b]=e&&typeof v[b]!="function"?t[b]:o&&S?x(E,y):c&&v[b]==E?function(C){var _=function(w,O,I){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(w);case 2:return new C(w,O)}return new C(w,O,I)}return C.apply(this,arguments)};return _[p]=C[p],_}(E):n&&typeof E=="function"?x(Function.call,E):E,n&&((h.virtual||(h.virtual={}))[b]=E,a&u.R&&g&&!g[b]&&A(g,b,E))}};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,L.exports=d},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(R,L,r){L.exports=function(y){try{return!!y()}catch(f){return!0}}},{}],109:[function(R,L,r){var y=R("./_ctx"),f=R("./_iter-call"),x=R("./_is-array-iter"),A=R("./_an-object"),m=R("./_to-length"),p=R("./core.get-iterator-method"),d={},u={},r=L.exports=function(a,i,t,s,e){var l=e?function(){return a}:p(a),n=y(t,s,i?2:1),o=0,c,h,g,v;if(typeof l!="function")throw TypeError(a+" is not iterable!");if(x(l)){for(c=m(a.length);c>o;o++)if(v=i?n(A(h=a[o])[0],h[1]):n(a[o]),v===d||v===u)return v}else for(g=l.call(a);!(h=g.next()).done;)if(v=f(g,n,h.value,i),v===d||v===u)return v};r.BREAK=d,r.RETURN=u},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(R,L,r){var y=L.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},{}],111:[function(R,L,r){var y={}.hasOwnProperty;L.exports=function(f,x){return y.call(f,x)}},{}],112:[function(R,L,r){var y=R("./_object-dp"),f=R("./_property-desc");L.exports=R("./_descriptors")?function(x,A,m){return y.f(x,A,f(1,m))}:function(x,A,m){return x[A]=m,x}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(R,L,r){var y=R("./_global").document;L.exports=y&&y.documentElement},{"./_global":110}],114:[function(R,L,r){L.exports=!R("./_descriptors")&&!R("./_fails")(function(){return Object.defineProperty(R("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(R,L,r){L.exports=function(y,f,x){var A=x===void 0;switch(f.length){case 0:return A?y():y.call(x);case 1:return A?y(f[0]):y.call(x,f[0]);case 2:return A?y(f[0],f[1]):y.call(x,f[0],f[1]);case 3:return A?y(f[0],f[1],f[2]):y.call(x,f[0],f[1],f[2]);case 4:return A?y(f[0],f[1],f[2],f[3]):y.call(x,f[0],f[1],f[2],f[3])}return y.apply(x,f)}},{}],116:[function(R,L,r){var y=R("./_cof");L.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return y(f)=="String"?f.split(""):Object(f)}},{"./_cof":98}],117:[function(R,L,r){var y=R("./_iterators"),f=R("./_wks")("iterator"),x=Array.prototype;L.exports=function(A){return A!==void 0&&(y.Array===A||x[f]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(R,L,r){var y=R("./_cof");L.exports=Array.isArray||function(x){return y(x)=="Array"}},{"./_cof":98}],119:[function(R,L,r){L.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(R,L,r){var y=R("./_an-object");L.exports=function(f,x,A,m){try{return m?x(y(A)[0],A[1]):x(A)}catch(d){var p=f.return;throw p!==void 0&&y(p.call(f)),d}}},{"./_an-object":95}],121:[function(R,L,r){"use strict";var y=R("./_object-create"),f=R("./_property-desc"),x=R("./_set-to-string-tag"),A={};R("./_hide")(A,R("./_wks")("iterator"),function(){return this}),L.exports=function(m,p,d){m.prototype=y(A,{next:f(1,d)}),x(m,p+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(R,L,r){"use strict";var y=R("./_library"),f=R("./_export"),x=R("./_redefine"),A=R("./_hide"),m=R("./_iterators"),p=R("./_iter-create"),d=R("./_set-to-string-tag"),u=R("./_object-gpo"),a=R("./_wks")("iterator"),i=!([].keys&&"next"in[].keys()),t="@@iterator",s="keys",e="values",l=function(){return this};L.exports=function(n,o,c,h,g,v,b){p(c,o,h);var S=function(F){if(!i&&F in T)return T[F];switch(F){case s:return function(){return new c(this,F)};case e:return function(){return new c(this,F)}}return function(){return new c(this,F)}},E=o+" Iterator",C=g==e,_=!1,T=n.prototype,w=T[a]||T[t]||g&&T[g],O=w||S(g),I=g?C?S("entries"):O:void 0,k=o=="Array"&&T.entries||w,M,U,P;if(k&&(P=u(k.call(new n)),P!==Object.prototype&&P.next&&(d(P,E,!0),!y&&typeof P[a]!="function"&&A(P,a,l))),C&&w&&w.name!==e&&(_=!0,O=function(){return w.call(this)}),(!y||b)&&(i||_||!T[a])&&A(T,a,O),m[o]=O,m[E]=l,g)if(M={values:C?O:S(e),keys:v?O:S(s),entries:I},b)for(U in M)U in T||x(T,U,M[U]);else f(f.P+f.F*(i||_),o,M);return M}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(R,L,r){var y=R("./_wks")("iterator"),f=!1;try{var x=[7][y]();x.return=function(){f=!0},Array.from(x,function(){throw 2})}catch(A){}L.exports=function(A,m){if(!m&&!f)return!1;var p=!1;try{var d=[7],u=d[y]();u.next=function(){return{done:p=!0}},d[y]=function(){return u},A(d)}catch(a){}return p}},{"./_wks":166}],124:[function(R,L,r){L.exports=function(y,f){return{value:f,done:!!y}}},{}],125:[function(R,L,r){L.exports={}},{}],126:[function(R,L,r){L.exports=!0},{}],127:[function(R,L,r){var y=R("./_uid")("meta"),f=R("./_is-object"),x=R("./_has"),A=R("./_object-dp").f,m=0,p=Object.isExtensible||function(){return!0},d=!R("./_fails")(function(){return p(Object.preventExtensions({}))}),u=function(l){A(l,y,{value:{i:"O"+ ++m,w:{}}})},a=function(l,n){if(!f(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!x(l,y)){if(!p(l))return"F";if(!n)return"E";u(l)}return l[y].i},i=function(l,n){if(!x(l,y)){if(!p(l))return!0;if(!n)return!1;u(l)}return l[y].w},t=function(l){return d&&s.NEED&&p(l)&&!x(l,y)&&u(l),l},s=L.exports={KEY:y,NEED:!1,fastKey:a,getWeak:i,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(R,L,r){var y=R("./_global"),f=R("./_task").set,x=y.MutationObserver||y.WebKitMutationObserver,A=y.process,m=y.Promise,p=R("./_cof")(A)=="process";L.exports=function(){var d,u,a,i=function(){var n,o;for(p&&(n=A.domain)&&n.exit();d;){o=d.fn,d=d.next;try{o()}catch(c){throw d?a():u=void 0,c}}u=void 0,n&&n.enter()};if(p)a=function(){A.nextTick(i)};else if(x&&!(y.navigator&&y.navigator.standalone)){var t=!0,s=document.createTextNode("");new x(i).observe(s,{characterData:!0}),a=function(){s.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);a=function(){e.then(i)}}else a=function(){f.call(y,i)};return function(l){var n={fn:l,next:void 0};u&&(u.next=n),d||(d=n,a()),u=n}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(R,L,r){"use strict";var y=R("./_a-function");function f(x){var A,m;this.promise=new x(function(p,d){if(A!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");A=p,m=d}),this.resolve=y(A),this.reject=y(m)}L.exports.f=function(x){return new f(x)}},{"./_a-function":92}],130:[function(R,L,r){"use strict";var y=R("./_descriptors"),f=R("./_object-keys"),x=R("./_object-gops"),A=R("./_object-pie"),m=R("./_to-object"),p=R("./_iobject"),d=Object.assign;L.exports=!d||R("./_fails")(function(){var u={},a={},i=Symbol(),t="abcdefghijklmnopqrst";return u[i]=7,t.split("").forEach(function(s){a[s]=s}),d({},u)[i]!=7||Object.keys(d({},a)).join("")!=t})?function(a,i){for(var t=m(a),s=arguments.length,e=1,l=x.f,n=A.f;s>e;)for(var o=p(arguments[e++]),c=l?f(o).concat(l(o)):f(o),h=c.length,g=0,v;h>g;)v=c[g++],(!y||n.call(o,v))&&(t[v]=o[v]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(R,L,r){var y=R("./_an-object"),f=R("./_object-dps"),x=R("./_enum-bug-keys"),A=R("./_shared-key")("IE_PROTO"),m=function(){},p="prototype",d=function(){var a=R("./_dom-create")("iframe"),i=x.length,t="<",s=">",e;for(a.style.display="none",R("./_html").appendChild(a),a.src="javascript:",e=a.contentWindow.document,e.open(),e.write(t+"script"+s+"document.F=Object"+t+"/script"+s),e.close(),d=e.F;i--;)delete d[p][x[i]];return d()};L.exports=Object.create||function(a,i){var t;return a!==null?(m[p]=y(a),t=new m,m[p]=null,t[A]=a):t=d(),i===void 0?t:f(t,i)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(R,L,r){var y=R("./_an-object"),f=R("./_ie8-dom-define"),x=R("./_to-primitive"),A=Object.defineProperty;r.f=R("./_descriptors")?Object.defineProperty:function(p,d,u){if(y(p),d=x(d,!0),y(u),f)try{return A(p,d,u)}catch(a){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(p[d]=u.value),p}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(R,L,r){var y=R("./_object-dp"),f=R("./_an-object"),x=R("./_object-keys");L.exports=R("./_descriptors")?Object.defineProperties:function(m,p){f(m);for(var d=x(p),u=d.length,a=0,i;u>a;)y.f(m,i=d[a++],p[i]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(R,L,r){var y=R("./_object-pie"),f=R("./_property-desc"),x=R("./_to-iobject"),A=R("./_to-primitive"),m=R("./_has"),p=R("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;r.f=R("./_descriptors")?d:function(a,i){if(a=x(a),i=A(i,!0),p)try{return d(a,i)}catch(t){}if(m(a,i))return f(!y.f.call(a,i),a[i])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(R,L,r){var y=R("./_to-iobject"),f=R("./_object-gopn").f,x={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return f(d)}catch(u){return A.slice()}};L.exports.f=function(d){return A&&x.call(d)=="[object Window]"?m(d):f(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(R,L,r){var y=R("./_object-keys-internal"),f=R("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(A){return y(A,f)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(R,L,r){r.f=Object.getOwnPropertySymbols},{}],138:[function(R,L,r){var y=R("./_has"),f=R("./_to-object"),x=R("./_shared-key")("IE_PROTO"),A=Object.prototype;L.exports=Object.getPrototypeOf||function(m){return m=f(m),y(m,x)?m[x]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(R,L,r){var y=R("./_has"),f=R("./_to-iobject"),x=R("./_array-includes")(!1),A=R("./_shared-key")("IE_PROTO");L.exports=function(m,p){var d=f(m),u=0,a=[],i;for(i in d)i!=A&&(y(d,i)&&a.push(i));for(;p.length>u;)y(d,i=p[u++])&&(~x(a,i)||a.push(i));return a}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(R,L,r){var y=R("./_object-keys-internal"),f=R("./_enum-bug-keys");L.exports=Object.keys||function(A){return y(A,f)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(R,L,r){r.f={}.propertyIsEnumerable},{}],142:[function(R,L,r){var y=R("./_export"),f=R("./_core"),x=R("./_fails");L.exports=function(A,m){var p=(f.Object||{})[A]||Object[A],d={};d[A]=m(p),y(y.S+y.F*x(function(){p(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(R,L,r){var y=R("./_descriptors"),f=R("./_object-keys"),x=R("./_to-iobject"),A=R("./_object-pie").f;L.exports=function(m){return function(p){for(var d=x(p),u=f(d),a=u.length,i=0,t=[],s;a>i;)s=u[i++],(!y||A.call(d,s))&&t.push(m?[s,d[s]]:d[s]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(R,L,r){L.exports=function(y){try{return{e:!1,v:y()}}catch(f){return{e:!0,v:f}}}},{}],145:[function(R,L,r){var y=R("./_an-object"),f=R("./_is-object"),x=R("./_new-promise-capability");L.exports=function(A,m){if(y(A),f(m)&&m.constructor===A)return m;var p=x.f(A),d=p.resolve;return d(m),p.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(R,L,r){L.exports=function(y,f){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:f}}},{}],147:[function(R,L,r){var y=R("./_hide");L.exports=function(f,x,A){for(var m in x)A&&f[m]?f[m]=x[m]:y(f,m,x[m]);return f}},{"./_hide":112}],148:[function(R,L,r){L.exports=R("./_hide")},{"./_hide":112}],149:[function(R,L,r){"use strict";var y=R("./_global"),f=R("./_core"),x=R("./_object-dp"),A=R("./_descriptors"),m=R("./_wks")("species");L.exports=function(p){var d=typeof f[p]=="function"?f[p]:y[p];A&&d&&!d[m]&&x.f(d,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(R,L,r){var y=R("./_object-dp").f,f=R("./_has"),x=R("./_wks")("toStringTag");L.exports=function(A,m,p){A&&!f(A=p?A:A.prototype,x)&&y(A,x,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(R,L,r){var y=R("./_shared")("keys"),f=R("./_uid");L.exports=function(x){return y[x]||(y[x]=f(x))}},{"./_shared":152,"./_uid":162}],152:[function(R,L,r){var y=R("./_core"),f=R("./_global"),x="__core-js_shared__",A=f[x]||(f[x]={});(L.exports=function(m,p){return A[m]||(A[m]=p!==void 0?p:{})})("versions",[]).push({version:y.version,mode:R("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(R,L,r){var y=R("./_an-object"),f=R("./_a-function"),x=R("./_wks")("species");L.exports=function(A,m){var p=y(A).constructor,d;return p===void 0||(d=y(p)[x])==null?m:f(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(R,L,r){var y=R("./_to-integer"),f=R("./_defined");L.exports=function(x){return function(A,m){var p=String(f(A)),d=y(m),u=p.length,a,i;return d<0||d>=u?x?"":void 0:(a=p.charCodeAt(d),a<55296||a>56319||d+1===u||(i=p.charCodeAt(d+1))<56320||i>57343?x?p.charAt(d):a:x?p.slice(d,d+2):(a-55296<<10)+(i-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(R,L,r){var y=R("./_ctx"),f=R("./_invoke"),x=R("./_html"),A=R("./_dom-create"),m=R("./_global"),p=m.process,d=m.setImmediate,u=m.clearImmediate,a=m.MessageChannel,i=m.Dispatch,t=0,s={},e="onreadystatechange",l,n,o,c=function(){var v=+this;if(s.hasOwnProperty(v)){var b=s[v];delete s[v],b()}},h=function(v){c.call(v.data)};(!d||!u)&&(d=function(v){for(var b=[],S=1;arguments.length>S;)b.push(arguments[S++]);return s[++t]=function(){f(typeof v=="function"?v:Function(v),b)},l(t),t},u=function(v){delete s[v]},R("./_cof")(p)=="process"?l=function(v){p.nextTick(y(c,v,1))}:i&&i.now?l=function(v){i.now(y(c,v,1))}:a?(n=new a,o=n.port2,n.port1.onmessage=h,l=y(o.postMessage,o,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(l=function(v){m.postMessage(v+"","*")},m.addEventListener("message",h,!1)):e in A("script")?l=function(v){x.appendChild(A("script"))[e]=function(){x.removeChild(this),c.call(v)}}:l=function(v){setTimeout(y(c,v,1),0)}),L.exports={set:d,clear:u}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(R,L,r){var y=R("./_to-integer"),f=Math.max,x=Math.min;L.exports=function(A,m){return A=y(A),A<0?f(A+m,0):x(A,m)}},{"./_to-integer":157}],157:[function(R,L,r){var y=Math.ceil,f=Math.floor;L.exports=function(x){return isNaN(x=+x)?0:(x>0?f:y)(x)}},{}],158:[function(R,L,r){var y=R("./_iobject"),f=R("./_defined");L.exports=function(x){return y(f(x))}},{"./_defined":102,"./_iobject":116}],159:[function(R,L,r){var y=R("./_to-integer"),f=Math.min;L.exports=function(x){return x>0?f(y(x),9007199254740991):0}},{"./_to-integer":157}],160:[function(R,L,r){var y=R("./_defined");L.exports=function(f){return Object(y(f))}},{"./_defined":102}],161:[function(R,L,r){var y=R("./_is-object");L.exports=function(f,x){if(!y(f))return f;var A,m;if(x&&typeof(A=f.toString)=="function"&&!y(m=A.call(f)))return m;if(typeof(A=f.valueOf)=="function"&&!y(m=A.call(f)))return m;if(!x&&typeof(A=f.toString)=="function"&&!y(m=A.call(f)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(R,L,r){var y=0,f=Math.random();L.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++y+f).toString(36))}},{}],163:[function(R,L,r){var y=R("./_global"),f=y.navigator;L.exports=f&&f.userAgent||""},{"./_global":110}],164:[function(R,L,r){var y=R("./_global"),f=R("./_core"),x=R("./_library"),A=R("./_wks-ext"),m=R("./_object-dp").f;L.exports=function(p){var d=f.Symbol||(f.Symbol=x?{}:y.Symbol||{});p.charAt(0)!="_"&&!(p in d)&&m(d,p,{value:A.f(p)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(R,L,r){r.f=R("./_wks")},{"./_wks":166}],166:[function(R,L,r){var y=R("./_shared")("wks"),f=R("./_uid"),x=R("./_global").Symbol,A=typeof x=="function",m=L.exports=function(p){return y[p]||(y[p]=A&&x[p]||(A?x:f)("Symbol."+p))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(R,L,r){var y=R("./_classof"),f=R("./_wks")("iterator"),x=R("./_iterators");L.exports=R("./_core").getIteratorMethod=function(A){if(A!=null)return A[f]||A["@@iterator"]||x[y(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(R,L,r){"use strict";var y=R("./_ctx"),f=R("./_export"),x=R("./_to-object"),A=R("./_iter-call"),m=R("./_is-array-iter"),p=R("./_to-length"),d=R("./_create-property"),u=R("./core.get-iterator-method");f(f.S+f.F*!R("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(i){var t=x(i),s=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,n=l!==void 0,o=0,c=u(t),h,g,v,b;if(n&&(l=y(l,e>2?arguments[2]:void 0,2)),c!=null&&!(s==Array&&m(c)))for(b=c.call(t),g=new s;!(v=b.next()).done;o++)d(g,o,n?A(b,l,[v.value,o],!0):v.value);else for(h=p(t.length),g=new s(h);h>o;o++)d(g,o,n?l(t[o],o):t[o]);return g.length=o,g}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(R,L,r){"use strict";var y=R("./_add-to-unscopables"),f=R("./_iter-step"),x=R("./_iterators"),A=R("./_to-iobject");L.exports=R("./_iter-define")(Array,"Array",function(m,p){this._t=A(m),this._i=0,this._k=p},function(){var m=this._t,p=this._k,d=this._i++;return!m||d>=m.length?(this._t=void 0,f(1)):p=="keys"?f(0,d):p=="values"?f(0,m[d]):f(0,[d,m[d]])},"values"),x.Arguments=x.Array,y("keys"),y("values"),y("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(R,L,r){"use strict";var y=R("./_is-object"),f=R("./_object-gpo"),x=R("./_wks")("hasInstance"),A=Function.prototype;x in A||R("./_object-dp").f(A,x,{value:function(p){if(typeof this!="function"||!y(p))return!1;if(!y(this.prototype))return p instanceof this;for(;p=f(p);)if(this.prototype===p)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(R,L,r){var y=R("./_export");y(y.S+y.F,"Object",{assign:R("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(R,L,r){var y=R("./_export");y(y.S,"Object",{create:R("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(R,L,r){var y=R("./_export");y(y.S+y.F*!R("./_descriptors"),"Object",{defineProperty:R("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(R,L,r){R("./_object-sap")("getOwnPropertyNames",function(){return R("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(R,L,r){var y=R("./_to-object"),f=R("./_object-gpo");R("./_object-sap")("getPrototypeOf",function(){return function(A){return f(y(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(R,L,r){var y=R("./_to-object"),f=R("./_object-keys");R("./_object-sap")("keys",function(){return function(A){return f(y(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(R,L,r){arguments[4][71][0].apply(r,arguments)},{dup:71}],178:[function(R,L,r){"use strict";var y=R("./_library"),f=R("./_global"),x=R("./_ctx"),A=R("./_classof"),m=R("./_export"),p=R("./_is-object"),d=R("./_a-function"),u=R("./_an-instance"),a=R("./_for-of"),i=R("./_species-constructor"),t=R("./_task").set,s=R("./_microtask")(),e=R("./_new-promise-capability"),l=R("./_perform"),n=R("./_user-agent"),o=R("./_promise-resolve"),c="Promise",h=f.TypeError,g=f.process,v=g&&g.versions,b=v&&v.v8||"",S=f[c],E=A(g)=="process",C=function(){},_,T,w,O,I=T=e.f,k=!!function(){try{var z=S.resolve(1),V=(z.constructor={})[R("./_wks")("species")]=function(Q){Q(C,C)};return(E||typeof PromiseRejectionEvent=="function")&&z.then(C)instanceof V&&b.indexOf("6.6")!==0&&n.indexOf("Chrome/66")===-1}catch(Q){}}(),M=function(V){var Q;return p(V)&&typeof(Q=V.then)=="function"?Q:!1},U=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;s(function(){for(var ee=V._v,se=V._s==1,ye=0,he=function(Pe){var Ue=se?Pe.ok:Pe.fail,$e=Pe.resolve,Ge=Pe.reject,ht=Pe.domain,Fe,oe,rt;try{Ue?(se||(V._h==2&&F(V),V._h=1),Ue===!0?Fe=ee:(ht&&ht.enter(),Fe=Ue(ee),ht&&(ht.exit(),rt=!0)),Fe===Pe.promise?Ge(h("Promise-chain cycle")):(oe=M(Fe))?oe.call(Fe,$e,Ge):$e(Fe)):Ge(ee)}catch(fe){ht&&!rt&&ht.exit(),Ge(fe)}};G.length>ye;)he(G[ye++]);V._c=[],V._n=!1,Q&&!V._h&&P(V)})},P=function(V){t.call(f,function(){var Q=V._v,G=X(V),ee,se,ye;if(G&&(ee=l(function(){E?g.emit("unhandledRejection",Q,V):(se=f.onunhandledrejection)?se({promise:V,reason:Q}):(ye=f.console)&&ye.error&&ye.error("Unhandled promise rejection",Q)}),V._h=E||X(V)?2:1),V._a=void 0,G&&ee.e)throw ee.v})},X=function(V){return V._h!==1&&(V._a||V._c).length===0},F=function(V){t.call(f,function(){var Q;E?g.emit("rejectionHandled",V):(Q=f.onrejectionhandled)&&Q({promise:V,reason:V._v})})},j=function(V){var Q=this;if(Q._d)return;Q._d=!0,Q=Q._w||Q,Q._v=V,Q._s=2,Q._a||(Q._a=Q._c.slice()),U(Q,!0)},K=function z(V){var Q=this,G;if(Q._d)return;Q._d=!0,Q=Q._w||Q;try{if(Q===V)throw h("Promise can't be resolved itself");(G=M(V))?s(function(){var ee={_w:Q,_d:!1};try{G.call(V,x(z,ee,1),x(j,ee,1))}catch(se){j.call(ee,se)}}):(Q._v=V,Q._s=1,U(Q,!1))}catch(ee){j.call({_w:Q,_d:!1},ee)}};k||(S=function(V){u(this,S,c,"_h"),d(V),_.call(this);try{V(x(K,this,1),x(j,this,1))}catch(Q){j.call(this,Q)}},_=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},_.prototype=R("./_redefine-all")(S.prototype,{then:function(V,Q){var G=I(i(this,S));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=E?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&U(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),w=function(){var V=new _;this.promise=V,this.resolve=x(K,V,1),this.reject=x(j,V,1)},e.f=I=function(V){return V===S||V===O?new w(V):T(V)}),m(m.G+m.W+m.F*!k,{Promise:S}),R("./_set-to-string-tag")(S,c),R("./_set-species")(c),O=R("./_core")[c],m(m.S+m.F*!k,c,{reject:function(V){var Q=I(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!k),c,{resolve:function(V){return o(y&&this===O?S:this,V)}}),m(m.S+m.F*!(k&&R("./_iter-detect")(function(z){S.all(z).catch(C)})),c,{all:function(V){var Q=this,G=I(Q),ee=G.resolve,se=G.reject,ye=l(function(){var he=[],ke=0,Pe=1;a(V,!1,function(Ue){var $e=ke++,Ge=!1;he.push(void 0),Pe++,Q.resolve(Ue).then(function(ht){if(Ge)return;Ge=!0,he[$e]=ht,--Pe||ee(he)},se)}),--Pe||ee(he)});return ye.e&&se(ye.v),G.promise},race:function(V){var Q=this,G=I(Q),ee=G.reject,se=l(function(){a(V,!1,function(ye){Q.resolve(ye).then(G.resolve,ee)})});return se.e&&ee(se.v),G.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(R,L,r){var y=R("./_export"),f=R("./_to-absolute-index"),x=String.fromCharCode,A=String.fromCodePoint;y(y.S+y.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(p){for(var d=[],u=arguments.length,a=0,i;u>a;){if(i=+arguments[a++],f(i,1114111)!==i)throw RangeError(i+" is not a valid code point");d.push(i<65536?x(i):x(((i-=65536)>>10)+55296,i%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(R,L,r){"use strict";var y=R("./_string-at")(!0);R("./_iter-define")(String,"String",function(f){this._t=String(f),this._i=0},function(){var f=this._t,x=this._i,A;return x>=f.length?{value:void 0,done:!0}:(A=y(f,x),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(R,L,r){"use strict";var y=R("./_global"),f=R("./_has"),x=R("./_descriptors"),A=R("./_export"),m=R("./_redefine"),p=R("./_meta").KEY,d=R("./_fails"),u=R("./_shared"),a=R("./_set-to-string-tag"),i=R("./_uid"),t=R("./_wks"),s=R("./_wks-ext"),e=R("./_wks-define"),l=R("./_enum-keys"),n=R("./_is-array"),o=R("./_an-object"),c=R("./_is-object"),h=R("./_to-object"),g=R("./_to-iobject"),v=R("./_to-primitive"),b=R("./_property-desc"),S=R("./_object-create"),E=R("./_object-gopn-ext"),C=R("./_object-gopd"),_=R("./_object-gops"),T=R("./_object-dp"),w=R("./_object-keys"),O=C.f,I=T.f,k=E.f,M=y.Symbol,U=y.JSON,P=U&&U.stringify,X="prototype",F=t("_hidden"),j=t("toPrimitive"),K={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),Q=u("op-symbols"),G=Object[X],ee=typeof M=="function"&&!!_.f,se=y.QObject,ye=!se||!se[X]||!se[X].findChild,he=x&&d(function(){return S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(we,Ce,Se){var le=O(G,Ce);le&&delete G[Ce],I(we,Ce,Se),le&&we!==G&&I(G,Ce,le)}:I,ke=function(Ce){var Se=V[Ce]=S(M[X]);return Se._k=Ce,Se},Pe=ee&&typeof M.iterator=="symbol"?function(we){return typeof we=="symbol"}:function(we){return we instanceof M},Ue=function(Ce,Se,le){return Ce===G&&Ue(Q,Se,le),o(Ce),Se=v(Se,!0),o(le),f(V,Se)?(le.enumerable?(f(Ce,F)&&Ce[F][Se]&&(Ce[F][Se]=!1),le=S(le,{enumerable:b(0,!1)})):(f(Ce,F)||I(Ce,F,b(1,{})),Ce[F][Se]=!0),he(Ce,Se,le)):I(Ce,Se,le)},$e=function(Ce,Se){o(Ce);for(var le=l(Se=g(Se)),pe=0,_e=le.length,tt;_e>pe;)Ue(Ce,tt=le[pe++],Se[tt]);return Ce},Ge=function(Ce,Se){return Se===void 0?S(Ce):$e(S(Ce),Se)},ht=function(Ce){var Se=K.call(this,Ce=v(Ce,!0));return this===G&&f(V,Ce)&&!f(Q,Ce)?!1:Se||!f(this,Ce)||!f(V,Ce)||f(this,F)&&this[F][Ce]?Se:!0},Fe=function(Ce,Se){if(Ce=g(Ce),Se=v(Se,!0),Ce===G&&f(V,Se)&&!f(Q,Se))return;var le=O(Ce,Se);return le&&f(V,Se)&&!(f(Ce,F)&&Ce[F][Se])&&(le.enumerable=!0),le},oe=function(Ce){for(var Se=k(g(Ce)),le=[],pe=0,_e;Se.length>pe;)!f(V,_e=Se[pe++])&&_e!=F&&_e!=p&&le.push(_e);return le},rt=function(Ce){for(var Se=Ce===G,le=k(Se?Q:g(Ce)),pe=[],_e=0,tt;le.length>_e;)f(V,tt=le[_e++])&&(Se?f(G,tt):!0)&&pe.push(V[tt]);return pe};ee||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var Ce=i(arguments.length>0?arguments[0]:void 0),Se=function le(pe){this===G&&le.call(Q,pe),f(this,F)&&f(this[F],Ce)&&(this[F][Ce]=!1),he(this,Ce,b(1,pe))};return x&&ye&&he(G,Ce,{configurable:!0,set:Se}),ke(Ce)},m(M[X],"toString",function(){return this._k}),C.f=Fe,T.f=Ue,R("./_object-gopn").f=E.f=oe,R("./_object-pie").f=ht,_.f=rt,x&&!R("./_library")&&m(G,"propertyIsEnumerable",ht,!0),s.f=function(we){return ke(t(we))}),A(A.G+A.W+A.F*!ee,{Symbol:M});for(var fe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;fe.length>J;)t(fe[J++]);for(var Y=w(t.store),$=0;Y.length>$;)e(Y[$++]);A(A.S+A.F*!ee,"Symbol",{for:function(Ce){return f(z,Ce+="")?z[Ce]:z[Ce]=M(Ce)},keyFor:function(Ce){if(!Pe(Ce))throw TypeError(Ce+" is not a symbol!");for(var Se in z)if(z[Se]===Ce)return Se},useSetter:function(){ye=!0},useSimple:function(){ye=!1}}),A(A.S+A.F*!ee,"Object",{create:Ge,defineProperty:Ue,defineProperties:$e,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:oe,getOwnPropertySymbols:rt});var de=d(function(){_.f(1)});A(A.S+A.F*de,"Object",{getOwnPropertySymbols:function(Ce){return _.f(h(Ce))}}),U&&A(A.S+A.F*(!ee||d(function(){var we=M();return P([we])!="[null]"||P({a:we})!="{}"||P(Object(we))!="{}"})),"JSON",{stringify:function(Ce){for(var Se=[Ce],le=1,pe,_e;arguments.length>le;)Se.push(arguments[le++]);return _e=pe=Se[1],!c(pe)&&Ce===void 0||Pe(Ce)?void 0:(n(pe)||(pe=function(gt,ct){if(typeof _e=="function"&&(ct=_e.call(this,gt,ct)),!Pe(ct))return ct}),Se[1]=pe,P.apply(U,Se))}}),M[X][j]||R("./_hide")(M[X],j,M[X].valueOf),a(M,"Symbol"),a(Math,"Math",!0),a(y.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(R,L,r){var y=R("./_export"),f=R("./_object-to-array")(!0);y(y.S,"Object",{entries:function(A){return f(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(R,L,r){"use strict";var y=R("./_export"),f=R("./_core"),x=R("./_global"),A=R("./_species-constructor"),m=R("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var u=A(this,f.Promise||x.Promise),a=typeof d=="function";return this.then(a?function(i){return m(u,d()).then(function(){return i})}:d,a?function(i){return m(u,d()).then(function(){throw i})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(R,L,r){"use strict";var y=R("./_export"),f=R("./_new-promise-capability"),x=R("./_perform");y(y.S,"Promise",{try:function(m){var p=f.f(this),d=x(m);return(d.e?p.reject:p.resolve)(d.v),p.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(R,L,r){R("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(R,L,r){R("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(R,L,r){R("./es6.array.iterator");for(var y=R("./_global"),f=R("./_hide"),x=R("./_iterators"),A=R("./_wks")("toStringTag"),m="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;p<m.length;p++){var d=m[p],u=y[d],a=u&&u.prototype;a&&!a[A]&&f(a,A,d),x[d]=x.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(R,L,r){var y=R("./_export"),f=R("./_task");y(y.G+y.B,{setImmediate:f.set,clearImmediate:f.clear})},{"./_export":107,"./_task":155}],189:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/helpers/typeof"),x=A(f);function A(v){return v&&v.__esModule?v:{default:v}}function m(v){return Array.isArray?Array.isArray(v):g(v)==="[object Array]"}r.isArray=m;function p(v){return typeof v=="boolean"}r.isBoolean=p;function d(v){return v===null}r.isNull=d;function u(v){return v==null}r.isNullOrUndefined=u;function a(v){return typeof v=="number"}r.isNumber=a;function i(v){return typeof v=="string"}r.isString=i;function t(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"}r.isSymbol=t;function s(v){return v===void 0}r.isUndefined=s;function e(v){return g(v)==="[object RegExp]"}r.isRegExp=e;function l(v){return(typeof v=="undefined"?"undefined":(0,x.default)(v))==="object"&&v!==null}r.isObject=l;function n(v){return g(v)==="[object Date]"}r.isDate=n;function o(v){return g(v)==="[object Error]"||v instanceof Error}r.isError=o;function c(v){return typeof v=="function"}r.isFunction=c;function h(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||(typeof v=="undefined"?"undefined":(0,x.default)(v))==="symbol"||typeof v=="undefined"}r.isPrimitive=h,r.isBuffer=y.isBuffer;function g(v){return Object.prototype.toString.call(v)}}).call(this,{isBuffer:R("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(R,L,r){"use strict";var y=R("babel-runtime/helpers/typeof"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var m=function(){var i=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(e,l,n,o){if(arguments.length===1&&a(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(m.masks[l]||l||m.masks.default);var c=l.slice(0,4);(c==="UTC:"||c==="GMT:")&&(l=l.slice(4),n=!0,c==="GMT:"&&(o=!0));var h=n?"getUTC":"get",g=e[h+"Date"](),v=e[h+"Day"](),b=e[h+"Month"](),S=e[h+"FullYear"](),E=e[h+"Hours"](),C=e[h+"Minutes"](),_=e[h+"Seconds"](),T=e[h+"Milliseconds"](),w=n?0:e.getTimezoneOffset(),O=d(e),I=u(e),k={d:g,dd:p(g),ddd:m.i18n.dayNames[v],dddd:m.i18n.dayNames[v+7],m:b+1,mm:p(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(S).slice(2),yyyy:S,h:E%12||12,hh:p(E%12||12),H:E,HH:p(E),M:C,MM:p(C),s:_,ss:p(_),l:p(T,3),L:p(Math.round(T/10)),t:E<12?"a":"p",tt:E<12?"am":"pm",T:E<12?"A":"P",TT:E<12?"AM":"PM",Z:o?"GMT":n?"UTC":(String(e).match(t)||[""]).pop().replace(s,""),o:(w>0?"-":"+")+p(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:O,N:I};return l.replace(i,function(M){return M in k?k[M]:M.slice(1,M.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function p(i,t){for(i=String(i),t=t||2;i.length<t;)i="0"+i;return i}function d(i){var t=new Date(i.getFullYear(),i.getMonth(),i.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var s=new Date(t.getFullYear(),0,4);s.setDate(s.getDate()-(s.getDay()+6)%7+3);var e=t.getTimezoneOffset()-s.getTimezoneOffset();t.setHours(t.getHours()-e);var l=(t-s)/(864e5*7);return 1+Math.floor(l)}function u(i){var t=i.getDay();return t===0&&(t=7),t}function a(i){return i===null?"null":i===void 0?"undefined":(typeof i=="undefined"?"undefined":(0,f.default)(i))!=="object"?typeof i=="undefined"?"undefined":(0,f.default)(i):Array.isArray(i)?"array":{}.toString.call(i).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof r=="undefined"?"undefined":(0,f.default)(r))==="object"?L.exports=m:A.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(R,L,r){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var y=/["'&<>]/;L.exports=f;function f(x){var A=""+x,m=y.exec(A);if(!m)return A;var p,d="",u=0,a=0;for(u=m.index;u<A.length;u++){switch(A.charCodeAt(u)){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&#39;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;default:continue}a!==u&&(d+=A.substring(a,u)),a=u+1,d+=p}return a!==u?d+A.substring(a,u):d}},{}],192:[function(R,L,r){function y(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}L.exports=y,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._maxListeners=void 0,y.defaultMaxListeners=10,y.prototype.setMaxListeners=function(p){if(!x(p)||p<0||isNaN(p))throw TypeError("n must be a positive number");return this._maxListeners=p,this},y.prototype.emit=function(p){var d,u,a,i,t,s;if(this._events||(this._events={}),p==="error"&&(!this._events.error||A(this._events.error)&&!this._events.error.length)){if(d=arguments[1],d instanceof Error)throw d;var e=new Error('Uncaught, unspecified "error" event. ('+d+")");throw e.context=d,e}if(u=this._events[p],m(u))return!1;if(f(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),u.apply(this,i)}else if(A(u))for(i=Array.prototype.slice.call(arguments,1),s=u.slice(),a=s.length,t=0;t<a;t++)s[t].apply(this,i);return!0},y.prototype.addListener=function(p,d){var u;if(!f(d))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",p,f(d.listener)?d.listener:d),this._events[p]?A(this._events[p])?this._events[p].push(d):this._events[p]=[this._events[p],d]:this._events[p]=d,A(this._events[p])&&!this._events[p].warned&&(m(this._maxListeners)?u=y.defaultMaxListeners:u=this._maxListeners,u&&u>0&&this._events[p].length>u&&(this._events[p].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[p].length),typeof console.trace=="function"&&console.trace())),this},y.prototype.on=y.prototype.addListener,y.prototype.once=function(p,d){if(!f(d))throw TypeError("listener must be a function");var u=!1;function a(){this.removeListener(p,a),u||(u=!0,d.apply(this,arguments))}return a.listener=d,this.on(p,a),this},y.prototype.removeListener=function(p,d){var u,a,i,t;if(!f(d))throw TypeError("listener must be a function");if(!this._events||!this._events[p])return this;if(u=this._events[p],i=u.length,a=-1,u===d||f(u.listener)&&u.listener===d)delete this._events[p],this._events.removeListener&&this.emit("removeListener",p,d);else if(A(u)){for(t=i;t-- >0;)if(u[t]===d||u[t].listener&&u[t].listener===d){a=t;break}if(a<0)return this;u.length===1?(u.length=0,delete this._events[p]):u.splice(a,1),this._events.removeListener&&this.emit("removeListener",p,d)}return this},y.prototype.removeAllListeners=function(p){var d,u;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[p]&&delete this._events[p],this;if(arguments.length===0){for(d in this._events){if(d==="removeListener")continue;this.removeAllListeners(d)}return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[p],f(u))this.removeListener(p,u);else if(u)for(;u.length;)this.removeListener(p,u[u.length-1]);return delete this._events[p],this},y.prototype.listeners=function(p){var d;return!this._events||!this._events[p]?d=[]:f(this._events[p])?d=[this._events[p]]:d=this._events[p].slice(),d},y.prototype.listenerCount=function(p){if(this._events){var d=this._events[p];if(f(d))return 1;if(d)return d.length}return 0},y.listenerCount=function(p,d){return p.listenerCount(d)};function f(p){return typeof p=="function"}function x(p){return typeof p=="number"}function A(p){return typeof p=="object"&&p!==null}function m(p){return p===void 0}},{}],193:[function(R,L,r){var y=R("http"),f=L.exports;for(var x in y)y.hasOwnProperty(x)&&(f[x]=y[x]);f.request=function(A,m){return A||(A={}),A.scheme="https",A.protocol="https:",y.request.call(this,A,m)}},{http:231}],194:[function(R,L,r){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=R("util"),f=R("ms");L.exports=function(x){if(typeof x=="number")return x;var A=f(x);if(A===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",x));console.warn(m.stack)}return A}},{ms:204,util:243}],195:[function(R,L,r){r.read=function(y,f,x,A,m){var p,d,u=m*8-A-1,a=(1<<u)-1,i=a>>1,t=-7,s=x?m-1:0,e=x?-1:1,l=y[f+s];for(s+=e,p=l&(1<<-t)-1,l>>=-t,t+=u;t>0;p=p*256+y[f+s],s+=e,t-=8);for(d=p&(1<<-t)-1,p>>=-t,t+=A;t>0;d=d*256+y[f+s],s+=e,t-=8);if(p===0)p=1-i;else{if(p===a)return d?NaN:(l?-1:1)*Infinity;d=d+Math.pow(2,A),p=p-i}return(l?-1:1)*d*Math.pow(2,p-A)},r.write=function(y,f,x,A,m,p){var d,u,a,i=p*8-m-1,t=(1<<i)-1,s=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=A?0:p-1,n=A?1:-1,o=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===Infinity?(u=isNaN(f)?1:0,d=t):(d=Math.floor(Math.log(f)/Math.LN2),f*(a=Math.pow(2,-d))<1&&(d--,a*=2),d+s>=1?f+=e/a:f+=e*Math.pow(2,1-s),f*a>=2&&(d++,a/=2),d+s>=t?(u=0,d=t):d+s>=1?(u=(f*a-1)*Math.pow(2,m),d=d+s):(u=f*Math.pow(2,s-1)*Math.pow(2,m),d=0));m>=8;y[x+l]=u&255,l+=n,u/=256,m-=8);for(d=d<<m|u,i+=m;i>0;y[x+l]=d&255,l+=n,d/=256,i-=8);y[x+l-n]|=o*128}},{}],196:[function(R,L,r){typeof Object.create=="function"?L.exports=function(f,x){x&&(f.super_=x,f.prototype=Object.create(x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:L.exports=function(f,x){if(x){f.super_=x;var A=function(){};A.prototype=x.prototype,f.prototype=new A,f.prototype.constructor=f}}},{}],197:[function(R,L,r){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/L.exports=function(x){return x!=null&&(y(x)||f(x)||!!x._isBuffer)};function y(x){return!!x.constructor&&typeof x.constructor.isBuffer=="function"&&x.constructor.isBuffer(x)}function f(x){return typeof x.readFloatLE=="function"&&typeof x.slice=="function"&&y(x.slice(0,0))}},{}],198:[function(R,L,r){var y={}.toString;L.exports=Array.isArray||function(f){return y.call(f)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(R,L){typeof exports=="object"&&typeof module!="undefined"?module.exports=L(R):typeof define=="function"&&define.amd?define(L):L(R)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(R){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(R){for(var L={},r=0,y=R.length;r<y;r++)L[R.charAt(r)]=r;return L}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(L){if(L.length<2){var r=L.charCodeAt(0);return r<128?L:r<2048?fromCharCode(192|r>>>6)+fromCharCode(128|r&63):fromCharCode(224|r>>>12&15)+fromCharCode(128|r>>>6&63)+fromCharCode(128|r&63)}else{var r=65536+(L.charCodeAt(0)-55296)*1024+(L.charCodeAt(1)-56320);return fromCharCode(240|r>>>18&7)+fromCharCode(128|r>>>12&63)+fromCharCode(128|r>>>6&63)+fromCharCode(128|r&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(L){return L.replace(re_utob,cb_utob)},cb_encode=function(L){var r=[0,2,1][L.length%3],y=L.charCodeAt(0)<<16|(L.length>1?L.charCodeAt(1):0)<<8|(L.length>2?L.charCodeAt(2):0),f=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),r>=2?"=":b64chars.charAt(y>>>6&63),r>=1?"=":b64chars.charAt(y&63)];return f.join("")},btoa=global.btoa?function(R){return global.btoa(R)}:function(R){return R.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(L){var r=Object.prototype.toString.call(L)==="[object Uint8Array]";return r?L.toString("base64"):btoa(utob(String(L)))},encode=function(L,r){return r?_encode(String(L)).replace(/[+\/]/g,function(y){return y=="+"?"-":"_"}).replace(/=/g,""):_encode(L)},encodeURI=function(L){return encode(L,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(L){switch(L.length){case 4:var r=(7&L.charCodeAt(0))<<18|(63&L.charCodeAt(1))<<12|(63&L.charCodeAt(2))<<6|63&L.charCodeAt(3),y=r-65536;return fromCharCode((y>>>10)+55296)+fromCharCode((y&1023)+56320);case 3:return fromCharCode((15&L.charCodeAt(0))<<12|(63&L.charCodeAt(1))<<6|63&L.charCodeAt(2));default:return fromCharCode((31&L.charCodeAt(0))<<6|63&L.charCodeAt(1))}},btou=function(L){return L.replace(re_btou,cb_btou)},cb_decode=function(L){var r=L.length,y=r%4,f=(r>0?b64tab[L.charAt(0)]<<18:0)|(r>1?b64tab[L.charAt(1)]<<12:0)|(r>2?b64tab[L.charAt(2)]<<6:0)|(r>3?b64tab[L.charAt(3)]:0),x=[fromCharCode(f>>>16),fromCharCode(f>>>8&255),fromCharCode(f&255)];return x.length-=[0,0,2,1][y],x.join("")},_atob=global.atob?function(R){return global.atob(R)}:function(R){return R.replace(/\S{1,4}/g,cb_decode)},atob=function(L){return _atob(String(L).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(R){return(R.constructor===buffer.constructor?R:buffer.from(R,"base64")).toString()}:function(R){return(R.constructor===buffer.constructor?R:new buffer(R,"base64")).toString()}:function(R){return btou(_atob(R))},decode=function(L){return _decode(String(L).replace(/[-_]/g,function(r){return r=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var L=global.Base64;return global.Base64=_Base64,L};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(L){return{value:L,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(R){return encode(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(R,L,r){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";L.exports=f;var y=Object.prototype.hasOwnProperty;function f(x,A,m){if(!x)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(A).forEach(function(d){if(!m&&y.call(x,d))return;var u=Object.getOwnPropertyDescriptor(A,d);Object.defineProperty(x,d,u)}),x}},{}],201:[function(R,L,r){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var f=0;f<arguments.length;f++)this.define(arguments[f]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(f,x){for(var A in f){var m=f[A].map(function(u){return u.toLowerCase()});A=A.toLowerCase();for(var p=0;p<m.length;p++){var d=m[p];if(d[0]=="*")continue;if(!x&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+A+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+A+'".');this._types[d]=A}if(x||!this._extensions[A]){var d=m[0];this._extensions[A]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(f){f=String(f);var x=f.replace(/^.*[/\\]/,"").toLowerCase(),A=x.replace(/^.*\./,"").toLowerCase(),m=x.length<f.length,p=A.length<x.length-1;return(p||!m)&&this._types[A]||null},y.prototype.getExtension=function(f){return f=/^\s*([^;\s]*)/.test(f)&&RegExp.$1,f&&this._extensions[f.toLowerCase()]||null},L.exports=y},{}],202:[function(R,L,r){"use strict";var y=R("./Mime");L.exports=new y(R("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(R,L,r){L.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(R,L,r){var y=1e3,f=y*60,x=f*60,A=x*24,m=A*7,p=A*365.25;L.exports=function(t,s){s=s||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return s.long?a(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function d(t){if(t=String(t),t.length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!s)return;var e=parseFloat(s[1]),l=(s[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*p;case"weeks":case"week":case"w":return e*m;case"days":case"day":case"d":return e*A;case"hours":case"hour":case"hrs":case"hr":case"h":return e*x;case"minutes":case"minute":case"mins":case"min":case"m":return e*f;case"seconds":case"second":case"secs":case"sec":case"s":return e*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function u(t){var s=Math.abs(t);return s>=A?Math.round(t/A)+"d":s>=x?Math.round(t/x)+"h":s>=f?Math.round(t/f)+"m":s>=y?Math.round(t/y)+"s":t+"ms"}function a(t){var s=Math.abs(t);return s>=A?i(t,s,A,"day"):s>=x?i(t,s,x,"hour"):s>=f?i(t,s,f,"minute"):s>=y?i(t,s,y,"second"):t+" ms"}function i(t,s,e,l){var n=s>=e*1.5;return Math.round(t/e)+" "+l+(n?"s":"")}},{}],205:[function(R,L,r){(function(y){function f(p,d){for(var u=0,a=p.length-1;a>=0;a--){var i=p[a];i==="."?p.splice(a,1):i===".."?(p.splice(a,1),u++):u&&(p.splice(a,1),u--)}if(d)for(;u--;u)p.unshift("..");return p}r.resolve=function(){for(var p="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var a=u>=0?arguments[u]:y.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!a)continue;p=a+"/"+p,d=a.charAt(0)==="/"}return p=f(A(p.split("/"),function(i){return!!i}),!d).join("/"),(d?"/":"")+p||"."},r.normalize=function(p){var d=r.isAbsolute(p),u=m(p,-1)==="/";return p=f(A(p.split("/"),function(a){return!!a}),!d).join("/"),!p&&!d&&(p="."),p&&u&&(p+="/"),(d?"/":"")+p},r.isAbsolute=function(p){return p.charAt(0)==="/"},r.join=function(){var p=Array.prototype.slice.call(arguments,0);return r.normalize(A(p,function(d,u){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},r.relative=function(p,d){p=r.resolve(p).substr(1),d=r.resolve(d).substr(1);function u(n){for(var o=0;o<n.length&&!(n[o]!=="");o++);for(var c=n.length-1;c>=0&&!(n[c]!=="");c--);return o>c?[]:n.slice(o,c-o+1)}for(var a=u(p.split("/")),i=u(d.split("/")),t=Math.min(a.length,i.length),s=t,e=0;e<t;e++)if(a[e]!==i[e]){s=e;break}for(var l=[],e=s;e<a.length;e++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},r.sep="/",r.delimiter=":",r.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var d=p.charCodeAt(0),u=d===47,a=-1,i=!0,t=p.length-1;t>=1;--t)if(d=p.charCodeAt(t),d===47){if(!i){a=t;break}}else i=!1;return a===-1?u?"/":".":u&&a===1?"/":p.slice(0,a)};function x(p){typeof p!="string"&&(p=p+"");var d=0,u=-1,a=!0,i;for(i=p.length-1;i>=0;--i)if(p.charCodeAt(i)===47){if(!a){d=i+1;break}}else u===-1&&(a=!1,u=i+1);return u===-1?"":p.slice(d,u)}r.basename=function(p,d){var u=x(p);return d&&u.substr(-1*d.length)===d&&(u=u.substr(0,u.length-d.length)),u},r.extname=function(p){typeof p!="string"&&(p=p+"");for(var d=-1,u=0,a=-1,i=!0,t=0,s=p.length-1;s>=0;--s){var e=p.charCodeAt(s);if(e===47){if(!i){u=s+1;break}continue}a===-1&&(i=!1,a=s+1),e===46?d===-1?d=s:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||a===-1||t===0||t===1&&d===a-1&&d===u+1?"":p.slice(d,a)};function A(p,d){if(p.filter)return p.filter(d);for(var u=[],a=0;a<p.length;a++)d(p[a],a,p)&&u.push(p[a]);return u}var m="ab".substr(-1)==="b"?function(p,d,u){return p.substr(d,u)}:function(p,d,u){return d<0&&(d=p.length+d),p.substr(d,u)}}).call(this,R("_process"))},{_process:208}],206:[function(R,L,r){(function(y){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var f={function:!0,object:!0},x=f[typeof window]&&window||this,A=x,m=f[typeof r]&&r,p=f[typeof L]&&L&&!L.nodeType&&L,d=m&&p&&typeof y=="object"&&y;d&&(d.global===d||d.window===d||d.self===d)&&(x=d);var u=Math.pow(2,53)-1,a=/\bOpera/,i=this,t=Object.prototype,s=t.hasOwnProperty,e=t.toString;function l(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function n(T,w,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return w&&O&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(I=I[/[\d.]+$/.exec(T)])&&(T="Windows "+I),T=String(T),w&&O&&(T=T.replace(RegExp(w,"i"),O)),T=c(T.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),T}function o(T,w){var O=-1,I=T?T.length:0;if(typeof I=="number"&&I>-1&&I<=u)for(;++O<I;)w(T[O],O,T);else h(T,w)}function c(T){return T=E(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:l(T)}function h(T,w){for(var O in T)s.call(T,O)&&w(T[O],O,T)}function g(T){return T==null?l(T):e.call(T).slice(8,-1)}function v(T,w){var O=T!=null?typeof T[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!T[w]:!0)}function b(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function S(T,w){var O=null;return o(T,function(I,k){O=w(O,I,k,T)}),O}function E(T){return String(T).replace(/^ +| +$/g,"")}function C(T){var w=x,O=T&&typeof T=="object"&&g(T)!="String";O&&(w=T,T=null);var I=w.navigator||{},k=I.userAgent||"";T||(T=k);var M=O||i==A,U=O?!!I.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(e.toString()),P="Object",X=O?P:"ScriptBridgingProxyObject",F=O?P:"Environment",j=O&&w.java?"JavaPackage":g(w.java),K=O?P:"RuntimeObject",z=/\bJava/.test(j)&&w.java,V=z&&g(w.environment)==F,Q=z?"a":"\u03B1",G=z?"b":"\u03B2",ee=w.document||{},se=w.operamini||w.opera,ye=a.test(ye=O&&se?se["[[Class]]"]:g(se))?ye:se=null,he,ke=T,Pe=[],Ue=null,$e=T==k,Ge=$e&&se&&typeof se.version=="function"&&se.version(),ht,Fe=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=de(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),rt=Ce([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),fe=$({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),J=we(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function Y(_e){return S(_e,function(tt,gt){return tt||RegExp("\\b"+(gt.pattern||b(gt))+"\\b","i").exec(T)&&(gt.label||gt)})}function $(_e){return S(_e,function(tt,gt,ct){return tt||(gt[rt]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(rt)]||RegExp("\\b"+b(ct)+"(?:\\b|\\w*\\d)","i").exec(T))&&ct})}function de(_e){return S(_e,function(tt,gt){return tt||RegExp("\\b"+(gt.pattern||b(gt))+"\\b","i").exec(T)&&(gt.label||gt)})}function we(_e){return S(_e,function(tt,gt){var ct=gt.pattern||b(gt);return!tt&&(tt=RegExp("\\b"+ct+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(tt=n(tt,ct,gt.label||gt)),tt})}function Ce(_e){return S(_e,function(tt,gt){var ct=gt.pattern||b(gt);return!tt&&(tt=RegExp("\\b"+ct+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+ct+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+ct+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((tt=String(gt.label&&!RegExp(ct,"i").test(gt.label)?gt.label:tt).split("/"))[1]&&!/[\d.]+/.test(tt[0])&&(tt[0]+=" "+tt[1]),gt=gt.label||gt,tt=c(tt[0].replace(RegExp(ct,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),tt})}function Se(_e){return S(_e,function(tt,gt){return tt||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function le(){return this.description||""}if(Fe&&(Fe=[Fe]),fe&&!rt&&(rt=Ce([fe])),(he=/\bGoogle TV\b/.exec(rt))&&(rt=he[0]),/\bSimulator\b/i.test(T)&&(rt=(rt?rt+" ":"")+"Simulator"),oe=="Opera Mini"&&/\bOPiOS\b/.test(T)&&Pe.push("running in Turbo/Uncompressed mode"),oe=="IE"&&/\blike iPhone OS\b/.test(T)?(he=C(T.replace(/like iPhone OS/,"")),fe=he.manufacturer,rt=he.product):/^iP/.test(rt)?(oe||(oe="Safari"),J="iOS"+((he=/ OS ([\d_]+)/i.exec(T))?" "+he[1].replace(/_/g,"."):"")):oe=="Konqueror"&&!/buntu/i.test(J)?J="Kubuntu":fe&&fe!="Google"&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(rt))||/\bAndroid\b/.test(J)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(T)?(oe="Android Browser",J=/\bAndroid\b/.test(J)?J:"Android"):oe=="Silk"?(/\bMobi/i.test(T)||(J="Android",Pe.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&Pe.unshift("accelerated")):oe=="PaleMoon"&&(he=/\bFirefox\/([\d.]+)\b/.exec(T))?Pe.push("identifying as Firefox "+he[1]):oe=="Firefox"&&(he=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(J||(J="Firefox OS"),rt||(rt=he[1])):!oe||(he=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!rt&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(he+"/")+8))&&(oe=null),(he=rt||fe||J)&&(rt||fe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(J))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(J)?J:he)+" Browser")):oe=="Electron"&&(he=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&Pe.push("Chromium "+he),Ge||(Ge=Se(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(oe),"(?:Firefox|Minefield|NetFront)"])),(he=Fe=="iCab"&&parseFloat(Ge)>3&&"WebKit"||/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test(Fe)&&"WebKit"||!Fe&&/\bMSIE\b/i.test(T)&&(J=="Mac OS"?"Tasman":"Trident")||Fe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&(Fe=[he]),oe=="IE"&&(he=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(oe+=" Mobile",J="Windows Phone "+(/\+$/.test(he)?he:he+".x"),Pe.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(oe="IE Mobile",J="Windows Phone 8.x",Pe.unshift("desktop mode"),Ge||(Ge=(/\brv:([\d.]+)/.exec(T)||0)[1])):oe!="IE"&&Fe=="Trident"&&(he=/\brv:([\d.]+)/.exec(T))&&(oe&&Pe.push("identifying as "+oe+(Ge?" "+Ge:"")),oe="IE",Ge=he[1]),$e){if(v(w,"global"))if(z&&(he=z.lang.System,ke=he.getProperty("os.arch"),J=J||he.getProperty("os.name")+" "+he.getProperty("os.version")),V){try{Ge=w.require("ringo/engine").version.join("."),oe="RingoJS"}catch(_e){(he=w.system)&&he.global.system==w.system&&(oe="Narwhal",J||(J=he[0].os||null))}oe||(oe="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(he=w.process)&&(typeof he.versions=="object"&&(typeof he.versions.electron=="string"?(Pe.push("Node "+he.versions.node),oe="Electron",Ge=he.versions.electron):typeof he.versions.nw=="string"&&(Pe.push("Chromium "+Ge,"Node "+he.versions.node),oe="NW.js",Ge=he.versions.nw)),oe||(oe="Node.js",ke=he.arch,J=he.platform,Ge=/[\d.]+/.exec(he.version),Ge=Ge?Ge[0]:null));else g(he=w.runtime)==X?(oe="Adobe AIR",J=he.flash.system.Capabilities.os):g(he=w.phantom)==K?(oe="PhantomJS",Ge=(he=he.version||null)&&he.major+"."+he.minor+"."+he.patch):typeof ee.documentMode=="number"&&(he=/\bTrident\/(\d+)/i.exec(T))?(Ge=[Ge,ee.documentMode],(he=+he[1]+4)!=Ge[1]&&(Pe.push("IE "+Ge[1]+" mode"),Fe&&(Fe[1]=""),Ge[1]=he),Ge=oe=="IE"?String(Ge[1].toFixed(1)):Ge[0]):typeof ee.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(oe)&&(Pe.push("masking as "+oe+" "+Ge),oe="IE",Ge="11.0",Fe=["Trident"],J="Windows");J=J&&c(J)}if(Ge&&(he=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ge)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+($e&&I.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(Ue=/b/i.test(he)?"beta":"alpha",Ge=Ge.replace(RegExp(he+"\\+?$"),"")+(Ue=="beta"?G:Q)+(/\d+\+?/.exec(he)||"")),oe=="Fennec"||oe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(J))oe="Firefox Mobile";else if(oe=="Maxthon"&&Ge)Ge=Ge.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(rt))rt=="Xbox 360"&&(J=null),rt=="Xbox 360"&&/\bIEMobile\b/.test(T)&&Pe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(oe)||oe&&!rt&&!/Browser|Mobi/.test(oe))&&(J=="Windows CE"||/Mobi/i.test(T)))oe+=" Mobile";else if(oe=="IE"&&$e)try{w.external===null&&Pe.unshift("platform preview")}catch(_e){Pe.unshift("embedded")}else(/\bBlackBerry\b/.test(rt)||/\bBB10\b/.test(T))&&(he=(RegExp(rt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||Ge)?(he=[he,/BB10/.test(T)],J=(he[1]?(rt=null,fe="BlackBerry"):"Device Software")+" "+he[0],Ge=null):this!=h&&rt!="Wii"&&($e&&se||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(T)||oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(J)||oe=="IE"&&(J&&!/^Win/.test(J)&&Ge>5.5||/\bWindows XP\b/.test(J)&&Ge>8||Ge==8&&!/\bTrident\b/.test(T)))&&!a.test(he=C.call(h,T.replace(a,"")+";"))&&he.name&&(he="ing as "+he.name+((he=he.version)?" "+he:""),a.test(oe)?(/\bIE\b/.test(he)&&J=="Mac OS"&&(J=null),he="identify"+he):(he="mask"+he,ye?oe=c(ye.replace(/([a-z])([A-Z])/g,"$1 $2")):oe="Opera",/\bIE\b/.test(he)&&(J=null),$e||(Ge=null)),Fe=["Presto"],Pe.push(he));(he=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(he=[parseFloat(he.replace(/\.(\d)$/,".0$1")),he],oe=="Safari"&&he[1].slice(-1)=="+"?(oe="WebKit Nightly",Ue="alpha",Ge=he[1].slice(0,-1)):(Ge==he[1]||Ge==(he[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(Ge=null),he[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],he[0]==537.36&&he[2]==537.36&&parseFloat(he[1])>=28&&Fe=="WebKit"&&(Fe=["Blink"]),!$e||!U&&!he[1]?(Fe&&(Fe[1]="like Safari"),he=(he=he[0],he<400?1:he<500?2:he<526?3:he<533?4:he<534?"4+":he<535?5:he<537?6:he<538?7:he<601?8:"8")):(Fe&&(Fe[1]="like Chrome"),he=he[1]||(he=he[0],he<530?1:he<532?2:he<532.05?3:he<533?4:he<534.03?5:he<534.07?6:he<534.1?7:he<534.13?8:he<534.16?9:he<534.24?10:he<534.3?11:he<535.01?12:he<535.02?"13+":he<535.07?15:he<535.11?16:he<535.19?17:he<536.05?18:he<536.1?19:he<537.01?20:he<537.11?"21+":he<537.13?23:he<537.18?24:he<537.24?25:he<537.36?26:Fe!="Blink"?"27":"28")),Fe&&(Fe[1]+=" "+(he+=typeof he=="number"?".x":/[.+]/.test(he)?"":"+")),oe=="Safari"&&(!Ge||parseInt(Ge)>45)&&(Ge=he)),oe=="Opera"&&(he=/\bzbov|zvav$/.exec(J))?(oe+=" ",Pe.unshift("desktop mode"),he=="zvav"?(oe+="Mini",Ge=null):oe+="Mobile",J=J.replace(RegExp(" *"+he+"$"),"")):oe=="Safari"&&/\bChrome\b/.exec(Fe&&Fe[1])&&(Pe.unshift("desktop mode"),oe="Chrome Mobile",Ge=null,/\bOS X\b/.test(J)?(fe="Apple",J="iOS 4.3+"):J=null),Ge&&Ge.indexOf(he=/[\d.]+$/.exec(J))==0&&T.indexOf("/"+he+"-")>-1&&(J=E(J.replace(he,""))),Fe&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||oe!="Safari"&&/^iOS/.test(J)&&/\bSafari\b/.test(Fe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(oe)&&Fe[1])&&((he=Fe[Fe.length-1])&&Pe.push(he)),Pe.length&&(Pe=["("+Pe.join("; ")+")"]),fe&&rt&&rt.indexOf(fe)<0&&Pe.push("on "+fe),rt&&Pe.push((/^on /.test(Pe[Pe.length-1])?"":"on ")+rt),J&&(he=/ ([\d.+]+)$/.exec(J),ht=he&&J.charAt(J.length-he[0].length-1)=="/",J={architecture:32,family:he&&!ht?J.replace(he[0],""):J,version:he?he[1]:null,toString:function(){var tt=this.version;return this.family+(tt&&!ht?" "+tt:"")+(this.architecture==64?" 64-bit":"")}}),(he=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ke))&&!/\bi686\b/i.test(ke)?(J&&(J.architecture=64,J.family=J.family.replace(RegExp(" *"+he),"")),oe&&(/\bWOW64\b/i.test(T)||$e&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(T))&&Pe.unshift("32-bit")):J&&/^OS X/.test(J.family)&&oe=="Chrome"&&parseFloat(Ge)>=39&&(J.architecture=64),T||(T=null);var pe={};return pe.description=T,pe.layout=Fe&&Fe[0],pe.manufacturer=fe,pe.name=oe,pe.prerelease=Ue,pe.product=rt,pe.ua=T,pe.version=oe&&Ge,pe.os=J||{architecture:null,family:null,version:null,toString:function(){return"null"}},pe.parse=C,pe.toString=le,pe.version&&Pe.unshift(Ge),pe.name&&Pe.unshift(oe),J&&oe&&!(J==String(J).split(" ")[0]&&(J==oe.split(" ")[0]||rt))&&Pe.push(rt?"("+J+")":"on "+J),Pe.length&&(pe.description=Pe.join(" ")),pe}var _=C();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(x.platform=_,define(function(){return _})):m&&p?h(_,function(T,w){m[w]=T}):x.platform=_}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(R,L,r){(function(y){"use strict";typeof y=="undefined"||!y.version||y.version.indexOf("v0.")===0||y.version.indexOf("v1.")===0&&y.version.indexOf("v1.8.")!==0?L.exports={nextTick:f}:L.exports=y;function f(x,A,m,p){if(typeof x!="function")throw new TypeError('"callback" argument must be a function');var d=arguments.length,u,a;switch(d){case 0:case 1:return y.nextTick(x);case 2:return y.nextTick(function(){x.call(null,A)});case 3:return y.nextTick(function(){x.call(null,A,m)});case 4:return y.nextTick(function(){x.call(null,A,m,p)});default:for(u=new Array(d-1),a=0;a<u.length;)u[a++]=arguments[a];return y.nextTick(function(){x.apply(null,u)})}}}).call(this,R("_process"))},{_process:208}],208:[function(R,L,r){var y=L.exports={},f,x;function A(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?f=setTimeout:f=A}catch(o){f=A}try{typeof clearTimeout=="function"?x=clearTimeout:x=m}catch(o){x=m}})();function p(o){if(f===setTimeout)return setTimeout(o,0);if((f===A||!f)&&setTimeout)return f=setTimeout,setTimeout(o,0);try{return f(o,0)}catch(c){try{return f.call(null,o,0)}catch(h){return f.call(this,o,0)}}}function d(o){if(x===clearTimeout)return clearTimeout(o);if((x===m||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(o);try{return x(o)}catch(c){try{return x.call(null,o)}catch(h){return x.call(this,o)}}}var u=[],a=!1,i,t=-1;function s(){if(!a||!i)return;a=!1,i.length?u=i.concat(u):t=-1,u.length&&e()}function e(){if(a)return;var o=p(s);a=!0;for(var c=u.length;c;){for(i=u,u=[];++t<c;)i&&i[t].run();t=-1,c=u.length}i=null,a=!1,d(o)}y.nextTick=function(o){var c=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)c[h-1]=arguments[h];u.push(new l(o,c)),u.length===1&&!a&&p(e)};function l(o,c){this.fun=o,this.array=c}l.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={};function n(){}y.on=n,y.addListener=n,y.once=n,y.off=n,y.removeListener=n,y.removeAllListeners=n,y.emit=n,y.prependListener=n,y.prependOnceListener=n,y.listeners=function(o){return[]},y.binding=function(o){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(o){throw new Error("process.chdir is not supported")},y.umask=function(){return 0}},{}],209:[function(R,L,r){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(f){var x=typeof r=="object"&&r&&!r.nodeType&&r,A=typeof L=="object"&&L&&!L.nodeType&&L,m=typeof y=="object"&&y;(m.global===m||m.window===m||m.self===m)&&(f=m);var p,d=2147483647,u=36,a=1,i=26,t=38,s=700,e=72,l=128,n="-",o=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=u-a,b=Math.floor,S=String.fromCharCode,E;function C(j){throw new RangeError(g[j])}function _(j,K){for(var z=j.length,V=[];z--;)V[z]=K(j[z]);return V}function T(j,K){var z=j.split("@"),V="";z.length>1&&(V=z[0]+"@",j=z[1]),j=j.replace(h,".");var Q=j.split("."),G=_(Q,K).join(".");return V+G}function w(j){for(var K=[],z=0,V=j.length,Q,G;z<V;)Q=j.charCodeAt(z++),Q>=55296&&Q<=56319&&z<V?(G=j.charCodeAt(z++),(G&64512)==56320?K.push(((Q&1023)<<10)+(G&1023)+65536):(K.push(Q),z--)):K.push(Q);return K}function O(j){return _(j,function(K){var z="";return K>65535&&(K-=65536,z+=S(K>>>10&1023|55296),K=56320|K&1023),z+=S(K),z}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:u}function k(j,K){return j+22+75*(j<26)-((K!=0)<<5)}function M(j,K,z){var V=0;for(j=z?b(j/s):j>>1,j+=b(j/K);j>v*i>>1;V+=u)j=b(j/v);return b(V+(v+1)*j/(j+t))}function U(j){var K=[],z=j.length,V,Q=0,G=l,ee=e,se,ye,he,ke,Pe,Ue,$e,Ge,ht;for(se=j.lastIndexOf(n),se<0&&(se=0),ye=0;ye<se;++ye)j.charCodeAt(ye)>=128&&C("not-basic"),K.push(j.charCodeAt(ye));for(he=se>0?se+1:0;he<z;){for(ke=Q,Pe=1,Ue=u;!(he>=z&&C("invalid-input"),$e=I(j.charCodeAt(he++)),($e>=u||$e>b((d-Q)/Pe))&&C("overflow"),Q+=$e*Pe,Ge=Ue<=ee?a:Ue>=ee+i?i:Ue-ee,$e<Ge);Ue+=u)ht=u-Ge,Pe>b(d/ht)&&C("overflow"),Pe*=ht;V=K.length+1,ee=M(Q-ke,V,ke==0),b(Q/V)>d-G&&C("overflow"),G+=b(Q/V),Q%=V,K.splice(Q++,0,G)}return O(K)}function P(j){var K,z,V,Q,G,ee,se,ye,he,ke,Pe,Ue=[],$e,Ge,ht,Fe;for(j=w(j),$e=j.length,K=l,z=0,G=e,ee=0;ee<$e;++ee)Pe=j[ee],Pe<128&&Ue.push(S(Pe));for(V=Q=Ue.length,Q&&Ue.push(n);V<$e;){for(se=d,ee=0;ee<$e;++ee)Pe=j[ee],Pe>=K&&Pe<se&&(se=Pe);for(Ge=V+1,se-K>b((d-z)/Ge)&&C("overflow"),z+=(se-K)*Ge,K=se,ee=0;ee<$e;++ee)if(Pe=j[ee],Pe<K&&++z>d&&C("overflow"),Pe==K){for(ye=z,he=u;!(ke=he<=G?a:he>=G+i?i:he-G,ye<ke);he+=u)Fe=ye-ke,ht=u-ke,Ue.push(S(k(ke+Fe%ht,0))),ye=b(Fe/ht);Ue.push(S(k(ye,0))),G=M(z,Ge,V==Q),z=0,++V}++z,++K}return Ue.join("")}function X(j){return T(j,function(K){return o.test(K)?U(K.slice(4).toLowerCase()):K})}function F(j){return T(j,function(K){return c.test(K)?"xn--"+P(K):K})}if(p={version:"1.4.1",ucs2:{decode:w,encode:O},decode:U,encode:P,toASCII:F,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return p});else if(x&&A)if(L.exports==x)A.exports=p;else for(E in p)p.hasOwnProperty(E)&&(x[E]=p[E]);else f.punycode=p})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(R,L,r){"use strict";function y(x,A){return Object.prototype.hasOwnProperty.call(x,A)}L.exports=function(x,A,m,p){A=A||"&",m=m||"=";var d={};if(typeof x!="string"||x.length===0)return d;var u=/\+/g;x=x.split(A);var a=1e3;p&&typeof p.maxKeys=="number"&&(a=p.maxKeys);var i=x.length;a>0&&i>a&&(i=a);for(var t=0;t<i;++t){var s=x[t].replace(u,"%20"),e=s.indexOf(m),l,n,o,c;e>=0?(l=s.substr(0,e),n=s.substr(e+1)):(l=s,n=""),o=decodeURIComponent(l),c=decodeURIComponent(n),y(d,o)?f(d[o])?d[o].push(c):d[o]=[d[o],c]:d[o]=c}return d};var f=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{}],211:[function(R,L,r){"use strict";var y=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};L.exports=function(m,p,d,u){return p=p||"&",d=d||"=",m===null&&(m=void 0),typeof m=="object"?x(A(m),function(a){var i=encodeURIComponent(y(a))+d;return f(m[a])?x(m[a],function(t){return i+encodeURIComponent(y(t))}).join(p):i+encodeURIComponent(y(m[a]))}).join(p):u?encodeURIComponent(y(u))+d+encodeURIComponent(y(m)):""};var f=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function x(m,p){if(m.map)return m.map(p);for(var d=[],u=0;u<m.length;u++)d.push(p(m[u],u));return d}var A=Object.keys||function(m){var p=[];for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&p.push(d);return p}},{}],212:[function(R,L,r){"use strict";r.decode=r.parse=R("./decode"),r.encode=r.stringify=R("./encode")},{"./decode":210,"./encode":211}],213:[function(R,L,r){L.exports=R("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=m(y),x=R("babel-runtime/core-js/object/keys"),A=m(x);function m(c){return c&&c.__esModule?c:{default:c}}var p=R("process-nextick-args"),d=A.default||function(c){var h=[];for(var g in c)h.push(g);return h};L.exports=l;var u=(0,f.default)(R("core-util-is"));u.inherits=R("inherits");var a=R("./_stream_readable"),i=R("./_stream_writable");u.inherits(l,a);for(var t=d(i.prototype),s=0;s<t.length;s++){var e=t[s];l.prototype[e]||(l.prototype[e]=i.prototype[e])}function l(c){if(!(this instanceof l))return new l(c);a.call(this,c),i.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",n)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function n(){if(this.allowHalfOpen||this._writableState.ended)return;p.nextTick(o,this)}function o(c){c.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(h){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=h,this._writableState.destroyed=h}}),l.prototype._destroy=function(c,h){this.push(null),this.end(),p.nextTick(h,c)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(d){return d&&d.__esModule?d:{default:d}}L.exports=p;var A=R("./_stream_transform"),m=(0,f.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(p,A);function p(d){if(!(this instanceof p))return new p(d);A.call(this,d)}p.prototype._transform=function(d,u,a){a(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(R,L,r){(function(y,f){"use strict";var x=R("babel-runtime/core-js/object/get-prototype-of"),A=d(x),m=R("babel-runtime/core-js/object/create"),p=d(m);function d(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}var u=R("process-nextick-args");L.exports=w;var a=R("isarray"),i;w.ReadableState=T;var t=R("events").EventEmitter,s=function(oe,rt){return oe.listeners(rt).length},e=R("./internal/streams/stream"),l=R("safe-buffer").Buffer,n=f.Uint8Array||function(){};function o(Fe){return l.from(Fe)}function c(Fe){return l.isBuffer(Fe)||Fe instanceof n}var h=(0,p.default)(R("core-util-is"));h.inherits=R("inherits");var g=R("util"),v=void 0;g&&g.debuglog?v=g.debuglog("stream"):v=function(){};var b=R("./internal/streams/BufferList"),S=R("./internal/streams/destroy"),E;h.inherits(w,e);var C=["error","close","destroy","pause","resume"];function _(Fe,oe,rt){if(typeof Fe.prependListener=="function")return Fe.prependListener(oe,rt);!Fe._events||!Fe._events[oe]?Fe.on(oe,rt):a(Fe._events[oe])?Fe._events[oe].unshift(rt):Fe._events[oe]=[rt,Fe._events[oe]]}function T(Fe,oe){i=i||R("./_stream_duplex"),Fe=Fe||{};var rt=oe instanceof i;this.objectMode=!!Fe.objectMode,rt&&(this.objectMode=this.objectMode||!!Fe.readableObjectMode);var fe=Fe.highWaterMark,J=Fe.readableHighWaterMark,Y=this.objectMode?16:16*1024;fe||fe===0?this.highWaterMark=fe:rt&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Y,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Fe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Fe.encoding&&(E||(E=R("string_decoder/").StringDecoder),this.decoder=new E(Fe.encoding),this.encoding=Fe.encoding)}function w(Fe){if(i=i||R("./_stream_duplex"),!(this instanceof w))return new w(Fe);this._readableState=new T(Fe,this),this.readable=!0,Fe&&(typeof Fe.read=="function"&&(this._read=Fe.read),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(oe){if(!this._readableState)return;this._readableState.destroyed=oe}}),w.prototype.destroy=S.destroy,w.prototype._undestroy=S.undestroy,w.prototype._destroy=function(Fe,oe){this.push(null),oe(Fe)},w.prototype.push=function(Fe,oe){var rt=this._readableState,fe;return rt.objectMode?fe=!0:typeof Fe=="string"&&(oe=oe||rt.defaultEncoding,oe!==rt.encoding&&(Fe=l.from(Fe,oe),oe=""),fe=!0),O(this,Fe,oe,!1,fe)},w.prototype.unshift=function(Fe){return O(this,Fe,null,!0,!1)};function O(Fe,oe,rt,fe,J){var Y=Fe._readableState;if(oe===null)Y.reading=!1,F(Fe,Y);else{var $;J||($=k(Y,oe)),$?Fe.emit("error",$):Y.objectMode||oe&&oe.length>0?(typeof oe!="string"&&!Y.objectMode&&(0,A.default)(oe)!==l.prototype&&(oe=o(oe)),fe?Y.endEmitted?Fe.emit("error",new Error("stream.unshift() after end event")):I(Fe,Y,oe,!0):Y.ended?Fe.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!rt?(oe=Y.decoder.write(oe),Y.objectMode||oe.length!==0?I(Fe,Y,oe,!1):z(Fe,Y)):I(Fe,Y,oe,!1))):fe||(Y.reading=!1)}return M(Y)}function I(Fe,oe,rt,fe){oe.flowing&&oe.length===0&&!oe.sync?(Fe.emit("data",rt),Fe.read(0)):(oe.length+=oe.objectMode?1:rt.length,fe?oe.buffer.unshift(rt):oe.buffer.push(rt),oe.needReadable&&j(Fe)),z(Fe,oe)}function k(Fe,oe){var rt;return!c(oe)&&typeof oe!="string"&&oe!==void 0&&!Fe.objectMode&&(rt=new TypeError("Invalid non-string/buffer chunk")),rt}function M(Fe){return!Fe.ended&&(Fe.needReadable||Fe.length<Fe.highWaterMark||Fe.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(Fe){return E||(E=R("string_decoder/").StringDecoder),this._readableState.decoder=new E(Fe),this._readableState.encoding=Fe,this};var U=8388608;function P(Fe){return Fe>=U?Fe=U:(Fe--,Fe|=Fe>>>1,Fe|=Fe>>>2,Fe|=Fe>>>4,Fe|=Fe>>>8,Fe|=Fe>>>16,Fe++),Fe}function X(Fe,oe){return Fe<=0||oe.length===0&&oe.ended?0:oe.objectMode?1:Fe!==Fe?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(Fe>oe.highWaterMark&&(oe.highWaterMark=P(Fe)),Fe<=oe.length?Fe:oe.ended?oe.length:(oe.needReadable=!0,0))}w.prototype.read=function(Fe){v("read",Fe),Fe=parseInt(Fe,10);var oe=this._readableState,rt=Fe;if(Fe!==0&&(oe.emittedReadable=!1),Fe===0&&oe.needReadable&&(oe.length>=oe.highWaterMark||oe.ended))return v("read: emitReadable",oe.length,oe.ended),oe.length===0&&oe.ended?$e(this):j(this),null;if(Fe=X(Fe,oe),Fe===0&&oe.ended)return oe.length===0&&$e(this),null;var fe=oe.needReadable;v("need readable",fe),(oe.length===0||oe.length-Fe<oe.highWaterMark)&&(fe=!0,v("length less than watermark",fe)),oe.ended||oe.reading?(fe=!1,v("reading or ended",fe)):fe&&(v("do read"),oe.reading=!0,oe.sync=!0,oe.length===0&&(oe.needReadable=!0),this._read(oe.highWaterMark),oe.sync=!1,oe.reading||(Fe=X(rt,oe)));var J;return Fe>0?J=he(Fe,oe):J=null,J===null?(oe.needReadable=!0,Fe=0):oe.length-=Fe,oe.length===0&&(oe.ended||(oe.needReadable=!0),rt!==Fe&&oe.ended&&$e(this)),J!==null&&this.emit("data",J),J};function F(Fe,oe){if(oe.ended)return;if(oe.decoder){var rt=oe.decoder.end();rt&&rt.length&&(oe.buffer.push(rt),oe.length+=oe.objectMode?1:rt.length)}oe.ended=!0,j(Fe)}function j(Fe){var oe=Fe._readableState;oe.needReadable=!1,oe.emittedReadable||(v("emitReadable",oe.flowing),oe.emittedReadable=!0,oe.sync?u.nextTick(K,Fe):K(Fe))}function K(Fe){v("emit readable"),Fe.emit("readable"),ye(Fe)}function z(Fe,oe){oe.readingMore||(oe.readingMore=!0,u.nextTick(V,Fe,oe))}function V(Fe,oe){for(var rt=oe.length;!oe.reading&&!oe.flowing&&!oe.ended&&oe.length<oe.highWaterMark&&!(v("maybeReadMore read 0"),Fe.read(0),rt===oe.length);)rt=oe.length;oe.readingMore=!1}w.prototype._read=function(Fe){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(Fe,oe){var rt=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=Fe;break;case 1:fe.pipes=[fe.pipes,Fe];break;default:fe.pipes.push(Fe);break}fe.pipesCount+=1,v("pipe count=%d opts=%j",fe.pipesCount,oe);var J=(!oe||oe.end!==!1)&&Fe!==y.stdout&&Fe!==y.stderr,Y=J?de:ct;fe.endEmitted?u.nextTick(Y):rt.once("end",Y),Fe.on("unpipe",$);function $(je,Zt){v("onunpipe"),je===rt&&(Zt&&Zt.hasUnpiped===!1&&(Zt.hasUnpiped=!0,Se()))}function de(){v("onend"),Fe.end()}var we=Q(rt);Fe.on("drain",we);var Ce=!1;function Se(){v("cleanup"),Fe.removeListener("close",tt),Fe.removeListener("finish",gt),Fe.removeListener("drain",we),Fe.removeListener("error",_e),Fe.removeListener("unpipe",$),rt.removeListener("end",de),rt.removeListener("end",ct),rt.removeListener("data",pe),Ce=!0,fe.awaitDrain&&(!Fe._writableState||Fe._writableState.needDrain)&&we()}var le=!1;rt.on("data",pe);function pe(je){v("ondata"),le=!1;var Zt=Fe.write(je);Zt===!1&&!le&&((fe.pipesCount===1&&fe.pipes===Fe||fe.pipesCount>1&&ht(fe.pipes,Fe)!==-1)&&!Ce&&(v("false write response, pause",rt._readableState.awaitDrain),rt._readableState.awaitDrain++,le=!0),rt.pause())}function _e(je){v("onerror",je),ct(),Fe.removeListener("error",_e),s(Fe,"error")===0&&Fe.emit("error",je)}_(Fe,"error",_e);function tt(){Fe.removeListener("finish",gt),ct()}Fe.once("close",tt);function gt(){v("onfinish"),Fe.removeListener("close",tt),ct()}Fe.once("finish",gt);function ct(){v("unpipe"),rt.unpipe(Fe)}return Fe.emit("pipe",rt),fe.flowing||(v("pipe resume"),rt.resume()),Fe};function Q(Fe){return function(){var oe=Fe._readableState;v("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&s(Fe,"data")&&(oe.flowing=!0,ye(Fe))}}w.prototype.unpipe=function(Fe){var oe=this._readableState,rt={hasUnpiped:!1};if(oe.pipesCount===0)return this;if(oe.pipesCount===1)return Fe&&Fe!==oe.pipes?this:(Fe||(Fe=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,Fe&&Fe.emit("unpipe",this,rt),this);if(!Fe){var fe=oe.pipes,J=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var Y=0;Y<J;Y++)fe[Y].emit("unpipe",this,rt);return this}var $=ht(oe.pipes,Fe);return $===-1?this:(oe.pipes.splice($,1),oe.pipesCount-=1,oe.pipesCount===1&&(oe.pipes=oe.pipes[0]),Fe.emit("unpipe",this,rt),this)},w.prototype.on=function(Fe,oe){var rt=e.prototype.on.call(this,Fe,oe);if(Fe==="data")this._readableState.flowing!==!1&&this.resume();else if(Fe==="readable"){var fe=this._readableState;!fe.endEmitted&&!fe.readableListening&&(fe.readableListening=fe.needReadable=!0,fe.emittedReadable=!1,fe.reading?fe.length&&j(this):u.nextTick(G,this))}return rt},w.prototype.addListener=w.prototype.on;function G(Fe){v("readable nexttick read 0"),Fe.read(0)}w.prototype.resume=function(){var Fe=this._readableState;return Fe.flowing||(v("resume"),Fe.flowing=!0,ee(this,Fe)),this};function ee(Fe,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,u.nextTick(se,Fe,oe))}function se(Fe,oe){oe.reading||(v("resume read 0"),Fe.read(0)),oe.resumeScheduled=!1,oe.awaitDrain=0,Fe.emit("resume"),ye(Fe),oe.flowing&&!oe.reading&&Fe.read(0)}w.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ye(Fe){var oe=Fe._readableState;for(v("flow",oe.flowing);oe.flowing&&Fe.read()!==null;);}w.prototype.wrap=function(Fe){var oe=this,rt=this._readableState,fe=!1;Fe.on("end",function(){if(v("wrapped end"),rt.decoder&&!rt.ended){var $=rt.decoder.end();$&&$.length&&oe.push($)}oe.push(null)}),Fe.on("data",function($){if(v("wrapped data"),rt.decoder&&($=rt.decoder.write($)),rt.objectMode&&$==null)return;if(!rt.objectMode&&(!$||!$.length))return;var de=oe.push($);de||(fe=!0,Fe.pause())});for(var J in Fe)this[J]===void 0&&typeof Fe[J]=="function"&&(this[J]=function($){return function(){return Fe[$].apply(Fe,arguments)}}(J));for(var Y=0;Y<C.length;Y++)Fe.on(C[Y],this.emit.bind(this,C[Y]));return this._read=function($){v("wrapped _read",$),fe&&(fe=!1,Fe.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=he;function he(Fe,oe){if(oe.length===0)return null;var rt;return oe.objectMode?rt=oe.buffer.shift():!Fe||Fe>=oe.length?(oe.decoder?rt=oe.buffer.join(""):oe.buffer.length===1?rt=oe.buffer.head.data:rt=oe.buffer.concat(oe.length),oe.buffer.clear()):rt=ke(Fe,oe.buffer,oe.decoder),rt}function ke(Fe,oe,rt){var fe;return Fe<oe.head.data.length?(fe=oe.head.data.slice(0,Fe),oe.head.data=oe.head.data.slice(Fe)):Fe===oe.head.data.length?fe=oe.shift():fe=rt?Pe(Fe,oe):Ue(Fe,oe),fe}function Pe(Fe,oe){var rt=oe.head,fe=1,J=rt.data;for(Fe-=J.length;rt=rt.next;){var Y=rt.data,$=Fe>Y.length?Y.length:Fe;if($===Y.length?J+=Y:J+=Y.slice(0,Fe),Fe-=$,Fe===0){$===Y.length?(++fe,rt.next?oe.head=rt.next:oe.head=oe.tail=null):(oe.head=rt,rt.data=Y.slice($));break}++fe}return oe.length-=fe,J}function Ue(Fe,oe){var rt=l.allocUnsafe(Fe),fe=oe.head,J=1;for(fe.data.copy(rt),Fe-=fe.data.length;fe=fe.next;){var Y=fe.data,$=Fe>Y.length?Y.length:Fe;if(Y.copy(rt,rt.length-Fe,0,$),Fe-=$,Fe===0){$===Y.length?(++J,fe.next?oe.head=fe.next:oe.head=oe.tail=null):(oe.head=fe,fe.data=Y.slice($));break}++J}return oe.length-=J,rt}function $e(Fe){var oe=Fe._readableState;if(oe.length>0)throw new Error('"endReadable()" called on non-empty stream');oe.endEmitted||(oe.ended=!0,u.nextTick(Ge,oe,Fe))}function Ge(Fe,oe){!Fe.endEmitted&&Fe.length===0&&(Fe.endEmitted=!0,oe.readable=!1,oe.emit("end"))}function ht(Fe,oe){for(var rt=0,fe=Fe.length;rt<fe;rt++)if(Fe[rt]===oe)return rt;return-1}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(i){return i&&i.__esModule?i:{default:i}}L.exports=d;var A=R("./_stream_duplex"),m=(0,f.default)(R("core-util-is"));m.inherits=R("inherits"),m.inherits(d,A);function p(i,t){var s=this._transformState;s.transforming=!1;var e=s.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));s.writechunk=null,s.writecb=null,t!=null&&this.push(t),e(i);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function d(i){if(!(this instanceof d))return new d(i);A.call(this,i),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,i&&(typeof i.transform=="function"&&(this._transform=i.transform),typeof i.flush=="function"&&(this._flush=i.flush)),this.on("prefinish",u)}function u(){var i=this;typeof this._flush=="function"?this._flush(function(t,s){a(i,t,s)}):a(this,null,null)}d.prototype.push=function(i,t){return this._transformState.needTransform=!1,A.prototype.push.call(this,i,t)},d.prototype._transform=function(i,t,s){throw new Error("_transform() is not implemented")},d.prototype._write=function(i,t,s){var e=this._transformState;if(e.writecb=s,e.writechunk=i,e.writeencoding=t,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},d.prototype._read=function(i){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},d.prototype._destroy=function(i,t){var s=this;A.prototype._destroy.call(this,i,function(e){t(e),s.emit("close")})};function a(i,t,s){if(t)return i.emit("error",t);if(s!=null&&i.push(s),i._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(i._transformState.transforming)throw new Error("Calling transform done when still transforming");return i.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(R,L,r){(function(y,f){"use strict";var x=R("babel-runtime/core-js/object/define-property"),A=e(x),m=R("babel-runtime/core-js/symbol/has-instance"),p=e(m),d=R("babel-runtime/core-js/symbol"),u=e(d),a=R("babel-runtime/core-js/object/create"),i=e(a),t=R("babel-runtime/core-js/set-immediate"),s=e(t);function e(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}var l=R("process-nextick-args");L.exports=k;function n(Ue,$e,Ge){this.chunk=Ue,this.encoding=$e,this.callback=Ge,this.next=null}function o(Ue){var $e=this;this.next=null,this.entry=null,this.finish=function(){Pe($e,Ue)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?s.default:l.nextTick,h;k.WritableState=O;var g=(0,i.default)(R("core-util-is"));g.inherits=R("inherits");var v={deprecate:R("util-deprecate")},b=R("./internal/streams/stream"),S=R("safe-buffer").Buffer,E=f.Uint8Array||function(){};function C(Ue){return S.from(Ue)}function _(Ue){return S.isBuffer(Ue)||Ue instanceof E}var T=R("./internal/streams/destroy");g.inherits(k,b);function w(){}function O(Ue,$e){h=h||R("./_stream_duplex"),Ue=Ue||{};var Ge=$e instanceof h;this.objectMode=!!Ue.objectMode,Ge&&(this.objectMode=this.objectMode||!!Ue.writableObjectMode);var ht=Ue.highWaterMark,Fe=Ue.writableHighWaterMark,oe=this.objectMode?16:16*1024;ht||ht===0?this.highWaterMark=ht:Ge&&(Fe||Fe===0)?this.highWaterMark=Fe:this.highWaterMark=oe,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var rt=Ue.decodeStrings===!1;this.decodeStrings=!rt,this.defaultEncoding=Ue.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(fe){z($e,fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}O.prototype.getBuffer=function(){for(var $e=this.bufferedRequest,Ge=[];$e;)Ge.push($e),$e=$e.next;return Ge},function(){try{Object.defineProperty(O.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ue){}}();var I;typeof u.default=="function"&&p.default&&typeof Function.prototype[p.default]=="function"?(I=Function.prototype[p.default],(0,A.default)(k,p.default,{value:function($e){return I.call(this,$e)?!0:this!==k?!1:$e&&$e._writableState instanceof O}})):I=function($e){return $e instanceof this};function k(Ue){if(h=h||R("./_stream_duplex"),!I.call(k,this)&&!(this instanceof h))return new k(Ue);this._writableState=new O(Ue,this),this.writable=!0,Ue&&(typeof Ue.write=="function"&&(this._write=Ue.write),typeof Ue.writev=="function"&&(this._writev=Ue.writev),typeof Ue.destroy=="function"&&(this._destroy=Ue.destroy),typeof Ue.final=="function"&&(this._final=Ue.final)),b.call(this)}k.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(Ue,$e){var Ge=new Error("write after end");Ue.emit("error",Ge),l.nextTick($e,Ge)}function U(Ue,$e,Ge,ht){var Fe=!0,oe=!1;return Ge===null?oe=new TypeError("May not write null values to stream"):typeof Ge!="string"&&Ge!==void 0&&!$e.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe&&(Ue.emit("error",oe),l.nextTick(ht,oe),Fe=!1),Fe}k.prototype.write=function(Ue,$e,Ge){var ht=this._writableState,Fe=!1,oe=!ht.objectMode&&_(Ue);return oe&&!S.isBuffer(Ue)&&(Ue=C(Ue)),typeof $e=="function"&&(Ge=$e,$e=null),oe?$e="buffer":$e||($e=ht.defaultEncoding),typeof Ge!="function"&&(Ge=w),ht.ended?M(this,Ge):(oe||U(this,ht,Ue,Ge))&&(ht.pendingcb++,Fe=X(this,ht,oe,Ue,$e,Ge)),Fe},k.prototype.cork=function(){var Ue=this._writableState;Ue.corked++},k.prototype.uncork=function(){var Ue=this._writableState;Ue.corked&&(Ue.corked--,!Ue.writing&&!Ue.corked&&!Ue.finished&&!Ue.bufferProcessing&&Ue.bufferedRequest&&G(this,Ue))},k.prototype.setDefaultEncoding=function($e){if(typeof $e=="string"&&($e=$e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf(($e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+$e);return this._writableState.defaultEncoding=$e,this};function P(Ue,$e,Ge){return!Ue.objectMode&&Ue.decodeStrings!==!1&&typeof $e=="string"&&($e=S.from($e,Ge)),$e}Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Ue,$e,Ge,ht,Fe,oe){if(!Ge){var rt=P($e,ht,Fe);ht!==rt&&(Ge=!0,Fe="buffer",ht=rt)}var fe=$e.objectMode?1:ht.length;$e.length+=fe;var J=$e.length<$e.highWaterMark;if(J||($e.needDrain=!0),$e.writing||$e.corked){var Y=$e.lastBufferedRequest;$e.lastBufferedRequest={chunk:ht,encoding:Fe,isBuf:Ge,callback:oe,next:null},Y?Y.next=$e.lastBufferedRequest:$e.bufferedRequest=$e.lastBufferedRequest,$e.bufferedRequestCount+=1}else F(Ue,$e,!1,fe,ht,Fe,oe);return J}function F(Ue,$e,Ge,ht,Fe,oe,rt){$e.writelen=ht,$e.writecb=rt,$e.writing=!0,$e.sync=!0,Ge?Ue._writev(Fe,$e.onwrite):Ue._write(Fe,oe,$e.onwrite),$e.sync=!1}function j(Ue,$e,Ge,ht,Fe){--$e.pendingcb,Ge?(l.nextTick(Fe,ht),l.nextTick(he,Ue,$e),Ue._writableState.errorEmitted=!0,Ue.emit("error",ht)):(Fe(ht),Ue._writableState.errorEmitted=!0,Ue.emit("error",ht),he(Ue,$e))}function K(Ue){Ue.writing=!1,Ue.writecb=null,Ue.length-=Ue.writelen,Ue.writelen=0}function z(Ue,$e){var Ge=Ue._writableState,ht=Ge.sync,Fe=Ge.writecb;if(K(Ge),$e)j(Ue,Ge,ht,$e,Fe);else{var oe=ee(Ge);!oe&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&G(Ue,Ge),ht?c(V,Ue,Ge,oe,Fe):V(Ue,Ge,oe,Fe)}}function V(Ue,$e,Ge,ht){Ge||Q(Ue,$e),$e.pendingcb--,ht(),he(Ue,$e)}function Q(Ue,$e){$e.length===0&&$e.needDrain&&($e.needDrain=!1,Ue.emit("drain"))}function G(Ue,$e){$e.bufferProcessing=!0;var Ge=$e.bufferedRequest;if(Ue._writev&&Ge&&Ge.next){var ht=$e.bufferedRequestCount,Fe=new Array(ht),oe=$e.corkedRequestsFree;oe.entry=Ge;for(var rt=0,fe=!0;Ge;)Fe[rt]=Ge,Ge.isBuf||(fe=!1),Ge=Ge.next,rt+=1;Fe.allBuffers=fe,F(Ue,$e,!0,$e.length,Fe,"",oe.finish),$e.pendingcb++,$e.lastBufferedRequest=null,oe.next?($e.corkedRequestsFree=oe.next,oe.next=null):$e.corkedRequestsFree=new o($e),$e.bufferedRequestCount=0}else{for(;Ge;){var J=Ge.chunk,Y=Ge.encoding,$=Ge.callback,de=$e.objectMode?1:J.length;if(F(Ue,$e,!1,de,J,Y,$),Ge=Ge.next,$e.bufferedRequestCount--,$e.writing)break}Ge===null&&($e.lastBufferedRequest=null)}$e.bufferedRequest=Ge,$e.bufferProcessing=!1}k.prototype._write=function(Ue,$e,Ge){Ge(new Error("_write() is not implemented"))},k.prototype._writev=null,k.prototype.end=function(Ue,$e,Ge){var ht=this._writableState;typeof Ue=="function"?(Ge=Ue,Ue=null,$e=null):typeof $e=="function"&&(Ge=$e,$e=null),Ue!=null&&this.write(Ue,$e),ht.corked&&(ht.corked=1,this.uncork()),!ht.ending&&!ht.finished&&ke(this,ht,Ge)};function ee(Ue){return Ue.ending&&Ue.length===0&&Ue.bufferedRequest===null&&!Ue.finished&&!Ue.writing}function se(Ue,$e){Ue._final(function(Ge){$e.pendingcb--,Ge&&Ue.emit("error",Ge),$e.prefinished=!0,Ue.emit("prefinish"),he(Ue,$e)})}function ye(Ue,$e){!$e.prefinished&&!$e.finalCalled&&(typeof Ue._final=="function"?($e.pendingcb++,$e.finalCalled=!0,l.nextTick(se,Ue,$e)):($e.prefinished=!0,Ue.emit("prefinish")))}function he(Ue,$e){var Ge=ee($e);return Ge&&(ye(Ue,$e),$e.pendingcb===0&&($e.finished=!0,Ue.emit("finish"))),Ge}function ke(Ue,$e,Ge){$e.ending=!0,he(Ue,$e),Ge&&($e.finished?l.nextTick(Ge):Ue.once("finish",Ge)),$e.ended=!0,Ue.writable=!1}function Pe(Ue,$e,Ge){var ht=Ue.entry;for(Ue.entry=null;ht;){var Fe=ht.callback;$e.pendingcb--,Fe(Ge),ht=ht.next}$e.corkedRequestsFree?$e.corkedRequestsFree.next=Ue:$e.corkedRequestsFree=Ue}Object.defineProperty(k.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($e){if(!this._writableState)return;this._writableState.destroyed=$e}}),k.prototype.destroy=T.destroy,k.prototype._undestroy=T.undestroy,k.prototype._destroy=function(Ue,$e){this.end(),$e(Ue)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(R,L,r){"use strict";function y(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}var f=R("safe-buffer").Buffer,x=R("util");function A(m,p,d){m.copy(p,d)}L.exports=function(){function m(){y(this,m),this.head=null,this.tail=null,this.length=0}return m.prototype.push=function(d){var u={data:d,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},m.prototype.unshift=function(d){var u={data:d,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},m.prototype.shift=function(){if(this.length===0)return;var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(d){if(this.length===0)return"";for(var u=this.head,a=""+u.data;u=u.next;)a+=d+u.data;return a},m.prototype.concat=function(d){if(this.length===0)return f.alloc(0);if(this.length===1)return this.head.data;for(var u=f.allocUnsafe(d>>>0),a=this.head,i=0;a;)A(a.data,u,i),i+=a.data.length,a=a.next;return u},m}(),x&&x.inspect&&x.inspect.custom&&(L.exports.prototype[x.inspect.custom]=function(){var m=x.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(R,L,r){"use strict";var y=R("process-nextick-args");function f(m,p){var d=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(p?p(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(A,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(i){!p&&i?(y.nextTick(A,d,i),d._writableState&&(d._writableState.errorEmitted=!0)):p&&p(i)}),this)}function x(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function A(m,p){m.emit("error",p)}L.exports={destroy:f,undestroy:x}},{"process-nextick-args":207}],221:[function(R,L,r){"use strict";L.exports=R("events").EventEmitter},{events:192}],222:[function(R,L,r){L.exports=R("./readable").PassThrough},{"./readable":223}],223:[function(R,L,r){r=L.exports=R("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=R("./lib/_stream_writable.js"),r.Duplex=R("./lib/_stream_duplex.js"),r.Transform=R("./lib/_stream_transform.js"),r.PassThrough=R("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(R,L,r){L.exports=R("./readable").Transform},{"./readable":223}],225:[function(R,L,r){L.exports=R("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(R,L,r){var y=function(){return this}()||Function("return this")(),f=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,x=f&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,L.exports=R("./runtime"),f)y.regeneratorRuntime=x;else try{delete y.regeneratorRuntime}catch(A){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(R,L,r){!function(y){"use strict";var f=Object.prototype,x=f.hasOwnProperty,A,m=typeof Symbol=="function"?Symbol:{},p=m.iterator||"@@iterator",d=m.asyncIterator||"@@asyncIterator",u=m.toStringTag||"@@toStringTag",a=typeof L=="object",i=y.regeneratorRuntime;if(i){a&&(L.exports=i);return}i=y.regeneratorRuntime=a?L.exports:{};function t(X,F,j,K){var z=F&&F.prototype instanceof h?F:h,V=Object.create(z.prototype),Q=new M(K||[]);return V._invoke=w(X,j,Q),V}i.wrap=t;function s(X,F,j){try{return{type:"normal",arg:X.call(F,j)}}catch(K){return{type:"throw",arg:K}}}var e="suspendedStart",l="suspendedYield",n="executing",o="completed",c={};function h(){}function g(){}function v(){}var b={};b[p]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(U([])));E&&E!==f&&x.call(E,p)&&(b=E);var C=v.prototype=h.prototype=Object.create(b);g.prototype=C.constructor=v,v.constructor=g,v[u]=g.displayName="GeneratorFunction";function _(X){["next","throw","return"].forEach(function(F){X[F]=function(j){return this._invoke(F,j)}})}i.isGeneratorFunction=function(X){var F=typeof X=="function"&&X.constructor;return F?F===g||(F.displayName||F.name)==="GeneratorFunction":!1},i.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,v):(X.__proto__=v,u in X||(X[u]="GeneratorFunction")),X.prototype=Object.create(C),X},i.awrap=function(X){return{__await:X}};function T(X){function F(z,V,Q,G){var ee=s(X[z],X,V);if(ee.type==="throw")G(ee.arg);else{var se=ee.arg,ye=se.value;return ye&&typeof ye=="object"&&x.call(ye,"__await")?Promise.resolve(ye.__await).then(function(he){F("next",he,Q,G)},function(he){F("throw",he,Q,G)}):Promise.resolve(ye).then(function(he){se.value=he,Q(se)},G)}}var j;function K(z,V){function Q(){return new Promise(function(G,ee){F(z,V,G,ee)})}return j=j?j.then(Q,Q):Q()}this._invoke=K}_(T.prototype),T.prototype[d]=function(){return this},i.AsyncIterator=T,i.async=function(X,F,j,K){var z=new T(t(X,F,j,K));return i.isGeneratorFunction(F)?z:z.next().then(function(V){return V.done?V.value:z.next()})};function w(X,F,j){var K=e;return function(V,Q){if(K===n)throw new Error("Generator is already running");if(K===o){if(V==="throw")throw Q;return P()}for(j.method=V,j.arg=Q;;){var G=j.delegate;if(G){var ee=O(G,j);if(ee){if(ee===c)continue;return ee}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(K===e)throw K=o,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);K=n;var se=s(X,F,j);if(se.type==="normal"){if(K=j.done?o:l,se.arg===c)continue;return{value:se.arg,done:j.done}}else se.type==="throw"&&(K=o,j.method="throw",j.arg=se.arg)}}}function O(X,F){var j=X.iterator[F.method];if(j===A){if(F.delegate=null,F.method==="throw"){if(X.iterator.return&&(F.method="return",F.arg=A,O(X,F),F.method==="throw"))return c;F.method="throw",F.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var K=s(j,X.iterator,F.arg);if(K.type==="throw")return F.method="throw",F.arg=K.arg,F.delegate=null,c;var z=K.arg;if(!z)return F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,c;if(z.done)F[X.resultName]=z.value,F.next=X.nextLoc,F.method!=="return"&&(F.method="next",F.arg=A);else return z;return F.delegate=null,c}_(C),C[u]="Generator",C[p]=function(){return this},C.toString=function(){return"[object Generator]"};function I(X){var F={tryLoc:X[0]};1 in X&&(F.catchLoc=X[1]),2 in X&&(F.finallyLoc=X[2],F.afterLoc=X[3]),this.tryEntries.push(F)}function k(X){var F=X.completion||{};F.type="normal",delete F.arg,X.completion=F}function M(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(I,this),this.reset(!0)}i.keys=function(X){var F=[];for(var j in X)F.push(j);return F.reverse(),function K(){for(;F.length;){var z=F.pop();if(z in X)return K.value=z,K.done=!1,K}return K.done=!0,K}};function U(X){if(X){var F=X[p];if(F)return F.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var j=-1,K=function z(){for(;++j<X.length;)if(x.call(X,j))return z.value=X[j],z.done=!1,z;return z.value=A,z.done=!0,z};return K.next=K}}return{next:P}}i.values=U;function P(){return{value:A,done:!0}}M.prototype={constructor:M,reset:function(F){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(k),!F)for(var j in this)j.charAt(0)==="t"&&x.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=A)},stop:function(){this.done=!0;var F=this.tryEntries[0],j=F.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(F){if(this.done)throw F;var j=this;function K(se,ye){return Q.type="throw",Q.arg=F,j.next=se,ye&&(j.method="next",j.arg=A),!!ye}for(var z=this.tryEntries.length-1;z>=0;--z){var V=this.tryEntries[z],Q=V.completion;if(V.tryLoc==="root")return K("end");if(V.tryLoc<=this.prev){var G=x.call(V,"catchLoc"),ee=x.call(V,"finallyLoc");if(G&&ee){if(this.prev<V.catchLoc)return K(V.catchLoc,!0);if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return K(V.catchLoc,!0)}else if(ee){if(this.prev<V.finallyLoc)return K(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(F,j){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&x.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var V=z;break}}V&&(F==="break"||F==="continue")&&V.tryLoc<=j&&j<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=F,Q.arg=j,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(F,j){if(F.type==="throw")throw F.arg;return F.type==="break"||F.type==="continue"?this.next=F.arg:F.type==="return"?(this.rval=this.arg=F.arg,this.method="return",this.next="end"):F.type==="normal"&&j&&(this.next=j),c},finish:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.finallyLoc===F)return this.complete(K.completion,K.afterLoc),k(K),c}},catch:function(F){for(var j=this.tryEntries.length-1;j>=0;--j){var K=this.tryEntries[j];if(K.tryLoc===F){var z=K.completion;if(z.type==="throw"){var V=z.arg;k(K)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(F,j,K){return this.delegate={iterator:U(F),resultName:j,nextLoc:K},this.method==="next"&&(this.arg=A),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(R,L,r){var y=R("buffer"),f=y.Buffer;function x(m,p){for(var d in m)p[d]=m[d]}f.from&&f.alloc&&f.allocUnsafe&&f.allocUnsafeSlow?L.exports=y:(x(y,r),r.Buffer=A);function A(m,p,d){return f(m,p,d)}x(f,A),A.from=function(m,p,d){if(typeof m=="number")throw new TypeError("Argument must not be a number");return f(m,p,d)},A.alloc=function(m,p,d){if(typeof m!="number")throw new TypeError("Argument must be a number");var u=f(m);return p!==void 0?typeof d=="string"?u.fill(p,d):u.fill(p):u.fill(0),u},A.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return f(m)},A.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/core-js/string/from-code-point"),x=l(f),A=R("babel-runtime/core-js/json/stringify"),m=l(A),p=R("babel-runtime/helpers/typeof"),d=l(p),u=R("babel-runtime/core-js/object/define-property"),a=l(u),i=R("babel-runtime/core-js/object/keys"),t=l(i),s=R("babel-runtime/core-js/object/create"),e=l(s);function l(n){return n&&n.__esModule?n:{default:n}}(function(n){n.parser=function(Y,$){return new c(Y,$)},n.SAXParser=c,n.SAXStream=C,n.createStream=E,n.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function c(Y,$){if(!(this instanceof c))return new c(Y,$);var de=this;g(de),de.q=de.c="",de.bufferCheckPosition=n.MAX_BUFFER_LENGTH,de.opt=$||{},de.opt.lowercase=de.opt.lowercase||de.opt.lowercasetags,de.looseCase=de.opt.lowercase?"toLowerCase":"toUpperCase",de.tags=[],de.closed=de.closedRoot=de.sawRoot=!1,de.tag=de.error=null,de.strict=!!Y,de.noscript=!!(Y||de.opt.noscript),de.state=V.BEGIN,de.strictEntities=de.opt.strictEntities,de.ENTITIES=de.strictEntities?(0,e.default)(n.XML_ENTITIES):(0,e.default)(n.ENTITIES),de.attribList=[],de.opt.xmlns&&(de.ns=(0,e.default)(I)),de.trackPosition=de.opt.position!==!1,de.trackPosition&&(de.position=de.line=de.column=0),G(de,"onready")}e.default||(Object.create=function(Y){function $(){}$.prototype=Y;var de=new $;return de}),t.default||(Object.keys=function(Y){var $=[];for(var de in Y)Y.hasOwnProperty(de)&&$.push(de);return $});function h(Y){for(var $=Math.max(n.MAX_BUFFER_LENGTH,10),de=0,we=0,Ce=o.length;we<Ce;we++){var Se=Y[o[we]].length;if(Se>$)switch(o[we]){case"textNode":se(Y);break;case"cdata":ee(Y,"oncdata",Y.cdata),Y.cdata="";break;case"script":ee(Y,"onscript",Y.script),Y.script="";break;default:he(Y,"Max buffer length exceeded: "+o[we])}de=Math.max(de,Se)}var le=n.MAX_BUFFER_LENGTH-de;Y.bufferCheckPosition=le+Y.position}function g(Y){for(var $=0,de=o.length;$<de;$++)Y[o[$]]=""}function v(Y){se(Y),Y.cdata!==""&&(ee(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(ee(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){ke(this)},write:J,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){v(this)}};var b;try{b=R("stream").Stream}catch(Y){b=function(){}}var S=n.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function E(Y,$){return new C(Y,$)}function C(Y,$){if(!(this instanceof C))return new C(Y,$);b.apply(this),this._parser=new c(Y,$),this.writable=!0,this.readable=!0;var de=this;this._parser.onend=function(){de.emit("end")},this._parser.onerror=function(we){de.emit("error",we),de._parser.error=null},this._decoder=null,S.forEach(function(we){(0,a.default)(de,"on"+we,{get:function(){return de._parser["on"+we]},set:function(Se){if(!Se)return de.removeAllListeners(we),de._parser["on"+we]=Se,Se;de.on(we,Se)},enumerable:!0,configurable:!1})})}C.prototype=(0,e.default)(b.prototype,{constructor:{value:C}}),C.prototype.write=function(Y){if(typeof y=="function"&&typeof y.isBuffer=="function"&&y.isBuffer(Y)){if(!this._decoder){var $=R("string_decoder").StringDecoder;this._decoder=new $("utf8")}Y=this._decoder.write(Y)}return this._parser.write(Y.toString()),this.emit("data",Y),!0},C.prototype.end=function(Y){return Y&&Y.length&&this.write(Y),this._parser.end(),!0},C.prototype.on=function(Y,$){var de=this;return!de._parser["on"+Y]&&S.indexOf(Y)!==-1&&(de._parser["on"+Y]=function(){var we=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);we.splice(0,0,Y),de.emit.apply(de,we)}),b.prototype.on.call(de,Y,$)};var _="[CDATA[",T="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:O},k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,P=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Y){return Y===" "||Y===`
`||Y==="\r"||Y===" "}function F(Y){return Y==='"'||Y==="'"}function j(Y){return Y===">"||X(Y)}function K(Y,$){return Y.test($)}function z(Y,$){return!K(Y,$)}var V=0;n.STATE={BEGIN:V++,BEGIN_WHITESPACE:V++,TEXT:V++,TEXT_ENTITY:V++,OPEN_WAKA:V++,SGML_DECL:V++,SGML_DECL_QUOTED:V++,DOCTYPE:V++,DOCTYPE_QUOTED:V++,DOCTYPE_DTD:V++,DOCTYPE_DTD_QUOTED:V++,COMMENT_STARTING:V++,COMMENT:V++,COMMENT_ENDING:V++,COMMENT_ENDED:V++,CDATA:V++,CDATA_ENDING:V++,CDATA_ENDING_2:V++,PROC_INST:V++,PROC_INST_BODY:V++,PROC_INST_ENDING:V++,OPEN_TAG:V++,OPEN_TAG_SLASH:V++,ATTRIB:V++,ATTRIB_NAME:V++,ATTRIB_NAME_SAW_WHITE:V++,ATTRIB_VALUE:V++,ATTRIB_VALUE_QUOTED:V++,ATTRIB_VALUE_CLOSED:V++,ATTRIB_VALUE_UNQUOTED:V++,ATTRIB_VALUE_ENTITY_Q:V++,ATTRIB_VALUE_ENTITY_U:V++,CLOSE_TAG:V++,CLOSE_TAG_SAW_WHITE:V++,SCRIPT:V++,SCRIPT_ENDING:V++},n.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,t.default)(n.ENTITIES).forEach(function(Y){var $=n.ENTITIES[Y],de=typeof $=="number"?String.fromCharCode($):$;n.ENTITIES[Y]=de});for(var Q in n.STATE)n.STATE[n.STATE[Q]]=Q;V=n.STATE;function G(Y,$,de){Y[$]&&Y[$](de)}function ee(Y,$,de){Y.textNode&&se(Y),G(Y,$,de)}function se(Y){Y.textNode=ye(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function ye(Y,$){return Y.trim&&($=$.trim()),Y.normalize&&($=$.replace(/\s+/g," ")),$}function he(Y,$){return se(Y),Y.trackPosition&&($+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),$=new Error($),Y.error=$,G(Y,"onerror",$),Y}function ke(Y){return Y.sawRoot&&!Y.closedRoot&&Pe(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&he(Y,"Unexpected end"),se(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Pe(Y,$){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&he(Y,$)}function Ue(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var $=Y.tags[Y.tags.length-1]||Y,de=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(de.ns=$.ns),Y.attribList.length=0,ee(Y,"onopentagstart",de)}function $e(Y,$){var de=Y.indexOf(":"),we=de<0?["",Y]:Y.split(":"),Ce=we[0],Se=we[1];return $&&Y==="xmlns"&&(Ce="xmlns",Se=""),{prefix:Ce,local:Se}}function Ge(Y){if(Y.strict||(Y.attribName=Y.attribName[Y.looseCase]()),Y.attribList.indexOf(Y.attribName)!==-1||Y.tag.attributes.hasOwnProperty(Y.attribName)){Y.attribName=Y.attribValue="";return}if(Y.opt.xmlns){var $=$e(Y.attribName,!0),de=$.prefix,we=$.local;if(de==="xmlns")if(we==="xml"&&Y.attribValue!==w)Pe(Y,"xml: prefix must be bound to "+w+`
Actual: `+Y.attribValue);else if(we==="xmlns"&&Y.attribValue!==O)Pe(Y,"xmlns: prefix must be bound to "+O+`
Actual: `+Y.attribValue);else{var Ce=Y.tag,Se=Y.tags[Y.tags.length-1]||Y;Ce.ns===Se.ns&&(Ce.ns=(0,e.default)(Se.ns)),Ce.ns[we]=Y.attribValue}Y.attribList.push([Y.attribName,Y.attribValue])}else Y.tag.attributes[Y.attribName]=Y.attribValue,ee(Y,"onattribute",{name:Y.attribName,value:Y.attribValue});Y.attribName=Y.attribValue=""}function ht(Y,$){if(Y.opt.xmlns){var de=Y.tag,we=$e(Y.tagName);de.prefix=we.prefix,de.local=we.local,de.uri=de.ns[we.prefix]||"",de.prefix&&!de.uri&&(Pe(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),de.uri=we.prefix);var Ce=Y.tags[Y.tags.length-1]||Y;de.ns&&Ce.ns!==de.ns&&(0,t.default)(de.ns).forEach(function(Ht){ee(Y,"onopennamespace",{prefix:Ht,uri:de.ns[Ht]})});for(var Se=0,le=Y.attribList.length;Se<le;Se++){var pe=Y.attribList[Se],_e=pe[0],tt=pe[1],gt=$e(_e,!0),ct=gt.prefix,je=gt.local,Zt=ct===""?"":de.ns[ct]||"",ut={name:_e,value:tt,prefix:ct,local:je,uri:Zt};ct&&ct!=="xmlns"&&!Zt&&(Pe(Y,"Unbound namespace prefix: "+(0,m.default)(ct)),ut.uri=ct),Y.tag.attributes[_e]=ut,ee(Y,"onattribute",ut)}Y.attribList.length=0}Y.tag.isSelfClosing=!!$,Y.sawRoot=!0,Y.tags.push(Y.tag),ee(Y,"onopentag",Y.tag),$||(!Y.noscript&&Y.tagName.toLowerCase()==="script"?Y.state=V.SCRIPT:Y.state=V.TEXT,Y.tag=null,Y.tagName=""),Y.attribName=Y.attribValue="",Y.attribList.length=0}function Fe(Y){if(!Y.tagName){Pe(Y,"Weird empty close tag."),Y.textNode+="</>",Y.state=V.TEXT;return}if(Y.script){if(Y.tagName!=="script"){Y.script+="</"+Y.tagName+">",Y.tagName="",Y.state=V.SCRIPT;return}ee(Y,"onscript",Y.script),Y.script=""}var $=Y.tags.length,de=Y.tagName;Y.strict||(de=de[Y.looseCase]());for(var we=de;$--;){var Ce=Y.tags[$];if(Ce.name!==we)Pe(Y,"Unexpected close tag");else break}if($<0){Pe(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=de;for(var Se=Y.tags.length;Se-- >$;){var le=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,ee(Y,"onclosetag",Y.tagName);var pe={};for(var _e in le.ns)pe[_e]=le.ns[_e];var tt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&le.ns!==tt.ns&&(0,t.default)(le.ns).forEach(function(gt){var ct=le.ns[gt];ee(Y,"onclosenamespace",{prefix:gt,uri:ct})})}$===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function oe(Y){var $=Y.entity,de=$.toLowerCase(),we,Ce="";return Y.ENTITIES[$]?Y.ENTITIES[$]:Y.ENTITIES[de]?Y.ENTITIES[de]:($=de,$.charAt(0)==="#"&&($.charAt(1)==="x"?($=$.slice(2),we=parseInt($,16),Ce=we.toString(16)):($=$.slice(1),we=parseInt($,10),Ce=we.toString(10))),$=$.replace(/^0+/,""),isNaN(we)||Ce.toLowerCase()!==$?(Pe(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,x.default)(we))}function rt(Y,$){$==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X($)||(Pe(Y,"Non-whitespace before first tag."),Y.textNode=$,Y.state=V.TEXT)}function fe(Y,$){var de="";return $<Y.length&&(de=Y.charAt($)),de}function J(Y){var $=this;if(this.error)throw this.error;if($.closed)return he($,"Cannot write after close. Assign an onready handler.");if(Y===null)return ke($);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var de=0,we="";!(we=fe(Y,de++),$.c=we,!we);){$.trackPosition&&($.position++,we===`
`?($.line++,$.column=0):$.column++);switch($.state){case V.BEGIN:if($.state=V.BEGIN_WHITESPACE,we==="\uFEFF")continue;rt($,we);continue;case V.BEGIN_WHITESPACE:rt($,we);continue;case V.TEXT:if($.sawRoot&&!$.closedRoot){for(var Ce=de-1;we&&we!=="<"&&we!=="&";)we=fe(Y,de++),we&&$.trackPosition&&($.position++,we===`
`?($.line++,$.column=0):$.column++);$.textNode+=Y.substring(Ce,de-1)}we==="<"&&!($.sawRoot&&$.closedRoot&&!$.strict)?($.state=V.OPEN_WAKA,$.startTagPosition=$.position):(!X(we)&&(!$.sawRoot||$.closedRoot)&&Pe($,"Text data outside of root node."),we==="&"?$.state=V.TEXT_ENTITY:$.textNode+=we);continue;case V.SCRIPT:we==="<"?$.state=V.SCRIPT_ENDING:$.script+=we;continue;case V.SCRIPT_ENDING:we==="/"?$.state=V.CLOSE_TAG:($.script+="<"+we,$.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(we==="!")$.state=V.SGML_DECL,$.sgmlDecl="";else if(!X(we))if(K(k,we))$.state=V.OPEN_TAG,$.tagName=we;else if(we==="/")$.state=V.CLOSE_TAG,$.tagName="";else if(we==="?")$.state=V.PROC_INST,$.procInstName=$.procInstBody="";else{if(Pe($,"Unencoded <"),$.startTagPosition+1<$.position){var Se=$.position-$.startTagPosition;we=new Array(Se).join(" ")+we}$.textNode+="<"+we,$.state=V.TEXT}continue;case V.SGML_DECL:($.sgmlDecl+we).toUpperCase()===_?(ee($,"onopencdata"),$.state=V.CDATA,$.sgmlDecl="",$.cdata=""):$.sgmlDecl+we==="--"?($.state=V.COMMENT,$.comment="",$.sgmlDecl=""):($.sgmlDecl+we).toUpperCase()===T?($.state=V.DOCTYPE,($.doctype||$.sawRoot)&&Pe($,"Inappropriately located doctype declaration"),$.doctype="",$.sgmlDecl=""):we===">"?(ee($,"onsgmldeclaration",$.sgmlDecl),$.sgmlDecl="",$.state=V.TEXT):(F(we)&&($.state=V.SGML_DECL_QUOTED),$.sgmlDecl+=we);continue;case V.SGML_DECL_QUOTED:we===$.q&&($.state=V.SGML_DECL,$.q=""),$.sgmlDecl+=we;continue;case V.DOCTYPE:we===">"?($.state=V.TEXT,ee($,"ondoctype",$.doctype),$.doctype=!0):($.doctype+=we,we==="["?$.state=V.DOCTYPE_DTD:F(we)&&($.state=V.DOCTYPE_QUOTED,$.q=we));continue;case V.DOCTYPE_QUOTED:$.doctype+=we,we===$.q&&($.q="",$.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:$.doctype+=we,we==="]"?$.state=V.DOCTYPE:F(we)&&($.state=V.DOCTYPE_DTD_QUOTED,$.q=we);continue;case V.DOCTYPE_DTD_QUOTED:$.doctype+=we,we===$.q&&($.state=V.DOCTYPE_DTD,$.q="");continue;case V.COMMENT:we==="-"?$.state=V.COMMENT_ENDING:$.comment+=we;continue;case V.COMMENT_ENDING:we==="-"?($.state=V.COMMENT_ENDED,$.comment=ye($.opt,$.comment),$.comment&&ee($,"oncomment",$.comment),$.comment=""):($.comment+="-"+we,$.state=V.COMMENT);continue;case V.COMMENT_ENDED:we!==">"?(Pe($,"Malformed comment"),$.comment+="--"+we,$.state=V.COMMENT):$.state=V.TEXT;continue;case V.CDATA:we==="]"?$.state=V.CDATA_ENDING:$.cdata+=we;continue;case V.CDATA_ENDING:we==="]"?$.state=V.CDATA_ENDING_2:($.cdata+="]"+we,$.state=V.CDATA);continue;case V.CDATA_ENDING_2:we===">"?($.cdata&&ee($,"oncdata",$.cdata),ee($,"onclosecdata"),$.cdata="",$.state=V.TEXT):we==="]"?$.cdata+="]":($.cdata+="]]"+we,$.state=V.CDATA);continue;case V.PROC_INST:we==="?"?$.state=V.PROC_INST_ENDING:X(we)?$.state=V.PROC_INST_BODY:$.procInstName+=we;continue;case V.PROC_INST_BODY:if(!$.procInstBody&&X(we))continue;we==="?"?$.state=V.PROC_INST_ENDING:$.procInstBody+=we;continue;case V.PROC_INST_ENDING:we===">"?(ee($,"onprocessinginstruction",{name:$.procInstName,body:$.procInstBody}),$.procInstName=$.procInstBody="",$.state=V.TEXT):($.procInstBody+="?"+we,$.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:K(M,we)?$.tagName+=we:(Ue($),we===">"?ht($):we==="/"?$.state=V.OPEN_TAG_SLASH:(X(we)||Pe($,"Invalid character in tag name"),$.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:we===">"?(ht($,!0),Fe($)):(Pe($,"Forward-slash in opening tag not followed by >"),$.state=V.ATTRIB);continue;case V.ATTRIB:if(X(we))continue;we===">"?ht($):we==="/"?$.state=V.OPEN_TAG_SLASH:K(k,we)?($.attribName=we,$.attribValue="",$.state=V.ATTRIB_NAME):Pe($,"Invalid attribute name");continue;case V.ATTRIB_NAME:we==="="?$.state=V.ATTRIB_VALUE:we===">"?(Pe($,"Attribute without value"),$.attribValue=$.attribName,Ge($),ht($)):X(we)?$.state=V.ATTRIB_NAME_SAW_WHITE:K(M,we)?$.attribName+=we:Pe($,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(we==="=")$.state=V.ATTRIB_VALUE;else{if(X(we))continue;Pe($,"Attribute without value"),$.tag.attributes[$.attribName]="",$.attribValue="",ee($,"onattribute",{name:$.attribName,value:""}),$.attribName="",we===">"?ht($):K(k,we)?($.attribName=we,$.state=V.ATTRIB_NAME):(Pe($,"Invalid attribute name"),$.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(we))continue;F(we)?($.q=we,$.state=V.ATTRIB_VALUE_QUOTED):(Pe($,"Unquoted attribute value"),$.state=V.ATTRIB_VALUE_UNQUOTED,$.attribValue=we);continue;case V.ATTRIB_VALUE_QUOTED:if(we!==$.q){we==="&"?$.state=V.ATTRIB_VALUE_ENTITY_Q:$.attribValue+=we;continue}Ge($),$.q="",$.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(we)?$.state=V.ATTRIB:we===">"?ht($):we==="/"?$.state=V.OPEN_TAG_SLASH:K(k,we)?(Pe($,"No whitespace between attributes"),$.attribName=we,$.attribValue="",$.state=V.ATTRIB_NAME):Pe($,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!j(we)){we==="&"?$.state=V.ATTRIB_VALUE_ENTITY_U:$.attribValue+=we;continue}Ge($),we===">"?ht($):$.state=V.ATTRIB;continue;case V.CLOSE_TAG:if($.tagName)we===">"?Fe($):K(M,we)?$.tagName+=we:$.script?($.script+="</"+$.tagName,$.tagName="",$.state=V.SCRIPT):(X(we)||Pe($,"Invalid tagname in closing tag"),$.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(we))continue;z(k,we)?$.script?($.script+="</"+we,$.state=V.SCRIPT):Pe($,"Invalid tagname in closing tag."):$.tagName=we}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(we))continue;we===">"?Fe($):Pe($,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var le,pe;switch($.state){case V.TEXT_ENTITY:le=V.TEXT,pe="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:le=V.ATTRIB_VALUE_QUOTED,pe="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:le=V.ATTRIB_VALUE_UNQUOTED,pe="attribValue";break}we===";"?($[pe]+=oe($),$.entity="",$.state=le):K($.entity.length?P:U,we)?$.entity+=we:(Pe($,"Invalid character in entity name"),$[pe]+="&"+$.entity+we,$.entity="",$.state=le);continue;default:throw new Error($,"Unknown state: "+$.state)}}return $.position>=$.bufferCheckPosition&&h($),$}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */x.default||function(){var Y=String.fromCharCode,$=Math.floor,de=function(){var Ce=16384,Se=[],le,pe,_e=-1,tt=arguments.length;if(!tt)return"";for(var gt="";++_e<tt;){var ct=Number(arguments[_e]);if(!isFinite(ct)||ct<0||ct>1114111||$(ct)!==ct)throw RangeError("Invalid code point: "+ct);ct<=65535?Se.push(ct):(ct-=65536,le=(ct>>10)+55296,pe=ct%1024+56320,Se.push(le,pe)),(_e+1===tt||Se.length>Ce)&&(gt+=Y.apply(null,Se),Se.length=0)}return gt};a.default?Object.defineProperty(String,"fromCodePoint",{value:de,configurable:!0,writable:!0}):String.fromCodePoint=de}()})(typeof r=="undefined"?(void 0).sax={}:r)}).call(this,R("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(R,L,r){L.exports=x;var y=R("events").EventEmitter,f=R("inherits");f(x,y),x.Readable=R("readable-stream/readable.js"),x.Writable=R("readable-stream/writable.js"),x.Duplex=R("readable-stream/duplex.js"),x.Transform=R("readable-stream/transform.js"),x.PassThrough=R("readable-stream/passthrough.js"),x.Stream=x;function x(){y.call(this)}x.prototype.pipe=function(A,m){var p=this;function d(l){A.writable&&(A.write(l)===!1&&p.pause&&p.pause())}p.on("data",d);function u(){p.readable&&p.resume&&p.resume()}A.on("drain",u),!A._isStdio&&(!m||m.end!==!1)&&(p.on("end",i),p.on("close",t));var a=!1;function i(){if(a)return;a=!0,A.end()}function t(){if(a)return;a=!0,typeof A.destroy=="function"&&A.destroy()}function s(l){if(e(),y.listenerCount(this,"error")===0)throw l}p.on("error",s),A.on("error",s);function e(){p.removeListener("data",d),A.removeListener("drain",u),p.removeListener("end",i),p.removeListener("close",t),p.removeListener("error",s),A.removeListener("error",s),p.removeListener("end",e),p.removeListener("close",e),A.removeListener("close",e)}return p.on("end",e),p.on("close",e),A.on("close",e),A.emit("pipe",p),A}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(R,L,r){(function(y){var f=R("./lib/request"),x=R("./lib/response"),A=R("xtend"),m=R("builtin-status-codes"),p=R("url"),d=r;d.request=function(u,a){typeof u=="string"?u=p.parse(u):u=A(u);var i=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=u.protocol||i,s=u.hostname||u.host,e=u.port,l=u.path||"/";s&&s.indexOf(":")!==-1&&(s="["+s+"]"),u.url=(s?t+"//"+s:"")+(e?":"+e:"")+l,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var n=new f(u);return a&&n.on("response",a),n},d.get=function(a,i){var t=d.request(a,i);return t.end(),t},d.ClientRequest=f,d.IncomingMessage=x.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=m,d.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(R,L,r){(function(y){"use strict";r.fetch=d(y.fetch)&&d(y.ReadableStream),r.writableStream=d(y.WritableStream),r.abortController=d(y.AbortController),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(u){}var f;function x(){if(f!==void 0)return f;if(y.XMLHttpRequest){f=new y.XMLHttpRequest;try{f.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(u){f=null}}else f=null;return f}function A(u){var a=x();if(!a)return!1;try{return a.responseType=u,a.responseType===u}catch(i){}return!1}var m=typeof y.ArrayBuffer!="undefined",p=m&&d(y.ArrayBuffer.prototype.slice);r.arraybuffer=r.fetch||m&&A("arraybuffer"),r.msstream=!r.fetch&&p&&A("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&m&&A("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||(x()?d(x().overrideMimeType):!1),r.vbArray=d(y.VBArray);function d(u){return typeof u=="function"}f=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(R,L,r){(function(y,f,x){"use strict";var A=R("babel-runtime/core-js/object/keys"),m=p(A);function p(h){return h&&h.__esModule?h:{default:h}}var d=R("./capability"),u=R("inherits"),a=R("./response"),i=R("readable-stream"),t=R("to-arraybuffer"),s=a.IncomingMessage,e=a.readyStates;function l(h,g){return d.fetch&&g?"fetch":d.mozchunkedarraybuffer?"moz-chunked-arraybuffer":d.msstream?"ms-stream":d.arraybuffer&&h?"arraybuffer":d.vbArray&&h?"text:vbarray":"text"}var n=L.exports=function(h){var g=this;i.Writable.call(g),g._opts=h,g._body=[],g._headers={},h.auth&&g.setHeader("Authorization","Basic "+new x(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(S){g.setHeader(S,h.headers[S])});var v,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,v=!0;else if(h.mode==="prefer-streaming")v=!1;else if(h.mode==="allow-wrong-content-type")v=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")v=!0;else throw new Error("Invalid value for opts.mode");g._mode=l(v,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};u(n,i.Writable),n.prototype.setHeader=function(h,g){var v=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;v._headers[b]={name:h,value:g}},n.prototype.getHeader=function(h){var g=this._headers[h.toLowerCase()];return g?g.value:null},n.prototype.removeHeader=function(h){var g=this;delete g._headers[h.toLowerCase()]},n.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var g=h._opts,v=h._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(d.arraybuffer?b=t(x.concat(h._body)):d.blobConstructor?b=new f.Blob(h._body.map(function(w){return t(w)}),{type:(v["content-type"]||{}).value||""}):b=x.concat(h._body).toString());var S=[];if((0,m.default)(v).forEach(function(w){var O=v[w].name,I=v[w].value;Array.isArray(I)?I.forEach(function(k){S.push([O,k])}):S.push([O,I])}),h._mode==="fetch"){var E=null,C=null;if(d.abortController){var _=new AbortController;E=_.signal,h._fetchAbortController=_,"requestTimeout"in g&&g.requestTimeout!==0&&(h._fetchTimer=f.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},g.requestTimeout))}f.fetch(h._opts.url,{method:h._opts.method,headers:S,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:E}).then(function(w){h._fetchResponse=w,h._connect()},function(w){f.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",w)})}else{var T=h._xhr=new f.XMLHttpRequest;try{T.open(h._opts.method,h._opts.url,!0)}catch(w){y.nextTick(function(){h.emit("error",w)});return}"responseType"in T&&(T.responseType=h._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(T.timeout=g.requestTimeout,T.ontimeout=function(){h.emit("requestTimeout")}),S.forEach(function(w){T.setRequestHeader(w[0],w[1])}),h._response=null,T.onreadystatechange=function(){switch(T.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){h._onXHRProgress()}),T.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{T.send(b)}catch(w){y.nextTick(function(){h.emit("error",w)});return}}};function o(h){try{var g=h.status;return g!==null&&g!==0}catch(v){return!1}}n.prototype._onXHRProgress=function(){var h=this;if(!o(h._xhr)||h._destroyed)return;h._response||h._connect(),h._response._onXHRProgress()},n.prototype._connect=function(){var h=this;if(h._destroyed)return;h._response=new s(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(g){h.emit("error",g)}),h.emit("response",h._response)},n.prototype._write=function(h,g,v){var b=this;b._body.push(h),v()},n.prototype.abort=n.prototype.destroy=function(){var h=this;h._destroyed=!0,f.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},n.prototype.end=function(h,g,v){var b=this;typeof h=="function"&&(v=h,h=void 0),i.Writable.prototype.end.call(b,h,g,v)},n.prototype.flushHeaders=function(){},n.prototype.setTimeout=function(){},n.prototype.setNoDelay=function(){},n.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(R,L,r){(function(y,f,x){"use strict";var A=R("babel-runtime/core-js/promise"),m=p(A);function p(s){return s&&s.__esModule?s:{default:s}}var d=R("./capability"),u=R("inherits"),a=R("readable-stream"),i=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=r.IncomingMessage=function(s,e,l,n){var o=this;if(a.Readable.call(o),o._mode=l,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){y.nextTick(function(){o.emit("close")})}),l==="fetch"){var c=function E(){g.read().then(function(C){if(o._destroyed)return;if(C.done){f.clearTimeout(n),o.push(null);return}o.push(new x(C.value)),E()}).catch(function(C){f.clearTimeout(n),o._destroyed||o.emit("error",C)})};if(o._fetchResponse=e,o.url=e.url,o.statusCode=e.status,o.statusMessage=e.statusText,e.headers.forEach(function(E,C){o.headers[C.toLowerCase()]=E,o.rawHeaders.push(C,E)}),d.writableStream){var h=new WritableStream({write:function(C){return new m.default(function(_,T){o._destroyed?T():o.push(new x(C))?_():o._resumeFetch=_})},close:function(){f.clearTimeout(n),o._destroyed||o.push(null)},abort:function(C){o._destroyed||o.emit("error",C)}});try{e.body.pipeTo(h).catch(function(E){f.clearTimeout(n),o._destroyed||o.emit("error",E)});return}catch(E){}}var g=e.body.getReader();c()}else{o._xhr=s,o._pos=0,o.url=s.responseURL,o.statusCode=s.status,o.statusMessage=s.statusText;var v=s.getAllResponseHeaders().split(/\r?\n/);if(v.forEach(function(E){var C=E.match(/^([^:]+):\s*(.*)/);if(C){var _=C[1].toLowerCase();_==="set-cookie"?(o.headers[_]===void 0&&(o.headers[_]=[]),o.headers[_].push(C[2])):o.headers[_]!==void 0?o.headers[_]+=", "+C[2]:o.headers[_]=C[2],o.rawHeaders.push(C[1],C[2])}}),o._charset="x-user-defined",!d.overrideMimeType){var b=o.rawHeaders["mime-type"];if(b){var S=b.match(/;\s*charset=([^;])(;|$)/);S&&(o._charset=S[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};u(t,a.Readable),t.prototype._read=function(){var s=this,e=s._resumeFetch;e&&(s._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var s=this,e=s._xhr,l=null;switch(s._mode){case"text:vbarray":if(e.readyState!==i.DONE)break;try{l=new f.VBArray(e.responseBody).toArray()}catch(g){}if(l!==null){s.push(new x(l));break}case"text":try{l=e.responseText}catch(g){s._mode="text:vbarray";break}if(l.length>s._pos){var n=l.substr(s._pos);if(s._charset==="x-user-defined"){for(var o=new x(n.length),c=0;c<n.length;c++)o[c]=n.charCodeAt(c)&255;s.push(o)}else s.push(n,s._charset);s._pos=l.length}break;case"arraybuffer":if(e.readyState!==i.DONE||!e.response)break;l=e.response,s.push(new x(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==i.LOADING||!l)break;s.push(new x(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==i.LOADING)break;var h=new f.MSStreamReader;h.onprogress=function(){h.result.byteLength>s._pos&&(s.push(new x(new Uint8Array(h.result.slice(s._pos)))),s._pos=h.result.byteLength)},h.onload=function(){s.push(null)},h.readAsArrayBuffer(l);break}s._xhr.readyState===i.DONE&&s._mode!=="ms-stream"&&s.push(null)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},R("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(R,L,r){"use strict";var y=R("safe-buffer").Buffer,f=y.isEncoding||function(h){h=""+h;switch(h&&h.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function x(h){if(!h)return"utf8";for(var g;;)switch(h){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return h;default:if(g)return;h=(""+h).toLowerCase(),g=!0}}function A(h){var g=x(h);if(typeof g!="string"&&(y.isEncoding===f||!f(h)))throw new Error("Unknown encoding: "+h);return g||h}r.StringDecoder=m;function m(h){this.encoding=A(h);var g;switch(this.encoding){case"utf16le":this.text=s,this.end=e,g=4;break;case"utf8":this.fillLast=a,g=4;break;case"base64":this.text=l,this.end=n,g=3;break;default:this.write=o,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(g)}m.prototype.write=function(h){if(h.length===0)return"";var g,v;if(this.lastNeed){if(g=this.fillLast(h),g===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<h.length?g?g+this.text(h,v):this.text(h,v):g||""},m.prototype.end=t,m.prototype.text=i,m.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function p(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function d(h,g,v){var b=g.length-1;if(b<v)return 0;var S=p(g[b]);return S>=0?(S>0&&(h.lastNeed=S-1),S):--b<v||S===-2?0:(S=p(g[b]),S>=0?(S>0&&(h.lastNeed=S-2),S):--b<v||S===-2?0:(S=p(g[b]),S>=0?(S>0&&(S===2?S=0:h.lastNeed=S-3),S):0))}function u(h,g,v){if((g[0]&192)!==128)return h.lastNeed=0,"\uFFFD";if(h.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return h.lastNeed=1,"\uFFFD";if(h.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return h.lastNeed=2,"\uFFFD"}}function a(h){var g=this.lastTotal-this.lastNeed,v=u(this,h,g);if(v!==void 0)return v;if(this.lastNeed<=h.length)return h.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,g,0,h.length),this.lastNeed-=h.length}function i(h,g){var v=d(this,h,g);if(!this.lastNeed)return h.toString("utf8",g);this.lastTotal=v;var b=h.length-(v-this.lastNeed);return h.copy(this.lastChar,0,b),h.toString("utf8",g,b)}function t(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+"\uFFFD":g}function s(h,g){if((h.length-g)%2===0){var v=h.toString("utf16le",g);if(v){var b=v.charCodeAt(v.length-1);if(b>=55296&&b<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",g,h.length-1)}function e(h){var g=h&&h.length?this.write(h):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,v)}return g}function l(h,g){var v=(h.length-g)%3;return v===0?h.toString("base64",g):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",g,h.length-v))}function n(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function o(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(R,L,r){(function(y,f){var x=R("process/browser.js").nextTick,A=Function.prototype.apply,m=Array.prototype.slice,p={},d=0;r.setTimeout=function(){return new u(A.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(A.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(a){a.close()};function u(a,i){this._id=a,this._clearFn=i}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(a,i){clearTimeout(a._idleTimeoutId),a._idleTimeout=i},r.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},r._unrefActive=r.active=function(a){clearTimeout(a._idleTimeoutId);var i=a._idleTimeout;i>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},i))},r.setImmediate=typeof y=="function"?y:function(a){var i=d++,t=arguments.length<2?!1:m.call(arguments,1);return p[i]=!0,x(function(){p[i]&&(t?a.apply(null,t):a.call(null),r.clearImmediate(i))}),i},r.clearImmediate=typeof f=="function"?f:function(a){delete p[a]}}).call(this,R("timers").setImmediate,R("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(R,L,r){var y=R("buffer").Buffer;L.exports=function(f){if(f instanceof Uint8Array){if(f.byteOffset===0&&f.byteLength===f.buffer.byteLength)return f.buffer;if(typeof f.buffer.slice=="function")return f.buffer.slice(f.byteOffset,f.byteOffset+f.byteLength)}if(y.isBuffer(f)){for(var x=new Uint8Array(f.length),A=f.length,m=0;m<A;m++)x[m]=f[m];return x.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(R,L,r){"use strict";var y=R("punycode"),f=R("./util");r.parse=g,r.resolve=b,r.resolveObject=S,r.format=v,r.Url=x;function x(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var A=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],u=["{","}","|","\\","^","`"].concat(d),a=["'"].concat(u),i=["%","/","?",";","#"].concat(a),t=["/","?","#"],s=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,n={javascript:!0,"javascript:":!0},o={javascript:!0,"javascript:":!0},c={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h=R("querystring");function g(E,C,_){if(E&&f.isObject(E)&&E instanceof x)return E;var T=new x;return T.parse(E,C,_),T}x.prototype.parse=function(E,C,_){if(!f.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var T=E.indexOf("?"),w=T!==-1&&T<E.indexOf("#")?"?":"#",O=E.split(w),I=/\\/g;O[0]=O[0].replace(I,"/"),E=O.join(w);var k=E;if(k=k.trim(),!_&&E.split("#").length===1){var M=p.exec(k);if(M)return this.path=k,this.href=k,this.pathname=M[1],M[2]?(this.search=M[2],C?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):C&&(this.search="",this.query={}),this}var U=A.exec(k);if(U){U=U[0];var P=U.toLowerCase();this.protocol=P,k=k.substr(U.length)}if(_||U||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=k.substr(0,2)==="//";X&&!(U&&o[U])&&(k=k.substr(2),this.slashes=!0)}if(!o[U]&&(X||U&&!c[U])){for(var F=-1,j=0;j<t.length;j++){var K=k.indexOf(t[j]);K!==-1&&(F===-1||K<F)&&(F=K)}var z,V;F===-1?V=k.lastIndexOf("@"):V=k.lastIndexOf("@",F),V!==-1&&(z=k.slice(0,V),k=k.slice(V+1),this.auth=decodeURIComponent(z)),F=-1;for(var j=0;j<i.length;j++){var K=k.indexOf(i[j]);K!==-1&&(F===-1||K<F)&&(F=K)}F===-1&&(F=k.length),this.host=k.slice(0,F),k=k.slice(F),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var G=this.hostname.split(/\./),j=0,ee=G.length;j<ee;j++){var se=G[j];if(!se)continue;if(!se.match(e)){for(var ye="",he=0,ke=se.length;he<ke;he++)se.charCodeAt(he)>127?ye+="x":ye+=se[he];if(!ye.match(e)){var Pe=G.slice(0,j),Ue=G.slice(j+1),$e=se.match(l);$e&&(Pe.push($e[1]),Ue.unshift($e[2])),Ue.length&&(k="/"+Ue.join(".")+k),this.hostname=Pe.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ge=this.port?":"+this.port:"",ht=this.hostname||"";this.host=ht+Ge,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!n[P])for(var j=0,ee=a.length;j<ee;j++){var Fe=a[j];if(k.indexOf(Fe)===-1)continue;var oe=encodeURIComponent(Fe);oe===Fe&&(oe=escape(Fe)),k=k.split(Fe).join(oe)}var rt=k.indexOf("#");rt!==-1&&(this.hash=k.substr(rt),k=k.slice(0,rt));var fe=k.indexOf("?");if(fe!==-1?(this.search=k.substr(fe),this.query=k.substr(fe+1),C&&(this.query=h.parse(this.query)),k=k.slice(0,fe)):C&&(this.search="",this.query={}),k&&(this.pathname=k),c[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ge=this.pathname||"",J=this.search||"";this.path=Ge+J}return this.href=this.format(),this};function v(E){return f.isString(E)&&(E=g(E)),E instanceof x?E.format():x.prototype.format.call(E)}x.prototype.format=function(){var E=this.auth||"";E&&(E=encodeURIComponent(E),E=E.replace(/%3A/i,":"),E+="@");var C=this.protocol||"",_=this.pathname||"",T=this.hash||"",w=!1,O="";this.host?w=E+this.host:this.hostname&&(w=E+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&f.isObject(this.query)&&Object.keys(this.query).length&&(O=h.stringify(this.query));var I=this.search||O&&"?"+O||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||c[C])&&w!==!1?(w="//"+(w||""),_&&_.charAt(0)!=="/"&&(_="/"+_)):w||(w=""),T&&T.charAt(0)!=="#"&&(T="#"+T),I&&I.charAt(0)!=="?"&&(I="?"+I),_=_.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),I=I.replace("#","%23"),C+w+_+I+T};function b(E,C){return g(E,!1,!0).resolve(C)}x.prototype.resolve=function(E){return this.resolveObject(g(E,!1,!0)).format()};function S(E,C){return E?g(E,!1,!0).resolveObject(C):C}x.prototype.resolveObject=function(E){if(f.isString(E)){var C=new x;C.parse(E,!1,!0),E=C}for(var _=new x,T=Object.keys(this),w=0;w<T.length;w++){var O=T[w];_[O]=this[O]}if(_.hash=E.hash,E.href==="")return _.href=_.format(),_;if(E.slashes&&!E.protocol){for(var I=Object.keys(E),k=0;k<I.length;k++){var M=I[k];M!=="protocol"&&(_[M]=E[M])}return c[_.protocol]&&_.hostname&&!_.pathname&&(_.path=_.pathname="/"),_.href=_.format(),_}if(E.protocol&&E.protocol!==_.protocol){if(!c[E.protocol]){for(var U=Object.keys(E),P=0;P<U.length;P++){var X=U[P];_[X]=E[X]}return _.href=_.format(),_}if(_.protocol=E.protocol,!E.host&&!o[E.protocol]){for(var ee=(E.pathname||"").split("/");ee.length&&!(E.host=ee.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),ee[0]!==""&&ee.unshift(""),ee.length<2&&ee.unshift(""),_.pathname=ee.join("/")}else _.pathname=E.pathname;if(_.search=E.search,_.query=E.query,_.host=E.host||"",_.auth=E.auth,_.hostname=E.hostname||E.host,_.port=E.port,_.pathname||_.search){var F=_.pathname||"",j=_.search||"";_.path=F+j}return _.slashes=_.slashes||E.slashes,_.href=_.format(),_}var K=_.pathname&&_.pathname.charAt(0)==="/",z=E.host||E.pathname&&E.pathname.charAt(0)==="/",V=z||K||_.host&&E.pathname,Q=V,G=_.pathname&&_.pathname.split("/")||[],ee=E.pathname&&E.pathname.split("/")||[],se=_.protocol&&!c[_.protocol];if(se&&(_.hostname="",_.port=null,_.host&&(G[0]===""?G[0]=_.host:G.unshift(_.host)),_.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(ee[0]===""?ee[0]=E.host:ee.unshift(E.host)),E.host=null),V=V&&(ee[0]===""||G[0]==="")),z)_.host=E.host||E.host===""?E.host:_.host,_.hostname=E.hostname||E.hostname===""?E.hostname:_.hostname,_.search=E.search,_.query=E.query,G=ee;else if(ee.length)G||(G=[]),G.pop(),G=G.concat(ee),_.search=E.search,_.query=E.query;else if(!f.isNullOrUndefined(E.search)){if(se){_.hostname=_.host=G.shift();var ye=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;ye&&(_.auth=ye.shift(),_.host=_.hostname=ye.shift())}return _.search=E.search,_.query=E.query,(!f.isNull(_.pathname)||!f.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.href=_.format(),_}if(!G.length)return _.pathname=null,_.search?_.path="/"+_.search:_.path=null,_.href=_.format(),_;for(var he=G.slice(-1)[0],ke=(_.host||E.host||G.length>1)&&(he==="."||he==="..")||he==="",Pe=0,Ue=G.length;Ue>=0;Ue--)he=G[Ue],he==="."?G.splice(Ue,1):he===".."?(G.splice(Ue,1),Pe++):Pe&&(G.splice(Ue,1),Pe--);if(!V&&!Q)for(;Pe--;Pe)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),ke&&G.join("/").substr(-1)!=="/"&&G.push("");var $e=G[0]===""||G[0]&&G[0].charAt(0)==="/";if(se){_.hostname=_.host=$e?"":G.length?G.shift():"";var ye=_.host&&_.host.indexOf("@")>0?_.host.split("@"):!1;ye&&(_.auth=ye.shift(),_.host=_.hostname=ye.shift())}return V=V||_.host&&G.length,V&&!$e&&G.unshift(""),G.length?_.pathname=G.join("/"):(_.pathname=null,_.path=null),(!f.isNull(_.pathname)||!f.isNull(_.search))&&(_.path=(_.pathname?_.pathname:"")+(_.search?_.search:"")),_.auth=E.auth||_.auth,_.slashes=_.slashes||E.slashes,_.href=_.format(),_},x.prototype.parseHost=function(){var E=this.host,C=m.exec(E);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},{"./util":239,punycode:209,querystring:212}],239:[function(R,L,r){"use strict";L.exports={isString:function(f){return typeof f=="string"},isObject:function(f){return typeof f=="object"&&f!==null},isNull:function(f){return f===null},isNullOrUndefined:function(f){return f==null}}},{}],240:[function(R,L,r){(function(y){L.exports=f;function f(A,m){if(x("noDeprecation"))return A;var p=!1;function d(){if(!p){if(x("throwDeprecation"))throw new Error(m);x("traceDeprecation")?console.trace(m):console.warn(m),p=!0}return A.apply(this,arguments)}return d}function x(A){try{if(!y.localStorage)return!1}catch(p){return!1}var m=y.localStorage[A];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(R,L,r){typeof Object.create=="function"?L.exports=function(f,x){f.super_=x,f.prototype=Object.create(x.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}})}:L.exports=function(f,x){f.super_=x;var A=function(){};A.prototype=x.prototype,f.prototype=new A,f.prototype.constructor=f}},{}],242:[function(R,L,r){L.exports=function(f){return f&&typeof f=="object"&&typeof f.copy=="function"&&typeof f.fill=="function"&&typeof f.readUInt8=="function"}},{}],243:[function(R,L,r){(function(y,f){var x=/%[sdj%]/g;r.format=function(F){if(!b(F)){for(var j=[],K=0;K<arguments.length;K++)j.push(p(arguments[K]));return j.join(" ")}for(var K=1,z=arguments,V=z.length,Q=String(F).replace(x,function(ee){if(ee==="%%")return"%";if(K>=V)return ee;switch(ee){case"%s":return String(z[K++]);case"%d":return Number(z[K++]);case"%j":try{return JSON.stringify(z[K++])}catch(se){return"[Circular]"}default:return ee}}),G=z[K];K<V;G=z[++K])h(G)||!_(G)?Q+=" "+G:Q+=" "+p(G);return Q},r.deprecate=function(F,j){if(E(f.process))return function(){return r.deprecate(F,j).apply(this,arguments)};if(y.noDeprecation===!0)return F;var K=!1;function z(){if(!K){if(y.throwDeprecation)throw new Error(j);y.traceDeprecation?console.trace(j):console.error(j),K=!0}return F.apply(this,arguments)}return z};var A={},m;r.debuglog=function(F){if(E(m)&&(m=y.env.NODE_DEBUG||""),F=F.toUpperCase(),!A[F])if(new RegExp("\\b"+F+"\\b","i").test(m)){var j=y.pid;A[F]=function(){var K=r.format.apply(r,arguments);console.error("%s %d: %s",F,j,K)}}else A[F]=function(){};return A[F]};function p(F,j){var K={seen:[],stylize:u};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),c(j)?K.showHidden=j:j&&r._extend(K,j),E(K.showHidden)&&(K.showHidden=!1),E(K.depth)&&(K.depth=2),E(K.colors)&&(K.colors=!1),E(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=d),i(K,F,K.depth)}r.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function d(F,j){var K=p.styles[j];return K?"["+p.colors[K][0]+"m"+F+"["+p.colors[K][1]+"m":F}function u(F,j){return F}function a(F){var j={};return F.forEach(function(K,z){j[K]=!0}),j}function i(F,j,K){if(F.customInspect&&j&&O(j.inspect)&&j.inspect!==r.inspect&&!(j.constructor&&j.constructor.prototype===j)){var z=j.inspect(K,F);return b(z)||(z=i(F,z,K)),z}var V=t(F,j);if(V)return V;var Q=Object.keys(j),G=a(Q);if(F.showHidden&&(Q=Object.getOwnPropertyNames(j)),w(j)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return s(j);if(Q.length===0){if(O(j)){var ee=j.name?": "+j.name:"";return F.stylize("[Function"+ee+"]","special")}if(C(j))return F.stylize(RegExp.prototype.toString.call(j),"regexp");if(T(j))return F.stylize(Date.prototype.toString.call(j),"date");if(w(j))return s(j)}var se="",ye=!1,he=["{","}"];if(o(j)&&(ye=!0,he=["[","]"]),O(j)){var ke=j.name?": "+j.name:"";se=" [Function"+ke+"]"}if(C(j)&&(se=" "+RegExp.prototype.toString.call(j)),T(j)&&(se=" "+Date.prototype.toUTCString.call(j)),w(j)&&(se=" "+s(j)),Q.length===0&&(!ye||j.length==0))return he[0]+se+he[1];if(K<0)return C(j)?F.stylize(RegExp.prototype.toString.call(j),"regexp"):F.stylize("[Object]","special");F.seen.push(j);var Pe;return ye?Pe=e(F,j,K,G,Q):Pe=Q.map(function(Ue){return l(F,j,K,G,Ue,ye)}),F.seen.pop(),n(Pe,se,he)}function t(F,j){if(E(j))return F.stylize("undefined","undefined");if(b(j)){var K="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return F.stylize(K,"string")}if(v(j))return F.stylize(""+j,"number");if(c(j))return F.stylize(""+j,"boolean");if(h(j))return F.stylize("null","null")}function s(F){return"["+Error.prototype.toString.call(F)+"]"}function e(F,j,K,z,V){for(var Q=[],G=0,ee=j.length;G<ee;++G)X(j,String(G))?Q.push(l(F,j,K,z,String(G),!0)):Q.push("");return V.forEach(function(se){se.match(/^\d+$/)||Q.push(l(F,j,K,z,se,!0))}),Q}function l(F,j,K,z,V,Q){var G,ee,se;if(se=Object.getOwnPropertyDescriptor(j,V)||{value:j[V]},se.get?se.set?ee=F.stylize("[Getter/Setter]","special"):ee=F.stylize("[Getter]","special"):se.set&&(ee=F.stylize("[Setter]","special")),X(z,V)||(G="["+V+"]"),ee||(F.seen.indexOf(se.value)<0?(h(K)?ee=i(F,se.value,null):ee=i(F,se.value,K-1),ee.indexOf(`
`)>-1&&(Q?ee=ee.split(`
`).map(function(ye){return" "+ye}).join(`
`).substr(2):ee=`
`+ee.split(`
`).map(function(ye){return" "+ye}).join(`
`))):ee=F.stylize("[Circular]","special")),E(G)){if(Q&&V.match(/^\d+$/))return ee;G=JSON.stringify(""+V),G.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=F.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=F.stylize(G,"string"))}return G+": "+ee}function n(F,j,K){var z=0,V=F.reduce(function(Q,G){return z++,G.indexOf(`
`)>=0&&z++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?K[0]+(j===""?"":j+`
`)+" "+F.join(`,
`)+" "+K[1]:K[0]+j+" "+F.join(", ")+" "+K[1]}function o(F){return Array.isArray(F)}r.isArray=o;function c(F){return typeof F=="boolean"}r.isBoolean=c;function h(F){return F===null}r.isNull=h;function g(F){return F==null}r.isNullOrUndefined=g;function v(F){return typeof F=="number"}r.isNumber=v;function b(F){return typeof F=="string"}r.isString=b;function S(F){return typeof F=="symbol"}r.isSymbol=S;function E(F){return F===void 0}r.isUndefined=E;function C(F){return _(F)&&k(F)==="[object RegExp]"}r.isRegExp=C;function _(F){return typeof F=="object"&&F!==null}r.isObject=_;function T(F){return _(F)&&k(F)==="[object Date]"}r.isDate=T;function w(F){return _(F)&&(k(F)==="[object Error]"||F instanceof Error)}r.isError=w;function O(F){return typeof F=="function"}r.isFunction=O;function I(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||typeof F=="undefined"}r.isPrimitive=I,r.isBuffer=R("./support/isBuffer");function k(F){return Object.prototype.toString.call(F)}function M(F){return F<10?"0"+F.toString(10):F.toString(10)}var U=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var F=new Date,j=[M(F.getHours()),M(F.getMinutes()),M(F.getSeconds())].join(":");return[F.getDate(),U[F.getMonth()],j].join(" ")}r.log=function(){console.log("%s - %s",P(),r.format.apply(r,arguments))},r.inherits=R("inherits"),r._extend=function(F,j){if(!j||!_(j))return F;for(var K=Object.keys(j),z=K.length;z--;)F[K[z]]=j[K[z]];return F};function X(F,j){return Object.prototype.hasOwnProperty.call(F,j)}}).call(this,R("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(R,L,r){"use strict";(function(){"use strict";r.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(R,L,r){"use strict";var y=R("babel-runtime/helpers/typeof"),f=m(y),x=R("babel-runtime/core-js/object/keys"),A=m(x);function m(p){return p&&p.__esModule?p:{default:p}}(function(){"use strict";var p,d,u,a,i,t={}.hasOwnProperty;p=R("xmlbuilder"),d=R("./defaults").defaults,a=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},i=function(e){return"<![CDATA["+u(e)+"]]>"},u=function(e){return e.replace("]]>","]]]]><![CDATA[>")},r.Builder=function(){function s(e){var l,n,o;this.options={},n=d["0.2"];for(l in n){if(!t.call(n,l))continue;o=n[l],this.options[l]=o}for(l in e){if(!t.call(e,l))continue;o=e[l],this.options[l]=o}}return s.prototype.buildObject=function(e){var l,n,o,c,h;return l=this.options.attrkey,n=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,A.default)(e)[0],e=e[h]):h=this.options.rootName,o=function(g){return function(v,b){var S,E,C,_,T,w;if((typeof b=="undefined"?"undefined":(0,f.default)(b))!=="object")g.options.cdata&&a(b)?v.raw(i(b)):v.txt(b);else if(Array.isArray(b))for(_ in b){if(!t.call(b,_))continue;E=b[_];for(T in E)C=E[T],v=o(v.ele(T),C).up()}else for(T in b){if(!t.call(b,T))continue;if(E=b[T],T===l){if((typeof E=="undefined"?"undefined":(0,f.default)(E))==="object")for(S in E)w=E[S],v=v.att(S,w)}else if(T===n)g.options.cdata&&a(E)?v=v.raw(i(E)):v=v.txt(E);else if(Array.isArray(E))for(_ in E){if(!t.call(E,_))continue;C=E[_],typeof C=="string"?g.options.cdata&&a(C)?v=v.ele(T).raw(i(C)).up():v=v.ele(T,C).up():v=o(v.ele(T),C).up()}else(typeof E=="undefined"?"undefined":(0,f.default)(E))==="object"?v=o(v.ele(T),E).up():typeof E=="string"&&g.options.cdata&&a(E)?v=v.ele(T).raw(i(E)).up():(E==null&&(E=""),v=v.ele(T,E.toString()).up())}return v}}(this),c=p.create(h,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(c,e).end(this.options.renderOpts)},s}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(R,L,r){"use strict";(function(){r.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/promise"),f=a(y),x=R("babel-runtime/core-js/object/get-own-property-names"),A=a(x),m=R("babel-runtime/core-js/object/keys"),p=a(m),d=R("babel-runtime/helpers/typeof"),u=a(d);function a(i){return i&&i.__esModule?i:{default:i}}(function(){"use strict";var i,t,s,e,l,n,o,c,h=function(S,E){return function(){return S.apply(E,arguments)}},g=function(S,E){for(var C in E)v.call(E,C)&&(S[C]=E[C]);function _(){this.constructor=S}return _.prototype=E.prototype,S.prototype=new _,S.__super__=E.prototype,S},v={}.hasOwnProperty;o=R("sax"),s=R("events"),i=R("./bom"),n=R("./processors"),c=R("timers").setImmediate,t=R("./defaults").defaults,e=function(S){return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&S!=null&&(0,p.default)(S).length===0},l=function(S,E,C){var _,T,w;for(_=0,T=S.length;_<T;_++)w=S[_],E=w(E,C);return E},r.Parser=function(b){g(S,b);function S(E){this.parseStringPromise=h(this.parseStringPromise,this),this.parseString=h(this.parseString,this),this.reset=h(this.reset,this),this.assignOrPush=h(this.assignOrPush,this),this.processAsync=h(this.processAsync,this);var C,_,T;if(!(this instanceof r.Parser))return new r.Parser(E);this.options={},_=t["0.2"];for(C in _){if(!v.call(_,C))continue;T=_[C],this.options[C]=T}for(C in E){if(!v.call(E,C))continue;T=E[C],this.options[C]=T}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(n.normalize)),this.reset()}return S.prototype.processAsync=function(){var E,C;try{return this.remaining.length<=this.options.chunkSize?(E=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(E),this.saxParser.close()):(E=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(E),c(this.processAsync))}catch(_){if(C=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(C)}},S.prototype.assignOrPush=function(E,C,_){return C in E?(E[C]instanceof Array||(E[C]=[E[C]]),E[C].push(_)):this.options.explicitArray?E[C]=[_]:E[C]=_},S.prototype.reset=function(){var E,C,_,T;return this.removeAllListeners(),this.saxParser=o.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(O){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",O)}}(this),this.saxParser.onend=function(w){return function(){if(!w.saxParser.ended)return w.saxParser.ended=!0,w.emit("end",w.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],E=this.options.attrkey,C=this.options.charkey,this.saxParser.onopentag=function(w){return function(O){var I,k,M,U,P;if(M={},M[C]="",!w.options.ignoreAttrs){P=O.attributes;for(I in P){if(!v.call(P,I))continue;!(E in M)&&!w.options.mergeAttrs&&(M[E]={}),k=w.options.attrValueProcessors?l(w.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],U=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(M,U,k):M[E][U]=k}}return M["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,O.name):O.name,w.options.xmlns&&(M[w.options.xmlnskey]={uri:O.uri,local:O.local}),T.push(M)}}(this),this.saxParser.onclosetag=function(w){return function(){var O,I,k,M,U,P,X,F,j,K;if(P=T.pop(),U=P["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete P["#name"],P.cdata===!0&&(O=P.cdata,delete P.cdata),j=T[T.length-1],P[C].match(/^\s*$/)&&!O?(I=P[C],delete P[C]):(w.options.trim&&(P[C]=P[C].trim()),w.options.normalize&&(P[C]=P[C].replace(/\s{2,}/g," ").trim()),P[C]=w.options.valueProcessors?l(w.options.valueProcessors,P[C],U):P[C],(0,p.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])),e(P)&&(P=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(K="/"+function(){var z,V,Q;for(Q=[],z=0,V=T.length;z<V;z++)M=T[z],Q.push(M["#name"]);return Q}().concat(U).join("/"),function(){var z;try{return P=w.options.validator(K,j&&j[U],P)}catch(V){return z=V,w.emit("error",z)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof P=="undefined"?"undefined":(0,u.default)(P))==="object"){if(!w.options.preserveChildrenOrder)M={},w.options.attrkey in P&&(M[w.options.attrkey]=P[w.options.attrkey],delete P[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in P&&(M[w.options.charkey]=P[w.options.charkey],delete P[w.options.charkey]),(0,A.default)(P).length>0&&(M[w.options.childkey]=P),P=M;else if(j){j[w.options.childkey]=j[w.options.childkey]||[],X={};for(k in P){if(!v.call(P,k))continue;X[k]=P[k]}j[w.options.childkey].push(X),delete P["#name"],(0,p.default)(P).length===1&&C in P&&!w.EXPLICIT_CHARKEY&&(P=P[C])}}return T.length>0?w.assignOrPush(j,U,P):(w.options.explicitRoot&&(F=P,P={},P[U]=F),w.resultObject=P,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),_=function(w){return function(O){var I,k;if(k=T[T.length-1],k)return k[C]+=O,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(k[w.options.childkey]=k[w.options.childkey]||[],I={"#name":"__text__"},I[C]=O,w.options.normalize&&(I[C]=I[C].replace(/\s{2,}/g," ").trim()),k[w.options.childkey].push(I)),k}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(w){return function(O){var I;if(I=_(O),I)return I.cdata=!0}}(this)},S.prototype.parseString=function(E,C){var _;C!=null&&typeof C=="function"&&(this.on("end",function(T){return this.reset(),C(null,T)}),this.on("error",function(T){return this.reset(),C(T)}));try{return E=E.toString(),E.trim()===""?(this.emit("end",null),!0):(E=i.stripBOM(E),this.options.async?(this.remaining=E,c(this.processAsync),this.saxParser):this.saxParser.write(E).close())}catch(T){if(_=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw _}else return this.emit("error",_),this.saxParser.errThrown=!0}},S.prototype.parseStringPromise=function(E){return new f.default(function(C){return function(_,T){return C.parseString(E,function(w,O){return w?T(w):_(O)})}}(this))},S}(s),r.parseString=function(b,S,E){var C,_,T;return E!=null?(typeof E=="function"&&(C=E),(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(_=S)):(typeof S=="function"&&(C=S),_={}),T=new r.Parser(_),T.parseString(b,C)},r.parseStringPromise=function(b,S){var E,C;return(typeof S=="undefined"?"undefined":(0,u.default)(S))==="object"&&(E=S),C=new r.Parser(E),C.parseStringPromise(b)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(R,L,r){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),r.normalize=function(f){return f.toLowerCase()},r.firstCharLowerCase=function(f){return f.charAt(0).toLowerCase()+f.slice(1)},r.stripPrefix=function(f){return f.replace(y,"")},r.parseNumbers=function(f){return isNaN(f)||(f=f%1===0?parseInt(f,10):parseFloat(f)),f},r.parseBooleans=function(f){return/^(?:true|false)$/i.test(f)&&(f=f.toLowerCase()==="true"),f}}).call(void 0)},{}],249:[function(R,L,r){"use strict";(function(){"use strict";var y,f,x,A,m=function(u,a){for(var i in a)p.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},p={}.hasOwnProperty;f=R("./defaults"),y=R("./builder"),x=R("./parser"),A=R("./processors"),r.defaults=f.defaults,r.processors=A,r.ValidationError=function(d){m(u,d);function u(a){this.message=a}return u}(Error),r.Builder=y.Builder,r.Parser=x.Parser,r.parseString=x.parseString,r.parseStringPromise=x.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(R,L,r){"use strict";(function(){L.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(R,L,r){"use strict";(function(){L.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/get-prototype-of"),f=d(y),x=R("babel-runtime/helpers/typeof"),A=d(x),m=R("babel-runtime/core-js/object/assign"),p=d(m);function d(u){return u&&u.__esModule?u:{default:u}}(function(){var u,a,i,t,s,e,l,n=[].slice,o={}.hasOwnProperty;u=function(){var h,g,v,b,S,E;if(E=arguments[0],S=2<=arguments.length?n.call(arguments,1):[],s(p.default))p.default.apply(null,arguments);else for(h=0,v=S.length;h<v;h++)if(b=S[h],b!=null)for(g in b){if(!o.call(b,g))continue;E[g]=b[g]}return E},s=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},e=function(h){var g;return!!h&&((g=typeof h=="undefined"?"undefined":(0,A.default)(h))==="function"||g==="object")},i=function(h){return s(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var g;if(i(h))return!h.length;for(g in h){if(!o.call(h,g))continue;return!1}return!0},l=function(h){var g,v;return e(h)&&(v=(0,f.default)(h))&&(g=v.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},a=function(h){return s(h.valueOf)?h.valueOf():h},L.exports.assign=u,L.exports.isFunction=s,L.exports.isObject=e,L.exports.isArray=i,L.exports.isEmpty=t,L.exports.isPlainObject=l,L.exports.getValue=a}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(R,L,r){"use strict";(function(){L.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p;A=R("./NodeType"),p=R("./XMLNode"),L.exports=m=function(){function d(u,a,i){if(this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(i),this.type=A.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d.prototype.clone=function(){return(0,f.default)(this)},d.prototype.toString=function(u){return this.options.writer.attribute(this,this.options.writer.filterOptions(u))},d.prototype.debugInfo=function(u){return u=u||this.name,u==null?"parent: <"+this.parent.name+">":"attribute: {"+u+"}, parent: <"+this.parent.name+">"},d.prototype.isEqualNode=function(u){return u.namespaceURI!==this.namespaceURI||(u.prefix!==this.prefix||u.localName!==this.localName)?!1:!(u.value!==this.value)},d}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=R("./NodeType"),p=R("./XMLCharacterData"),L.exports=m=function(a){d(i,a);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(s)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p=function(a,i){for(var t in i)d.call(i,t)&&(a[t]=i[t]);function s(){this.constructor=a}return s.prototype=i.prototype,a.prototype=new s,a.__super__=i.prototype,a},d={}.hasOwnProperty;m=R("./XMLNode"),L.exports=A=function(u){p(a,u);function a(i){a.__super__.constructor.call(this,i),this.value=""}return Object.defineProperty(a.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(a.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),a.prototype.clone=function(){return(0,f.default)(this)},a.prototype.substringData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.appendData=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.insertData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.deleteData=function(i,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceData=function(i,t,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(i){return a.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.data!==this.data):!1},a}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=R("./NodeType"),m=R("./XMLCharacterData"),L.exports=p=function(a){d(i,a);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(s)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=m(y),x=R("babel-runtime/core-js/object/create"),A=m(x);function m(p){return p&&p.__esModule?p:{default:p}}(function(){var p,d,u;d=R("./XMLDOMErrorHandler"),u=R("./XMLDOMStringList"),L.exports=p=function(){function a(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new d,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=(0,A.default)(this.defaultParams)}return Object.defineProperty(a.prototype,"parameterNames",{get:function(){return new u((0,f.default)(this.defaultParams))}}),a.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},a.prototype.canSetParameter=function(i,t){return!0},a.prototype.setParameter=function(i,t){return t!=null?this.params[i]=t:delete this.params[i]},a}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(R,L,r){"use strict";(function(){var y;L.exports=y=function(){function f(){}return f.prototype.handleError=function(x){throw new Error(x)},f}()}).call(void 0)},{}],260:[function(R,L,r){"use strict";(function(){var y;L.exports=y=function(){function f(){}return f.prototype.hasFeature=function(x,A){return!0},f.prototype.createDocumentType=function(x,A,m){throw new Error("This DOM method is not implemented.")},f.prototype.createDocument=function(x,A,m){throw new Error("This DOM method is not implemented.")},f.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},f.prototype.getFeature=function(x,A){throw new Error("This DOM method is not implemented.")},f}()}).call(void 0)},{}],261:[function(R,L,r){"use strict";(function(){var y;L.exports=y=function(){function f(x){this.arr=x||[]}return Object.defineProperty(f.prototype,"length",{get:function(){return this.arr.length}}),f.prototype.item=function(x){return this.arr[x]||null},f.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},f}()}).call(void 0)},{}],262:[function(R,L,r){"use strict";(function(){var y,f,x,A=function(d,u){for(var a in u)m.call(u,a)&&(d[a]=u[a]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),L.exports=f=function(p){A(d,p);function d(u,a,i,t,s,e){if(d.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(i==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(s.indexOf("#")!==0&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(e&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.name(a),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=s}return d.prototype.toString=function(u){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(R,L,r){"use strict";(function(){var y,f,x,A=function(d,u){for(var a in u)m.call(u,a)&&(d[a]=u[a]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),L.exports=f=function(p){A(d,p);function d(u,a,i){if(d.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(a),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return d.prototype.toString=function(u){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(R,L,r){"use strict";(function(){var y,f,x,A,m=function(u,a){for(var i in a)p.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},p={}.hasOwnProperty;A=R("./Utility").isObject,x=R("./XMLNode"),y=R("./NodeType"),L.exports=f=function(d){m(u,d);function u(a,i,t,s){if(u.__super__.constructor.call(this,a),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(s==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!i,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!A(s))this.value=this.stringify.dtdEntityValue(s),this.internal=!0;else{if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID)),s.nData!=null&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(t))}}return Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(u.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(u.prototype,"xmlVersion",{get:function(){return null}}),u.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(R,L,r){"use strict";(function(){var y,f,x,A=function(d,u){for(var a in u)m.call(u,a)&&(d[a]=u[a]);function i(){this.constructor=d}return i.prototype=u.prototype,d.prototype=new i,d.__super__=u.prototype,d},m={}.hasOwnProperty;x=R("./XMLNode"),y=R("./NodeType"),L.exports=f=function(p){A(d,p);function d(u,a,i){if(d.__super__.constructor.call(this,u),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=y.NotationDeclaration,i.pubID!=null&&(this.pubID=this.stringify.dtdPubID(i.pubID)),i.sysID!=null&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d.prototype.toString=function(u){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(u))},d}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(R,L,r){"use strict";(function(){var y,f,x,A,m=function(u,a){for(var i in a)p.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},p={}.hasOwnProperty;A=R("./Utility").isObject,x=R("./XMLNode"),y=R("./NodeType"),L.exports=f=function(d){m(u,d);function u(a,i,t,s){var e;u.__super__.constructor.call(this,a),A(i)&&(e=i,i=e.version,t=e.encoding,s=e.standalone),i||(i="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(i),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),s!=null&&(this.standalone=this.stringify.xmlStandalone(s))}return u.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},u}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a,i=function(e,l){for(var n in l)t.call(l,n)&&(e[n]=l[n]);function o(){this.constructor=e}return o.prototype=l.prototype,e.prototype=new o,e.__super__=l.prototype,e},t={}.hasOwnProperty;a=R("./Utility").isObject,u=R("./XMLNode"),y=R("./NodeType"),f=R("./XMLDTDAttList"),A=R("./XMLDTDEntity"),x=R("./XMLDTDElement"),m=R("./XMLDTDNotation"),d=R("./XMLNamedNodeMap"),L.exports=p=function(s){i(e,s);function e(l,n,o){var c,h,g,v,b,S;if(e.__super__.constructor.call(this,l),this.type=y.DocType,l.children){for(v=l.children,h=0,g=v.length;h<g;h++)if(c=v[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=l,a(n)&&(b=n,n=b.pubID,o=b.sysID),o==null&&(S=[n,o],o=S[0],n=S[1]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),o!=null&&(this.sysID=this.stringify.dtdSysID(o))}return Object.defineProperty(e.prototype,"entities",{get:function(){var n,o,c,h,g;for(h={},g=this.children,o=0,c=g.length;o<c;o++)n=g[o],n.type===y.EntityDeclaration&&!n.pe&&(h[n.name]=n);return new d(h)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var n,o,c,h,g;for(h={},g=this.children,o=0,c=g.length;o<c;o++)n=g[o],n.type===y.NotationDeclaration&&(h[n.name]=n);return new d(h)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(l,n){var o;return o=new x(this,l,n),this.children.push(o),this},e.prototype.attList=function(l,n,o,c,h){var g;return g=new f(this,l,n,o,c,h),this.children.push(g),this},e.prototype.entity=function(l,n){var o;return o=new A(this,!1,l,n),this.children.push(o),this},e.prototype.pEntity=function(l,n){var o;return o=new A(this,!0,l,n),this.children.push(o),this},e.prototype.notation=function(l,n){var o;return o=new m(this,l,n),this.children.push(o),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,n){return this.element(l,n)},e.prototype.att=function(l,n,o,c,h){return this.attList(l,n,o,c,h)},e.prototype.ent=function(l,n){return this.entity(l,n)},e.prototype.pent=function(l,n){return this.pEntity(l,n)},e.prototype.not=function(l,n){return this.notation(l,n)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a=function(s,e){for(var l in e)i.call(e,l)&&(s[l]=e[l]);function n(){this.constructor=s}return n.prototype=e.prototype,s.prototype=new n,s.__super__=e.prototype,s},i={}.hasOwnProperty;u=R("./Utility").isPlainObject,x=R("./XMLDOMImplementation"),f=R("./XMLDOMConfiguration"),m=R("./XMLNode"),y=R("./NodeType"),d=R("./XMLStringifier"),p=R("./XMLStringWriter"),L.exports=A=function(t){a(s,t);function s(e){s.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new f,e||(e={}),e.writer||(e.writer=new p),this.options=e,this.stringify=new d(e)}return Object.defineProperty(s.prototype,"implementation",{value:new x}),Object.defineProperty(s.prototype,"doctype",{get:function(){var l,n,o,c;for(c=this.children,n=0,o=c.length;n<o;n++)if(l=c[n],l.type===y.DocType)return l;return null}}),Object.defineProperty(s.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(s.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(s.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(s.prototype,"origin",{get:function(){return null}}),Object.defineProperty(s.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(s.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(s.prototype,"contentType",{get:function(){return null}}),s.prototype.end=function(e){var l;return l={},e?u(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},s.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},s.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.renameNode=function(e,l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createNodeIterator=function(e,l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.createTreeWalker=function(e,l,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a,i,t,s,e,l,n,o,c,h,g,v,b,S,E,C,_={}.hasOwnProperty;C=R("./Utility"),S=C.isObject,b=C.isFunction,E=C.isPlainObject,v=C.getValue,y=R("./NodeType"),s=R("./XMLDocument"),l=R("./XMLElement"),A=R("./XMLCData"),m=R("./XMLComment"),o=R("./XMLRaw"),g=R("./XMLText"),n=R("./XMLProcessingInstruction"),i=R("./XMLDeclaration"),t=R("./XMLDocType"),p=R("./XMLDTDAttList"),u=R("./XMLDTDEntity"),d=R("./XMLDTDElement"),a=R("./XMLDTDNotation"),x=R("./XMLAttribute"),h=R("./XMLStringifier"),c=R("./XMLStringWriter"),f=R("./WriterState"),L.exports=e=function(){function T(w,O,I){var k;this.name="?xml",this.type=y.Document,w||(w={}),k={},w.writer?E(w.writer)&&(k=w.writer,w.writer=new c):w.writer=new c,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(k),this.stringify=new h(w),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(w){var O,I,k,M,U,P,X,F;switch(w.type){case y.CData:this.cdata(w.value);break;case y.Comment:this.comment(w.value);break;case y.Element:k={},X=w.attribs;for(I in X){if(!_.call(X,I))continue;O=X[I],k[I]=O.value}this.node(w.name,k);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(w.value);break;case y.Text:this.text(w.value);break;case y.ProcessingInstruction:this.instruction(w.target,w.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+w.constructor.name)}for(F=w.children,U=0,P=F.length;U<P;U++)M=F[U],this.createChildNode(M),M.type===y.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(w,O,I){var k;if(w==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(w));return this.openCurrent(),w=v(w),O==null&&(O={}),O=v(O),S(O)||(k=[O,I],I=k[0],O=k[1]),this.currentNode=new l(this,w,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},T.prototype.element=function(w,O,I){var k,M,U,P,X,F;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||S(w)||b(w))for(P=this.options.noValidation,this.options.noValidation=!0,F=new s(this.options).element("TEMP_ROOT"),F.element(w),this.options.noValidation=P,X=F.children,M=0,U=X.length;M<U;M++)k=X[M],this.createChildNode(k),k.type===y.Element&&this.up();else this.node(w,O,I);return this},T.prototype.attribute=function(w,O){var I,k;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(w));if(w!=null&&(w=v(w)),S(w))for(I in w){if(!_.call(w,I))continue;k=w[I],this.attribute(I,k)}else b(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[w]=new x(this,w,""):O!=null&&(this.currentNode.attribs[w]=new x(this,w,O));return this},T.prototype.text=function(w){var O;return this.openCurrent(),O=new g(this,w),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(w){var O;return this.openCurrent(),O=new A(this,w),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(w){var O;return this.openCurrent(),O=new m(this,w),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(w){var O;return this.openCurrent(),O=new o(this,w),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(w,O){var I,k,M,U,P;if(this.openCurrent(),w!=null&&(w=v(w)),O!=null&&(O=v(O)),Array.isArray(w))for(I=0,U=w.length;I<U;I++)k=w[I],this.instruction(k);else if(S(w))for(k in w){if(!_.call(w,k))continue;M=w[k],this.instruction(k,M)}else b(O)&&(O=O.apply()),P=new n(this,w,O),this.onData(this.writer.processingInstruction(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(w,O,I){var k;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return k=new i(this,w,O,I),this.onData(this.writer.declaration(k,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(w,O,I){if(this.openCurrent(),w==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new t(this,O,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(w,O){var I;return this.openCurrent(),I=new d(this,w,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(w,O,I,k,M){var U;return this.openCurrent(),U=new p(this,w,O,I,k,M),this.onData(this.writer.dtdAttList(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(w,O){var I;return this.openCurrent(),I=new u(this,!1,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(w,O){var I;return this.openCurrent(),I=new u(this,!0,w,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(w,O){var I;return this.openCurrent(),I=new a(this,w,O),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(w){var O,I,k,M;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===y.Element&&(this.root=w),I="",w.type===y.Element){this.writerOptions.state=f.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,M=w.attribs;for(k in M){if(!_.call(M,k))continue;O=M[k],I+=this.writer.attribute(O,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=f.InsideTag}else this.writerOptions.state=f.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+w.rootNodeName,w.pubID&&w.sysID?I+=' PUBLIC "'+w.pubID+'" "'+w.sysID+'"':w.sysID&&(I+=' SYSTEM "'+w.sysID+'"'),w.children?(I+=" [",this.writerOptions.state=f.InsideTag):(this.writerOptions.state=f.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},T.prototype.closeNode=function(w){var O;if(!w.isClosed)return O="",this.writerOptions.state=f.CloseTag,w.type===y.Element?O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):O=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=f.None,this.onData(O,this.currentLevel),w.isClosed=!0},T.prototype.onData=function(w,O){return this.documentStarted=!0,this.onDataCallback(w,O+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(w,O,I){return this.node(w,O,I)},T.prototype.txt=function(w){return this.text(w)},T.prototype.dat=function(w){return this.cdata(w)},T.prototype.com=function(w){return this.comment(w)},T.prototype.ins=function(w,O){return this.instruction(w,O)},T.prototype.dec=function(w,O,I){return this.declaration(w,O,I)},T.prototype.dtd=function(w,O,I){return this.doctype(w,O,I)},T.prototype.e=function(w,O,I){return this.element(w,O,I)},T.prototype.n=function(w,O,I){return this.node(w,O,I)},T.prototype.t=function(w){return this.text(w)},T.prototype.d=function(w){return this.cdata(w)},T.prototype.c=function(w){return this.comment(w)},T.prototype.r=function(w){return this.raw(w)},T.prototype.i=function(w,O){return this.instruction(w,O)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(w,O){return this.entity(w,O)},T.prototype.pent=function(w,O){return this.pEntity(w,O)},T.prototype.not=function(w,O){return this.notation(w,O)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;p=R("./XMLNode"),A=R("./NodeType"),L.exports=m=function(a){d(i,a);function i(t){i.__super__.constructor.call(this,t),this.type=A.Dummy}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return""},i}(p)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d,u,a,i,t,s,e=function(o,c){for(var h in c)l.call(c,h)&&(o[h]=c[h]);function g(){this.constructor=o}return g.prototype=c.prototype,o.prototype=new g,o.__super__=c.prototype,o},l={}.hasOwnProperty;s=R("./Utility"),t=s.isObject,i=s.isFunction,a=s.getValue,u=R("./XMLNode"),A=R("./NodeType"),m=R("./XMLAttribute"),d=R("./XMLNamedNodeMap"),L.exports=p=function(n){e(o,n);function o(c,h,g){var v,b,S,E;if(o.__super__.constructor.call(this,c),h==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(h),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===A.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(E=c.children,b=0,S=E.length;b<S;b++)if(v=E[b],v.type===A.DocType){v.name=this.name;break}}}return Object.defineProperty(o.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(o.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(o.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(o.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new d(this.attribs)),this.attributeMap}}),o.prototype.clone=function(){var c,h,g,v;g=(0,f.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},v=this.attribs;for(h in v){if(!l.call(v,h))continue;c=v[h],g.attribs[h]=c.clone()}return g.children=[],this.children.forEach(function(b){var S;return S=b.clone(),S.parent=g,g.children.push(S)}),g},o.prototype.attribute=function(c,h){var g,v;if(c!=null&&(c=a(c)),t(c))for(g in c){if(!l.call(c,g))continue;v=c[g],this.attribute(g,v)}else i(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[c]=new m(this,c,""):h!=null&&(this.attribs[c]=new m(this,c,h));return this},o.prototype.removeAttribute=function(c){var h,g,v;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=a(c),Array.isArray(c))for(g=0,v=c.length;g<v;g++)h=c[g],delete this.attribs[h];else delete this.attribs[c];return this},o.prototype.toString=function(c){return this.options.writer.element(this,this.options.writer.filterOptions(c))},o.prototype.att=function(c,h){return this.attribute(c,h)},o.prototype.a=function(c,h){return this.attribute(c,h)},o.prototype.getAttribute=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c].value:null},o.prototype.setAttribute=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNode=function(c){return this.attribs.hasOwnProperty(c)?this.attribs[c]:null},o.prototype.setAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNode=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.removeAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getAttributeNodeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setAttributeNodeNS=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.hasAttribute=function(c){return this.attribs.hasOwnProperty(c)},o.prototype.hasAttributeNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttribute=function(c,h){return this.attribs.hasOwnProperty(c)?this.attribs[c].isId:h},o.prototype.setIdAttributeNS=function(c,h,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.setIdAttributeNode=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByTagNameNS=function(c,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.getElementsByClassName=function(c){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(c){var h,g,v;if(!o.__super__.isEqualNode.apply(this,arguments).isEqualNode(c))return!1;if(c.namespaceURI!==this.namespaceURI)return!1;if(c.prefix!==this.prefix)return!1;if(c.localName!==this.localName)return!1;if(c.attribs.length!==this.attribs.length)return!1;for(h=g=0,v=this.attribs.length-1;0<=v?g<=v:g>=v;h=0<=v?++g:--g)if(!this.attribs[h].isEqualNode(c.attribs[h]))return!1;return!0},o}(u)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/keys"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A;L.exports=A=function(){function m(p){this.nodes=p}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,f.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(p){return this.nodes[p]},m.prototype.setNamedItem=function(p){var d;return d=this.nodes[p.nodeName],this.nodes[p.nodeName]=p,d||null},m.prototype.removeNamedItem=function(p){var d;return d=this.nodes[p],delete this.nodes[p],d||null},m.prototype.item=function(p){return this.nodes[(0,f.default)(this.nodes)[p]]||null},m.prototype.getNamedItemNS=function(p,d){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(p){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(p,d){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a,i,t,s,e,l,n,o,c,h,g,v={}.hasOwnProperty;g=R("./Utility"),h=g.isObject,c=g.isFunction,o=g.isEmpty,n=g.getValue,u=null,x=null,A=null,m=null,p=null,e=null,l=null,s=null,d=null,f=null,t=null,a=null,y=null,L.exports=i=function(){function b(S){this.parent=S,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=R("./XMLElement"),x=R("./XMLCData"),A=R("./XMLComment"),m=R("./XMLDeclaration"),p=R("./XMLDocType"),e=R("./XMLRaw"),l=R("./XMLText"),s=R("./XMLProcessingInstruction"),d=R("./XMLDummy"),f=R("./NodeType"),t=R("./XMLNodeList"),a=R("./XMLNamedNodeMap"),y=R("./DocumentPosition"))}return Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new t(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var E;return E=this.parent.children.indexOf(this),this.parent.children[E+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var E,C,_,T,w;if(this.nodeType===f.Element||this.nodeType===f.DocumentFragment){for(w="",T=this.children,C=0,_=T.length;C<_;C++)E=T[C],E.textContent&&(w+=E.textContent);return w}else return null},set:function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(S){var E,C,_,T,w;for(this.parent=S,S&&(this.options=S.options,this.stringify=S.stringify),T=this.children,w=[],C=0,_=T.length;C<_;C++)E=T[C],w.push(E.setParent(this));return w},b.prototype.element=function(S,E,C){var _,T,w,O,I,k,M,U,P,X,F;if(k=null,E===null&&C==null&&(P=[{},null],E=P[0],C=P[1]),E==null&&(E={}),E=n(E),h(E)||(X=[E,C],C=X[0],E=X[1]),S!=null&&(S=n(S)),Array.isArray(S))for(w=0,M=S.length;w<M;w++)T=S[w],k=this.element(T);else if(c(S))k=this.element(S.apply());else if(h(S))for(I in S){if(!v.call(S,I))continue;if(F=S[I],c(F)&&(F=F.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)k=this.attribute(I.substr(this.stringify.convertAttKey.length),F);else if(!this.options.separateArrayItems&&Array.isArray(F)&&o(F))k=this.dummy();else if(h(F)&&o(F))k=this.element(I);else if(!this.options.keepNullNodes&&F==null)k=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(F))for(O=0,U=F.length;O<U;O++)T=F[O],_={},_[I]=T,k=this.element(_);else h(F)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?k=this.element(F):(k=this.element(I),k.element(F)):k=this.element(I,F)}else!this.options.keepNullNodes&&C===null?k=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?k=this.text(C):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&S.indexOf(this.stringify.convertCDataKey)===0?k=this.cdata(C):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&S.indexOf(this.stringify.convertCommentKey)===0?k=this.comment(C):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&S.indexOf(this.stringify.convertRawKey)===0?k=this.raw(C):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&S.indexOf(this.stringify.convertPIKey)===0?k=this.instruction(S.substr(this.stringify.convertPIKey.length),C):k=this.node(S,E,C);if(k==null)throw new Error("Could not create any elements with: "+S+". "+this.debugInfo());return k},b.prototype.insertBefore=function(S,E,C){var _,T,w,O,I;if(S!=null?S.type:void 0)return w=S,O=E,w.setParent(this),O?(T=children.indexOf(O),I=children.splice(T),children.push(w),Array.prototype.push.apply(children,I)):children.push(w),w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),I=this.parent.children.splice(T),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,I),_},b.prototype.insertAfter=function(S,E,C){var _,T,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(S));return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),_=this.parent.element(S,E,C),Array.prototype.push.apply(this.parent.children,w),_},b.prototype.remove=function(){var S,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return S=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[S,S-S+1].concat(E=[])),this.parent},b.prototype.node=function(S,E,C){var _,T;return S!=null&&(S=n(S)),E||(E={}),E=n(E),h(E)||(T=[E,C],C=T[0],E=T[1]),_=new u(this,S,E),C!=null&&_.text(C),this.children.push(_),_},b.prototype.text=function(S){var E;return h(S)&&this.element(S),E=new l(this,S),this.children.push(E),this},b.prototype.cdata=function(S){var E;return E=new x(this,S),this.children.push(E),this},b.prototype.comment=function(S){var E;return E=new A(this,S),this.children.push(E),this},b.prototype.commentBefore=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.commentAfter=function(S){var E,C,_;return C=this.parent.children.indexOf(this),_=this.parent.children.splice(C+1),E=this.parent.comment(S),Array.prototype.push.apply(this.parent.children,_),this},b.prototype.raw=function(S){var E;return E=new e(this,S),this.children.push(E),this},b.prototype.dummy=function(){var S;return S=new d(this),S},b.prototype.instruction=function(S,E){var C,_,T,w,O;if(S!=null&&(S=n(S)),E!=null&&(E=n(E)),Array.isArray(S))for(w=0,O=S.length;w<O;w++)C=S[w],this.instruction(C);else if(h(S))for(C in S){if(!v.call(S,C))continue;_=S[C],this.instruction(C,_)}else c(E)&&(E=E.apply()),T=new s(this,S,E),this.children.push(T);return this},b.prototype.instructionBefore=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.instructionAfter=function(S,E){var C,_,T;return _=this.parent.children.indexOf(this),T=this.parent.children.splice(_+1),C=this.parent.instruction(S,E),Array.prototype.push.apply(this.parent.children,T),this},b.prototype.declaration=function(S,E,C){var _,T;return _=this.document(),T=new m(_,S,E,C),_.children.length===0?_.children.unshift(T):_.children[0].type===f.Declaration?_.children[0]=T:_.children.unshift(T),_.root()||_},b.prototype.dtd=function(S,E){var C,_,T,w,O,I,k,M,U,P;for(_=this.document(),T=new p(_,S,E),U=_.children,w=O=0,k=U.length;O<k;w=++O)if(C=U[w],C.type===f.DocType)return _.children[w]=T,T;for(P=_.children,w=I=0,M=P.length;I<M;w=++I)if(C=P[w],C.isRoot)return _.children.splice(w,0,T),T;return _.children.push(T),T},b.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},b.prototype.root=function(){var S;for(S=this;S;){if(S.type===f.Document)return S.rootObject;if(S.isRoot)return S;S=S.parent}},b.prototype.document=function(){var S;for(S=this;S;){if(S.type===f.Document)return S;S=S.parent}},b.prototype.end=function(S){return this.document().end(S)},b.prototype.prev=function(){var S;if(S=this.parent.children.indexOf(this),S<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[S-1]},b.prototype.next=function(){var S;if(S=this.parent.children.indexOf(this),S===-1||S===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[S+1]},b.prototype.importDocument=function(S){var E;return E=S.root().clone(),E.parent=this,E.isRoot=!1,this.children.push(E),this},b.prototype.debugInfo=function(S){var E,C;return S=S||this.name,S==null&&!((E=this.parent)!=null?E.name:void 0)?"":S==null?"parent: <"+this.parent.name+">":((C=this.parent)!=null?C.name:void 0)?"node: <"+S+">, parent: <"+this.parent.name+">":"node: <"+S+">"},b.prototype.ele=function(S,E,C){return this.element(S,E,C)},b.prototype.nod=function(S,E,C){return this.node(S,E,C)},b.prototype.txt=function(S){return this.text(S)},b.prototype.dat=function(S){return this.cdata(S)},b.prototype.com=function(S){return this.comment(S)},b.prototype.ins=function(S,E){return this.instruction(S,E)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(S,E,C){return this.declaration(S,E,C)},b.prototype.e=function(S,E,C){return this.element(S,E,C)},b.prototype.n=function(S,E,C){return this.node(S,E,C)},b.prototype.t=function(S){return this.text(S)},b.prototype.d=function(S){return this.cdata(S)},b.prototype.c=function(S){return this.comment(S)},b.prototype.r=function(S){return this.raw(S)},b.prototype.i=function(S,E){return this.instruction(S,E)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(S){return this.importDocument(S)},b.prototype.replaceChild=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(S,E){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(S){var E,C;return E=this,E===S?0:this.document()!==S.document()?(C=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?C|=y.Preceding:C|=y.Following,C):E.isAncestor(S)?y.Contains|y.Preceding:E.isDescendant(S)?y.Contains|y.Following:E.isPreceding(S)?y.Preceding:y.Following},b.prototype.isSameNode=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(S){var E,C,_;if(S.nodeType!==this.nodeType)return!1;if(S.children.length!==this.children.length)return!1;for(E=C=0,_=this.children.length-1;0<=_?C<=_:C>=_;E=0<=_?++C:--C)if(!this.children[E].isEqualNode(S.children[E]))return!1;return!0},b.prototype.getFeature=function(S,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(S,E,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(S){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(S){return S?S===this||this.isDescendant(S):!1},b.prototype.isDescendant=function(S){var E,C,_,T,w;for(w=this.children,_=0,T=w.length;_<T;_++){if(E=w[_],S===E)return!0;if(C=E.isDescendant(S),C)return!0}return!1},b.prototype.isAncestor=function(S){return S.isDescendant(this)},b.prototype.isPreceding=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E<C},b.prototype.isFollowing=function(S){var E,C;return E=this.treePosition(S),C=this.treePosition(this),E===-1||C===-1?!1:E>C},b.prototype.treePosition=function(S){var E,C;return C=0,E=!1,this.foreachTreeNode(this.document(),function(_){if(C++,!E&&_===S)return E=!0}),E?C:-1},b.prototype.foreachTreeNode=function(S,E){var C,_,T,w,O;for(S||(S=this.document()),w=S.children,_=0,T=w.length;_<T;_++){if(C=w[_],O=E(C))return O;if(O=this.foreachTreeNode(C,E),O)return O}},b}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(R,L,r){"use strict";(function(){var y;L.exports=y=function(){function f(x){this.nodes=x}return Object.defineProperty(f.prototype,"length",{get:function(){return this.nodes.length||0}}),f.prototype.clone=function(){return this.nodes=null},f.prototype.item=function(x){return this.nodes[x]||null},f}()}).call(void 0)},{}],275:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=R("./NodeType"),m=R("./XMLCharacterData"),L.exports=p=function(a){d(i,a);function i(t,s,e){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.ProcessingInstruction,this.target=this.stringify.insTarget(s),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=R("./NodeType"),m=R("./XMLNode"),L.exports=p=function(a){d(i,a);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(s)}return i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(R,L,r){"use strict";(function(){var y,f,x,A,m=function(u,a){for(var i in a)p.call(a,i)&&(u[i]=a[i]);function t(){this.constructor=u}return t.prototype=a.prototype,u.prototype=new t,u.__super__=a.prototype,u},p={}.hasOwnProperty;y=R("./NodeType"),A=R("./XMLWriterBase"),f=R("./WriterState"),L.exports=x=function(d){m(u,d);function u(a,i){this.stream=a,u.__super__.constructor.call(this,i)}return u.prototype.endline=function(a,i,t){return a.isLastRootNode&&i.state===f.CloseTag?"":u.__super__.endline.call(this,a,i,t)},u.prototype.document=function(a,i){var t,s,e,l,n,o,c,h,g;for(c=a.children,s=e=0,n=c.length;e<n;s=++e)t=c[s],t.isLastRootNode=s===a.children.length-1;for(i=this.filterOptions(i),h=a.children,g=[],l=0,o=h.length;l<o;l++)t=h[l],g.push(this.writeChildNode(t,i,0));return g},u.prototype.attribute=function(a,i,t){return this.stream.write(u.__super__.attribute.call(this,a,i,t))},u.prototype.cdata=function(a,i,t){return this.stream.write(u.__super__.cdata.call(this,a,i,t))},u.prototype.comment=function(a,i,t){return this.stream.write(u.__super__.comment.call(this,a,i,t))},u.prototype.declaration=function(a,i,t){return this.stream.write(u.__super__.declaration.call(this,a,i,t))},u.prototype.docType=function(a,i,t){var s,e,l,n;if(t||(t=0),this.openNode(a,i,t),i.state=f.OpenTag,this.stream.write(this.indent(a,i,t)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,i,t)),i.state=f.InsideTag,n=a.children,e=0,l=n.length;e<l;e++)s=n[e],this.writeChildNode(s,i,t+1);i.state=f.CloseTag,this.stream.write("]")}return i.state=f.CloseTag,this.stream.write(i.spaceBeforeSlash+">"),this.stream.write(this.endline(a,i,t)),i.state=f.None,this.closeNode(a,i,t)},u.prototype.element=function(a,i,t){var s,e,l,n,o,c,h,g,v,b;t||(t=0),this.openNode(a,i,t),i.state=f.OpenTag,this.stream.write(this.indent(a,i,t)+"<"+a.name),v=a.attribs;for(h in v){if(!p.call(v,h))continue;s=v[h],this.attribute(s,i,t)}if(l=a.children.length,n=l===0?null:a.children[0],l===0||a.children.every(function(S){return(S.type===y.Text||S.type===y.Raw)&&S.value===""}))i.allowEmpty?(this.stream.write(">"),i.state=f.CloseTag,this.stream.write("</"+a.name+">")):(i.state=f.CloseTag,this.stream.write(i.spaceBeforeSlash+"/>"));else if(i.pretty&&l===1&&(n.type===y.Text||n.type===y.Raw)&&n.value!=null)this.stream.write(">"),i.state=f.InsideTag,i.suppressPrettyCount++,g=!0,this.writeChildNode(n,i,t+1),i.suppressPrettyCount--,g=!1,i.state=f.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,i,t)),i.state=f.InsideTag,b=a.children,o=0,c=b.length;o<c;o++)e=b[o],this.writeChildNode(e,i,t+1);i.state=f.CloseTag,this.stream.write(this.indent(a,i,t)+"</"+a.name+">")}return this.stream.write(this.endline(a,i,t)),i.state=f.None,this.closeNode(a,i,t)},u.prototype.processingInstruction=function(a,i,t){return this.stream.write(u.__super__.processingInstruction.call(this,a,i,t))},u.prototype.raw=function(a,i,t){return this.stream.write(u.__super__.raw.call(this,a,i,t))},u.prototype.text=function(a,i,t){return this.stream.write(u.__super__.text.call(this,a,i,t))},u.prototype.dtdAttList=function(a,i,t){return this.stream.write(u.__super__.dtdAttList.call(this,a,i,t))},u.prototype.dtdElement=function(a,i,t){return this.stream.write(u.__super__.dtdElement.call(this,a,i,t))},u.prototype.dtdEntity=function(a,i,t){return this.stream.write(u.__super__.dtdEntity.call(this,a,i,t))},u.prototype.dtdNotation=function(a,i,t){return this.stream.write(u.__super__.dtdNotation.call(this,a,i,t))},u}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(R,L,r){"use strict";(function(){var y,f,x=function(p,d){for(var u in d)A.call(d,u)&&(p[u]=d[u]);function a(){this.constructor=p}return a.prototype=d.prototype,p.prototype=new a,p.__super__=d.prototype,p},A={}.hasOwnProperty;f=R("./XMLWriterBase"),L.exports=y=function(m){x(p,m);function p(d){p.__super__.constructor.call(this,d)}return p.prototype.document=function(d,u){var a,i,t,s,e;for(u=this.filterOptions(u),s="",e=d.children,i=0,t=e.length;i<t;i++)a=e[i],s+=this.writeChildNode(a,u,0);return u.pretty&&s.slice(-u.newline.length)===u.newline&&(s=s.slice(0,-u.newline.length)),s},p}(f)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(R,L,r){"use strict";(function(){var y,f=function(m,p){return function(){return m.apply(p,arguments)}},x={}.hasOwnProperty;L.exports=y=function(){function A(m){this.assertLegalName=f(this.assertLegalName,this),this.assertLegalChar=f(this.assertLegalChar,this);var p,d,u;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),d=m.stringify||{};for(p in d){if(!x.call(d,p))continue;u=d[p],this[p]=u}}return A.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},A.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},A.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},A.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},A.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},A.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},A.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},A.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},A.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},A.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},A.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(m){var p,d;if(this.options.noValidation)return m;if(p="",this.options.version==="1.0"){if(p=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(p))throw new Error("Invalid character in string: "+m+" at index "+d.index)}else if(this.options.version==="1.1"&&(p=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(p)))throw new Error("Invalid character in string: "+m+" at index "+d.index);return m},A.prototype.assertLegalName=function(m){var p;if(this.options.noValidation)return m;if(this.assertLegalChar(m),p=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!m.match(p))throw new Error("Invalid character in name");return m},A.prototype.textEscape=function(m){var p;return this.options.noValidation?m:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(p,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},A.prototype.attEscape=function(m){var p;return this.options.noValidation?m:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(p,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},A}()}).call(void 0)},{}],280:[function(R,L,r){"use strict";var y=R("babel-runtime/core-js/object/create"),f=x(y);function x(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,p,d=function(i,t){for(var s in t)u.call(t,s)&&(i[s]=t[s]);function e(){this.constructor=i}return e.prototype=t.prototype,i.prototype=new e,i.__super__=t.prototype,i},u={}.hasOwnProperty;A=R("./NodeType"),m=R("./XMLCharacterData"),L.exports=p=function(a){d(i,a);function i(t,s){if(i.__super__.constructor.call(this,t),s==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.Text,this.value=this.stringify.text(s)}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var s,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,s=this.nextSibling;s;)l=l+s.data,s=s.nextSibling;return l}}),i.prototype.clone=function(){return(0,f.default)(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a,i,t,s,e,l,n,o,c,h={}.hasOwnProperty;c=R("./Utility").assign,y=R("./NodeType"),a=R("./XMLDeclaration"),i=R("./XMLDocType"),x=R("./XMLCData"),A=R("./XMLComment"),s=R("./XMLElement"),l=R("./XMLRaw"),n=R("./XMLText"),e=R("./XMLProcessingInstruction"),t=R("./XMLDummy"),m=R("./XMLDTDAttList"),p=R("./XMLDTDElement"),d=R("./XMLDTDEntity"),u=R("./XMLDTDNotation"),f=R("./WriterState"),L.exports=o=function(){function g(v){var b,S,E;v||(v={}),this.options=v,S=v.writer||{};for(b in S){if(!h.call(S,b))continue;E=S[b],this["_"+b]=this[b],this[b]=E}}return g.prototype.filterOptions=function(v){var b,S,E,C,_,T,w,O;return v||(v={}),v=c({},this.options,v),b={writer:this},b.pretty=v.pretty||!1,b.allowEmpty=v.allowEmpty||!1,b.indent=(S=v.indent)!=null?S:" ",b.newline=(E=v.newline)!=null?E:`
`,b.offset=(C=v.offset)!=null?C:0,b.dontPrettyTextNodes=(_=(T=v.dontPrettyTextNodes)!=null?T:v.dontprettytextnodes)!=null?_:0,b.spaceBeforeSlash=(w=(O=v.spaceBeforeSlash)!=null?O:v.spacebeforeslash)!=null?w:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=f.None,b},g.prototype.indent=function(v,b,S){var E;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(E=(S||0)+b.offset+1,E>0)?new Array(E).join(b.indent):""},g.prototype.endline=function(v,b,S){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(v,b,S){var E;return this.openAttribute(v,b,S),E=" "+v.name+'="'+v.value+'"',this.closeAttribute(v,b,S),E},g.prototype.cdata=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<![CDATA[",b.state=f.InsideTag,E+=v.value,b.state=f.CloseTag,E+="]]>"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.comment=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<!-- ",b.state=f.InsideTag,E+=v.value,b.state=f.CloseTag,E+=" -->"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.declaration=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<?xml",b.state=f.InsideTag,E+=' version="'+v.version+'"',v.encoding!=null&&(E+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(E+=' standalone="'+v.standalone+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.docType=function(v,b,S){var E,C,_,T,w;if(S||(S=0),this.openNode(v,b,S),b.state=f.OpenTag,T=this.indent(v,b,S),T+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?T+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(T+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(T+=" [",T+=this.endline(v,b,S),b.state=f.InsideTag,w=v.children,C=0,_=w.length;C<_;C++)E=w[C],T+=this.writeChildNode(E,b,S+1);b.state=f.CloseTag,T+="]"}return b.state=f.CloseTag,T+=b.spaceBeforeSlash+">",T+=this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),T},g.prototype.element=function(v,b,S){var E,C,_,T,w,O,I,k,M,U,P,X,F,j;S||(S=0),U=!1,P="",this.openNode(v,b,S),b.state=f.OpenTag,P+=this.indent(v,b,S)+"<"+v.name,X=v.attribs;for(M in X){if(!h.call(X,M))continue;E=X[M],P+=this.attribute(E,b,S)}if(_=v.children.length,T=_===0?null:v.children[0],_===0||v.children.every(function(K){return(K.type===y.Text||K.type===y.Raw)&&K.value===""}))b.allowEmpty?(P+=">",b.state=f.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S)):(b.state=f.CloseTag,P+=b.spaceBeforeSlash+"/>"+this.endline(v,b,S));else if(b.pretty&&_===1&&(T.type===y.Text||T.type===y.Raw)&&T.value!=null)P+=">",b.state=f.InsideTag,b.suppressPrettyCount++,U=!0,P+=this.writeChildNode(T,b,S+1),b.suppressPrettyCount--,U=!1,b.state=f.CloseTag,P+="</"+v.name+">"+this.endline(v,b,S);else{if(b.dontPrettyTextNodes){for(F=v.children,w=0,I=F.length;w<I;w++)if(C=F[w],(C.type===y.Text||C.type===y.Raw)&&C.value!=null){b.suppressPrettyCount++,U=!0;break}}for(P+=">"+this.endline(v,b,S),b.state=f.InsideTag,j=v.children,O=0,k=j.length;O<k;O++)C=j[O],P+=this.writeChildNode(C,b,S+1);b.state=f.CloseTag,P+=this.indent(v,b,S)+"</"+v.name+">",U&&b.suppressPrettyCount--,P+=this.endline(v,b,S),b.state=f.None}return this.closeNode(v,b,S),P},g.prototype.writeChildNode=function(v,b,S){switch(v.type){case y.CData:return this.cdata(v,b,S);case y.Comment:return this.comment(v,b,S);case y.Element:return this.element(v,b,S);case y.Raw:return this.raw(v,b,S);case y.Text:return this.text(v,b,S);case y.ProcessingInstruction:return this.processingInstruction(v,b,S);case y.Dummy:return"";case y.Declaration:return this.declaration(v,b,S);case y.DocType:return this.docType(v,b,S);case y.AttributeDeclaration:return this.dtdAttList(v,b,S);case y.ElementDeclaration:return this.dtdElement(v,b,S);case y.EntityDeclaration:return this.dtdEntity(v,b,S);case y.NotationDeclaration:return this.dtdNotation(v,b,S);default:throw new Error("Unknown XML node type: "+v.constructor.name)}},g.prototype.processingInstruction=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<?",b.state=f.InsideTag,E+=v.target,v.value&&(E+=" "+v.value),b.state=f.CloseTag,E+=b.spaceBeforeSlash+"?>",E+=this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.raw=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S),b.state=f.InsideTag,E+=v.value,b.state=f.CloseTag,E+=this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.text=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S),b.state=f.InsideTag,E+=v.value,b.state=f.CloseTag,E+=this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.dtdAttList=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<!ATTLIST",b.state=f.InsideTag,E+=" "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(E+=" "+v.defaultValueType),v.defaultValue&&(E+=' "'+v.defaultValue+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.dtdElement=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<!ELEMENT",b.state=f.InsideTag,E+=" "+v.name+" "+v.value,b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.dtdEntity=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<!ENTITY",b.state=f.InsideTag,v.pe&&(E+=" %"),E+=" "+v.name,v.value?E+=' "'+v.value+'"':(v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),v.nData&&(E+=" NDATA "+v.nData)),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.dtdNotation=function(v,b,S){var E;return this.openNode(v,b,S),b.state=f.OpenTag,E=this.indent(v,b,S)+"<!NOTATION",b.state=f.InsideTag,E+=" "+v.name,v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?E+=' PUBLIC "'+v.pubID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),b.state=f.CloseTag,E+=b.spaceBeforeSlash+">"+this.endline(v,b,S),b.state=f.None,this.closeNode(v,b,S),E},g.prototype.openNode=function(v,b,S){},g.prototype.closeNode=function(v,b,S){},g.prototype.openAttribute=function(v,b,S){},g.prototype.closeAttribute=function(v,b,S){},g}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(R,L,r){"use strict";(function(){var y,f,x,A,m,p,d,u,a,i;i=R("./Utility"),u=i.assign,a=i.isFunction,x=R("./XMLDOMImplementation"),A=R("./XMLDocument"),m=R("./XMLDocumentCB"),d=R("./XMLStringWriter"),p=R("./XMLStreamWriter"),y=R("./NodeType"),f=R("./WriterState"),L.exports.create=function(t,s,e,l){var n,o;if(t==null)throw new Error("Root element needs a name.");return l=u({},s,e,l),n=new A(l),o=n.element(t),l.headless||(n.declaration(l),(l.pubID!=null||l.sysID!=null)&&n.dtd(l)),o},L.exports.begin=function(t,s,e){var l;return a(t)&&(l=[t,s],s=l[0],e=l[1],t={}),s?new m(t,s,e):new A(t)},L.exports.stringWriter=function(t){return new d(t)},L.exports.streamWriter=function(t,s){return new p(t,s)},L.exports.implementation=new x,L.exports.nodeType=y,L.exports.writerState=f}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(R,L,r){L.exports=f;var y=Object.prototype.hasOwnProperty;function f(){for(var x={},A=0;A<arguments.length;A++){var m=arguments[A];for(var p in m)y.call(m,p)&&(x[p]=m[p])}return x}},{}],284:[function(R,L,r){"use strict";var y=R("buffer").Buffer,f=R("./sha"),x=R("./md5"),A={sha1:f,md5:x},m=64,p=y.alloc(m);p.fill(0);function d(i,t,s){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(s)||(s=y.from(s)),t.length>m?t=i(t):t.length<m&&(t=y.concat([t,p],m));for(var e=y.alloc(m),l=y.alloc(m),n=0;n<m;n++)e[n]=t[n]^54,l[n]=t[n]^92;var o=i(y.concat([e,s]));return i(y.concat([l,o]))}function u(i,t){i=i||"sha1";var s=A[i],e=[],l=0;return s||a("algorithm:",i,"is not yet supported"),{update:function(o){return y.isBuffer(o)||(o=y.from(o)),e.push(o),l+=o.length,this},digest:function(o){var c=y.concat(e),h=t?d(s,t,c):s(c);return e=null,o?h.toString(o):h}}}function a(){var i=[].slice.call(arguments).join(" ");throw new Error([i,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}r.createHash=function(i){return u(i)},r.createHmac=function(i,t){return u(i,t)},r.createCredentials=function(){a("sorry,createCredentials is not implemented yet")},r.createCipher=function(){a("sorry,createCipher is not implemented yet")},r.createCipheriv=function(){a("sorry,createCipheriv is not implemented yet")},r.createDecipher=function(){a("sorry,createDecipher is not implemented yet")},r.createDecipheriv=function(){a("sorry,createDecipheriv is not implemented yet")},r.createSign=function(){a("sorry,createSign is not implemented yet")},r.createVerify=function(){a("sorry,createVerify is not implemented yet")},r.createDiffieHellman=function(){a("sorry,createDiffieHellman is not implemented yet")},r.pbkdf2=function(){a("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(R,L,r){"use strict";var y=R("buffer").Buffer,f=4,x=y.alloc(f);x.fill(0);var A=8;function m(u,a){if(u.length%f!==0){var i=u.length+(f-u.length%f);u=y.concat([u,x],i)}for(var t=[],s=a?u.readInt32BE:u.readInt32LE,e=0;e<u.length;e+=f)t.push(s.call(u,e));return t}function p(u,a,i){for(var t=y.alloc(a),s=i?t.writeInt32BE:t.writeInt32LE,e=0;e<u.length;e++)s.call(t,u[e],e*4,!0);return t}function d(u,a,i,t){y.isBuffer(u)||(u=y.from(u));var s=a(m(u,t),u.length*A);return p(s,i,t)}L.exports={hash:d}},{buffer:73}],286:[function(R,L,r){"use strict";var y=R("./helpers");function f(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function x(t,s){t[s>>5]|=128<<s%32,t[(s+64>>>9<<4)+14]=s;for(var e=1732584193,l=-271733879,n=-1732584194,o=271733878,c=0;c<t.length;c+=16){var h=e,g=l,v=n,b=o;e=m(e,l,n,o,t[c+0],7,-680876936),o=m(o,e,l,n,t[c+1],12,-389564586),n=m(n,o,e,l,t[c+2],17,606105819),l=m(l,n,o,e,t[c+3],22,-1044525330),e=m(e,l,n,o,t[c+4],7,-176418897),o=m(o,e,l,n,t[c+5],12,1200080426),n=m(n,o,e,l,t[c+6],17,-1473231341),l=m(l,n,o,e,t[c+7],22,-45705983),e=m(e,l,n,o,t[c+8],7,1770035416),o=m(o,e,l,n,t[c+9],12,-1958414417),n=m(n,o,e,l,t[c+10],17,-42063),l=m(l,n,o,e,t[c+11],22,-1990404162),e=m(e,l,n,o,t[c+12],7,1804603682),o=m(o,e,l,n,t[c+13],12,-40341101),n=m(n,o,e,l,t[c+14],17,-1502002290),l=m(l,n,o,e,t[c+15],22,1236535329),e=p(e,l,n,o,t[c+1],5,-165796510),o=p(o,e,l,n,t[c+6],9,-1069501632),n=p(n,o,e,l,t[c+11],14,643717713),l=p(l,n,o,e,t[c+0],20,-373897302),e=p(e,l,n,o,t[c+5],5,-701558691),o=p(o,e,l,n,t[c+10],9,38016083),n=p(n,o,e,l,t[c+15],14,-660478335),l=p(l,n,o,e,t[c+4],20,-405537848),e=p(e,l,n,o,t[c+9],5,568446438),o=p(o,e,l,n,t[c+14],9,-1019803690),n=p(n,o,e,l,t[c+3],14,-187363961),l=p(l,n,o,e,t[c+8],20,1163531501),e=p(e,l,n,o,t[c+13],5,-1444681467),o=p(o,e,l,n,t[c+2],9,-51403784),n=p(n,o,e,l,t[c+7],14,1735328473),l=p(l,n,o,e,t[c+12],20,-1926607734),e=d(e,l,n,o,t[c+5],4,-378558),o=d(o,e,l,n,t[c+8],11,-2022574463),n=d(n,o,e,l,t[c+11],16,1839030562),l=d(l,n,o,e,t[c+14],23,-35309556),e=d(e,l,n,o,t[c+1],4,-1530992060),o=d(o,e,l,n,t[c+4],11,1272893353),n=d(n,o,e,l,t[c+7],16,-155497632),l=d(l,n,o,e,t[c+10],23,-1094730640),e=d(e,l,n,o,t[c+13],4,681279174),o=d(o,e,l,n,t[c+0],11,-358537222),n=d(n,o,e,l,t[c+3],16,-722521979),l=d(l,n,o,e,t[c+6],23,76029189),e=d(e,l,n,o,t[c+9],4,-640364487),o=d(o,e,l,n,t[c+12],11,-421815835),n=d(n,o,e,l,t[c+15],16,530742520),l=d(l,n,o,e,t[c+2],23,-995338651),e=u(e,l,n,o,t[c+0],6,-198630844),o=u(o,e,l,n,t[c+7],10,1126891415),n=u(n,o,e,l,t[c+14],15,-1416354905),l=u(l,n,o,e,t[c+5],21,-57434055),e=u(e,l,n,o,t[c+12],6,1700485571),o=u(o,e,l,n,t[c+3],10,-1894986606),n=u(n,o,e,l,t[c+10],15,-1051523),l=u(l,n,o,e,t[c+1],21,-2054922799),e=u(e,l,n,o,t[c+8],6,1873313359),o=u(o,e,l,n,t[c+15],10,-30611744),n=u(n,o,e,l,t[c+6],15,-1560198380),l=u(l,n,o,e,t[c+13],21,1309151649),e=u(e,l,n,o,t[c+4],6,-145523070),o=u(o,e,l,n,t[c+11],10,-1120210379),n=u(n,o,e,l,t[c+2],15,718787259),l=u(l,n,o,e,t[c+9],21,-343485551),e=a(e,h),l=a(l,g),n=a(n,v),o=a(o,b)}return Array(e,l,n,o)}function A(t,s,e,l,n,o){return a(i(a(a(s,t),a(l,o)),n),e)}function m(t,s,e,l,n,o,c){return A(s&e|~s&l,t,s,n,o,c)}function p(t,s,e,l,n,o,c){return A(s&l|e&~l,t,s,n,o,c)}function d(t,s,e,l,n,o,c){return A(s^e^l,t,s,n,o,c)}function u(t,s,e,l,n,o,c){return A(e^(s|~l),t,s,n,o,c)}function a(t,s){var e=(t&65535)+(s&65535),l=(t>>16)+(s>>16)+(e>>16);return l<<16|e&65535}function i(t,s){return t<<s|t>>>32-s}L.exports=function(s){return y.hash(s,x,16)}},{"./helpers":285}],287:[function(R,L,r){"use strict";var y=R("./helpers");function f(d,u){d[u>>5]|=128<<24-u%32,d[(u+64>>9<<4)+15]=u;for(var a=Array(80),i=1732584193,t=-271733879,s=-1732584194,e=271733878,l=-1009589776,n=0;n<d.length;n+=16){for(var o=i,c=t,h=s,g=e,v=l,b=0;b<80;b++){b<16?a[b]=d[n+b]:a[b]=p(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var S=m(m(p(i,5),x(b,t,s,e)),m(m(l,a[b]),A(b)));l=e,e=s,s=p(t,30),t=i,i=S}i=m(i,o),t=m(t,c),s=m(s,h),e=m(e,g),l=m(l,v)}return Array(i,t,s,e,l)}function x(d,u,a,i){return d<20?u&a|~u&i:d<40?u^a^i:d<60?u&a|u&i|a&i:u^a^i}function A(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function m(d,u){var a=(d&65535)+(u&65535),i=(d>>16)+(u>>16)+(a>>16);return i<<16|a&65535}function p(d,u){return d<<u|d>>>32-u}L.exports=function(u){return y.hash(u,f,20,!0)}},{"./helpers":285}],288:[function(R,L,r){"use strict";L.exports=function(){return function(){}}},{}],289:[function(R,L,r){(function(y){"use strict";var f=R("babel-runtime/helpers/typeof"),x=A(f);function A(i){return i&&i.__esModule?i:{default:i}}var m=R("stream"),p=m.Stream,d=R("../lib/common/utils/isArray"),u=d.isArray;L.exports.string=function(t){return typeof t=="string"},L.exports.array=u,L.exports.buffer=y.isBuffer;function a(i){return i instanceof p}L.exports.writableStream=function(t){return a(t)&&typeof t._write=="function"&&(0,x.default)(t._writableState)==="object"}}).call(this,{isBuffer:R("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(R,L,r){"use strict";r.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(f){return y}},r.escape=R("escape-html"),r.timestamp=function(f){if(f){var x=f;return typeof x=="string"&&(x=Number(x)),String(f).length===10&&(x*=1e3),new Date(x)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(R,L,r){(function(y,f){"use strict";var x=R("babel-runtime/core-js/json/stringify"),A=d(x),m=R("babel-runtime/helpers/typeof"),p=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var u=R("util"),a=R("url"),i=R("http"),t=R("https"),s=R("debug")("urllib"),e=R("humanize-ms"),l,n=0,o=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,S){return b===void 0?S:b}function g(b,S){return function(E,C,_){if(E)return S(E);b({data:C,status:_.statusCode,headers:_.headers,res:_})}}r.TIMEOUTS=[e("300s"),e("300s")];var v=["json","text"];r.request=function(S,E,C){return arguments.length===2&&typeof E=="function"&&(C=E,E=null),typeof C=="function"?r.requestWithCallback(S,E,C):(l||(l=R("any-promise")),new l(function(_,T){r.requestWithCallback(S,E,g(_,T))}))},r.requestWithCallback=function(S,E,C){if(!S||typeof S!="string"&&(typeof S=="undefined"?"undefined":(0,p.default)(S))!=="object"){var _=u.format("expect request url to be a string or a http request options, but got %j",S);throw new Error(_)}arguments.length===2&&typeof E=="function"&&(C=E,E=null),E=E||{},n>=o&&(n=0);var T=++n;E.requestUrls=E.requestUrls||[];var w={requestId:T,url:S,args:E,ctx:E.ctx};E.emitter&&E.emitter.emit("request",w),E.timeout=E.timeout||r.TIMEOUTS,E.maxRedirects=E.maxRedirects||10,E.streaming=E.streaming||E.customResponse;var O=Date.now(),I;typeof S=="string"?(c.test(S)||(S="http://"+S),I=a.parse(S)):I=S;var k=(E.type||E.method||I.method||"GET").toUpperCase(),M=I.port||80,U=i,P=h(E.agent,r.agent),X=E.fixJSONCtlChars;I.protocol==="https:"&&(U=t,P=h(E.httpsAgent,r.httpsAgent),I.port||(M=443));var F={host:I.hostname||I.host||"localhost",path:I.path||"/",method:k,port:M,agent:P,headers:E.headers||{},lookup:E.lookup};Array.isArray(E.timeout)?F.requestTimeout=E.timeout[E.timeout.length-1]:typeof E.timeout!="undefined"&&(F.requestTimeout=E.timeout);for(var j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],K=0;K<j.length;K++){var z=j[K];E.hasOwnProperty(z)&&(F[z]=E[z])}F.rejectUnauthorized===!1&&!F.hasOwnProperty("secureOptions")&&(F.secureOptions=R("constants").SSL_OP_NO_TLSv1_2);var V=E.auth||I.auth;V&&(F.auth=V);var Q=E.content||E.data,G=k==="GET"||k==="HEAD"||E.dataAsQueryString;if(!E.content&&(Q&&!(typeof Q=="string"||f.isBuffer(Q))))if(G)Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var ee=F.headers["Content-Type"]||F.headers["content-type"];ee||(E.contentType==="json"?ee="application/json":ee="application/x-www-form-urlencoded",F.headers["Content-Type"]=ee),parseContentType(ee).type==="application/json"?Q=(0,A.default)(Q):Q=E.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(F.path+=(I.query?"&":"?")+Q,Q=null);var se=0;if(Q){var ye=Q.length;f.isBuffer(Q)||(ye=f.byteLength(Q)),se=F.headers["Content-Length"]=ye}E.dataType==="json"&&(F.headers.Accept="application/json"),typeof E.beforeRequest=="function"&&E.beforeRequest(F);var he=null,ke=null,Pe=null,Ue=!1,$e=!1,Ge=0,ht=-1,Fe=!1,oe="",rt="",fe=null;E.timing&&(fe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function J(){he&&(clearTimeout(he),he=null)}function Y(){ke&&(clearTimeout(ke),ke=null)}function $(je,Zt,ut){if(Y(),!C){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,y.pid,F.method,S),je&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),T,y.pid,je.name,je.message,je.stack);return}var Ht=C;C=null;var dr={};if(ut&&(ht=ut.statusCode,dr=ut.headers),ht===401&&dr["www-authenticate"]&&(!E.headers||!E.headers.Authorization)&&E.digestAuth){var Vt=dr["www-authenticate"];if(Vt.indexOf("Digest ")>=0)return s("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,S,Vt),E.headers=E.headers||{},E.headers.Authorization=digestAuthHeader(F.method,F.path,Vt,E.digestAuth),s("Request#%d %s: auth with digest header: %s",T,S,E.headers.Authorization),ut.headers["set-cookie"]&&(E.headers.Cookie=ut.headers["set-cookie"].join(";")),r.requestWithCallback(S,E,Ht)}var Mt=Date.now()-O;fe&&(fe.contentDownload=Mt),s("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Mt,Ge,ht,F.method,F.host,F.path,$e,fe);var Gt={status:ht,statusCode:ht,headers:dr,size:Ge,aborted:Fe,rt:Mt,keepAliveSocket:$e,data:Zt,requestUrls:E.requestUrls,timing:fe,remoteAddress:oe,remotePort:rt};if(je){var Ve="";P&&typeof P.getCurrentStatus=="function"&&(Ve=", agent status: "+(0,A.default)(P.getCurrentStatus())),je.message+=", "+F.method+" "+S+" "+ht+" (connected: "+Ue+", keepalive socket: "+$e+Ve+`)
headers: `+(0,A.default)(dr),je.data=Zt,je.path=F.path,je.status=ht,je.headers=dr,je.res=Gt}Ht(je,Zt,E.streaming?ut:Gt),E.emitter&&(w.url=S,w.socket=gt&&gt.connection,w.options=F,w.size=se,E.emitter.emit("response",{requestId:T,error:je,ctx:E.ctx,req:w,res:Gt}))}function de(je){var Zt=null;if(E.followRedirect&&statuses.redirect[je.statusCode]){E._followRedirectCount=(E._followRedirectCount||0)+1;var ut=je.headers.location;if(!ut)Zt=new Error("Got statusCode "+je.statusCode+" but cannot resolve next location from headers"),Zt.name="FollowRedirectError";else if(E._followRedirectCount>E.maxRedirects)Zt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+S),Zt.name="MaxRedirectError";else{var Ht=E.formatRedirectUrl?E.formatRedirectUrl(S,ut):a.resolve(S,ut);s("Request#%d %s: `redirected` from %s to %s",T,F.path,S,Ht),Y(),E.headers&&E.headers.Host&&c.test(ut)&&(E.headers.Host=null);var dr=C;return C=null,r.requestWithCallback(Ht,E,dr),{redirect:!0,error:null}}}return{redirect:!1,error:Zt}}!F.headers["User-Agent"]&&!F.headers["user-agent"]&&(F.headers["User-Agent"]=navigator.userAgent),E.gzip&&(!F.headers["Accept-Encoding"]&&!F.headers["accept-encoding"]&&(F.headers["Accept-Encoding"]="gzip"));function we(je,Zt,ut){var Ht=je.headers["content-encoding"];return ut(null,Zt,Ht)}var Ce=E.writeStream;s("Request#%d %s %s with headers %j, options.path: %s",T,k,S,F.headers,F.path),E.requestUrls.push(S);function Se(je){if(fe&&(fe.waiting=Date.now()-O),s("Request#%d %s `req response` event emit: status %d, headers: %j",T,S,je.statusCode,je.headers),E.streaming){var Zt=de(je);if(Zt.redirect){je.resume();return}return Zt.error?(je.resume(),$(Zt.error,null,je)):$(null,null,je)}if(je.on("close",function(){s("Request#%d %s: `res close` event emit, total size %d",T,S,Ge)}),je.on("error",function(){s("Request#%d %s: `res error` event emit, total size %d",T,S,Ge)}),je.on("aborted",function(){Fe=!0,s("Request#%d %s: `res aborted` event emit, total size %d",T,S,Ge)}),Ce){var Zt=de(je);if(Zt.redirect){je.resume();return}return Zt.error?(je.resume(),Ce.end(),$(Zt.error,null,je)):(E.consumeWriteStream===!1?je.on("end",$.bind(null,null,null,je)):isNode010||isNode012?first([[Ce,"close"],[je,"aborted"]],function(dr,Vt,Mt){s("Request#%d %s: writeStream or res %s event emitted",T,S,Mt),$(Pe||null,null,je)}):Ce.on("close",function(){s("Request#%d %s: writeStream close event emitted",T,S),$(Pe||null,null,je)}),je.pipe(Ce))}var ut=[];je.on("data",function(Ht){s("Request#%d %s: `res data` event emit, size %d",T,S,Ht.length),Ge+=Ht.length,ut.push(Ht)}),je.on("end",function(){var Ht=f.concat(ut,Ge);if(s("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,S,Ge,je._dumped),Pe)return $(Pe,Ht,je);var dr=de(je);if(dr.error)return $(dr.error,Ht,je);if(dr.redirect)return;we(je,Ht,function(Vt,Mt,Gt){if(Vt)return $(Vt,Ht,je);if(!Gt&&v.indexOf(E.dataType)>=0){try{Mt=decodeBodyByCharset(Mt,je)}catch(me){return s("decodeBodyByCharset error: %s",me),$(null,Mt,je)}if(E.dataType==="json")if(Ge===0)Mt=null;else{var Ve=parseJSON(Mt,X);Ve.error?Vt=Ve.error:Mt=Ve.data}}Fe&&s("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,S),$(Vt,Mt,je)})})}var le,pe;Array.isArray(E.timeout)?(le=e(E.timeout[0]),pe=e(E.timeout[1])):le=pe=e(E.timeout),s("ConnectTimeout: %d, ResponseTimeout: %d",le,pe);function _e(){s("Connect timer ticking, timeout: %d",le),he=setTimeout(function(){he=null,ht===-1&&(ht=-2);var je="Connect timeout for "+le+"ms",Zt="ConnectionTimeoutError";gt.socket||(Zt="SocketAssignTimeoutError",je+=", working sockets is full"),Pe=new Error(je),Pe.name=Zt,Pe.requestId=T,s("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,S,Pe.name,je,Ue),ct()},le)}function tt(){s("Response timer ticking, timeout: %d",pe),ke=setTimeout(function(){ke=null;var je="Response timeout for "+pe+"ms",Zt="ResponseTimeoutError";Pe=new Error(je),Pe.name=Zt,Pe.requestId=T,s("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,S,Pe.name,je,Ue),ct()},pe)}var gt;F.mode=E.mode?E.mode:"";try{gt=U.request(F,Se)}catch(je){return $(je)}typeof window=="undefined"?_e():gt.on("requestTimeout",function(){ht===-1&&(ht=-2);var je="Connect timeout for "+le+"ms",Zt="ConnectionTimeoutError";Pe=new Error(je),Pe.name=Zt,Pe.requestId=T,ct()});function ct(){s("Request#%d %s abort, connected: %s",T,S,Ue),gt.socket||(Pe.noSocket=!0,$(Pe)),gt.abort()}return fe&&gt.on("finish",function(){fe.requestSent=Date.now()-O}),gt.once("socket",function(je){fe&&(fe.queuing=Date.now()-O),isNode010&&je.socket&&(je=je.socket);var Zt=je.readyState;if(Zt==="opening"){je.once("lookup",function(ut,Ht,dr){s("Request#%d %s lookup: %s, %s, %s",T,S,ut,Ht,dr),fe&&(fe.dnslookup=Date.now()-O),Ht&&(oe=Ht)}),je.once("connect",function(){fe&&(fe.connected=Date.now()-O),J(),tt(),s("Request#%d %s new socket connected",T,S),Ue=!0,oe||(oe=je.remoteAddress),rt=je.remotePort});return}s("Request#%d %s reuse socket connected, readyState: %s",T,S,Zt),Ue=!0,$e=!0,oe||(oe=je.remoteAddress),rt=je.remotePort,J(),tt()}),gt.on("error",function(je){(je.name==="Error"||je.name==="TypeError")&&(je.name=Ue?"ResponseError":"RequestError"),je.message+=' (req "error")',s("Request#%d %s `req error` event emit, %s: %s",T,S,je.name,je.message),$(Pe||je)}),Ce&&Ce.once("error",function(je){je.message+=' (writeStream "error")',Pe=je,s("Request#%d %s `writeStream error` event emit, %s: %s",T,S,je.name,je.message),ct()}),E.stream?(E.stream.pipe(gt),E.stream.once("error",function(je){je.message+=' (stream "error")',Pe=je,s("Request#%d %s `readStream error` event emit, %s: %s",T,S,je.name,je.message),ct()})):gt.end(Q),gt.requestId=T,gt}}).call(this,R("_process"),R("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n0Ed:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("zlgR"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},n1HI:function(R,L,r){var y=r("hX1E"),f=y.normalizeRadian,x=Math.PI*2;function A(m,p,d,u,a,i,t,s,e){if(t===0)return!1;var l=t;s-=m,e-=p;var n=Math.sqrt(s*s+e*e);if(n-l>d||n+l<d)return!1;if(Math.abs(u-a)%x<1e-4)return!0;if(i){var o=u;u=f(a),a=f(o)}else u=f(u),a=f(a);u>a&&(a+=x);var c=Math.atan2(e,s);return c<0&&(c+=x),c>=u&&c<=a||c+x>=u&&c+x<=a}L.containStroke=A},n4Lv:function(R,L,r){var y=r("7hqr"),f=y.isDimensionStacked,x=r("bYtY"),A=x.map;function m(u,a,i){var t=u.getBaseAxis(),s=u.getOtherAxis(t),e=p(s,i),l=t.dim,n=s.dim,o=a.mapDimension(n),c=a.mapDimension(l),h=n==="x"||n==="radius"?1:0,g=A(u.dimensions,function(S){return a.mapDimension(S)}),v,b=a.getCalculationInfo("stackResultDimension");return(v|=f(a,g[0]))&&(g[0]=b),(v|=f(a,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:n,baseAxisDim:l,stacked:!!v,valueDim:o,baseDim:c,baseDataOffset:h,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function p(u,a){var i=0,t=u.scale.getExtent();return a==="start"?i=t[0]:a==="end"?i=t[1]:t[0]>0?i=t[0]:t[1]<0&&(i=t[1]),i}function d(u,a,i,t){var s=NaN;u.stacked&&(s=i.get(i.getCalculationInfo("stackedOverDimension"),t)),isNaN(s)&&(s=u.valueStart);var e=u.baseDataOffset,l=[];return l[e]=i.get(u.baseDim,t),l[1-e]=s,a.dataToPoint(l)}L.prepareDataCoordInfo=m,L.getStackedOnPoint=d},n6Mw:function(R,L,r){var y=r("SrGk"),f=r("bYtY"),x=r("Fofx");function A(p,d){y.call(this,p,d,"clipPath","__clippath_in_use__")}f.inherits(A,y),A.prototype.update=function(p){var d=this.getSvgElement(p);d&&this.updateDom(d,p.__clipPaths,!1);var u=this.getTextSvgElement(p);u&&this.updateDom(u,p.__clipPaths,!0),this.markUsed(p)},A.prototype.updateDom=function(p,d,u){if(d&&d.length>0){var a=this.getDefs(!0),i=d[0],t,s,e=u?"_textDom":"_dom";i[e]?(s=i[e].getAttribute("id"),t=i[e],a.contains(t)||a.appendChild(t)):(s="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",s),a.appendChild(t),i[e]=t);var l=this.getSvgProxy(i);if(i.transform&&i.parent.invTransform&&!u){var n=Array.prototype.slice.call(i.transform);x.mul(i.transform,i.parent.invTransform,i.transform),l.brush(i),i.transform=n}else l.brush(i);var o=this.getSvgElement(i);t.innerHTML="",t.appendChild(o.cloneNode()),p.setAttribute("clip-path","url(#"+s+")"),d.length>1&&this.updateDom(t,d.slice(1),u)}else p&&p.setAttribute("clip-path","none")},A.prototype.markUsed=function(p){var d=this;p.__clipPaths&&f.each(p.__clipPaths,function(u){u._dom&&y.prototype.markUsed.call(d,u._dom),u._textDom&&y.prototype.markUsed.call(d,u._textDom)})};var m=A;R.exports=m},nCxF:function(R,L,r){var y=r("QBsz"),f=y.min,x=y.max,A=y.scale,m=y.distance,p=y.add,d=y.clone,u=y.sub;function a(i,t,s,e){var l=[],n=[],o=[],c=[],h,g,v,b;if(e){v=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var S=0,E=i.length;S<E;S++)f(v,v,i[S]),x(b,b,i[S]);f(v,v,e[0]),x(b,b,e[1])}for(var S=0,E=i.length;S<E;S++){var C=i[S];if(s)h=i[S?S-1:E-1],g=i[(S+1)%E];else if(S===0||S===E-1){l.push(d(i[S]));continue}else h=i[S-1],g=i[S+1];u(n,g,h),A(n,n,t);var _=m(C,h),T=m(C,g),w=_+T;w!==0&&(_/=w,T/=w),A(o,n,-_),A(c,n,T);var O=p([],C,o),I=p([],C,c);e&&(x(O,O,v),f(O,O,b),x(I,I,v),f(I,I,b)),l.push(O),l.push(I)}return s&&l.push(l.shift()),l}R.exports=a},nKiI:function(R,L,r){var y=r("bYtY"),f=r("mFDi"),x=r("OELB"),A=x.parsePercent,m=x.MAX_SAFE_INTEGER,p=r("+TT/"),d=r("VaxA"),u=Math.max,a=Math.min,i=y.retrieve,t=y.each,s=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],n=["upperLabel","height"],o={seriesType:"treemap",reset:function(O,I,k,M){var U=k.getWidth(),P=k.getHeight(),X=O.option,F=p.getLayoutRect(O.getBoxLayoutParams(),{width:k.getWidth(),height:k.getHeight()}),j=X.size||[],K=A(i(F.width,j[0]),U),z=A(i(F.height,j[1]),P),V=M&&M.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(M,Q,O),ee=V==="treemapRender"||V==="treemapMove"?M.rootRect:null,se=O.getViewRoot(),ye=d.getPathToRoot(se);if(V!=="treemapMove"){var he=V==="treemapZoomToNode"?C(O,G,se,K,z):ee?[ee.width,ee.height]:[K,z],ke=X.sort;ke&&ke!=="asc"&&ke!=="desc"&&(ke="desc");var Pe={squareRatio:X.squareRatio,sort:ke,leafDepth:X.leafDepth};se.hostTree.clearLayouts();var Ue={x:0,y:0,width:he[0],height:he[1],area:he[0]*he[1]};se.setLayout(Ue),c(se,Pe,!1,0);var Ue=se.getLayout();t(ye,function(Ge,ht){var Fe=(ye[ht+1]||se).getValue();Ge.setLayout(y.extend({dataExtent:[Fe,Fe],borderWidth:0,upperHeight:0},Ue))})}var $e=O.getData().tree.root;$e.setLayout(_(F,ee,G),!0),O.setLayoutInfo(F),T($e,new f(-F.x,-F.y,U,P),ye,se,0)}};function c(O,I,k,M){var U,P;if(O.isRemoved())return;var X=O.getLayout();U=X.width,P=X.height;var F=O.getModel(),j=F.get(s),K=F.get(e)/2,z=w(F),V=Math.max(j,z),Q=j-K,G=V-K,F=O.getModel();O.setLayout({borderWidth:j,upperHeight:V,upperLabelHeight:z},!0),U=u(U-2*Q,0),P=u(P-Q-G,0);var ee=U*P,se=h(O,F,ee,I,k,M);if(!se.length)return;var ye={x:Q,y:G,width:U,height:P},he=a(U,P),ke=Infinity,Pe=[];Pe.area=0;for(var Ue=0,$e=se.length;Ue<$e;){var Ge=se[Ue];Pe.push(Ge),Pe.area+=Ge.getLayout().area;var ht=S(Pe,he,I.squareRatio);ht<=ke?(Ue++,ke=ht):(Pe.area-=Pe.pop().getLayout().area,E(Pe,he,ye,K,!1),he=a(ye.width,ye.height),Pe.length=Pe.area=0,ke=Infinity)}if(Pe.length&&E(Pe,he,ye,K,!0),!k){var Fe=F.get("childrenVisibleMin");Fe!=null&&ee<Fe&&(k=!0)}for(var Ue=0,$e=se.length;Ue<$e;Ue++)c(se[Ue],I,k,M+1)}function h(O,I,k,M,U,P){var X=O.children||[],F=M.sort;F!=="asc"&&F!=="desc"&&(F=null);var j=M.leafDepth!=null&&M.leafDepth<=P;if(U&&!j)return O.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),v(X,F);var K=b(I,X,F);if(K.sum===0)return O.viewChildren=[];if(K.sum=g(I,k,K.sum,F,X),K.sum===0)return O.viewChildren=[];for(var z=0,V=X.length;z<V;z++){var Q=X[z].getValue()/K.sum*k;X[z].setLayout({area:Q})}return j&&(X.length&&O.setLayout({isLeafRoot:!0},!0),X.length=0),O.viewChildren=X,O.setLayout({dataExtent:K.dataExtent},!0),X}function g(O,I,k,M,U){if(!M)return k;for(var P=O.get("visibleMin"),X=U.length,F=X,j=X-1;j>=0;j--){var K=U[M==="asc"?X-j-1:j].getValue();K/k*I<P&&(F=j,k-=K)}return M==="asc"?U.splice(0,X-F):U.splice(F,X-F),k}function v(O,I){return I&&O.sort(function(k,M){var U=I==="asc"?k.getValue()-M.getValue():M.getValue()-k.getValue();return U===0?I==="asc"?k.dataIndex-M.dataIndex:M.dataIndex-k.dataIndex:U}),O}function b(O,I,k){for(var M=0,U=0,P=I.length;U<P;U++)M+=I[U].getValue();var X=O.get("visualDimension"),F;if(!I||!I.length)F=[NaN,NaN];else if(X==="value"&&k)F=[I[I.length-1].getValue(),I[0].getValue()],k==="asc"&&F.reverse();else{var F=[Infinity,-Infinity];t(I,function(K){var z=K.getValue(X);z<F[0]&&(F[0]=z),z>F[1]&&(F[1]=z)})}return{sum:M,dataExtent:F}}function S(O,I,k){for(var M=0,U=Infinity,P=0,X,F=O.length;P<F;P++)X=O[P].getLayout().area,X&&(X<U&&(U=X),X>M&&(M=X));var j=O.area*O.area,K=I*I*k;return j?u(K*M/j,j/(K*U)):Infinity}function E(O,I,k,M,U){var P=I===k.width?0:1,X=1-P,F=["x","y"],j=["width","height"],K=k[F[P]],z=I?O.area/I:0;(U||z>k[j[X]])&&(z=k[j[X]]);for(var V=0,Q=O.length;V<Q;V++){var G=O[V],ee={},se=z?G.getLayout().area/z:0,ye=ee[j[X]]=u(z-2*M,0),he=k[F[P]]+k[j[P]]-K,ke=V===Q-1||he<se?he:se,Pe=ee[j[P]]=u(ke-2*M,0);ee[F[X]]=k[F[X]]+a(M,ye/2),ee[F[P]]=K+a(M,Pe/2),K+=ke,G.setLayout(ee,!0)}k[F[X]]+=z,k[j[X]]-=z}function C(O,I,k,M,U){var P=(I||{}).node,X=[M,U];if(!P||P===k)return X;for(var F,j=M*U,K=j*O.option.zoomToNodeRatio;F=P.parentNode;){for(var z=0,V=F.children,Q=0,G=V.length;Q<G;Q++)z+=V[Q].getValue();var ee=P.getValue();if(ee===0)return X;K*=z/ee;var se=F.getModel(),ye=se.get(s),he=Math.max(ye,w(se,ye));K+=4*ye*ye+(3*ye+he)*Math.pow(K,.5),K>m&&(K=m),P=F}K<j&&(K=j);var ke=Math.pow(K/j,.5);return[M*ke,U*ke]}function _(O,I,k){if(I)return{x:I.x,y:I.y};var M={x:0,y:0};if(!k)return M;var U=k.node,P=U.getLayout();if(!P)return M;for(var X=[P.width/2,P.height/2],F=U;F;){var j=F.getLayout();X[0]+=j.x,X[1]+=j.y,F=F.parentNode}return{x:O.width/2-X[0],y:O.height/2-X[1]}}function T(O,I,k,M,U){var P=O.getLayout(),X=k[U],F=X&&X===O;if(X&&!F||U===k.length&&O!==M)return;O.setLayout({isInView:!0,invisible:!F&&!I.intersect(P),isAboveViewRoot:F},!0);var j=new f(I.x-P.x,I.y-P.y,I.width,I.height);t(O.viewChildren||[],function(K){T(K,j,k,M,U+1)})}function w(O){return O.get(l)?O.get(n):0}R.exports=o},nPnh:function(R,L){var r=Math.round;function y(A,m,p){if(!m)return;var d=m.x1,u=m.x2,a=m.y1,i=m.y2;A.x1=d,A.x2=u,A.y1=a,A.y2=i;var t=p&&p.lineWidth;if(!t)return;r(d*2)===r(u*2)&&(A.x1=A.x2=x(d,t,!0)),r(a*2)===r(i*2)&&(A.y1=A.y2=x(a,t,!0))}function f(A,m,p){if(!m)return;var d=m.x,u=m.y,a=m.width,i=m.height;A.x=d,A.y=u,A.width=a,A.height=i;var t=p&&p.lineWidth;if(!t)return;A.x=x(d,t,!0),A.y=x(u,t,!0),A.width=Math.max(x(d+a,t,!1)-A.x,a===0?0:1),A.height=Math.max(x(u+i,t,!1)-A.y,i===0?0:1)}function x(A,m,p){if(!m)return A;var d=r(A*2);return(d+r(m))%2===0?d/2:(d+(p?1:-1))/2}L.subPixelOptimizeLine=y,L.subPixelOptimizeRect=f,L.subPixelOptimize=x},nRaC:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("0fbx"),A=r.n(x),m=r("OaEy"),p=r("R9oj")},nVfU:function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=f.parsePercent,A=r("7hqr"),m=A.isDimensionStacked,p=r("zM3Q"),d="__ec_stack_",u=.5,a=typeof Float32Array!="undefined"?Float32Array:Array;function i(E){return E.get("stack")||d+E.seriesIndex}function t(E){return E.dim+E.index}function s(E){var C=[],_=E.axis,T="axis0";if(_.type!=="category")return;for(var w=_.getBandWidth(),O=0;O<E.count||0;O++)C.push(y.defaults({bandWidth:w,axisKey:T,stackId:d+O},E));for(var I=o(C),k=[],O=0;O<E.count;O++){var M=I[T][d+O];M.offsetCenter=M.offset+M.width/2,k.push(M)}return k}function e(E,C){var _=[];return C.eachSeriesByType(E,function(T){v(T)&&!b(T)&&_.push(T)}),_}function l(E){var C={};y.each(E,function(M){var U=M.coordinateSystem,P=U.getBaseAxis();if(P.type!=="time"&&P.type!=="value")return;for(var X=M.getData(),F=P.dim+"_"+P.index,j=X.mapDimension(P.dim),K=0,z=X.count();K<z;++K){var V=X.get(j,K);C[F]?C[F].push(V):C[F]=[V]}});var _=[];for(var T in C)if(C.hasOwnProperty(T)){var w=C[T];if(w){w.sort(function(M,U){return M-U});for(var O=null,I=1;I<w.length;++I){var k=w[I]-w[I-1];k>0&&(O=O===null?k:Math.min(O,k))}_[T]=O}}return _}function n(E){var C=l(E),_=[];return y.each(E,function(T){var w=T.coordinateSystem,O=w.getBaseAxis(),I=O.getExtent(),k;if(O.type==="category")k=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var M=O.dim+"_"+O.index,U=C[M],P=Math.abs(I[1]-I[0]),X=O.scale.getExtent(),F=Math.abs(X[1]-X[0]);k=U?P/F*U:P}else{var j=T.getData();k=Math.abs(I[1]-I[0])/j.count()}var K=x(T.get("barWidth"),k),z=x(T.get("barMaxWidth"),k),V=x(T.get("barMinWidth")||1,k),Q=T.get("barGap"),G=T.get("barCategoryGap");_.push({bandWidth:k,barWidth:K,barMaxWidth:z,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(O),stackId:i(T)})}),o(_)}function o(E){var C={};y.each(E,function(T,w){var O=T.axisKey,I=T.bandWidth,k=C[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=k.stacks;C[O]=k;var U=T.stackId;M[U]||k.autoWidthCount++,M[U]=M[U]||{width:0,maxWidth:0};var P=T.barWidth;P&&!M[U].width&&(M[U].width=P,P=Math.min(k.remainedWidth,P),k.remainedWidth-=P);var X=T.barMaxWidth;X&&(M[U].maxWidth=X);var F=T.barMinWidth;F&&(M[U].minWidth=F);var j=T.barGap;j!=null&&(k.gap=j);var K=T.barCategoryGap;K!=null&&(k.categoryGap=K)});var _={};return y.each(C,function(T,w){_[w]={};var O=T.stacks,I=T.bandWidth,k=x(T.categoryGap,I),M=x(T.gap,1),U=T.remainedWidth,P=T.autoWidthCount,X=(U-k)/(P+(P-1)*M);X=Math.max(X,0),y.each(O,function(z){var V=z.maxWidth,Q=z.minWidth;if(z.width){var G=z.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),z.width=G,U-=G+M*G,P--}else{var G=X;V&&V<G&&(G=Math.min(V,U)),Q&&Q>G&&(G=Q),G!==X&&(z.width=G,U-=G+M*G,P--)}}),X=(U-k)/(P+(P-1)*M),X=Math.max(X,0);var F=0,j;y.each(O,function(z,V){z.width||(z.width=X),j=z,F+=z.width*(1+M)}),j&&(F-=j.width*M);var K=-F/2;y.each(O,function(z,V){_[w][V]=_[w][V]||{bandWidth:I,offset:K,width:z.width},K+=z.width*(1+M)})}),_}function c(E,C,_){if(E&&C){var T=E[t(C)];return T!=null&&_!=null&&(T=T[i(_)]),T}}function h(E,C){var _=e(E,C),T=n(_),w={},O={};y.each(_,function(I){var k=I.getData(),M=I.coordinateSystem,U=M.getBaseAxis(),P=i(I),X=T[t(U)][P],F=X.offset,j=X.width,K=M.getOtherAxis(U),z=I.get("barMinHeight")||0;w[P]=w[P]||[],O[P]=O[P]||[],k.setLayout({bandWidth:X.bandWidth,offset:F,size:j});for(var V=k.mapDimension(K.dim),Q=k.mapDimension(U.dim),G=m(k,V),ee=K.isHorizontal(),se=S(U,K,G),ye=0,he=k.count();ye<he;ye++){var ke=k.get(V,ye),Pe=k.get(Q,ye),Ue=ke>=0?"p":"n",$e=se;G&&(w[P][Pe]||(w[P][Pe]={p:se,n:se}),$e=w[P][Pe][Ue]);var Ge,ht,Fe,oe;if(ee){var rt=M.dataToPoint([ke,Pe]);Ge=$e,ht=rt[1]+F,Fe=rt[0]-se,oe=j,Math.abs(Fe)<z&&(Fe=(Fe<0?-1:1)*z),isNaN(Fe)||G&&(w[P][Pe][Ue]+=Fe)}else{var rt=M.dataToPoint([Pe,ke]);Ge=rt[0]+F,ht=$e,Fe=j,oe=rt[1]-se,Math.abs(oe)<z&&(oe=(oe<=0?-1:1)*z),isNaN(oe)||G&&(w[P][Pe][Ue]+=oe)}k.setItemLayout(ye,{x:Ge,y:ht,width:Fe,height:oe})}},this)}var g={seriesType:"bar",plan:p(),reset:function(E){if(!v(E)||!b(E))return;var C=E.getData(),_=E.coordinateSystem,T=_.grid.getRect(),w=_.getBaseAxis(),O=_.getOtherAxis(w),I=C.mapDimension(O.dim),k=C.mapDimension(w.dim),M=O.isHorizontal(),U=M?0:1,P=c(n([E]),w,E).width;return P>u||(P=u),{progress:X};function X(F,j){for(var K=F.count,z=new a(K*2),V=new a(K*2),Q=new a(K),G,ee=[],se=[],ye=0,he=0;(G=F.next())!=null;)se[U]=j.get(I,G),se[1-U]=j.get(k,G),ee=_.dataToPoint(se,null,ee),V[ye]=M?T.x+T.width:ee[0],z[ye++]=ee[0],V[ye]=M?ee[1]:T.y+T.height,z[ye++]=ee[1],Q[he++]=G;j.setLayout({largePoints:z,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:P,valueAxisStart:S(w,O,!1),backgroundStart:M?T.x:T.y,valueAxisHorizontal:M})}}};function v(E){return E.coordinateSystem&&E.coordinateSystem.type==="cartesian2d"}function b(E){return E.pipelineContext&&E.pipelineContext.large}function S(E,C,_){return C.toGlobalCoord(C.dataToCoord(C.type==="log"?1:0))}L.getLayoutOnAxis=s,L.prepareLayoutBarSeries=e,L.makeColumnLayout=n,L.retrieveColumnLayout=c,L.layout=h,L.largeLayout=g},ngQI:function(R,L,r){"use strict";r.d(L,"a",function(){return gu}),r.d(L,"b",function(){return js}),r.d(L,"c",function(){return on});var y=r("q1tI"),f=r.n(y),x=r("dI71"),A=r("wx14"),m=r("ANjH"),p=r("/MKj");function d(Be,ie){if(Be.length!==ie.length)return!1;for(var Oe=0;Oe<Be.length;Oe++)if(Be[Oe]!==ie[Oe])return!1;return!0}function u(Be,ie){var Oe=Object(y.useState)(function(){return{inputs:ie,result:Be()}})[0],et=Object(y.useRef)(!0),bt=Object(y.useRef)(Oe),zt=et.current||Boolean(ie&&bt.current.inputs&&d(ie,bt.current.inputs)),qt=zt?bt.current:{inputs:ie,result:Be()};return Object(y.useEffect)(function(){et.current=!1,bt.current=qt},[qt]),qt.result}function a(Be,ie){return u(function(){return Be},ie)}var i=u,t=a,s=r("9R94"),e=function(ie){var Oe=ie.top,et=ie.right,bt=ie.bottom,zt=ie.left,qt=et-zt,ar=bt-Oe,Kr={top:Oe,right:et,bottom:bt,left:zt,width:qt,height:ar,x:zt,y:Oe,center:{x:(et+zt)/2,y:(bt+Oe)/2}};return Kr},l=function(ie,Oe){return{top:ie.top-Oe.top,left:ie.left-Oe.left,bottom:ie.bottom+Oe.bottom,right:ie.right+Oe.right}},n=function(ie,Oe){return{top:ie.top+Oe.top,left:ie.left+Oe.left,bottom:ie.bottom-Oe.bottom,right:ie.right-Oe.right}},o=function(ie,Oe){return{top:ie.top+Oe.y,left:ie.left+Oe.x,bottom:ie.bottom+Oe.y,right:ie.right+Oe.x}},c={top:0,right:0,bottom:0,left:0},h=function(ie){var Oe=ie.borderBox,et=ie.margin,bt=et===void 0?c:et,zt=ie.border,qt=zt===void 0?c:zt,ar=ie.padding,Kr=ar===void 0?c:ar,cn=e(l(Oe,bt)),Hr=e(n(Oe,qt)),Ur=e(n(Hr,Kr));return{marginBox:cn,borderBox:e(Oe),paddingBox:Hr,contentBox:Ur,margin:bt,border:qt,padding:Kr}},g=function(ie){var Oe=ie.slice(0,-2),et=ie.slice(-2);if(et!=="px")return 0;var bt=Number(Oe);return isNaN(bt)&&Object(s.a)(!1),bt},v=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ie,Oe){var et=ie.borderBox,bt=ie.border,zt=ie.margin,qt=ie.padding,ar=o(et,Oe);return h({borderBox:ar,border:bt,margin:zt,padding:qt})},S=function(ie,Oe){return Oe===void 0&&(Oe=v()),b(ie,Oe)},E=function(ie,Oe){var et={top:g(Oe.marginTop),right:g(Oe.marginRight),bottom:g(Oe.marginBottom),left:g(Oe.marginLeft)},bt={top:g(Oe.paddingTop),right:g(Oe.paddingRight),bottom:g(Oe.paddingBottom),left:g(Oe.paddingLeft)},zt={top:g(Oe.borderTopWidth),right:g(Oe.borderRightWidth),bottom:g(Oe.borderBottomWidth),left:g(Oe.borderLeftWidth)};return h({borderBox:ie,margin:et,padding:bt,border:zt})},C=function(ie){var Oe=ie.getBoundingClientRect(),et=window.getComputedStyle(ie);return E(Oe,et)},_=Number.isNaN||function(ie){return typeof ie=="number"&&ie!==ie};function T(Be,ie){return Be===ie?!0:!!(_(Be)&&_(ie))}function w(Be,ie){if(Be.length!==ie.length)return!1;for(var Oe=0;Oe<Be.length;Oe++)if(!T(Be[Oe],ie[Oe]))return!1;return!0}function O(Be,ie){ie===void 0&&(ie=w);var Oe,et=[],bt,zt=!1;function qt(){for(var ar=[],Kr=0;Kr<arguments.length;Kr++)ar[Kr]=arguments[Kr];return zt&&Oe===this&&ie(ar,et)||(bt=Be.apply(this,ar),zt=!0,Oe=this,et=ar),bt}return qt}var I=O,k=function(ie){var Oe=[],et=null,bt=function(){for(var qt=arguments.length,ar=new Array(qt),Kr=0;Kr<qt;Kr++)ar[Kr]=arguments[Kr];if(Oe=ar,et)return;et=requestAnimationFrame(function(){et=null,ie.apply(void 0,Oe)})};return bt.cancel=function(){if(!et)return;cancelAnimationFrame(et),et=null},bt},M=k,U=r("i8i4"),P=r.n(U),X=!0,F=/[ \t]{2,}/g,j=/^[ \t]*/gm,K=function(ie){return ie.replace(F," ").replace(j,"").trim()},z=function(ie){return K(`
%creact-beautiful-dnd
%c`+K(ie)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},V=function(ie){return[z(ie),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Q="__react-beautiful-dnd-disable-dev-warnings";function G(Be,ie){var Oe;if(X)return;if(typeof window!="undefined"&&window[Q])return;(Oe=console)[Be].apply(Oe,V(ie))}var ee=G.bind(null,"warn"),se=G.bind(null,"error");function ye(){}function he(Be,ie){return Object(A.a)({},Be,{},ie)}function ke(Be,ie,Oe){var et=ie.map(function(bt){var zt=he(Oe,bt.options);return Be.addEventListener(bt.eventName,bt.fn,zt),function(){Be.removeEventListener(bt.eventName,bt.fn,zt)}});return function(){et.forEach(function(zt){zt()})}}var Pe=!0,Ue="Invariant failed";function $e(Be){this.message=Be}$e.prototype.toString=function(){return this.message};function Ge(Be,ie){if(Be)return;throw Pe?new $e(Ue):new $e(Ue+": "+(ie||""))}var ht=function(Be){Object(x.a)(ie,Be);function ie(){for(var et,bt=arguments.length,zt=new Array(bt),qt=0;qt<bt;qt++)zt[qt]=arguments[qt];return et=Be.call.apply(Be,[this].concat(zt))||this,et.callbacks=null,et.unbind=ye,et.onWindowError=function(ar){var Kr=et.getCallbacks();Kr.isDragging()&&Kr.tryAbort();var cn=ar.error;cn instanceof $e&&ar.preventDefault()},et.getCallbacks=function(){if(!et.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return et.callbacks},et.setCallbacks=function(ar){et.callbacks=ar},et}var Oe=ie.prototype;return Oe.componentDidMount=function(){this.unbind=ke(window,[{eventName:"error",fn:this.onWindowError}])},Oe.componentWillUnmount=function(){this.unbind()},Oe.componentDidCatch=function(bt){if(bt instanceof $e){this.setState({});return}throw bt},Oe.render=function(){return this.props.children(this.setCallbacks)},ie}(f.a.Component),Fe=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,oe=function(ie){return ie+1},rt=function(ie){return`
You have lifted an item in position `+oe(ie.source.index)+`
`},fe=function(ie,Oe){var et=ie.droppableId===Oe.droppableId,bt=oe(ie.index),zt=oe(Oe.index);return et?`
You have moved the item from position `+bt+`
to position `+zt+`
`:`
You have moved the item from position `+bt+`
in list `+ie.droppableId+`
to list `+Oe.droppableId+`
in position `+zt+`
`},J=function(ie,Oe,et){var bt=Oe.droppableId===et.droppableId;return bt?`
The item `+ie+`
has been combined with `+et.draggableId:`
The item `+ie+`
in list `+Oe.droppableId+`
has been combined with `+et.draggableId+`
in list `+et.droppableId+`
`},Y=function(ie){var Oe=ie.destination;if(Oe)return fe(ie.source,Oe);var et=ie.combine;return et?J(ie.draggableId,ie.source,et):"You are over an area that cannot be dropped on"},$=function(ie){return`
The item has returned to its starting position
of `+oe(ie.index)+`
`},de=function(ie){if(ie.reason==="CANCEL")return`
Movement cancelled.
`+$(ie.source)+`
`;var Oe=ie.destination,et=ie.combine;return Oe?`
You have dropped the item.
`+fe(ie.source,Oe)+`
`:et?`
You have dropped the item.
`+J(ie.draggableId,ie.source,et)+`
`:`
The item has been dropped while not over a drop area.
`+$(ie.source)+`
`},we={dragHandleUsageInstructions:Fe,onDragStart:rt,onDragUpdate:Y,onDragEnd:de},Ce={x:0,y:0},Se=function(ie,Oe){return{x:ie.x+Oe.x,y:ie.y+Oe.y}},le=function(ie,Oe){return{x:ie.x-Oe.x,y:ie.y-Oe.y}},pe=function(ie,Oe){return ie.x===Oe.x&&ie.y===Oe.y},_e=function(ie){return{x:ie.x!==0?-ie.x:0,y:ie.y!==0?-ie.y:0}},tt=function(ie,Oe,et){var bt;return et===void 0&&(et=0),bt={},bt[ie]=Oe,bt[ie==="x"?"y":"x"]=et,bt},gt=function(ie,Oe){return Math.sqrt(Math.pow(Oe.x-ie.x,2)+Math.pow(Oe.y-ie.y,2))},ct=function(ie,Oe){return Math.min.apply(Math,Oe.map(function(et){return gt(ie,et)}))},je=function(ie){return function(Oe){return{x:ie(Oe.x),y:ie(Oe.y)}}},Zt=function(ie,Oe){var et=e({top:Math.max(Oe.top,ie.top),right:Math.min(Oe.right,ie.right),bottom:Math.min(Oe.bottom,ie.bottom),left:Math.max(Oe.left,ie.left)});return et.width<=0||et.height<=0?null:et},ut=function(ie,Oe){return{top:ie.top+Oe.y,left:ie.left+Oe.x,bottom:ie.bottom+Oe.y,right:ie.right+Oe.x}},Ht=function(ie){return[{x:ie.left,y:ie.top},{x:ie.right,y:ie.top},{x:ie.left,y:ie.bottom},{x:ie.right,y:ie.bottom}]},dr={top:0,right:0,bottom:0,left:0},Vt=function(ie,Oe){return Oe?ut(ie,Oe.scroll.diff.displacement):ie},Mt=function(ie,Oe,et){if(et&&et.increasedBy){var bt;return Object(A.a)({},ie,(bt={},bt[Oe.end]=ie[Oe.end]+et.increasedBy[Oe.line],bt))}return ie},Gt=function(ie,Oe){return Oe&&Oe.shouldClipSubject?Zt(Oe.pageMarginBox,ie):e(ie)},Ve=function(ie){var Oe=ie.page,et=ie.withPlaceholder,bt=ie.axis,zt=ie.frame,qt=Vt(Oe.marginBox,zt),ar=Mt(qt,bt,et),Kr=Gt(ar,zt);return{page:Oe,withPlaceholder:et,active:Kr}},me=function(ie,Oe){ie.frame||Ge(!1);var et=ie.frame,bt=le(Oe,et.scroll.initial),zt=_e(bt),qt=Object(A.a)({},et,{scroll:{initial:et.scroll.initial,current:Oe,diff:{value:bt,displacement:zt},max:et.scroll.max}}),ar=Ve({page:ie.subject.page,withPlaceholder:ie.subject.withPlaceholder,axis:ie.axis,frame:qt}),Kr=Object(A.a)({},ie,{frame:qt,subject:ar});return Kr};function te(Be){return Number.isInteger?Number.isInteger(Be):typeof Be=="number"&&isFinite(Be)&&Math.floor(Be)===Be}function Ze(Be){return Object.values?Object.values(Be):Object.keys(Be).map(function(ie){return Be[ie]})}function Xe(Be,ie){if(Be.findIndex)return Be.findIndex(ie);for(var Oe=0;Oe<Be.length;Oe++)if(ie(Be[Oe]))return Oe;return-1}function ue(Be,ie){if(Be.find)return Be.find(ie);var Oe=Xe(Be,ie);return Oe!==-1?Be[Oe]:void 0}function St(Be){return Array.prototype.slice.call(Be)}var Qt=I(function(Be){return Be.reduce(function(ie,Oe){return ie[Oe.descriptor.id]=Oe,ie},{})}),dt=I(function(Be){return Be.reduce(function(ie,Oe){return ie[Oe.descriptor.id]=Oe,ie},{})}),Jt=I(function(Be){return Ze(Be)}),$t=I(function(Be){return Ze(Be)}),tn=I(function(Be,ie){var Oe=$t(ie).filter(function(et){return Be===et.descriptor.droppableId}).sort(function(et,bt){return et.descriptor.index-bt.descriptor.index});return Oe});function kt(Be){return Be.at&&Be.at.type==="REORDER"?Be.at.destination:null}function tr(Be){return Be.at&&Be.at.type==="COMBINE"?Be.at.combine:null}var Bt=I(function(Be,ie){return ie.filter(function(Oe){return Oe.descriptor.id!==Be.descriptor.id})}),ft=function(ie){var Oe=ie.isMovingForward,et=ie.draggable,bt=ie.destination,zt=ie.insideDestination,qt=ie.previousImpact;if(!bt.isCombineEnabled)return null;var ar=kt(qt);if(!ar)return null;function Kr(ki){var da={type:"COMBINE",combine:{draggableId:ki,droppableId:bt.descriptor.id}};return Object(A.a)({},qt,{at:da})}var cn=qt.displaced.all,Hr=cn.length?cn[0]:null;if(Oe)return Hr?Kr(Hr):null;var Ur=Bt(et,zt);if(!Hr){if(!Ur.length)return null;var sn=Ur[Ur.length-1];return Kr(sn.descriptor.id)}var gn=Xe(Ur,function(ki){return ki.descriptor.id===Hr});gn!==-1||Ge(!1);var zn=gn-1;if(zn<0)return null;var Li=Ur[zn];return Kr(Li.descriptor.id)},it=function(ie,Oe){return ie.descriptor.droppableId===Oe.descriptor.id},Or={point:Ce,value:0},an={invisible:{},visible:{},all:[]},En={displaced:an,displacedBy:Or,at:null},Bn=function(ie,Oe){return function(et){return ie<=et&&et<=Oe}},vi=function(ie){var Oe=Bn(ie.top,ie.bottom),et=Bn(ie.left,ie.right);return function(bt){var zt=Oe(bt.top)&&Oe(bt.bottom)&&et(bt.left)&&et(bt.right);if(zt)return!0;var qt=Oe(bt.top)||Oe(bt.bottom),ar=et(bt.left)||et(bt.right),Kr=qt&&ar;if(Kr)return!0;var cn=bt.top<ie.top&&bt.bottom>ie.bottom,Hr=bt.left<ie.left&&bt.right>ie.right,Ur=cn&&Hr;if(Ur)return!0;var sn=cn&&ar||Hr&&qt;return sn}},Ln=function(ie){var Oe=Bn(ie.top,ie.bottom),et=Bn(ie.left,ie.right);return function(bt){var zt=Oe(bt.top)&&Oe(bt.bottom)&&et(bt.left)&&et(bt.right);return zt}},Mn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Xt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},wt=function(ie){return function(Oe){var et=Bn(Oe.top,Oe.bottom),bt=Bn(Oe.left,Oe.right);return function(zt){return ie===Mn?et(zt.top)&&et(zt.bottom):bt(zt.left)&&bt(zt.right)}}},De=function(ie,Oe){var et=Oe.frame?Oe.frame.scroll.diff.displacement:Ce;return ut(ie,et)},Re=function(ie,Oe,et){return Oe.subject.active?et(Oe.subject.active)(ie):!1},Me=function(ie,Oe,et){return et(Oe)(ie)},nt=function(ie){var Oe=ie.target,et=ie.destination,bt=ie.viewport,zt=ie.withDroppableDisplacement,qt=ie.isVisibleThroughFrameFn,ar=zt?De(Oe,et):Oe;return Re(ar,et,qt)&&Me(ar,bt,qt)},yt=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:vi}))},sr=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:Ln}))},Nr=function(ie){return nt(Object(A.a)({},ie,{isVisibleThroughFrameFn:wt(ie.destination.axis)}))},mn=function(ie,Oe,et){if(typeof et=="boolean")return et;if(!Oe)return!0;var bt=Oe.invisible,zt=Oe.visible;if(bt[ie])return!1;var qt=zt[ie];return qt?qt.shouldAnimate:!0};function Yn(Be,ie){var Oe=Be.page.marginBox,et={top:ie.point.y,right:0,bottom:0,left:ie.point.x};return e(l(Oe,et))}function Jn(Be){var ie=Be.afterDragging,Oe=Be.destination,et=Be.displacedBy,bt=Be.viewport,zt=Be.forceShouldAnimate,qt=Be.last;return ie.reduce(function(Kr,cn){var Hr=Yn(cn,et),Ur=cn.descriptor.id;Kr.all.push(Ur);var sn=yt({target:Hr,destination:Oe,viewport:bt,withDroppableDisplacement:!0});if(!sn)return Kr.invisible[cn.descriptor.id]=!0,Kr;var gn=mn(Ur,qt,zt),zn={draggableId:Ur,shouldAnimate:gn};return Kr.visible[Ur]=zn,Kr},{all:[],visible:{},invisible:{}})}function ur(Be,ie){if(!Be.length)return 0;var Oe=Be[Be.length-1].descriptor.index;return ie.inHomeList?Oe:Oe+1}function Tt(Be){var ie=Be.insideDestination,Oe=Be.inHomeList,et=Be.displacedBy,bt=Be.destination,zt=ur(ie,{inHomeList:Oe});return{displaced:an,displacedBy:et,at:{type:"REORDER",destination:{droppableId:bt.descriptor.id,index:zt}}}}function Ct(Be){var ie=Be.draggable,Oe=Be.insideDestination,et=Be.destination,bt=Be.viewport,zt=Be.displacedBy,qt=Be.last,ar=Be.index,Kr=Be.forceShouldAnimate,cn=it(ie,et);if(ar==null)return Tt({insideDestination:Oe,inHomeList:cn,displacedBy:zt,destination:et});var Hr=ue(Oe,function(Li){return Li.descriptor.index===ar});if(!Hr)return Tt({insideDestination:Oe,inHomeList:cn,displacedBy:zt,destination:et});var Ur=Bt(ie,Oe),sn=Oe.indexOf(Hr),gn=Ur.slice(sn),zn=Jn({afterDragging:gn,destination:et,displacedBy:zt,last:qt,viewport:bt.frame,forceShouldAnimate:Kr});return{displaced:zn,displacedBy:zt,at:{type:"REORDER",destination:{droppableId:et.descriptor.id,index:ar}}}}function Ar(Be,ie){return Boolean(ie.effected[Be])}var er=function(ie){var Oe=ie.isMovingForward,et=ie.destination,bt=ie.draggables,zt=ie.combine,qt=ie.afterCritical;if(!et.isCombineEnabled)return null;var ar=zt.draggableId,Kr=bt[ar],cn=Kr.descriptor.index,Hr=Ar(ar,qt);return Hr?Oe?cn:cn-1:Oe?cn+1:cn},Ft=function(ie){var Oe=ie.isMovingForward,et=ie.isInHomeList,bt=ie.insideDestination,zt=ie.location;if(!bt.length)return null;var qt=zt.index,ar=Oe?qt+1:qt-1,Kr=bt[0].descriptor.index,cn=bt[bt.length-1].descriptor.index,Hr=et?cn:cn+1;return ar<Kr||ar>Hr?null:ar},ir=function(ie){var Oe=ie.isMovingForward,et=ie.isInHomeList,bt=ie.draggable,zt=ie.draggables,qt=ie.destination,ar=ie.insideDestination,Kr=ie.previousImpact,cn=ie.viewport,Hr=ie.afterCritical,Ur=Kr.at;if(Ur||Ge(!1),Ur.type==="REORDER"){var sn=Ft({isMovingForward:Oe,isInHomeList:et,location:Ur.destination,insideDestination:ar});return sn==null?null:Ct({draggable:bt,insideDestination:ar,destination:qt,viewport:cn,last:Kr.displaced,displacedBy:Kr.displacedBy,index:sn})}var gn=er({isMovingForward:Oe,destination:qt,displaced:Kr.displaced,draggables:zt,combine:Ur.combine,afterCritical:Hr});return gn==null?null:Ct({draggable:bt,insideDestination:ar,destination:qt,viewport:cn,last:Kr.displaced,displacedBy:Kr.displacedBy,index:gn})},Pt=function(ie){var Oe=ie.displaced,et=ie.afterCritical,bt=ie.combineWith,zt=ie.displacedBy,qt=Boolean(Oe.visible[bt]||Oe.invisible[bt]);return Ar(bt,et)?qt?Ce:_e(zt.point):qt?zt.point:Ce},rr=function(ie){var Oe=ie.afterCritical,et=ie.impact,bt=ie.draggables,zt=tr(et);zt||Ge(!1);var qt=zt.draggableId,ar=bt[qt].page.borderBox.center,Kr=Pt({displaced:et.displaced,afterCritical:Oe,combineWith:qt,displacedBy:et.displacedBy});return Se(ar,Kr)},Yr=function(ie,Oe){return Oe.margin[ie.start]+Oe.borderBox[ie.size]/2},Pr=function(ie,Oe){return Oe.margin[ie.end]+Oe.borderBox[ie.size]/2},Mr=function(ie,Oe,et){return Oe[ie.crossAxisStart]+et.margin[ie.crossAxisStart]+et.borderBox[ie.crossAxisSize]/2},fn=function(ie){var Oe=ie.axis,et=ie.moveRelativeTo,bt=ie.isMoving;return tt(Oe.line,et.marginBox[Oe.end]+Yr(Oe,bt),Mr(Oe,et.marginBox,bt))},wn=function(ie){var Oe=ie.axis,et=ie.moveRelativeTo,bt=ie.isMoving;return tt(Oe.line,et.marginBox[Oe.start]-Pr(Oe,bt),Mr(Oe,et.marginBox,bt))},ai=function(ie){var Oe=ie.axis,et=ie.moveInto,bt=ie.isMoving;return tt(Oe.line,et.contentBox[Oe.start]+Yr(Oe,bt),Mr(Oe,et.contentBox,bt))},ri=function(ie){var Oe=ie.impact,et=ie.draggable,bt=ie.draggables,zt=ie.droppable,qt=ie.afterCritical,ar=tn(zt.descriptor.id,bt),Kr=et.page,cn=zt.axis;if(!ar.length)return ai({axis:cn,moveInto:zt.page,isMoving:Kr});var Hr=Oe.displaced,Ur=Oe.displacedBy,sn=Hr.all[0];if(sn){var gn=bt[sn];if(Ar(sn,qt))return wn({axis:cn,moveRelativeTo:gn.page,isMoving:Kr});var zn=b(gn.page,Ur.point);return wn({axis:cn,moveRelativeTo:zn,isMoving:Kr})}var Li=ar[ar.length-1];if(Li.descriptor.id===et.descriptor.id)return Kr.borderBox.center;if(Ar(Li.descriptor.id,qt)){var ki=b(Li.page,_e(qt.displacedBy.point));return fn({axis:cn,moveRelativeTo:ki,isMoving:Kr})}return fn({axis:cn,moveRelativeTo:Li.page,isMoving:Kr})},gi=function(ie,Oe){var et=ie.frame;return et?Se(Oe,et.scroll.diff.displacement):Oe},Ii=function(ie){var Oe=ie.impact,et=ie.draggable,bt=ie.droppable,zt=ie.draggables,qt=ie.afterCritical,ar=et.page.borderBox.center,Kr=Oe.at;return bt&&Kr?Kr.type==="REORDER"?ri({impact:Oe,draggable:et,draggables:zt,droppable:bt,afterCritical:qt}):rr({impact:Oe,draggables:zt,afterCritical:qt}):ar},Mi=function(ie){var Oe=Ii(ie),et=ie.droppable,bt=et?gi(et,Oe):Oe;return bt},Qi=function(ie,Oe){var et=le(Oe,ie.scroll.initial),bt=_e(et),zt=e({top:Oe.y,bottom:Oe.y+ie.frame.height,left:Oe.x,right:Oe.x+ie.frame.width}),qt={frame:zt,scroll:{initial:ie.scroll.initial,max:ie.scroll.max,current:Oe,diff:{value:et,displacement:bt}}};return qt};function ot(Be,ie){return Be.map(function(Oe){return ie[Oe]})}function Ne(Be,ie){for(var Oe=0;Oe<ie.length;Oe++){var et=ie[Oe].visible[Be];if(et)return et}return null}var He=function(ie){var Oe=ie.impact,et=ie.viewport,bt=ie.destination,zt=ie.draggables,qt=ie.maxScrollChange,ar=Qi(et,Se(et.scroll.current,qt)),Kr=bt.frame?me(bt,Se(bt.frame.scroll.current,qt)):bt,cn=Oe.displaced,Hr=Jn({afterDragging:ot(cn.all,zt),destination:bt,displacedBy:Oe.displacedBy,viewport:ar.frame,last:cn,forceShouldAnimate:!1}),Ur=Jn({afterDragging:ot(cn.all,zt),destination:Kr,displacedBy:Oe.displacedBy,viewport:et.frame,last:cn,forceShouldAnimate:!1}),sn={},gn={},zn=[cn,Hr,Ur];cn.all.forEach(function(ki){var da=Ne(ki,zn);if(da){gn[ki]=da;return}sn[ki]=!0});var Li=Object(A.a)({},Oe,{displaced:{all:cn.all,invisible:sn,visible:gn}});return Li},Ye=function(ie,Oe){return Se(ie.scroll.diff.displacement,Oe)},at=function(ie){var Oe=ie.pageBorderBoxCenter,et=ie.draggable,bt=ie.viewport,zt=Ye(bt,Oe),qt=le(zt,et.page.borderBox.center);return Se(et.client.borderBox.center,qt)},qe=function(ie){var Oe=ie.draggable,et=ie.destination,bt=ie.newPageBorderBoxCenter,zt=ie.viewport,qt=ie.withDroppableDisplacement,ar=ie.onlyOnMainAxis,Kr=ar===void 0?!1:ar,cn=le(bt,Oe.page.borderBox.center),Hr=ut(Oe.page.borderBox,cn),Ur={target:Hr,destination:et,withDroppableDisplacement:qt,viewport:zt};return Kr?Nr(Ur):sr(Ur)},lt=function(ie){var Oe=ie.isMovingForward,et=ie.draggable,bt=ie.destination,zt=ie.draggables,qt=ie.previousImpact,ar=ie.viewport,Kr=ie.previousPageBorderBoxCenter,cn=ie.previousClientSelection,Hr=ie.afterCritical;if(!bt.isEnabled)return null;var Ur=tn(bt.descriptor.id,zt),sn=it(et,bt),gn=ft({isMovingForward:Oe,draggable:et,destination:bt,insideDestination:Ur,previousImpact:qt})||ir({isMovingForward:Oe,isInHomeList:sn,draggable:et,draggables:zt,destination:bt,insideDestination:Ur,previousImpact:qt,viewport:ar,afterCritical:Hr});if(!gn)return null;var zn=Mi({impact:gn,draggable:et,droppable:bt,draggables:zt,afterCritical:Hr}),Li=qe({draggable:et,destination:bt,newPageBorderBoxCenter:zn,viewport:ar.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Li){var ki=at({pageBorderBoxCenter:zn,draggable:et,viewport:ar});return{clientSelection:ki,impact:gn,scrollJumpRequest:null}}var da=le(zn,Kr),$i=He({impact:gn,viewport:ar,destination:bt,draggables:zt,maxScrollChange:da});return{clientSelection:cn,impact:$i,scrollJumpRequest:da}},Et=function(ie){var Oe=ie.subject.active;return Oe||Ge(!1),Oe},At=function(ie){var Oe=ie.isMovingForward,et=ie.pageBorderBoxCenter,bt=ie.source,zt=ie.droppables,qt=ie.viewport,ar=bt.subject.active;if(!ar)return null;var Kr=bt.axis,cn=Bn(ar[Kr.start],ar[Kr.end]),Hr=Jt(zt).filter(function(sn){return sn!==bt}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return Boolean(sn.subject.active)}).filter(function(sn){return vi(qt.frame)(Et(sn))}).filter(function(sn){var gn=Et(sn);return Oe?ar[Kr.crossAxisEnd]<gn[Kr.crossAxisEnd]:gn[Kr.crossAxisStart]<ar[Kr.crossAxisStart]}).filter(function(sn){var gn=Et(sn),zn=Bn(gn[Kr.start],gn[Kr.end]);return cn(gn[Kr.start])||cn(gn[Kr.end])||zn(ar[Kr.start])||zn(ar[Kr.end])}).sort(function(sn,gn){var zn=Et(sn)[Kr.crossAxisStart],Li=Et(gn)[Kr.crossAxisStart];return Oe?zn-Li:Li-zn}).filter(function(sn,gn,zn){return Et(sn)[Kr.crossAxisStart]===Et(zn[0])[Kr.crossAxisStart]});if(!Hr.length)return null;if(Hr.length===1)return Hr[0];var Ur=Hr.filter(function(sn){var gn=Bn(Et(sn)[Kr.start],Et(sn)[Kr.end]);return gn(et[Kr.line])});return Ur.length===1?Ur[0]:Ur.length>1?Ur.sort(function(sn,gn){return Et(sn)[Kr.start]-Et(gn)[Kr.start]})[0]:Hr.sort(function(sn,gn){var zn=ct(et,Ht(Et(sn))),Li=ct(et,Ht(Et(gn)));return zn!==Li?zn-Li:Et(sn)[Kr.start]-Et(gn)[Kr.start]})[0]},fr=function(ie,Oe){var et=ie.page.borderBox.center;return Ar(ie.descriptor.id,Oe)?le(et,Oe.displacedBy.point):et},Jr=function(ie,Oe){var et=ie.page.borderBox;return Ar(ie.descriptor.id,Oe)?ut(et,_e(Oe.displacedBy.point)):et},Vr=function(ie){var Oe=ie.pageBorderBoxCenter,et=ie.viewport,bt=ie.destination,zt=ie.insideDestination,qt=ie.afterCritical,ar=zt.filter(function(Kr){return sr({target:Jr(Kr,qt),destination:bt,viewport:et.frame,withDroppableDisplacement:!0})}).sort(function(Kr,cn){var Hr=gt(Oe,gi(bt,fr(Kr,qt))),Ur=gt(Oe,gi(bt,fr(cn,qt)));return Hr<Ur?-1:Ur<Hr?1:Kr.descriptor.index-cn.descriptor.index});return ar[0]||null},dn=I(function(ie,Oe){var et=Oe[ie.line];return{value:et,point:tt(ie.line,et)}}),gr=function(ie,Oe,et){var bt=ie.axis;if(ie.descriptor.mode==="virtual")return tt(bt.line,Oe[bt.line]);var zt=ie.subject.page.contentBox[bt.size],qt=tn(ie.descriptor.id,et),ar=qt.reduce(function(Hr,Ur){return Hr+Ur.client.marginBox[bt.size]},0),Kr=ar+Oe[bt.line],cn=Kr-zt;return cn<=0?null:tt(bt.line,cn)},Wn=function(ie,Oe){return Object(A.a)({},ie,{scroll:Object(A.a)({},ie.scroll,{max:Oe})})},kr=function(ie,Oe,et){var bt=ie.frame;it(Oe,ie)&&Ge(!1),ie.subject.withPlaceholder&&Ge(!1);var zt=dn(ie.axis,Oe.displaceBy).point,qt=gr(ie,zt,et),ar={placeholderSize:zt,increasedBy:qt,oldFrameMaxScroll:ie.frame?ie.frame.scroll.max:null};if(!bt){var Kr=Ve({page:ie.subject.page,withPlaceholder:ar,axis:ie.axis,frame:ie.frame});return Object(A.a)({},ie,{subject:Kr})}var cn=qt?Se(bt.scroll.max,qt):bt.scroll.max,Hr=Wn(bt,cn),Ur=Ve({page:ie.subject.page,withPlaceholder:ar,axis:ie.axis,frame:Hr});return Object(A.a)({},ie,{subject:Ur,frame:Hr})},Fn=function(ie){var Oe=ie.subject.withPlaceholder;Oe||Ge(!1);var et=ie.frame;if(!et){var bt=Ve({page:ie.subject.page,axis:ie.axis,frame:null,withPlaceholder:null});return Object(A.a)({},ie,{subject:bt})}var zt=Oe.oldFrameMaxScroll;zt||Ge(!1);var qt=Wn(et,zt),ar=Ve({page:ie.subject.page,axis:ie.axis,frame:qt,withPlaceholder:null});return Object(A.a)({},ie,{subject:ar,frame:qt})},vn=function(ie){var Oe=ie.previousPageBorderBoxCenter,et=ie.moveRelativeTo,bt=ie.insideDestination,zt=ie.draggable,qt=ie.draggables,ar=ie.destination,Kr=ie.viewport,cn=ie.afterCritical;if(!et){if(bt.length)return null;var Hr={displaced:an,displacedBy:Or,at:{type:"REORDER",destination:{droppableId:ar.descriptor.id,index:0}}},Ur=Mi({impact:Hr,draggable:zt,droppable:ar,draggables:qt,afterCritical:cn}),sn=it(zt,ar)?ar:kr(ar,zt,qt),gn=qe({draggable:zt,destination:sn,newPageBorderBoxCenter:Ur,viewport:Kr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return gn?Hr:null}var zn=Boolean(Oe[ar.axis.line]<=et.page.borderBox.center[ar.axis.line]),Li=function(){var da=et.descriptor.index;return et.descriptor.id===zt.descriptor.id||zn?da:da+1}(),ki=dn(ar.axis,zt.displaceBy);return Ct({draggable:zt,insideDestination:bt,destination:ar,viewport:Kr,displacedBy:ki,last:an,index:Li})},$r=function(ie){var Oe=ie.isMovingForward,et=ie.previousPageBorderBoxCenter,bt=ie.draggable,zt=ie.isOver,qt=ie.draggables,ar=ie.droppables,Kr=ie.viewport,cn=ie.afterCritical,Hr=At({isMovingForward:Oe,pageBorderBoxCenter:et,source:zt,droppables:ar,viewport:Kr});if(!Hr)return null;var Ur=tn(Hr.descriptor.id,qt),sn=Vr({pageBorderBoxCenter:et,viewport:Kr,destination:Hr,insideDestination:Ur,afterCritical:cn}),gn=vn({previousPageBorderBoxCenter:et,destination:Hr,draggable:bt,draggables:qt,moveRelativeTo:sn,insideDestination:Ur,viewport:Kr,afterCritical:cn});if(!gn)return null;var zn=Mi({impact:gn,draggable:bt,droppable:Hr,draggables:qt,afterCritical:cn}),Li=at({pageBorderBoxCenter:zn,draggable:bt,viewport:Kr});return{clientSelection:Li,impact:gn,scrollJumpRequest:null}},ei=function(ie){var Oe=ie.at;return Oe?Oe.type==="REORDER"?Oe.destination.droppableId:Oe.combine.droppableId:null},fi=function(ie,Oe){var et=ei(ie);return et?Oe[et]:null},Pi=function(ie){var Oe=ie.state,et=ie.type,bt=fi(Oe.impact,Oe.dimensions.droppables),zt=Boolean(bt),qt=Oe.dimensions.droppables[Oe.critical.droppable.id],ar=bt||qt,Kr=ar.axis.direction,cn=Kr==="vertical"&&(et==="MOVE_UP"||et==="MOVE_DOWN")||Kr==="horizontal"&&(et==="MOVE_LEFT"||et==="MOVE_RIGHT");if(cn&&!zt)return null;var Hr=et==="MOVE_DOWN"||et==="MOVE_RIGHT",Ur=Oe.dimensions.draggables[Oe.critical.draggable.id],sn=Oe.current.page.borderBoxCenter,gn=Oe.dimensions,zn=gn.draggables,Li=gn.droppables;return cn?lt({isMovingForward:Hr,previousPageBorderBoxCenter:sn,draggable:Ur,destination:ar,draggables:zn,viewport:Oe.viewport,previousClientSelection:Oe.current.client.selection,previousImpact:Oe.impact,afterCritical:Oe.afterCritical}):$r({isMovingForward:Hr,previousPageBorderBoxCenter:sn,draggable:Ur,isOver:ar,draggables:zn,droppables:Li,viewport:Oe.viewport,afterCritical:Oe.afterCritical})};function Zr(Be){return Be.phase==="DRAGGING"||Be.phase==="COLLECTING"}function Sn(Be){var ie=Bn(Be.top,Be.bottom),Oe=Bn(Be.left,Be.right);return function(bt){return ie(bt.y)&&Oe(bt.x)}}function Gn(Be,ie){return Be.left<ie.right&&Be.right>ie.left&&Be.top<ie.bottom&&Be.bottom>ie.top}function Wt(Be){var ie=Be.pageBorderBox,Oe=Be.draggable,et=Be.candidates,bt=Oe.page.borderBox.center,zt=et.map(function(qt){var ar=qt.axis,Kr=tt(qt.axis.line,ie.center[ar.line],qt.page.borderBox.center[ar.crossAxisLine]);return{id:qt.descriptor.id,distance:gt(bt,Kr)}}).sort(function(qt,ar){return ar.distance-qt.distance});return zt[0]?zt[0].id:null}function Ot(Be){var ie=Be.pageBorderBox,Oe=Be.draggable,et=Be.droppables,bt=Jt(et).filter(function(zt){if(!zt.isEnabled)return!1;var qt=zt.subject.active;if(!qt)return!1;if(!Gn(ie,qt))return!1;if(Sn(qt)(ie.center))return!0;var ar=zt.axis,Kr=qt.center[ar.crossAxisLine],cn=ie[ar.crossAxisStart],Hr=ie[ar.crossAxisEnd],Ur=Bn(qt[ar.crossAxisStart],qt[ar.crossAxisEnd]),sn=Ur(cn),gn=Ur(Hr);return!sn&&!gn?!0:sn?cn<Kr:Hr>Kr});return bt.length?bt.length===1?bt[0].descriptor.id:Wt({pageBorderBox:ie,draggable:Oe,candidates:bt}):null}var Rt=function(ie,Oe){return e(ut(ie,Oe))},Ut=function(ie,Oe){var et=ie.frame;return et?Rt(Oe,et.scroll.diff.value):Oe};function Kt(Be){var ie=Be.displaced,Oe=Be.id;return Boolean(ie.visible[Oe]||ie.invisible[Oe])}function Lt(Be){var ie=Be.draggable,Oe=Be.closest,et=Be.inHomeList;return Oe?et&&Oe.descriptor.index>ie.descriptor.index?Oe.descriptor.index-1:Oe.descriptor.index:null}var cr=function(ie){var Oe=ie.pageBorderBoxWithDroppableScroll,et=ie.draggable,bt=ie.destination,zt=ie.insideDestination,qt=ie.last,ar=ie.viewport,Kr=ie.afterCritical,cn=bt.axis,Hr=dn(bt.axis,et.displaceBy),Ur=Hr.value,sn=Oe[cn.start],gn=Oe[cn.end],zn=Bt(et,zt),Li=ue(zn,function(da){var $i=da.descriptor.id,Qa=da.page.borderBox.center[cn.line],ya=Ar($i,Kr),fo=Kt({displaced:qt,id:$i});return ya?fo?gn<=Qa:sn<Qa-Ur:fo?gn<=Qa+Ur:sn<Qa}),ki=Lt({draggable:et,closest:Li,inHomeList:it(et,bt)});return Ct({draggable:et,insideDestination:zt,destination:bt,viewport:ar,last:qt,displacedBy:Hr,index:ki})},vr=4,yr=function(ie){var Oe=ie.draggable,et=ie.pageBorderBoxWithDroppableScroll,bt=ie.previousImpact,zt=ie.destination,qt=ie.insideDestination,ar=ie.afterCritical;if(!zt.isCombineEnabled)return null;var Kr=zt.axis,cn=dn(zt.axis,Oe.displaceBy),Hr=cn.value,Ur=et[Kr.start],sn=et[Kr.end],gn=Bt(Oe,qt),zn=ue(gn,function(ki){var da=ki.descriptor.id,$i=ki.page.borderBox,Qa=$i[Kr.size],ya=Qa/vr,fo=Ar(da,ar),za=Kt({displaced:bt.displaced,id:da});return fo?za?sn>$i[Kr.start]+ya&&sn<$i[Kr.end]-ya:Ur>$i[Kr.start]-Hr+ya&&Ur<$i[Kr.end]-Hr-ya:za?sn>$i[Kr.start]+Hr+ya&&sn<$i[Kr.end]+Hr-ya:Ur>$i[Kr.start]+ya&&Ur<$i[Kr.end]-ya});if(!zn)return null;var Li={displacedBy:cn,displaced:bt.displaced,at:{type:"COMBINE",combine:{draggableId:zn.descriptor.id,droppableId:zt.descriptor.id}}};return Li},Rr=function(ie){var Oe=ie.pageOffset,et=ie.draggable,bt=ie.draggables,zt=ie.droppables,qt=ie.previousImpact,ar=ie.viewport,Kr=ie.afterCritical,cn=Rt(et.page.borderBox,Oe),Hr=Ot({pageBorderBox:cn,draggable:et,droppables:zt});if(!Hr)return En;var Ur=zt[Hr],sn=tn(Ur.descriptor.id,bt),gn=Ut(Ur,cn);return yr({pageBorderBoxWithDroppableScroll:gn,draggable:et,previousImpact:qt,destination:Ur,insideDestination:sn,afterCritical:Kr})||cr({pageBorderBoxWithDroppableScroll:gn,draggable:et,destination:Ur,insideDestination:sn,last:qt.displaced,viewport:ar,afterCritical:Kr})},Vn=function(ie,Oe){var et;return Object(A.a)({},ie,(et={},et[Oe.descriptor.id]=Oe,et))},kn=function(ie){var Oe=ie.previousImpact,et=ie.impact,bt=ie.droppables,zt=ei(Oe),qt=ei(et);if(!zt)return bt;if(zt===qt)return bt;var ar=bt[zt];if(!ar.subject.withPlaceholder)return bt;var Kr=Fn(ar);return Vn(bt,Kr)},di=function(ie){var Oe=ie.draggable,et=ie.draggables,bt=ie.droppables,zt=ie.previousImpact,qt=ie.impact,ar=kn({previousImpact:zt,impact:qt,droppables:bt}),Kr=ei(qt);if(!Kr)return ar;var cn=bt[Kr];if(it(Oe,cn))return ar;if(cn.subject.withPlaceholder)return ar;var Hr=kr(cn,Oe,et);return Vn(ar,Hr)},pn=function(ie){var Oe=ie.state,et=ie.clientSelection,bt=ie.dimensions,zt=ie.viewport,qt=ie.impact,ar=ie.scrollJumpRequest,Kr=zt||Oe.viewport,cn=bt||Oe.dimensions,Hr=et||Oe.current.client.selection,Ur=le(Hr,Oe.initial.client.selection),sn={offset:Ur,selection:Hr,borderBoxCenter:Se(Oe.initial.client.borderBoxCenter,Ur)},gn={selection:Se(sn.selection,Kr.scroll.current),borderBoxCenter:Se(sn.borderBoxCenter,Kr.scroll.current),offset:Se(sn.offset,Kr.scroll.diff.value)},zn={client:sn,page:gn};if(Oe.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},Oe,{dimensions:cn,viewport:Kr,current:zn});var Li=cn.draggables[Oe.critical.draggable.id],ki=qt||Rr({pageOffset:gn.offset,draggable:Li,draggables:cn.draggables,droppables:cn.droppables,previousImpact:Oe.impact,viewport:Kr,afterCritical:Oe.afterCritical}),da=di({draggable:Li,impact:ki,previousImpact:Oe.impact,draggables:cn.draggables,droppables:cn.droppables}),$i=Object(A.a)({},Oe,{current:zn,dimensions:{draggables:cn.draggables,droppables:da},impact:ki,viewport:Kr,scrollJumpRequest:ar||null,forceShouldAnimate:ar?!1:null});return $i};function Br(Be,ie){return Be.map(function(Oe){return ie[Oe]})}var _n=function(ie){var Oe=ie.impact,et=ie.viewport,bt=ie.draggables,zt=ie.destination,qt=ie.forceShouldAnimate,ar=Oe.displaced,Kr=Br(ar.all,bt),cn=Jn({afterDragging:Kr,destination:zt,displacedBy:Oe.displacedBy,viewport:et.frame,forceShouldAnimate:qt,last:ar});return Object(A.a)({},Oe,{displaced:cn})},Xn=function(ie){var Oe=ie.impact,et=ie.draggable,bt=ie.droppable,zt=ie.draggables,qt=ie.viewport,ar=ie.afterCritical,Kr=Mi({impact:Oe,draggable:et,draggables:zt,droppable:bt,afterCritical:ar});return at({pageBorderBoxCenter:Kr,draggable:et,viewport:qt})},$n=function(ie){var Oe=ie.state,et=ie.dimensions,bt=ie.viewport;Oe.movementMode==="SNAP"||Ge(!1);var zt=Oe.impact,qt=bt||Oe.viewport,ar=et||Oe.dimensions,Kr=ar.draggables,cn=ar.droppables,Hr=Kr[Oe.critical.draggable.id],Ur=ei(zt);Ur||Ge(!1);var sn=cn[Ur],gn=_n({impact:zt,viewport:qt,destination:sn,draggables:Kr}),zn=Xn({impact:gn,draggable:Hr,droppable:sn,draggables:Kr,viewport:qt,afterCritical:Oe.afterCritical});return pn({impact:gn,clientSelection:zn,state:Oe,dimensions:ar,viewport:qt})},oi=function(ie){return{index:ie.index,droppableId:ie.droppableId}},Ti=function(ie){var Oe=ie.draggable,et=ie.home,bt=ie.draggables,zt=ie.viewport,qt=dn(et.axis,Oe.displaceBy),ar=tn(et.descriptor.id,bt),Kr=ar.indexOf(Oe);Kr!==-1||Ge(!1);var cn=ar.slice(Kr+1),Hr=cn.reduce(function(zn,Li){return zn[Li.descriptor.id]=!0,zn},{}),Ur={inVirtualList:et.descriptor.mode==="virtual",displacedBy:qt,effected:Hr},sn=Jn({afterDragging:cn,destination:et,displacedBy:qt,last:null,viewport:zt.frame,forceShouldAnimate:!1}),gn={displaced:sn,displacedBy:qt,at:{type:"REORDER",destination:oi(Oe.descriptor)}};return{impact:gn,afterCritical:Ur}},Ri=function(ie,Oe){return{draggables:ie.draggables,droppables:Vn(ie.droppables,Oe)}},Di=function(ie){},oa=function(ie){},ma=function(ie){var Oe=ie.draggable,et=ie.offset,bt=ie.initialWindowScroll,zt=b(Oe.client,et),qt=S(zt,bt),ar=Object(A.a)({},Oe,{placeholder:Object(A.a)({},Oe.placeholder,{client:zt}),client:zt,page:qt});return ar},aa=function(ie){var Oe=ie.frame;return Oe||Ge(!1),Oe},ba=function(ie){var Oe=ie.additions,et=ie.updatedDroppables,bt=ie.viewport,zt=bt.scroll.diff.value;return Oe.map(function(qt){var ar=qt.descriptor.droppableId,Kr=et[ar],cn=aa(Kr),Hr=cn.scroll.diff.value,Ur=Se(zt,Hr),sn=ma({draggable:qt,offset:Ur,initialWindowScroll:bt.scroll.initial});return sn})},bi=function(ie){var Oe=ie.state,et=ie.published;Di();var bt=et.modified.map(function(ya){var fo=Oe.dimensions.droppables[ya.droppableId],za=me(fo,ya.scroll);return za}),zt=Object(A.a)({},Oe.dimensions.droppables,{},Qt(bt)),qt=dt(ba({additions:et.additions,updatedDroppables:zt,viewport:Oe.viewport})),ar=Object(A.a)({},Oe.dimensions.draggables,{},qt);et.removals.forEach(function(ya){delete ar[ya]});var Kr={droppables:zt,draggables:ar},cn=ei(Oe.impact),Hr=cn?Kr.droppables[cn]:null,Ur=Kr.draggables[Oe.critical.draggable.id],sn=Kr.droppables[Oe.critical.droppable.id],gn=Ti({draggable:Ur,home:sn,draggables:ar,viewport:Oe.viewport}),zn=gn.impact,Li=gn.afterCritical,ki=Hr&&Hr.isCombineEnabled?Oe.impact:zn,da=Rr({pageOffset:Oe.current.page.offset,draggable:Kr.draggables[Oe.critical.draggable.id],draggables:Kr.draggables,droppables:Kr.droppables,previousImpact:ki,viewport:Oe.viewport,afterCritical:Li});oa();var $i=Object(A.a)({phase:"DRAGGING"},Oe,{phase:"DRAGGING",impact:da,onLiftImpact:zn,dimensions:Kr,afterCritical:Li,forceShouldAnimate:!1});if(Oe.phase==="COLLECTING")return $i;var Qa=Object(A.a)({phase:"DROP_PENDING"},$i,{phase:"DROP_PENDING",reason:Oe.reason,isWaiting:!1});return Qa},Rn=function(ie){return ie.movementMode==="SNAP"},ji=function(ie,Oe,et){var bt=Ri(ie.dimensions,Oe);return!Rn(ie)||et?pn({state:ie,dimensions:bt}):$n({state:ie,dimensions:bt})};function ha(Be){return Be.isDragging&&Be.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Be,{scrollJumpRequest:null}):Be}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ra=function(ie,Oe){if(ie===void 0&&(ie=ta),Oe.type==="FLUSH")return Object(A.a)({},ta,{shouldFlush:!0});if(Oe.type==="INITIAL_PUBLISH"){ie.phase==="IDLE"||Ge(!1);var et=Oe.payload,bt=et.critical,zt=et.clientSelection,qt=et.viewport,ar=et.dimensions,Kr=et.movementMode,cn=ar.draggables[bt.draggable.id],Hr=ar.droppables[bt.droppable.id],Ur={selection:zt,borderBoxCenter:cn.client.borderBox.center,offset:Ce},sn={client:Ur,page:{selection:Se(Ur.selection,qt.scroll.initial),borderBoxCenter:Se(Ur.selection,qt.scroll.initial),offset:Se(Ur.selection,qt.scroll.diff.value)}},gn=Jt(ar.droppables).every(function(Ss){return!Ss.isFixedOnPage}),zn=Ti({draggable:cn,home:Hr,draggables:ar.draggables,viewport:qt}),Li=zn.impact,ki=zn.afterCritical,da={phase:"DRAGGING",isDragging:!0,critical:bt,movementMode:Kr,dimensions:ar,initial:sn,current:sn,isWindowScrollAllowed:gn,impact:Li,afterCritical:ki,onLiftImpact:Li,viewport:qt,scrollJumpRequest:null,forceShouldAnimate:null};return da}if(Oe.type==="COLLECTION_STARTING"){if(ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING")return ie;ie.phase==="DRAGGING"||Ge(!1);var $i=Object(A.a)({phase:"COLLECTING"},ie,{phase:"COLLECTING"});return $i}if(Oe.type==="PUBLISH_WHILE_DRAGGING")return ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING"||Ge(!1),bi({state:ie,published:Oe.payload});if(Oe.type==="MOVE"){if(ie.phase==="DROP_PENDING")return ie;Zr(ie)||Ge(!1);var Qa=Oe.payload.client;return pe(Qa,ie.current.client.selection)?ie:pn({state:ie,clientSelection:Qa,impact:Rn(ie)?ie.impact:null})}if(Oe.type==="UPDATE_DROPPABLE_SCROLL"){if(ie.phase==="DROP_PENDING")return ha(ie);if(ie.phase==="COLLECTING")return ha(ie);Zr(ie)||Ge(!1);var ya=Oe.payload,fo=ya.id,za=ya.newScroll,Xo=ie.dimensions.droppables[fo];if(!Xo)return ie;var ls=me(Xo,za);return ji(ie,ls,!1)}if(Oe.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ie.phase==="DROP_PENDING")return ie;Zr(ie)||Ge(!1);var D=Oe.payload,B=D.id,ne=D.isEnabled,ae=ie.dimensions.droppables[B];ae||Ge(!1),ae.isEnabled!==ne||Ge(!1);var ge=Object(A.a)({},ae,{isEnabled:ne});return ji(ie,ge,!0)}if(Oe.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ie.phase==="DROP_PENDING")return ie;Zr(ie)||Ge(!1);var Ke=Oe.payload,It=Ke.id,nr=Ke.isCombineEnabled,br=ie.dimensions.droppables[It];br||Ge(!1),br.isCombineEnabled!==nr||Ge(!1);var Cr=Object(A.a)({},br,{isCombineEnabled:nr});return ji(ie,Cr,!0)}if(Oe.type==="MOVE_BY_WINDOW_SCROLL"){if(ie.phase==="DROP_PENDING"||ie.phase==="DROP_ANIMATING")return ie;Zr(ie)||Ge(!1),ie.isWindowScrollAllowed||Ge(!1);var jn=Oe.payload.newScroll;if(pe(ie.viewport.scroll.current,jn))return ha(ie);var ti=Qi(ie.viewport,jn);return Rn(ie)?$n({state:ie,viewport:ti}):pn({state:ie,viewport:ti})}if(Oe.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Zr(ie))return ie;var Ei=Oe.payload.maxScroll;if(pe(Ei,ie.viewport.scroll.max))return ie;var _i=Object(A.a)({},ie.viewport,{scroll:Object(A.a)({},ie.viewport.scroll,{max:Ei})});return Object(A.a)({phase:"DRAGGING"},ie,{viewport:_i})}if(Oe.type==="MOVE_UP"||Oe.type==="MOVE_DOWN"||Oe.type==="MOVE_LEFT"||Oe.type==="MOVE_RIGHT"){if(ie.phase==="COLLECTING"||ie.phase==="DROP_PENDING")return ie;ie.phase==="DRAGGING"||Ge(!1);var la=Pi({state:ie,type:Oe.type});return la?pn({state:ie,impact:la.impact,clientSelection:la.clientSelection,scrollJumpRequest:la.scrollJumpRequest}):ie}if(Oe.type==="DROP_PENDING"){var Ta=Oe.payload.reason;ie.phase==="COLLECTING"||Ge(!1);var Wa=Object(A.a)({phase:"DROP_PENDING"},ie,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Wa}if(Oe.type==="DROP_ANIMATE"){var Ma=Oe.payload,Na=Ma.completed,qa=Ma.dropDuration,ho=Ma.newHomeClientOffset;ie.phase==="DRAGGING"||ie.phase==="DROP_PENDING"||Ge(!1);var ns={phase:"DROP_ANIMATING",completed:Na,dropDuration:qa,newHomeClientOffset:ho,dimensions:ie.dimensions};return ns}if(Oe.type==="DROP_COMPLETE"){var Mo=Oe.payload.completed;return{phase:"IDLE",completed:Mo,shouldFlush:!1}}return ie},Ir=function(ie){return{type:"BEFORE_INITIAL_CAPTURE",payload:ie}},Sr=function(ie){return{type:"LIFT",payload:ie}},Tn=function(ie){return{type:"INITIAL_PUBLISH",payload:ie}},pr=function(ie){return{type:"PUBLISH_WHILE_DRAGGING",payload:ie}},Dr=function(){return{type:"COLLECTION_STARTING",payload:null}},Wr=function(ie){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ie}},ln=function(ie){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ie}},Pn=function(ie){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ie}},_t=function(ie){return{type:"MOVE",payload:ie}},_r=function(ie){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ie}},Lr=function(ie){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ie}},en=function(){return{type:"MOVE_UP",payload:null}},bn=function(){return{type:"MOVE_DOWN",payload:null}},On=function(){return{type:"MOVE_RIGHT",payload:null}},yn=function(){return{type:"MOVE_LEFT",payload:null}},qn=function(){return{type:"FLUSH",payload:null}},Hn=function(ie){return{type:"DROP_ANIMATE",payload:ie}},pi=function(ie){return{type:"DROP_COMPLETE",payload:ie}},Fi=function(ie){return{type:"DROP",payload:ie}},wi=function(ie){return{type:"DROP_PENDING",payload:ie}},Oi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function zi(Be){if(Be.length<=1)return;for(var ie=Be.map(function(ar){return ar.descriptor.index}),Oe={},et=1;et<ie.length;et++){var bt=ie[et],zt=ie[et-1];bt!==zt+1&&(Oe[bt]=!0)}if(!Object.keys(Oe).length)return;var qt=ie.map(function(ar){var Kr=Boolean(Oe[ar]);return Kr?"[\u{1F525}"+ar+"]":""+ar}).join(", ")}function ea(Be,ie){if(!1)var Oe}var Gi=function(ie){return function(Oe){var et=Oe.getState,bt=Oe.dispatch;return function(zt){return function(qt){if(qt.type!=="LIFT"){zt(qt);return}var ar=qt.payload,Kr=ar.id,cn=ar.clientSelection,Hr=ar.movementMode,Ur=et();Ur.phase==="DROP_ANIMATING"&&bt(pi({completed:Ur.completed})),et().phase==="IDLE"||Ge(!1),bt(qn()),bt(Ir({draggableId:Kr,movementMode:Hr}));var sn={shouldPublishImmediately:Hr==="SNAP"},gn={draggableId:Kr,scrollOptions:sn},zn=ie.startPublishing(gn),Li=zn.critical,ki=zn.dimensions,da=zn.viewport;ea(Li,ki),bt(Tn({critical:Li,dimensions:ki,clientSelection:cn,movementMode:Hr,viewport:da}))}}}},Wi=function(ie){return function(){return function(Oe){return function(et){et.type==="INITIAL_PUBLISH"&&ie.dragging(),et.type==="DROP_ANIMATE"&&ie.dropping(et.payload.completed.result.reason),(et.type==="FLUSH"||et.type==="DROP_COMPLETE")&&ie.resting(),Oe(et)}}}},Hi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ji={opacity:{drop:0,combining:.7},scale:{drop:.75}},ca={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ca=ca.outOfTheWay+"s "+Hi.outOfTheWay,na={fluid:"opacity "+Ca,snap:"transform "+Ca+", opacity "+Ca,drop:function(ie){var Oe=ie+"s "+Hi.drop;return"transform "+Oe+", opacity "+Oe},outOfTheWay:"transform "+Ca,placeholder:"height "+Ca+", width "+Ca+", margin "+Ca},Pa=function(ie){return pe(ie,Ce)?null:"translate("+ie.x+"px, "+ie.y+"px)"},La={moveTo:Pa,drop:function(ie,Oe){var et=Pa(ie);return et?Oe?et+" scale("+Ji.scale.drop+")":et:null}},va=ca.minDropTime,ga=ca.maxDropTime,Oa=ga-va,Aa=1500,Xa=.6,_a=function(ie){var Oe=ie.current,et=ie.destination,bt=ie.reason,zt=gt(Oe,et);if(zt<=0)return va;if(zt>=Aa)return ga;var qt=zt/Aa,ar=va+Oa*qt,Kr=bt==="CANCEL"?ar*Xa:ar;return Number(Kr.toFixed(2))},Va=function(ie){var Oe=ie.impact,et=ie.draggable,bt=ie.dimensions,zt=ie.viewport,qt=ie.afterCritical,ar=bt.draggables,Kr=bt.droppables,cn=ei(Oe),Hr=cn?Kr[cn]:null,Ur=Kr[et.descriptor.droppableId],sn=Xn({impact:Oe,draggable:et,draggables:ar,afterCritical:qt,droppable:Hr||Ur,viewport:zt}),gn=le(sn,et.client.borderBox.center);return gn},Bi=function(ie){var Oe=ie.draggables,et=ie.reason,bt=ie.lastImpact,zt=ie.home,qt=ie.viewport,ar=ie.onLiftImpact;if(!bt.at||et!=="DROP"){var Kr=_n({draggables:Oe,impact:ar,destination:zt,viewport:qt,forceShouldAnimate:!0});return{impact:Kr,didDropInsideDroppable:!1}}if(bt.at.type==="REORDER")return{impact:bt,didDropInsideDroppable:!0};var cn=Object(A.a)({},bt,{displaced:an});return{impact:cn,didDropInsideDroppable:!0}},io=function(ie){var Oe=ie.getState,et=ie.dispatch;return function(bt){return function(zt){if(zt.type!=="DROP"){bt(zt);return}var qt=Oe(),ar=zt.payload.reason;if(qt.phase==="COLLECTING"){et(wi({reason:ar}));return}if(qt.phase==="IDLE")return;var Kr=qt.phase==="DROP_PENDING"&&qt.isWaiting;Kr&&Ge(!1),qt.phase==="DRAGGING"||qt.phase==="DROP_PENDING"||Ge(!1);var cn=qt.critical,Hr=qt.dimensions,Ur=Hr.draggables[qt.critical.draggable.id],sn=Bi({reason:ar,lastImpact:qt.impact,afterCritical:qt.afterCritical,onLiftImpact:qt.onLiftImpact,home:qt.dimensions.droppables[qt.critical.droppable.id],viewport:qt.viewport,draggables:qt.dimensions.draggables}),gn=sn.impact,zn=sn.didDropInsideDroppable,Li=zn?kt(gn):null,ki=zn?tr(gn):null,da={index:cn.draggable.index,droppableId:cn.droppable.id},$i={draggableId:Ur.descriptor.id,type:Ur.descriptor.type,source:da,reason:ar,mode:qt.movementMode,destination:Li,combine:ki},Qa=Va({impact:gn,draggable:Ur,dimensions:Hr,viewport:qt.viewport,afterCritical:qt.afterCritical}),ya={critical:qt.critical,afterCritical:qt.afterCritical,result:$i,impact:gn},fo=!pe(qt.current.client.offset,Qa)||Boolean($i.combine);if(!fo){et(pi({completed:ya}));return}var za=_a({current:qt.current.client.offset,destination:Qa,reason:ar}),Xo={newHomeClientOffset:Qa,dropDuration:za,completed:ya};et(Hn(Xo))}}},oo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Qo(Be){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Oe){if(Oe.target!==window&&Oe.target!==window.document)return;Be()}}}function mo(Be){var ie=Be.onWindowScroll;function Oe(){ie(oo())}var et=M(Oe),bt=Qo(et),zt=ye;function qt(){return zt!==ye}function ar(){qt()&&Ge(!1),zt=ke(window,[bt])}function Kr(){qt()||Ge(!1),et.cancel(),zt(),zt=ye}return{start:ar,stop:Kr,isActive:qt}}var To=function(ie){return ie.type==="DROP_COMPLETE"||ie.type==="DROP_ANIMATE"||ie.type==="FLUSH"},ao=function(ie){var Oe=mo({onWindowScroll:function(bt){ie.dispatch(_r({newScroll:bt}))}});return function(et){return function(bt){!Oe.isActive()&&bt.type==="INITIAL_PUBLISH"&&Oe.start(),Oe.isActive()&&To(bt)&&Oe.stop(),et(bt)}}},So=function(ie){var Oe=!1,et=!1,bt=setTimeout(function(){et=!0}),zt=function(ar){if(Oe)return;if(et)return;Oe=!0,ie(ar),clearTimeout(bt)};return zt.wasCalled=function(){return Oe},zt},bo=function(){var ie=[],Oe=function(qt){var ar=Xe(ie,function(Hr){return Hr.timerId===qt});ar!==-1||Ge(!1);var Kr=ie.splice(ar,1),cn=Kr[0];cn.callback()},et=function(qt){var ar=setTimeout(function(){return Oe(ar)}),Kr={timerId:ar,callback:qt};ie.push(Kr)},bt=function(){if(!ie.length)return;var qt=[].concat(ie);ie.length=0,qt.forEach(function(ar){clearTimeout(ar.timerId),ar.callback()})};return{add:et,flush:bt}},to=function(ie,Oe){return ie==null&&Oe==null?!0:ie==null||Oe==null?!1:ie.droppableId===Oe.droppableId&&ie.index===Oe.index},Jo=function(ie,Oe){return ie==null&&Oe==null?!0:ie==null||Oe==null?!1:ie.draggableId===Oe.draggableId&&ie.droppableId===Oe.droppableId},Uo=function(ie,Oe){if(ie===Oe)return!0;var et=ie.draggable.id===Oe.draggable.id&&ie.draggable.droppableId===Oe.draggable.droppableId&&ie.draggable.type===Oe.draggable.type&&ie.draggable.index===Oe.draggable.index,bt=ie.droppable.id===Oe.droppable.id&&ie.droppable.type===Oe.droppable.type;return et&&bt},wo=function(ie,Oe){Di(),Oe(),oa()},ts=function(ie,Oe){return{draggableId:ie.draggable.id,type:ie.droppable.type,source:{droppableId:ie.droppable.id,index:ie.draggable.index},mode:Oe}},Ia=function(ie,Oe,et,bt){if(!ie){et(bt(Oe));return}var zt=So(et),qt={announce:zt};ie(Oe,qt),zt.wasCalled()||et(bt(Oe))},Oo=function(ie,Oe){var et=bo(),bt=null,zt=function(gn,zn){bt&&Ge(!1),wo("onBeforeCapture",function(){var Li=ie().onBeforeCapture;if(Li){var ki={draggableId:gn,mode:zn};Li(ki)}})},qt=function(gn,zn){bt&&Ge(!1),wo("onBeforeDragStart",function(){var Li=ie().onBeforeDragStart;Li&&Li(ts(gn,zn))})},ar=function(gn,zn){bt&&Ge(!1);var Li=ts(gn,zn);bt={mode:zn,lastCritical:gn,lastLocation:Li.source,lastCombine:null},et.add(function(){wo("onDragStart",function(){return Ia(ie().onDragStart,Li,Oe,we.onDragStart)})})},Kr=function(gn,zn){var Li=kt(zn),ki=tr(zn);bt||Ge(!1);var da=!Uo(gn,bt.lastCritical);da&&(bt.lastCritical=gn);var $i=!to(bt.lastLocation,Li);$i&&(bt.lastLocation=Li);var Qa=!Jo(bt.lastCombine,ki);if(Qa&&(bt.lastCombine=ki),!da&&!$i&&!Qa)return;var ya=Object(A.a)({},ts(gn,bt.mode),{combine:ki,destination:Li});et.add(function(){wo("onDragUpdate",function(){return Ia(ie().onDragUpdate,ya,Oe,we.onDragUpdate)})})},cn=function(){bt||Ge(!1),et.flush()},Hr=function(gn){bt||Ge(!1),bt=null,wo("onDragEnd",function(){return Ia(ie().onDragEnd,gn,Oe,we.onDragEnd)})},Ur=function(){if(!bt)return;var gn=Object(A.a)({},ts(bt.lastCritical,bt.mode),{combine:null,destination:null,reason:"CANCEL"});Hr(gn)};return{beforeCapture:zt,beforeStart:qt,start:ar,update:Kr,flush:cn,drop:Hr,abort:Ur}},Io=function(ie,Oe){var et=Oo(ie,Oe);return function(bt){return function(zt){return function(qt){if(qt.type==="BEFORE_INITIAL_CAPTURE"){et.beforeCapture(qt.payload.draggableId,qt.payload.movementMode);return}if(qt.type==="INITIAL_PUBLISH"){var ar=qt.payload.critical;et.beforeStart(ar,qt.payload.movementMode),zt(qt),et.start(ar,qt.payload.movementMode);return}if(qt.type==="DROP_COMPLETE"){var Kr=qt.payload.completed.result;et.flush(),zt(qt),et.drop(Kr);return}if(zt(qt),qt.type==="FLUSH"){et.abort();return}var cn=bt.getState();cn.phase==="DRAGGING"&&et.update(cn.critical,cn.impact)}}}},os=function(ie){return function(Oe){return function(et){if(et.type!=="DROP_ANIMATION_FINISHED"){Oe(et);return}var bt=ie.getState();bt.phase==="DROP_ANIMATING"||Ge(!1),ie.dispatch(pi({completed:bt.completed}))}}},xo=function(ie){var Oe=null,et=null;function bt(){et&&(cancelAnimationFrame(et),et=null),Oe&&(Oe(),Oe=null)}return function(zt){return function(qt){if((qt.type==="FLUSH"||qt.type==="DROP_COMPLETE"||qt.type==="DROP_ANIMATION_FINISHED")&&bt(),zt(qt),qt.type!=="DROP_ANIMATE")return;var ar={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var cn=ie.getState();cn.phase==="DROP_ANIMATING"&&ie.dispatch(Oi())}};et=requestAnimationFrame(function(){et=null,Oe=ke(window,[ar])})}}},rs=function(ie){return function(){return function(Oe){return function(et){(et.type==="DROP_COMPLETE"||et.type==="FLUSH"||et.type==="DROP_ANIMATE")&&ie.stopPublishing(),Oe(et)}}}},Ho=function(ie){var Oe=!1;return function(){return function(et){return function(bt){if(bt.type==="INITIAL_PUBLISH"){Oe=!0,ie.tryRecordFocus(bt.payload.critical.draggable.id),et(bt),ie.tryRestoreFocusRecorded();return}if(et(bt),!Oe)return;if(bt.type==="FLUSH"){Oe=!1,ie.tryRestoreFocusRecorded();return}if(bt.type==="DROP_COMPLETE"){Oe=!1;var zt=bt.payload.completed.result;zt.combine&&ie.tryShiftRecord(zt.draggableId,zt.combine.draggableId),ie.tryRestoreFocusRecorded()}}}}},_o=function(ie){return ie.type==="DROP_COMPLETE"||ie.type==="DROP_ANIMATE"||ie.type==="FLUSH"},uo=function(ie){return function(Oe){return function(et){return function(bt){if(_o(bt)){ie.stop(),et(bt);return}if(bt.type==="INITIAL_PUBLISH"){et(bt);var zt=Oe.getState();zt.phase==="DRAGGING"||Ge(!1),ie.start(zt);return}et(bt),ie.scroll(Oe.getState())}}}},Ha=function(ie){return function(Oe){return function(et){if(Oe(et),et.type!=="PUBLISH_WHILE_DRAGGING")return;var bt=ie.getState();if(bt.phase!=="DROP_PENDING")return;if(bt.isWaiting)return;ie.dispatch(Fi({reason:bt.reason}))}}},vt=m.d,Er=function(ie){var Oe=ie.dimensionMarshal,et=ie.focusMarshal,bt=ie.styleMarshal,zt=ie.getResponders,qt=ie.announce,ar=ie.autoScroller;return Object(m.e)(ra,vt(Object(m.a)(Wi(bt),rs(Oe),Gi(Oe),io,os,xo,Ha,uo(ar),ao,Ho(et),Io(zt,qt))))},qr=function(){return{additions:{},removals:{},modified:{}}};function Gr(Be){var ie=Be.registry,Oe=Be.callbacks,et=qr(),bt=null,zt=function(){if(bt)return;Oe.collectionStarting(),bt=requestAnimationFrame(function(){bt=null,Di();var Hr=et,Ur=Hr.additions,sn=Hr.removals,gn=Hr.modified,zn=Object.keys(Ur).map(function(da){return ie.draggable.getById(da).getDimension(Ce)}).sort(function(da,$i){return da.descriptor.index-$i.descriptor.index}),Li=Object.keys(gn).map(function(da){var $i=ie.droppable.getById(da),Qa=$i.callbacks.getScrollWhileDragging();return{droppableId:da,scroll:Qa}}),ki={additions:zn,removals:Object.keys(sn),modified:Li};et=qr(),oa(),Oe.publish(ki)})},qt=function(Hr){var Ur=Hr.descriptor.id;et.additions[Ur]=Hr,et.modified[Hr.descriptor.droppableId]=!0,et.removals[Ur]&&delete et.removals[Ur],zt()},ar=function(Hr){var Ur=Hr.descriptor;et.removals[Ur.id]=!0,et.modified[Ur.droppableId]=!0,et.additions[Ur.id]&&delete et.additions[Ur.id],zt()},Kr=function(){if(!bt)return;cancelAnimationFrame(bt),bt=null,et=qr()};return{add:qt,remove:ar,stop:Kr}}var Qn=function(ie){var Oe=ie.scrollHeight,et=ie.scrollWidth,bt=ie.height,zt=ie.width,qt=le({x:et,y:Oe},{x:zt,y:bt}),ar={x:Math.max(0,qt.x),y:Math.max(0,qt.y)};return ar},un=function(){var ie=document.documentElement;return ie||Ge(!1),ie},zr=function(){var ie=un(),Oe=Qn({scrollHeight:ie.scrollHeight,scrollWidth:ie.scrollWidth,width:ie.clientWidth,height:ie.clientHeight});return Oe},ni=function(){var ie=oo(),Oe=zr(),et=ie.y,bt=ie.x,zt=un(),qt=zt.clientWidth,ar=zt.clientHeight,Kr=bt+qt,cn=et+ar,Hr=e({top:et,left:bt,right:Kr,bottom:cn}),Ur={frame:Hr,scroll:{initial:ie,current:ie,max:Oe,diff:{value:Ce,displacement:Ce}}};return Ur},rn=function(ie){var Oe=ie.critical,et=ie.scrollOptions,bt=ie.registry;Di();var zt=ni(),qt=zt.scroll.current,ar=Oe.droppable,Kr=bt.droppable.getAllByType(ar.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(qt,et)}),cn=bt.draggable.getAllByType(Oe.draggable.type).map(function(sn){return sn.getDimension(qt)}),Hr={draggables:dt(cn),droppables:Qt(Kr)};oa();var Ur={dimensions:Hr,critical:Oe,viewport:zt};return Ur};function Kn(Be,ie,Oe){if(Oe.descriptor.id===ie.id)return!1;if(Oe.descriptor.type!==ie.type)return!1;var et=Be.droppable.getById(Oe.descriptor.droppableId);return!(et.descriptor.mode!=="virtual")}var li=function(ie,Oe){var et=null,bt=Gr({callbacks:{publish:Oe.publishWhileDragging,collectionStarting:Oe.collectionStarting},registry:ie}),zt=function(zn,Li){if(ie.droppable.exists(zn)||Ge(!1),!et)return;Oe.updateDroppableIsEnabled({id:zn,isEnabled:Li})},qt=function(zn,Li){if(!et)return;ie.droppable.exists(zn)||Ge(!1),Oe.updateDroppableIsCombineEnabled({id:zn,isCombineEnabled:Li})},ar=function(zn,Li){if(!et)return;ie.droppable.exists(zn)||Ge(!1),Oe.updateDroppableScroll({id:zn,newScroll:Li})},Kr=function(zn,Li){if(!et)return;ie.droppable.getById(zn).callbacks.scroll(Li)},cn=function(){if(!et)return;bt.stop();var zn=et.critical.droppable;ie.droppable.getAllByType(zn.type).forEach(function(Li){return Li.callbacks.dragStopped()}),et.unsubscribe(),et=null},Hr=function(zn){et||Ge(!1);var Li=et.critical.draggable;zn.type==="ADDITION"&&(Kn(ie,Li,zn.value)&&bt.add(zn.value)),zn.type==="REMOVAL"&&(Kn(ie,Li,zn.value)&&bt.remove(zn.value))},Ur=function(zn){et&&Ge(!1);var Li=ie.draggable.getById(zn.draggableId),ki=ie.droppable.getById(Li.descriptor.droppableId),da={draggable:Li.descriptor,droppable:ki.descriptor},$i=ie.subscribe(Hr);return et={critical:da,unsubscribe:$i},rn({critical:da,registry:ie,scrollOptions:zn.scrollOptions})},sn={updateDroppableIsEnabled:zt,updateDroppableIsCombineEnabled:qt,scrollDroppable:Kr,updateDroppableScroll:ar,startPublishing:Ur,stopPublishing:cn};return sn},ci=function(ie,Oe){return ie.phase==="IDLE"?!0:ie.phase!=="DROP_ANIMATING"||ie.completed.result.draggableId===Oe?!1:ie.completed.result.reason==="DROP"},si=function(ie){window.scrollBy(ie.x,ie.y)},Ci=I(function(Be){return Jt(Be).filter(function(ie){return ie.isEnabled?!!ie.frame:!1})}),mi=function(ie,Oe){var et=ue(Ci(Oe),function(bt){return bt.frame||Ge(!1),Sn(bt.frame.pageMarginBox)(ie)});return et},yi=function(ie){var Oe=ie.center,et=ie.destination,bt=ie.droppables;if(et){var zt=bt[et];return zt.frame?zt:null}var qt=mi(Oe,bt);return qt},Ni={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ie){return Math.pow(ie,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(ie,Oe){var et=ie[Oe.size]*Ni.startFromPercentage,bt=ie[Oe.size]*Ni.maxScrollAtPercentage,zt={startScrollingFrom:et,maxScrollValueAt:bt};return zt},Ki=function(ie){var Oe=ie.startOfRange,et=ie.endOfRange,bt=ie.current,zt=et-Oe;if(zt===0)return 0;var qt=bt-Oe,ar=qt/zt;return ar},fa=1,Ya=function(ie,Oe){if(ie>Oe.startScrollingFrom)return 0;if(ie<=Oe.maxScrollValueAt)return Ni.maxPixelScroll;if(ie===Oe.startScrollingFrom)return fa;var et=Ki({startOfRange:Oe.maxScrollValueAt,endOfRange:Oe.startScrollingFrom,current:ie}),bt=1-et,zt=Ni.maxPixelScroll*Ni.ease(bt);return Math.ceil(zt)},xa=Ni.durationDampening.accelerateAt,wa=Ni.durationDampening.stopDampeningAt,Da=function(ie,Oe){var et=Oe,bt=wa,zt=Date.now(),qt=zt-et;if(qt>=wa)return ie;if(qt<xa)return fa;var ar=Ki({startOfRange:xa,endOfRange:bt,current:qt}),Kr=ie*Ni.ease(ar);return Math.ceil(Kr)},ja=function(ie){var Oe=ie.distanceToEdge,et=ie.thresholds,bt=ie.dragStartTime,zt=ie.shouldUseTimeDampening,qt=Ya(Oe,et);return qt===0?0:zt?Math.max(Da(qt,bt),fa):qt},ko=function(ie){var Oe=ie.container,et=ie.distanceToEdges,bt=ie.dragStartTime,zt=ie.axis,qt=ie.shouldUseTimeDampening,ar=ia(Oe,zt),Kr=et[zt.end]<et[zt.start];return Kr?ja({distanceToEdge:et[zt.end],thresholds:ar,dragStartTime:bt,shouldUseTimeDampening:qt}):-1*ja({distanceToEdge:et[zt.start],thresholds:ar,dragStartTime:bt,shouldUseTimeDampening:qt})},ro=function(ie){var Oe=ie.container,et=ie.subject,bt=ie.proposedScroll,zt=et.height>Oe.height,qt=et.width>Oe.width;return!qt&&!zt?bt:qt&&zt?null:{x:qt?0:bt.x,y:zt?0:bt.y}},pa=je(function(Be){return Be===0?0:Be}),Ea=function(ie){var Oe=ie.dragStartTime,et=ie.container,bt=ie.subject,zt=ie.center,qt=ie.shouldUseTimeDampening,ar={top:zt.y-et.top,right:et.right-zt.x,bottom:et.bottom-zt.y,left:zt.x-et.left},Kr=ko({container:et,distanceToEdges:ar,dragStartTime:Oe,axis:Mn,shouldUseTimeDampening:qt}),cn=ko({container:et,distanceToEdges:ar,dragStartTime:Oe,axis:Xt,shouldUseTimeDampening:qt}),Hr=pa({x:cn,y:Kr});if(pe(Hr,Ce))return null;var Ur=ro({container:et,subject:bt,proposedScroll:Hr});return Ur?pe(Ur,Ce)?null:Ur:null},Fa=je(function(Be){return Be===0?0:Be>0?1:-1}),Ka=function(){var Be=function(Oe,et){return Oe<0?Oe:Oe>et?Oe-et:0};return function(ie){var Oe=ie.current,et=ie.max,bt=ie.change,zt=Se(Oe,bt),qt={x:Be(zt.x,et.x),y:Be(zt.y,et.y)};return pe(qt,Ce)?null:qt}}(),lo=function(ie){var Oe=ie.max,et=ie.current,bt=ie.change,zt={x:Math.max(et.x,Oe.x),y:Math.max(et.y,Oe.y)},qt=Fa(bt),ar=Ka({max:zt,current:et,change:qt});return ar?qt.x!==0&&ar.x===0?!0:qt.y!==0&&ar.y===0:!0},so=function(ie,Oe){return lo({current:ie.scroll.current,max:ie.scroll.max,change:Oe})},Co=function(ie,Oe){if(!so(ie,Oe))return null;var et=ie.scroll.max,bt=ie.scroll.current;return Ka({current:bt,max:et,change:Oe})},Lo=function(ie,Oe){var et=ie.frame;return et?lo({current:et.scroll.current,max:et.scroll.max,change:Oe}):!1},is=function(ie,Oe){var et=ie.frame;return et&&Lo(ie,Oe)?Ka({current:et.scroll.current,max:et.scroll.max,change:Oe}):null},cs=function(ie){var Oe=ie.viewport,et=ie.subject,bt=ie.center,zt=ie.dragStartTime,qt=ie.shouldUseTimeDampening,ar=Ea({dragStartTime:zt,container:Oe.frame,subject:et,center:bt,shouldUseTimeDampening:qt});return ar&&so(Oe,ar)?ar:null},Rs=function(ie){var Oe=ie.droppable,et=ie.subject,bt=ie.center,zt=ie.dragStartTime,qt=ie.shouldUseTimeDampening,ar=Oe.frame;if(!ar)return null;var Kr=Ea({dragStartTime:zt,container:ar.pageMarginBox,subject:et,center:bt,shouldUseTimeDampening:qt});return Kr&&Lo(Oe,Kr)?Kr:null},Ko=function(ie){var Oe=ie.state,et=ie.dragStartTime,bt=ie.shouldUseTimeDampening,zt=ie.scrollWindow,qt=ie.scrollDroppable,ar=Oe.current.page.borderBoxCenter,Kr=Oe.dimensions.draggables[Oe.critical.draggable.id],cn=Kr.page.marginBox;if(Oe.isWindowScrollAllowed){var Hr=Oe.viewport,Ur=cs({dragStartTime:et,viewport:Hr,subject:cn,center:ar,shouldUseTimeDampening:bt});if(Ur){zt(Ur);return}}var sn=yi({center:ar,destination:ei(Oe.impact),droppables:Oe.dimensions.droppables});if(!sn)return;var gn=Rs({dragStartTime:et,droppable:sn,subject:cn,center:ar,shouldUseTimeDampening:bt});gn&&qt(sn.descriptor.id,gn)},as=function(ie){var Oe=ie.scrollWindow,et=ie.scrollDroppable,bt=M(Oe),zt=M(et),qt=null,ar=function(Ur){qt||Ge(!1);var sn=qt,gn=sn.shouldUseTimeDampening,zn=sn.dragStartTime;Ko({state:Ur,scrollWindow:bt,scrollDroppable:zt,dragStartTime:zn,shouldUseTimeDampening:gn})},Kr=function(Ur){Di(),qt&&Ge(!1);var sn=Date.now(),gn=!1,zn=function(){gn=!0};Ko({state:Ur,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:zn,scrollDroppable:zn}),qt={dragStartTime:sn,shouldUseTimeDampening:gn},oa(),gn&&ar(Ur)},cn=function(){if(!qt)return;bt.cancel(),zt.cancel(),qt=null};return{start:Kr,stop:cn,scroll:ar}},co=function(ie){var Oe=ie.move,et=ie.scrollDroppable,bt=ie.scrollWindow,zt=function(Hr,Ur){var sn=Se(Hr.current.client.selection,Ur);Oe({client:sn})},qt=function(Hr,Ur){if(!Lo(Hr,Ur))return Ur;var sn=is(Hr,Ur);if(!sn)return et(Hr.descriptor.id,Ur),null;var gn=le(Ur,sn);et(Hr.descriptor.id,gn);var zn=le(Ur,gn);return zn},ar=function(Hr,Ur,sn){if(!Hr)return sn;if(!so(Ur,sn))return sn;var gn=Co(Ur,sn);if(!gn)return bt(sn),null;var zn=le(sn,gn);bt(zn);var Li=le(sn,zn);return Li},Kr=function(Hr){var Ur=Hr.scrollJumpRequest;if(!Ur)return;var sn=ei(Hr.impact);sn||Ge(!1);var gn=qt(Hr.dimensions.droppables[sn],Ur);if(!gn)return;var zn=Hr.viewport,Li=ar(Hr.isWindowScrollAllowed,zn,gn);if(!Li)return;zt(Hr,Li)};return Kr},Ao=function(ie){var Oe=ie.scrollDroppable,et=ie.scrollWindow,bt=ie.move,zt=as({scrollWindow:et,scrollDroppable:Oe}),qt=co({move:bt,scrollWindow:et,scrollDroppable:Oe}),ar=function(Hr){if(Hr.phase!=="DRAGGING")return;if(Hr.movementMode==="FLUID"){zt.scroll(Hr);return}if(!Hr.scrollJumpRequest)return;qt(Hr)},Kr={scroll:ar,start:zt.start,stop:zt.stop};return Kr},$a="data-rbd",ss=function(){var Be=$a+"-drag-handle";return{base:Be,draggableId:Be+"-draggable-id",contextId:Be+"-context-id"}}(),_s=function(){var Be=$a+"-draggable";return{base:Be,contextId:Be+"-context-id",id:Be+"-id"}}(),Fo=function(){var Be=$a+"-droppable";return{base:Be,contextId:Be+"-context-id",id:Be+"-id"}}(),il={contextId:$a+"-scroll-container-context-id"},Eo=function(ie){return function(Oe){return"["+Oe+'="'+ie+'"]'}},zo=function(ie,Oe){return ie.map(function(et){var bt=et.styles[Oe];return bt?et.selector+" { "+bt+" }":""}).join(" ")},Fs="pointer-events: none;",ms=function(ie){var Oe=Eo(ie),et=function(){var Kr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Oe(ss.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Kr,dragging:Fs,dropAnimating:Kr}}}(),bt=function(){var Kr=`
transition: `+na.outOfTheWay+`;
`;return{selector:Oe(_s.contextId),styles:{dragging:Kr,dropAnimating:Kr,userCancel:Kr}}}(),zt={selector:Oe(Fo.contextId),styles:{always:"overflow-anchor: none;"}},qt={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},ar=[bt,et,zt,qt];return{always:zo(ar,"always"),resting:zo(ar,"resting"),dragging:zo(ar,"dragging"),dropAnimating:zo(ar,"dropAnimating"),userCancel:zo(ar,"userCancel")}},hs=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,An=function(){var ie=document.querySelector("head");return ie||Ge(!1),ie},Ns=function(ie){var Oe=document.createElement("style");return ie&&Oe.setAttribute("nonce",ie),Oe.type="text/css",Oe};function Ll(Be,ie){var Oe=i(function(){return ms(Be)},[Be]),et=Object(y.useRef)(null),bt=Object(y.useRef)(null),zt=t(I(function(Ur){var sn=bt.current;sn||Ge(!1),sn.textContent=Ur}),[]),qt=t(function(Ur){var sn=et.current;sn||Ge(!1),sn.textContent=Ur},[]);hs(function(){!et.current&&!bt.current||Ge(!1);var Ur=Ns(ie),sn=Ns(ie);return et.current=Ur,bt.current=sn,Ur.setAttribute($a+"-always",Be),sn.setAttribute($a+"-dynamic",Be),An().appendChild(Ur),An().appendChild(sn),qt(Oe.always),zt(Oe.resting),function(){var gn=function(Li){var ki=Li.current;ki||Ge(!1),An().removeChild(ki),Li.current=null};gn(et),gn(bt)}},[ie,qt,zt,Oe.always,Oe.resting,Be]);var ar=t(function(){return zt(Oe.dragging)},[zt,Oe.dragging]),Kr=t(function(Ur){if(Ur==="DROP"){zt(Oe.dropAnimating);return}zt(Oe.userCancel)},[zt,Oe.dropAnimating,Oe.userCancel]),cn=t(function(){if(!bt.current)return;zt(Oe.resting)},[zt,Oe.resting]),Hr=i(function(){return{dragging:ar,dropping:Kr,resting:cn}},[ar,Kr,cn]);return Hr}var el=function(ie){return ie&&ie.ownerDocument?ie.ownerDocument.defaultView:window};function Gs(Be){return Be instanceof el(Be).HTMLElement}function ds(Be,ie){var Oe="["+ss.contextId+'="'+Be+'"]',et=St(document.querySelectorAll(Oe));if(!et.length)return null;var bt=ue(et,function(zt){return zt.getAttribute(ss.draggableId)===ie});return bt&&Gs(bt)?bt:null}function ks(Be){var ie=Object(y.useRef)({}),Oe=Object(y.useRef)(null),et=Object(y.useRef)(null),bt=Object(y.useRef)(!1),zt=t(function(sn,gn){var zn={id:sn,focus:gn};return ie.current[sn]=zn,function(){var ki=ie.current,da=ki[sn];da!==zn&&delete ki[sn]}},[]),qt=t(function(sn){var gn=ds(Be,sn);gn&&gn!==document.activeElement&&gn.focus()},[Be]),ar=t(function(sn,gn){Oe.current===sn&&(Oe.current=gn)},[]),Kr=t(function(){if(et.current)return;if(!bt.current)return;et.current=requestAnimationFrame(function(){et.current=null;var sn=Oe.current;sn&&qt(sn)})},[qt]),cn=t(function(sn){Oe.current=null;var gn=document.activeElement;if(!gn)return;if(gn.getAttribute(ss.draggableId)!==sn)return;Oe.current=sn},[]);hs(function(){return bt.current=!0,function(){bt.current=!1;var sn=et.current;sn&&cancelAnimationFrame(sn)}},[]);var Hr=i(function(){return{register:zt,tryRecordFocus:cn,tryRestoreFocusRecorded:Kr,tryShiftRecord:ar}},[zt,cn,Kr,ar]);return Hr}function Qs(){var Be={draggables:{},droppables:{}},ie=[];function Oe(Ur){return ie.push(Ur),function(){var gn=ie.indexOf(Ur);if(gn===-1)return;ie.splice(gn,1)}}function et(Ur){ie.length&&ie.forEach(function(sn){return sn(Ur)})}function bt(Ur){return Be.draggables[Ur]||null}function zt(Ur){var sn=bt(Ur);return sn||Ge(!1),sn}var qt={register:function(sn){Be.draggables[sn.descriptor.id]=sn,et({type:"ADDITION",value:sn})},update:function(sn,gn){var zn=Be.draggables[gn.descriptor.id];if(!zn)return;if(zn.uniqueId!==sn.uniqueId)return;delete Be.draggables[gn.descriptor.id],Be.draggables[sn.descriptor.id]=sn},unregister:function(sn){var gn=sn.descriptor.id,zn=bt(gn);if(!zn)return;if(sn.uniqueId!==zn.uniqueId)return;delete Be.draggables[gn],et({type:"REMOVAL",value:sn})},getById:zt,findById:bt,exists:function(sn){return Boolean(bt(sn))},getAllByType:function(sn){return Ze(Be.draggables).filter(function(gn){return gn.descriptor.type===sn})}};function ar(Ur){return Be.droppables[Ur]||null}function Kr(Ur){var sn=ar(Ur);return sn||Ge(!1),sn}var cn={register:function(sn){Be.droppables[sn.descriptor.id]=sn},unregister:function(sn){var gn=ar(sn.descriptor.id);if(!gn)return;if(sn.uniqueId!==gn.uniqueId)return;delete Be.droppables[sn.descriptor.id]},getById:Kr,findById:ar,exists:function(sn){return Boolean(ar(sn))},getAllByType:function(sn){return Ze(Be.droppables).filter(function(gn){return gn.descriptor.type===sn})}};function Hr(){Be.draggables={},Be.droppables={},ie.length=0}return{draggable:qt,droppable:cn,subscribe:Oe,clean:Hr}}function tl(){var Be=i(Qs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(Be.clean)}},[Be]),Be}var xs=f.a.createContext(null),Bs=function(){var ie=document.body;return ie||Ge(!1),ie},al={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Js=function(ie){return"rbd-announcement-"+ie};function Vo(Be){var ie=i(function(){return Js(Be)},[Be]),Oe=Object(y.useRef)(null);Object(y.useEffect)(function(){var zt=document.createElement("div");return Oe.current=zt,zt.id=ie,zt.setAttribute("aria-live","assertive"),zt.setAttribute("aria-atomic","true"),Object(A.a)(zt.style,al),Bs().appendChild(zt),function(){setTimeout(function(){var Kr=Bs();Kr.contains(zt)&&Kr.removeChild(zt),zt===Oe.current&&(Oe.current=null)})}},[ie]);var et=t(function(bt){var zt=Oe.current;if(zt){zt.textContent=bt;return}},[]);return et}var No=0,fs={separator:"::"};function Ds(){No=0}function go(Be,ie){return ie===void 0&&(ie=fs),i(function(){return""+Be+ie.separator+No++},[ie.separator,Be])}function jt(Be){var ie=Be.contextId,Oe=Be.uniqueId;return"rbd-hidden-text-"+ie+"-"+Oe}function or(Be){var ie=Be.contextId,Oe=Be.text,et=go("hidden-text",{separator:"-"}),bt=i(function(){return jt({contextId:ie,uniqueId:et})},[et,ie]);return Object(y.useEffect)(function(){var qt=document.createElement("div");return qt.id=bt,qt.textContent=Oe,qt.style.display="none",Bs().appendChild(qt),function(){var Kr=Bs();Kr.contains(qt)&&Kr.removeChild(qt)}},[bt,Oe]),bt}var In=f.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},Nt=/(\d+)\.(\d+)\.(\d+)/,ce=function(ie){var Oe=Nt.exec(ie);Oe!=null||Ge(!1);var et=Number(Oe[1]),bt=Number(Oe[2]),zt=Number(Oe[3]);return{major:et,minor:bt,patch:zt,raw:ie}},xe=function(ie,Oe){return Oe.major>ie.major?!0:Oe.major<ie.major?!1:Oe.minor>ie.minor?!0:Oe.minor<ie.minor?!1:Oe.patch>=ie.patch},Ie=function(ie,Oe){var et=ce(ie),bt=ce(Oe);if(xe(et,bt))return},Je=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,Dt=function(ie){var Oe=ie.doctype;if(!Oe)return;Oe.name.toLowerCase()!=="html",Oe.publicId!==""};function lr(Be){}function Xr(Be,ie){lr(function(){Object(y.useEffect)(function(){try{Be()}catch(Oe){se(`
A setup problem was encountered.
> `+Oe.message+`
`)}},ie)})}function hn(){Xr(function(){Ie(hi.react,f.a.version),Dt(document)},[])}function Nn(Be){var ie=Object(y.useRef)(Be);return Object(y.useEffect)(function(){ie.current=Be}),ie}function ui(){var Be=null;function ie(){return Boolean(Be)}function Oe(qt){return qt===Be}function et(qt){Be&&Ge(!1);var ar={abandon:qt};return Be=ar,ar}function bt(){Be||Ge(!1),Be=null}function zt(){Be&&(Be.abandon(),bt())}return{isClaimed:ie,isActive:Oe,claim:et,release:bt,tryAbandon:zt}}var xi=9,Ai=13,Yi=27,sa=32,Ua=33,no=34,Wo=35,Zo=36,Bo=37,Es=38,As=39,$o=40,Do,vo=(Do={},Do[Ai]=!0,Do[xi]=!0,Do),Ms=function(ie){vo[ie.keyCode]&&ie.preventDefault()},rl=function(){var Be="visibilitychange";if(typeof document=="undefined")return Be;var ie=[Be,"ms"+Be,"webkit"+Be,"moz"+Be,"o"+Be],Oe=ue(ie,function(et){return"on"+et in document});return Oe||Be}(),gs=0,Ra=5;function dl(Be,ie){return Math.abs(ie.x-Be.x)>=Ra||Math.abs(ie.y-Be.y)>=Ra}var fl={type:"IDLE"};function Us(Be){var ie=Be.cancel,Oe=Be.completed,et=Be.getPhase,bt=Be.setPhase;return[{eventName:"mousemove",fn:function(qt){var ar=qt.button,Kr=qt.clientX,cn=qt.clientY;if(ar!==gs)return;var Hr={x:Kr,y:cn},Ur=et();if(Ur.type==="DRAGGING"){qt.preventDefault(),Ur.actions.move(Hr);return}Ur.type==="PENDING"||Ge(!1);var sn=Ur.point;if(!dl(sn,Hr))return;qt.preventDefault();var gn=Ur.actions.fluidLift(Hr);bt({type:"DRAGGING",actions:gn})}},{eventName:"mouseup",fn:function(qt){var ar=et();if(ar.type!=="DRAGGING"){ie();return}qt.preventDefault(),ar.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"mousedown",fn:function(qt){et().type==="DRAGGING"&&qt.preventDefault(),ie()}},{eventName:"keydown",fn:function(qt){var ar=et();if(ar.type==="PENDING"){ie();return}if(qt.keyCode===Yi){qt.preventDefault(),ie();return}Ms(qt)}},{eventName:"resize",fn:ie},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){et().type==="PENDING"&&ie()}},{eventName:"webkitmouseforcedown",fn:function(qt){var ar=et();if(ar.type!=="IDLE"||Ge(!1),ar.actions.shouldRespectForcePress()){ie();return}qt.preventDefault()}},{eventName:rl,fn:ie}]}function Os(Be){var ie=Object(y.useRef)(fl),Oe=Object(y.useRef)(ye),et=i(function(){return{eventName:"mousedown",fn:function(Ur){if(Ur.defaultPrevented)return;if(Ur.button!==gs)return;if(Ur.ctrlKey||Ur.metaKey||Ur.shiftKey||Ur.altKey)return;var sn=Be.findClosestDraggableId(Ur);if(!sn)return;var gn=Be.tryGetLock(sn,qt,{sourceEvent:Ur});if(!gn)return;Ur.preventDefault();var zn={x:Ur.clientX,y:Ur.clientY};Oe.current(),cn(gn,zn)}}},[Be]),bt=i(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ur){if(Ur.defaultPrevented)return;var sn=Be.findClosestDraggableId(Ur);if(!sn)return;var gn=Be.findOptionsForDraggable(sn);if(!gn)return;if(gn.shouldRespectForcePress)return;if(!Be.canGetLock(sn))return;Ur.preventDefault()}}},[Be]),zt=t(function(){var Ur={passive:!1,capture:!0};Oe.current=ke(window,[bt,et],Ur)},[bt,et]),qt=t(function(){var Hr=ie.current;if(Hr.type==="IDLE")return;ie.current=fl,Oe.current(),zt()},[zt]),ar=t(function(){var Hr=ie.current;qt(),Hr.type==="DRAGGING"&&Hr.actions.cancel({shouldBlockNextClick:!0}),Hr.type==="PENDING"&&Hr.actions.abort()},[qt]),Kr=t(function(){var Ur={capture:!0,passive:!1},sn=Us({cancel:ar,completed:qt,getPhase:function(){return ie.current},setPhase:function(zn){ie.current=zn}});Oe.current=ke(window,sn,Ur)},[ar,qt]),cn=t(function(Ur,sn){ie.current.type==="IDLE"||Ge(!1),ie.current={type:"PENDING",point:sn,actions:Ur},Kr()},[Kr]);hs(function(){return zt(),function(){Oe.current()}},[zt])}var Xs;function Ql(){}var Ul=(Xs={},Xs[no]=!0,Xs[Ua]=!0,Xs[Zo]=!0,Xs[Wo]=!0,Xs);function wl(Be,ie){function Oe(){ie(),Be.cancel()}function et(){ie(),Be.drop()}return[{eventName:"keydown",fn:function(zt){if(zt.keyCode===Yi){zt.preventDefault(),Oe();return}if(zt.keyCode===sa){zt.preventDefault(),et();return}if(zt.keyCode===$o){zt.preventDefault(),Be.moveDown();return}if(zt.keyCode===Es){zt.preventDefault(),Be.moveUp();return}if(zt.keyCode===As){zt.preventDefault(),Be.moveRight();return}if(zt.keyCode===Bo){zt.preventDefault(),Be.moveLeft();return}if(Ul[zt.keyCode]){zt.preventDefault();return}Ms(zt)}},{eventName:"mousedown",fn:Oe},{eventName:"mouseup",fn:Oe},{eventName:"click",fn:Oe},{eventName:"touchstart",fn:Oe},{eventName:"resize",fn:Oe},{eventName:"wheel",fn:Oe,options:{passive:!0}},{eventName:rl,fn:Oe}]}function Ts(Be){var ie=Object(y.useRef)(Ql),Oe=i(function(){return{eventName:"keydown",fn:function(zt){if(zt.defaultPrevented)return;if(zt.keyCode!==sa)return;var qt=Be.findClosestDraggableId(zt);if(!qt)return;var ar=Be.tryGetLock(qt,Hr,{sourceEvent:zt});if(!ar)return;zt.preventDefault();var Kr=!0,cn=ar.snapLift();ie.current();function Hr(){Kr||Ge(!1),Kr=!1,ie.current(),et()}ie.current=ke(window,wl(cn,Hr),{capture:!0,passive:!1})}}},[Be]),et=t(function(){var zt={passive:!1,capture:!0};ie.current=ke(window,[Oe],zt)},[Oe]);hs(function(){return et(),function(){ie.current()}},[et])}var Ws={type:"IDLE"},Tl=120,pl=.15;function jo(Be){var ie=Be.cancel,Oe=Be.getPhase;return[{eventName:"orientationchange",fn:ie},{eventName:"resize",fn:ie},{eventName:"contextmenu",fn:function(bt){bt.preventDefault()}},{eventName:"keydown",fn:function(bt){if(Oe().type!=="DRAGGING"){ie();return}bt.keyCode===Yi&&bt.preventDefault(),ie()}},{eventName:rl,fn:ie}]}function yo(Be){var ie=Be.cancel,Oe=Be.completed,et=Be.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(zt){var qt=et();if(qt.type!=="DRAGGING"){ie();return}qt.hasMoved=!0;var ar=zt.touches[0],Kr=ar.clientX,cn=ar.clientY,Hr={x:Kr,y:cn};zt.preventDefault(),qt.actions.move(Hr)}},{eventName:"touchend",fn:function(zt){var qt=et();if(qt.type!=="DRAGGING"){ie();return}zt.preventDefault(),qt.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"touchcancel",fn:function(zt){if(et().type!=="DRAGGING"){ie();return}zt.preventDefault(),ie()}},{eventName:"touchforcechange",fn:function(zt){var qt=et();qt.type!=="IDLE"||Ge(!1);var ar=zt.touches[0];if(!ar)return;var Kr=ar.force>=pl;if(!Kr)return;var cn=qt.actions.shouldRespectForcePress();if(qt.type==="PENDING"){cn&&ie();return}if(cn){if(qt.hasMoved){zt.preventDefault();return}ie();return}zt.preventDefault()}},{eventName:rl,fn:ie}]}function qo(Be){var ie=Object(y.useRef)(Ws),Oe=Object(y.useRef)(ye),et=t(function(){return ie.current},[]),bt=t(function(gn){ie.current=gn},[]),zt=i(function(){return{eventName:"touchstart",fn:function(gn){if(gn.defaultPrevented)return;var zn=Be.findClosestDraggableId(gn);if(!zn)return;var Li=Be.tryGetLock(zn,ar,{sourceEvent:gn});if(!Li)return;var ki=gn.touches[0],da=ki.clientX,$i=ki.clientY,Qa={x:da,y:$i};Oe.current(),Ur(Li,Qa)}}},[Be]),qt=t(function(){var gn={capture:!0,passive:!1};Oe.current=ke(window,[zt],gn)},[zt]),ar=t(function(){var sn=ie.current;if(sn.type==="IDLE")return;sn.type==="PENDING"&&clearTimeout(sn.longPressTimerId),bt(Ws),Oe.current(),qt()},[qt,bt]),Kr=t(function(){var sn=ie.current;ar(),sn.type==="DRAGGING"&&sn.actions.cancel({shouldBlockNextClick:!0}),sn.type==="PENDING"&&sn.actions.abort()},[ar]),cn=t(function(){var gn={capture:!0,passive:!1},zn={cancel:Kr,completed:ar,getPhase:et},Li=ke(window,yo(zn),gn),ki=ke(window,jo(zn),gn);Oe.current=function(){Li(),ki()}},[Kr,et,ar]),Hr=t(function(){var gn=et();gn.type==="PENDING"||Ge(!1);var zn=gn.actions.fluidLift(gn.point);bt({type:"DRAGGING",actions:zn,hasMoved:!1})},[et,bt]),Ur=t(function(gn,zn){et().type==="IDLE"||Ge(!1);var Li=setTimeout(Hr,Tl);bt({type:"PENDING",point:zn,actions:gn,longPressTimerId:Li}),cn()},[cn,et,bt,Hr]);hs(function(){return qt(),function(){Oe.current();var zn=et();zn.type==="PENDING"&&(clearTimeout(zn.longPressTimerId),bt(Ws))}},[et,qt,bt]),hs(function(){var gn=ke(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return gn},[])}function ps(Be){lr(function(){var ie=Nn(Be);Xr(function(){ie.current.length===Be.length||Ge(!1)})})}var Is={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function es(Be,ie){if(ie==null)return!1;var Oe=Boolean(Is[ie.tagName.toLowerCase()]);if(Oe)return!0;var et=ie.getAttribute("contenteditable");return et==="true"||et===""?!0:ie===Be?!1:es(Be,ie.parentElement)}function Ls(Be,ie){var Oe=ie.target;return Gs(Oe)?es(Be,Oe):!1}var Ps=function(ie){return e(ie.getBoundingClientRect()).center};function ml(Be){return Be instanceof el(Be).Element}var Rl=function(){var Be="matches";if(typeof document=="undefined")return Be;var ie=[Be,"msMatchesSelector","webkitMatchesSelector"],Oe=ue(ie,function(et){return et in Element.prototype});return Oe||Be}();function _l(Be,ie){return Be==null?null:Be[Rl](ie)?Be:_l(Be.parentElement,ie)}function Bl(Be,ie){return Be.closest?Be.closest(ie):_l(Be,ie)}function jl(Be){return"["+ss.contextId+'="'+Be+'"]'}function kl(Be,ie){var Oe=ie.target;if(!ml(Oe))return null;var et=jl(Be),bt=Bl(Oe,et);return bt&&Gs(bt)?bt:null}function Xl(Be,ie){var Oe=kl(Be,ie);return Oe?Oe.getAttribute(ss.draggableId):null}function ol(Be,ie){var Oe="["+_s.contextId+'="'+Be+'"]',et=St(document.querySelectorAll(Oe)),bt=ue(et,function(zt){return zt.getAttribute(_s.id)===ie});return bt&&Gs(bt)?bt:null}function Ys(Be){Be.preventDefault()}function sl(Be){var ie=Be.expected,Oe=Be.phase,et=Be.isLockActive,bt=Be.shouldWarn;return et()?!(ie!==Oe):!1}function nl(Be){var ie=Be.lockAPI,Oe=Be.store,et=Be.registry,bt=Be.draggableId;if(ie.isClaimed())return!1;var zt=et.draggable.findById(bt);return zt&&zt.options.isEnabled?!!ci(Oe.getState(),bt):!1}function xl(Be){var ie=Be.lockAPI,Oe=Be.contextId,et=Be.store,bt=Be.registry,zt=Be.draggableId,qt=Be.forceSensorStop,ar=Be.sourceEvent,Kr=nl({lockAPI:ie,store:et,registry:bt,draggableId:zt});if(!Kr)return null;var cn=bt.draggable.getById(zt),Hr=ol(Oe,cn.descriptor.id);if(!Hr)return null;if(ar&&!cn.options.canDragInteractiveElements&&Ls(Hr,ar))return null;var Ur=ie.claim(qt||ye),sn="PRE_DRAG";function gn(){return cn.options.shouldRespectForcePress}function zn(){return ie.isActive(Ur)}function Li(za,Xo){sl({expected:za,phase:sn,isLockActive:zn,shouldWarn:!0})&&et.dispatch(Xo())}var ki=Li.bind(null,"DRAGGING");function da(za){function Xo(){ie.release(),sn="COMPLETED"}sn!=="PRE_DRAG"&&(Xo(),sn==="PRE_DRAG"||Ge(!1)),et.dispatch(Sr(za.liftActionArgs)),sn="DRAGGING";function ls(D,B){if(B===void 0&&(B={shouldBlockNextClick:!1}),za.cleanup(),B.shouldBlockNextClick){var ne=ke(window,[{eventName:"click",fn:Ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ne)}Xo(),et.dispatch(Fi({reason:D}))}return Object(A.a)({isActive:function(){return sl({expected:"DRAGGING",phase:sn,isLockActive:zn,shouldWarn:!1})},shouldRespectForcePress:gn,drop:function(B){return ls("DROP",B)},cancel:function(B){return ls("CANCEL",B)}},za.actions)}function $i(za){var Xo=M(function(D){ki(function(){return _t({client:D})})}),ls=da({liftActionArgs:{id:zt,clientSelection:za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(A.a)({},ls,{move:Xo})}function Qa(){var za={moveUp:function(){return ki(en)},moveRight:function(){return ki(On)},moveDown:function(){return ki(bn)},moveLeft:function(){return ki(yn)}};return da({liftActionArgs:{id:zt,clientSelection:Ps(Hr),movementMode:"SNAP"},cleanup:ye,actions:za})}function ya(){var za=sl({expected:"PRE_DRAG",phase:sn,isLockActive:zn,shouldWarn:!0});za&&ie.release()}var fo={isActive:function(){return sl({expected:"PRE_DRAG",phase:sn,isLockActive:zn,shouldWarn:!1})},shouldRespectForcePress:gn,fluidLift:$i,snapLift:Qa,abort:ya};return fo}var Ml=[Os,Ts,qo];function Wl(Be){var ie=Be.contextId,Oe=Be.store,et=Be.registry,bt=Be.customSensors,zt=Be.enableDefaultSensors,qt=[].concat(zt?Ml:[],bt||[]),ar=Object(y.useState)(function(){return ui()})[0],Kr=t(function($i,Qa){$i.isDragging&&!Qa.isDragging&&ar.tryAbandon()},[ar]);hs(function(){var $i=Oe.getState(),Qa=Oe.subscribe(function(){var ya=Oe.getState();Kr($i,ya),$i=ya});return Qa},[ar,Oe,Kr]),hs(function(){return ar.tryAbandon},[ar.tryAbandon]);var cn=t(function(da){return nl({lockAPI:ar,registry:et,store:Oe,draggableId:da})},[ar,et,Oe]),Hr=t(function(da,$i,Qa){return xl({lockAPI:ar,registry:et,contextId:ie,store:Oe,draggableId:da,forceSensorStop:$i,sourceEvent:Qa&&Qa.sourceEvent?Qa.sourceEvent:null})},[ie,ar,et,Oe]),Ur=t(function(da){return Xl(ie,da)},[ie]),sn=t(function(da){var $i=et.draggable.findById(da);return $i?$i.options:null},[et.draggable]),gn=t(function(){if(!ar.isClaimed())return;ar.tryAbandon(),Oe.getState().phase!=="IDLE"&&Oe.dispatch(qn())},[ar,Oe]),zn=t(ar.isClaimed,[ar]),Li=i(function(){return{canGetLock:cn,tryGetLock:Hr,findClosestDraggableId:Ur,findOptionsForDraggable:sn,tryReleaseLock:gn,isLockClaimed:zn}},[cn,Hr,Ur,sn,gn,zn]);ps(qt);for(var ki=0;ki<qt.length;ki++)qt[ki](Li)}var au=function(ie){return{onBeforeCapture:ie.onBeforeCapture,onBeforeDragStart:ie.onBeforeDragStart,onDragStart:ie.onDragStart,onDragEnd:ie.onDragEnd,onDragUpdate:ie.onDragUpdate}};function Nl(Be){return Be.current||Ge(!1),Be.current}function $l(Be){var ie=Be.contextId,Oe=Be.setCallbacks,et=Be.sensors,bt=Be.nonce,zt=Be.dragHandleUsageInstructions,qt=Object(y.useRef)(null);hn();var ar=Nn(Be),Kr=t(function(){return au(ar.current)},[ar]),cn=Vo(ie),Hr=or({contextId:ie,text:zt}),Ur=Ll(ie,bt),sn=t(function(D){Nl(qt).dispatch(D)},[]),gn=i(function(){return Object(m.b)({publishWhileDragging:pr,updateDroppableScroll:Wr,updateDroppableIsEnabled:ln,updateDroppableIsCombineEnabled:Pn,collectionStarting:Dr},sn)},[sn]),zn=tl(),Li=i(function(){return li(zn,gn)},[zn,gn]),ki=i(function(){return Ao(Object(A.a)({scrollWindow:si,scrollDroppable:Li.scrollDroppable},Object(m.b)({move:_t},sn)))},[Li.scrollDroppable,sn]),da=ks(ie),$i=i(function(){return Er({announce:cn,autoScroller:ki,dimensionMarshal:Li,focusMarshal:da,getResponders:Kr,styleMarshal:Ur})},[cn,ki,Li,da,Kr,Ur]);qt.current=$i;var Qa=t(function(){var D=Nl(qt),B=D.getState();B.phase!=="IDLE"&&D.dispatch(qn())},[]),ya=t(function(){var D=Nl(qt).getState();return D.isDragging||D.phase==="DROP_ANIMATING"},[]),fo=i(function(){return{isDragging:ya,tryAbort:Qa}},[ya,Qa]);Oe(fo);var za=t(function(D){return ci(Nl(qt).getState(),D)},[]),Xo=t(function(){return Zr(Nl(qt).getState())},[]),ls=i(function(){return{marshal:Li,focus:da,contextId:ie,canLift:za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:Hr,registry:zn}},[ie,Li,Hr,da,za,Xo,zn]);return Wl({contextId:ie,store:$i,registry:zn,customSensors:et,enableDefaultSensors:Be.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Qa},[Qa]),f.a.createElement(In.Provider,{value:ls},f.a.createElement(p.a,{context:xs,store:$i},Be.children))}var tu=0;function Iu(){tu=0}function pu(){return i(function(){return""+tu++},[])}function mu(){Iu(),Ds()}function gu(Be){var ie=pu(),Oe=Be.dragHandleUsageInstructions||we.dragHandleUsageInstructions;return f.a.createElement(ht,null,function(et){return f.a.createElement($l,{nonce:Be.nonce,contextId:ie,setCallbacks:et,dragHandleUsageInstructions:Oe,enableDefaultSensors:Be.enableDefaultSensors,sensors:Be.sensors,onBeforeCapture:Be.onBeforeCapture,onBeforeDragStart:Be.onBeforeDragStart,onDragStart:Be.onDragStart,onDragUpdate:Be.onDragUpdate,onDragEnd:Be.onDragEnd},Be.children)})}var ql=function(ie){return function(Oe){return ie===Oe}},Cl=ql("scroll"),ll=ql("auto"),Hl=ql("visible"),Sl=function(ie,Oe){return Oe(ie.overflowX)||Oe(ie.overflowY)},Su=function(ie,Oe){return Oe(ie.overflowX)&&Oe(ie.overflowY)},vu=function(ie){var Oe=window.getComputedStyle(ie),et={overflowX:Oe.overflowX,overflowY:Oe.overflowY};return Sl(et,Cl)||Sl(et,ll)},Au=function(){return!1;var ie,Oe;if(!vu(ie))return!1;var et,bt;if(Su(bt,Hl))return!1},Ol=function Be(ie){return ie==null?null:ie===document.body?Au()?ie:null:ie===document.documentElement?null:vu(ie)?ie:Be(ie.parentElement)},cu=function(ie){if(!ie)return;var Oe=Ol(ie.parentElement);if(!Oe)return},du=function(ie){return{x:ie.scrollLeft,y:ie.scrollTop}},Lu=function Be(ie){if(!ie)return!1;var Oe=window.getComputedStyle(ie);return Oe.position==="fixed"?!0:Be(ie.parentElement)},zl=function(ie){var Oe=Ol(ie),et=Lu(ie);return{closestScrollable:Oe,isFixedOnPage:et}},ru=function(ie){var Oe=ie.descriptor,et=ie.isEnabled,bt=ie.isCombineEnabled,zt=ie.isFixedOnPage,qt=ie.direction,ar=ie.client,Kr=ie.page,cn=ie.closest,Hr=function(){if(!cn)return null;var zn=cn.scrollSize,Li=cn.client,ki=Qn({scrollHeight:zn.scrollHeight,scrollWidth:zn.scrollWidth,height:Li.paddingBox.height,width:Li.paddingBox.width});return{pageMarginBox:cn.page.marginBox,frameClient:Li,scrollSize:zn,shouldClipSubject:cn.shouldClipSubject,scroll:{initial:cn.scroll,current:cn.scroll,max:ki,diff:{value:Ce,displacement:Ce}}}}(),Ur=qt==="vertical"?Mn:Xt,sn=Ve({page:Kr,withPlaceholder:null,axis:Ur,frame:Hr}),gn={descriptor:Oe,isCombineEnabled:bt,isFixedOnPage:zt,axis:Ur,isEnabled:et,client:ar,page:Kr,frame:Hr,subject:sn};return gn},ou=function(ie,Oe){var et=C(ie);if(!Oe)return et;if(ie!==Oe)return et;var bt=et.paddingBox.top-Oe.scrollTop,zt=et.paddingBox.left-Oe.scrollLeft,qt=bt+Oe.scrollHeight,ar=zt+Oe.scrollWidth,Kr={top:bt,right:ar,bottom:qt,left:zt},cn=l(Kr,et.border),Hr=h({borderBox:cn,margin:et.margin,border:et.border,padding:et.padding});return Hr},su=function(ie){var Oe=ie.ref,et=ie.descriptor,bt=ie.env,zt=ie.windowScroll,qt=ie.direction,ar=ie.isDropDisabled,Kr=ie.isCombineEnabled,cn=ie.shouldClipSubject,Hr=bt.closestScrollable,Ur=ou(Oe,Hr),sn=S(Ur,zt),gn=function(){if(!Hr)return null;var Li=C(Hr),ki={scrollHeight:Hr.scrollHeight,scrollWidth:Hr.scrollWidth};return{client:Li,page:S(Li,zt),scroll:du(Hr),scrollSize:ki,shouldClipSubject:cn}}(),zn=ru({descriptor:et,isEnabled:!ar,isCombineEnabled:Kr,isFixedOnPage:bt.isFixedOnPage,direction:qt,client:Ur,page:sn,closest:gn});return zn},Jl={passive:!1},Du={passive:!0},Ru=function(ie){return ie.shouldPublishImmediately?Jl:Du};function Zl(Be){var ie=Object(y.useContext)(Be);return ie||Ge(!1),ie}var yu=function(ie){return ie&&ie.env.closestScrollable||null};function xu(Be){var ie=Object(y.useRef)(null),Oe=Zl(In),et=go("droppable"),bt=Oe.registry,zt=Oe.marshal,qt=Nn(Be),ar=i(function(){return{id:Be.droppableId,type:Be.type,mode:Be.mode}},[Be.droppableId,Be.mode,Be.type]),Kr=Object(y.useRef)(ar),cn=i(function(){return I(function(ya,fo){ie.current||Ge(!1);var za={x:ya,y:fo};zt.updateDroppableScroll(ar.id,za)})},[ar.id,zt]),Hr=t(function(){var ya=ie.current;return!ya||!ya.env.closestScrollable?Ce:du(ya.env.closestScrollable)},[]),Ur=t(function(){var ya=Hr();cn(ya.x,ya.y)},[Hr,cn]),sn=i(function(){return M(Ur)},[Ur]),gn=t(function(){var ya=ie.current,fo=yu(ya);ya&&fo||Ge(!1);var za=ya.scrollOptions;if(za.shouldPublishImmediately){Ur();return}sn()},[sn,Ur]),zn=t(function(ya,fo){ie.current&&Ge(!1);var za=qt.current,Xo=za.getDroppableRef();Xo||Ge(!1);var ls=zl(Xo),D={ref:Xo,descriptor:ar,env:ls,scrollOptions:fo};ie.current=D;var B=su({ref:Xo,descriptor:ar,env:ls,windowScroll:ya,direction:za.direction,isDropDisabled:za.isDropDisabled,isCombineEnabled:za.isCombineEnabled,shouldClipSubject:!za.ignoreContainerClipping}),ne=ls.closestScrollable;return ne&&(ne.setAttribute(il.contextId,Oe.contextId),ne.addEventListener("scroll",gn,Ru(D.scrollOptions))),B},[Oe.contextId,ar,gn,qt]),Li=t(function(){var ya=ie.current,fo=yu(ya);return ya&&fo||Ge(!1),du(fo)},[]),ki=t(function(){var ya=ie.current;ya||Ge(!1);var fo=yu(ya);if(ie.current=null,!fo)return;sn.cancel(),fo.removeAttribute(il.contextId),fo.removeEventListener("scroll",gn,Ru(ya.scrollOptions))},[gn,sn]),da=t(function(ya){var fo=ie.current;fo||Ge(!1);var za=yu(fo);za||Ge(!1),za.scrollTop+=ya.y,za.scrollLeft+=ya.x},[]),$i=i(function(){return{getDimensionAndWatchScroll:zn,getScrollWhileDragging:Li,dragStopped:ki,scroll:da}},[ki,zn,Li,da]),Qa=i(function(){return{uniqueId:et,descriptor:ar,callbacks:$i}},[$i,ar,et]);hs(function(){return Kr.current=Qa.descriptor,bt.droppable.register(Qa),function(){ie.current&&ki(),bt.droppable.unregister(Qa)}},[$i,ar,ki,Qa,zt,bt.droppable]),hs(function(){if(!ie.current)return;zt.updateDroppableIsEnabled(Kr.current.id,!Be.isDropDisabled)},[Be.isDropDisabled,zt]),hs(function(){if(!ie.current)return;zt.updateDroppableIsCombineEnabled(Kr.current.id,Be.isCombineEnabled)},[Be.isCombineEnabled,zt])}function bu(){}var hl={width:0,height:0,margin:dr},Dl=function(ie){var Oe=ie.isAnimatingOpenOnMount,et=ie.placeholder,bt=ie.animate;return Oe||bt==="close"?hl:{height:et.client.borderBox.height,width:et.client.borderBox.width,margin:et.client.margin}},nu=function(ie){var Oe=ie.isAnimatingOpenOnMount,et=ie.placeholder,bt=ie.animate,zt=Dl({isAnimatingOpenOnMount:Oe,placeholder:et,animate:bt});return{display:et.display,boxSizing:"border-box",width:zt.width,height:zt.height,marginTop:zt.margin.top,marginRight:zt.margin.right,marginBottom:zt.margin.bottom,marginLeft:zt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:bt!=="none"?na.placeholder:null}};function Nu(Be){var ie=Object(y.useRef)(null),Oe=t(function(){if(!ie.current)return;clearTimeout(ie.current),ie.current=null},[]),et=Be.animate,bt=Be.onTransitionEnd,zt=Be.onClose,qt=Be.contextId,ar=Object(y.useState)(Be.animate==="open"),Kr=ar[0],cn=ar[1];Object(y.useEffect)(function(){return Kr?et!=="open"?(Oe(),cn(!1),bu):ie.current?bu:(ie.current=setTimeout(function(){ie.current=null,cn(!1)}),Oe):bu},[et,Kr,Oe]);var Hr=t(function(sn){if(sn.propertyName!=="height")return;bt(),et==="close"&&zt()},[et,zt,bt]),Ur=nu({isAnimatingOpenOnMount:Kr,animate:Be.animate,placeholder:Be.placeholder});return f.a.createElement(Be.placeholder.tagName,{style:Ur,"data-rbd-placeholder-context-id":qt,onTransitionEnd:Hr,ref:Be.innerRef})}var hu=f.a.memo(Nu),fu=f.a.createContext(null);function iu(Be){Be&&Gs(Be)||Ge(!1)}function Ae(Be){return typeof Be=="boolean"}function q(Be,ie){ie.forEach(function(Oe){return Oe(Be)})}var N=[function(ie){var Oe=ie.props;Oe.droppableId||Ge(!1),typeof Oe.droppableId=="string"||Ge(!1)},function(ie){var Oe=ie.props;Ae(Oe.isDropDisabled)||Ge(!1),Ae(Oe.isCombineEnabled)||Ge(!1),Ae(Oe.ignoreContainerClipping)||Ge(!1)},function(ie){var Oe=ie.getDroppableRef;iu(Oe())}],W=[function(ie){var Oe=ie.props,et=ie.getPlaceholderRef;if(!Oe.placeholder)return;var bt=et();if(bt)return}],H=[function(ie){var Oe=ie.props;Oe.renderClone||Ge(!1)},function(ie){var Oe=ie.getPlaceholderRef;Oe()&&Ge(!1)}];function Z(Be){Xr(function(){q(Be,N),Be.props.mode==="standard"&&q(Be,W),Be.props.mode==="virtual"&&q(Be,H)})}var re=function(Be){Object(x.a)(ie,Be);function ie(){for(var et,bt=arguments.length,zt=new Array(bt),qt=0;qt<bt;qt++)zt[qt]=arguments[qt];return et=Be.call.apply(Be,[this].concat(zt))||this,et.state={isVisible:Boolean(et.props.on),data:et.props.on,animate:et.props.shouldAnimate&&et.props.on?"open":"none"},et.onClose=function(){if(et.state.animate!=="close")return;et.setState({isVisible:!1})},et}ie.getDerivedStateFromProps=function(bt,zt){return bt.shouldAnimate?bt.on?{isVisible:!0,data:bt.on,animate:"open"}:zt.isVisible?{isVisible:!0,data:zt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(bt.on),data:bt.on,animate:"none"}};var Oe=ie.prototype;return Oe.render=function(){if(!this.state.isVisible)return null;var bt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(bt)},ie}(f.a.PureComponent),ve={dragging:5e3,dropAnimating:4500},Te=function(ie,Oe){return Oe?na.drop(Oe.duration):ie?na.snap:na.fluid},ze=function(ie,Oe){return ie?Oe?Ji.opacity.drop:Ji.opacity.combining:null},st=function(ie){return ie.forceShouldAnimate!=null?ie.forceShouldAnimate:ie.mode==="SNAP"};function mt(Be){var ie=Be.dimension,Oe=ie.client,et=Be.offset,bt=Be.combineWith,zt=Be.dropping,qt=Boolean(bt),ar=st(Be),Kr=Boolean(zt),cn=Kr?La.drop(et,qt):La.moveTo(et),Hr={position:"fixed",top:Oe.marginBox.top,left:Oe.marginBox.left,boxSizing:"border-box",width:Oe.borderBox.width,height:Oe.borderBox.height,transition:Te(ar,zt),transform:cn,opacity:ze(qt,Kr),zIndex:Kr?ve.dropAnimating:ve.dragging,pointerEvents:"none"};return Hr}function Yt(Be){return{transform:La.moveTo(Be.offset),transition:Be.shouldAnimateDisplacement?null:"none"}}function Tr(Be){return Be.type==="DRAGGING"?mt(Be):Yt(Be)}function wr(Be,ie,Oe){Oe===void 0&&(Oe=Ce);var et=window.getComputedStyle(ie),bt=ie.getBoundingClientRect(),zt=E(bt,et),qt=S(zt,Oe),ar={client:zt,tagName:ie.tagName.toLowerCase(),display:et.display},Kr={x:zt.marginBox.width,y:zt.marginBox.height},cn={descriptor:Be,placeholder:ar,displaceBy:Kr,client:zt,page:qt};return cn}function jr(Be){var ie=go("draggable"),Oe=Be.descriptor,et=Be.registry,bt=Be.getDraggableRef,zt=Be.canDragInteractiveElements,qt=Be.shouldRespectForcePress,ar=Be.isEnabled,Kr=i(function(){return{canDragInteractiveElements:zt,shouldRespectForcePress:qt,isEnabled:ar}},[zt,ar,qt]),cn=t(function(gn){var zn=bt();return zn||Ge(!1),wr(Oe,zn,gn)},[Oe,bt]),Hr=i(function(){return{uniqueId:ie,descriptor:Oe,options:Kr,getDimension:cn}},[Oe,cn,Kr,ie]),Ur=Object(y.useRef)(Hr),sn=Object(y.useRef)(!0);hs(function(){return et.draggable.register(Ur.current),function(){return et.draggable.unregister(Ur.current)}},[et.draggable]),hs(function(){if(sn.current){sn.current=!1;return}var gn=Ur.current;Ur.current=Hr,et.draggable.update(Hr,gn)},[Hr,et.draggable])}function Qr(Be,ie,Oe){Xr(function(){function et(zt){return"Draggable[id: "+zt+"]: "}var bt=Be.draggableId;if(bt||Ge(!1),typeof bt=="string"||Ge(!1),te(Be.index)||Ge(!1),Be.mapped.type==="DRAGGING")return;iu(Oe()),Be.isEnabled&&(ds(ie,bt)||Ge(!1))})}function Cn(Be){lr(function(){var ie=Object(y.useRef)(Be);Xr(function(){Be===ie.current||Ge(!1)},[Be])})}function Dn(Be){Be.preventDefault()}function Zn(Be){var ie=Object(y.useRef)(null),Oe=t(function(D){ie.current=D},[]),et=t(function(){return ie.current},[]),bt=Zl(In),zt=bt.contextId,qt=bt.dragHandleUsageInstructionsId,ar=bt.registry,Kr=Zl(fu),cn=Kr.type,Hr=Kr.droppableId,Ur=i(function(){return{id:Be.draggableId,index:Be.index,type:cn,droppableId:Hr}},[Be.draggableId,Be.index,cn,Hr]),sn=Be.children,gn=Be.draggableId,zn=Be.isEnabled,Li=Be.shouldRespectForcePress,ki=Be.canDragInteractiveElements,da=Be.isClone,$i=Be.mapped,Qa=Be.dropAnimationFinished;if(Qr(Be,zt,et),Cn(da),!da){var ya=i(function(){return{descriptor:Ur,registry:ar,getDraggableRef:et,canDragInteractiveElements:ki,shouldRespectForcePress:Li,isEnabled:zn}},[Ur,ar,et,ki,Li,zn]);jr(ya)}var fo=i(function(){return zn?{tabIndex:0,role:"button","aria-describedby":qt,"data-rbd-drag-handle-draggable-id":gn,"data-rbd-drag-handle-context-id":zt,draggable:!1,onDragStart:Dn}:null},[zt,qt,gn,zn]),za=t(function(D){if($i.type!=="DRAGGING")return;if(!$i.dropping)return;if(D.propertyName!=="transform")return;Qa()},[Qa,$i]),Xo=i(function(){var D=Tr($i),B=$i.type==="DRAGGING"&&$i.dropping?za:null,ne={innerRef:Oe,draggableProps:{"data-rbd-draggable-context-id":zt,"data-rbd-draggable-id":gn,style:D,onTransitionEnd:B},dragHandleProps:fo};return ne},[zt,fo,gn,$i,za,Oe]),ls=i(function(){return{draggableId:Ur.id,type:Ur.type,source:{index:Ur.index,droppableId:Ur.droppableId}}},[Ur.droppableId,Ur.id,Ur.index,Ur.type]);return sn(Xo,$i.snapshot,ls)}var Si=function(ie,Oe){return ie===Oe},ua=function(ie){var Oe=ie.combine,et=ie.destination;return et?et.droppableId:Oe?Oe.droppableId:null},Vi=function(ie){return ie.combine?ie.combine.draggableId:null},Zi=function(ie){return ie.at&&ie.at.type==="COMBINE"?ie.at.combine.draggableId:null};function ka(){var Be=I(function(bt,zt){return{x:bt,y:zt}}),ie=I(function(bt,zt,qt,ar,Kr){return{isDragging:!0,isClone:zt,isDropAnimating:Boolean(Kr),dropAnimation:Kr,mode:bt,draggingOver:qt,combineWith:ar,combineTargetFor:null}}),Oe=I(function(bt,zt,qt,ar,Kr,cn,Hr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Kr,combineWith:cn,mode:zt,offset:bt,dimension:qt,forceShouldAnimate:Hr,snapshot:ie(zt,ar,Kr,cn,null)}}}),et=function(zt,qt){if(zt.isDragging){if(zt.critical.draggable.id!==qt.draggableId)return null;var ar=zt.current.client.offset,Kr=zt.dimensions.draggables[qt.draggableId],cn=ei(zt.impact),Hr=Zi(zt.impact),Ur=zt.forceShouldAnimate;return Oe(Be(ar.x,ar.y),zt.movementMode,Kr,qt.isClone,cn,Hr,Ur)}if(zt.phase==="DROP_ANIMATING"){var sn=zt.completed;if(sn.result.draggableId!==qt.draggableId)return null;var gn=qt.isClone,zn=zt.dimensions.draggables[qt.draggableId],Li=sn.result,ki=Li.mode,da=ua(Li),$i=Vi(Li),Qa=zt.dropDuration,ya={duration:Qa,curve:Hi.drop,moveTo:zt.newHomeClientOffset,opacity:$i?Ji.opacity.drop:null,scale:$i?Ji.scale.drop:null};return{mapped:{type:"DRAGGING",offset:zt.newHomeClientOffset,dimension:zn,dropping:ya,draggingOver:da,combineWith:$i,mode:ki,forceShouldAnimate:null,snapshot:ie(ki,gn,da,$i,ya)}}}return null};return et}function Ga(Be){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Be,combineWith:null}}var Ba={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ga(null)}};function Sa(){var Be=I(function(qt,ar){return{x:qt,y:ar}}),ie=I(Ga),Oe=I(function(qt,ar,Kr){return ar===void 0&&(ar=null),{mapped:{type:"SECONDARY",offset:qt,combineTargetFor:ar,shouldAnimateDisplacement:Kr,snapshot:ie(ar)}}}),et=function(ar){return ar?Oe(Ce,ar,!0):null},bt=function(ar,Kr,cn,Hr){var Ur=cn.displaced.visible[ar],sn=Boolean(Hr.inVirtualList&&Hr.effected[ar]),gn=tr(cn),zn=gn&&gn.draggableId===ar?Kr:null;if(!Ur){if(!sn)return et(zn);if(cn.displaced.invisible[ar])return null;var Li=_e(Hr.displacedBy.point),ki=Be(Li.x,Li.y);return Oe(ki,zn,!0)}if(sn)return et(zn);var da=cn.displacedBy.point,$i=Be(da.x,da.y);return Oe($i,zn,Ur.shouldAnimate)},zt=function(ar,Kr){if(ar.isDragging)return ar.critical.draggable.id===Kr.draggableId?null:bt(Kr.draggableId,ar.critical.draggable.id,ar.impact,ar.afterCritical);if(ar.phase==="DROP_ANIMATING"){var cn=ar.completed;return cn.result.draggableId===Kr.draggableId?null:bt(Kr.draggableId,cn.result.draggableId,cn.impact,cn.afterCritical)}return null};return zt}var Go=function(){var ie=ka(),Oe=Sa(),et=function(zt,qt){return ie(zt,qt)||Oe(zt,qt)||Ba};return et},bs={dropAnimationFinished:Oi},ys=Object(p.c)(Go,bs,null,{context:xs,pure:!0,areStatePropsEqual:Si})(Zn);function Cs(Be){var ie=Zl(fu),Oe=ie.isUsingCloneFor;return Oe===Be.draggableId&&!Be.isClone?null:f.a.createElement(ys,Be)}function js(Be){var ie=typeof Be.isDragDisabled=="boolean"?!Be.isDragDisabled:!0,Oe=Boolean(Be.disableInteractiveElementBlocking),et=Boolean(Be.shouldRespectForcePress);return f.a.createElement(Cs,Object(A.a)({},Be,{isClone:!1,isEnabled:ie,canDragInteractiveElements:Oe,shouldRespectForcePress:et}))}function ws(Be){var ie=Object(y.useContext)(In);ie||Ge(!1);var Oe=ie.contextId,et=ie.isMovementAllowed,bt=Object(y.useRef)(null),zt=Object(y.useRef)(null),qt=Be.children,ar=Be.droppableId,Kr=Be.type,cn=Be.mode,Hr=Be.direction,Ur=Be.ignoreContainerClipping,sn=Be.isDropDisabled,gn=Be.isCombineEnabled,zn=Be.snapshot,Li=Be.useClone,ki=Be.updateViewportMaxScroll,da=Be.getContainerForClone,$i=t(function(){return bt.current},[]),Qa=t(function(ae){bt.current=ae},[]),ya=t(function(){return zt.current},[]),fo=t(function(ae){zt.current=ae},[]);Z({props:Be,getDroppableRef:$i,getPlaceholderRef:ya});var za=t(function(){et()&&ki({maxScroll:zr()})},[et,ki]);xu({droppableId:ar,type:Kr,mode:cn,direction:Hr,isDropDisabled:sn,isCombineEnabled:gn,ignoreContainerClipping:Ur,getDroppableRef:$i});var Xo=f.a.createElement(re,{on:Be.placeholder,shouldAnimate:Be.shouldAnimatePlaceholder},function(ae){var ge=ae.onClose,Ke=ae.data,It=ae.animate;return f.a.createElement(hu,{placeholder:Ke,onClose:ge,innerRef:fo,animate:It,contextId:Oe,onTransitionEnd:za})}),ls=i(function(){return{innerRef:Qa,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":ar,"data-rbd-droppable-context-id":Oe}}},[Oe,ar,Xo,Qa]),D=Li?Li.dragging.draggableId:null,B=i(function(){return{droppableId:ar,type:Kr,isUsingCloneFor:D}},[ar,D,Kr]);function ne(){if(!Li)return null;var ae=Li.dragging,ge=Li.render,Ke=f.a.createElement(Cs,{draggableId:ae.draggableId,index:ae.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(It,nr){return ge(It,nr,ae)});return P.a.createPortal(Ke,da())}return f.a.createElement(fu.Provider,{value:B},qt(ls,zn),ne())}var Hs=function(ie,Oe){return ie===Oe.droppable.type},Ee=function(ie,Oe){return Oe.draggables[ie.draggable.id]},Qe=function(){var ie={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Oe=Object(A.a)({},ie,{shouldAnimatePlaceholder:!1}),et=I(function(qt){return{draggableId:qt.id,type:qt.type,source:{index:qt.index,droppableId:qt.droppableId}}}),bt=I(function(qt,ar,Kr,cn,Hr,Ur){var sn=Hr.descriptor.id,gn=Hr.descriptor.droppableId===qt;if(gn){var zn=Ur?{render:Ur,dragging:et(Hr.descriptor)}:null,Li={isDraggingOver:Kr,draggingOverWith:Kr?sn:null,draggingFromThisWith:sn,isUsingPlaceholder:!0};return{placeholder:Hr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Li,useClone:zn}}if(!ar)return Oe;if(!cn)return ie;var ki={isDraggingOver:Kr,draggingOverWith:sn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Hr.placeholder,shouldAnimatePlaceholder:!0,snapshot:ki,useClone:null}}),zt=function(ar,Kr){var cn=Kr.droppableId,Hr=Kr.type,Ur=!Kr.isDropDisabled,sn=Kr.renderClone;if(ar.isDragging){var gn=ar.critical;if(!Hs(Hr,gn))return Oe;var zn=Ee(gn,ar.dimensions),Li=ei(ar.impact)===cn;return bt(cn,Ur,Li,Li,zn,sn)}if(ar.phase==="DROP_ANIMATING"){var ki=ar.completed;if(!Hs(Hr,ki.critical))return Oe;var da=Ee(ki.critical,ar.dimensions);return bt(cn,Ur,ua(ki.result)===cn,ei(ki.impact)===cn,da,sn)}if(ar.phase==="IDLE"&&ar.completed&&!ar.shouldFlush){var $i=ar.completed;if(!Hs(Hr,$i.critical))return Oe;var Qa=ei($i.impact)===cn,ya=Boolean($i.impact.at&&$i.impact.at.type==="COMBINE"),fo=$i.critical.droppable.id===cn;return Qa?ya?ie:Oe:fo?ie:Oe}return Oe};return zt},xt={updateViewportMaxScroll:Lr};function hr(){return document.body||Ge(!1),document.body}var Fr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:hr},on=Object(p.c)(Qe,xt,null,{context:xs,pure:!0,areStatePropsEqual:Si})(ws);on.defaultProps=Fr},ni6a:function(R,L,r){var y=r("pzxd"),f=r("mFDi"),x=r("gut8"),A=x.WILL_BE_RESTORED,m=new f,p=function(){};p.prototype={constructor:p,drawRectText:function(a,i){var t=this.style;i=t.textRect||i,this.__dirty&&y.normalizeTextStyle(t,!0);var s=t.text;if(s!=null&&(s+=""),!y.needDrawText(s,t))return;a.save();var e=this.transform;t.transformText?this.setTransform(a):e&&(m.copy(i),m.applyTransform(e),i=m),y.renderText(this,a,s,t,i,A),a.restore()}};var d=p;R.exports=d},nkfE:function(R,L,r){var y=r("bYtY"),f=r("ca2m"),x=r("bLfw"),A=r("+TT/"),m=A.getLayoutParams,p=A.mergeLayoutParam,d=r("jkPA"),u=["value","category","time","log"];function a(i,t,s,e){y.each(u,function(l){t.extend({type:i+"Axis."+l,mergeDefaultAndTheme:function(n,o){var c=this.layoutMode,h=c?m(n):{},g=o.getTheme();y.merge(n,g.get(l+"Axis")),y.merge(n,this.getDefaultOption()),n.type=s(i,n),c&&p(n,h,c)},optionUpdated:function(){var n=this.option;n.type==="category"&&(this.__ordinalMeta=d.createByAxisModel(this))},getCategories:function(n){var o=this.option;if(o.type==="category")return n?o.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:y.mergeAll([{},f[l+"Axis"],e],!0)})}),x.registerSubTypeDefaulter(i+"Axis",y.curry(s,i))}R.exports=a},noeP:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("UOVi");y.registerAction("dataZoom",function(A,m){var p=x.createLinkedNodesFinder(f.bind(m.eachComponent,m,"dataZoom"),x.eachAxisDim,function(u,a){return u.get(a.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:A},function(u,a){d.push.apply(d,p(u).nodes)}),f.each(d,function(u,a){u.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(R,L,r){var y=r("IwbS"),f=r("OS9S"),x=r("loD1"),A=r("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(a,i){var t=i.segs,s=i.curveness;if(i.polyline)for(var e=0;e<t.length;){var l=t[e++];if(l>0){a.moveTo(t[e++],t[e++]);for(var n=1;n<l;n++)a.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var o=t[e++],c=t[e++],h=t[e++],g=t[e++];if(a.moveTo(o,c),s>0){var v=(o+h)/2-(c-g)*s,b=(c+g)/2-(h-o)*s;a.quadraticCurveTo(v,b,h,g)}else a.lineTo(h,g)}},findDataIndex:function(a,i){var t=this.shape,s=t.segs,e=t.curveness;if(t.polyline)for(var l=0,n=0;n<s.length;){var o=s[n++];if(o>0)for(var c=s[n++],h=s[n++],g=1;g<o;g++){var v=s[n++],b=s[n++];if(x.containStroke(c,h,v,b))return l}l++}else for(var l=0,n=0;n<s.length;){var c=s[n++],h=s[n++],v=s[n++],b=s[n++];if(e>0){var S=(c+v)/2-(h-b)*e,E=(h+b)/2-(v-c)*e;if(A.containStroke(c,h,S,E,v,b))return l}else if(x.containStroke(c,h,v,b))return l;l++}return-1}});function p(){this.group=new y.Group}var d=p.prototype;d.isPersistent=function(){return!this._incremental},d.updateData=function(a){this.group.removeAll();var i=new m({rectHover:!0,cursor:"default"});i.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(i,a),this.group.add(i),this._incremental=null},d.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clearIncremental(),a.count()>5e5?(this._incremental||(this._incremental=new f({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(a,i){var t=new m;t.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(t,i,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=a.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(a,i,t){var s=i.hostModel;a.setShape({polyline:s.get("polyline"),curveness:s.get("lineStyle.curveness")}),a.useStyle(s.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var e=i.getVisual("color");e&&a.setStyle("stroke",e),a.setStyle("fill"),t||(a.seriesIndex=s.seriesIndex,a.on("mousemove",function(l){a.dataIndex=null;var n=a.findDataIndex(l.offsetX,l.offsetY);n>0&&(a.dataIndex=n+a.__startIndex)}))},d._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};var u=p;R.exports=u},oBaM:function(R,L,r){var y=r("T4UG"),f=r("5GtS"),x=r("bYtY"),A=r("7aKB"),m=A.encodeHTML,p=r("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(a){d.superApply(this,"init",arguments),this.legendVisualProvider=new p(x.bind(this.getData,this),x.bind(this.getRawData,this))},getInitialData:function(a,i){return f(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(a){var i=this.getData(),t=this.coordinateSystem,s=t.getIndicatorAxes(),e=this.getData().getName(a);return m(e===""?this.name:e)+"<br/>"+x.map(s,function(l,n){var o=i.get(i.mapDimension(l.dim),a);return m(l.name+" : "+o)}).join("<br />")},getTooltipPosition:function(a){if(a!=null){for(var i=this.getData(),t=this.coordinateSystem,s=i.getValues(x.map(t.dimensions,function(o){return i.mapDimension(o)}),a,!0),e=0,l=s.length;e<l;e++)if(!isNaN(s[e])){var n=t.getIndicatorAxes();return t.coordToPoint(n[e].dataToCoord(s[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=d;R.exports=u},oE7X:function(R,L,r){var y=r("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(R,L,r){},oRuE:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(x,A){var m=A*4,p=m-x.sigBytes%m;x.concat(y.lib.WordArray.random(p-1)).concat(y.lib.WordArray.create([p<<24],1))},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Iso10126})},oVpE:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("mFDi"),A=r("6GrX"),m=A.calculateTextPosition,p=f.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,c){var h=c.cx,g=c.cy,v=c.width/2,b=c.height/2;o.moveTo(h,g-b),o.lineTo(h+v,g+b),o.lineTo(h-v,g+b),o.closePath()}}),d=f.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(o,c){var h=c.cx,g=c.cy,v=c.width/2,b=c.height/2;o.moveTo(h,g-b),o.lineTo(h+v,g),o.lineTo(h,g+b),o.lineTo(h-v,g),o.closePath()}}),u=f.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,c){var h=c.x,g=c.y,v=c.width/5*3,b=Math.max(v,c.height),S=v/2,E=S*S/(b-S),C=g-b+S+E,_=Math.asin(E/S),T=Math.cos(_)*S,w=Math.sin(_),O=Math.cos(_),I=S*.6,k=S*.7;o.moveTo(h-T,C+E),o.arc(h,C,S,Math.PI-_,Math.PI*2+_),o.bezierCurveTo(h+T-w*I,C+E+O*I,h,g-k,h,g),o.bezierCurveTo(h,g-k,h-T+w*I,C+E+O*I,h-T,C+E),o.closePath()}}),a=f.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(o,c){var h=c.height,g=c.width,v=c.x,b=c.y,S=g/3*2;o.moveTo(v,b),o.lineTo(v+S,b+h),o.lineTo(v,b+h/4*3),o.lineTo(v-S,b+h),o.lineTo(v,b),o.closePath()}}),i={line:f.Line,rect:f.Rect,roundRect:f.Rect,square:f.Rect,circle:f.Circle,diamond:d,pin:u,arrow:a,triangle:p},t={line:function(o,c,h,g,v){v.x1=o,v.y1=c+g/2,v.x2=o+h,v.y2=c+g/2},rect:function(o,c,h,g,v){v.x=o,v.y=c,v.width=h,v.height=g},roundRect:function(o,c,h,g,v){v.x=o,v.y=c,v.width=h,v.height=g,v.r=Math.min(h,g)/4},square:function(o,c,h,g,v){var b=Math.min(h,g);v.x=o,v.y=c,v.width=b,v.height=b},circle:function(o,c,h,g,v){v.cx=o+h/2,v.cy=c+g/2,v.r=Math.min(h,g)/2},diamond:function(o,c,h,g,v){v.cx=o+h/2,v.cy=c+g/2,v.width=h,v.height=g},pin:function(o,c,h,g,v){v.x=o+h/2,v.y=c+g/2,v.width=h,v.height=g},arrow:function(o,c,h,g,v){v.x=o+h/2,v.y=c+g/2,v.width=h,v.height=g},triangle:function(o,c,h,g,v){v.cx=o+h/2,v.cy=c+g/2,v.width=h,v.height=g}},s={};y.each(i,function(o,c){s[c]=new o});var e=f.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(o,c,h){var g=m(o,c,h),v=this.shape;return v&&v.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=h.y+h.height*.4),g},buildPath:function(o,c,h){var g=c.symbolType;if(g!=="none"){var v=s[g];v||(g="rect",v=s[g]),t[g](c.x,c.y,c.width,c.height,v.shape),v.buildPath(o,v.shape,h)}}});function l(o,c){if(this.type!=="image"){var h=this.style,g=this.shape;g&&g.symbolType==="line"?h.stroke=o:this.__isEmptyBrush?(h.stroke=o,h.fill=c||"#fff"):(h.fill&&(h.fill=o),h.stroke&&(h.stroke=o)),this.dirty(!1)}}function n(o,c,h,g,v,b,S){var E=o.indexOf("empty")===0;E&&(o=o.substr(5,1).toLowerCase()+o.substr(6));var C;return o.indexOf("image://")===0?C=f.makeImage(o.slice(8),new x(c,h,g,v),S?"center":"cover"):o.indexOf("path://")===0?C=f.makePath(o.slice(7),{},new x(c,h,g,v),S?"center":"cover"):C=new e({shape:{symbolType:o,x:c,y:h,width:g,height:v}}),C.__isEmptyBrush=E,C.setColor=l,C.setColor(b),C}L.createSymbol=n},oY9F:function(R,L,r){var y=r("OlYY"),f=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});R.exports=f},or5M:function(R,L,r){var y=r("1hJj"),f=r("QoRX"),x=r("xYSL"),A=1,m=2;function p(d,u,a,i,t,s){var e=a&A,l=d.length,n=u.length;if(l!=n&&!(e&&n>l))return!1;var o=s.get(d),c=s.get(u);if(o&&c)return o==u&&c==d;var h=-1,g=!0,v=a&m?new y:void 0;for(s.set(d,u),s.set(u,d);++h<l;){var b=d[h],S=u[h];if(i)var E=e?i(S,b,h,u,d,s):i(b,S,h,d,u,s);if(E!==void 0){if(E)continue;g=!1;break}if(v){if(!f(u,function(C,_){if(!x(v,_)&&(b===C||t(b,C,a,i,s)))return v.push(_)})){g=!1;break}}else if(!(b===S||t(b,S,a,i,s))){g=!1;break}}return s.delete(d),s.delete(u),g}R.exports=p},osHv:function(R,L,r){(function(y){y(r("VrN/"))})(function(y){"use strict";var f=y.Pos;function x(c,h){return c.line-h.line||c.ch-h.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+A+"]["+m+"]*)","g");function d(c,h,g,v){this.line=h,this.ch=g,this.cm=c,this.text=c.getLine(h),this.min=v?Math.max(v.from,c.firstLine()):c.firstLine(),this.max=v?Math.min(v.to-1,c.lastLine()):c.lastLine()}function u(c,h){var g=c.cm.getTokenTypeAt(f(c.line,h));return g&&/\btag\b/.test(g)}function a(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function i(c){return c.line<=c.min?void 0:(c.text=c.cm.getLine(--c.line),c.ch=c.text.length,!0)}function t(c){for(;;){var h=c.text.indexOf(">",c.ch);if(h==-1){if(a(c))continue;return}if(!u(c,h+1)){c.ch=h+1;continue}var g=c.text.lastIndexOf("/",h),v=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,v?"selfClose":"regular"}}function s(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}p.lastIndex=h,c.ch=h;var g=p.exec(c.text);if(g&&g.index==h)return g}}function e(c){for(;;){p.lastIndex=c.ch;var h=p.exec(c.text);if(!h){if(a(c))continue;return}if(!u(c,h.index+1)){c.ch=h.index+1;continue}return c.ch=h.index+h[0].length,h}}function l(c){for(;;){var h=c.ch?c.text.lastIndexOf(">",c.ch-1):-1;if(h==-1){if(i(c))continue;return}if(!u(c,h+1)){c.ch=h;continue}var g=c.text.lastIndexOf("/",h),v=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,v?"selfClose":"regular"}}function n(c,h){for(var g=[];;){var v=e(c),b,S=c.line,E=c.ch-(v?v[0].length:0);if(!v||!(b=t(c)))return;if(b=="selfClose")continue;if(v[1]){for(var C=g.length-1;C>=0;--C)if(g[C]==v[2]){g.length=C;break}if(C<0&&(!h||h==v[2]))return{tag:v[2],from:f(S,E),to:f(c.line,c.ch)}}else g.push(v[2])}}function o(c,h){for(var g=[];;){var v=l(c);if(!v)return;if(v=="selfClose"){s(c);continue}var b=c.line,S=c.ch,E=s(c);if(!E)return;if(E[1])g.push(E[2]);else{for(var C=g.length-1;C>=0;--C)if(g[C]==E[2]){g.length=C;break}if(C<0&&(!h||h==E[2]))return{tag:E[2],from:f(c.line,c.ch),to:f(b,S)}}}}y.registerHelper("fold","xml",function(c,h){for(var g=new d(c,h.line,0);;){var v=e(g);if(!v||g.line!=h.line)return;var b=t(g);if(!b)return;if(!v[1]&&b!="selfClose"){var S=f(g.line,g.ch),E=n(g,v[2]);return E&&x(E.from,S)>0?{from:S,to:E.from}:null}}}),y.findMatchingTag=function(c,h,g){var v=new d(c,h.line,h.ch,g);if(v.text.indexOf(">")==-1&&v.text.indexOf("<")==-1)return;var b=t(v),S=b&&f(v.line,v.ch),E=b&&s(v);if(!b||!E||x(v,h)>0)return;var C={from:f(v.line,v.ch),to:S,tag:E[2]};return b=="selfClose"?{open:C,close:null,at:"open"}:E[1]?{open:o(v,E[2]),close:C,at:"close"}:(v=new d(c,S.line,S.ch,g),{open:C,close:n(v,E[2]),at:"open"})},y.findEnclosingTag=function(c,h,g,v){for(var b=new d(c,h.line,h.ch,g);;){var S=o(b,v);if(!S)break;var E=new d(c,h.line,h.ch,g),C=n(E,S.tag);if(C)return{open:S,close:C}}},y.scanForClosingTag=function(c,h,g,v){var b=new d(c,h.line,h.ch,v?{from:0,to:v}:null);return n(b,g)}})},ozfa:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("KxFI"),A=r.n(x)},"p+BA":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("YCuv")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="EnterOutlined";var i=A.forwardRef(a);L.default=i},"p+If":function(R,L,r){var y=r("ProS");r("cpOr"),r("rkZ5");var f=r("ZYIC"),x=r("7ph2");y.registerLayout(f),y.registerVisual(x)},"p/La":function(R,L){var r=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(f,x){f==="china"&&x.name==="\u53F0\u6E7E"&&x.geometries.push({type:"polygon",exterior:r[0]})}R.exports=y},p1MT:function(R,L,r){var y=r("Hw7h"),f=r("IwbS"),x=r("6Ic6"),A=r("OELB"),m=A.parsePercent,p=A.round,d=A.linearMap;function u(e,l){var n=e.get("center"),o=l.getWidth(),c=l.getHeight(),h=Math.min(o,c),g=m(n[0],l.getWidth()),v=m(n[1],l.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:v,r:b}}function a(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var i=Math.PI*2,t=x.extend({type:"gauge",render:function(e,l,n){this.group.removeAll();var o=e.get("axisLine.lineStyle.color"),c=u(e,n);this._renderMain(e,l,n,o,c)},dispose:function(){},_renderMain:function(e,l,n,o,c){for(var h=this.group,g=e.getModel("axisLine"),v=g.getModel("lineStyle"),b=e.get("clockwise"),S=-e.get("startAngle")/180*Math.PI,E=-e.get("endAngle")/180*Math.PI,C=(E-S)%i,_=S,T=v.get("width"),w=g.get("show"),O=0;w&&O<o.length;O++){var I=Math.min(Math.max(o[O][0],0),1),E=S+C*I,k=new f.Sector({shape:{startAngle:_,endAngle:E,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-T,r:c.r},silent:!0});k.setStyle({fill:o[O][1]}),k.setStyle(v.getLineStyle(["color","borderWidth","borderColor"])),h.add(k),_=E}var M=function(P){if(P<=0)return o[0][1];for(var X=0;X<o.length;X++)if(o[X][0]>=P&&(X===0?0:o[X-1][0])<P)return o[X][1];return o[X-1][1]};if(!b){var U=S;S=E,E=U}this._renderTicks(e,l,n,M,c,S,E,b),this._renderPointer(e,l,n,M,c,S,E,b),this._renderTitle(e,l,n,M,c),this._renderDetail(e,l,n,M,c)},_renderTicks:function(e,l,n,o,c,h,g,v){for(var b=this.group,S=c.cx,E=c.cy,C=c.r,_=+e.get("min"),T=+e.get("max"),w=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),k=e.get("splitNumber"),M=O.get("splitNumber"),U=m(w.get("length"),C),P=m(O.get("length"),C),X=h,F=(g-h)/k,j=F/M,K=w.getModel("lineStyle").getLineStyle(),z=O.getModel("lineStyle").getLineStyle(),V=0;V<=k;V++){var Q=Math.cos(X),G=Math.sin(X);if(w.get("show")){var ee=new f.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-U)+S,y2:G*(C-U)+E},style:K,silent:!0});K.stroke==="auto"&&ee.setStyle({stroke:o(V/k)}),b.add(ee)}if(I.get("show")){var se=a(p(V/k*(T-_)+_),I.get("formatter")),ye=I.get("distance"),he=o(V/k);b.add(new f.Text({style:f.setTextStyle({},I,{text:se,x:Q*(C-U-ye)+S,y:G*(C-U-ye)+E,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:he}),silent:!0}))}if(O.get("show")&&V!==k){for(var ke=0;ke<=M;ke++){var Q=Math.cos(X),G=Math.sin(X),Pe=new f.Line({shape:{x1:Q*C+S,y1:G*C+E,x2:Q*(C-P)+S,y2:G*(C-P)+E},silent:!0,style:z});z.stroke==="auto"&&Pe.setStyle({stroke:o((V+ke/M)/k)}),b.add(Pe),X+=j}X-=j}else X+=F}},_renderPointer:function(e,l,n,o,c,h,g,v){var b=this.group,S=this._data;if(!e.get("pointer.show")){S&&S.eachItemGraphicEl(function(w){b.remove(w)});return}var E=[+e.get("min"),+e.get("max")],C=[h,g],_=e.getData(),T=_.mapDimension("value");_.diff(S).add(function(w){var O=new y({shape:{angle:h}});f.initProps(O,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(O),_.setItemGraphicEl(w,O)}).update(function(w,O){var I=S.getItemGraphicEl(O);f.updateProps(I,{shape:{angle:d(_.get(T,w),E,C,!0)}},e),b.add(I),_.setItemGraphicEl(w,I)}).remove(function(w){var O=S.getItemGraphicEl(w);b.remove(O)}).execute(),_.eachItemGraphicEl(function(w,O){var I=_.getItemModel(O),k=I.getModel("pointer");w.setShape({x:c.cx,y:c.cy,width:m(k.get("width"),c.r),r:m(k.get("length"),c.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",o(d(_.get(T,O),E,[0,1],!0))),f.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=_},_renderTitle:function(e,l,n,o,c){var h=e.getData(),g=h.mapDimension("value"),v=e.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=+e.get("min"),_=+e.get("max"),T=e.getData().get(g,0),w=o(d(T,[C,_],[0,1],!0));this.group.add(new f.Text({silent:!0,style:f.setTextStyle({},v,{x:S,y:E,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,n,o,c){var h=e.getModel("detail"),g=+e.get("min"),v=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),S=c.cx+m(b[0],c.r),E=c.cy+m(b[1],c.r),C=m(h.get("width"),c.r),_=m(h.get("height"),c.r),T=e.getData(),w=T.get(T.mapDimension("value"),0),O=o(d(w,[g,v],[0,1],!0));this.group.add(new f.Text({silent:!0,style:f.setTextStyle({},h,{x:S,y:E,text:a(w,h.get("formatter")),textWidth:isNaN(C)?null:C,textHeight:isNaN(_)?null:_,textAlign:"center",textVerticalAlign:"middle"},{autoColor:O,forceRich:!0})}))}}}),s=t;R.exports=s},"p77/":function(R,L,r){},pA7S:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=x.BlockCipher,p=f.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],i=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],s=p.DES=m.extend({_doReset:function(){for(var c=this._key,h=c.words,g=[],v=0;v<56;v++){var b=d[v]-1;g[v]=h[b>>>5]>>>31-b%32&1}for(var S=this._subKeys=[],E=0;E<16;E++){for(var C=S[E]=[],_=a[E],v=0;v<24;v++)C[v/6|0]|=g[(u[v]-1+_)%28]<<31-v%6,C[4+(v/6|0)]|=g[28+(u[v+24]-1+_)%28]<<31-v%6;C[0]=C[0]<<1|C[0]>>>31;for(var v=1;v<7;v++)C[v]=C[v]>>>(v-1)*4+3;C[7]=C[7]<<5|C[7]>>>27}for(var T=this._invSubKeys=[],v=0;v<16;v++)T[v]=S[15-v]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,g){this._lBlock=c[h],this._rBlock=c[h+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var v=0;v<16;v++){for(var b=g[v],S=this._lBlock,E=this._rBlock,C=0,_=0;_<8;_++)C|=i[_][((E^b[_])&t[_])>>>0];this._lBlock=E,this._rBlock=S^C}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[h]=this._lBlock,c[h+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(o,c){var h=(this._lBlock>>>o^this._rBlock)&c;this._rBlock^=h,this._lBlock^=h<<o}function l(o,c){var h=(this._rBlock>>>o^this._lBlock)&c;this._lBlock^=h,this._rBlock^=h<<o}f.DES=m._createHelper(s);var n=p.TripleDES=m.extend({_doReset:function(){var c=this._key,h=c.words;if(h.length!==2&&h.length!==4&&h.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=h.slice(0,2),v=h.length<4?h.slice(0,2):h.slice(2,4),b=h.length<6?h.slice(0,2):h.slice(4,6);this._des1=s.createEncryptor(A.create(g)),this._des2=s.createEncryptor(A.create(v)),this._des3=s.createEncryptor(A.create(b))},encryptBlock:function(c,h){this._des1.encryptBlock(c,h),this._des2.decryptBlock(c,h),this._des3.encryptBlock(c,h)},decryptBlock:function(c,h){this._des3.decryptBlock(c,h),this._des2.encryptBlock(c,h),this._des1.decryptBlock(c,h)},keySize:192/32,ivSize:64/32,blockSize:64/32});f.TripleDES=m._createHelper(n)}(),y.TripleDES})},pC0b:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("xzDV"),A=r.n(x),m=r("5Dmo")},"pED+":function(R,L,r){},pLH3:function(R,L,r){var y=r("ProS");r("ALo7"),r("TWL2");var f=r("mOdp"),x=r("JLnu"),A=r("0/Rx");y.registerVisual(f("funnel")),y.registerLayout(x),y.registerProcessor(A("funnel"))},pP6R:function(R,L,r){var y=r("ProS"),f="\0_ec_interaction_mutex";function x(d,u,a){var i=p(d);i[u]=a}function A(d,u,a){var i=p(d),t=i[u];t===a&&(i[u]=null)}function m(d,u){return!!p(d)[u]}function p(d){return d[f]||(d[f]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),L.take=x,L.release=A,L.isTaken=m},pSRY:function(R,L,r){var y=r("QkVE");function f(x){return y(this,x).has(x)}R.exports=f},pWdF:function(R,L,r){"use strict";r.d(L,"a",function(){return iu});var y=r("oBTY"),f=r("rAM+"),x=r("tJVT"),A=r("tS8v"),m=r("oZsa"),p=r("iZzK");function d(Ae){return Function.toString.call(Ae).indexOf("[native code]")!==-1}var u=r("cHpt");function a(Ae,q,N){return Object(u.a)()?a=Reflect.construct:a=function(H,Z,re){var ve=[null];ve.push.apply(ve,Z);var Te=Function.bind.apply(H,ve),ze=new Te;return re&&Object(p.a)(ze,re.prototype),ze},a.apply(null,arguments)}function i(Ae){var q=typeof Map=="function"?new Map:void 0;return i=function(W){if(W===null||!d(W))return W;if(typeof W!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q!="undefined"){if(q.has(W))return q.get(W);q.set(W,H)}function H(){return a(W,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(W.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(p.a)(H,W)},i(Ae)}var t=r("w4Tj"),s=r("yKVA"),e=r("879j"),l=r("jrin"),n=r("fWQN"),o=r("mtLc");function c(Ae){return Ae&&Ae.__esModule&&Object.prototype.hasOwnProperty.call(Ae,"default")?Ae.default:Ae}var h={exports:{}};(function(Ae,q){(function(N){var W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,re=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,ve={buildAbsoluteURL:function(ze,st,mt){if(mt=mt||{},ze=ze.trim(),st=st.trim(),!st){if(!mt.alwaysNormalize)return ze;var Yt=ve.parseURL(ze);if(!Yt)throw new Error("Error trying to parse base URL.");return Yt.path=ve.normalizePath(Yt.path),ve.buildURLFromParts(Yt)}var Tr=ve.parseURL(st);if(!Tr)throw new Error("Error trying to parse relative URL.");if(Tr.scheme)return mt.alwaysNormalize?(Tr.path=ve.normalizePath(Tr.path),ve.buildURLFromParts(Tr)):st;var wr=ve.parseURL(ze);if(!wr)throw new Error("Error trying to parse base URL.");if(!wr.netLoc&&wr.path&&wr.path[0]!=="/"){var jr=H.exec(wr.path);wr.netLoc=jr[1],wr.path=jr[2]}wr.netLoc&&!wr.path&&(wr.path="/");var Qr={scheme:wr.scheme,netLoc:Tr.netLoc,path:null,params:Tr.params,query:Tr.query,fragment:Tr.fragment};if(!Tr.netLoc&&(Qr.netLoc=wr.netLoc,Tr.path[0]!=="/"))if(!Tr.path)Qr.path=wr.path,Tr.params||(Qr.params=wr.params,Tr.query||(Qr.query=wr.query));else{var Cn=wr.path,Dn=Cn.substring(0,Cn.lastIndexOf("/")+1)+Tr.path;Qr.path=ve.normalizePath(Dn)}return Qr.path===null&&(Qr.path=mt.alwaysNormalize?ve.normalizePath(Tr.path):Tr.path),ve.buildURLFromParts(Qr)},parseURL:function(ze){var st=W.exec(ze);return st?{scheme:st[1]||"",netLoc:st[2]||"",path:st[3]||"",params:st[4]||"",query:st[5]||"",fragment:st[6]||""}:null},normalizePath:function(ze){for(ze=ze.split("").reverse().join("").replace(Z,"");ze.length!==(ze=ze.replace(re,"")).length;);return ze.split("").reverse().join("")},buildURLFromParts:function(ze){return ze.scheme+ze.netLoc+ze.path+ze.params+ze.query+ze.fragment}};Ae.exports=ve})()})(h);var g=h.exports;function v(Ae,q){var N=Object.keys(Ae);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(Ae);q&&(W=W.filter(function(H){return Object.getOwnPropertyDescriptor(Ae,H).enumerable})),N.push.apply(N,W)}return N}function b(Ae){for(var q=1;q<arguments.length;q++){var N=arguments[q]!=null?arguments[q]:{};q%2?v(Object(N),!0).forEach(function(W){S(Ae,W,N[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ae,Object.getOwnPropertyDescriptors(N)):v(Object(N)).forEach(function(W){Object.defineProperty(Ae,W,Object.getOwnPropertyDescriptor(N,W))})}return Ae}function S(Ae,q,N){return q=_(q),q in Ae?Object.defineProperty(Ae,q,{value:N,enumerable:!0,configurable:!0,writable:!0}):Ae[q]=N,Ae}function E(){return E=Object.assign?Object.assign.bind():function(Ae){for(var q=1;q<arguments.length;q++){var N=arguments[q];for(var W in N)Object.prototype.hasOwnProperty.call(N,W)&&(Ae[W]=N[W])}return Ae},E.apply(this,arguments)}function C(Ae,q){if(typeof Ae!="object"||Ae===null)return Ae;var N=Ae[Symbol.toPrimitive];if(N!==void 0){var W=N.call(Ae,q||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(Ae)}function _(Ae){var q=C(Ae,"string");return typeof q=="symbol"?q:String(q)}var T=Number.isFinite||function(Ae){return typeof Ae=="number"&&isFinite(Ae)},w=function(Ae){return Ae.MEDIA_ATTACHING="hlsMediaAttaching",Ae.MEDIA_ATTACHED="hlsMediaAttached",Ae.MEDIA_DETACHING="hlsMediaDetaching",Ae.MEDIA_DETACHED="hlsMediaDetached",Ae.BUFFER_RESET="hlsBufferReset",Ae.BUFFER_CODECS="hlsBufferCodecs",Ae.BUFFER_CREATED="hlsBufferCreated",Ae.BUFFER_APPENDING="hlsBufferAppending",Ae.BUFFER_APPENDED="hlsBufferAppended",Ae.BUFFER_EOS="hlsBufferEos",Ae.BUFFER_FLUSHING="hlsBufferFlushing",Ae.BUFFER_FLUSHED="hlsBufferFlushed",Ae.MANIFEST_LOADING="hlsManifestLoading",Ae.MANIFEST_LOADED="hlsManifestLoaded",Ae.MANIFEST_PARSED="hlsManifestParsed",Ae.LEVEL_SWITCHING="hlsLevelSwitching",Ae.LEVEL_SWITCHED="hlsLevelSwitched",Ae.LEVEL_LOADING="hlsLevelLoading",Ae.LEVEL_LOADED="hlsLevelLoaded",Ae.LEVEL_UPDATED="hlsLevelUpdated",Ae.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",Ae.LEVELS_UPDATED="hlsLevelsUpdated",Ae.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",Ae.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",Ae.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",Ae.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",Ae.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",Ae.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",Ae.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",Ae.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",Ae.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",Ae.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",Ae.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",Ae.CUES_PARSED="hlsCuesParsed",Ae.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",Ae.INIT_PTS_FOUND="hlsInitPtsFound",Ae.FRAG_LOADING="hlsFragLoading",Ae.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",Ae.FRAG_LOADED="hlsFragLoaded",Ae.FRAG_DECRYPTED="hlsFragDecrypted",Ae.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",Ae.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",Ae.FRAG_PARSING_METADATA="hlsFragParsingMetadata",Ae.FRAG_PARSED="hlsFragParsed",Ae.FRAG_BUFFERED="hlsFragBuffered",Ae.FRAG_CHANGED="hlsFragChanged",Ae.FPS_DROP="hlsFpsDrop",Ae.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",Ae.ERROR="hlsError",Ae.DESTROYING="hlsDestroying",Ae.KEY_LOADING="hlsKeyLoading",Ae.KEY_LOADED="hlsKeyLoaded",Ae.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",Ae.BACK_BUFFER_REACHED="hlsBackBufferReached",Ae}({}),O=function(Ae){return Ae.NETWORK_ERROR="networkError",Ae.MEDIA_ERROR="mediaError",Ae.KEY_SYSTEM_ERROR="keySystemError",Ae.MUX_ERROR="muxError",Ae.OTHER_ERROR="otherError",Ae}({}),I=function(Ae){return Ae.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",Ae.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",Ae.KEY_SYSTEM_NO_SESSION="keySystemNoSession",Ae.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",Ae.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",Ae.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",Ae.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",Ae.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",Ae.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",Ae.MANIFEST_LOAD_ERROR="manifestLoadError",Ae.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",Ae.MANIFEST_PARSING_ERROR="manifestParsingError",Ae.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",Ae.LEVEL_EMPTY_ERROR="levelEmptyError",Ae.LEVEL_LOAD_ERROR="levelLoadError",Ae.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",Ae.LEVEL_PARSING_ERROR="levelParsingError",Ae.LEVEL_SWITCH_ERROR="levelSwitchError",Ae.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",Ae.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",Ae.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",Ae.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",Ae.FRAG_LOAD_ERROR="fragLoadError",Ae.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",Ae.FRAG_DECRYPT_ERROR="fragDecryptError",Ae.FRAG_PARSING_ERROR="fragParsingError",Ae.FRAG_GAP="fragGap",Ae.REMUX_ALLOC_ERROR="remuxAllocError",Ae.KEY_LOAD_ERROR="keyLoadError",Ae.KEY_LOAD_TIMEOUT="keyLoadTimeOut",Ae.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",Ae.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",Ae.BUFFER_APPEND_ERROR="bufferAppendError",Ae.BUFFER_APPENDING_ERROR="bufferAppendingError",Ae.BUFFER_STALLED_ERROR="bufferStalledError",Ae.BUFFER_FULL_ERROR="bufferFullError",Ae.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",Ae.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",Ae.INTERNAL_EXCEPTION="internalException",Ae.INTERNAL_ABORTED="aborted",Ae.UNKNOWN="unknown",Ae}({}),k=function(){},M={trace:k,debug:k,log:k,warn:k,info:k,error:k},U=M;function P(Ae){var q=self.console[Ae];return q?q.bind(self.console,"[".concat(Ae,"] >")):k}function X(Ae){for(var q=arguments.length,N=new Array(q>1?q-1:0),W=1;W<q;W++)N[W-1]=arguments[W];N.forEach(function(H){U[H]=Ae[H]?Ae[H].bind(Ae):P(H)})}function F(Ae,q){if(self.console&&Ae===!0||typeof Ae=="object"){X(Ae,"debug","log","info","warn","error");try{U.log('Debug logs enabled for "'.concat(q,'" in hls.js version ',"1.4.12"))}catch(N){U=M}}else U=M}var j=U,K=/^(\d+)x(\d+)$/,z=/(.+?)=(".*?"|.*?)(?:,|$)/g,V=function(){function Ae(q){Object(n.a)(this,Ae),typeof q=="string"&&(q=Ae.parseAttrList(q));for(var N in q)q.hasOwnProperty(N)&&(N.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(N)),this[N]=q[N])}return Object(o.a)(Ae,[{key:"decimalInteger",value:function(N){var W=parseInt(this[N],10);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"hexadecimalInteger",value:function(N){if(this[N]){var W=(this[N]||"0x").slice(2);W=(W.length&1?"0":"")+W;for(var H=new Uint8Array(W.length/2),Z=0;Z<W.length/2;Z++)H[Z]=parseInt(W.slice(Z*2,Z*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(N){var W=parseInt(this[N],16);return W>Number.MAX_SAFE_INTEGER?Infinity:W}},{key:"decimalFloatingPoint",value:function(N){return parseFloat(this[N])}},{key:"optionalFloat",value:function(N,W){var H=this[N];return H?parseFloat(H):W}},{key:"enumeratedString",value:function(N){return this[N]}},{key:"bool",value:function(N){return this[N]==="YES"}},{key:"decimalResolution",value:function(N){var W=K.exec(this[N]);return W===null?void 0:{width:parseInt(W[1],10),height:parseInt(W[2],10)}}}],[{key:"parseAttrList",value:function(N){var W,H={},Z='"';for(z.lastIndex=0;(W=z.exec(N))!==null;){var re=W[2];re.indexOf(Z)===0&&re.lastIndexOf(Z)===re.length-1&&(re=re.slice(1,-1));var ve=W[1].trim();H[ve]=re}return H}}]),Ae}();function Q(Ae){return Ae!=="ID"&&Ae!=="CLASS"&&Ae!=="START-DATE"&&Ae!=="DURATION"&&Ae!=="END-DATE"&&Ae!=="END-ON-NEXT"}function G(Ae){return Ae==="SCTE35-OUT"||Ae==="SCTE35-IN"}var ee=function(){function Ae(q,N){if(Object(n.a)(this,Ae),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,N){var W=N.attr;for(var H in W)if(Object.prototype.hasOwnProperty.call(q,H)&&q[H]!==W[H]){j.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(q.ID,'"')),this._badValueForSameId=H;break}q=E(new V({}),W,q)}if(this.attr=q,this._startDate=new Date(q["START-DATE"]),"END-DATE"in this.attr){var Z=new Date(this.attr["END-DATE"]);T(Z.getTime())&&(this._endDate=Z)}}return Object(o.a)(Ae,[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var N=this.duration;return N!==null?new Date(this._startDate.getTime()+N*1e3):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var N=this.attr.decimalFloatingPoint("DURATION");if(T(N))return N}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&T(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),Ae}(),se=Object(o.a)(function Ae(){Object(n.a)(this,Ae),this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}),ye={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"},he=function(){function Ae(q){var N;Object(n.a)(this,Ae),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(N={},Object(l.a)(N,ye.AUDIO,null),Object(l.a)(N,ye.VIDEO,null),Object(l.a)(N,ye.AUDIOVIDEO,null),N),this.baseurl=q}return Object(o.a)(Ae,[{key:"setByteRange",value:function(N,W){var H=N.split("@",2),Z=[];H.length===1?Z[0]=W?W.byteRangeEndOffset:0:Z[0]=parseInt(H[1]),Z[1]=parseInt(H[0])+Z[0],this._byteRange=Z}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(N){this._url=N}}]),Ae}(),ke=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H){var Z;return Object(n.a)(this,N),Z=q.call(this,H),Z._decryptdata=null,Z.rawProgramDateTime=null,Z.programDateTime=null,Z.tagList=[],Z.duration=0,Z.sn=0,Z.levelkeys=void 0,Z.type=void 0,Z.loader=null,Z.keyLoader=null,Z.level=-1,Z.cc=0,Z.startPTS=void 0,Z.endPTS=void 0,Z.startDTS=void 0,Z.endDTS=void 0,Z.start=0,Z.deltaPTS=void 0,Z.maxStartPTS=void 0,Z.minEndPTS=void 0,Z.stats=new se,Z.urlId=0,Z.data=void 0,Z.bitrateTest=!1,Z.title=null,Z.initSegment=null,Z.endList=void 0,Z.gap=void 0,Z.type=W,Z}return Object(o.a)(N,[{key:"decryptdata",get:function(){var H=this.levelkeys;if(!H&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var Z=this.levelkeys.identity;if(Z)this._decryptdata=Z.getDecryptData(this.sn);else{var re=Object.keys(this.levelkeys);if(re.length===1)return this._decryptdata=this.levelkeys[re[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!T(this.programDateTime))return null;var H=T(this.duration)?this.duration:0;return this.programDateTime+H*1e3}},{key:"encrypted",get:function(){var H;if((H=this._decryptdata)!=null&&H.encrypted)return!0;if(this.levelkeys){var Z=Object.keys(this.levelkeys),re=Z.length;if(re>1||re===1&&this.levelkeys[Z[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var Z=this.levelkeys[H];Z&&!this._decryptdata&&(this._decryptdata=Z.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,Z;(H=this.loader)==null||H.abort(),(Z=this.keyLoader)==null||Z.abort()}},{key:"setElementaryStreamInfo",value:function(H,Z,re,ve,Te){var ze=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,st=this.elementaryStreams,mt=st[H];if(!mt){st[H]={startPTS:Z,endPTS:re,startDTS:ve,endDTS:Te,partial:ze};return}mt.startPTS=Math.min(mt.startPTS,Z),mt.endPTS=Math.max(mt.endPTS,re),mt.startDTS=Math.min(mt.startDTS,ve),mt.endDTS=Math.max(mt.endDTS,Te)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[ye.AUDIO]=null,H[ye.VIDEO]=null,H[ye.AUDIOVIDEO]=null}}]),N}(he),Pe=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z,re,ve){var Te;Object(n.a)(this,N),Te=q.call(this,Z),Te.fragOffset=0,Te.duration=0,Te.gap=!1,Te.independent=!1,Te.relurl=void 0,Te.fragment=void 0,Te.index=void 0,Te.stats=new se,Te.duration=W.decimalFloatingPoint("DURATION"),Te.gap=W.bool("GAP"),Te.independent=W.bool("INDEPENDENT"),Te.relurl=W.enumeratedString("URI"),Te.fragment=H,Te.index=re;var ze=W.enumeratedString("BYTERANGE");return ze&&Te.setByteRange(ze,ve),ve&&(Te.fragOffset=ve.fragOffset+ve.duration),Te}return Object(o.a)(N,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var H=this.elementaryStreams;return!!(H.audio||H.video||H.audiovideo)}}]),N}(he),Ue=10,$e=function(){function Ae(q){Object(n.a)(this,Ae),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=q}return Object(o.a)(Ae,[{key:"reloaded",value:function(N){if(!N){this.advanced=!0,this.updated=!0;return}var W=this.lastPartSn-N.lastPartSn,H=this.lastPartIndex-N.lastPartIndex;this.updated=this.endSN!==N.endSN||!!H||!!W||!this.live,this.advanced=this.endSN>N.endSN||W>0||W===0&&H>0,this.updated||this.advanced?this.misses=Math.floor(N.misses*.6):this.misses=N.misses+1,this.availabilityDelay=N.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return this.fragments.length?T(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Ue}},{key:"drift",get:function(){var N=this.driftEndTime-this.driftStartTime;if(N>0){var W=this.driftEnd-this.driftStart;return W*1e3/N}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var N;return(N=this.partList)!=null&&N.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var N;return(N=this.fragments)!=null&&N.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var N;return(N=this.partList)!=null&&N.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var N;return(N=this.partList)!=null&&N.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),Ae}();function Ge(Ae){return Uint8Array.from(atob(Ae),function(q){return q.charCodeAt(0)})}function ht(Ae){var q=rt(Ae).subarray(0,16),N=new Uint8Array(16);return N.set(q,16-q.length),N}function Fe(Ae){var q=function(W,H,Z){var re=W[H];W[H]=W[Z],W[Z]=re};q(Ae,0,3),q(Ae,1,2),q(Ae,4,5),q(Ae,6,7)}function oe(Ae){var q=Ae.split(":"),N=null;if(q[0]==="data"&&q.length===2){var W=q[1].split(";"),H=W[W.length-1].split(",");if(H.length===2){var Z=H[0]==="base64",re=H[1];Z?(W.splice(-1,1),N=Ge(re)):N=ht(re)}}return N}function rt(Ae){return Uint8Array.from(unescape(encodeURIComponent(Ae)),function(q){return q.charCodeAt(0)})}var fe={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Y(Ae){switch(Ae){case J.FAIRPLAY:return fe.FAIRPLAY;case J.PLAYREADY:return fe.PLAYREADY;case J.WIDEVINE:return fe.WIDEVINE;case J.CLEARKEY:return fe.CLEARKEY}}var $={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function de(Ae){if(Ae===$.WIDEVINE)return fe.WIDEVINE}function we(Ae){switch(Ae){case fe.FAIRPLAY:return J.FAIRPLAY;case fe.PLAYREADY:return J.PLAYREADY;case fe.WIDEVINE:return J.WIDEVINE;case fe.CLEARKEY:return J.CLEARKEY}}function Ce(Ae){var q=Ae.drmSystems,N=Ae.widevineLicenseUrl,W=q?[fe.FAIRPLAY,fe.WIDEVINE,fe.PLAYREADY,fe.CLEARKEY].filter(function(H){return!!q[H]}):[];return!W[fe.WIDEVINE]&&N&&W.push(fe.WIDEVINE),W}var Se=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function le(Ae,q,N,W){var H;switch(Ae){case fe.FAIRPLAY:H=["cenc","sinf"];break;case fe.WIDEVINE:case fe.PLAYREADY:H=["cenc"];break;case fe.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(Ae))}return pe(H,q,N,W)}function pe(Ae,q,N,W){var H={initDataTypes:Ae,persistentState:W.persistentState||"not-allowed",distinctiveIdentifier:W.distinctiveIdentifier||"not-allowed",sessionTypes:W.sessionTypes||[W.sessionType||"temporary"],audioCapabilities:q.map(function(Z){return{contentType:'audio/mp4; codecs="'.concat(Z,'"'),robustness:W.audioRobustness||"",encryptionScheme:W.audioEncryptionScheme||null}}),videoCapabilities:N.map(function(Z){return{contentType:'video/mp4; codecs="'.concat(Z,'"'),robustness:W.videoRobustness||"",encryptionScheme:W.videoEncryptionScheme||null}})};return[H]}function _e(Ae,q,N){return Uint8Array.prototype.slice?Ae.slice(q,N):new Uint8Array(Array.prototype.slice.call(Ae,q,N))}var tt=function(q,N){return N+10<=q.length&&(q[N]===73&&q[N+1]===68&&q[N+2]===51&&(q[N+3]<255&&q[N+4]<255&&(q[N+6]<128&&q[N+7]<128&&q[N+8]<128&&q[N+9]<128)))},gt=function(q,N){return N+10<=q.length&&(q[N]===51&&q[N+1]===68&&q[N+2]===73&&(q[N+3]<255&&q[N+4]<255&&(q[N+6]<128&&q[N+7]<128&&q[N+8]<128&&q[N+9]<128)))},ct=function(q,N){for(var W=N,H=0;tt(q,N);){H+=10;var Z=je(q,N+6);H+=Z,gt(q,N+10)&&(H+=10),N+=H}return H>0?q.subarray(W,W+H):void 0},je=function(q,N){var W=0;return W=(q[N]&127)<<21,W|=(q[N+1]&127)<<14,W|=(q[N+2]&127)<<7,W|=q[N+3]&127,W},Zt=function(q,N){return tt(q,N)&&je(q,N+6)+10<=q.length-N},ut=function(q){for(var N=Vt(q),W=0;W<N.length;W++){var H=N[W];if(Ht(H))return te(H)}return},Ht=function(q){return q&&q.key==="PRIV"&&q.info==="com.apple.streaming.transportStreamTimestamp"},dr=function(q){var N=String.fromCharCode(q[0],q[1],q[2],q[3]),W=je(q,4),H=10;return{type:N,size:W,data:q.subarray(H,H+W)}},Vt=function(q){for(var N=0,W=[];tt(q,N);){var H=je(q,N+6);N+=10;for(var Z=N+H;N+8<Z;){var re=dr(q.subarray(N)),ve=Mt(re);ve&&W.push(ve),N+=re.size+10}gt(q,N)&&(N+=10)}return W},Mt=function(q){return q.type==="PRIV"?Gt(q):q.type[0]==="W"?me(q):Ve(q)},Gt=function(q){if(q.size<2)return;var N=Ze(q.data,!0),W=new Uint8Array(q.data.subarray(N.length+1));return{key:q.type,info:N,data:W.buffer}},Ve=function(q){if(q.size<2)return;if(q.type==="TXXX"){var N=1,W=Ze(q.data.subarray(N),!0);N+=W.length+1;var H=Ze(q.data.subarray(N));return{key:q.type,info:W,data:H}}var Z=Ze(q.data.subarray(1));return{key:q.type,data:Z}},me=function(q){if(q.type==="WXXX"){if(q.size<2)return;var N=1,W=Ze(q.data.subarray(N),!0);N+=W.length+1;var H=Ze(q.data.subarray(N));return{key:q.type,info:W,data:H}}var Z=Ze(q.data);return{key:q.type,data:Z}},te=function(q){if(q.data.byteLength===8){var N=new Uint8Array(q.data),W=N[3]&1,H=(N[4]<<23)+(N[5]<<15)+(N[6]<<7)+N[7];return H/=45,W&&(H+=4772185884e-2),Math.round(H)}return},Ze=function(q){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,W=ue();if(W){var H=W.decode(q);if(N){var Z=H.indexOf("\0");return Z!==-1?H.substring(0,Z):H}return H.replace(/\0/g,"")}for(var re=q.length,ve,Te,ze,st="",mt=0;mt<re;){if(ve=q[mt++],ve===0&&N)return st;if(ve===0||ve===3)continue;switch(ve>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:st+=String.fromCharCode(ve);break;case 12:case 13:Te=q[mt++],st+=String.fromCharCode((ve&31)<<6|Te&63);break;case 14:Te=q[mt++],ze=q[mt++],st+=String.fromCharCode((ve&15)<<12|(Te&63)<<6|(ze&63)<<0);break}}return st},Xe;function ue(){return!Xe&&typeof self.TextDecoder!="undefined"&&(Xe=new self.TextDecoder("utf-8")),Xe}var St={hexDump:function(q){for(var N="",W=0;W<q.length;W++){var H=q[W].toString(16);H.length<2&&(H="0"+H),N+=H}return N}},Qt=Math.pow(2,32)-1,dt=[].push,Jt={video:1,audio:2,id3:3,text:4};function $t(Ae){return String.fromCharCode.apply(null,Ae)}function tn(Ae,q){var N=Ae[q]<<8|Ae[q+1];return N<0?65536+N:N}function kt(Ae,q){var N=tr(Ae,q);return N<0?4294967296+N:N}function tr(Ae,q){return Ae[q]<<24|Ae[q+1]<<16|Ae[q+2]<<8|Ae[q+3]}function Bt(Ae,q,N){Ae[q]=N>>24,Ae[q+1]=N>>16&255,Ae[q+2]=N>>8&255,Ae[q+3]=N&255}function ft(Ae,q){var N=[];if(!q.length)return N;for(var W=Ae.byteLength,H=0;H<W;){var Z=kt(Ae,H),re=$t(Ae.subarray(H+4,H+8)),ve=Z>1?H+Z:W;if(re===q[0])if(q.length===1)N.push(Ae.subarray(H+8,ve));else{var Te=ft(Ae.subarray(H+8,ve),q.slice(1));Te.length&&dt.apply(N,Te)}H=ve}return N}function it(Ae){var q=[],N=Ae[0],W=8,H=kt(Ae,W);W+=4;var Z=0,re=0;N===0?W+=8:W+=16,W+=2;var ve=Ae.length+re,Te=tn(Ae,W);W+=2;for(var ze=0;ze<Te;ze++){var st=W,mt=kt(Ae,st);st+=4;var Yt=mt&2147483647,Tr=(mt&2147483648)>>>31;if(Tr===1)return j.warn("SIDX has hierarchical references (not supported)"),null;var wr=kt(Ae,st);st+=4,q.push({referenceSize:Yt,subsegmentDuration:wr,info:{duration:wr/H,start:ve,end:ve+Yt-1}}),ve+=Yt,st+=4,W=st}return{earliestPresentationTime:Z,timescale:H,version:N,referencesCount:Te,references:q}}function Or(Ae){for(var q=[],N=ft(Ae,["moov","trak"]),W=0;W<N.length;W++){var H=N[W],Z=ft(H,["tkhd"])[0];if(Z){var re=Z[0],ve=re===0?12:20,Te=kt(Z,ve),ze=ft(H,["mdia","mdhd"])[0];if(ze){re=ze[0],ve=re===0?12:20;var st=kt(ze,ve),mt=ft(H,["mdia","hdlr"])[0];if(mt){var Yt=$t(mt.subarray(8,12)),Tr={soun:ye.AUDIO,vide:ye.VIDEO}[Yt];if(Tr){var wr=ft(H,["mdia","minf","stbl","stsd"])[0],jr=void 0;wr&&(jr=$t(wr.subarray(12,16))),q[Te]={timescale:st,type:Tr},q[Tr]={timescale:st,id:Te,codec:jr}}}}}}var Qr=ft(Ae,["moov","mvex","trex"]);return Qr.forEach(function(Cn){var Dn=kt(Cn,4),Zn=q[Dn];Zn&&(Zn.default={duration:kt(Cn,12),flags:kt(Cn,20)})}),q}function an(Ae,q){if(!Ae||!q)return Ae;var N=q.keyId;if(N&&q.isCommonEncryption){var W=ft(Ae,["moov","trak"]);W.forEach(function(H){var Z=ft(H,["mdia","minf","stbl","stsd"])[0],re=Z.subarray(8),ve=ft(re,["enca"]),Te=ve.length>0;Te||(ve=ft(re,["encv"])),ve.forEach(function(ze){var st=Te?ze.subarray(28):ze.subarray(78),mt=ft(st,["sinf"]);mt.forEach(function(Yt){var Tr=En(Yt);if(Tr){var wr=Tr.subarray(8,24);wr.some(function(jr){return jr!==0})||(j.log("[eme] Patching keyId in 'enc".concat(Te?"a":"v",">sinf>>tenc' box: ").concat(St.hexDump(wr)," -> ").concat(St.hexDump(N))),Tr.set(N,8))}})})})}return Ae}function En(Ae){var q=ft(Ae,["schm"])[0];if(q){var N=$t(q.subarray(4,8));if(N==="cbcs"||N==="cenc")return ft(Ae,["schi","tenc"])[0]}return j.error("[eme] missing 'schm' box"),null}function Bn(Ae,q){return ft(q,["moof","traf"]).reduce(function(N,W){var H=ft(W,["tfdt"])[0],Z=H[0],re=ft(W,["tfhd"]).reduce(function(ve,Te){var ze=kt(Te,4),st=Ae[ze];if(st){var mt=kt(H,4);if(Z===1){if(mt===Qt)return j.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),ve;mt*=Qt+1,mt+=kt(H,8)}var Yt=st.timescale||9e4,Tr=mt/Yt;if(isFinite(Tr)&&(ve===null||Tr<ve))return Tr}return ve},null);return re!==null&&isFinite(re)&&(N===null||re<N)?re:N},null)}function vi(Ae,q){for(var N=0,W=0,H=0,Z=ft(Ae,["moof","traf"]),re=0;re<Z.length;re++){var ve=Z[re],Te=ft(ve,["tfhd"])[0],ze=kt(Te,4),st=q[ze];if(!st)continue;var mt=st.default,Yt=kt(Te,0)|(mt==null?void 0:mt.flags),Tr=mt==null?void 0:mt.duration;Yt&8&&(Yt&2?Tr=kt(Te,12):Tr=kt(Te,8));for(var wr=st.timescale||9e4,jr=ft(ve,["trun"]),Qr=0;Qr<jr.length;Qr++){if(N=Ln(jr[Qr]),!N&&Tr){var Cn=kt(jr[Qr],4);N=Tr*Cn}st.type===ye.VIDEO?W+=N/wr:st.type===ye.AUDIO&&(H+=N/wr)}}if(W===0&&H===0){for(var Dn=0,Zn=ft(Ae,["sidx"]),Si=0;Si<Zn.length;Si++){var ua=it(Zn[Si]);ua!=null&&ua.references&&(Dn+=ua.references.reduce(function(Vi,Zi){return Vi+Zi.info.duration||0},0))}return Dn}return W||H}function Ln(Ae){var q=kt(Ae,0),N=8;q&1&&(N+=4),q&4&&(N+=4);for(var W=0,H=kt(Ae,4),Z=0;Z<H;Z++){if(q&256){var re=kt(Ae,N);W+=re,N+=4}q&512&&(N+=4),q&1024&&(N+=4),q&2048&&(N+=4)}return W}function Mn(Ae,q,N){ft(q,["moof","traf"]).forEach(function(W){ft(W,["tfhd"]).forEach(function(H){var Z=kt(H,4),re=Ae[Z];if(!re)return;var ve=re.timescale||9e4;ft(W,["tfdt"]).forEach(function(Te){var ze=Te[0],st=kt(Te,4);if(ze===0)st-=N*ve,st=Math.max(st,0),Bt(Te,4,st);else{st*=Math.pow(2,32),st+=kt(Te,8),st-=N*ve,st=Math.max(st,0);var mt=Math.floor(st/(Qt+1)),Yt=Math.floor(st%(Qt+1));Bt(Te,4,mt),Bt(Te,8,Yt)}})})})}function Xt(Ae){var q={valid:null,remainder:null},N=ft(Ae,["moof"]);if(N){if(N.length<2)return q.remainder=Ae,q}else return q;var W=N[N.length-1];return q.valid=_e(Ae,0,W.byteOffset-8),q.remainder=_e(Ae,W.byteOffset-8),q}function wt(Ae,q){var N=new Uint8Array(Ae.length+q.length);return N.set(Ae),N.set(q,Ae.length),N}function De(Ae,q){var N=[],W=q.samples,H=q.timescale,Z=q.id,re=!1,ve=ft(W,["moof"]);return ve.map(function(Te){var ze=Te.byteOffset-8,st=ft(Te,["traf"]);st.map(function(mt){var Yt=ft(mt,["tfdt"]).map(function(Tr){var wr=Tr[0],jr=kt(Tr,4);return wr===1&&(jr*=Math.pow(2,32),jr+=kt(Tr,8)),jr/H})[0];return Yt!==void 0&&(Ae=Yt),ft(mt,["tfhd"]).map(function(Tr){var wr=kt(Tr,4),jr=kt(Tr,0)&16777215,Qr=(jr&1)!==0,Cn=(jr&2)!==0,Dn=(jr&8)!==0,Zn=0,Si=(jr&16)!==0,ua=0,Vi=(jr&32)!==0,Zi=8;wr===Z&&(Qr&&(Zi+=8),Cn&&(Zi+=4),Dn&&(Zn=kt(Tr,Zi),Zi+=4),Si&&(ua=kt(Tr,Zi),Zi+=4),Vi&&(Zi+=4),q.type==="video"&&(re=Re(q.codec)),ft(mt,["trun"]).map(function(ka){var Ga=ka[0],Ba=kt(ka,0)&16777215,Sa=(Ba&1)!==0,Go=0,bs=(Ba&4)!==0,ys=(Ba&256)!==0,Cs=0,js=(Ba&512)!==0,ws=0,Hs=(Ba&1024)!==0,Ee=(Ba&2048)!==0,Qe=0,xt=kt(ka,4),hr=8;Sa&&(Go=kt(ka,hr),hr+=4),bs&&(hr+=4);for(var Fr=Go+ze,on=0;on<xt;on++){if(ys?(Cs=kt(ka,hr),hr+=4):Cs=Zn,js?(ws=kt(ka,hr),hr+=4):ws=ua,Hs&&(hr+=4),Ee&&(Ga===0?Qe=kt(ka,hr):Qe=tr(ka,hr),hr+=4),q.type===ye.VIDEO)for(var Be=0;Be<ws;){var ie=kt(W,Fr);if(Fr+=4,Me(re,W[Fr])){var Oe=W.subarray(Fr,Fr+ie);nt(Oe,re?2:1,Ae+Qe/H,N)}Fr+=ie,Be+=ie+4}Ae+=Cs/H}}))})})}),N}function Re(Ae){if(!Ae)return!1;var q=Ae.indexOf("."),N=q<0?Ae:Ae.substring(0,q);return N==="hvc1"||N==="hev1"||N==="dvh1"||N==="dvhe"}function Me(Ae,q){if(Ae){var N=q>>1&63;return N===39||N===40}else{var W=q&31;return W===6}}function nt(Ae,q,N,W){var H=yt(Ae),Z=0;Z+=q;for(var re=0,ve=0,Te=!1,ze=0;Z<H.length;){re=0;do{if(Z>=H.length)break;ze=H[Z++],re+=ze}while(ze===255);ve=0;do{if(Z>=H.length)break;ze=H[Z++],ve+=ze}while(ze===255);var st=H.length-Z;if(!Te&&re===4&&Z<H.length){Te=!0;var mt=H[Z++];if(mt===181){var Yt=tn(H,Z);if(Z+=2,Yt===49){var Tr=kt(H,Z);if(Z+=4,Tr===1195456820){var wr=H[Z++];if(wr===3){var jr=H[Z++],Qr=31&jr,Cn=64&jr,Dn=Cn?2+Qr*3:0,Zn=new Uint8Array(Dn);if(Cn){Zn[0]=jr;for(var Si=1;Si<Dn;Si++)Zn[Si]=H[Z++]}W.push({type:wr,payloadType:re,pts:N,bytes:Zn})}}}}}else if(re===5&&ve<st){if(Te=!0,ve>16){for(var ua=[],Vi=0;Vi<16;Vi++){var Zi=H[Z++].toString(16);ua.push(Zi.length==1?"0"+Zi:Zi),(Vi===3||Vi===5||Vi===7||Vi===9)&&ua.push("-")}for(var ka=ve-16,Ga=new Uint8Array(ka),Ba=0;Ba<ka;Ba++)Ga[Ba]=H[Z++];W.push({payloadType:re,pts:N,uuid:ua.join(""),userData:Ze(Ga),userDataBytes:Ga})}}else if(ve<st)Z+=ve;else if(ve>st)break}}function yt(Ae){for(var q=Ae.byteLength,N=[],W=1;W<q-2;)Ae[W]===0&&Ae[W+1]===0&&Ae[W+2]===3?(N.push(W+2),W+=2):W++;if(N.length===0)return Ae;var H=q-N.length,Z=new Uint8Array(H),re=0;for(W=0;W<H;re++,W++)re===N[0]&&(re++,N.shift()),Z[W]=Ae[re];return Z}function sr(Ae){var q=Ae[0],N="",W="",H=0,Z=0,re=0,ve=0,Te=0,ze=0;if(q===0){for(;$t(Ae.subarray(ze,ze+1))!=="\0";)N+=$t(Ae.subarray(ze,ze+1)),ze+=1;for(N+=$t(Ae.subarray(ze,ze+1)),ze+=1;$t(Ae.subarray(ze,ze+1))!=="\0";)W+=$t(Ae.subarray(ze,ze+1)),ze+=1;W+=$t(Ae.subarray(ze,ze+1)),ze+=1,H=kt(Ae,12),Z=kt(Ae,16),ve=kt(Ae,20),Te=kt(Ae,24),ze=28}else if(q===1){ze+=4,H=kt(Ae,ze),ze+=4;var st=kt(Ae,ze);ze+=4;var mt=kt(Ae,ze);for(ze+=4,re=Math.pow(2,32)*st+mt,Number.isSafeInteger(re)||(re=Number.MAX_SAFE_INTEGER,j.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),ve=kt(Ae,ze),ze+=4,Te=kt(Ae,ze),ze+=4;$t(Ae.subarray(ze,ze+1))!=="\0";)N+=$t(Ae.subarray(ze,ze+1)),ze+=1;for(N+=$t(Ae.subarray(ze,ze+1)),ze+=1;$t(Ae.subarray(ze,ze+1))!=="\0";)W+=$t(Ae.subarray(ze,ze+1)),ze+=1;W+=$t(Ae.subarray(ze,ze+1)),ze+=1}var Yt=Ae.subarray(ze,Ae.byteLength);return{schemeIdUri:N,value:W,timeScale:H,presentationTime:re,presentationTimeDelta:Z,eventDuration:ve,id:Te,payload:Yt}}function Nr(Ae){for(var q=arguments.length,N=new Array(q>1?q-1:0),W=1;W<q;W++)N[W-1]=arguments[W];for(var H=N.length,Z=8,re=H;re--;)Z+=N[re].byteLength;var ve=new Uint8Array(Z);for(ve[0]=Z>>24&255,ve[1]=Z>>16&255,ve[2]=Z>>8&255,ve[3]=Z&255,ve.set(Ae,4),re=0,Z=8;re<H;re++)ve.set(N[re],Z),Z+=N[re].byteLength;return ve}function mn(Ae,q,N){if(Ae.byteLength!==16)throw new RangeError("Invalid system id");var W,H;if(q){W=1,H=new Uint8Array(q.length*16);for(var Z=0;Z<q.length;Z++){var re=q[Z];if(re.byteLength!==16)throw new RangeError("Invalid key");H.set(re,Z*16)}}else W=0,H=new Uint8Array;var ve;W>0?(ve=new Uint8Array(4),q.length>0&&new DataView(ve.buffer).setUint32(0,q.length,!1)):ve=new Uint8Array;var Te=new Uint8Array(4);return N&&N.byteLength>0&&new DataView(Te.buffer).setUint32(0,N.byteLength,!1),Nr([112,115,115,104],new Uint8Array([W,0,0,0]),Ae,ve,H,Te,N||new Uint8Array)}function Yn(Ae){if(!(Ae instanceof ArrayBuffer)||Ae.byteLength<32)return null;var q={version:0,systemId:"",kids:null,data:null},N=new DataView(Ae),W=N.getUint32(0);if(Ae.byteLength!==W&&W>44)return null;var H=N.getUint32(4);if(H!==1886614376)return null;if(q.version=N.getUint32(8)>>>24,q.version>1)return null;q.systemId=St.hexDump(new Uint8Array(Ae,12,16));var Z=N.getUint32(28);if(q.version===0){if(W-32<Z)return null;q.data=new Uint8Array(Ae,32,Z)}else if(q.version===1){q.kids=[];for(var re=0;re<Z;re++)q.kids.push(new Uint8Array(Ae,32+re*16,16))}return q}var Jn={},ur=function(){function Ae(q,N,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(n.a)(this,Ae),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=q,this.uri=N,this.keyFormat=W,this.keyFormatVersions=H,this.iv=Z,this.encrypted=q?q!=="NONE":!1,this.isCommonEncryption=this.encrypted&&q!=="AES-128"}return Object(o.a)(Ae,[{key:"isSupported",value:function(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case J.FAIRPLAY:case J.WIDEVINE:case J.PLAYREADY:case J.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}},{key:"getDecryptData",value:function(N){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof N!="number"&&(this.method==="AES-128"&&!this.iv&&j.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),N=0);var W=Tt(N),H=new Ae(this.method,this.uri,"identity",this.keyFormatVersions,W);return H}var Z=oe(this.uri);if(Z)switch(this.keyFormat){case J.WIDEVINE:this.pssh=Z,Z.length>=22&&(this.keyId=Z.subarray(Z.length-22,Z.length-6));break;case J.PLAYREADY:{var re=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=mn(re,null,Z);var ve=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2),Te=String.fromCharCode.apply(null,Array.from(ve)),ze=Te.substring(Te.indexOf("<"),Te.length),st=new DOMParser,mt=st.parseFromString(ze,"text/xml"),Yt=mt.getElementsByTagName("KID")[0];if(Yt){var Tr=Yt.childNodes[0]?Yt.childNodes[0].nodeValue:Yt.getAttribute("VALUE");if(Tr){var wr=Ge(Tr).subarray(0,16);Fe(wr),this.keyId=wr}}break}default:{var jr=Z.subarray(0,16);if(jr.length!==16){var Qr=new Uint8Array(16);Qr.set(jr,16-jr.length),jr=Qr}this.keyId=jr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Cn=Jn[this.uri];if(!Cn){var Dn=Object.keys(Jn).length%Number.MAX_SAFE_INTEGER;Cn=new Uint8Array(16);var Zn=new DataView(Cn.buffer,12,4);Zn.setUint32(0,Dn),Jn[this.uri]=Cn}this.keyId=Cn}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){Jn={}}}]),Ae}();function Tt(Ae){for(var q=new Uint8Array(16),N=12;N<16;N++)q[N]=Ae>>8*(15-N)&255;return q}var Ct=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ar(Ae){return Ct.test(Ae)}function er(Ae,q,N){if(Ae.variableList!==null||Ae.hasVariableRefs)for(var W=N.length;W--;){var H=N[W],Z=q[H];Z&&(q[H]=Ft(Ae,Z))}}function Ft(Ae,q){if(Ae.variableList!==null||Ae.hasVariableRefs){var N=Ae.variableList;return q.replace(Ct,function(W){var H=W.substring(2,W.length-1),Z=N==null?void 0:N[H];return Z===void 0?(Ae.playlistParsingError||(Ae.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),W):Z})}return q}function ir(Ae,q,N){var W=Ae.variableList;W||(Ae.variableList=W={});var H,Z;if("QUERYPARAM"in q){H=q.QUERYPARAM;try{var re=new self.URL(N).searchParams;if(re.has(H))Z=re.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(N,'"'))}catch(ve){Ae.playlistParsingError||(Ae.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(ve.message)))}}else H=q.NAME,Z=q.VALUE;H in W?Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):W[H]=Z||""}function Pt(Ae,q,N){var W=q.IMPORT;if(N&&W in N){var H=Ae.variableList;H||(Ae.variableList=H={}),H[W]=N[W]}else Ae.playlistParsingError||(Ae.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(W,'"')))}function rr(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Yr={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,av01:!0,drac:!0,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}},Pr=rr();function Mr(Ae,q){var N=Yr[q];return!!N&&N[Ae.slice(0,4)]===!0}function fn(Ae,q){var N;return(N=Pr==null?void 0:Pr.isTypeSupported("".concat(q||"video",'/mp4;codecs="').concat(Ae,'"')))!=null?N:!1}var wn=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ai=/#EXT-X-MEDIA:(.*)/g,ri=/^#EXT(?:INF|-X-TARGETDURATION):/m,gi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Ii=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),Mi=function(){function Ae(){Object(n.a)(this,Ae)}return Object(o.a)(Ae,null,[{key:"findGroup",value:function(N,W){for(var H=0;H<N.length;H++){var Z=N[H];if(Z.id===W)return Z}}},{key:"convertAVC1ToAVCOTI",value:function(N){var W=N.split(".");if(W.length>2){var H=W.shift()+".";return H+=parseInt(W.shift()).toString(16),H+=("000"+parseInt(W.shift()).toString(16)).slice(-4),H}return N}},{key:"resolve",value:function(N,W){return g.buildAbsoluteURL(W,N,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(N){return ri.test(N)}},{key:"parseMasterPlaylist",value:function(N,W){var H=Ar(N),Z={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},re=[];wn.lastIndex=0;for(var ve;(ve=wn.exec(N))!=null;)if(ve[1]){var Te,ze=new V(ve[1]);er(Z,ze,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var st=Ft(Z,ve[2]),mt={attrs:ze,bitrate:ze.decimalInteger("AVERAGE-BANDWIDTH")||ze.decimalInteger("BANDWIDTH"),name:ze.NAME,url:Ae.resolve(st,W)},Yt=ze.decimalResolution("RESOLUTION");Yt&&(mt.width=Yt.width,mt.height=Yt.height),Ne((ze.CODECS||"").split(/[ ,]+/).filter(function(ua){return ua}),mt),mt.videoCodec&&mt.videoCodec.indexOf("avc1")!==-1&&(mt.videoCodec=Ae.convertAVC1ToAVCOTI(mt.videoCodec)),(Te=mt.unknownCodecs)!=null&&Te.length||re.push(mt),Z.levels.push(mt)}else if(ve[3]){var Tr=ve[3],wr=ve[4];switch(Tr){case"SESSION-DATA":{var jr=new V(wr);er(Z,jr,["DATA-ID","LANGUAGE","VALUE","URI"]);var Qr=jr["DATA-ID"];Qr&&(Z.sessionData===null&&(Z.sessionData={}),Z.sessionData[Qr]=jr);break}case"SESSION-KEY":{var Cn=Qi(wr,W,Z);Cn.encrypted&&Cn.isSupported()?(Z.sessionKeys===null&&(Z.sessionKeys=[]),Z.sessionKeys.push(Cn)):j.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(wr,'"'));break}case"DEFINE":{{var Dn=new V(wr);er(Z,Dn,["NAME","VALUE","QUERYPARAM"]),ir(Z,Dn,W)}break}case"CONTENT-STEERING":{var Zn=new V(wr);er(Z,Zn,["SERVER-URI","PATHWAY-ID"]),Z.contentSteering={uri:Ae.resolve(Zn["SERVER-URI"],W),pathwayId:Zn["PATHWAY-ID"]||"."};break}case"START":{Z.startTimeOffset=ot(wr);break}}}var Si=re.length>0&&re.length<Z.levels.length;return Z.levels=Si?re:Z.levels,Z.levels.length===0&&(Z.playlistParsingError=new Error("no levels found in manifest")),Z}},{key:"parseMasterPlaylistMedia",value:function(N,W,H){var Z,re={},ve=H.levels,Te={AUDIO:ve.map(function(Qr){return{id:Qr.attrs.AUDIO,audioCodec:Qr.audioCodec}}),SUBTITLES:ve.map(function(Qr){return{id:Qr.attrs.SUBTITLES,textCodec:Qr.textCodec}}),"CLOSED-CAPTIONS":[]},ze=0;for(ai.lastIndex=0;(Z=ai.exec(N))!==null;){var st=new V(Z[1]),mt=st.TYPE;if(mt){var Yt=Te[mt],Tr=re[mt]||[];re[mt]=Tr,er(H,st,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var wr={attrs:st,bitrate:0,id:ze++,groupId:st["GROUP-ID"]||"",instreamId:st["INSTREAM-ID"],name:st.NAME||st.LANGUAGE||"",type:mt,default:st.bool("DEFAULT"),autoselect:st.bool("AUTOSELECT"),forced:st.bool("FORCED"),lang:st.LANGUAGE,url:st.URI?Ae.resolve(st.URI,W):""};if(Yt!=null&&Yt.length){var jr=Ae.findGroup(Yt,wr.groupId)||Yt[0];He(wr,jr,"audioCodec"),He(wr,jr,"textCodec")}Tr.push(wr)}}return re}},{key:"parseLevelPlaylist",value:function(N,W,H,Z,re,ve){var Te=new $e(W),ze=Te.fragments,st=null,mt=0,Yt=0,Tr=0,wr=0,jr=null,Qr=new ke(Z,W),Cn,Dn,Zn,Si=-1,ua=!1;for(gi.lastIndex=0,Te.m3u8=N,Te.hasVariableRefs=Ar(N);(Cn=gi.exec(N))!==null;){ua&&(ua=!1,Qr=new ke(Z,W),Qr.start=Tr,Qr.sn=mt,Qr.cc=wr,Qr.level=H,st&&(Qr.initSegment=st,Qr.rawProgramDateTime=st.rawProgramDateTime,st.rawProgramDateTime=null));var Vi=Cn[1];if(Vi){Qr.duration=parseFloat(Vi);var Zi=(" "+Cn[2]).slice(1);Qr.title=Zi||null,Qr.tagList.push(Zi?["INF",Vi,Zi]:["INF",Vi])}else if(Cn[3]){if(T(Qr.duration)){Qr.start=Tr,Zn&&lt(Qr,Zn,Te),Qr.sn=mt,Qr.level=H,Qr.cc=wr,Qr.urlId=re,ze.push(Qr);var ka=(" "+Cn[3]).slice(1);Qr.relurl=Ft(Te,ka),at(Qr,jr),jr=Qr,Tr+=Qr.duration,mt++,Yt=0,ua=!0}}else if(Cn[4]){var Ga=(" "+Cn[4]).slice(1);jr?Qr.setByteRange(Ga,jr):Qr.setByteRange(Ga)}else if(Cn[5])Qr.rawProgramDateTime=(" "+Cn[5]).slice(1),Qr.tagList.push(["PROGRAM-DATE-TIME",Qr.rawProgramDateTime]),Si===-1&&(Si=ze.length);else{if(Cn=Cn[0].match(Ii),!Cn){j.warn("No matches on slow regex match for level playlist!");continue}for(Dn=1;Dn<Cn.length&&!(typeof Cn[Dn]!="undefined");Dn++);var Ba=(" "+Cn[Dn]).slice(1),Sa=(" "+Cn[Dn+1]).slice(1),Go=Cn[Dn+2]?(" "+Cn[Dn+2]).slice(1):"";switch(Ba){case"PLAYLIST-TYPE":Te.type=Sa.toUpperCase();break;case"MEDIA-SEQUENCE":mt=Te.startSN=parseInt(Sa);break;case"SKIP":{var bs=new V(Sa);er(Te,bs,["RECENTLY-REMOVED-DATERANGES"]);var ys=bs.decimalInteger("SKIPPED-SEGMENTS");if(T(ys)){Te.skippedSegments=ys;for(var Cs=ys;Cs--;)ze.unshift(null);mt+=ys}var js=bs.enumeratedString("RECENTLY-REMOVED-DATERANGES");js&&(Te.recentlyRemovedDateranges=js.split(" "));break}case"TARGETDURATION":Te.targetduration=Math.max(parseInt(Sa),1);break;case"VERSION":Te.version=parseInt(Sa);break;case"EXTM3U":break;case"ENDLIST":Te.live=!1;break;case"#":(Sa||Go)&&Qr.tagList.push(Go?[Sa,Go]:[Sa]);break;case"DISCONTINUITY":wr++,Qr.tagList.push(["DIS"]);break;case"GAP":Qr.gap=!0,Qr.tagList.push([Ba]);break;case"BITRATE":Qr.tagList.push([Ba,Sa]);break;case"DATERANGE":{var ws=new V(Sa);er(Te,ws,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),er(Te,ws,ws.clientAttrs);var Hs=new ee(ws,Te.dateRanges[ws.ID]);Hs.isValid||Te.skippedSegments?Te.dateRanges[Hs.id]=Hs:j.warn('Ignoring invalid DATERANGE tag: "'.concat(Sa,'"')),Qr.tagList.push(["EXT-X-DATERANGE",Sa]);break}case"DEFINE":{{var Ee=new V(Sa);er(Te,Ee,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Ee?Pt(Te,Ee,ve):ir(Te,Ee,W)}break}case"DISCONTINUITY-SEQUENCE":wr=parseInt(Sa);break;case"KEY":{var Qe=Qi(Sa,W,Te);if(Qe.isSupported()){if(Qe.method==="NONE"){Zn=void 0;break}Zn||(Zn={}),Zn[Qe.keyFormat]&&(Zn=E({},Zn)),Zn[Qe.keyFormat]=Qe}else j.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(Sa,'"'));break}case"START":Te.startTimeOffset=ot(Sa);break;case"MAP":{var xt=new V(Sa);if(er(Te,xt,["BYTERANGE","URI"]),Qr.duration){var hr=new ke(Z,W);qe(hr,xt,H,Zn),st=hr,Qr.initSegment=st,st.rawProgramDateTime&&!Qr.rawProgramDateTime&&(Qr.rawProgramDateTime=st.rawProgramDateTime)}else qe(Qr,xt,H,Zn),st=Qr,ua=!0;break}case"SERVER-CONTROL":{var Fr=new V(Sa);Te.canBlockReload=Fr.bool("CAN-BLOCK-RELOAD"),Te.canSkipUntil=Fr.optionalFloat("CAN-SKIP-UNTIL",0),Te.canSkipDateRanges=Te.canSkipUntil>0&&Fr.bool("CAN-SKIP-DATERANGES"),Te.partHoldBack=Fr.optionalFloat("PART-HOLD-BACK",0),Te.holdBack=Fr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var on=new V(Sa);Te.partTarget=on.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Be=Te.partList;Be||(Be=Te.partList=[]);var ie=Yt>0?Be[Be.length-1]:void 0,Oe=Yt++,et=new V(Sa);er(Te,et,["BYTERANGE","URI"]);var bt=new Pe(et,Qr,W,Oe,ie);Be.push(bt),Qr.duration+=bt.duration;break}case"PRELOAD-HINT":{var zt=new V(Sa);er(Te,zt,["URI"]),Te.preloadHint=zt;break}case"RENDITION-REPORT":{var qt=new V(Sa);er(Te,qt,["URI"]),Te.renditionReports=Te.renditionReports||[],Te.renditionReports.push(qt);break}default:j.warn("line parsed but not handled: ".concat(Cn));break}}}jr&&!jr.relurl?(ze.pop(),Tr-=jr.duration,Te.partList&&(Te.fragmentHint=jr)):Te.partList&&(at(Qr,jr),Qr.cc=wr,Te.fragmentHint=Qr,Zn&&lt(Qr,Zn,Te));var ar=ze.length,Kr=ze[0],cn=ze[ar-1];if(Tr+=Te.skippedSegments*Te.targetduration,Tr>0&&ar&&cn){Te.averagetargetduration=Tr/ar;var Hr=cn.sn;Te.endSN=Hr!=="initSegment"?Hr:0,Te.live||(cn.endList=!0),Kr&&(Te.startCC=Kr.cc)}else Te.endSN=0,Te.startCC=0;return Te.fragmentHint&&(Tr+=Te.fragmentHint.duration),Te.totalduration=Tr,Te.endCC=wr,Si>0&&Ye(ze,Si),Te}}]),Ae}();function Qi(Ae,q,N){var W,H,Z=new V(Ae);er(N,Z,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var re=(W=Z.METHOD)!=null?W:"",ve=Z.URI,Te=Z.hexadecimalInteger("IV"),ze=Z.KEYFORMATVERSIONS,st=(H=Z.KEYFORMAT)!=null?H:"identity";ve&&Z.IV&&!Te&&j.error("Invalid IV: ".concat(Z.IV));var mt=ve?Mi.resolve(ve,q):"",Yt=(ze||"1").split("/").map(Number).filter(Number.isFinite);return new ur(re,mt,st,Yt,Te)}function ot(Ae){var q=new V(Ae),N=q.decimalFloatingPoint("TIME-OFFSET");return T(N)?N:null}function Ne(Ae,q){["video","audio","text"].forEach(function(N){var W=Ae.filter(function(Z){return Mr(Z,N)});if(W.length){var H=W.filter(function(Z){return Z.lastIndexOf("avc1",0)===0||Z.lastIndexOf("mp4a",0)===0});q["".concat(N,"Codec")]=H.length>0?H[0]:W[0],Ae=Ae.filter(function(Z){return W.indexOf(Z)===-1})}}),q.unknownCodecs=Ae}function He(Ae,q,N){var W=q[N];W&&(Ae[N]=W)}function Ye(Ae,q){for(var N=Ae[q],W=q;W--;){var H=Ae[W];if(!H)return;H.programDateTime=N.programDateTime-H.duration*1e3,N=H}}function at(Ae,q){Ae.rawProgramDateTime?Ae.programDateTime=Date.parse(Ae.rawProgramDateTime):q!=null&&q.programDateTime&&(Ae.programDateTime=q.endProgramDateTime),T(Ae.programDateTime)||(Ae.programDateTime=null,Ae.rawProgramDateTime=null)}function qe(Ae,q,N,W){Ae.relurl=q.URI,q.BYTERANGE&&Ae.setByteRange(q.BYTERANGE),Ae.level=N,Ae.sn="initSegment",W&&(Ae.levelkeys=W),Ae.initSegment=null}function lt(Ae,q,N){Ae.levelkeys=q;var W=N.encryptedFragments;(!W.length||W[W.length-1].levelkeys!==q)&&Object.keys(q).some(function(H){return q[H].isCommonEncryption})&&W.push(Ae)}var Et={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},At={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function fr(Ae){var q=Ae.type;switch(q){case Et.AUDIO_TRACK:return At.AUDIO;case Et.SUBTITLE_TRACK:return At.SUBTITLE;default:return At.MAIN}}function Jr(Ae,q){var N=Ae.url;return(N===void 0||N.indexOf("data:")===0)&&(N=q.url),N}var Vr=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=q,this.registerListeners()}return Object(o.a)(Ae,[{key:"startLoad",value:function(N){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var N=this.hls;N.on(w.MANIFEST_LOADING,this.onManifestLoading,this),N.on(w.LEVEL_LOADING,this.onLevelLoading,this),N.on(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),N.on(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.LEVEL_LOADING,this.onLevelLoading,this),N.off(w.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),N.off(w.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(N){var W=this.hls.config,H=W.pLoader,Z=W.loader,re=H||Z,ve=new re(W);return this.loaders[N.type]=ve,ve}},{key:"getInternalLoader",value:function(N){return this.loaders[N.type]}},{key:"resetInternalLoader",value:function(N){this.loaders[N]&&delete this.loaders[N]}},{key:"destroyInternalLoaders",value:function(){for(var N in this.loaders){var W=this.loaders[N];W&&W.destroy(),this.resetInternalLoader(N)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(N,W){var H=W.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Et.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(N,W){var H=W.id,Z=W.level,re=W.url,ve=W.deliveryDirectives;this.load({id:H,level:Z,responseType:"text",type:Et.LEVEL,url:re,deliveryDirectives:ve})}},{key:"onAudioTrackLoading",value:function(N,W){var H=W.id,Z=W.groupId,re=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Et.AUDIO_TRACK,url:re,deliveryDirectives:ve})}},{key:"onSubtitleTrackLoading",value:function(N,W){var H=W.id,Z=W.groupId,re=W.url,ve=W.deliveryDirectives;this.load({id:H,groupId:Z,level:null,responseType:"text",type:Et.SUBTITLE_TRACK,url:re,deliveryDirectives:ve})}},{key:"load",value:function(N){var W=this,H,Z=this.hls.config,re=this.getInternalLoader(N);if(re){var ve=re.context;if(ve&&ve.url===N.url){j.trace("[playlist-loader]: playlist request ongoing");return}j.log("[playlist-loader]: aborting previous loader for type: ".concat(N.type)),re.abort()}var Te;if(N.type===Et.MANIFEST?Te=Z.manifestLoadPolicy.default:Te=E({},Z.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),re=this.createInternalLoader(N),(H=N.deliveryDirectives)!=null&&H.part){var ze;if(N.type===Et.LEVEL&&N.level!==null?ze=this.hls.levels[N.level].details:N.type===Et.AUDIO_TRACK&&N.id!==null?ze=this.hls.audioTracks[N.id].details:N.type===Et.SUBTITLE_TRACK&&N.id!==null&&(ze=this.hls.subtitleTracks[N.id].details),ze){var st=ze.partTarget,mt=ze.targetduration;if(st&&mt){var Yt=Math.max(st*3,mt*.8)*1e3;Te=E({},Te,{maxTimeToFirstByteMs:Math.min(Yt,Te.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Yt,Te.maxTimeToFirstByteMs)})}}}var Tr=Te.errorRetry||Te.timeoutRetry||{},wr={loadPolicy:Te,timeout:Te.maxLoadTimeMs,maxRetry:Tr.maxNumRetry||0,retryDelay:Tr.retryDelayMs||0,maxRetryDelay:Tr.maxRetryDelayMs||0},jr={onSuccess:function(Cn,Dn,Zn,Si){var ua=W.getInternalLoader(Zn);W.resetInternalLoader(Zn.type);var Vi=Cn.data;if(Vi.indexOf("#EXTM3U")!==0){W.handleManifestParsingError(Cn,Zn,new Error("no EXTM3U delimiter"),Si||null,Dn);return}Dn.parsing.start=performance.now(),Mi.isMediaPlaylist(Vi)?W.handleTrackOrLevelPlaylist(Cn,Dn,Zn,Si||null,ua):W.handleMasterPlaylist(Cn,Dn,Zn,Si)},onError:function(Cn,Dn,Zn,Si){W.handleNetworkError(Dn,Zn,!1,Cn,Si)},onTimeout:function(Cn,Dn,Zn){W.handleNetworkError(Dn,Zn,!0,void 0,Cn)}};re.load(N,wr,jr)}},{key:"handleMasterPlaylist",value:function(N,W,H,Z){var re=this.hls,ve=N.data,Te=Jr(N,H),ze=Mi.parseMasterPlaylist(ve,Te);if(ze.playlistParsingError){this.handleManifestParsingError(N,H,ze.playlistParsingError,Z,W);return}var st=ze.contentSteering,mt=ze.levels,Yt=ze.sessionData,Tr=ze.sessionKeys,wr=ze.startTimeOffset,jr=ze.variableList;this.variableList=jr;var Qr=Mi.parseMasterPlaylistMedia(ve,Te,ze),Cn=Qr.AUDIO,Dn=Cn===void 0?[]:Cn,Zn=Qr.SUBTITLES,Si=Qr["CLOSED-CAPTIONS"];if(Dn.length){var ua=Dn.some(function(Vi){return!Vi.url});!ua&&mt[0].audioCodec&&!mt[0].attrs.AUDIO&&(j.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Dn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new V({}),bitrate:0,url:""}))}re.trigger(w.MANIFEST_LOADED,{levels:mt,audioTracks:Dn,subtitles:Zn,captions:Si,contentSteering:st,url:Te,stats:W,networkDetails:Z,sessionData:Yt,sessionKeys:Tr,startTimeOffset:wr,variableList:jr})}},{key:"handleTrackOrLevelPlaylist",value:function(N,W,H,Z,re){var ve=this.hls,Te=H.id,ze=H.level,st=H.type,mt=Jr(N,H),Yt=T(Te)?Te:0,Tr=T(ze)?ze:Yt,wr=fr(H),jr=Mi.parseLevelPlaylist(N.data,mt,Tr,wr,Yt,this.variableList);if(st===Et.MANIFEST){var Qr={attrs:new V({}),bitrate:0,details:jr,name:"",url:mt};ve.trigger(w.MANIFEST_LOADED,{levels:[Qr],audioTracks:[],url:mt,stats:W,networkDetails:Z,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}W.parsing.end=performance.now(),H.levelDetails=jr,this.handlePlaylistLoaded(jr,N,W,H,Z,re)}},{key:"handleManifestParsingError",value:function(N,W,H,Z,re){this.hls.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.MANIFEST_PARSING_ERROR,fatal:W.type===Et.MANIFEST,url:N.url,err:H,error:H,reason:H.message,response:N,context:W,networkDetails:Z,stats:re})}},{key:"handleNetworkError",value:function(N,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3?arguments[3]:void 0,re=arguments.length>4?arguments[4]:void 0,ve="A network ".concat(H?"timeout":"error"+(Z?" (status "+Z.code+")":"")," occurred while loading ").concat(N.type);N.type===Et.LEVEL?ve+=": ".concat(N.level," id: ").concat(N.id):(N.type===Et.AUDIO_TRACK||N.type===Et.SUBTITLE_TRACK)&&(ve+=" id: ".concat(N.id,' group-id: "').concat(N.groupId,'"'));var Te=new Error(ve);j.warn("[playlist-loader]: ".concat(ve));var ze=I.UNKNOWN,st=!1,mt=this.getInternalLoader(N);switch(N.type){case Et.MANIFEST:ze=H?I.MANIFEST_LOAD_TIMEOUT:I.MANIFEST_LOAD_ERROR,st=!0;break;case Et.LEVEL:ze=H?I.LEVEL_LOAD_TIMEOUT:I.LEVEL_LOAD_ERROR,st=!1;break;case Et.AUDIO_TRACK:ze=H?I.AUDIO_TRACK_LOAD_TIMEOUT:I.AUDIO_TRACK_LOAD_ERROR,st=!1;break;case Et.SUBTITLE_TRACK:ze=H?I.SUBTITLE_TRACK_LOAD_TIMEOUT:I.SUBTITLE_LOAD_ERROR,st=!1;break}mt&&this.resetInternalLoader(N.type);var Yt={type:O.NETWORK_ERROR,details:ze,fatal:st,url:N.url,loader:mt,context:N,error:Te,networkDetails:W,stats:re};if(Z){var Tr=(W==null?void 0:W.url)||N.url;Yt.response=b({url:Tr,data:void 0},Z)}this.hls.trigger(w.ERROR,Yt)}},{key:"handlePlaylistLoaded",value:function(N,W,H,Z,re,ve){var Te=this.hls,ze=Z.type,st=Z.level,mt=Z.id,Yt=Z.groupId,Tr=Z.deliveryDirectives,wr=Jr(W,Z),jr=fr(Z),Qr=typeof Z.level=="number"&&jr===At.MAIN?st:void 0;if(!N.fragments.length){var Cn=new Error("No Segments found in Playlist");Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_EMPTY_ERROR,fatal:!1,url:wr,error:Cn,reason:Cn.message,response:W,context:Z,level:Qr,parent:jr,networkDetails:re,stats:H});return}N.targetduration||(N.playlistParsingError=new Error("Missing Target Duration"));var Dn=N.playlistParsingError;if(Dn){Te.trigger(w.ERROR,{type:O.NETWORK_ERROR,details:I.LEVEL_PARSING_ERROR,fatal:!1,url:wr,error:Dn,reason:Dn.message,response:W,context:Z,level:Qr,parent:jr,networkDetails:re,stats:H});return}N.live&&ve&&(ve.getCacheAge&&(N.ageHeader=ve.getCacheAge()||0),(!ve.getCacheAge||isNaN(N.ageHeader))&&(N.ageHeader=0));switch(ze){case Et.MANIFEST:case Et.LEVEL:Te.trigger(w.LEVEL_LOADED,{details:N,level:Qr||0,id:mt||0,stats:H,networkDetails:re,deliveryDirectives:Tr});break;case Et.AUDIO_TRACK:Te.trigger(w.AUDIO_TRACK_LOADED,{details:N,id:mt||0,groupId:Yt||"",stats:H,networkDetails:re,deliveryDirectives:Tr});break;case Et.SUBTITLE_TRACK:Te.trigger(w.SUBTITLE_TRACK_LOADED,{details:N,id:mt||0,groupId:Yt||"",stats:H,networkDetails:re,deliveryDirectives:Tr});break}}}]),Ae}();function dn(Ae,q){var N;try{N=new Event("addtrack")}catch(W){N=document.createEvent("Event"),N.initEvent("addtrack",!1,!1)}N.track=Ae,q.dispatchEvent(N)}function gr(Ae,q){var N=Ae.mode;if(N==="disabled"&&(Ae.mode="hidden"),Ae.cues&&!Ae.cues.getCueById(q.id))try{if(Ae.addCue(q),!Ae.cues.getCueById(q.id))throw new Error("addCue is failed for: ".concat(q))}catch(H){j.debug("[texttrack-utils]: ".concat(H));try{var W=new self.TextTrackCue(q.startTime,q.endTime,q.text);W.id=q.id,Ae.addCue(W)}catch(Z){j.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(Z))}}N==="disabled"&&(Ae.mode=N)}function Wn(Ae){var q=Ae.mode;if(q==="disabled"&&(Ae.mode="hidden"),Ae.cues)for(var N=Ae.cues.length;N--;)Ae.removeCue(Ae.cues[N]);q==="disabled"&&(Ae.mode=q)}function kr(Ae,q,N,W){var H=Ae.mode;if(H==="disabled"&&(Ae.mode="hidden"),Ae.cues&&Ae.cues.length>0)for(var Z=vn(Ae.cues,q,N),re=0;re<Z.length;re++)(!W||W(Z[re]))&&Ae.removeCue(Z[re]);H==="disabled"&&(Ae.mode=H)}function Fn(Ae,q){if(q<Ae[0].startTime)return 0;var N=Ae.length-1;if(q>Ae[N].endTime)return-1;for(var W=0,H=N;W<=H;){var Z=Math.floor((H+W)/2);if(q<Ae[Z].startTime)H=Z-1;else if(q>Ae[Z].startTime&&W<N)W=Z+1;else return Z}return Ae[W].startTime-q<q-Ae[H].startTime?W:H}function vn(Ae,q,N){var W=[],H=Fn(Ae,q);if(H>-1)for(var Z=H,re=Ae.length;Z<re;Z++){var ve=Ae[Z];if(ve.startTime>=q&&ve.endTime<=N)W.push(ve);else if(ve.startTime>N)return W}return W}var $r={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},ei=.25;function fi(){return typeof self=="undefined"?void 0:self.WebKitDataCue||self.VTTCue||self.TextTrackCue}var Pi=function(){var Ae=fi();try{new Ae(0,Number.POSITIVE_INFINITY,"")}catch(q){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function Zr(Ae,q){return Ae.getTime()/1e3-q}function Sn(Ae){return Uint8Array.from(Ae.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Gn=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=q,this._registerListeners()}return Object(o.a)(Ae,[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var N=this.hls;N.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),N.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),N.on(w.MANIFEST_LOADING,this.onManifestLoading,this),N.on(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),N.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),N.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var N=this.hls;N.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),N.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),N.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),N.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(N,W){this.media=W.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Wn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(N){var W=this.getID3Track(N.textTracks);return W.mode="hidden",W}},{key:"getID3Track",value:function(N){if(!this.media)return;for(var W=0;W<N.length;W++){var H=N[W];if(H.kind==="metadata"&&H.label==="id3")return dn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(N,W){if(!this.media)return;var H=this.hls.config,Z=H.enableEmsgMetadataCues,re=H.enableID3MetadataCues;if(!Z&&!re)return;var ve=W.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var Te=fi(),ze=0;ze<ve.length;ze++){var st=ve[ze].type;if(st===$r.emsg&&!Z||!re)continue;var mt=Vt(ve[ze].data);if(mt){var Yt=ve[ze].pts,Tr=Yt+ve[ze].duration;Tr>Pi&&(Tr=Pi);var wr=Tr-Yt;wr<=0&&(Tr=Yt+ei);for(var jr=0;jr<mt.length;jr++){var Qr=mt[jr];if(!Ht(Qr)){this.updateId3CueEnds(Yt,st);var Cn=new Te(Yt,Tr,"");Cn.value=Qr,st&&(Cn.type=st),this.id3Track.addCue(Cn)}}}}}},{key:"updateId3CueEnds",value:function(N,W){var H,Z=(H=this.id3Track)==null?void 0:H.cues;if(Z)for(var re=Z.length;re--;){var ve=Z[re];ve.type===W&&ve.startTime<N&&ve.endTime===Pi&&(ve.endTime=N)}}},{key:"onBufferFlushing",value:function(N,W){var H=W.startOffset,Z=W.endOffset,re=W.type,ve=this.id3Track,Te=this.hls;if(!Te)return;var ze=Te.config,st=ze.enableEmsgMetadataCues,mt=ze.enableID3MetadataCues;if(ve&&(st||mt)){var Yt;re==="audio"?Yt=function(wr){return wr.type===$r.audioId3&&mt}:re==="video"?Yt=function(wr){return wr.type===$r.emsg&&st}:Yt=function(wr){return wr.type===$r.audioId3&&mt||wr.type===$r.emsg&&st},kr(ve,H,Z,Yt)}}},{key:"onLevelUpdated",value:function(N,W){var H=this,Z=W.details;if(!this.media||!Z.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var re=this.dateRangeCuesAppended,ve=this.id3Track,Te=Z.dateRanges,ze=Object.keys(Te);if(ve)for(var st=Object.keys(re).filter(function(Dn){return!ze.includes(Dn)}),mt=function(){var Zn=st[Yt];Object.keys(re[Zn].cues).forEach(function(Si){ve.removeCue(re[Zn].cues[Si])}),delete re[Zn]},Yt=st.length;Yt--;)mt();var Tr=Z.fragments[Z.fragments.length-1];if(ze.length===0||!T(Tr==null?void 0:Tr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var wr=Tr.programDateTime/1e3-Tr.start,jr=fi(),Qr=function(){var Zn=ze[Cn],Si=Te[Zn],ua=re[Zn],Vi=(ua==null?void 0:ua.cues)||{},Zi=(ua==null?void 0:ua.durationKnown)||!1,ka=Zr(Si.startDate,wr),Ga=Pi,Ba=Si.endDate;if(Ba)Ga=Zr(Ba,wr),Zi=!0;else if(Si.endOnNext&&!Zi){var Sa=ze.reduce(function(ws,Hs){var Ee=Te[Hs];return Ee.class===Si.class&&Ee.id!==Hs&&Ee.startDate>Si.startDate&&ws.push(Ee),ws},[]).sort(function(ws,Hs){return ws.startDate.getTime()-Hs.startDate.getTime()})[0];Sa&&(Ga=Zr(Sa.startDate,wr),Zi=!0)}for(var Go=Object.keys(Si.attr),bs=0;bs<Go.length;bs++){var ys=Go[bs];if(!Q(ys))continue;var Cs=Vi[ys];if(Cs)Zi&&!ua.durationKnown&&(Cs.endTime=Ga);else{var js=Si.attr[ys];Cs=new jr(ka,Ga,""),G(ys)&&(js=Sn(js)),Cs.value={key:ys,data:js},Cs.type=$r.dateRange,Cs.id=Zn,H.id3Track.addCue(Cs),Vi[ys]=Cs}}re[Zn]={cues:Vi,dateRange:Si,durationKnown:Zi}},Cn=0;Cn<ze.length;Cn++)Qr()}}]),Ae}(),Wt=function(){function Ae(q){var N=this;Object(n.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return N.timeupdate()},this.hls=q,this.config=q.config,this.registerListeners()}return Object(o.a)(Ae,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var N=this.config,W=this.levelDetails;return N.liveMaxLatencyDuration!==void 0?N.liveMaxLatencyDuration:W?N.liveMaxLatencyDurationCount*W.targetduration:0}},{key:"targetLatency",get:function(){var N=this.levelDetails;if(N===null)return null;var W=N.holdBack,H=N.partHoldBack,Z=N.targetduration,re=this.config,ve=re.liveSyncDuration,Te=re.liveSyncDurationCount,ze=re.lowLatencyMode,st=this.hls.userConfig,mt=ze&&H||W;(st.liveSyncDuration||st.liveSyncDurationCount||mt===0)&&(mt=ve!==void 0?ve:Te*Z);var Yt=Z,Tr=1;return mt+Math.min(this.stallCount*Tr,Yt)}},{key:"liveSyncPosition",get:function(){var N=this.estimateLiveEdge(),W=this.targetLatency,H=this.levelDetails;if(N===null||W===null||H===null)return null;var Z=H.edge,re=N-W-this.edgeStalled,ve=Z-H.totalduration,Te=Z-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(ve,re),Te)}},{key:"drift",get:function(){var N=this.levelDetails;return N===null?1:N.drift}},{key:"edgeStalled",get:function(){var N=this.levelDetails;if(N===null)return 0;var W=(this.config.lowLatencyMode&&N.partTarget||N.targetduration)*3;return Math.max(N.age-W,0)}},{key:"forwardBufferLength",get:function(){var N=this.media,W=this.levelDetails;if(!N||!W)return 0;var H=N.buffered.length;return(H?N.buffered.end(H-1):W.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(N,W){this.media=W.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(N,W){var H=W.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(N,W){var H;if(W.details!==I.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&j.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var N=this.media,W=this.levelDetails;if(!N||!W)return;this.currentTime=N.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var Z=this.config,re=Z.lowLatencyMode,ve=Z.maxLiveSyncPlaybackRate;if(!re||ve===1)return;var Te=this.targetLatency;if(Te===null)return;var ze=H-Te,st=Math.min(this.maxLatency,Te+W.targetduration),mt=ze<st;if(W.live&&mt&&ze>.05&&this.forwardBufferLength>1){var Yt=Math.min(2,Math.max(1,ve)),Tr=Math.round(2/(1+Math.exp(-.75*ze-this.edgeStalled))*20)/20;N.playbackRate=Math.min(Yt,Math.max(1,Tr))}else N.playbackRate!==1&&N.playbackRate!==0&&(N.playbackRate=1)}},{key:"estimateLiveEdge",value:function(){var N=this.levelDetails;return N===null?null:N.edge+N.age}},{key:"computeLatency",value:function(){var N=this.estimateLiveEdge();return N===null?null:N-this.currentTime}}]),Ae}(),Ot=["NONE","TYPE-0","TYPE-1",null],Rt={No:"",Yes:"YES",v2:"v2"};function Ut(Ae,q){var N=Ae.canSkipUntil,W=Ae.canSkipDateRanges,H=Ae.endSN,Z=q!==void 0?q-H:0;return N&&Z<N?W?Rt.v2:Rt.Yes:Rt.No}var Kt=function(){function Ae(q,N,W){Object(n.a)(this,Ae),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=q,this.part=N,this.skip=W}return Object(o.a)(Ae,[{key:"addDirectives",value:function(N){var W=new self.URL(N);return this.msn!==void 0&&W.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&W.searchParams.set("_HLS_part",this.part.toString()),this.skip&&W.searchParams.set("_HLS_skip",this.skip),W.href}}]),Ae}(),Lt=function(){function Ae(q){Object(n.a)(this,Ae),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[q.url],this._attrs=[q.attrs],this.bitrate=q.bitrate,q.details&&(this.details=q.details),this.id=q.id||0,this.name=q.name,this.width=q.width||0,this.height=q.height||0,this.audioCodec=q.audioCodec,this.videoCodec=q.videoCodec,this.unknownCodecs=q.unknownCodecs,this.codecSet=[q.videoCodec,q.audioCodec].filter(function(N){return N}).join(",").replace(/\.[^.,]+/g,"")}return Object(o.a)(Ae,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"attrs",get:function(){return this._attrs[this._urlId]}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(N){var W=N%this.url.length;this._urlId!==W&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=W)}},{key:"audioGroupId",get:function(){var N;return(N=this.audioGroupIds)==null?void 0:N[this.urlId]}},{key:"textGroupId",get:function(){var N;return(N=this.textGroupIds)==null?void 0:N[this.urlId]}},{key:"addFallback",value:function(N){this.url.push(N.url),this._attrs.push(N.attrs)}}]),Ae}();function cr(Ae,q){var N=q.startPTS;if(T(N)){var W=0,H;q.sn>Ae.sn?(W=N-Ae.start,H=Ae):(W=Ae.start-N,H=q),H.duration!==W&&(H.duration=W)}else if(q.sn>Ae.sn){var Z=Ae.cc===q.cc;Z&&Ae.minEndPTS?q.start=Ae.start+(Ae.minEndPTS-Ae.start):q.start=Ae.start+Ae.duration}else q.start=Math.max(Ae.start-q.duration,0)}function vr(Ae,q,N,W,H,Z){var re=W-N;re<=0&&(j.warn("Fragment should have a positive duration",q),W=N+q.duration,Z=H+q.duration);var ve=N,Te=W,ze=q.startPTS,st=q.endPTS;if(T(ze)){var mt=Math.abs(ze-N);T(q.deltaPTS)?q.deltaPTS=Math.max(mt,q.deltaPTS):q.deltaPTS=mt,ve=Math.max(N,ze),N=Math.min(N,ze),H=Math.min(H,q.startDTS),Te=Math.min(W,st),W=Math.max(W,st),Z=Math.max(Z,q.endDTS)}var Yt=N-q.start;q.start!==0&&(q.start=N),q.duration=W-q.start,q.startPTS=N,q.maxStartPTS=ve,q.startDTS=H,q.endPTS=W,q.minEndPTS=Te,q.endDTS=Z;var Tr=q.sn;if(!Ae||Tr<Ae.startSN||Tr>Ae.endSN)return 0;var wr,jr=Tr-Ae.startSN,Qr=Ae.fragments;for(Qr[jr]=q,wr=jr;wr>0;wr--)cr(Qr[wr],Qr[wr-1]);for(wr=jr;wr<Qr.length-1;wr++)cr(Qr[wr],Qr[wr+1]);return Ae.fragmentHint&&cr(Qr[Qr.length-1],Ae.fragmentHint),Ae.PTSKnown=Ae.alignedSliding=!0,Yt}function yr(Ae,q){for(var N=null,W=Ae.fragments,H=W.length-1;H>=0;H--){var Z=W[H].initSegment;if(Z){N=Z;break}}Ae.fragmentHint&&delete Ae.fragmentHint.endPTS;var re=0,ve;if(kn(Ae,q,function(wr,jr){wr.relurl&&(re=wr.cc-jr.cc),T(wr.startPTS)&&T(wr.endPTS)&&(jr.start=jr.startPTS=wr.startPTS,jr.startDTS=wr.startDTS,jr.maxStartPTS=wr.maxStartPTS,jr.endPTS=wr.endPTS,jr.endDTS=wr.endDTS,jr.minEndPTS=wr.minEndPTS,jr.duration=wr.endPTS-wr.startPTS,jr.duration&&(ve=jr),q.PTSKnown=q.alignedSliding=!0),jr.elementaryStreams=wr.elementaryStreams,jr.loader=wr.loader,jr.stats=wr.stats,jr.urlId=wr.urlId,wr.initSegment&&(jr.initSegment=wr.initSegment,N=wr.initSegment)}),N){var Te=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments;Te.forEach(function(wr){var jr;(!wr.initSegment||wr.initSegment.relurl===((jr=N)==null?void 0:jr.relurl))&&(wr.initSegment=N)})}if(q.skippedSegments)if(q.deltaUpdateFailed=q.fragments.some(function(wr){return!wr}),q.deltaUpdateFailed){j.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var ze=q.skippedSegments;ze--;)q.fragments.shift();q.startSN=q.fragments[0].sn,q.startCC=q.fragments[0].cc}else q.canSkipDateRanges&&(q.dateRanges=Rr(Ae.dateRanges,q.dateRanges,q.recentlyRemovedDateranges));var st=q.fragments;if(re){j.warn("discontinuity sliding from playlist, take drift into account");for(var mt=0;mt<st.length;mt++)st[mt].cc+=re}q.skippedSegments&&(q.startCC=q.fragments[0].cc),Vn(Ae.partList,q.partList,function(wr,jr){jr.elementaryStreams=wr.elementaryStreams,jr.stats=wr.stats}),ve?vr(q,ve,ve.startPTS,ve.endPTS,ve.startDTS,ve.endDTS):di(Ae,q),st.length&&(q.totalduration=q.edge-st[0].start),q.driftStartTime=Ae.driftStartTime,q.driftStart=Ae.driftStart;var Yt=q.advancedDateTime;if(q.advanced&&Yt){var Tr=q.edge;q.driftStart||(q.driftStartTime=Yt,q.driftStart=Tr),q.driftEndTime=Yt,q.driftEnd=Tr}else q.driftEndTime=Ae.driftEndTime,q.driftEnd=Ae.driftEnd,q.advancedDateTime=Ae.advancedDateTime}function Rr(Ae,q,N){var W=E({},Ae);return N&&N.forEach(function(H){delete W[H]}),Object.keys(q).forEach(function(H){var Z=new ee(q[H].attr,W[H]);Z.isValid?W[H]=Z:j.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(q[H].attr),'"'))}),W}function Vn(Ae,q,N){if(Ae&&q)for(var W=0,H=0,Z=Ae.length;H<=Z;H++){var re=Ae[H],ve=q[H+W];re&&ve&&re.index===ve.index&&re.fragment.sn===ve.fragment.sn?N(re,ve):W--}}function kn(Ae,q,N){for(var W=q.skippedSegments,H=Math.max(Ae.startSN,q.startSN)-q.startSN,Z=(Ae.fragmentHint?1:0)+(W?q.endSN:Math.min(Ae.endSN,q.endSN))-q.startSN,re=q.startSN-Ae.startSN,ve=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments,Te=Ae.fragmentHint?Ae.fragments.concat(Ae.fragmentHint):Ae.fragments,ze=H;ze<=Z;ze++){var st=Te[re+ze],mt=ve[ze];W&&!mt&&ze<W&&(mt=q.fragments[ze]=st),st&&mt&&N(st,mt)}}function di(Ae,q){var N=q.startSN+q.skippedSegments-Ae.startSN,W=Ae.fragments;if(N<0||N>=W.length)return;pn(q,W[N].start)}function pn(Ae,q){if(q){for(var N=Ae.fragments,W=Ae.skippedSegments;W<N.length;W++)N[W].start+=q;Ae.fragmentHint&&(Ae.fragmentHint.start+=q)}}function Br(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,N=1e3*Ae.targetduration;if(Ae.updated){var W=Ae.fragments,H=4;if(W.length&&N*H>q){var Z=W[W.length-1].duration*1e3;Z<N&&(N=Z)}}else N/=2;return Math.round(N)}function _n(Ae,q,N){if(!(Ae!=null&&Ae.details))return null;var W=Ae.details,H=W.fragments[q-W.startSN];return H||(H=W.fragmentHint,H&&H.sn===q?H:q<W.startSN&&N&&N.sn===q?N:null)}function Xn(Ae,q,N){var W;return Ae!=null&&Ae.details?$n((W=Ae.details)==null?void 0:W.partList,q,N):null}function $n(Ae,q,N){if(Ae)for(var W=Ae.length;W--;){var H=Ae[W];if(H.index===N&&H.fragment.sn===q)return H}return null}function oi(Ae){switch(Ae.details){case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_TIMEOUT:case I.LEVEL_LOAD_TIMEOUT:case I.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ti(Ae,q){var N=oi(q);return Ae.default["".concat(N?"timeout":"error","Retry")]}function Ri(Ae,q){var N=Ae.backoff==="linear"?1:Math.pow(2,q);return Math.min(N*Ae.retryDelayMs,Ae.maxRetryDelayMs)}function Di(Ae){return b(b({},Ae),{errorRetry:null,timeoutRetry:null})}function oa(Ae,q,N,W){return!!Ae&&q<Ae.maxNumRetry&&(ma(W)||!!N)}function ma(Ae){return Ae===0&&navigator.onLine===!1||!!Ae&&(Ae<400||Ae>499)}var aa={search:function(q,N){for(var W=0,H=q.length-1,Z=null,re=null;W<=H;){Z=(W+H)/2|0,re=q[Z];var ve=N(re);if(ve>0)W=Z+1;else if(ve<0)H=Z-1;else return re}return null}};function ba(Ae,q,N){if(q===null||!Array.isArray(Ae)||!Ae.length||!T(q))return null;var W=Ae[0].programDateTime;if(q<(W||0))return null;var H=Ae[Ae.length-1].endProgramDateTime;if(q>=(H||0))return null;N=N||0;for(var Z=0;Z<Ae.length;++Z){var re=Ae[Z];if(ji(q,N,re))return re}return null}function bi(Ae,q){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(Ae?H=q[Ae.sn-q[0].sn+1]||null:N===0&&q[0].start===0&&(H=q[0]),H&&Rn(N,W,H)===0)return H;var Z=aa.search(q,Rn.bind(null,N,W));return Z&&(Z!==Ae||!H)?Z:H}function Rn(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=arguments.length>2?arguments[2]:void 0;if(N.start<=Ae&&N.start+N.duration>Ae)return 0;var W=Math.min(q,N.duration+(N.deltaPTS?N.deltaPTS:0));return N.start+N.duration-W<=Ae?1:N.start-W>Ae&&N.start?-1:0}function ji(Ae,q,N){var W=Math.min(q,N.duration+(N.deltaPTS?N.deltaPTS:0))*1e3,H=N.endProgramDateTime||0;return H-W>Ae}function ha(Ae,q){return aa.search(Ae,function(N){return N.cc<q?1:N.cc>q?-1:0})}var ta=3e5,ra={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ir={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},Sr=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=q,this.log=j.log.bind(j,"[info]:"),this.warn=j.warn.bind(j,"[warning]:"),this.error=j.error.bind(j,"[error]:"),this.registerListeners()}return Object(o.a)(Ae,[{key:"registerListeners",value:function(){var N=this.hls;N.on(w.ERROR,this.onError,this),N.on(w.MANIFEST_LOADING,this.onManifestLoading,this),N.on(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;if(!N)return;N.off(w.ERROR,this.onError,this),N.off(w.ERROR,this.onErrorOut,this),N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(N){this.playlistError=0}},{key:"stopLoad",value:function(){}},{key:"getVariantLevelIndex",value:function(N){return(N==null?void 0:N.type)===At.MAIN?N.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(N,W){var H,Z;if(W.fatal)return;var re=this.hls,ve=W.context;switch(W.details){case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:W.errorAction=this.getFragRetryOrSwitchAction(W);return;case I.FRAG_PARSING_ERROR:if((H=W.frag)!=null&&H.gap){W.errorAction={action:ra.DoNothing,flags:Ir.None};return}case I.FRAG_GAP:case I.FRAG_DECRYPT_ERROR:{W.errorAction=this.getFragRetryOrSwitchAction(W),W.errorAction.action=ra.SendAlternateToPenaltyBox;return}case I.LEVEL_EMPTY_ERROR:case I.LEVEL_PARSING_ERROR:{var Te,ze,st=W.parent===At.MAIN?W.level:re.loadLevel;W.details===I.LEVEL_EMPTY_ERROR&&!!((Te=W.context)!=null&&(ze=Te.levelDetails)!=null&&ze.live)?W.errorAction=this.getPlaylistRetryOrSwitchAction(W,st):(W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,st))}return;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:typeof(ve==null?void 0:ve.level)=="number"&&(W.errorAction=this.getPlaylistRetryOrSwitchAction(W,ve.level));return;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.SUBTITLE_LOAD_ERROR:case I.SUBTITLE_TRACK_LOAD_TIMEOUT:if(ve){var mt=re.levels[re.loadLevel];if(mt&&(ve.type===Et.AUDIO_TRACK&&ve.groupId===mt.audioGroupId||ve.type===Et.SUBTITLE_TRACK&&ve.groupId===mt.textGroupId)){W.errorAction=this.getPlaylistRetryOrSwitchAction(W,re.loadLevel),W.errorAction.action=ra.SendAlternateToPenaltyBox,W.errorAction.flags=Ir.MoveAllAlternatesMatchingHost;return}}return;case I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Yt=re.levels[re.loadLevel],Tr=Yt==null?void 0:Yt.attrs["HDCP-LEVEL"];Tr&&(W.errorAction={action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHDCP,hdcpLevel:Tr})}return;case I.BUFFER_ADD_CODEC_ERROR:case I.REMUX_ALLOC_ERROR:W.errorAction=this.getLevelSwitchAction(W,(Z=W.level)!=null?Z:re.loadLevel);return;case I.INTERNAL_EXCEPTION:case I.BUFFER_APPENDING_ERROR:case I.BUFFER_APPEND_ERROR:case I.BUFFER_FULL_ERROR:case I.LEVEL_SWITCH_ERROR:case I.BUFFER_STALLED_ERROR:case I.BUFFER_SEEK_OVER_HOLE:case I.BUFFER_NUDGE_ON_STALL:W.errorAction={action:ra.DoNothing,flags:Ir.None};return}if(W.type===O.KEY_SYSTEM_ERROR){var wr=this.getVariantLevelIndex(W.frag);W.levelRetry=!1,W.errorAction=this.getLevelSwitchAction(W,wr);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(N,W){var H,Z=this.hls,re=Ti(Z.config.playlistLoadPolicy,N),ve=this.playlistError++,Te=(H=N.response)==null?void 0:H.code,ze=oa(re,ve,oi(N),Te);if(ze)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:re,retryCount:ve};var st=this.getLevelSwitchAction(N,W);return re&&(st.retryConfig=re,st.retryCount=ve),st}},{key:"getFragRetryOrSwitchAction",value:function(N){var W=this.hls,H=this.getVariantLevelIndex(N.frag),Z=W.levels[H],re=W.config,ve=re.fragLoadPolicy,Te=re.keyLoadPolicy,ze=Ti(N.details.startsWith("key")?Te:ve,N),st=W.levels.reduce(function(jr,Qr){return jr+Qr.fragmentError},0);if(Z){var mt;N.details!==I.FRAG_GAP&&Z.fragmentError++;var Yt=(mt=N.response)==null?void 0:mt.code,Tr=oa(ze,st,oi(N),Yt);if(Tr)return{action:ra.RetryRequest,flags:Ir.None,retryConfig:ze,retryCount:st}}var wr=this.getLevelSwitchAction(N,H);return ze&&(wr.retryConfig=ze,wr.retryCount=st),wr}},{key:"getLevelSwitchAction",value:function(N,W){var H=this.hls;W==null&&(W=H.loadLevel);var Z=this.hls.levels[W];if(Z&&(Z.loadError++,H.autoLevelEnabled)){for(var re,ve,Te=-1,ze=H.levels,st=H.loadLevel,mt=H.minAutoLevel,Yt=H.maxAutoLevel,Tr=(re=N.frag)==null?void 0:re.type,wr=(ve=N.context)!=null?ve:{},jr=wr.type,Qr=wr.groupId,Cn=ze.length;Cn--;){var Dn=(Cn+st)%ze.length;if(Dn!==st&&Dn>=mt&&Dn<=Yt&&ze[Dn].loadError===0){var Zn=ze[Dn];if(N.details===I.FRAG_GAP&&N.frag){var Si=ze[Dn].details;if(Si){var ua=bi(N.frag,Si.fragments,N.frag.start);if(ua!=null&&ua.gap)continue}}else{if(jr===Et.AUDIO_TRACK&&Qr===Zn.audioGroupId||jr===Et.SUBTITLE_TRACK&&Qr===Zn.textGroupId)continue;if(Tr===At.AUDIO&&Z.audioGroupId===Zn.audioGroupId||Tr===At.SUBTITLE&&Z.textGroupId===Zn.textGroupId)continue}Te=Dn;break}}if(Te>-1&&H.loadLevel!==Te)return N.levelRetry=!0,this.playlistError=0,{action:ra.SendAlternateToPenaltyBox,flags:Ir.None,nextAutoLevel:Te}}return{action:ra.SendAlternateToPenaltyBox,flags:Ir.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(N,W){var H;switch((H=W.errorAction)==null?void 0:H.action){case ra.DoNothing:break;case ra.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(W),!W.errorAction.resolved&&W.details!==I.FRAG_GAP&&(W.fatal=!0);break}if(W.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(N){var W=this.hls,H=N.errorAction;if(!H)return;var Z=H.flags,re=H.hdcpLevel,ve=H.nextAutoLevel;switch(Z){case Ir.None:this.switchLevel(N,ve);break;case Ir.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(N));break;case Ir.MoveAllAlternatesMatchingHDCP:re&&(W.maxHdcpLevel=Ot[Ot.indexOf(re)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(W.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(N,ve)}},{key:"switchLevel",value:function(N,W){W!==void 0&&N.errorAction&&(this.warn("switching to level ".concat(W," after ").concat(N.details)),this.hls.nextAutoLevel=W,N.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(N){var W=this,H=this.hls,Z=this.penalizedRenditions,re=N.parent===At.MAIN?N.level:H.loadLevel,ve=H.levels[re],Te=ve.url.length,ze=N.frag?N.frag.urlId:ve.urlId;ve.urlId===ze&&(!N.frag||ve.details)&&this.penalizeRendition(ve,N);for(var st=function(){var wr=(ze+Yt)%Te,jr=Z[wr];if(!jr||Tn(jr,N,Z[ze]))return W.warn("Switching to Redundant Stream ".concat(wr+1,"/").concat(Te,': "').concat(ve.url[wr],'" after ').concat(N.details)),W.playlistError=0,H.levels.forEach(function(Qr){Qr.urlId=wr}),H.nextLoadLevel=re,{v:!0}},mt,Yt=1;Yt<Te;Yt++)if(mt=st(),mt)return mt.v;return!1}},{key:"penalizeRendition",value:function(N,W){var H=this.penalizedRenditions,Z=H[N.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};Z.lastErrorPerfMs=performance.now(),Z.errors.push(W),Z.details=N.details,H[N.urlId]=Z}}]),Ae}();function Tn(Ae,q,N){if(performance.now()-Ae.lastErrorPerfMs>ta)return!0;var W=Ae.details;if(q.details===I.FRAG_GAP&&W&&q.frag){var H=q.frag.start,Z=bi(null,W.fragments,H);if(Z&&!Z.gap)return!0}if(N&&Ae.errors.length<N.errors.length){var re=Ae.errors[Ae.errors.length-1];if(W&&re.frag&&q.frag&&Math.abs(re.frag.start-q.frag.start)>W.targetduration*3)return!0}return!1}var pr=function(){function Ae(q,N){Object(n.a)(this,Ae),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=j.log.bind(j,"".concat(N,":")),this.warn=j.warn.bind(j,"".concat(N,":")),this.hls=q}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){clearTimeout(this.timer),this.timer=-1}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(N,W){var H=W==null?void 0:W.renditionReports;if(H){for(var Z=-1,re=0;re<H.length;re++){var ve=H[re],Te=void 0;try{Te=new self.URL(ve.URI,W.url).href}catch(Tr){j.warn("Could not construct new URL for Rendition Report: ".concat(Tr)),Te=ve.URI||""}if(Te===N){Z=re;break}else Te===N.substring(0,Te.length)&&(Z=re)}if(Z!==-1){var ze=H[Z],st=parseInt(ze["LAST-MSN"])||(W==null?void 0:W.lastPartSn),mt=parseInt(ze["LAST-PART"])||(W==null?void 0:W.lastPartIndex);if(this.hls.config.lowLatencyMode){var Yt=Math.min(W.age-W.partTarget,W.targetduration);mt>=0&&Yt>W.partTarget&&(mt+=1)}return new Kt(st,mt>=0?mt:void 0,Rt.No)}}}},{key:"loadPlaylist",value:function(N){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(N){return this.canLoad&&!!N&&!!N.url&&(!N.details||N.details.live)}},{key:"shouldReloadPlaylist",value:function(N){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(N)}},{key:"playlistLoaded",value:function(N,W,H){var Z=this,re=W.details,ve=W.stats,Te=self.performance.now(),ze=ve.loading.first?Math.max(0,Te-ve.loading.first):0;if(re.advancedDateTime=Date.now()-ze,re.live||H!=null&&H.live){if(re.reloaded(H),H&&this.log("live playlist ".concat(N," ").concat(re.advanced?"REFRESHED "+re.lastPartSn+"-"+re.lastPartIndex:re.updated?"UPDATED":"MISSED")),H&&re.fragments.length>0&&yr(H,re),!this.canLoad||!re.live)return;var st,mt=void 0,Yt=void 0;if(re.canBlockReload&&re.endSN&&re.advanced){var Tr=this.hls.config.lowLatencyMode,wr=re.lastPartSn,jr=re.endSN,Qr=re.lastPartIndex,Cn=Qr!==-1,Dn=wr===jr,Zn=Tr?0:Qr;Cn?(mt=Dn?jr+1:wr,Yt=Dn?Zn:Qr+1):mt=jr+1;var Si=re.age,ua=Si+re.ageHeader,Vi=Math.min(ua-re.partTarget,re.targetduration*1.5);if(Vi>0){if(H&&Vi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Vi," with playlist age: ").concat(re.age)),Vi=0;else{var Zi=Math.floor(Vi/re.targetduration);if(mt+=Zi,Yt!==void 0){var ka=Math.round(Vi%re.targetduration/re.partTarget);Yt+=ka}this.log("CDN Tune-in age: ".concat(re.ageHeader,"s last advanced ").concat(Si.toFixed(2),"s goal: ").concat(Vi," skip sn ").concat(Zi," to part ").concat(Yt))}re.tuneInGoal=Vi}if(st=this.getDeliveryDirectives(re,W.deliveryDirectives,mt,Yt),Tr||!Dn){this.loadPlaylist(st);return}}else(re.canBlockReload||re.canSkipUntil)&&(st=this.getDeliveryDirectives(re,W.deliveryDirectives,mt,Yt));var Ga=this.hls.mainForwardBufferInfo,Ba=Ga?Ga.end-Ga.len:0,Sa=(re.edge-Ba)*1e3,Go=Br(re,Sa);re.updated&&Te>this.requestScheduled+Go&&(this.requestScheduled=ve.loading.start),mt!==void 0&&re.canBlockReload?this.requestScheduled=ve.loading.first+Go-(re.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+Go<Te?this.requestScheduled=Te:this.requestScheduled-Te<=0&&(this.requestScheduled+=Go);var bs=this.requestScheduled-Te;bs=Math.max(0,bs),this.log("reload live playlist ".concat(N," in ").concat(Math.round(bs)," ms")),this.timer=self.setTimeout(function(){return Z.loadPlaylist(st)},bs)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(N,W,H,Z){var re=Ut(N,H);return W!=null&&W.skip&&N.deltaUpdateFailed&&(H=W.msn,Z=W.part,re=Rt.No),new Kt(H,Z,re)}},{key:"checkRetry",value:function(N){var W=this,H=N.details,Z=oi(N),re=N.errorAction,ve=re||{},Te=ve.action,ze=ve.retryCount,st=ze===void 0?0:ze,mt=ve.retryConfig,Yt=!!re&&!!mt&&(Te===ra.RetryRequest||!re.resolved&&Te===ra.SendAlternateToPenaltyBox);if(Yt){var Tr;if(this.requestScheduled=-1,st>=mt.maxNumRetry)return!1;if(Z&&(Tr=N.context)!=null&&Tr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(st+1,"/").concat(mt.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var wr=Ri(mt,st);this.timer=self.setTimeout(function(){return W.loadPlaylist()},wr),this.warn("Retrying playlist loading ".concat(st+1,"/").concat(mt.maxNumRetry,' after "').concat(H,'" in ').concat(wr,"ms"))}N.levelRetry=!0,re.resolved=!0}return Yt}}]),Ae}(),Dr,Wr=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H){var Z;return Object(n.a)(this,N),Z=q.call(this,W,"[level-controller]"),Z._levels=[],Z._firstLevel=-1,Z._startLevel=void 0,Z.currentLevel=null,Z.currentLevelIndex=-1,Z.manualLevelIndex=-1,Z.steering=void 0,Z.onParsedComplete=void 0,Z.steering=H,Z._registerListeners(),Z}return Object(o.a)(N,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.FRAG_LOADED,this.onFragLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.FRAG_LOADED,this.onFragLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(N.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(Z){Z.loadError=0,Z.fragmentError=0}),Object(t.a)(Object(m.a)(N.prototype),"startLoad",this).call(this)}},{key:"resetLevels",value:function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[]}},{key:"onManifestLoading",value:function(H,Z){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,Z){var re=[],ve={},Te;Z.levels.forEach(function(ze){var st,mt=ze.attrs;((st=ze.audioCodec)==null?void 0:st.indexOf("mp4a.40.34"))!==-1&&(Dr||(Dr=/chrome|firefox/i.test(navigator.userAgent)),Dr&&(ze.audioCodec=void 0));var Yt=mt.AUDIO,Tr=mt.CODECS,wr=mt["FRAME-RATE"],jr=mt["PATHWAY-ID"],Qr=mt.RESOLUTION,Cn=mt.SUBTITLES,Dn="".concat(jr||".","-"),Zn="".concat(Dn).concat(ze.bitrate,"-").concat(Qr,"-").concat(wr,"-").concat(Tr);Te=ve[Zn],Te?Te.addFallback(ze):(Te=new Lt(ze),ve[Zn]=Te,re.push(Te)),ln(Te,"audio",Yt),ln(Te,"text",Cn)}),this.filterAndSortMediaOptions(re,Z)}},{key:"filterAndSortMediaOptions",value:function(H,Z){var re=this,ve=[],Te=[],ze=!1,st=!1,mt=!1,Yt=H.filter(function(Zn){var Si=Zn.audioCodec,ua=Zn.videoCodec,Vi=Zn.width,Zi=Zn.height,ka=Zn.unknownCodecs;return ze||(ze=!!(Vi&&Zi)),st||(st=!!ua),mt||(mt=!!Si),!(ka!=null&&ka.length)&&(!Si||fn(Si,"audio"))&&(!ua||fn(ua,"video"))});if((ze||st)&&mt&&(Yt=Yt.filter(function(Zn){var Si=Zn.videoCodec,ua=Zn.width,Vi=Zn.height;return!!Si||!!(ua&&Vi)})),Yt.length===0){Promise.resolve().then(function(){if(re.hls){var Zn=new Error("no level with compatible codecs found in manifest");re.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:Z.url,error:Zn,reason:Zn.message})}});return}Z.audioTracks&&(ve=Z.audioTracks.filter(function(Zn){return!Zn.audioCodec||fn(Zn.audioCodec,"audio")}),Pn(ve)),Z.subtitles&&(Te=Z.subtitles,Pn(Te));var Tr=Yt.slice(0);Yt.sort(function(Zn,Si){return Zn.attrs["HDCP-LEVEL"]!==Si.attrs["HDCP-LEVEL"]?(Zn.attrs["HDCP-LEVEL"]||"")>(Si.attrs["HDCP-LEVEL"]||"")?1:-1:Zn.bitrate!==Si.bitrate?Zn.bitrate-Si.bitrate:Zn.attrs["FRAME-RATE"]!==Si.attrs["FRAME-RATE"]?Zn.attrs.decimalFloatingPoint("FRAME-RATE")-Si.attrs.decimalFloatingPoint("FRAME-RATE"):Zn.attrs.SCORE!==Si.attrs.SCORE?Zn.attrs.decimalFloatingPoint("SCORE")-Si.attrs.decimalFloatingPoint("SCORE"):ze&&Zn.height!==Si.height?Zn.height-Si.height:0});var wr=Tr[0];if(this.steering&&(Yt=this.steering.filterParsedLevels(Yt),Yt.length!==Tr.length)){for(var jr=0;jr<Tr.length;jr++)if(Tr[jr].pathwayId===Yt[0].pathwayId){wr=Tr[jr];break}}this._levels=Yt;for(var Qr=0;Qr<Yt.length;Qr++)if(Yt[Qr]===wr){this._firstLevel=Qr,this.log("manifest loaded, ".concat(Yt.length," level(s) found, first bitrate: ").concat(wr.bitrate));break}var Cn=mt&&!st,Dn={levels:Yt,audioTracks:ve,subtitleTracks:Te,sessionData:Z.sessionData,sessionKeys:Z.sessionKeys,firstLevel:this._firstLevel,stats:Z.stats,audio:mt,video:st,altAudio:!Cn&&ve.some(function(Zn){return!!Zn.url})};this.hls.trigger(w.MANIFEST_PARSED,Dn),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}},{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(H){var Z=this._levels;if(Z.length===0)return;if(H<0||H>=Z.length){var re=new Error("invalid level idx"),ve=H<0;if(this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.LEVEL_SWITCH_ERROR,level:H,fatal:ve,error:re,reason:re.message}),ve)return;H=Math.min(H,Z.length-1)}var Te=this.currentLevelIndex,ze=this.currentLevel,st=ze?ze.attrs["PATHWAY-ID"]:void 0,mt=Z[H],Yt=mt.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=mt,Te===H&&mt.details&&ze&&st===Yt)return;this.log("Switching to level ".concat(H).concat(Yt?" with Pathway "+Yt:""," from level ").concat(Te).concat(st?" with Pathway "+st:""));var Tr=E({},mt,{level:H,maxBitrate:mt.maxBitrate,attrs:mt.attrs,uri:mt.uri,urlId:mt.urlId});delete Tr._attrs,delete Tr._urlId,this.hls.trigger(w.LEVEL_SWITCHING,Tr);var wr=mt.details;if(!wr||wr.live){var jr=this.switchParams(mt.uri,ze==null?void 0:ze.details);this.loadPlaylist(jr)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(H){this.manualLevelIndex=H,this._startLevel===void 0&&(this._startLevel=H),H!==-1&&(this.level=H)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(H){this._firstLevel=H}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var H=this.hls.config.startLevel;return H!==void 0?H:this._firstLevel}else return this._startLevel},set:function(H){this._startLevel=H}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Et.LEVEL&&Z.context.level===this.level&&this.checkRetry(Z)}},{key:"onFragLoaded",value:function(H,Z){var re=Z.frag;if(re!==void 0&&re.type===At.MAIN){var ve=this._levels[re.level];ve!==void 0&&(ve.loadError=0)}}},{key:"onLevelLoaded",value:function(H,Z){var re,ve=Z.level,Te=Z.details,ze=this._levels[ve];if(!ze){var st;this.warn("Invalid level index ".concat(ve)),(st=Z.deliveryDirectives)!=null&&st.skip&&(Te.deltaUpdateFailed=!0);return}ve===this.currentLevelIndex?(ze.fragmentError===0&&(ze.loadError=0),this.playlistLoaded(ve,Z,ze.details)):(re=Z.deliveryDirectives)!=null&&re.skip&&(Te.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,Z){var re=this.currentLevel;if(!re)return;var ve=this.hls.audioTracks[Z.id].groupId;if(re.audioGroupIds&&re.audioGroupId!==ve){for(var Te=-1,ze=0;ze<re.audioGroupIds.length;ze++)if(re.audioGroupIds[ze]===ve){Te=ze;break}Te!==-1&&Te!==re.urlId&&(re.urlId=Te,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(N.prototype),"loadPlaylist",this).call(this);var Z=this.currentLevelIndex,re=this.currentLevel;if(re&&this.shouldLoadPlaylist(re)){var ve=re.urlId,Te=re.uri;if(H)try{Te=H.addDirectives(Te)}catch(st){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(st))}var ze=re.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(Z).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(ze?" Pathway "+ze:""," URI ").concat(ve+1,"/").concat(re.url.length," ").concat(Te)),this.clearTimer(),this.hls.trigger(w.LEVEL_LOADING,{url:Te,level:Z,id:ve,deliveryDirectives:H||null})}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(H){this.level=H,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=H)}},{key:"removeLevel",value:function(H,Z){var re=this,ve=function(st,mt){return mt!==Z},Te=this._levels.filter(function(ze,st){return st!==H?!0:ze.url.length>1&&Z!==void 0?(ze.url=ze.url.filter(ve),ze.audioGroupIds&&(ze.audioGroupIds=ze.audioGroupIds.filter(ve)),ze.textGroupIds&&(ze.textGroupIds=ze.textGroupIds.filter(ve)),ze.urlId=0,!0):(re.steering&&re.steering.removeLevel(ze),!1)});this.hls.trigger(w.LEVELS_UPDATED,{levels:Te})}},{key:"onLevelsUpdated",value:function(H,Z){var re=Z.levels;re.forEach(function(ve,Te){var ze=ve.details;ze!=null&&ze.fragments&&ze.fragments.forEach(function(st){st.level=Te})}),this._levels=re}}]),N}(pr);function ln(Ae,q,N){if(!N)return;q==="audio"?(Ae.audioGroupIds||(Ae.audioGroupIds=[]),Ae.audioGroupIds[Ae.url.length-1]=N):q==="text"&&(Ae.textGroupIds||(Ae.textGroupIds=[]),Ae.textGroupIds[Ae.url.length-1]=N)}function Pn(Ae){var q={};Ae.forEach(function(N){var W=N.groupId||"";N.id=q[W]=q[W]||0,q[W]++})}var _t={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},_r=function(){function Ae(q){Object(n.a)(this,Ae),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=q,this._registerListeners()}return Object(o.a)(Ae,[{key:"_registerListeners",value:function(){var N=this.hls;N.on(w.BUFFER_APPENDED,this.onBufferAppended,this),N.on(w.FRAG_BUFFERED,this.onFragBuffered,this),N.on(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var N=this.hls;N.off(w.BUFFER_APPENDED,this.onBufferAppended,this),N.off(w.FRAG_BUFFERED,this.onFragBuffered,this),N.off(w.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(N,W){var H=this.activePartLists[W];if(H)for(var Z=H.length;Z--;){var re=H[Z];if(!re)break;var ve=re.end;if(re.start<=N&&ve!==null&&N<=ve)return re}return this.getBufferedFrag(N,W)}},{key:"getBufferedFrag",value:function(N,W){for(var H=this.fragments,Z=Object.keys(H),re=Z.length;re--;){var ve=H[Z[re]];if((ve==null?void 0:ve.body.type)===W&&ve.buffered){var Te=ve.body;if(Te.start<=N&&N<=Te.end)return Te}}return null}},{key:"detectEvictedFragments",value:function(N,W,H,Z){var re=this;this.timeRanges&&(this.timeRanges[N]=W);var ve=(Z==null?void 0:Z.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(Te){var ze=re.fragments[Te];if(!ze)return;if(ve>=ze.body.sn)return;if(!ze.buffered&&!ze.loaded){ze.body.type===H&&re.removeFragment(ze.body);return}var st=ze.range[N];if(!st)return;st.time.some(function(mt){var Yt=!re.isTimeBuffered(mt.startPTS,mt.endPTS,W);return Yt&&re.removeFragment(ze.body),Yt})})}},{key:"detectPartialFragments",value:function(N){var W=this,H=this.timeRanges,Z=N.frag,re=N.part;if(!H||Z.sn==="initSegment")return;var ve=en(Z),Te=this.fragments[ve];if(!Te||Te.buffered&&Z.gap)return;var ze=!Z.relurl;if(Object.keys(H).forEach(function(mt){var Yt=Z.elementaryStreams[mt];if(!Yt)return;var Tr=H[mt],wr=ze||Yt.partial===!0;Te.range[mt]=W.getBufferedTimes(Z,re,wr,Tr)}),Te.loaded=null,Object.keys(Te.range).length){Te.buffered=!0;var st=Te.body.endList=Z.endList||Te.body.endList;st&&(this.endListFragments[Te.body.type]=Te),Lr(Te)||this.removeParts(Z.sn-1,Z.type)}else this.removeFragment(Te.body)}},{key:"removeParts",value:function(N,W){var H=this.activePartLists[W];if(!H)return;this.activePartLists[W]=H.filter(function(Z){return Z.fragment.sn>=N})}},{key:"fragBuffered",value:function(N,W){var H=en(N),Z=this.fragments[H];!Z&&W&&(Z=this.fragments[H]={body:N,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},N.gap&&(this.hasGaps=!0)),Z&&(Z.loaded=null,Z.buffered=!0)}},{key:"getBufferedTimes",value:function(N,W,H,Z){for(var re={time:[],partial:H},ve=N.start,Te=N.end,ze=N.minEndPTS||Te,st=N.maxStartPTS||ve,mt=0;mt<Z.length;mt++){var Yt=Z.start(mt)-this.bufferPadding,Tr=Z.end(mt)+this.bufferPadding;if(st>=Yt&&ze<=Tr){re.time.push({startPTS:Math.max(ve,Z.start(mt)),endPTS:Math.min(Te,Z.end(mt))});break}else if(ve<Tr&&Te>Yt)re.partial=!0,re.time.push({startPTS:Math.max(ve,Z.start(mt)),endPTS:Math.min(Te,Z.end(mt))});else if(Te<=Yt)break}return re}},{key:"getPartialFragment",value:function(N){var W=null,H,Z,re,ve=0,Te=this.bufferPadding,ze=this.fragments;return Object.keys(ze).forEach(function(st){var mt=ze[st];if(!mt)return;Lr(mt)&&(Z=mt.body.start-Te,re=mt.body.end+Te,N>=Z&&N<=re&&(H=Math.min(N-Z,re-N),ve<=H&&(W=mt.body,ve=H)))}),W}},{key:"isEndListAppended",value:function(N){var W=this.endListFragments[N];return W!==void 0&&(W.buffered||Lr(W))}},{key:"getState",value:function(N){var W=en(N),H=this.fragments[W];return H?H.buffered?Lr(H)?_t.PARTIAL:_t.OK:_t.APPENDING:_t.NOT_LOADED}},{key:"isTimeBuffered",value:function(N,W,H){for(var Z,re,ve=0;ve<H.length;ve++){if(Z=H.start(ve)-this.bufferPadding,re=H.end(ve)+this.bufferPadding,N>=Z&&W<=re)return!0;if(W<=Z)return!1}return!1}},{key:"onFragLoaded",value:function(N,W){var H=W.frag,Z=W.part;if(H.sn==="initSegment"||H.bitrateTest)return;var re=Z?null:W,ve=en(H);this.fragments[ve]={body:H,appendedPTS:null,loaded:re,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(N,W){var H=this,Z=W.frag,re=W.part,ve=W.timeRanges;if(Z.sn==="initSegment")return;var Te=Z.type;if(re){var ze=this.activePartLists[Te];ze||(this.activePartLists[Te]=ze=[]),ze.push(re)}this.timeRanges=ve,Object.keys(ve).forEach(function(st){var mt=ve[st];H.detectEvictedFragments(st,mt,Te,re)})}},{key:"onFragBuffered",value:function(N,W){this.detectPartialFragments(W)}},{key:"hasFragment",value:function(N){var W=en(N);return!!this.fragments[W]}},{key:"hasParts",value:function(N){var W;return!!((W=this.activePartLists[N])!=null&&W.length)}},{key:"removeFragmentsInRange",value:function(N,W,H,Z,re){var ve=this;if(Z&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(Te){var ze=ve.fragments[Te];if(!ze)return;var st=ze.body;if(st.type!==H||Z&&!st.gap)return;st.start<W&&st.end>N&&(ze.buffered||re)&&ve.removeFragment(st)})}},{key:"removeFragment",value:function(N){var W=en(N);N.stats.loaded=0,N.clearElementaryStreamInfo();var H=this.activePartLists[N.type];if(H){var Z=N.sn;this.activePartLists[N.type]=H.filter(function(re){return re.fragment.sn!==Z})}delete this.fragments[W],N.endList&&delete this.endListFragments[N.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}]),Ae}();function Lr(Ae){var q,N,W;return Ae.buffered&&(Ae.body.gap||((q=Ae.range.video)==null?void 0:q.partial)||((N=Ae.range.audio)==null?void 0:N.partial)||((W=Ae.range.audiovideo)==null?void 0:W.partial))}function en(Ae){return"".concat(Ae.type,"_").concat(Ae.level,"_").concat(Ae.urlId,"_").concat(Ae.sn)}var bn=Math.pow(2,17),On=function(){function Ae(q){Object(n.a)(this,Ae),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=q}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(N,W){var H=this,Z=N.url;if(!Z)return Promise.reject(new Hn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:N,error:new Error("Fragment does not have a ".concat(Z?"part list":"url")),networkDetails:null}));this.abort();var re=this.config,ve=re.fLoader,Te=re.loader;return new Promise(function(ze,st){if(H.loader&&H.loader.destroy(),N.gap)if(N.tagList.some(function(jr){return jr[0]==="GAP"})){st(qn(N));return}else N.gap=!1;var mt=H.loader=N.loader=ve?new ve(re):new Te(re),Yt=yn(N),Tr=Di(re.fragLoadPolicy.default),wr={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:N.sn==="initSegment"?Infinity:bn};N.stats=mt.stats,mt.load(Yt,wr,{onSuccess:function(Qr,Cn,Dn,Zn){H.resetLoader(N,mt);var Si=Qr.data;Dn.resetIV&&N.decryptdata&&(N.decryptdata.iv=new Uint8Array(Si.slice(0,16)),Si=Si.slice(16)),ze({frag:N,part:null,payload:Si,networkDetails:Zn})},onError:function(Qr,Cn,Dn,Zn){H.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:N,response:b({url:Z,data:void 0},Qr),error:new Error("HTTP Error ".concat(Qr.code," ").concat(Qr.text)),networkDetails:Dn,stats:Zn}))},onAbort:function(Qr,Cn,Dn){H.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:N,error:new Error("Aborted"),networkDetails:Dn,stats:Qr}))},onTimeout:function(Qr,Cn,Dn){H.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:N,error:new Error("Timeout after ".concat(wr.timeout,"ms")),networkDetails:Dn,stats:Qr}))},onProgress:function(Qr,Cn,Dn,Zn){W&&W({frag:N,part:null,payload:Dn,networkDetails:Zn})}})})}},{key:"loadPart",value:function(N,W,H){var Z=this;this.abort();var re=this.config,ve=re.fLoader,Te=re.loader;return new Promise(function(ze,st){if(Z.loader&&Z.loader.destroy(),N.gap||W.gap){st(qn(N,W));return}var mt=Z.loader=N.loader=ve?new ve(re):new Te(re),Yt=yn(N,W),Tr=Di(re.fragLoadPolicy.default),wr={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:bn};W.stats=mt.stats,mt.load(Yt,wr,{onSuccess:function(Qr,Cn,Dn,Zn){Z.resetLoader(N,mt),Z.updateStatsFromPart(N,W);var Si={frag:N,part:W,payload:Qr.data,networkDetails:Zn};H(Si),ze(Si)},onError:function(Qr,Cn,Dn,Zn){Z.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_ERROR,fatal:!1,frag:N,part:W,response:b({url:Yt.url,data:void 0},Qr),error:new Error("HTTP Error ".concat(Qr.code," ").concat(Qr.text)),networkDetails:Dn,stats:Zn}))},onAbort:function(Qr,Cn,Dn){N.stats.aborted=W.stats.aborted,Z.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.INTERNAL_ABORTED,fatal:!1,frag:N,part:W,error:new Error("Aborted"),networkDetails:Dn,stats:Qr}))},onTimeout:function(Qr,Cn,Dn){Z.resetLoader(N,mt),st(new Hn({type:O.NETWORK_ERROR,details:I.FRAG_LOAD_TIMEOUT,fatal:!1,frag:N,part:W,error:new Error("Timeout after ".concat(wr.timeout,"ms")),networkDetails:Dn,stats:Qr}))}})})}},{key:"updateStatsFromPart",value:function(N,W){var H=N.stats,Z=W.stats,re=Z.total;if(H.loaded+=Z.loaded,re){var ve=Math.round(N.duration/W.duration),Te=Math.min(Math.round(H.loaded/re),ve),ze=ve-Te,st=ze*Math.round(H.loaded/Te);H.total=H.loaded+st}else H.total=Math.max(H.loaded,H.total);var mt=H.loading,Yt=Z.loading;mt.start?mt.first+=Yt.first-Yt.start:(mt.start=Yt.start,mt.first=Yt.first),mt.end=Yt.end}},{key:"resetLoader",value:function(N,W){N.loader=null,this.loader===W&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),W.destroy()}}]),Ae}();function yn(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,N=q||Ae,W={frag:Ae,part:q,responseType:"arraybuffer",url:N.url,headers:{},rangeStart:0,rangeEnd:0},H=N.byteRangeStartOffset,Z=N.byteRangeEndOffset;if(T(H)&&T(Z)){var re,ve=H,Te=Z;if(Ae.sn==="initSegment"&&((re=Ae.decryptdata)==null?void 0:re.method)==="AES-128"){var ze=Z-H;ze%16&&(Te=Z+(16-ze%16)),H!==0&&(W.resetIV=!0,ve=H-16)}W.rangeStart=ve,W.rangeEnd=Te}return W}function qn(Ae,q){var N=new Error("GAP ".concat(Ae.gap?"tag":"attribute"," found")),W={type:O.MEDIA_ERROR,details:I.FRAG_GAP,fatal:!1,frag:Ae,error:N,networkDetails:null};return q&&(W.part=q),(q||Ae).stats.aborted=!0,new Hn(W)}var Hn=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W){var H;return Object(n.a)(this,N),H=q.call(this,W.error.message),H.data=void 0,H.data=W,H}return Object(o.a)(N)}(i(Error)),pi=function(){function Ae(q){Object(n.a)(this,Ae),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=q}return Object(o.a)(Ae,[{key:"abort",value:function(N){for(var W in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[W].loader;if(H){if(N&&N!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var N in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[N];(W.mediaKeySessionContext||W.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[N]}}},{key:"destroy",value:function(){this.detach();for(var N in this.keyUriToKeyInfo){var W=this.keyUriToKeyInfo[N].loader;W&&W.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,Z=arguments.length>3?arguments[3]:void 0,re=arguments.length>4?arguments[4]:void 0;return new Hn({type:O.NETWORK_ERROR,details:W,fatal:!1,frag:N,response:re,error:H,networkDetails:Z})}},{key:"loadClear",value:function(N,W){var H=this;if(this.emeController&&this.config.emeEnabled)for(var Z=N.sn,re=N.cc,ve=function(){var st=W[Te];if(re<=st.cc&&(Z==="initSegment"||st.sn==="initSegment"||Z<st.sn))return H.emeController.selectKeySystemFormat(st).then(function(mt){st.setKeyFormat(mt)}),1},Te=0;Te<W.length&&!ve();Te++);}},{key:"load",value:function(N){var W=this;return!N.decryptdata&&N.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(N).then(function(H){return W.loadInternal(N,H)}):this.loadInternal(N)}},{key:"loadInternal",value:function(N,W){var H,Z;W&&N.setKeyFormat(W);var re=N.decryptdata;if(!re){var ve=new Error(W?"Expected frag.decryptdata to be defined after setting format ".concat(W):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(N,I.KEY_LOAD_ERROR,ve))}var Te=re.uri;if(!Te)return Promise.reject(this.createKeyLoadError(N,I.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(Te,'"'))));var ze=this.keyUriToKeyInfo[Te];if((H=ze)!=null&&H.decryptdata.key)return re.key=ze.decryptdata.key,Promise.resolve({frag:N,keyInfo:ze});if((Z=ze)!=null&&Z.keyLoadPromise){var st;switch((st=ze.mediaKeySessionContext)==null?void 0:st.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return ze.keyLoadPromise.then(function(mt){return re.key=mt.keyInfo.decryptdata.key,{frag:N,keyInfo:ze}})}}ze=this.keyUriToKeyInfo[Te]={decryptdata:re,keyLoadPromise:null,loader:null,mediaKeySessionContext:null};switch(re.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return re.keyFormat==="identity"?this.loadKeyHTTP(ze,N):this.loadKeyEME(ze,N);case"AES-128":return this.loadKeyHTTP(ze,N);default:return Promise.reject(this.createKeyLoadError(N,I.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(re.method,'"'))))}}},{key:"loadKeyEME",value:function(N,W){var H={frag:W,keyInfo:N};if(this.emeController&&this.config.emeEnabled){var Z=this.emeController.loadKey(H);if(Z)return(N.keyLoadPromise=Z.then(function(re){return N.mediaKeySessionContext=re,H})).catch(function(re){throw N.keyLoadPromise=null,re})}return Promise.resolve(H)}},{key:"loadKeyHTTP",value:function(N,W){var H=this,Z=this.config,re=Z.loader,ve=new re(Z);return W.keyLoader=N.loader=ve,N.keyLoadPromise=new Promise(function(Te,ze){var st={keyInfo:N,frag:W,responseType:"arraybuffer",url:N.decryptdata.uri},mt=Z.keyLoadPolicy.default,Yt={loadPolicy:mt,timeout:mt.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Tr={onSuccess:function(jr,Qr,Cn,Dn){var Zn=Cn.frag,Si=Cn.keyInfo,ua=Cn.url;if(!Zn.decryptdata||Si!==H.keyUriToKeyInfo[ua])return ze(H.createKeyLoadError(Zn,I.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Dn));Si.decryptdata.key=Zn.decryptdata.key=new Uint8Array(jr.data),Zn.keyLoader=null,Si.loader=null,Te({frag:Zn,keyInfo:Si})},onError:function(jr,Qr,Cn,Dn){H.resetLoader(Qr),ze(H.createKeyLoadError(W,I.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(jr.code," loading key ").concat(jr.text)),Cn,b({url:st.url,data:void 0},jr)))},onTimeout:function(jr,Qr,Cn){H.resetLoader(Qr),ze(H.createKeyLoadError(W,I.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Cn))},onAbort:function(jr,Qr,Cn){H.resetLoader(Qr),ze(H.createKeyLoadError(W,I.INTERNAL_ABORTED,new Error("key loading aborted"),Cn))}};ve.load(st,Yt,Tr)})}},{key:"resetLoader",value:function(N){var W=N.frag,H=N.keyInfo,Z=N.url,re=H.loader;W.keyLoader===re&&(W.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[Z],re&&re.destroy()}}]),Ae}(),Fi=function(){function Ae(){Object(n.a)(this,Ae),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(N){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,N),!0)}},{key:"clearInterval",value:function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}},{key:"clearNextTick",value:function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}},{key:"tick",value:function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}]),Ae}(),wi={length:0,start:function(){return 0},end:function(){return 0}},Oi=function(){function Ae(){Object(n.a)(this,Ae)}return Object(o.a)(Ae,null,[{key:"isBuffered",value:function(N,W){try{if(N){for(var H=Ae.getBuffered(N),Z=0;Z<H.length;Z++)if(W>=H.start(Z)&&W<=H.end(Z))return!0}}catch(re){}return!1}},{key:"bufferInfo",value:function(N,W,H){try{if(N){var Z=Ae.getBuffered(N),re=[],ve;for(ve=0;ve<Z.length;ve++)re.push({start:Z.start(ve),end:Z.end(ve)});return this.bufferedInfo(re,W,H)}}catch(Te){}return{len:0,start:W,end:W,nextStart:void 0}}},{key:"bufferedInfo",value:function(N,W,H){W=Math.max(0,W),N.sort(function(Qr,Cn){var Dn=Qr.start-Cn.start;return Dn||Cn.end-Qr.end});var Z=[];if(H)for(var re=0;re<N.length;re++){var ve=Z.length;if(ve){var Te=Z[ve-1].end;N[re].start-Te<H?N[re].end>Te&&(Z[ve-1].end=N[re].end):Z.push(N[re])}else Z.push(N[re])}else Z=N;for(var ze=0,st,mt=W,Yt=W,Tr=0;Tr<Z.length;Tr++){var wr=Z[Tr].start,jr=Z[Tr].end;if(W+H>=wr&&W<jr)mt=wr,Yt=jr,ze=Yt-W;else if(W+H<wr){st=wr;break}}return{len:ze,start:mt||0,end:Yt||0,nextStart:st}}},{key:"getBuffered",value:function(N){try{return N.buffered}catch(W){return j.log("failed to get media.buffered",W),wi}}}]),Ae}(),zi=Object(o.a)(function Ae(q,N,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,re=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;Object(n.a)(this,Ae),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=ea(),this.buffering={audio:ea(),video:ea(),audiovideo:ea()},this.level=q,this.sn=N,this.id=W,this.size=H,this.part=Z,this.partial=re});function ea(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Gi(Ae,q){for(var N=null,W=0,H=Ae.length;W<H;W++){var Z=Ae[W];if(Z&&Z.cc===q){N=Z;break}}return N}function Wi(Ae,q,N){return!!(q.details&&(N.endCC>N.startCC||Ae&&Ae.cc<N.startCC))}function Hi(Ae,q){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,W=Ae.fragments,H=q.fragments;if(!H.length||!W.length){j.log("No fragments to align");return}var Z=Gi(W,H[0].cc);if(!Z||Z&&!Z.startPTS){j.log("No frag in previous level to align on");return}return Z}function Ji(Ae,q){if(Ae){var N=Ae.start+q;Ae.start=Ae.startPTS=N,Ae.endPTS=N+Ae.duration}}function ca(Ae,q){for(var N=q.fragments,W=0,H=N.length;W<H;W++)Ji(N[W],Ae);q.fragmentHint&&Ji(q.fragmentHint,Ae),q.alignedSliding=!0}function Ca(Ae,q,N){if(!q)return;na(Ae,N,q),!N.alignedSliding&&q.details&&Pa(N,q.details),!N.alignedSliding&&q.details&&!N.skippedSegments&&di(q.details,N)}function na(Ae,q,N){if(Wi(Ae,N,q)){var W=Hi(N.details,q);W&&T(W.start)&&(j.log("Adjusting PTS using last level due to CC increase within current level ".concat(q.url)),ca(W.start,q))}}function Pa(Ae,q){if(!q.fragments.length||!Ae.hasProgramDateTime||!q.hasProgramDateTime)return;var N=q.fragments[0].programDateTime,W=Ae.fragments[0].programDateTime,H=(W-N)/1e3+q.fragments[0].start;H&&T(H)&&(j.log("Adjusting PTS using programDateTime delta ".concat(W-N,"ms, sliding:").concat(H.toFixed(3)," ").concat(Ae.url," ")),ca(H,Ae))}function La(Ae,q){if(!Ae.hasProgramDateTime||!q.hasProgramDateTime)return;var N=Ae.fragments,W=q.fragments;if(!N.length||!W.length)return;var H=Math.round(W.length/2)-1,Z=W[H],re=Gi(N,Z.cc)||N[Math.round(N.length/2)-1],ve=Z.programDateTime,Te=re.programDateTime;if(ve===null||Te===null)return;var ze=(Te-ve)/1e3-(re.start-Z.start);ca(ze,Ae)}var va=function(){function Ae(q,N){Object(n.a)(this,Ae),this.subtle=void 0,this.aesIV=void 0,this.subtle=q,this.aesIV=N}return Object(o.a)(Ae,[{key:"decrypt",value:function(N,W){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},W,N)}}]),Ae}(),ga=function(){function Ae(q,N){Object(n.a)(this,Ae),this.subtle=void 0,this.key=void 0,this.subtle=q,this.key=N}return Object(o.a)(Ae,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),Ae}();function Oa(Ae){var q=Ae.byteLength,N=q&&new DataView(Ae.buffer).getUint8(q-1);return N?_e(Ae,0,q-N):Ae}var Aa=function(){function Ae(){Object(n.a)(this,Ae),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}return Object(o.a)(Ae,[{key:"uint8ArrayToUint32Array_",value:function(N){for(var W=new DataView(N),H=new Uint32Array(4),Z=0;Z<4;Z++)H[Z]=W.getUint32(Z*4);return H}},{key:"initTable",value:function(){var N=this.sBox,W=this.invSBox,H=this.subMix,Z=H[0],re=H[1],ve=H[2],Te=H[3],ze=this.invSubMix,st=ze[0],mt=ze[1],Yt=ze[2],Tr=ze[3],wr=new Uint32Array(256),jr=0,Qr=0,Cn=0;for(Cn=0;Cn<256;Cn++)Cn<128?wr[Cn]=Cn<<1:wr[Cn]=Cn<<1^283;for(Cn=0;Cn<256;Cn++){var Dn=Qr^Qr<<1^Qr<<2^Qr<<3^Qr<<4;Dn=Dn>>>8^Dn&255^99,N[jr]=Dn,W[Dn]=jr;var Zn=wr[jr],Si=wr[Zn],ua=wr[Si],Vi=wr[Dn]*257^Dn*16843008;Z[jr]=Vi<<24|Vi>>>8,re[jr]=Vi<<16|Vi>>>16,ve[jr]=Vi<<8|Vi>>>24,Te[jr]=Vi,Vi=ua*16843009^Si*65537^Zn*257^jr*16843008,st[Dn]=Vi<<24|Vi>>>8,mt[Dn]=Vi<<16|Vi>>>16,Yt[Dn]=Vi<<8|Vi>>>24,Tr[Dn]=Vi,jr?(jr=Zn^wr[wr[wr[ua^Zn]]],Qr^=wr[wr[Qr]]):jr=Qr=1}}},{key:"expandKey",value:function(N){for(var W=this.uint8ArrayToUint32Array_(N),H=!0,Z=0;Z<W.length&&H;)H=W[Z]===this.key[Z],Z++;if(H)return;this.key=W;var re=this.keySize=W.length;if(re!==4&&re!==6&&re!==8)throw new Error("Invalid aes key size="+re);var ve=this.ksRows=(re+6+1)*4,Te,ze,st=this.keySchedule=new Uint32Array(ve),mt=this.invKeySchedule=new Uint32Array(ve),Yt=this.sBox,Tr=this.rcon,wr=this.invSubMix,jr=wr[0],Qr=wr[1],Cn=wr[2],Dn=wr[3],Zn,Si;for(Te=0;Te<ve;Te++){if(Te<re){Zn=st[Te]=W[Te];continue}Si=Zn,Te%re===0?(Si=Si<<8|Si>>>24,Si=Yt[Si>>>24]<<24|Yt[Si>>>16&255]<<16|Yt[Si>>>8&255]<<8|Yt[Si&255],Si^=Tr[Te/re|0]<<24):re>6&&Te%re===4&&(Si=Yt[Si>>>24]<<24|Yt[Si>>>16&255]<<16|Yt[Si>>>8&255]<<8|Yt[Si&255]),st[Te]=Zn=(st[Te-re]^Si)>>>0}for(ze=0;ze<ve;ze++)Te=ve-ze,ze&3?Si=st[Te]:Si=st[Te-4],ze<4||Te<=4?mt[ze]=Si:mt[ze]=jr[Yt[Si>>>24]]^Qr[Yt[Si>>>16&255]]^Cn[Yt[Si>>>8&255]]^Dn[Yt[Si&255]],mt[ze]=mt[ze]>>>0}},{key:"networkToHostOrderSwap",value:function(N){return N<<24|(N&65280)<<8|(N&16711680)>>8|N>>>24}},{key:"decrypt",value:function(N,W,H){for(var Z=this.keySize+6,re=this.invKeySchedule,ve=this.invSBox,Te=this.invSubMix,ze=Te[0],st=Te[1],mt=Te[2],Yt=Te[3],Tr=this.uint8ArrayToUint32Array_(H),wr=Tr[0],jr=Tr[1],Qr=Tr[2],Cn=Tr[3],Dn=new Int32Array(N),Zn=new Int32Array(Dn.length),Si,ua,Vi,Zi,ka,Ga,Ba,Sa,Go,bs,ys,Cs,js,ws,Hs=this.networkToHostOrderSwap;W<Dn.length;){for(Go=Hs(Dn[W]),bs=Hs(Dn[W+1]),ys=Hs(Dn[W+2]),Cs=Hs(Dn[W+3]),ka=Go^re[0],Ga=Cs^re[1],Ba=ys^re[2],Sa=bs^re[3],js=4,ws=1;ws<Z;ws++)Si=ze[ka>>>24]^st[Ga>>16&255]^mt[Ba>>8&255]^Yt[Sa&255]^re[js],ua=ze[Ga>>>24]^st[Ba>>16&255]^mt[Sa>>8&255]^Yt[ka&255]^re[js+1],Vi=ze[Ba>>>24]^st[Sa>>16&255]^mt[ka>>8&255]^Yt[Ga&255]^re[js+2],Zi=ze[Sa>>>24]^st[ka>>16&255]^mt[Ga>>8&255]^Yt[Ba&255]^re[js+3],ka=Si,Ga=ua,Ba=Vi,Sa=Zi,js=js+4;Si=ve[ka>>>24]<<24^ve[Ga>>16&255]<<16^ve[Ba>>8&255]<<8^ve[Sa&255]^re[js],ua=ve[Ga>>>24]<<24^ve[Ba>>16&255]<<16^ve[Sa>>8&255]<<8^ve[ka&255]^re[js+1],Vi=ve[Ba>>>24]<<24^ve[Sa>>16&255]<<16^ve[ka>>8&255]<<8^ve[Ga&255]^re[js+2],Zi=ve[Sa>>>24]<<24^ve[ka>>16&255]<<16^ve[Ga>>8&255]<<8^ve[Ba&255]^re[js+3],Zn[W]=Hs(Si^wr),Zn[W+1]=Hs(Zi^jr),Zn[W+2]=Hs(Vi^Qr),Zn[W+3]=Hs(ua^Cn),wr=Go,jr=bs,Qr=ys,Cn=Cs,W=W+4}return Zn.buffer}}]),Ae}(),Xa=16,_a=function(){function Ae(q){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=N.removePKCS7Padding,H=W===void 0?!0:W;if(Object(n.a)(this,Ae),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=q.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var Z=self.crypto;Z&&(this.subtle=Z.subtle||Z.webkitSubtle)}catch(re){}this.subtle===null&&(this.useSoftware=!0)}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var N=this.currentResult,W=this.remainderData;if(!N||W)return this.reset(),null;var H=new Uint8Array(N);return this.reset(),this.removePKCS7Padding?Oa(H):H}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(N,W,H){var Z=this;return this.useSoftware?new Promise(function(re,ve){Z.softwareDecrypt(new Uint8Array(N),W,H);var Te=Z.flush();Te?re(Te.buffer):ve(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(N),W,H)}},{key:"softwareDecrypt",value:function(N,W,H){var Z=this.currentIV,re=this.currentResult,ve=this.remainderData;this.logOnce("JS AES decrypt"),ve&&(N=wt(ve,N),this.remainderData=null);var Te=this.getValidChunk(N);if(!Te.length)return null;Z&&(H=Z);var ze=this.softwareDecrypter;ze||(ze=this.softwareDecrypter=new Aa),ze.expandKey(W);var st=re;return this.currentResult=ze.decrypt(Te.buffer,0,H),this.currentIV=_e(Te,-16).buffer,st||null}},{key:"webCryptoDecrypt",value:function(N,W,H){var Z=this,re=this.subtle;return(this.key!==W||!this.fastAesKey)&&(this.key=W,this.fastAesKey=new ga(re,W)),this.fastAesKey.expandKey().then(function(ve){if(!re)return Promise.reject(new Error("web crypto not initialized"));Z.logOnce("WebCrypto AES decrypt");var Te=new va(re,new Uint8Array(H));return Te.decrypt(N.buffer,ve)}).catch(function(ve){return j.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(ve.name,": ").concat(ve.message)),Z.onWebCryptoError(N,W,H)})}},{key:"onWebCryptoError",value:function(N,W,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(N,W,H);var Z=this.flush();if(Z)return Z.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(N){var W=N,H=N.length-N.length%Xa;return H!==N.length&&(W=_e(N,0,H),this.remainderData=_e(N,H)),W}},{key:"logOnce",value:function(N){if(!this.logEnabled)return;j.log("[decrypter]: ".concat(N)),this.logEnabled=!1}}]),Ae}(),Va={toString:function(q){for(var N="",W=q.length,H=0;H<W;H++)N+="[".concat(q.start(H).toFixed(3),"-").concat(q.end(H).toFixed(3),"]");return N}},Bi={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},io=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z,re,ve){var Te;return Object(n.a)(this,N),Te=q.call(this),Te.hls=void 0,Te.fragPrevious=null,Te.fragCurrent=null,Te.fragmentTracker=void 0,Te.transmuxer=null,Te._state=Bi.STOPPED,Te.playlistType=void 0,Te.media=null,Te.mediaBuffer=null,Te.config=void 0,Te.bitrateTest=!1,Te.lastCurrentTime=0,Te.nextLoadPosition=0,Te.startPosition=0,Te.startTimeOffset=null,Te.loadedmetadata=!1,Te.retryDate=0,Te.levels=null,Te.fragmentLoader=void 0,Te.keyLoader=void 0,Te.levelLastLoaded=null,Te.startFragRequested=!1,Te.decrypter=void 0,Te.initPTS=[],Te.onvseeking=null,Te.onvended=null,Te.logPrefix="",Te.log=void 0,Te.warn=void 0,Te.playlistType=ve,Te.logPrefix=re,Te.log=j.log.bind(j,"".concat(re,":")),Te.warn=j.warn.bind(j,"".concat(re,":")),Te.hls=W,Te.fragmentLoader=new On(W.config),Te.keyLoader=Z,Te.fragmentTracker=H,Te.config=W.config,Te.decrypter=new _a(W.config),W.on(w.MANIFEST_LOADED,Te.onManifestLoaded,Object(A.a)(Te)),Te}return Object(o.a)(N,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(H){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var H=this.fragCurrent;H!=null&&H.loader&&(H.abortRequests(),this.fragmentTracker.removeFragment(H)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Bi.STOPPED}},{key:"_streamEnded",value:function(H,Z){if(Z.live||H.nextStart||!H.end||!this.media)return!1;var re=Z.partList;if(re!=null&&re.length){var ve=re[re.length-1],Te=Oi.isBuffered(this.media,ve.start+ve.duration/2);return Te}var ze=Z.fragments[Z.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(ze)}},{key:"getLevelDetails",value:function(){if(this.levels&&this.levelLastLoaded!==null){var H;return(H=this.levels[this.levelLastLoaded])==null?void 0:H.details}}},{key:"onMediaAttached",value:function(H,Z){var re=this.media=this.mediaBuffer=Z.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),re.addEventListener("seeking",this.onvseeking),re.addEventListener("ended",this.onvended);var ve=this.config;this.levels&&ve.autoStartLoad&&this.state===Bi.STOPPED&&this.startLoad(ve.startPosition)}},{key:"onMediaDetaching",value:function(){var H=this.media;H!=null&&H.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),H&&this.onvseeking&&this.onvended&&(H.removeEventListener("seeking",this.onvseeking),H.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var H=this.config,Z=this.fragCurrent,re=this.media,ve=this.mediaBuffer,Te=this.state,ze=re?re.currentTime:0,st=Oi.bufferInfo(ve||re,ze,H.maxBufferHole);if(this.log("media seeking to ".concat(T(ze)?ze.toFixed(3):ze,", state: ").concat(Te)),this.state===Bi.ENDED)this.resetLoadingState();else if(Z){var mt=H.maxFragLookUpTolerance,Yt=Z.start-mt,Tr=Z.start+Z.duration+mt;if(!st.len||Tr<st.start||Yt>st.end){var wr=ze>Tr;(ze<Yt||wr)&&(wr&&Z.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),Z.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}re&&(this.fragmentTracker.removeFragmentsInRange(ze,Infinity,this.playlistType,!0),this.lastCurrentTime=ze),!this.loadedmetadata&&!st.len&&(this.nextLoadPosition=this.startPosition=ze),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,Z){this.startTimeOffset=Z.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(N.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=Bi.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,Object(t.a)(Object(m.a)(N.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(H,Z,re){this._loadFragForPlayback(H,Z,re)}},{key:"_loadFragForPlayback",value:function(H,Z,re){var ve=this,Te=function(st){if(ve.fragContextChanged(H)){ve.warn("Fragment ".concat(H.sn).concat(st.part?" p: "+st.part.index:""," of level ").concat(H.level," was dropped during download.")),ve.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,ve._handleFragmentLoadProgress(st)};this._doFragLoad(H,Z,re,Te).then(function(ze){if(!ze)return;var st=ve.state;if(ve.fragContextChanged(H)){(st===Bi.FRAG_LOADING||!ve.fragCurrent&&st===Bi.PARSING)&&(ve.fragmentTracker.removeFragment(H),ve.state=Bi.IDLE);return}"payload"in ze&&(ve.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),ve.hls.trigger(w.FRAG_LOADED,ze)),ve._handleFragmentLoadComplete(ze)}).catch(function(ze){if(ve.state===Bi.STOPPED||ve.state===Bi.ERROR)return;ve.warn(ze),ve.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var Z,re=this.fragmentTracker,ve=re.getState(H);if(ve===_t.APPENDING){var Te=H.type,ze=this.getFwdBufferInfo(this.mediaBuffer,Te),st=Math.max(H.duration,ze?ze.len:this.config.maxBufferLength);this.reduceMaxBufferLength(st)&&re.removeFragment(H)}else((Z=this.mediaBuffer)==null?void 0:Z.buffered.length)===0?re.removeAllFragments():re.hasParts(H.type)&&(re.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),re.getState(H)===_t.PARTIAL&&re.removeFragment(H))}},{key:"checkLiveUpdate",value:function(H){if(H.updated&&!H.live){var Z=H.fragments[H.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:Z,part:null,stats:Z.stats,id:Z.type})}H.fragments[0]||(H.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(H,Z){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-Z))return;var ve={startOffset:H,endOffset:Z,type:re};this.hls.trigger(w.BUFFER_FLUSHING,ve)}},{key:"_loadInitSegment",value:function(H,Z){var re=this;this._doFragLoad(H,Z).then(function(ve){if(!ve||re.fragContextChanged(H)||!re.levels)throw new Error("init load aborted");return ve}).then(function(ve){var Te=re.hls,ze=ve.payload,st=H.decryptdata;if(ze&&ze.byteLength>0&&st&&st.key&&st.iv&&st.method==="AES-128"){var mt=self.performance.now();return re.decrypter.decrypt(new Uint8Array(ze),st.key.buffer,st.iv.buffer).catch(function(Yt){throw Te.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:Yt,reason:Yt.message,frag:H}),Yt}).then(function(Yt){var Tr=self.performance.now();return Te.trigger(w.FRAG_DECRYPTED,{frag:H,payload:Yt,stats:{tstart:mt,tdecrypt:Tr}}),ve.payload=Yt,ve})}return ve}).then(function(ve){var Te=re.fragCurrent,ze=re.hls,st=re.levels;if(!st)throw new Error("init load aborted, missing levels");var mt=H.stats;re.state=Bi.IDLE,Z.fragmentError=0,H.data=new Uint8Array(ve.payload),mt.parsing.start=mt.buffering.start=self.performance.now(),mt.parsing.end=mt.buffering.end=self.performance.now(),ve.frag===Te&&ze.trigger(w.FRAG_BUFFERED,{stats:mt,frag:Te,part:null,id:H.type}),re.tick()}).catch(function(ve){if(re.state===Bi.STOPPED||re.state===Bi.ERROR)return;re.warn(ve),re.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var Z=this.fragCurrent;return!H||!Z||H.level!==Z.level||H.sn!==Z.sn||H.urlId!==Z.urlId}},{key:"fragBufferedComplete",value:function(H,Z){var re,ve,Te,ze,st=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(Z?" part: "+Z.index:""," of ").concat(this.playlistType===At.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((re=H.startPTS)!=null?re:NaN).toFixed(3),"-").concat(((ve=H.endPTS)!=null?ve:NaN).toFixed(3),"] > buffer:").concat(st?Va.toString(Oi.getBuffered(st)):"(detached)",")")),this.state=Bi.IDLE,!st)return;!this.loadedmetadata&&H.type==At.MAIN&&st.buffered.length&&((Te=this.fragCurrent)==null?void 0:Te.sn)===((ze=this.fragPrevious)==null?void 0:ze.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this.transmuxer;if(!Z)return;var re=H.frag,ve=H.part,Te=H.partsLoaded,ze=!Te||Te.length===0||Te.some(function(mt){return!mt}),st=new zi(re.level,re.sn,re.stats.chunkCount+1,0,ve?ve.index:-1,!ze);Z.flush(st)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,Z){var re=this,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3?arguments[3]:void 0,ze,st=Z==null?void 0:Z.details;if(!this.levels||!st)throw new Error("frag load aborted, missing level".concat(st?"":" detail","s"));var mt=null;if(H.encrypted&&!((ze=H.decryptdata)!=null&&ze.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(st.startSN,"-").concat(st.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=Bi.KEY_LOADING,this.fragCurrent=H,mt=this.keyLoader.load(H).then(function(Dn){if(!re.fragContextChanged(Dn.frag))return re.hls.trigger(w.KEY_LOADED,Dn),re.state===Bi.KEY_LOADING&&(re.state=Bi.IDLE),Dn}),this.hls.trigger(w.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(mt=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&st.encryptedFragments.length&&this.keyLoader.loadClear(H,st.encryptedFragments),ve=Math.max(H.start,ve||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var Yt=st.partList;if(Yt&&Te){ve>H.end&&st.fragmentHint&&(H=st.fragmentHint);var Tr=this.getNextPart(Yt,H,ve);if(Tr>-1){var wr=Yt[Tr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(wr.index," cc: ").concat(H.cc," of playlist [").concat(st.startSN,"-").concat(st.endSN,"] parts [0-").concat(Tr,"-").concat(Yt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),this.nextLoadPosition=wr.start+wr.duration,this.state=Bi.FRAG_LOADING;var jr;return mt?jr=mt.then(function(Dn){return!Dn||re.fragContextChanged(Dn.frag)?null:re.doFragPartsLoad(H,wr,Z,Te)}).catch(function(Dn){return re.handleFragLoadError(Dn)}):jr=this.doFragPartsLoad(H,wr,Z,Te).catch(function(Dn){return re.handleFragLoadError(Dn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,part:wr,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):jr}else if(!H.url||this.loadedEndOfParts(Yt,ve))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(st?"of ["+st.startSN+"-"+st.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(ve.toFixed(3)))),T(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=Bi.FRAG_LOADING;var Qr=this.config.progressive,Cn;return Qr&&mt?Cn=mt.then(function(Dn){return!Dn||re.fragContextChanged(Dn==null?void 0:Dn.frag)?null:re.fragmentLoader.load(H,Te)}).catch(function(Dn){return re.handleFragLoadError(Dn)}):Cn=Promise.all([this.fragmentLoader.load(H,Qr?Te:void 0),mt]).then(function(Dn){var Zn=Object(x.a)(Dn,1),Si=Zn[0];return!Qr&&Si&&Te&&Te(Si),Si}).catch(function(Dn){return re.handleFragLoadError(Dn)}),this.hls.trigger(w.FRAG_LOADING,{frag:H,targetBufferTime:ve}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Cn}},{key:"doFragPartsLoad",value:function(H,Z,re,ve){var Te=this;return new Promise(function(ze,st){var mt,Yt=[],Tr=(mt=re.details)==null?void 0:mt.partList,wr=function jr(Qr){Te.fragmentLoader.loadPart(H,Qr,ve).then(function(Cn){Yt[Qr.index]=Cn;var Dn=Cn.part;Te.hls.trigger(w.FRAG_LOADED,Cn);var Zn=Xn(re,H.sn,Qr.index+1)||$n(Tr,H.sn,Qr.index+1);if(Zn)jr(Zn);else return ze({frag:H,part:Dn,partsLoaded:Yt})}).catch(st)};wr(Z)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var Z=H.data;H.data&&Z.details===I.INTERNAL_ABORTED?this.handleFragLoadAborted(Z.frag,Z.part):this.hls.trigger(w.ERROR,Z)}else this.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var Z=this.getCurrentContext(H);if(!Z||this.state!==Bi.PARSING){!this.fragCurrent&&this.state!==Bi.STOPPED&&this.state!==Bi.ERROR&&(this.state=Bi.IDLE);return}var re=Z.frag,ve=Z.part,Te=Z.level,ze=self.performance.now();re.stats.parsing.end=ze,ve&&(ve.stats.parsing.end=ze),this.updateLevelTiming(re,ve,Te,H.partial)}},{key:"getCurrentContext",value:function(H){var Z=this.levels,re=this.fragCurrent,ve=H.level,Te=H.sn,ze=H.part;if(!(Z!=null&&Z[ve]))return this.warn("Levels object was unset while buffering fragment ".concat(Te," of level ").concat(ve,". The current chunk will not be buffered.")),null;var st=Z[ve],mt=ze>-1?Xn(st,Te,ze):null,Yt=mt?mt.fragment:_n(st,Te,re);return Yt?(re&&re!==Yt&&(Yt.stats=re.stats),{frag:Yt,part:mt,level:st}):null}},{key:"bufferFragmentData",value:function(H,Z,re,ve,Te){var ze;if(!H||this.state!==Bi.PARSING)return;var st=H.data1,mt=H.data2,Yt=st;if(st&&mt&&(Yt=wt(st,mt)),!((ze=Yt)!=null&&ze.length))return;var Tr={type:H.type,frag:Z,part:re,chunkMeta:ve,parent:Z.type,data:Yt};if(this.hls.trigger(w.BUFFER_APPENDING,Tr),H.dropped&&H.independent&&!re){if(Te)return;this.flushBufferGap(Z)}}},{key:"flushBufferGap",value:function(H){var Z=this.media;if(!Z)return;if(!Oi.isBuffered(Z,Z.currentTime)){this.flushMainBuffer(0,H.start);return}var re=Z.currentTime,ve=Oi.bufferInfo(Z,re,0),Te=H.duration,ze=Math.min(this.config.maxFragLookUpTolerance*2,Te*.25),st=Math.max(Math.min(H.start-ze,ve.end-ze),re+ze);H.start-st>ze&&this.flushMainBuffer(st,H.start)}},{key:"getFwdBufferInfo",value:function(H,Z){var re=this.getLoadPosition();return T(re)?this.getFwdBufferInfoAtPos(H,re,Z):null}},{key:"getFwdBufferInfoAtPos",value:function(H,Z,re){var ve=this.config.maxBufferHole,Te=Oi.bufferInfo(H,Z,ve);if(Te.len===0&&Te.nextStart!==void 0){var ze=this.fragmentTracker.getBufferedFrag(Z,re);if(ze&&Te.nextStart<ze.end)return Oi.bufferInfo(H,Z,Math.max(Te.nextStart,ve))}return Te}},{key:"getMaxBufferLength",value:function(H){var Z=this.config,re;return H?re=Math.max(8*Z.maxBufferSize/H,Z.maxBufferLength):re=Z.maxBufferLength,Math.min(re,Z.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var Z=this.config,re=H||Z.maxBufferLength;return Z.maxMaxBufferLength>=re?(Z.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(Z.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:At.MAIN,re=this.fragmentTracker.getAppendedFrag(H,At.MAIN);return re&&"fragment"in re?re.fragment:re}},{key:"getNextFragment",value:function(H,Z){var re=Z.fragments,ve=re.length;if(!ve)return null;var Te=this.config,ze=re[0].start,st;if(Z.live){var mt=Te.initialLiveManifestSize;if(ve<mt)return this.warn("Not enough fragments to start playback (have: ".concat(ve,", need: ").concat(mt,")")),null;!Z.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(st=this.getInitialLiveFragment(Z,re),this.startPosition=st?this.hls.liveSyncPosition||st.start:H)}else H<=ze&&(st=re[0]);if(!st){var Yt=Te.lowLatencyMode?Z.partEnd:Z.fragmentEnd;st=this.getFragmentAtPosition(H,Yt,Z)}return this.mapToInitFragWhenRequired(st)}},{key:"isLoopLoading",value:function(H,Z){var re=this.fragmentTracker.getState(H);return(re===_t.OK||re===_t.PARTIAL&&!!H.gap)&&this.nextLoadPosition>Z}},{key:"getNextFragmentLoopLoading",value:function(H,Z,re,ve,Te){var ze=H.gap,st=this.getNextFragment(this.nextLoadPosition,Z);if(st===null)return st;if(H=st,ze&&H&&!H.gap&&re.nextStart){var mt=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,re.nextStart,ve);if(mt!==null&&re.len+mt.len>=Te)return this.log('buffer full after gaps in "'.concat(ve,'" playlist starting at sn: ').concat(H.sn)),null}return H}},{key:"mapToInitFragWhenRequired",value:function(H){return H!=null&&H.initSegment&&!(H!=null&&H.initSegment.data)&&!this.bitrateTest?H.initSegment:H}},{key:"getNextPart",value:function(H,Z,re){for(var ve=-1,Te=!1,ze=!0,st=0,mt=H.length;st<mt;st++){var Yt=H[st];if(ze=ze&&!Yt.independent,ve>-1&&re<Yt.start)break;var Tr=Yt.loaded;Tr?ve=-1:(Te||Yt.independent||ze)&&Yt.fragment===Z&&(ve=st),Te=Tr}return ve}},{key:"loadedEndOfParts",value:function(H,Z){var re=H[H.length-1];return re&&Z>re.start&&re.loaded}},{key:"getInitialLiveFragment",value:function(H,Z){var re=this.fragPrevious,ve=null;if(re){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(re.programDateTime)),ve=ba(Z,re.endProgramDateTime,this.config.maxFragLookUpTolerance)),!ve){var Te=re.sn+1;if(Te>=H.startSN&&Te<=H.endSN){var ze=Z[Te-H.startSN];re.cc===ze.cc&&(ve=ze,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(ve.sn)))}ve||(ve=ha(Z,re.cc),ve&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(ve.sn)))}}else{var st=this.hls.liveSyncPosition;st!==null&&(ve=this.getFragmentAtPosition(st,this.bitrateTest?H.fragmentEnd:H.edge,H))}return ve}},{key:"getFragmentAtPosition",value:function(H,Z,re){var ve=this.config,Te=this.fragPrevious,ze=re.fragments,st=re.endSN,mt=re.fragmentHint,Yt=ve.maxFragLookUpTolerance,Tr=re.partList,wr=!!(ve.lowLatencyMode&&Tr!=null&&Tr.length&&mt);wr&&mt&&!this.bitrateTest&&(ze=ze.concat(mt),st=mt.sn);var jr;if(H<Z){var Qr=H>Z-Yt?0:Yt;jr=bi(Te,ze,H,Qr)}else jr=ze[ze.length-1];if(jr){var Cn=jr.sn-re.startSN,Dn=this.fragmentTracker.getState(jr);if((Dn===_t.OK||Dn===_t.PARTIAL&&jr.gap)&&(Te=jr),Te&&jr.sn===Te.sn&&(!wr||Tr[0].fragment.sn>jr.sn)){var Zn=Te&&jr.level===Te.level;if(Zn){var Si=ze[Cn+1];jr.sn<st&&this.fragmentTracker.getState(Si)!==_t.OK?jr=Si:jr=null}}}return jr}},{key:"synchronizeToLiveEdge",value:function(H){var Z=this.config,re=this.media;if(!re)return;var ve=this.hls.liveSyncPosition,Te=re.currentTime,ze=H.fragments[0].start,st=H.edge,mt=Te>=ze-Z.maxFragLookUpTolerance&&Te<=st;if(ve!==null&&re.duration>ve&&(Te<ve||!mt)){var Yt=Z.liveMaxLatencyDuration!==void 0?Z.liveMaxLatencyDuration:Z.liveMaxLatencyDurationCount*H.targetduration;(!mt&&re.readyState<4||Te<st-Yt)&&(this.loadedmetadata||(this.nextLoadPosition=ve),re.readyState&&(this.warn("Playback: ".concat(Te.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(st,", reset currentTime to : ").concat(ve.toFixed(3))),re.currentTime=ve))}}},{key:"alignPlaylists",value:function(H,Z){var re=this.levels,ve=this.levelLastLoaded,Te=this.fragPrevious,ze=ve!==null?re[ve]:null,st=H.fragments.length;if(!st)return this.warn("No fragments in live playlist"),0;var mt=H.fragments[0].start,Yt=!Z,Tr=H.alignedSliding&&T(mt);if(Yt||!Tr&&!mt){Ca(Te,ze,H);var wr=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(wr.toFixed(2)," start-sn: ").concat(Z?Z.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(Te?Te.sn:"na"," fragments: ").concat(st)),wr}return mt}},{key:"waitForCdnTuneIn",value:function(H){var Z=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*Z)}},{key:"setStartPosition",value:function(H,Z){var re=this.startPosition;if(re<Z&&(re=-1),re===-1||this.lastCurrentTime===-1){var ve=this.startTimeOffset!==null,Te=ve?this.startTimeOffset:H.startTimeOffset;Te!==null&&T(Te)?(re=Z+Te,Te<0&&(re+=H.totalduration),re=Math.min(Math.max(Z,re),Z+H.totalduration),this.log("Start time offset ".concat(Te," found in ").concat(ve?"multivariant":"media"," playlist, adjust startPosition to ").concat(re)),this.startPosition=re):H.live?re=this.hls.liveSyncPosition||Z:this.startPosition=re=0,this.lastCurrentTime=re}this.nextLoadPosition=re}},{key:"getLoadPosition",value:function(){var H=this.media,Z=0;return this.loadedmetadata&&H?Z=H.currentTime:this.nextLoadPosition&&(Z=this.nextLoadPosition),Z}},{key:"handleFragLoadAborted",value:function(H,Z){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(Z?" part "+Z.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==Bi.FRAG_LOADING_WAITING_RETRY)&&(this.state=Bi.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,Z){if(Z.chunkMeta&&!Z.frag){var re=this.getCurrentContext(Z.chunkMeta);re&&(Z.frag=re.frag)}var ve=Z.frag;if(!ve||ve.type!==H||!this.levels)return;if(this.fragContextChanged(ve)){var Te;this.warn("Frag load error must match current frag to retry ".concat(ve.url," > ").concat((Te=this.fragCurrent)==null?void 0:Te.url));return}var ze=Z.details===I.FRAG_GAP;ze&&this.fragmentTracker.fragBuffered(ve,!0);var st=Z.errorAction,mt=st||{},Yt=mt.action,Tr=mt.retryCount,wr=Tr===void 0?0:Tr,jr=mt.retryConfig;if(st&&Yt===ra.RetryRequest&&jr){var Qr;this.resetStartWhenNotLoaded((Qr=this.levelLastLoaded)!=null?Qr:ve.level);var Cn=Ri(jr,wr);this.warn("Fragment ".concat(ve.sn," of ").concat(H," ").concat(ve.level," errored with ").concat(Z.details,", retrying loading ").concat(wr+1,"/").concat(jr.maxNumRetry," in ").concat(Cn,"ms")),st.resolved=!0,this.retryDate=self.performance.now()+Cn,this.state=Bi.FRAG_LOADING_WAITING_RETRY}else jr&&st?(this.resetFragmentErrors(H),wr<jr.maxNumRetry?ze||(st.resolved=!0):j.warn("".concat(Z.details," reached or exceeded max retry (").concat(wr,")"))):(st==null?void 0:st.action)===ra.SendAlternateToPenaltyBox?this.state=Bi.WAITING_LEVEL:this.state=Bi.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===Bi.PARSING||this.state===Bi.PARSED){var Z=H.parent,re=this.getFwdBufferInfo(this.mediaBuffer,Z),ve=re&&re.len>.5;ve&&this.reduceMaxBufferLength(re.len);var Te=!ve;return Te&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(Z," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),Te}return!1}},{key:"resetFragmentErrors",value:function(H){H===At.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE)}},{key:"afterBufferFlushed",value:function(H,Z,re){if(!H)return;var ve=Oi.getBuffered(H);this.fragmentTracker.detectEvictedFragments(Z,ve,re),this.state===Bi.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Bi.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var Z=this.levels?this.levels[H].details:null;Z!=null&&Z.live?(this.startPosition=-1,this.setStartPosition(Z,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){var Z;this.warn("The loading context changed while buffering fragment ".concat(H.sn," of level ").concat(H.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded((Z=this.levelLastLoaded)!=null?Z:H.level),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(H,Infinity,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(H,Z,re,ve){var Te=this,ze,st=re.details;if(!st){this.warn("level.details undefined");return}var mt=Object.keys(H.elementaryStreams).reduce(function(Tr,wr){var jr=H.elementaryStreams[wr];if(jr){var Qr=jr.endPTS-jr.startPTS;if(Qr<=0)return Te.warn("Could not parse fragment ".concat(H.sn," ").concat(wr," duration reliably (").concat(Qr,")")),Tr||!1;var Cn=ve?0:vr(st,H,jr.startPTS,jr.endPTS,jr.startDTS,jr.endDTS);return Te.hls.trigger(w.LEVEL_PTS_UPDATED,{details:st,level:re,drift:Cn,type:wr,frag:H,start:jr.startPTS,end:jr.endPTS}),!0}return Tr},!1);if(mt)re.fragmentError=0;else if(((ze=this.transmuxer)==null?void 0:ze.error)===null){var Yt=new Error("Found no media in fragment ".concat(H.sn," of level ").concat(H.level," resetting transmuxer to fallback to playlist timing"));if(re.fragmentError===0&&(re.fragmentError++,H.gap=!0,this.fragmentTracker.removeFragment(H),this.fragmentTracker.fragBuffered(H,!0)),this.warn(Yt.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Yt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(re.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=Bi.PARSED,this.hls.trigger(w.FRAG_PARSED,{frag:H,part:Z})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var Z,re,ve;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((Z=(re=this.levelLastLoaded)!=null?re:(ve=this.fragCurrent)==null?void 0:ve.level)!=null?Z:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var Z=this._state;Z!==H&&(this._state=H,this.log("".concat(Z,"->").concat(H)))}}]),N}(Fi);function oo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Qo(){var Ae=rr();if(!Ae)return!1;var q=oo(),N=Ae&&typeof Ae.isTypeSupported=="function"&&Ae.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),W=!q||q.prototype&&typeof q.prototype.appendBuffer=="function"&&typeof q.prototype.remove=="function";return!!N&&!!W}function mo(){var Ae,q=oo();return typeof(q==null||(Ae=q.prototype)==null?void 0:Ae.changeType)=="function"}function To(){return typeof __HLS_WORKER_BUNDLE__=="function"}function ao(){var Ae=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),q=self.URL.createObjectURL(Ae),N=new self.Worker(q);return{worker:N,objectURL:q}}function So(Ae){var q=new self.URL(Ae,self.location.href).href,N=new self.Worker(q);return{worker:N,scriptURL:q}}function bo(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:Ae,id:-1,pid:-1,inputTimeScale:q,sequenceNumber:-1,samples:[],dropped:0}}var to=function(){function Ae(){Object(n.a)(this,Ae),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}return Object(o.a)(Ae,[{key:"resetInitSegment",value:function(N,W,H,Z){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(N){this.initPTS=N,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(N,W){return!1}},{key:"appendFrame",value:function(N,W,H){}},{key:"demux",value:function(N,W){this.cachedData&&(N=wt(this.cachedData,N),this.cachedData=null);var H=ct(N,0),Z=H?H.length:0,re,ve=this._audioTrack,Te=this._id3Track,ze=H?ut(H):void 0,st=N.length;for((this.basePTS===null||this.frameIndex===0&&T(ze))&&(this.basePTS=Jo(ze,W,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:$r.audioId3,duration:Number.POSITIVE_INFINITY});Z<st;){if(this.canParse(N,Z)){var mt=this.appendFrame(ve,N,Z);mt?(this.frameIndex++,this.lastPTS=mt.sample.pts,Z+=mt.length,re=Z):Z=st}else Zt(N,Z)?(H=ct(N,Z),Te.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:$r.audioId3,duration:Number.POSITIVE_INFINITY}),Z+=H.length,re=Z):Z++;if(Z===st&&re!==st){var Yt=_e(N,re);this.cachedData?this.cachedData=wt(this.cachedData,Yt):this.cachedData=Yt}}return{audioTrack:ve,videoTrack:bo(),id3Track:Te,textTrack:bo()}}},{key:"demuxSampleAes",value:function(N,W,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(N){var W=this.cachedData;return W&&(this.cachedData=null,this.demux(W,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),Ae}(),Jo=function(q,N,W){if(T(q))return q*90;var H=W?W.baseTime*9e4/W.timescale:0;return N*9e4+H};function Uo(Ae,q,N,W){var H,Z,re,ve,Te=navigator.userAgent.toLowerCase(),ze=W,st=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((q[N+2]&192)>>>6)+1;var mt=(q[N+2]&60)>>>2;if(mt>st.length-1){Ae.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(mt)});return}return re=(q[N+2]&1)<<2,re|=(q[N+3]&192)>>>6,j.log("manifest codec:".concat(W,", ADTS type:").concat(H,", samplingIndex:").concat(mt)),/firefox/i.test(Te)?mt>=6?(H=5,ve=new Array(4),Z=mt-3):(H=2,ve=new Array(2),Z=mt):Te.indexOf("android")!==-1?(H=2,ve=new Array(2),Z=mt):(H=5,ve=new Array(4),W&&(W.indexOf("mp4a.40.29")!==-1||W.indexOf("mp4a.40.5")!==-1)||!W&&mt>=6?Z=mt-3:((W&&W.indexOf("mp4a.40.2")!==-1&&(mt>=6&&re===1||/vivaldi/i.test(Te))||!W&&re===1)&&(H=2,ve=new Array(2)),Z=mt)),ve[0]=H<<3,ve[0]|=(mt&14)>>1,ve[1]|=(mt&1)<<7,ve[1]|=re<<3,H===5&&(ve[1]|=(Z&14)>>1,ve[2]=(Z&1)<<7,ve[2]|=2<<2,ve[3]=0),{config:ve,samplerate:st[mt],channelCount:re,codec:"mp4a.40."+H,manifestCodec:ze}}function wo(Ae,q){return Ae[q]===255&&(Ae[q+1]&246)===240}function ts(Ae,q){return Ae[q+1]&1?7:9}function Ia(Ae,q){return(Ae[q+3]&3)<<11|Ae[q+4]<<3|(Ae[q+5]&224)>>>5}function Oo(Ae,q){return q+5<Ae.length}function Io(Ae,q){return q+1<Ae.length&&wo(Ae,q)}function os(Ae,q){return Oo(Ae,q)&&wo(Ae,q)&&Ia(Ae,q)<=Ae.length-q}function xo(Ae,q){if(Io(Ae,q)){var N=ts(Ae,q);if(q+N>=Ae.length)return!1;var W=Ia(Ae,q);if(W<=N)return!1;var H=q+W;return H===Ae.length||Io(Ae,H)}return!1}function rs(Ae,q,N,W,H){if(!Ae.samplerate){var Z=Uo(q,N,W,H);if(!Z)return;Ae.config=Z.config,Ae.samplerate=Z.samplerate,Ae.channelCount=Z.channelCount,Ae.codec=Z.codec,Ae.manifestCodec=Z.manifestCodec,j.log("parsed codec:".concat(Ae.codec,", rate:").concat(Z.samplerate,", channels:").concat(Z.channelCount))}}function Ho(Ae){return 1024*9e4/Ae}function _o(Ae,q){var N=ts(Ae,q);if(q+N<=Ae.length){var W=Ia(Ae,q)-N;if(W>0)return{headerLength:N,frameLength:W}}}function uo(Ae,q,N,W,H){var Z=Ho(Ae.samplerate),re=W+H*Z,ve=_o(q,N),Te;if(ve){var ze=ve.frameLength,st=ve.headerLength,mt=st+ze,Yt=Math.max(0,N+mt-q.length);Yt?(Te=new Uint8Array(mt-st),Te.set(q.subarray(N+st,q.length),0)):Te=q.subarray(N+st,N+mt);var Tr={unit:Te,pts:re};return Yt||Ae.samples.push(Tr),{sample:Tr,length:mt,missing:Yt}}var wr=q.length-N;Te=new Uint8Array(wr),Te.set(q.subarray(N,q.length),0);var jr={unit:Te,pts:re};return{sample:jr,length:wr,missing:-1}}var Ha=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H){var Z;return Object(n.a)(this,N),Z=q.call(this),Z.observer=void 0,Z.config=void 0,Z.observer=W,Z.config=H,Z}return Object(o.a)(N,[{key:"resetInitSegment",value:function(H,Z,re,ve){Object(t.a)(Object(m.a)(N.prototype),"resetInitSegment",this).call(this,H,Z,re,ve),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return os(H,Z)}},{key:"appendFrame",value:function(H,Z,re){rs(H,this.observer,Z,re,H.manifestCodec);var ve=uo(H,Z,re,this.basePTS,this.frameIndex);if(ve&&ve.missing===0)return ve}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ct(H,0)||[],re=Z.length,ve=H.length;re<ve;re++)if(xo(H,re))return j.log("ADTS sync word found !"),!0;return!1}}]),N}(to),vt=/\/emsg[-/]ID3/i,Er=function(){function Ae(q,N){Object(n.a)(this,Ae),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=N}return Object(o.a)(Ae,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(N,W,H,Z){var re=this.videoTrack=bo("video",1),ve=this.audioTrack=bo("audio",1),Te=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(N!=null&&N.byteLength))return;var ze=Or(N);if(ze.video){var st=ze.video,mt=st.id,Yt=st.timescale,Tr=st.codec;re.id=mt,re.timescale=Te.timescale=Yt,re.codec=Tr}if(ze.audio){var wr=ze.audio,jr=wr.id,Qr=wr.timescale,Cn=wr.codec;ve.id=jr,ve.timescale=Qr,ve.codec=Cn}Te.id=Jt.text,re.sampleDuration=0,re.duration=ve.duration=Z}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(N,W){this.timeOffset=W;var H=N,Z=this.videoTrack,re=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=wt(this.remainderData,N));var ve=Xt(H);this.remainderData=ve.remainder,Z.samples=ve.valid||new Uint8Array}else Z.samples=H;var Te=this.extractID3Track(Z,W);return re.samples=De(W,Z),{videoTrack:Z,audioTrack:this.audioTrack,id3Track:Te,textTrack:this.txtTrack}}},{key:"flush",value:function(){var N=this.timeOffset,W=this.videoTrack,H=this.txtTrack;W.samples=this.remainderData||new Uint8Array,this.remainderData=null;var Z=this.extractID3Track(W,this.timeOffset);return H.samples=De(N,W),{videoTrack:W,audioTrack:bo(),id3Track:Z,textTrack:bo()}}},{key:"extractID3Track",value:function(N,W){var H=this.id3Track;if(N.samples.length){var Z=ft(N.samples,["emsg"]);Z&&Z.forEach(function(re){var ve=sr(re);if(vt.test(ve.schemeIdUri)){var Te=T(ve.presentationTime)?ve.presentationTime/ve.timeScale:W+ve.presentationTimeDelta/ve.timeScale,ze=ve.eventDuration===4294967295?Number.POSITIVE_INFINITY:ve.eventDuration/ve.timeScale;ze<=.001&&(ze=Number.POSITIVE_INFINITY);var st=ve.payload;H.samples.push({data:st,len:st.byteLength,dts:Te,pts:Te,type:$r.emsg,duration:ze})}})}return H}},{key:"demuxSampleAes",value:function(N,W,H){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(N){return N=N.length>16384?N.subarray(0,16384):N,ft(N,["moof"]).length>0}}]),Ae}(),qr=null,Gr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Qn=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],un=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],zr=[0,1,1,4];function ni(Ae,q,N,W,H){if(N+24>q.length)return;var Z=rn(q,N);if(Z&&N+Z.frameLength<=q.length){var re=Z.samplesPerFrame*9e4/Z.sampleRate,ve=W+H*re,Te={unit:q.subarray(N,N+Z.frameLength),pts:ve,dts:ve};return Ae.config=[],Ae.channelCount=Z.channelCount,Ae.samplerate=Z.sampleRate,Ae.samples.push(Te),{sample:Te,length:Z.frameLength,missing:0}}}function rn(Ae,q){var N=Ae[q+1]>>3&3,W=Ae[q+1]>>1&3,H=Ae[q+2]>>4&15,Z=Ae[q+2]>>2&3;if(N!==1&&H!==0&&H!==15&&Z!==3){var re=Ae[q+2]>>1&1,ve=Ae[q+3]>>6,Te=N===3?3-W:W===3?3:4,ze=Gr[Te*14+H-1]*1e3,st=N===3?0:N===2?1:2,mt=Qn[st*3+Z],Yt=ve===3?1:2,Tr=un[N][W],wr=zr[W],jr=Tr*8*wr,Qr=Math.floor(Tr*ze/mt+re)*wr;if(qr===null){var Cn=navigator.userAgent||"",Dn=Cn.match(/Chrome\/(\d+)/i);qr=Dn?parseInt(Dn[1]):0}var Zn=!!qr&&qr<=87;return Zn&&W===2&&ze>=224e3&&ve===0&&(Ae[q+3]=Ae[q+3]|128),{sampleRate:mt,channelCount:Yt,frameLength:Qr,samplesPerFrame:jr}}}function Kn(Ae,q){return Ae[q]===255&&(Ae[q+1]&224)===224&&(Ae[q+1]&6)!==0}function li(Ae,q){return q+1<Ae.length&&Kn(Ae,q)}function ci(Ae,q){var N=4;return Kn(Ae,q)&&N<=Ae.length-q}function si(Ae,q){if(q+1<Ae.length&&Kn(Ae,q)){var N=4,W=rn(Ae,q),H=N;W!=null&&W.frameLength&&(H=W.frameLength);var Z=q+H;return Z===Ae.length||li(Ae,Z)}return!1}var Ci=function(){function Ae(q){Object(n.a)(this,Ae),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=q,this.bytesAvailable=q.byteLength,this.word=0,this.bitsAvailable=0}return Object(o.a)(Ae,[{key:"loadWord",value:function(){var N=this.data,W=this.bytesAvailable,H=N.byteLength-W,Z=new Uint8Array(4),re=Math.min(4,W);if(re===0)throw new Error("no bytes available");Z.set(N.subarray(H,H+re)),this.word=new DataView(Z.buffer).getUint32(0),this.bitsAvailable=re*8,this.bytesAvailable-=re}},{key:"skipBits",value:function(N){var W;N=Math.min(N,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>N?(this.word<<=N,this.bitsAvailable-=N):(N-=this.bitsAvailable,W=N>>3,N-=W<<3,this.bytesAvailable-=W,this.loadWord(),this.word<<=N,this.bitsAvailable-=N)}},{key:"readBits",value:function(N){var W=Math.min(this.bitsAvailable,N),H=this.word>>>32-W;if(N>32&&j.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=W,this.bitsAvailable>0)this.word<<=W;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return W=N-W,W>0&&this.bitsAvailable?H<<W|this.readBits(W):H}},{key:"skipLZ",value:function(){var N;for(N=0;N<this.bitsAvailable;++N)if((this.word&2147483648>>>N)!==0)return this.word<<=N,this.bitsAvailable-=N,N;return this.loadWord(),N+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var N=this.skipLZ();return this.readBits(N+1)-1}},{key:"readEG",value:function(){var N=this.readUEG();return 1&N?1+N>>>1:-1*(N>>>1)}},{key:"readBoolean",value:function(){return this.readBits(1)===1}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(N){for(var W=8,H=8,Z,re=0;re<N;re++)H!==0&&(Z=this.readEG(),H=(W+Z+256)%256),W=H===0?W:H}},{key:"readSPS",value:function(){var N=0,W=0,H=0,Z=0,re,ve,Te,ze=this.readUByte.bind(this),st=this.readBits.bind(this),mt=this.readUEG.bind(this),Yt=this.readBoolean.bind(this),Tr=this.skipBits.bind(this),wr=this.skipEG.bind(this),jr=this.skipUEG.bind(this),Qr=this.skipScalingList.bind(this);ze();var Cn=ze();if(st(5),Tr(3),ze(),jr(),Cn===100||Cn===110||Cn===122||Cn===244||Cn===44||Cn===83||Cn===86||Cn===118||Cn===128){var Dn=mt();if(Dn===3&&Tr(1),jr(),jr(),Tr(1),Yt())for(ve=Dn!==3?8:12,Te=0;Te<ve;Te++)Yt()&&(Te<6?Qr(16):Qr(64))}jr();var Zn=mt();if(Zn===0)mt();else if(Zn===1)for(Tr(1),wr(),wr(),re=mt(),Te=0;Te<re;Te++)wr();jr(),Tr(1);var Si=mt(),ua=mt(),Vi=st(1);Vi===0&&Tr(1),Tr(1),Yt()&&(N=mt(),W=mt(),H=mt(),Z=mt());var Zi=[1,1];if(Yt()&&Yt()){var ka=ze();switch(ka){case 1:Zi=[1,1];break;case 2:Zi=[12,11];break;case 3:Zi=[10,11];break;case 4:Zi=[16,11];break;case 5:Zi=[40,33];break;case 6:Zi=[24,11];break;case 7:Zi=[20,11];break;case 8:Zi=[32,11];break;case 9:Zi=[80,33];break;case 10:Zi=[18,11];break;case 11:Zi=[15,11];break;case 12:Zi=[64,33];break;case 13:Zi=[160,99];break;case 14:Zi=[4,3];break;case 15:Zi=[3,2];break;case 16:Zi=[2,1];break;case 255:{Zi=[ze()<<8|ze(),ze()<<8|ze()];break}}}return{width:Math.ceil((Si+1)*16-N*2-W*2),height:(2-Vi)*(ua+1)*16-(Vi?2:4)*(H+Z),pixelRatio:Zi}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),Ae}(),mi=function(){function Ae(q,N,W){Object(n.a)(this,Ae),this.keyData=void 0,this.decrypter=void 0,this.keyData=W,this.decrypter=new _a(N,{removePKCS7Padding:!1})}return Object(o.a)(Ae,[{key:"decryptBuffer",value:function(N){return this.decrypter.decrypt(N,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(N,W,H){var Z=this,re=N[W].unit;if(re.length<=16)return;var ve=re.subarray(16,re.length-re.length%16),Te=ve.buffer.slice(ve.byteOffset,ve.byteOffset+ve.length);this.decryptBuffer(Te).then(function(ze){var st=new Uint8Array(ze);re.set(st,16),Z.decrypter.isSync()||Z.decryptAacSamples(N,W+1,H)})}},{key:"decryptAacSamples",value:function(N,W,H){for(;;W++){if(W>=N.length){H();return}if(N[W].unit.length<32)continue;if(this.decryptAacSample(N,W,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(N){for(var W=Math.floor((N.length-48)/160)*16+16,H=new Int8Array(W),Z=0,re=32;re<N.length-16;re+=160,Z+=16)H.set(N.subarray(re,re+16),Z);return H}},{key:"getAvcDecryptedUnit",value:function(N,W){for(var H=new Uint8Array(W),Z=0,re=32;re<N.length-16;re+=160,Z+=16)N.set(H.subarray(Z,Z+16),re);return N}},{key:"decryptAvcSample",value:function(N,W,H,Z,re){var ve=this,Te=yt(re.data),ze=this.getAvcEncryptedData(Te);this.decryptBuffer(ze.buffer).then(function(st){re.data=ve.getAvcDecryptedUnit(Te,st),ve.decrypter.isSync()||ve.decryptAvcSamples(N,W,H+1,Z)})}},{key:"decryptAvcSamples",value:function(N,W,H,Z){if(N instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;W++,H=0){if(W>=N.length){Z();return}for(var re=N[W].units;!(H>=re.length);H++){var ve=re[H];if(ve.data.length<=48||ve.type!==1&&ve.type!==5)continue;if(this.decryptAvcSample(N,W,H,Z,ve),!this.decrypter.isSync())return}}}}]),Ae}(),yi=188,Ni=function(){function Ae(q,N,W){Object(n.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=q,this.config=N,this.typeSupported=W}return Object(o.a)(Ae,[{key:"resetInitSegment",value:function(N,W,H,Z){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=Ae.createTrack("video"),this._audioTrack=Ae.createTrack("audio",Z),this._id3Track=Ae.createTrack("id3"),this._txtTrack=Ae.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=W,this.videoCodec=H,this._duration=Z}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var N=this._audioTrack,W=this._avcTrack,H=this._id3Track;N&&(N.pesData=null),W&&(W.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(N,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var re,ve=this._avcTrack,Te=this._audioTrack,ze=this._id3Track,st=this._txtTrack,mt=ve.pid,Yt=ve.pesData,Tr=Te.pid,wr=ze.pid,jr=Te.pesData,Qr=ze.pesData,Cn=null,Dn=this.pmtParsed,Zn=this._pmtId,Si=N.length;if(this.remainderData&&(N=wt(this.remainderData,N),Si=N.length,this.remainderData=null),Si<yi&&!Z)return this.remainderData=N,{audioTrack:Te,videoTrack:ve,id3Track:ze,textTrack:st};var ua=Math.max(0,Ae.syncOffset(N));Si-=(Si-ua)%yi,Si<N.byteLength&&!Z&&(this.remainderData=new Uint8Array(N.buffer,Si,N.buffer.byteLength-Si));for(var Vi=0,Zi=ua;Zi<Si;Zi+=yi)if(N[Zi]===71){var ka=!!(N[Zi+1]&64),Ga=Ki(N,Zi),Ba=(N[Zi+3]&48)>>4,Sa=void 0;if(Ba>1){if(Sa=Zi+5+N[Zi+4],Sa===Zi+yi)continue}else Sa=Zi+4;switch(Ga){case mt:ka&&(Yt&&(re=xa(Yt))&&this.parseAVCPES(ve,st,re,!1),Yt={data:[],size:0}),Yt&&(Yt.data.push(N.subarray(Sa,Zi+yi)),Yt.size+=Zi+yi-Sa);break;case Tr:if(ka){if(jr&&(re=xa(jr)))switch(Te.segmentCodec){case"aac":this.parseAACPES(Te,re);break;case"mp3":this.parseMPEGPES(Te,re);break}jr={data:[],size:0}}jr&&(jr.data.push(N.subarray(Sa,Zi+yi)),jr.size+=Zi+yi-Sa);break;case wr:ka&&(Qr&&(re=xa(Qr))&&this.parseID3PES(ze,re),Qr={data:[],size:0}),Qr&&(Qr.data.push(N.subarray(Sa,Zi+yi)),Qr.size+=Zi+yi-Sa);break;case 0:ka&&(Sa+=N[Sa]+1),Zn=this._pmtId=fa(N,Sa);break;case Zn:{ka&&(Sa+=N[Sa]+1);var Go=Ya(N,Sa,this.typeSupported,H);mt=Go.avc,mt>0&&(ve.pid=mt),Tr=Go.audio,Tr>0&&(Te.pid=Tr,Te.segmentCodec=Go.segmentCodec),wr=Go.id3,wr>0&&(ze.pid=wr),Cn!==null&&!Dn&&(j.warn("MPEG-TS PMT found at ".concat(Zi," after unknown PID '").concat(Cn,"'. Backtracking to sync byte @").concat(ua," to parse all TS packets.")),Cn=null,Zi=ua-188),Dn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Cn=Ga;break}}else Vi++;if(Vi>0){var bs=new Error("Found ".concat(Vi," TS packet/s that do not start with 0x47"));this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}ve.pesData=Yt,Te.pesData=jr,ze.pesData=Qr;var ys={audioTrack:Te,videoTrack:ve,id3Track:ze,textTrack:st};return Z&&this.extractRemainingSamples(ys),ys}},{key:"flush",value:function(){var N=this.remainderData;this.remainderData=null;var W;return N?W=this.demux(N,-1,!1,!0):W={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(W),this.sampleAes?this.decrypt(W,this.sampleAes):W}},{key:"extractRemainingSamples",value:function(N){var W=N.audioTrack,H=N.videoTrack,Z=N.id3Track,re=N.textTrack,ve=H.pesData,Te=W.pesData,ze=Z.pesData,st;if(ve&&(st=xa(ve))?(this.parseAVCPES(H,re,st,!0),H.pesData=null):H.pesData=ve,Te&&(st=xa(Te))){switch(W.segmentCodec){case"aac":this.parseAACPES(W,st);break;case"mp3":this.parseMPEGPES(W,st);break}W.pesData=null}else Te!=null&&Te.size&&j.log("last AAC PES packet truncated,might overlap between fragments"),W.pesData=Te;ze&&(st=xa(ze))?(this.parseID3PES(Z,st),Z.pesData=null):Z.pesData=ze}},{key:"demuxSampleAes",value:function(N,W,H){var Z=this.demux(N,H,!0,!this.config.progressive),re=this.sampleAes=new mi(this.observer,this.config,W);return this.decrypt(Z,re)}},{key:"decrypt",value:function(N,W){return new Promise(function(H){var Z=N.audioTrack,re=N.videoTrack;Z.samples&&Z.segmentCodec==="aac"?W.decryptAacSamples(Z.samples,0,function(){re.samples?W.decryptAvcSamples(re.samples,0,0,function(){H(N)}):H(N)}):re.samples&&W.decryptAvcSamples(re.samples,0,0,function(){H(N)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(N,W,H,Z){var re=this,ve=this.parseAVCNALu(N,H.data),Te=this.avcSample,ze,st=!1;H.data=null,Te&&ve.length&&!N.audFound&&(wa(Te,N),Te=this.avcSample=ia(!1,H.pts,H.dts,"")),ve.forEach(function(mt){var Yt;switch(mt.type){case 1:{var Tr=!1;ze=!0;var wr=mt.data;if(st&&wr.length>4){var jr=new Ci(wr).readSliceType();(jr===2||jr===4||jr===7||jr===9)&&(Tr=!0)}if(Tr){var Qr;(Qr=Te)!=null&&Qr.frame&&!Te.key&&(wa(Te,N),Te=re.avcSample=null)}Te||(Te=re.avcSample=ia(!0,H.pts,H.dts,"")),Te.frame=!0,Te.key=Tr;break}case 5:ze=!0,(Yt=Te)!=null&&Yt.frame&&!Te.key&&(wa(Te,N),Te=re.avcSample=null),Te||(Te=re.avcSample=ia(!0,H.pts,H.dts,"")),Te.key=!0,Te.frame=!0;break;case 6:{ze=!0,nt(mt.data,1,H.pts,W.samples);break}case 7:if(ze=!0,st=!0,!N.sps){var Cn=mt.data,Dn=new Ci(Cn),Zn=Dn.readSPS();N.width=Zn.width,N.height=Zn.height,N.pixelRatio=Zn.pixelRatio,N.sps=[Cn],N.duration=re._duration;for(var Si=Cn.subarray(1,4),ua="avc1.",Vi=0;Vi<3;Vi++){var Zi=Si[Vi].toString(16);Zi.length<2&&(Zi="0"+Zi),ua+=Zi}N.codec=ua}break;case 8:ze=!0,N.pps||(N.pps=[mt.data]);break;case 9:ze=!1,N.audFound=!0,Te&&wa(Te,N),Te=re.avcSample=ia(!1,H.pts,H.dts,"");break;case 12:ze=!0;break;default:ze=!1,Te&&(Te.debug+="unknown NAL "+mt.type+" ");break}if(Te&&ze){var ka=Te.units;ka.push(mt)}}),Z&&Te&&(wa(Te,N),this.avcSample=null)}},{key:"getLastNalUnit",value:function(N){var W,H=this.avcSample,Z;if((!H||H.units.length===0)&&(H=N[N.length-1]),(W=H)!=null&&W.units){var re=H.units;Z=re[re.length-1]}return Z}},{key:"parseAVCNALu",value:function(N,W){var H=W.byteLength,Z=N.naluState||0,re=Z,ve=[],Te=0,ze,st,mt,Yt=-1,Tr=0;for(Z===-1&&(Yt=0,Tr=W[0]&31,Z=0,Te=1);Te<H;){if(ze=W[Te++],!Z){Z=ze?0:1;continue}if(Z===1){Z=ze?0:2;continue}if(!ze)Z=3;else if(ze===1){if(Yt>=0){var wr={data:W.subarray(Yt,Te-Z-1),type:Tr};ve.push(wr)}else{var jr=this.getLastNalUnit(N.samples);if(jr&&(re&&Te<=4-re&&(jr.state&&(jr.data=jr.data.subarray(0,jr.data.byteLength-re))),st=Te-Z-1,st>0)){var Qr=new Uint8Array(jr.data.byteLength+st);Qr.set(jr.data,0),Qr.set(W.subarray(0,st),jr.data.byteLength),jr.data=Qr,jr.state=0}}Te<H?(mt=W[Te]&31,Yt=Te,Tr=mt,Z=0):Z=-1}else Z=0}if(Yt>=0&&Z>=0){var Cn={data:W.subarray(Yt,H),type:Tr,state:Z};ve.push(Cn)}if(ve.length===0){var Dn=this.getLastNalUnit(N.samples);if(Dn){var Zn=new Uint8Array(Dn.data.byteLength+W.byteLength);Zn.set(Dn.data,0),Zn.set(W,Dn.data.byteLength),Dn.data=Zn}}return N.naluState=Z,ve}},{key:"parseAACPES",value:function(N,W){var H=0,Z=this.aacOverFlow,re=W.data;if(Z){this.aacOverFlow=null;var ve=Z.missing,Te=Z.sample.unit.byteLength;if(ve===-1){var ze=new Uint8Array(Te+re.byteLength);ze.set(Z.sample.unit,0),ze.set(re,Te),re=ze}else{var st=Te-ve;Z.sample.unit.set(re.subarray(0,ve),st),N.samples.push(Z.sample),H=Z.missing}}var mt,Yt;for(mt=H,Yt=re.length;mt<Yt-1&&!Io(re,mt);mt++);if(mt!==H){var Tr,wr=mt<Yt-1;wr?Tr="AAC PES did not start with ADTS header,offset:".concat(mt):Tr="No ADTS header found in AAC PES";var jr=new Error(Tr);if(j.warn("parsing error: ".concat(Tr)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,levelRetry:wr,error:jr,reason:Tr}),!wr)return}rs(N,this.observer,re,mt,this.audioCodec);var Qr;if(W.pts!==void 0)Qr=W.pts;else if(Z){var Cn=Ho(N.samplerate);Qr=Z.sample.pts+Cn}else{j.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Dn=0,Zn;mt<Yt;)if(Zn=uo(N,re,mt,Qr,Dn),mt+=Zn.length,Zn.missing){this.aacOverFlow=Zn;break}else for(Dn++;mt<Yt-1&&!Io(re,mt);mt++);}},{key:"parseMPEGPES",value:function(N,W){var H=W.data,Z=H.length,re=0,ve=0,Te=W.pts;if(Te===void 0){j.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;ve<Z;)if(li(H,ve)){var ze=ni(N,H,ve,Te,re);if(ze)ve+=ze.length,re++;else break}else ve++}},{key:"parseID3PES",value:function(N,W){if(W.pts===void 0){j.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=E({},W,{type:this._avcTrack?$r.emsg:$r.audioId3,duration:Number.POSITIVE_INFINITY});N.samples.push(H)}}],[{key:"probe",value:function(N){var W=Ae.syncOffset(N);return W>0&&j.warn("MPEG2-TS detected but first sync word found @ offset ".concat(W)),W!==-1}},{key:"syncOffset",value:function(N){for(var W=N.length,H=Math.min(yi*5,N.length-yi)+1,Z=0;Z<H;){for(var re=!1,ve=-1,Te=0,ze=Z;ze<W;ze+=yi)if(N[ze]===71){if(Te++,ve===-1&&(ve=ze,ve!==0&&(H=Math.min(ve+yi*99,N.length-yi)+1)),re||(re=Ki(N,ze)===0),re&&Te>1&&(ve===0&&Te>2||ze+yi>H))return ve}else{if(Te)return-1;break}Z++}return-1}},{key:"createTrack",value:function(N,W){return{container:N==="video"||N==="audio"?"video/mp2t":void 0,type:N,id:Jt[N],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:N==="audio"?W:void 0}}}]),Ae}();function ia(Ae,q,N,W){return{key:Ae,frame:!1,pts:q,dts:N,units:[],debug:W,length:0}}function Ki(Ae,q){return((Ae[q+1]&31)<<8)+Ae[q+2]}function fa(Ae,q){return(Ae[q+10]&31)<<8|Ae[q+11]}function Ya(Ae,q,N,W){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},Z=(Ae[q+1]&15)<<8|Ae[q+2],re=q+3+Z-4,ve=(Ae[q+10]&15)<<8|Ae[q+11];for(q+=12+ve;q<re;){var Te=Ki(Ae,q);switch(Ae[q]){case 207:if(!W){j.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=Te);break;case 21:H.id3===-1&&(H.id3=Te);break;case 219:if(!W){j.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=Te);break;case 3:case 4:N.mpeg!==!0&&N.mp3!==!0?j.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=Te,H.segmentCodec="mp3");break;case 36:j.warn("Unsupported HEVC stream type found");break}q+=((Ae[q+3]&15)<<8|Ae[q+4])+5}return H}function xa(Ae){var q=0,N,W,H,Z,re,ve=Ae.data;if(!Ae||Ae.size===0)return null;for(;ve[0].length<19&&ve.length>1;){var Te=new Uint8Array(ve[0].length+ve[1].length);Te.set(ve[0]),Te.set(ve[1],ve[0].length),ve[0]=Te,ve.splice(1,1)}N=ve[0];var ze=(N[0]<<16)+(N[1]<<8)+N[2];if(ze===1){if(W=(N[4]<<8)+N[5],W&&W>Ae.size-6)return null;var st=N[7];st&192&&(Z=(N[9]&14)*536870912+(N[10]&255)*4194304+(N[11]&254)*16384+(N[12]&255)*128+(N[13]&254)/2,st&64?(re=(N[14]&14)*536870912+(N[15]&255)*4194304+(N[16]&254)*16384+(N[17]&255)*128+(N[18]&254)/2,Z-re>60*9e4&&(j.warn("".concat(Math.round((Z-re)/9e4),"s delta between PTS and DTS, align them")),Z=re)):re=Z),H=N[8];var mt=H+9;if(Ae.size<=mt)return null;Ae.size-=mt;for(var Yt=new Uint8Array(Ae.size),Tr=0,wr=ve.length;Tr<wr;Tr++){N=ve[Tr];var jr=N.byteLength;if(mt)if(mt>jr){mt-=jr;continue}else N=N.subarray(mt),jr-=mt,mt=0;Yt.set(N,q),q+=jr}return W&&(W-=H+3),{data:Yt,pts:Z,dts:re,len:W}}return null}function wa(Ae,q){if(Ae.units.length&&Ae.frame){if(Ae.pts===void 0){var N=q.samples,W=N.length;if(W){var H=N[W-1];Ae.pts=H.pts,Ae.dts=H.dts}else{q.dropped++;return}}q.samples.push(Ae)}Ae.debug.length&&j.log(Ae.pts+"/"+Ae.dts+":"+Ae.debug)}var Da=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(){return Object(n.a)(this,N),q.apply(this,arguments)}return Object(o.a)(N,[{key:"resetInitSegment",value:function(H,Z,re,ve){Object(t.a)(Object(m.a)(N.prototype),"resetInitSegment",this).call(this,H,Z,re,ve),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:Z,duration:ve,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,Z){return ci(H,Z)}},{key:"appendFrame",value:function(H,Z,re){return this.basePTS===null?void 0:ni(H,Z,re,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var Z=ct(H,0)||[],re=Z.length,ve=H.length;re<ve;re++)if(si(H,re))return j.log("MPEG Audio sync word found !"),!0;return!1}}]),N}(to),ja=function(){function Ae(){Object(n.a)(this,Ae)}return Object(o.a)(Ae,null,[{key:"getSilentFrame",value:function(N,W){switch(N){case"mp4a.40.2":if(W===1)return new Uint8Array([0,200,0,128,35,128]);if(W===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(W===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(W===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(W===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(W===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(W===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(W===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return}}]),Ae}(),ko=Math.pow(2,32)-1,ro=function(){function Ae(){Object(n.a)(this,Ae)}return Object(o.a)(Ae,null,[{key:"init",value:function(){Ae.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var N;for(N in Ae.types)Ae.types.hasOwnProperty(N)&&(Ae.types[N]=[N.charCodeAt(0),N.charCodeAt(1),N.charCodeAt(2),N.charCodeAt(3)]);var W=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),H=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Ae.HDLR_TYPES={video:W,audio:H};var Z=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),re=new Uint8Array([0,0,0,0,0,0,0,0]);Ae.STTS=Ae.STSC=Ae.STCO=re,Ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ae.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var ve=new Uint8Array([105,115,111,109]),Te=new Uint8Array([97,118,99,49]),ze=new Uint8Array([0,0,0,1]);Ae.FTYP=Ae.box(Ae.types.ftyp,ve,ze,ve,Te),Ae.DINF=Ae.box(Ae.types.dinf,Ae.box(Ae.types.dref,Z))}},{key:"box",value:function(N){for(var W=8,H=arguments.length,Z=new Array(H>1?H-1:0),re=1;re<H;re++)Z[re-1]=arguments[re];for(var ve=Z.length,Te=ve;ve--;)W+=Z[ve].byteLength;var ze=new Uint8Array(W);for(ze[0]=W>>24&255,ze[1]=W>>16&255,ze[2]=W>>8&255,ze[3]=W&255,ze.set(N,4),ve=0,W=8;ve<Te;ve++)ze.set(Z[ve],W),W+=Z[ve].byteLength;return ze}},{key:"hdlr",value:function(N){return Ae.box(Ae.types.hdlr,Ae.HDLR_TYPES[N])}},{key:"mdat",value:function(N){return Ae.box(Ae.types.mdat,N)}},{key:"mdhd",value:function(N,W){W*=N;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1));return Ae.box(Ae.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,N>>24&255,N>>16&255,N>>8&255,N&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,85,196,0,0]))}},{key:"mdia",value:function(N){return Ae.box(Ae.types.mdia,Ae.mdhd(N.timescale,N.duration),Ae.hdlr(N.type),Ae.minf(N))}},{key:"mfhd",value:function(N){return Ae.box(Ae.types.mfhd,new Uint8Array([0,0,0,0,N>>24,N>>16&255,N>>8&255,N&255]))}},{key:"minf",value:function(N){return N.type==="audio"?Ae.box(Ae.types.minf,Ae.box(Ae.types.smhd,Ae.SMHD),Ae.DINF,Ae.stbl(N)):Ae.box(Ae.types.minf,Ae.box(Ae.types.vmhd,Ae.VMHD),Ae.DINF,Ae.stbl(N))}},{key:"moof",value:function(N,W,H){return Ae.box(Ae.types.moof,Ae.mfhd(N),Ae.traf(H,W))}},{key:"moov",value:function(N){for(var W=N.length,H=[];W--;)H[W]=Ae.trak(N[W]);return Ae.box.apply(null,[Ae.types.moov,Ae.mvhd(N[0].timescale,N[0].duration)].concat(H).concat(Ae.mvex(N)))}},{key:"mvex",value:function(N){for(var W=N.length,H=[];W--;)H[W]=Ae.trex(N[W]);return Ae.box.apply(null,[Ae.types.mvex].concat(H))}},{key:"mvhd",value:function(N,W){W*=N;var H=Math.floor(W/(ko+1)),Z=Math.floor(W%(ko+1)),re=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,N>>24&255,N>>16&255,N>>8&255,N&255,H>>24,H>>16&255,H>>8&255,H&255,Z>>24,Z>>16&255,Z>>8&255,Z&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ae.box(Ae.types.mvhd,re)}},{key:"sdtp",value:function(N){var W=N.samples||[],H=new Uint8Array(4+W.length),Z,re;for(Z=0;Z<W.length;Z++)re=W[Z].flags,H[Z+4]=re.dependsOn<<4|re.isDependedOn<<2|re.hasRedundancy;return Ae.box(Ae.types.sdtp,H)}},{key:"stbl",value:function(N){return Ae.box(Ae.types.stbl,Ae.stsd(N),Ae.box(Ae.types.stts,Ae.STTS),Ae.box(Ae.types.stsc,Ae.STSC),Ae.box(Ae.types.stsz,Ae.STSZ),Ae.box(Ae.types.stco,Ae.STCO))}},{key:"avc1",value:function(N){var W=[],H=[],Z,re,ve;for(Z=0;Z<N.sps.length;Z++)re=N.sps[Z],ve=re.byteLength,W.push(ve>>>8&255),W.push(ve&255),W=W.concat(Array.prototype.slice.call(re));for(Z=0;Z<N.pps.length;Z++)re=N.pps[Z],ve=re.byteLength,H.push(ve>>>8&255),H.push(ve&255),H=H.concat(Array.prototype.slice.call(re));var Te=Ae.box(Ae.types.avcC,new Uint8Array([1,W[3],W[4],W[5],252|3,224|N.sps.length].concat(W).concat([N.pps.length]).concat(H))),ze=N.width,st=N.height,mt=N.pixelRatio[0],Yt=N.pixelRatio[1];return Ae.box(Ae.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,ze>>8&255,ze&255,st>>8&255,st&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),Te,Ae.box(Ae.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ae.box(Ae.types.pasp,new Uint8Array([mt>>24,mt>>16&255,mt>>8&255,mt&255,Yt>>24,Yt>>16&255,Yt>>8&255,Yt&255])))}},{key:"esds",value:function(N){var W=N.config.length;return new Uint8Array([0,0,0,0,3,23+W,0,1,0,4,15+W,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([W]).concat(N.config).concat([6,1,2]))}},{key:"mp4a",value:function(N){var W=N.samplerate;return Ae.box(Ae.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,N.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]),Ae.box(Ae.types.esds,Ae.esds(N)))}},{key:"mp3",value:function(N){var W=N.samplerate;return Ae.box(Ae.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,N.channelCount,0,16,0,0,0,0,W>>8&255,W&255,0,0]))}},{key:"stsd",value:function(N){return N.type==="audio"?N.segmentCodec==="mp3"&&N.codec==="mp3"?Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp3(N)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.mp4a(N)):Ae.box(Ae.types.stsd,Ae.STSD,Ae.avc1(N))}},{key:"tkhd",value:function(N){var W=N.id,H=N.duration*N.timescale,Z=N.width,re=N.height,ve=Math.floor(H/(ko+1)),Te=Math.floor(H%(ko+1));return Ae.box(Ae.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,W>>24&255,W>>16&255,W>>8&255,W&255,0,0,0,0,ve>>24,ve>>16&255,ve>>8&255,ve&255,Te>>24,Te>>16&255,Te>>8&255,Te&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Z>>8&255,Z&255,0,0,re>>8&255,re&255,0,0]))}},{key:"traf",value:function(N,W){var H=Ae.sdtp(N),Z=N.id,re=Math.floor(W/(ko+1)),ve=Math.floor(W%(ko+1));return Ae.box(Ae.types.traf,Ae.box(Ae.types.tfhd,new Uint8Array([0,0,0,0,Z>>24,Z>>16&255,Z>>8&255,Z&255])),Ae.box(Ae.types.tfdt,new Uint8Array([1,0,0,0,re>>24,re>>16&255,re>>8&255,re&255,ve>>24,ve>>16&255,ve>>8&255,ve&255])),Ae.trun(N,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(N){return N.duration=N.duration||4294967295,Ae.box(Ae.types.trak,Ae.tkhd(N),Ae.mdia(N))}},{key:"trex",value:function(N){var W=N.id;return Ae.box(Ae.types.trex,new Uint8Array([0,0,0,0,W>>24,W>>16&255,W>>8&255,W&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(N,W){var H=N.samples||[],Z=H.length,re=12+16*Z,ve=new Uint8Array(re),Te,ze,st,mt,Yt,Tr;for(W+=8+re,ve.set([N.type==="video"?1:0,0,15,1,Z>>>24&255,Z>>>16&255,Z>>>8&255,Z&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255],0),Te=0;Te<Z;Te++)ze=H[Te],st=ze.duration,mt=ze.size,Yt=ze.flags,Tr=ze.cts,ve.set([st>>>24&255,st>>>16&255,st>>>8&255,st&255,mt>>>24&255,mt>>>16&255,mt>>>8&255,mt&255,Yt.isLeading<<2|Yt.dependsOn,Yt.isDependedOn<<6|Yt.hasRedundancy<<4|Yt.paddingValue<<1|Yt.isNonSync,Yt.degradPrio&240<<8,Yt.degradPrio&15,Tr>>>24&255,Tr>>>16&255,Tr>>>8&255,Tr&255],12+16*Te);return Ae.box(Ae.types.trun,ve)}},{key:"initSegment",value:function(N){Ae.types||Ae.init();var W=Ae.moov(N),H=new Uint8Array(Ae.FTYP.byteLength+W.byteLength);return H.set(Ae.FTYP),H.set(W,Ae.FTYP.byteLength),H}}]),Ae}();ro.types=void 0,ro.HDLR_TYPES=void 0,ro.STTS=void 0,ro.STSC=void 0,ro.STCO=void 0,ro.STSZ=void 0,ro.VMHD=void 0,ro.SMHD=void 0,ro.STSD=void 0,ro.FTYP=void 0,ro.DINF=void 0;var pa=9e4;function Ea(Ae,q){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=Ae*q*N;return W?Math.round(H):H}function Fa(Ae,q){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ea(Ae,q,1/N,W)}function Ka(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ea(Ae,1e3,1/pa,q)}function lo(Ae){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Ea(Ae,pa,1/q)}var so=10*1e3,Co=1024,Lo=1152,is=null,cs=null,Rs=function(){function Ae(q,N,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(n.a)(this,Ae),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=q,this.config=N,this.typeSupported=W,this.ISGenerated=!1,is===null){var Z=navigator.userAgent||"",re=Z.match(/Chrome\/(\d+)/i);is=re?parseInt(re[1]):0}if(cs===null){var ve=navigator.userAgent.match(/Safari\/(\d+)/i);cs=ve?parseInt(ve[1]):0}}return Object(o.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(N){j.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=N}},{key:"resetNextTimestamp",value:function(){j.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){j.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(N){var W=!1,H=N.reduce(function(Z,re){var ve=re.pts-Z;return ve<-4294967296?(W=!0,Ko(Z,re.pts)):ve>0?Z:re.pts},N[0].pts);return W&&j.debug("PTS rollover detected"),H}},{key:"remux",value:function(N,W,H,Z,re,ve,Te,ze){var st,mt,Yt,Tr,wr,jr,Qr=re,Cn=re,Dn=N.pid>-1,Zn=W.pid>-1,Si=W.samples.length,ua=N.samples.length>0,Vi=Te&&Si>0||Si>1,Zi=(!Dn||ua)&&(!Zn||Vi)||this.ISGenerated||Te;if(Zi){this.ISGenerated||(Yt=this.generateIS(N,W,re,ve));var ka=this.isVideoContiguous,Ga=-1,Ba;if(Vi&&(Ga=as(W.samples),!ka&&this.config.forceKeyFrameOnDiscontinuity))if(jr=!0,Ga>0){j.warn("[mp4-remuxer]: Dropped ".concat(Ga," out of ").concat(Si," video samples due to a missing keyframe"));var Sa=this.getVideoStartPts(W.samples);W.samples=W.samples.slice(Ga),W.dropped+=Ga,Cn+=(W.samples[0].pts-Sa)/W.inputTimeScale,Ba=Cn}else Ga===-1&&(j.warn("[mp4-remuxer]: No keyframe found out of ".concat(Si," video samples")),jr=!1);if(this.ISGenerated){if(ua&&Vi){var Go=this.getVideoStartPts(W.samples),bs=Ko(N.samples[0].pts,Go)-Go,ys=bs/W.inputTimeScale;Qr+=Math.max(0,ys),Cn+=Math.max(0,-ys)}if(ua){if(N.samplerate||(j.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Yt=this.generateIS(N,W,re,ve)),mt=this.remuxAudio(N,Qr,this.isAudioContiguous,ve,Zn||Vi||ze===At.AUDIO?Cn:void 0),Vi){var Cs=mt?mt.endPTS-mt.startPTS:0;W.inputTimeScale||(j.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Yt=this.generateIS(N,W,re,ve)),st=this.remuxVideo(W,Cn,ka,Cs)}}else Vi&&(st=this.remuxVideo(W,Cn,ka,0));st&&(st.firstKeyFrame=Ga,st.independent=Ga!==-1,st.firstKeyFramePTS=Ba)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(wr=co(H,re,this._initPTS,this._initDTS)),Z.samples.length&&(Tr=Ao(Z,re,this._initPTS))),{audio:mt,video:st,initSegment:Yt,independent:jr,text:Tr,id3:wr}}},{key:"generateIS",value:function(N,W,H,Z){var re=N.samples,ve=W.samples,Te=this.typeSupported,ze={},st=this._initPTS,mt=!st||Z,Yt="audio/mp4",Tr,wr,jr;if(mt&&(Tr=wr=Infinity),N.config&&re.length){N.timescale=N.samplerate;switch(N.segmentCodec){case"mp3":Te.mpeg?(Yt="audio/mpeg",N.codec=""):Te.mp3&&(N.codec="mp3");break}ze.audio={id:"audio",container:Yt,codec:N.codec,initSegment:N.segmentCodec==="mp3"&&Te.mpeg?new Uint8Array(0):ro.initSegment([N]),metadata:{channelCount:N.channelCount}},mt&&(jr=N.inputTimeScale,!st||jr!==st.timescale?Tr=wr=re[0].pts-Math.round(jr*H):mt=!1)}if(W.sps&&W.pps&&ve.length&&(W.timescale=W.inputTimeScale,ze.video={id:"main",container:"video/mp4",codec:W.codec,initSegment:ro.initSegment([W]),metadata:{width:W.width,height:W.height}},mt))if(jr=W.inputTimeScale,!st||jr!==st.timescale){var Qr=this.getVideoStartPts(ve),Cn=Math.round(jr*H);wr=Math.min(wr,Ko(ve[0].dts,Qr)-Cn),Tr=Math.min(Tr,Qr-Cn)}else mt=!1;if(Object.keys(ze).length)return this.ISGenerated=!0,mt?(this._initPTS={baseTime:Tr,timescale:jr},this._initDTS={baseTime:wr,timescale:jr}):Tr=jr=void 0,{tracks:ze,initPTS:Tr,timescale:jr}}},{key:"remuxVideo",value:function(N,W,H,Z){var re=N.inputTimeScale,ve=N.samples,Te=[],ze=ve.length,st=this._initPTS,mt=this.nextAvcDts,Yt=8,Tr=this.videoSampleDuration,wr,jr,Qr=Number.POSITIVE_INFINITY,Cn=Number.NEGATIVE_INFINITY,Dn=!1;if(!H||mt===null){var Zn=W*re,Si=ve[0].pts-Ko(ve[0].dts,ve[0].pts);mt=Zn-Si}for(var ua=st.baseTime*re/st.timescale,Vi=0;Vi<ze;Vi++){var Zi=ve[Vi];Zi.pts=Ko(Zi.pts-ua,mt),Zi.dts=Ko(Zi.dts-ua,mt),Zi.dts<ve[Vi>0?Vi-1:Vi].dts&&(Dn=!0)}Dn&&ve.sort(function(Ke,It){var nr=Ke.dts-It.dts,br=Ke.pts-It.pts;return nr||br}),wr=ve[0].dts,jr=ve[ve.length-1].dts;var ka=jr-wr,Ga=ka?Math.round(ka/(ze-1)):Tr||N.inputTimeScale/30;if(H){var Ba=wr-mt,Sa=Ba>Ga,Go=Ba<-1;if((Sa||Go)&&(Sa?j.warn("AVC: ".concat(Ka(Ba,!0)," ms (").concat(Ba,"dts) hole between fragments detected, filling it")):j.warn("AVC: ".concat(Ka(-Ba,!0)," ms (").concat(Ba,"dts) overlapping between fragments detected")),!Go||mt>=ve[0].pts)){wr=mt;var bs=ve[0].pts-Ba;ve[0].dts=wr,ve[0].pts=bs,j.log("Video: First PTS/DTS adjusted: ".concat(Ka(bs,!0),"/").concat(Ka(wr,!0),", delta: ").concat(Ka(Ba,!0)," ms"))}}wr=Math.max(0,wr);for(var ys=0,Cs=0,js=0;js<ze;js++){for(var ws=ve[js],Hs=ws.units,Ee=Hs.length,Qe=0,xt=0;xt<Ee;xt++)Qe+=Hs[xt].data.length;Cs+=Qe,ys+=Ee,ws.length=Qe,ws.dts=Math.max(ws.dts,wr),Qr=Math.min(ws.pts,Qr),Cn=Math.max(ws.pts,Cn)}jr=ve[ze-1].dts;var hr=Cs+4*ys+8,Fr;try{Fr=new Uint8Array(hr)}catch(Ke){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ke,bytes:hr,reason:"fail allocating video mdat ".concat(hr)});return}var on=new DataView(Fr.buffer);on.setUint32(0,hr),Fr.set(ro.types.mdat,4);for(var Be=!1,ie=Number.POSITIVE_INFINITY,Oe=Number.POSITIVE_INFINITY,et=Number.NEGATIVE_INFINITY,bt=Number.NEGATIVE_INFINITY,zt=0;zt<ze;zt++){for(var qt=ve[zt],ar=qt.units,Kr=0,cn=0,Hr=ar.length;cn<Hr;cn++){var Ur=ar[cn],sn=Ur.data,gn=Ur.data.byteLength;on.setUint32(Yt,gn),Yt+=4,Fr.set(sn,Yt),Yt+=gn,Kr+=4+gn}var zn=void 0;if(zt<ze-1)Tr=ve[zt+1].dts-qt.dts,zn=ve[zt+1].pts-qt.pts;else{var Li=this.config,ki=zt>0?qt.dts-ve[zt-1].dts:Ga;if(zn=zt>0?qt.pts-ve[zt-1].pts:Ga,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){var da=Math.floor(Li.maxBufferHole*re),$i=(Z?Qr+Z*re:this.nextAudioPts)-qt.pts;$i>da?(Tr=$i-ki,Tr<0?Tr=ki:Be=!0,j.log("[mp4-remuxer]: It is approximately ".concat($i/90," ms to the next segment; using duration ").concat(Tr/90," ms for the last video frame."))):Tr=ki}else Tr=ki}var Qa=Math.round(qt.pts-qt.dts);ie=Math.min(ie,Tr),et=Math.max(et,Tr),Oe=Math.min(Oe,zn),bt=Math.max(bt,zn),Te.push(new $a(qt.key,Tr,Kr,Qa))}if(Te.length){if(is){if(is<70){var ya=Te[0].flags;ya.dependsOn=2,ya.isNonSync=0}}else if(cs&&(bt-Oe<et-ie&&Ga/et<.025&&Te[0].cts===0)){j.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var fo=wr,za=0,Xo=Te.length;za<Xo;za++){var ls=fo+Te[za].duration,D=fo+Te[za].cts;if(za<Xo-1){var B=ls+Te[za+1].cts;Te[za].duration=B-D}else Te[za].duration=za?Te[za-1].duration:Ga;Te[za].cts=0,fo=ls}}}Tr=Be||!Tr?Ga:Tr,this.nextAvcDts=mt=jr+Tr,this.videoSampleDuration=Tr,this.isVideoContiguous=!0;var ne=ro.moof(N.sequenceNumber++,wr,E({},N,{samples:Te})),ae="video",ge={data1:ne,data2:Fr,startPTS:Qr/re,endPTS:(Cn+Tr)/re,startDTS:wr/re,endDTS:mt/re,type:ae,hasAudio:!1,hasVideo:!0,nb:Te.length,dropped:N.dropped};return N.samples=[],N.dropped=0,ge}},{key:"remuxAudio",value:function(N,W,H,Z,re){var ve=N.inputTimeScale,Te=N.samplerate?N.samplerate:ve,ze=ve/Te,st=N.segmentCodec==="aac"?Co:Lo,mt=st*ze,Yt=this._initPTS,Tr=N.segmentCodec==="mp3"&&this.typeSupported.mpeg,wr=[],jr=re!==void 0,Qr=N.samples,Cn=Tr?0:8,Dn=this.nextAudioPts||-1,Zn=W*ve,Si=Yt.baseTime*ve/Yt.timescale;if(this.isAudioContiguous=H=H||Qr.length&&Dn>0&&(Z&&Math.abs(Zn-Dn)<9e3||Math.abs(Ko(Qr[0].pts-Si,Zn)-Dn)<20*mt),Qr.forEach(function(Ur){Ur.pts=Ko(Ur.pts-Si,Zn)}),!H||Dn<0){if(Qr=Qr.filter(function(Ur){return Ur.pts>=0}),!Qr.length)return;re===0?Dn=0:Z&&!jr?Dn=Math.max(0,Zn):Dn=Qr[0].pts}if(N.segmentCodec==="aac")for(var ua=this.config.maxAudioFramesDrift,Vi=0,Zi=Dn;Vi<Qr.length;Vi++){var ka=Qr[Vi],Ga=ka.pts,Ba=Ga-Zi,Sa=Math.abs(1e3*Ba/ve);if(Ba<=-ua*mt&&jr)Vi===0&&(j.warn("Audio frame @ ".concat((Ga/ve).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ba/ve)," ms.")),this.nextAudioPts=Dn=Zi=Ga);else if(Ba>=ua*mt&&Sa<so&&jr){var Go=Math.round(Ba/mt);Zi=Ga-Go*mt,Zi<0&&(Go--,Zi+=mt),Vi===0&&(this.nextAudioPts=Dn=Zi),j.warn("[mp4-remuxer]: Injecting ".concat(Go," audio frame @ ").concat((Zi/ve).toFixed(3),"s due to ").concat(Math.round(1e3*Ba/ve)," ms gap."));for(var bs=0;bs<Go;bs++){var ys=Math.max(Zi,0),Cs=ja.getSilentFrame(N.manifestCodec||N.codec,N.channelCount);Cs||(j.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Cs=ka.unit.subarray()),Qr.splice(Vi,0,{unit:Cs,pts:ys}),Zi+=mt,Vi++}}ka.pts=Zi,Zi+=mt}for(var js=null,ws=null,Hs,Ee=0,Qe=Qr.length;Qe--;)Ee+=Qr[Qe].unit.byteLength;for(var xt=0,hr=Qr.length;xt<hr;xt++){var Fr=Qr[xt],on=Fr.unit,Be=Fr.pts;if(ws!==null){var ie=wr[xt-1];ie.duration=Math.round((Be-ws)/ze)}else if(H&&N.segmentCodec==="aac"&&(Be=Dn),js=Be,Ee>0){Ee+=Cn;try{Hs=new Uint8Array(Ee)}catch(Ur){this.observer.emit(w.ERROR,w.ERROR,{type:O.MUX_ERROR,details:I.REMUX_ALLOC_ERROR,fatal:!1,error:Ur,bytes:Ee,reason:"fail allocating audio mdat ".concat(Ee)});return}if(!Tr){var Oe=new DataView(Hs.buffer);Oe.setUint32(0,Ee),Hs.set(ro.types.mdat,4)}}else return;Hs.set(on,Cn);var et=on.byteLength;Cn+=et,wr.push(new $a(!0,st,et,0)),ws=Be}var bt=wr.length;if(!bt)return;var zt=wr[wr.length-1];this.nextAudioPts=Dn=ws+ze*zt.duration;var qt=Tr?new Uint8Array(0):ro.moof(N.sequenceNumber++,js/ze,E({},N,{samples:wr}));N.samples=[];var ar=js/ve,Kr=Dn/ve,cn="audio",Hr={data1:qt,data2:Hs,startPTS:ar,endPTS:Kr,startDTS:ar,endDTS:Kr,type:cn,hasAudio:!0,hasVideo:!1,nb:bt};return this.isAudioContiguous=!0,Hr}},{key:"remuxEmptyAudio",value:function(N,W,H,Z){var re=N.inputTimeScale,ve=N.samplerate?N.samplerate:re,Te=re/ve,ze=this.nextAudioPts,st=this._initDTS,mt=st.baseTime*9e4/st.timescale,Yt=(ze!==null?ze:Z.startDTS*re)+mt,Tr=Z.endDTS*re+mt,wr=Te*Co,jr=Math.ceil((Tr-Yt)/wr),Qr=ja.getSilentFrame(N.manifestCodec||N.codec,N.channelCount);if(j.warn("[mp4-remuxer]: remux empty Audio"),!Qr){j.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Cn=[],Dn=0;Dn<jr;Dn++){var Zn=Yt+Dn*wr;Cn.push({unit:Qr,pts:Zn,dts:Zn})}return N.samples=Cn,this.remuxAudio(N,W,H,!1)}}]),Ae}();function Ko(Ae,q){var N;if(q===null)return Ae;for(q<Ae?N=-8589934592:N=8589934592;Math.abs(Ae-q)>4294967296;)Ae+=N;return Ae}function as(Ae){for(var q=0;q<Ae.length;q++)if(Ae[q].key)return q;return-1}function co(Ae,q,N,W){var H=Ae.samples.length;if(!H)return;for(var Z=Ae.inputTimeScale,re=0;re<H;re++){var ve=Ae.samples[re];ve.pts=Ko(ve.pts-N.baseTime*Z/N.timescale,q*Z)/Z,ve.dts=Ko(ve.dts-W.baseTime*Z/W.timescale,q*Z)/Z}var Te=Ae.samples;return Ae.samples=[],{samples:Te}}function Ao(Ae,q,N){var W=Ae.samples.length;if(!W)return;for(var H=Ae.inputTimeScale,Z=0;Z<W;Z++){var re=Ae.samples[Z];re.pts=Ko(re.pts-N.baseTime*H/N.timescale,q*H)/H}Ae.samples.sort(function(Te,ze){return Te.pts-ze.pts});var ve=Ae.samples;return Ae.samples=[],{samples:ve}}var $a=Object(o.a)(function Ae(q,N,W,H){Object(n.a)(this,Ae),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=N,this.size=W,this.cts=H,this.flags=new ss(q)}),ss=Object(o.a)(function Ae(q){Object(n.a)(this,Ae),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=q?2:1,this.isNonSync=q?0:1}),_s=function(){function Ae(){Object(n.a)(this,Ae),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}return Object(o.a)(Ae,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(N){this.initPTS=N,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(N,W,H,Z){this.audioCodec=W,this.videoCodec=H,this.generateInitSegment(an(N,Z)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(N){var W=this.audioCodec,H=this.videoCodec;if(!(N!=null&&N.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var Z=this.initData=Or(N);W||(W=il(Z.audio,ye.AUDIO)),H||(H=il(Z.video,ye.VIDEO));var re={};Z.audio&&Z.video?re.audiovideo={container:"video/mp4",codec:W+","+H,initSegment:N,id:"main"}:Z.audio?re.audio={container:"audio/mp4",codec:W,initSegment:N,id:"audio"}:Z.video?re.video={container:"video/mp4",codec:H,initSegment:N,id:"main"}:j.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=re}},{key:"remux",value:function(N,W,H,Z,re,ve){var Te,ze,st=this.initPTS,mt=this.lastEndTime,Yt={audio:void 0,video:void 0,text:Z,id3:H,initSegment:void 0};T(mt)||(mt=this.lastEndTime=re||0);var Tr=W.samples;if(!(Tr!=null&&Tr.length))return Yt;var wr={initPTS:void 0,timescale:1},jr=this.initData;if((Te=jr)!=null&&Te.length||(this.generateInitSegment(Tr),jr=this.initData),!((ze=jr)!=null&&ze.length))return j.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Yt;this.emitInitSegment&&(wr.tracks=this.initTracks,this.emitInitSegment=!1);var Qr=vi(Tr,jr),Cn=Bn(jr,Tr),Dn=Cn===null?re:Cn;(Fo(st,Dn,re,Qr)||wr.timescale!==st.timescale&&ve)&&(wr.initPTS=Dn-re,st&&st.timescale===1&&j.warn("Adjusting initPTS by ".concat(wr.initPTS-st.baseTime)),this.initPTS=st={baseTime:wr.initPTS,timescale:1});var Zn=N?Dn-st.baseTime/st.timescale:mt,Si=Zn+Qr;Mn(jr,Tr,st.baseTime/st.timescale),Qr>0?this.lastEndTime=Si:(j.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var ua=!!jr.audio,Vi=!!jr.video,Zi="";ua&&(Zi+="audio"),Vi&&(Zi+="video");var ka={data1:Tr,startPTS:Zn,startDTS:Zn,endPTS:Si,endDTS:Si,type:Zi,hasAudio:ua,hasVideo:Vi,nb:1,dropped:0};return Yt.audio=ka.type==="audio"?ka:void 0,Yt.video=ka.type!=="audio"?ka:void 0,Yt.initSegment=wr,Yt.id3=co(H,re,st,st),Z.samples.length&&(Yt.text=Ao(Z,re,st)),Yt}}]),Ae}();function Fo(Ae,q,N,W){if(Ae===null)return!0;var H=Math.max(W,1),Z=q-Ae.baseTime/Ae.timescale;return Math.abs(Z-N)>H}function il(Ae,q){var N=Ae==null?void 0:Ae.codec;return N&&N.length>4?N:N==="hvc1"||N==="hev1"?"hvc1.1.6.L120.90":N==="av01"?"av01.0.04M.08":N==="avc1"||q===ye.VIDEO?"avc1.42e01e":"mp4a.40.5"}var Eo;try{Eo=self.performance.now.bind(self.performance)}catch(Ae){j.debug("Unable to use Performance API on this environment"),Eo=typeof self!="undefined"&&self.Date.now}var zo=[{demux:Er,remux:_s},{demux:Ni,remux:Rs},{demux:Ha,remux:Rs},{demux:Da,remux:Rs}],Fs=function(){function Ae(q,N,W,H,Z){Object(n.a)(this,Ae),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=q,this.typeSupported=N,this.config=W,this.vendor=H,this.id=Z}return Object(o.a)(Ae,[{key:"configure",value:function(N){this.transmuxConfig=N,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(N,W,H,Z){var re=this,ve=H.transmuxing;ve.executeStart=Eo();var Te=new Uint8Array(N),ze=this.currentTransmuxState,st=this.transmuxConfig;Z&&(this.currentTransmuxState=Z);var mt=Z||ze,Yt=mt.contiguous,Tr=mt.discontinuity,wr=mt.trackSwitch,jr=mt.accurateTimeOffset,Qr=mt.timeOffset,Cn=mt.initSegmentChange,Dn=st.audioCodec,Zn=st.videoCodec,Si=st.defaultInitPts,ua=st.duration,Vi=st.initSegmentData,Zi=ms(Te,W);if(Zi&&Zi.method==="AES-128"){var ka=this.getDecrypter();if(ka.isSync()){var Ga=ka.softwareDecrypt(Te,Zi.key.buffer,Zi.iv.buffer),Ba=H.part>-1;if(Ba&&(Ga=ka.flush()),!Ga)return ve.executeEnd=Eo(),hs(H);Te=new Uint8Array(Ga)}else return this.decryptionPromise=ka.webCryptoDecrypt(Te,Zi.key.buffer,Zi.iv.buffer).then(function(Cs){var js=re.push(Cs,null,H);return re.decryptionPromise=null,js}),this.decryptionPromise}var Sa=this.needsProbing(Tr,wr);if(Sa){var Go=this.configureTransmuxer(Te);if(Go)return j.warn("[transmuxer] ".concat(Go.message)),this.observer.emit(w.ERROR,w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,fatal:!1,error:Go,reason:Go.message}),ve.executeEnd=Eo(),hs(H)}(Tr||wr||Cn||Sa)&&this.resetInitSegment(Vi,Dn,Zn,ua,W),(Tr||Cn||Sa)&&this.resetInitialTimestamp(Si),Yt||this.resetContiguity();var bs=this.transmux(Te,Zi,Qr,jr,H),ys=this.currentTransmuxState;return ys.contiguous=!0,ys.discontinuity=!1,ys.trackSwitch=!1,ve.executeEnd=Eo(),bs}},{key:"flush",value:function(N){var W=this,H=N.transmuxing;H.executeStart=Eo();var Z=this.decrypter,re=this.currentTransmuxState,ve=this.decryptionPromise;if(ve)return ve.then(function(){return W.flush(N)});var Te=[],ze=re.timeOffset;if(Z){var st=Z.flush();st&&Te.push(this.push(st,null,N))}var mt=this.demuxer,Yt=this.remuxer;if(!mt||!Yt)return H.executeEnd=Eo(),[hs(N)];var Tr=mt.flush(ze);return An(Tr)?Tr.then(function(wr){return W.flushRemux(Te,wr,N),Te}):(this.flushRemux(Te,Tr,N),Te)}},{key:"flushRemux",value:function(N,W,H){var Z=W.audioTrack,re=W.videoTrack,ve=W.id3Track,Te=W.textTrack,ze=this.currentTransmuxState,st=ze.accurateTimeOffset,mt=ze.timeOffset;j.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var Yt=this.remuxer.remux(Z,re,ve,Te,mt,st,!0,this.id);N.push({remuxResult:Yt,chunkMeta:H}),H.transmuxing.executeEnd=Eo()}},{key:"resetInitialTimestamp",value:function(N){var W=this.demuxer,H=this.remuxer;if(!W||!H)return;W.resetTimeStamp(N),H.resetTimeStamp(N)}},{key:"resetContiguity",value:function(){var N=this.demuxer,W=this.remuxer;if(!N||!W)return;N.resetContiguity(),W.resetNextTimestamp()}},{key:"resetInitSegment",value:function(N,W,H,Z,re){var ve=this.demuxer,Te=this.remuxer;if(!ve||!Te)return;ve.resetInitSegment(N,W,H,Z),Te.resetInitSegment(N,W,H,re)}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(N,W,H,Z,re){var ve;return W&&W.method==="SAMPLE-AES"?ve=this.transmuxSampleAes(N,W,H,Z,re):ve=this.transmuxUnencrypted(N,H,Z,re),ve}},{key:"transmuxUnencrypted",value:function(N,W,H,Z){var re=this.demuxer.demux(N,W,!1,!this.config.progressive),ve=re.audioTrack,Te=re.videoTrack,ze=re.id3Track,st=re.textTrack,mt=this.remuxer.remux(ve,Te,ze,st,W,H,!1,this.id);return{remuxResult:mt,chunkMeta:Z}}},{key:"transmuxSampleAes",value:function(N,W,H,Z,re){var ve=this;return this.demuxer.demuxSampleAes(N,W,H).then(function(Te){var ze=ve.remuxer.remux(Te.audioTrack,Te.videoTrack,Te.id3Track,Te.textTrack,H,Z,!1,ve.id);return{remuxResult:ze,chunkMeta:re}})}},{key:"configureTransmuxer",value:function(N){for(var W=this.config,H=this.observer,Z=this.typeSupported,re=this.vendor,ve,Te=0,ze=zo.length;Te<ze;Te++)if(zo[Te].demux.probe(N)){ve=zo[Te];break}if(!ve)return new Error("Failed to find demuxer by probing fragment data");var st=this.demuxer,mt=this.remuxer,Yt=ve.remux,Tr=ve.demux;(!mt||!(mt instanceof Yt))&&(this.remuxer=new Yt(H,W,Z,re)),(!st||!(st instanceof Tr))&&(this.demuxer=new Tr(H,W,Z),this.probe=Tr.probe)}},{key:"needsProbing",value:function(N,W){return!this.demuxer||!this.remuxer||N||W}},{key:"getDecrypter",value:function(){var N=this.decrypter;return N||(N=this.decrypter=new _a(this.config)),N}}]),Ae}();function ms(Ae,q){var N=null;return Ae.byteLength>0&&q!=null&&q.key!=null&&q.iv!==null&&q.method!=null&&(N=q),N}var hs=function(q){return{remuxResult:{},chunkMeta:q}};function An(Ae){return"then"in Ae&&Ae.then instanceof Function}var Ns=Object(o.a)(function Ae(q,N,W,H,Z){Object(n.a)(this,Ae),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=q,this.videoCodec=N,this.initSegmentData=W,this.duration=H,this.defaultInitPts=Z||null}),Ll=Object(o.a)(function Ae(q,N,W,H,Z,re){Object(n.a)(this,Ae),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=q,this.contiguous=N,this.accurateTimeOffset=W,this.trackSwitch=H,this.timeOffset=Z,this.initSegmentChange=re}),el={exports:{}};(function(Ae){var q=Object.prototype.hasOwnProperty,N="~";function W(){}Object.create&&(W.prototype=Object.create(null),new W().__proto__||(N=!1));function H(Te,ze,st){this.fn=Te,this.context=ze,this.once=st||!1}function Z(Te,ze,st,mt,Yt){if(typeof st!="function")throw new TypeError("The listener must be a function");var Tr=new H(st,mt||Te,Yt),wr=N?N+ze:ze;return Te._events[wr]?Te._events[wr].fn?Te._events[wr]=[Te._events[wr],Tr]:Te._events[wr].push(Tr):(Te._events[wr]=Tr,Te._eventsCount++),Te}function re(Te,ze){--Te._eventsCount===0?Te._events=new W:delete Te._events[ze]}function ve(){this._events=new W,this._eventsCount=0}ve.prototype.eventNames=function(){var ze=[],st,mt;if(this._eventsCount===0)return ze;for(mt in st=this._events)q.call(st,mt)&&ze.push(N?mt.slice(1):mt);return Object.getOwnPropertySymbols?ze.concat(Object.getOwnPropertySymbols(st)):ze},ve.prototype.listeners=function(ze){var st=N?N+ze:ze,mt=this._events[st];if(!mt)return[];if(mt.fn)return[mt.fn];for(var Yt=0,Tr=mt.length,wr=new Array(Tr);Yt<Tr;Yt++)wr[Yt]=mt[Yt].fn;return wr},ve.prototype.listenerCount=function(ze){var st=N?N+ze:ze,mt=this._events[st];return mt?mt.fn?1:mt.length:0},ve.prototype.emit=function(ze,st,mt,Yt,Tr,wr){var jr=N?N+ze:ze;if(!this._events[jr])return!1;var Qr=this._events[jr],Cn=arguments.length,Dn,Zn;if(Qr.fn){Qr.once&&this.removeListener(ze,Qr.fn,void 0,!0);switch(Cn){case 1:return Qr.fn.call(Qr.context),!0;case 2:return Qr.fn.call(Qr.context,st),!0;case 3:return Qr.fn.call(Qr.context,st,mt),!0;case 4:return Qr.fn.call(Qr.context,st,mt,Yt),!0;case 5:return Qr.fn.call(Qr.context,st,mt,Yt,Tr),!0;case 6:return Qr.fn.call(Qr.context,st,mt,Yt,Tr,wr),!0}for(Zn=1,Dn=new Array(Cn-1);Zn<Cn;Zn++)Dn[Zn-1]=arguments[Zn];Qr.fn.apply(Qr.context,Dn)}else{var Si=Qr.length,ua;for(Zn=0;Zn<Si;Zn++){Qr[Zn].once&&this.removeListener(ze,Qr[Zn].fn,void 0,!0);switch(Cn){case 1:Qr[Zn].fn.call(Qr[Zn].context);break;case 2:Qr[Zn].fn.call(Qr[Zn].context,st);break;case 3:Qr[Zn].fn.call(Qr[Zn].context,st,mt);break;case 4:Qr[Zn].fn.call(Qr[Zn].context,st,mt,Yt);break;default:if(!Dn)for(ua=1,Dn=new Array(Cn-1);ua<Cn;ua++)Dn[ua-1]=arguments[ua];Qr[Zn].fn.apply(Qr[Zn].context,Dn)}}}return!0},ve.prototype.on=function(ze,st,mt){return Z(this,ze,st,mt,!1)},ve.prototype.once=function(ze,st,mt){return Z(this,ze,st,mt,!0)},ve.prototype.removeListener=function(ze,st,mt,Yt){var Tr=N?N+ze:ze;if(!this._events[Tr])return this;if(!st)return re(this,Tr),this;var wr=this._events[Tr];if(wr.fn)wr.fn===st&&(!Yt||wr.once)&&(!mt||wr.context===mt)&&re(this,Tr);else{for(var jr=0,Qr=[],Cn=wr.length;jr<Cn;jr++)(wr[jr].fn!==st||Yt&&!wr[jr].once||mt&&wr[jr].context!==mt)&&Qr.push(wr[jr]);Qr.length?this._events[Tr]=Qr.length===1?Qr[0]:Qr:re(this,Tr)}return this},ve.prototype.removeAllListeners=function(ze){var st;return ze?(st=N?N+ze:ze,this._events[st]&&re(this,st)):(this._events=new W,this._eventsCount=0),this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.addListener=ve.prototype.on,ve.prefixed=N,ve.EventEmitter=ve,Ae.exports=ve})(el);var Gs=el.exports,ds=c(Gs),ks=rr()||{isTypeSupported:function(){return!1}},Qs=function(){function Ae(q,N,W,H){var Z=this;Object(n.a)(this,Ae),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var re=q.config;this.hls=q,this.id=N,this.useWorker=!!re.enableWorker,this.onTransmuxComplete=W,this.onFlush=H;var ve=function(Tr,wr){wr=wr||{},wr.frag=Z.frag,wr.id=Z.id,Tr===w.ERROR&&(Z.error=wr.error),Z.hls.trigger(Tr,wr)};this.observer=new ds,this.observer.on(w.FRAG_DECRYPTED,ve),this.observer.on(w.ERROR,ve);var Te={mp4:ks.isTypeSupported("video/mp4"),mpeg:ks.isTypeSupported("audio/mpeg"),mp3:ks.isTypeSupported('audio/mp4; codecs="mp3"')},ze=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var st=re.workerPath||To();if(st){try{re.workerPath?(j.log("loading Web Worker ".concat(re.workerPath,' for "').concat(N,'"')),this.workerContext=So(re.workerPath)):(j.log('injecting Web Worker for "'.concat(N,'"')),this.workerContext=ao()),this.onwmsg=function(Yt){return Z.onWorkerMessage(Yt)};var mt=this.workerContext.worker;mt.addEventListener("message",this.onwmsg),mt.onerror=function(Yt){var Tr=new Error("".concat(Yt.message," (").concat(Yt.filename,":").concat(Yt.lineno,")"));re.enableWorker=!1,j.warn('Error in "'.concat(N,'" Web Worker, fallback to inline')),Z.hls.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Tr})},mt.postMessage({cmd:"init",typeSupported:Te,vendor:ze,id:N,config:JSON.stringify(re)})}catch(Yt){j.warn('Error setting up "'.concat(N,'" Web Worker, fallback to inline'),Yt),this.resetWorker(),this.error=null,this.transmuxer=new Fs(this.observer,Te,re,ze,N)}return}}this.transmuxer=new Fs(this.observer,Te,re,ze,N)}return Object(o.a)(Ae,[{key:"resetWorker",value:function(){if(this.workerContext){var N=this.workerContext,W=N.worker,H=N.objectURL;H&&self.URL.revokeObjectURL(H),W.removeEventListener("message",this.onwmsg),W.onerror=null,W.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var N=this.transmuxer;N&&(N.destroy(),this.transmuxer=null)}var W=this.observer;W&&W.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(N,W,H,Z,re,ve,Te,ze,st,mt){var Yt=this,Tr,wr;st.transmuxing.start=self.performance.now();var jr=this.transmuxer,Qr=ve?ve.start:re.start,Cn=re.decryptdata,Dn=this.frag,Zn=!(Dn&&re.cc===Dn.cc),Si=!(Dn&&st.level===Dn.level),ua=Dn?st.sn-Dn.sn:-1,Vi=this.part?st.part-this.part.index:-1,Zi=ua===0&&st.id>1&&st.id===(Dn==null?void 0:Dn.stats.chunkCount),ka=!Si&&(ua===1||ua===0&&(Vi===1||Zi&&Vi<=0)),Ga=self.performance.now();(Si||ua||re.stats.parsing.start===0)&&(re.stats.parsing.start=Ga),ve&&(Vi||!ka)&&(ve.stats.parsing.start=Ga);var Ba=!(Dn&&((Tr=re.initSegment)==null?void 0:Tr.url)===((wr=Dn.initSegment)==null?void 0:wr.url)),Sa=new Ll(Zn,ka,ze,Si,Qr,Ba);if(!ka||Zn||Ba){j.log("[transmuxer-interface, ".concat(re.type,"]: Starting new transmux session for sn: ").concat(st.sn," p: ").concat(st.part," level: ").concat(st.level," id: ").concat(st.id,`
discontinuity: `).concat(Zn,`
trackSwitch: `).concat(Si,`
contiguous: `).concat(ka,`
accurateTimeOffset: `).concat(ze,`
timeOffset: `).concat(Qr,`
initSegmentChange: `).concat(Ba));var Go=new Ns(H,Z,W,Te,mt);this.configureTransmuxer(Go)}if(this.frag=re,this.part=ve,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:N,decryptdata:Cn,chunkMeta:st,state:Sa},N instanceof ArrayBuffer?[N]:[]);else if(jr){var bs=jr.push(N,Cn,st,Sa);An(bs)?(jr.async=!0,bs.then(function(ys){Yt.handleTransmuxComplete(ys)}).catch(function(ys){Yt.transmuxerError(ys,st,"transmuxer-interface push error")})):(jr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(N){var W=this;N.transmuxing.start=self.performance.now();var H=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:N});else if(H){var Z=H.flush(N),re=An(Z);re||H.async?(An(Z)||(Z=Promise.resolve(Z)),Z.then(function(ve){W.handleFlushResult(ve,N)}).catch(function(ve){W.transmuxerError(ve,N,"transmuxer-interface flush error")})):this.handleFlushResult(Z,N)}}},{key:"transmuxerError",value:function(N,W,H){if(!this.hls)return;this.error=N,this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_PARSING_ERROR,chunkMeta:W,fatal:!1,error:N,err:N,reason:H})}},{key:"handleFlushResult",value:function(N,W){var H=this;N.forEach(function(Z){H.handleTransmuxComplete(Z)}),this.onFlush(W)}},{key:"onWorkerMessage",value:function(N){var W=N.data,H=this.hls;switch(W.event){case"init":{var Z,re=(Z=this.workerContext)==null?void 0:Z.objectURL;re&&self.URL.revokeObjectURL(re);break}case"transmuxComplete":{this.handleTransmuxComplete(W.data);break}case"flush":{this.onFlush(W.data);break}case"workerLog":j[W.data.logType]&&j[W.data.logType](W.data.message);break;default:{W.data=W.data||{},W.data.frag=this.frag,W.data.id=this.id,H.trigger(W.event,W.data);break}}}},{key:"configureTransmuxer",value:function(N){var W=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:N}):W&&W.configure(N)}},{key:"handleTransmuxComplete",value:function(N){N.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(N)}}]),Ae}(),tl=250,xs=2,Bs=.1,al=.05,Js=function(){function Ae(q,N,W,H){Object(n.a)(this,Ae),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=q,this.media=N,this.fragmentTracker=W,this.hls=H}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(N,W){var H=this.config,Z=this.media,re=this.stalled;if(Z===null)return;var ve=Z.currentTime,Te=Z.seeking,ze=this.seeking&&!Te,st=!this.seeking&&Te;if(this.seeking=Te,ve!==N){if(this.moved=!0,re!==null){if(this.stallReported){var mt=self.performance.now()-re;j.warn("playback not stuck anymore @".concat(ve,", after ").concat(Math.round(mt),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(st||ze){this.stalled=null;return}if(Z.paused&&!Te||Z.ended||Z.playbackRate===0||!Oi.getBuffered(Z).length)return;var Yt=Oi.bufferInfo(Z,ve,0),Tr=Yt.len>0,wr=Yt.nextStart||0;if(!Tr&&!wr)return;if(Te){var jr=Yt.len>xs,Qr=!wr||W&&W.start<=ve||wr-ve>xs&&!this.fragmentTracker.getPartialFragment(ve);if(jr||Qr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Cn,Dn=Math.max(wr,Yt.start||0)-ve,Zn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Si=Zn==null||(Cn=Zn.details)==null?void 0:Cn.live,ua=Si?Zn.details.targetduration*2:xs,Vi=this.fragmentTracker.getPartialFragment(ve);if(Dn>0&&(Dn<=ua||Vi)){this._trySkipBufferHole(Vi);return}}var Zi=self.performance.now();if(re===null){this.stalled=Zi;return}var ka=Zi-re;if(!Te&&ka>=tl&&(this._reportStall(Yt),!this.media))return;var Ga=Oi.bufferInfo(Z,ve,H.maxBufferHole);this._tryFixBufferStall(Ga,ka)}},{key:"_tryFixBufferStall",value:function(N,W){var H=this.config,Z=this.fragmentTracker,re=this.media;if(re===null)return;var ve=re.currentTime,Te=Z.getPartialFragment(ve);if(Te){var ze=this._trySkipBufferHole(Te);if(ze||!this.media)return}(N.len>H.maxBufferHole||N.nextStart&&N.nextStart-ve<H.maxBufferHole)&&W>H.highBufferWatchdogPeriod*1e3&&(j.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(N){var W=this.hls,H=this.media,Z=this.stallReported;if(!Z&&H){this.stallReported=!0;var re=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(N),")"));j.warn(re.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,fatal:!1,error:re,buffer:N.len})}}},{key:"_trySkipBufferHole",value:function(N){var W=this.config,H=this.hls,Z=this.media;if(Z===null)return 0;var re=Z.currentTime,ve=Oi.bufferInfo(Z,re,0),Te=re<ve.start?ve.start:ve.nextStart;if(Te){var ze=ve.len<=W.maxBufferHole,st=ve.len>0&&ve.len<1&&Z.readyState<3,mt=Te-re;if(mt>0&&(ze||st)){if(mt>W.maxBufferHole){var Yt=this.fragmentTracker,Tr=!1;if(re===0){var wr=Yt.getAppendedFrag(0,At.MAIN);wr&&Te<wr.end&&(Tr=!0)}if(!Tr){var jr=N||Yt.getAppendedFrag(re,At.MAIN);if(jr){for(var Qr=!1,Cn=jr.end;Cn<Te;){var Dn=Yt.getPartialFragment(Cn);if(Dn)Cn+=Dn.duration;else{Qr=!0;break}}if(Qr)return 0}}}var Zn=Math.max(Te+al,re+Bs);if(j.warn("skipping hole, adjusting currentTime from ".concat(re," to ").concat(Zn)),this.moved=!0,this.stalled=null,Z.currentTime=Zn,N&&!N.gap){var Si=new Error("fragment loaded with buffer holes, seeking from ".concat(re," to ").concat(Zn));H.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Si,reason:Si.message,frag:N})}return Zn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var N=this.config,W=this.hls,H=this.media,Z=this.nudgeRetry;if(H===null)return;var re=H.currentTime;if(this.nudgeRetry++,Z<N.nudgeMaxRetry){var ve=re+(Z+1)*N.nudgeOffset,Te=new Error("Nudging 'currentTime' from ".concat(re," to ").concat(ve));j.warn(Te.message),H.currentTime=ve,W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_NUDGE_ON_STALL,error:Te,fatal:!1})}else{var ze=new Error("Playhead still not moving while enough data buffered @".concat(re," after ").concat(N.nudgeMaxRetry," nudges"));j.error(ze.message),W.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_STALLED_ERROR,error:ze,fatal:!0})}}}]),Ae}(),Vo=100,No=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z){var re;return Object(n.a)(this,N),re=q.call(this,W,H,Z,"[stream-controller]",At.MAIN),re.audioCodecSwap=!1,re.gapController=null,re.level=-1,re._forceStartLoad=!1,re.altAudio=!1,re.audioOnly=!1,re.fragPlaying=null,re.onvplaying=null,re.onvseeked=null,re.fragLastKbps=0,re.couldBacktrack=!1,re.backtrackFragment=null,re.audioCodecSwitch=!1,re.videoBuffer=null,re._registerListeners(),re}return Object(o.a)(N,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(w.ERROR,this.onError,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(w.ERROR,this.onError,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var Z=this.lastCurrentTime,re=this.hls;if(this.stopLoad(),this.setInterval(Vo),this.level=-1,!this.startFragRequested){var ve=re.startLevel;ve===-1&&(re.config.testBandwidth&&this.levels.length>1?(ve=0,this.bitrateTest=!0):ve=re.nextAutoLevel),this.level=re.nextLoadLevel=ve,this.loadedmetadata=!1}Z>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z),this.state=Bi.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=Bi.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(N.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case Bi.WAITING_LEVEL:{var H,Z=this.levels,re=this.level,ve=Z==null||(H=Z[re])==null?void 0:H.details;if(ve&&(!ve.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Bi.IDLE;break}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=self.performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=Bi.IDLE)}break}this.state===Bi.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(m.a)(N.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levelLastLoaded,re=this.levels,ve=this.media,Te=H.config,ze=H.nextLoadLevel;if(Z===null||!ve&&(this.startFragRequested||!Te.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(re!=null&&re[ze]))return;var st=re[ze],mt=this.getMainFwdBufferInfo();if(mt===null)return;var Yt=this.getLevelDetails();if(Yt&&this._streamEnded(mt,Yt)){var Tr={};this.altAudio&&(Tr.type="video"),this.hls.trigger(w.BUFFER_EOS,Tr),this.state=Bi.ENDED;return}H.loadLevel!==ze&&H.manualLevel===-1&&this.log("Adapting to level ".concat(ze," from level ").concat(this.level)),this.level=H.nextLoadLevel=ze;var wr=st.details;if(!wr||this.state===Bi.WAITING_LEVEL||wr.live&&this.levelLastLoaded!==ze){this.level=ze,this.state=Bi.WAITING_LEVEL;return}var jr=mt.len,Qr=this.getMaxBufferLength(st.maxBitrate);if(jr>=Qr)return;this.backtrackFragment&&this.backtrackFragment.start>mt.end&&(this.backtrackFragment=null);var Cn=this.backtrackFragment?this.backtrackFragment.start:mt.end,Dn=this.getNextFragment(Cn,wr);if(this.couldBacktrack&&!this.fragPrevious&&Dn&&Dn.sn!=="initSegment"&&this.fragmentTracker.getState(Dn)!==_t.OK){var Zn,Si=((Zn=this.backtrackFragment)!=null?Zn:Dn).sn,ua=Si-wr.startSN,Vi=wr.fragments[ua-1];Vi&&Dn.cc===Vi.cc&&(Dn=Vi,this.fragmentTracker.removeFragment(Vi))}else this.backtrackFragment&&mt.len&&(this.backtrackFragment=null);if(Dn&&this.isLoopLoading(Dn,Cn)){var Zi=Dn.gap;if(!Zi){var ka=this.audioOnly&&!this.altAudio?ye.AUDIO:ye.VIDEO,Ga=(ka===ye.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ga&&this.afterBufferFlushed(Ga,ka,At.MAIN)}Dn=this.getNextFragmentLoopLoading(Dn,wr,mt,At.MAIN,Qr)}if(!Dn)return;Dn.initSegment&&!Dn.initSegment.data&&!this.bitrateTest&&(Dn=Dn.initSegment),this.loadFragment(Dn,st,Cn)}},{key:"loadFragment",value:function(H,Z,re){var ve=this.fragmentTracker.getState(H);this.fragCurrent=H,ve===_t.NOT_LOADED||ve===_t.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,Z):this.bitrateTest?(this.log("Fragment ".concat(H.sn," of level ").concat(H.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(H,Z)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(N.prototype),"loadFragment",this).call(this,H,Z,re)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,At.MAIN)}},{key:"followingBufferedFrag",value:function(H){return H?this.getBufferedFrag(H.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var H=this.levels,Z=this.media;if(Z!=null&&Z.readyState){var re,ve=this.getAppendedFrag(Z.currentTime);ve&&ve.start>1&&this.flushMainBuffer(0,ve.start-1);var Te=this.getLevelDetails();if(Te!=null&&Te.live){var ze=this.getMainFwdBufferInfo();if(!ze||ze.len<Te.targetduration*2)return}if(!Z.paused&&H){var st=this.hls.nextLoadLevel,mt=H[st],Yt=this.fragLastKbps;Yt&&this.fragCurrent?re=this.fragCurrent.duration*mt.maxBitrate/(1e3*Yt)+1:re=0}else re=0;var Tr=this.getBufferedFrag(Z.currentTime+re);if(Tr){var wr=this.followingBufferedFrag(Tr);if(wr){this.abortCurrentFrag();var jr=wr.maxStartPTS?wr.maxStartPTS:wr.start,Qr=wr.duration,Cn=Math.max(Tr.end,jr+Math.min(Math.max(Qr-this.config.maxFragLookUpTolerance,Qr*.5),Qr*.75));this.flushMainBuffer(Cn,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var H=this.fragCurrent;this.fragCurrent=null,this.backtrackFragment=null,H&&(H.abortRequests(),this.fragmentTracker.removeFragment(H));switch(this.state){case Bi.KEY_LOADING:case Bi.FRAG_LOADING:case Bi.FRAG_LOADING_WAITING_RETRY:case Bi.PARSING:case Bi.PARSED:this.state=Bi.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,Z){Object(t.a)(Object(m.a)(N.prototype),"flushMainBuffer",this).call(this,H,Z,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,Z){Object(t.a)(Object(m.a)(N.prototype),"onMediaAttached",this).call(this,H,Z);var re=Z.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),re.addEventListener("playing",this.onvplaying),re.addEventListener("seeked",this.onvseeked),this.gapController=new Js(this.config,re,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var H=this.media;H&&this.onvplaying&&this.onvseeked&&(H.removeEventListener("playing",this.onvplaying),H.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),Object(t.a)(Object(m.a)(N.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,Z=H?H.currentTime:null;T(Z)&&this.log("Media seeked to ".concat(Z.toFixed(3)));var re=this.getMainFwdBufferInfo();if(re===null||re.len===0){this.warn('Main forward buffer length on "seeked" event '.concat(re?re.len:"empty",")"));return}this.tick()}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(w.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=0,this.levels=this.fragPlaying=this.backtrackFragment=null,this.altAudio=this.audioOnly=!1}},{key:"onManifestParsed",value:function(H,Z){var re=!1,ve=!1,Te;Z.levels.forEach(function(ze){Te=ze.audioCodec,Te&&(Te.indexOf("mp4a.40.2")!==-1&&(re=!0),Te.indexOf("mp4a.40.5")!==-1&&(ve=!0))}),this.audioCodecSwitch=re&&ve&&!mo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=Z.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,Z){var re=this.levels;if(!re||this.state!==Bi.IDLE)return;var ve=re[Z.level];(!ve.details||ve.details.live&&this.levelLastLoaded!==Z.level||this.waitForCdnTuneIn(ve.details))&&(this.state=Bi.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,Z){var re,ve=this.levels,Te=Z.level,ze=Z.details,st=ze.totalduration;if(!ve){this.warn("Levels were reset while loading level ".concat(Te));return}this.log("Level ".concat(Te," loaded [").concat(ze.startSN,",").concat(ze.endSN,"]").concat(ze.lastPartSn?"[part-".concat(ze.lastPartSn,"-").concat(ze.lastPartIndex,"]"):"",", cc [").concat(ze.startCC,", ").concat(ze.endCC,"] duration:").concat(st));var mt=ve[Te],Yt=this.fragCurrent;Yt&&(this.state===Bi.FRAG_LOADING||this.state===Bi.FRAG_LOADING_WAITING_RETRY)&&((Yt.level!==Z.level||Yt.urlId!==mt.urlId)&&Yt.loader&&this.abortCurrentFrag());var Tr=0;if(ze.live||(re=mt.details)!=null&&re.live){if(this.checkLiveUpdate(ze),ze.deltaUpdateFailed)return;Tr=this.alignPlaylists(ze,mt.details)}if(mt.details=ze,this.levelLastLoaded=Te,this.hls.trigger(w.LEVEL_UPDATED,{details:ze,level:Te}),this.state===Bi.WAITING_LEVEL){if(this.waitForCdnTuneIn(ze))return;this.state=Bi.IDLE}this.startFragRequested?ze.live&&this.synchronizeToLiveEdge(ze):this.setStartPosition(ze,Tr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,re=H.frag,ve=H.part,Te=H.payload,ze=this.levels;if(!ze){this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(re.sn," of level ").concat(re.level," will not be buffered"));return}var st=ze[re.level],mt=st.details;if(!mt){this.warn("Dropping fragment ".concat(re.sn," of level ").concat(re.level," after level details were reset")),this.fragmentTracker.removeFragment(re);return}var Yt=st.videoCodec,Tr=mt.PTSKnown||!mt.live,wr=(Z=re.initSegment)==null?void 0:Z.data,jr=this._getAudioCodec(st),Qr=this.transmuxer=this.transmuxer||new Qs(this.hls,At.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Cn=ve?ve.index:-1,Dn=Cn!==-1,Zn=new zi(re.level,re.sn,re.stats.chunkCount,Te.byteLength,Cn,Dn),Si=this.initPTS[re.cc];Qr.push(Te,wr,jr,Yt,re,ve,mt.totalduration,Tr,Zn,Si)}},{key:"onAudioTrackSwitching",value:function(H,Z){var re=this.altAudio,ve=!!Z.url;if(!ve){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var Te=this.fragCurrent;Te&&(this.log("Switching to main audio track, cancel main fragment load"),Te.abortRequests(),this.fragmentTracker.removeFragment(Te)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var ze=this.hls;re&&(ze.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),ze.trigger(w.AUDIO_TRACK_SWITCHED,Z)}}},{key:"onAudioTrackSwitched",value:function(H,Z){var re=Z.id,ve=!!this.hls.audioTracks[re].url;if(ve){var Te=this.videoBuffer;Te&&this.mediaBuffer!==Te&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=Te)}this.altAudio=ve,this.tick()}},{key:"onBufferCreated",value:function(H,Z){var re=Z.tracks,ve,Te,ze=!1;for(var st in re){var mt=re[st];if(mt.id==="main"){if(Te=st,ve=mt,st==="video"){var Yt=re[st];Yt&&(this.videoBuffer=Yt.buffer)}}else ze=!0}ze&&ve?(this.log("Alternate track found, use ".concat(Te,".buffered to schedule main fragment loading")),this.mediaBuffer=ve.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,Z){var re=Z.frag,ve=Z.part;if(re&&re.type!==At.MAIN)return;if(this.fragContextChanged(re)){this.warn("Fragment ".concat(re.sn).concat(ve?" p: "+ve.index:""," of level ").concat(re.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===Bi.PARSED&&(this.state=Bi.IDLE);return}var Te=ve?ve.stats:re.stats;this.fragLastKbps=Math.round(8*Te.total/(Te.buffering.end-Te.loading.first)),re.sn!=="initSegment"&&(this.fragPrevious=re),this.fragBufferedComplete(re,ve)}},{key:"onError",value:function(H,Z){var re;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(At.MAIN,Z);break;case I.LEVEL_LOAD_ERROR:case I.LEVEL_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_LEVEL&&((re=Z.context)==null?void 0:re.type)===Et.LEVEL&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="main")return;this.reduceLengthAndFlushBuffer(Z)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"checkBuffer",value:function(){var H=this.media,Z=this.gapController;if(!H||!Z||!H.readyState)return;if(this.loadedmetadata||!Oi.getBuffered(H).length){var re=this.state!==Bi.IDLE?this.fragCurrent:null;Z.poll(this.lastCurrentTime,re)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Bi.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,Z){var re=Z.type;if(re!==ye.AUDIO||this.audioOnly&&!this.altAudio){var ve=(re===ye.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(ve,re,At.MAIN)}}},{key:"onLevelsUpdated",value:function(H,Z){this.levels=Z.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var Z=H.currentTime,re=this.startPosition;if(re>=0&&Z<re){if(H.seeking){this.log("could not seek to ".concat(re,", already seeking at ").concat(Z));return}var ve=Oi.getBuffered(H),Te=ve.length?ve.start(0):0,ze=Te-re;ze>0&&(ze<this.config.maxBufferHole||ze<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(ze," to match buffer start")),re+=ze,this.startPosition=re),this.log("seek to target start position ".concat(re," from current time ").concat(Z)),H.currentTime=re}}},{key:"_getAudioCodec",value:function(H){var Z=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&Z&&(this.log("Swapping audio codec"),Z.indexOf("mp4a.40.5")!==-1?Z="mp4a.40.2":Z="mp4a.40.5"),Z}},{key:"_loadBitrateTestFrag",value:function(H,Z){var re=this;H.bitrateTest=!0,this._doFragLoad(H,Z).then(function(ve){var Te=re.hls;if(!ve||re.fragContextChanged(H))return;Z.fragmentError=0,re.state=Bi.IDLE,re.startFragRequested=!1,re.bitrateTest=!1;var ze=H.stats;ze.parsing.start=ze.parsing.end=ze.buffering.start=ze.buffering.end=self.performance.now(),Te.trigger(w.FRAG_LOADED,ve),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var Z,re="main",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var mt=st.frag,Yt=st.part,Tr=st.level,wr=Te.video,jr=Te.text,Qr=Te.id3,Cn=Te.initSegment,Dn=Tr.details,Zn=this.altAudio?void 0:Te.audio;if(this.fragContextChanged(mt)){this.fragmentTracker.removeFragment(mt);return}if(this.state=Bi.PARSING,Cn){if(Cn!=null&&Cn.tracks){var Si=mt.initSegment||mt;this._bufferInitSegment(Tr,Cn.tracks,Si,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Si,id:re,tracks:Cn.tracks})}var ua=Cn.initPTS,Vi=Cn.timescale;T(ua)&&(this.initPTS[mt.cc]={baseTime:ua,timescale:Vi},ve.trigger(w.INIT_PTS_FOUND,{frag:mt,id:re,initPTS:ua,timescale:Vi}))}if(wr&&Dn&&mt.sn!=="initSegment"){var Zi=Dn.fragments[mt.sn-1-Dn.startSN],ka=mt.sn===Dn.startSN,Ga=!Zi||mt.cc>Zi.cc;if(Te.independent!==!1){var Ba=wr.startPTS,Sa=wr.endPTS,Go=wr.startDTS,bs=wr.endDTS;if(Yt)Yt.elementaryStreams[wr.type]={startPTS:Ba,endPTS:Sa,startDTS:Go,endDTS:bs};else if(wr.firstKeyFrame&&wr.independent&&ze.id===1&&!Ga&&(this.couldBacktrack=!0),wr.dropped&&wr.independent){var ys=this.getMainFwdBufferInfo(),Cs=(ys?ys.end:this.getLoadPosition())+this.config.maxBufferHole,js=wr.firstKeyFramePTS?wr.firstKeyFramePTS:Ba;if(!ka&&Cs<js-this.config.maxBufferHole&&!Ga){this.backtrack(mt);return}else Ga&&(mt.gap=!0);mt.setElementaryStreamInfo(wr.type,mt.start,Sa,mt.start,bs,!0)}mt.setElementaryStreamInfo(wr.type,Ba,Sa,Go,bs),this.backtrackFragment&&(this.backtrackFragment=mt),this.bufferFragmentData(wr,mt,Yt,ze,ka||Ga)}else if(ka||Ga)mt.gap=!0;else{this.backtrack(mt);return}}if(Zn){var ws=Zn.startPTS,Hs=Zn.endPTS,Ee=Zn.startDTS,Qe=Zn.endDTS;Yt&&(Yt.elementaryStreams[ye.AUDIO]={startPTS:ws,endPTS:Hs,startDTS:Ee,endDTS:Qe}),mt.setElementaryStreamInfo(ye.AUDIO,ws,Hs,Ee,Qe),this.bufferFragmentData(Zn,mt,Yt,ze)}if(Dn&&Qr!=null&&(Z=Qr.samples)!=null&&Z.length){var xt={id:re,frag:mt,details:Dn,samples:Qr.samples};ve.trigger(w.FRAG_PARSING_METADATA,xt)}if(Dn&&jr){var hr={id:re,frag:mt,details:Dn,samples:jr.samples};ve.trigger(w.FRAG_PARSING_USERDATA,hr)}}},{key:"_bufferInitSegment",value:function(H,Z,re,ve){var Te=this;if(this.state!==Bi.PARSING)return;this.audioOnly=!!Z.audio&&!Z.video,this.altAudio&&!this.audioOnly&&delete Z.audio;var ze=Z.audio,st=Z.video,mt=Z.audiovideo;if(ze){var Yt=H.audioCodec,Tr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Yt&&(Yt.indexOf("mp4a.40.5")!==-1?Yt="mp4a.40.2":Yt="mp4a.40.5"),ze.metadata.channelCount!==1&&Tr.indexOf("firefox")===-1&&(Yt="mp4a.40.5")),Tr.indexOf("android")!==-1&&ze.container!=="audio/mpeg"&&(Yt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Yt))),H.audioCodec&&H.audioCodec!==Yt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(Yt,'"')),ze.levelCodec=Yt,ze.id="main",this.log("Init audio buffer, container:".concat(ze.container,", codecs[selected/level/parsed]=[").concat(Yt||"","/").concat(H.audioCodec||"","/").concat(ze.codec,"]"))}st&&(st.levelCodec=H.videoCodec,st.id="main",this.log("Init video buffer, container:".concat(st.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(st.codec,"]"))),mt&&this.log("Init audiovideo buffer, container:".concat(mt.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(mt.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,Z),Object.keys(Z).forEach(function(wr){var jr=Z[wr],Qr=jr.initSegment;Qr!=null&&Qr.byteLength&&Te.hls.trigger(w.BUFFER_APPENDING,{type:wr,data:Qr,frag:re,part:null,chunkMeta:ve,parent:re.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,At.MAIN)}},{key:"backtrack",value:function(H){this.couldBacktrack=!0,this.backtrackFragment=H,this.resetTransmuxer(),this.flushBufferGap(H),this.fragmentTracker.removeFragment(H),this.fragPrevious=null,this.nextLoadPosition=H.start,this.state=Bi.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,Z=null;if(H&&H.readyState>1&&H.seeking===!1){var re=H.currentTime;if(Oi.isBuffered(H,re)?Z=this.getAppendedFrag(re):Oi.isBuffered(H,re+.1)&&(Z=this.getAppendedFrag(re+.1)),Z){this.backtrackFragment=null;var ve=this.fragPlaying,Te=Z.level;(!ve||Z.sn!==ve.sn||ve.level!==Te||Z.urlId!==ve.urlId)&&(this.fragPlaying=Z,this.hls.trigger(w.FRAG_CHANGED,{frag:Z}),(!ve||ve.level!==Te)&&this.hls.trigger(w.LEVEL_SWITCHED,{level:Te}))}}}},{key:"nextLevel",get:function(){var H=this.nextBufferedFrag;return H?H.level:-1}},{key:"currentFrag",get:function(){var H=this.media;return H?this.fragPlaying||this.getAppendedFrag(H.currentTime):null}},{key:"currentProgramDateTime",get:function(){var H=this.media;if(H){var Z=H.currentTime,re=this.currentFrag;if(re&&T(Z)&&T(re.programDateTime)){var ve=re.programDateTime+(Z-re.start)*1e3;return new Date(ve)}}return null}},{key:"currentLevel",get:function(){var H=this.currentFrag;return H?H.level:-1}},{key:"nextBufferedFrag",get:function(){var H=this.currentFrag;return H?this.followingBufferedFrag(H):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),N}(io),fs=function(){function Ae(q){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(n.a)(this,Ae),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=q,this.alpha_=q?Math.exp(Math.log(.5)/q):0,this.estimate_=N,this.totalWeight_=W}return Object(o.a)(Ae,[{key:"sample",value:function(N,W){var H=Math.pow(this.alpha_,N);this.estimate_=W*(1-H)+H*this.estimate_,this.totalWeight_+=N}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var N=1-Math.pow(this.alpha_,this.totalWeight_);if(N)return this.estimate_/N}return this.estimate_}}]),Ae}(),Ds=function(){function Ae(q,N,W){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(n.a)(this,Ae),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=W,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new fs(q),this.fast_=new fs(N),this.defaultTTFB_=H,this.ttfb_=new fs(q)}return Object(o.a)(Ae,[{key:"update",value:function(N,W){var H=this.slow_,Z=this.fast_,re=this.ttfb_;H.halfLife!==N&&(this.slow_=new fs(N,H.getEstimate(),H.getTotalWeight())),Z.halfLife!==W&&(this.fast_=new fs(W,Z.getEstimate(),Z.getTotalWeight())),re.halfLife!==N&&(this.ttfb_=new fs(N,re.getEstimate(),re.getTotalWeight()))}},{key:"sample",value:function(N,W){N=Math.max(N,this.minDelayMs_);var H=8*W,Z=N/1e3,re=H/Z;this.fast_.sample(Z,re),this.slow_.sample(Z,re)}},{key:"sampleTTFB",value:function(N){var W=N/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(W,2)/2);this.ttfb_.sample(H,Math.max(N,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}]),Ae}(),go=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=-1,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=q;var N=q.config;this.bwEstimator=new Ds(N.abrEwmaSlowVoD,N.abrEwmaFastVoD,N.abrEwmaDefaultEstimate),this.registerListeners()}return Object(o.a)(Ae,[{key:"registerListeners",value:function(){var N=this.hls;N.on(w.FRAG_LOADING,this.onFragLoading,this),N.on(w.FRAG_LOADED,this.onFragLoaded,this),N.on(w.FRAG_BUFFERED,this.onFragBuffered,this),N.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),N.on(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;N.off(w.FRAG_LOADING,this.onFragLoading,this),N.off(w.FRAG_LOADED,this.onFragLoaded,this),N.off(w.FRAG_BUFFERED,this.onFragBuffered,this),N.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),N.off(w.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onFragLoading",value:function(N,W){var H,Z=W.frag;if(this.ignoreFragment(Z))return;this.fragCurrent=Z,this.partCurrent=(H=W.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(N,W){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(N,W,H,Z){var re=N+H/W,ve=Z?this.lastLevelLoadSec:0;return re+ve}},{key:"onLevelLoaded",value:function(N,W){var H=this.hls.config,Z=W.stats,re=Z.total,ve=Z.bwEstimate;T(re)&&T(ve)&&(this.lastLevelLoadSec=8*re/ve),W.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var N=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.autoLevelEnabled,re=H.media;if(!N||!re)return;var ve=performance.now(),Te=W?W.stats:N.stats,ze=W?W.duration:N.duration,st=ve-Te.loading.start;if(Te.aborted||Te.loaded&&Te.loaded===Te.total||N.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!Z||re.paused||!re.playbackRate||!re.readyState)return;var mt=H.mainForwardBufferInfo;if(mt===null)return;var Yt=this.bwEstimator.getEstimateTTFB(),Tr=Math.abs(re.playbackRate);if(st<=Math.max(Yt,1e3*(ze/(Tr*2))))return;var wr=mt.len/Tr;if(wr>=2*ze/Tr)return;var jr=Te.loading.first?Te.loading.first-Te.loading.start:-1,Qr=Te.loaded&&jr>-1,Cn=this.bwEstimator.getEstimate(),Dn=H.levels,Zn=H.minAutoLevel,Si=Dn[N.level],ua=Te.total||Math.max(Te.loaded,Math.round(ze*Si.maxBitrate/8)),Vi=st-jr;Vi<1&&Qr&&(Vi=Math.min(st,Te.loaded*8/Cn));var Zi=Qr?Te.loaded*1e3/Vi:0,ka=Zi?(ua-Te.loaded)/Zi:ua*8/Cn+Yt/1e3;if(ka<=wr)return;var Ga=Zi?Zi*8:Cn,Ba=Number.POSITIVE_INFINITY,Sa;for(Sa=N.level-1;Sa>Zn;Sa--){var Go=Dn[Sa].maxBitrate;if(Ba=this.getTimeToLoadFrag(Yt/1e3,Ga,ze*Go,!Dn[Sa].details),Ba<wr)break}if(Ba>=ka)return;if(Ba>ze*10)return;H.nextLoadLevel=Sa,Qr?this.bwEstimator.sample(st-Math.min(Yt,jr),Te.loaded):this.bwEstimator.sampleTTFB(st),this.clearTimer(),j.warn("[abr] Fragment ".concat(N.sn).concat(W?" part "+W.index:""," of level ").concat(N.level,` is loading too slowly;
Time to underbuffer: `).concat(wr.toFixed(3),` s
Estimated load time for current fragment: `).concat(ka.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Ba.toFixed(3),` s
TTFB estimate: `).concat(jr,`
Current BW estimate: `).concat(T(Cn)?(Cn/1024).toFixed(3):"Unknown",` Kb/s
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
Aborting and switching to level `).concat(Sa)),N.loader&&(this.fragCurrent=this.partCurrent=null,N.abortRequests()),H.trigger(w.FRAG_LOAD_EMERGENCY_ABORTED,{frag:N,part:W,stats:Te})}},{key:"onFragLoaded",value:function(N,W){var H=W.frag,Z=W.part,re=Z?Z.stats:H.stats;if(H.type===At.MAIN&&this.bwEstimator.sampleTTFB(re.loading.first-re.loading.start),this.ignoreFragment(H))return;if(this.clearTimer(),this.lastLoadedFragLevel=H.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var ve=Z?Z.duration:H.duration,Te=this.hls.levels[H.level],ze=(Te.loaded?Te.loaded.bytes:0)+re.loaded,st=(Te.loaded?Te.loaded.duration:0)+ve;Te.loaded={bytes:ze,duration:st},Te.realBitrate=Math.round(8*ze/st)}if(H.bitrateTest){var mt={stats:re,frag:H,part:Z,id:H.type};this.onFragBuffered(w.FRAG_BUFFERED,mt),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(N,W){var H=W.frag,Z=W.part,re=Z!=null&&Z.stats.loaded?Z.stats:H.stats;if(re.aborted)return;if(this.ignoreFragment(H))return;var ve=re.parsing.end-re.loading.start-Math.min(re.loading.first-re.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(ve,re.loaded),re.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=ve/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(N){return N.type!==At.MAIN||N.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var N=this._nextAutoLevel,W=this.bwEstimator;if(N!==-1&&!W.canEstimate())return N;var H=this.getNextABRAutoLevel();if(N!==-1){var Z=this.hls.levels;if(Z.length>Math.max(N,H)&&Z[N].loadError<=Z[H].loadError)return N}return N!==-1&&(H=Math.min(N,H)),H},set:function(N){this._nextAutoLevel=N}},{key:"getNextABRAutoLevel",value:function(){var N=this.fragCurrent,W=this.partCurrent,H=this.hls,Z=H.maxAutoLevel,re=H.config,ve=H.minAutoLevel,Te=H.media,ze=W?W.duration:N?N.duration:0,st=Te&&Te.playbackRate!==0?Math.abs(Te.playbackRate):1,mt=this.bwEstimator?this.bwEstimator.getEstimate():re.abrEwmaDefaultEstimate,Yt=H.mainForwardBufferInfo,Tr=(Yt?Yt.len:0)/st,wr=this.findBestLevel(mt,ve,Z,Tr,re.abrBandWidthFactor,re.abrBandWidthUpFactor);if(wr>=0)return wr;j.trace("[abr] ".concat(Tr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var jr=ze?Math.min(ze,re.maxStarvationDelay):re.maxStarvationDelay,Qr=re.abrBandWidthFactor,Cn=re.abrBandWidthUpFactor;if(!Tr){var Dn=this.bitrateTestDelay;if(Dn){var Zn=ze?Math.min(ze,re.maxLoadingDelay):re.maxLoadingDelay;jr=Zn-Dn,j.trace("[abr] bitrate test took ".concat(Math.round(1e3*Dn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*jr)," ms")),Qr=Cn=1}}return wr=this.findBestLevel(mt,ve,Z,Tr+jr,Qr,Cn),Math.max(wr,0)}},{key:"findBestLevel",value:function(N,W,H,Z,re,ve){for(var Te,ze=this.fragCurrent,st=this.partCurrent,mt=this.lastLoadedFragLevel,Yt=this.hls.levels,Tr=Yt[mt],wr=!!(Tr!=null&&(Te=Tr.details)!=null&&Te.live),jr=Tr==null?void 0:Tr.codecSet,Qr=st?st.duration:ze?ze.duration:0,Cn=this.bwEstimator.getEstimateTTFB()/1e3,Dn=W,Zn=-1,Si=H;Si>=W;Si--){var ua=Yt[Si];if(!ua||jr&&ua.codecSet!==jr){ua&&(Dn=Math.min(Si,Dn),Zn=Math.max(Si,Zn));continue}Zn!==-1&&j.trace("[abr] Skipped level(s) ".concat(Dn,"-").concat(Zn,' with CODECS:"').concat(Yt[Zn].attrs.CODECS,'"; not compatible with "').concat(Tr.attrs.CODECS,'"'));var Vi=ua.details,Zi=(st?Vi==null?void 0:Vi.partTarget:Vi==null?void 0:Vi.averagetargetduration)||Qr,ka=void 0;Si<=mt?ka=re*N:ka=ve*N;var Ga=Yt[Si].maxBitrate,Ba=this.getTimeToLoadFrag(Cn,ka,Ga*Zi,Vi===void 0);if(j.trace("[abr] level:".concat(Si," adjustedbw-bitrate:").concat(Math.round(ka-Ga)," avgDuration:").concat(Zi.toFixed(1)," maxFetchDuration:").concat(Z.toFixed(1)," fetchDuration:").concat(Ba.toFixed(1))),ka>Ga&&(Ba===0||!T(Ba)||wr&&!this.bitrateTestDelay||Ba<Z))return Si}return-1}}]),Ae}(),jt=function(){function Ae(){Object(n.a)(this,Ae),this.chunks=[],this.dataLength=0}return Object(o.a)(Ae,[{key:"push",value:function(N){this.chunks.push(N),this.dataLength+=N.length}},{key:"flush",value:function(){var N=this.chunks,W=this.dataLength,H;if(N.length)N.length===1?H=N[0]:H=or(N,W);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),Ae}();function or(Ae,q){for(var N=new Uint8Array(q),W=0,H=0;H<Ae.length;H++){var Z=Ae[H];N.set(Z,W),W+=Z.length}return N}var In=100,hi=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z){var re;return Object(n.a)(this,N),re=q.call(this,W,H,Z,"[audio-stream-controller]",At.AUDIO),re.videoBuffer=null,re.videoTrackCC=-1,re.waitingVideoCC=-1,re.bufferedTrack=null,re.switchingTrack=null,re.trackId=-1,re.waitingData=null,re.mainDetails=null,re.bufferFlushed=!1,re.cachedTrackLoadedData=null,re._registerListeners(),re}return Object(o.a)(N,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.BUFFER_RESET,this.onBufferReset,this),H.on(w.BUFFER_CREATED,this.onBufferCreated,this),H.on(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(w.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.BUFFER_RESET,this.onBufferReset,this),H.off(w.BUFFER_CREATED,this.onBufferCreated,this),H.off(w.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,Z){var re=Z.frag,ve=Z.id,Te=Z.initPTS,ze=Z.timescale;if(ve==="main"){var st=re.cc;this.initPTS[re.cc]={baseTime:Te,timescale:ze},this.log("InitPTS for cc: ".concat(st," found from main: ").concat(Te)),this.videoTrackCC=st,this.state===Bi.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=Bi.STOPPED;return}var Z=this.lastCurrentTime;this.stopLoad(),this.setInterval(In),Z>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(Z.toFixed(3))),H=Z,this.state=Bi.IDLE):(this.loadedmetadata=!1,this.state=Bi.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Bi.IDLE:this.doTickIdle();break;case Bi.WAITING_TRACK:{var H,Z=this.levels,re=this.trackId,ve=Z==null||(H=Z[re])==null?void 0:H.details;if(ve){if(this.waitForCdnTuneIn(ve))break;this.state=Bi.WAITING_INIT_PTS}break}case Bi.FRAG_LOADING_WAITING_RETRY:{var Te,ze=performance.now(),st=this.retryDate;(!st||ze>=st||(Te=this.media)!=null&&Te.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=Bi.IDLE);break}case Bi.WAITING_INIT_PTS:{var mt=this.waitingData;if(mt){var Yt=mt.frag,Tr=mt.part,wr=mt.cache,jr=mt.complete;if(this.initPTS[Yt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.FRAG_LOADING;var Qr=wr.flush(),Cn={frag:Yt,part:Tr,payload:Qr,networkDetails:null};this._handleFragmentLoadProgress(Cn),jr&&Object(t.a)(Object(m.a)(N.prototype),"_handleFragmentLoadComplete",this).call(this,Cn)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Yt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Dn=this.getLoadPosition(),Zn=Oi.bufferInfo(this.mediaBuffer,Dn,this.config.maxBufferHole),Si=Rn(Zn.end,this.config.maxFragLookUpTolerance,Yt);Si<0&&(this.log("Waiting fragment cc (".concat(Yt.cc,") @ ").concat(Yt.start," cancelled because another fragment at ").concat(Zn.end," is needed")),this.clearWaitingFragment())}}else this.state=Bi.IDLE}}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var H=this.waitingData;H&&(this.fragmentTracker.removeFragment(H.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Bi.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.a)(N.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var H=this.media;if(!(H!=null&&H.readyState))return;this.lastCurrentTime=H.currentTime}},{key:"doTickIdle",value:function(){var H=this.hls,Z=this.levels,re=this.media,ve=this.trackId,Te=H.config;if(!(Z!=null&&Z[ve]))return;if(!re&&(this.startFragRequested||!Te.startFragPrefetch))return;var ze=Z[ve],st=ze.details;if(!st||st.live&&this.levelLastLoaded!==ve||this.waitForCdnTuneIn(st)){this.state=Bi.WAITING_TRACK;return}var mt=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&mt&&(this.bufferFlushed=!1,this.afterBufferFlushed(mt,ye.AUDIO,At.AUDIO));var Yt=this.getFwdBufferInfo(mt,At.AUDIO);if(Yt===null)return;var Tr=this.bufferedTrack,wr=this.switchingTrack;if(!wr&&this._streamEnded(Yt,st)){H.trigger(w.BUFFER_EOS,{type:"audio"}),this.state=Bi.ENDED;return}var jr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,At.MAIN),Qr=Yt.len,Cn=this.getMaxBufferLength(jr==null?void 0:jr.len);if(Qr>=Cn&&!wr)return;var Dn=st.fragments,Zn=Dn[0].start,Si=Yt.end;if(wr&&re){var ua=this.getLoadPosition();Tr&&wr.attrs!==Tr.attrs&&(Si=ua),st.PTSKnown&&ua<Zn&&((Yt.end>Zn||Yt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),re.currentTime=Zn+.05))}var Vi=this.getNextFragment(Si,st),Zi=!1;if(Vi&&this.isLoopLoading(Vi,Si)&&(Zi=!!Vi.gap,Vi=this.getNextFragmentLoopLoading(Vi,st,Yt,At.MAIN,Cn)),!Vi){this.bufferFlushed=!0;return}var ka=jr&&Vi.start>jr.end+st.targetduration;if(ka||!(jr!=null&&jr.len)&&Yt.len){var Ga=this.getAppendedFrag(Vi.start,At.MAIN);if(Ga===null)return;if(Zi||(Zi=!!Ga.gap||!!ka&&jr.len===0),ka&&!Zi||Zi&&Yt.nextStart&&Yt.nextStart<Ga.end)return}this.loadFragment(Vi,ze,Si)}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(N.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(Z,H),this.config.maxMaxBufferLength):Z}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(N.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,Z){var re=Z.audioTracks;this.resetTransmuxer(),this.levels=re.map(function(ve){return new Lt(ve)})}},{key:"onAudioTrackSwitching",value:function(H,Z){var re=!!Z.url;this.trackId=Z.id;var ve=this.fragCurrent;ve&&(ve.abortRequests(),this.removeUnbufferedFrags(ve.start)),this.resetLoadingState(),re?this.setInterval(In):this.resetTransmuxer(),re?(this.switchingTrack=Z,this.state=Bi.IDLE):(this.switchingTrack=null,this.bufferedTrack=Z,this.state=Bi.STOPPED),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(w.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,Z){var re;if(this.mainDetails==null){this.cachedTrackLoadedData=Z;return}var ve=this.levels,Te=Z.details,ze=Z.id;if(!ve){this.warn("Audio tracks were reset while loading level ".concat(ze));return}this.log("Track ".concat(ze," loaded [").concat(Te.startSN,",").concat(Te.endSN,"]").concat(Te.lastPartSn?"[part-".concat(Te.lastPartSn,"-").concat(Te.lastPartIndex,"]"):"",",duration:").concat(Te.totalduration));var st=ve[ze],mt=0;if(Te.live||(re=st.details)!=null&&re.live){this.checkLiveUpdate(Te);var Yt=this.mainDetails;if(Te.deltaUpdateFailed||!Yt)return;!st.details&&Te.hasProgramDateTime&&Yt.hasProgramDateTime?(La(Te,Yt),mt=Te.fragments[0].start):mt=this.alignPlaylists(Te,st.details)}st.details=Te,this.levelLastLoaded=ze,!this.startFragRequested&&(this.mainDetails||!Te.live)&&this.setStartPosition(st.details,mt),this.state===Bi.WAITING_TRACK&&!this.waitForCdnTuneIn(Te)&&(this.state=Bi.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var Z,re=H.frag,ve=H.part,Te=H.payload,ze=this.config,st=this.trackId,mt=this.levels;if(!mt){this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(re.sn," of level ").concat(re.level," will not be buffered"));return}var Yt=mt[st];if(!Yt){this.warn("Audio track is undefined on fragment load progress");return}var Tr=Yt.details;if(!Tr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(re.start);return}var wr=ze.defaultAudioCodec||Yt.audioCodec||"mp4a.40.2",jr=this.transmuxer;jr||(jr=this.transmuxer=new Qs(this.hls,At.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Qr=this.initPTS[re.cc],Cn=(Z=re.initSegment)==null?void 0:Z.data;if(Qr!==void 0){var Dn=!1,Zn=ve?ve.index:-1,Si=Zn!==-1,ua=new zi(re.level,re.sn,re.stats.chunkCount,Te.byteLength,Zn,Si);jr.push(Te,Cn,wr,"",re,ve,Tr.totalduration,Dn,ua,Qr)}else{this.log("Unknown video PTS for cc ".concat(re.cc,", waiting for video PTS before demuxing audio frag ").concat(re.sn," of [").concat(Tr.startSN," ,").concat(Tr.endSN,"],track ").concat(st));var Vi=this.waitingData=this.waitingData||{frag:re,part:ve,cache:new jt,complete:!1},Zi=Vi.cache;Zi.push(new Uint8Array(Te)),this.waitingVideoCC=this.videoTrackCC,this.state=Bi.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.a)(N.prototype),"_handleFragmentLoadComplete",this).call(this,H)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(H,Z){var re=Z.tracks.audio;re&&(this.mediaBuffer=re.buffer||null),Z.tracks.video&&(this.videoBuffer=Z.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,Z){var re=Z.frag,ve=Z.part;if(re.type!==At.AUDIO){if(!this.loadedmetadata&&re.type===At.MAIN){var Te=this.videoBuffer||this.media;if(Te){var ze=Oi.getBuffered(Te);ze.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(re)){this.warn("Fragment ".concat(re.sn).concat(ve?" p: "+ve.index:""," of level ").concat(re.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));return}if(re.sn!=="initSegment"){this.fragPrevious=re;var st=this.switchingTrack;st&&(this.bufferedTrack=st,this.switchingTrack=null,this.hls.trigger(w.AUDIO_TRACK_SWITCHED,b({},st)))}this.fragBufferedComplete(re,ve)}},{key:"onError",value:function(H,Z){var re;if(Z.fatal){this.state=Bi.ERROR;return}switch(Z.details){case I.FRAG_GAP:case I.FRAG_PARSING_ERROR:case I.FRAG_DECRYPT_ERROR:case I.FRAG_LOAD_ERROR:case I.FRAG_LOAD_TIMEOUT:case I.KEY_LOAD_ERROR:case I.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(At.AUDIO,Z);break;case I.AUDIO_TRACK_LOAD_ERROR:case I.AUDIO_TRACK_LOAD_TIMEOUT:case I.LEVEL_PARSING_ERROR:!Z.levelRetry&&this.state===Bi.WAITING_TRACK&&((re=Z.context)==null?void 0:re.type)===Et.AUDIO_TRACK&&(this.state=Bi.IDLE);break;case I.BUFFER_FULL_ERROR:if(!Z.parent||Z.parent!=="audio")return;this.reduceLengthAndFlushBuffer(Z)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(N.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case I.INTERNAL_EXCEPTION:this.recoverWorkerError(Z);break}}},{key:"onBufferFlushed",value:function(H,Z){var re=Z.type;re===ye.AUDIO&&(this.bufferFlushed=!0,this.state===Bi.ENDED&&(this.state=Bi.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var Z,re="audio",ve=this.hls,Te=H.remuxResult,ze=H.chunkMeta,st=this.getCurrentContext(ze);if(!st){this.resetWhenMissingContext(ze);return}var mt=st.frag,Yt=st.part,Tr=st.level,wr=Tr.details,jr=Te.audio,Qr=Te.text,Cn=Te.id3,Dn=Te.initSegment;if(this.fragContextChanged(mt)||!wr){this.fragmentTracker.removeFragment(mt);return}if(this.state=Bi.PARSING,this.switchingTrack&&jr&&this.completeAudioSwitch(this.switchingTrack),Dn!=null&&Dn.tracks){var Zn=mt.initSegment||mt;this._bufferInitSegment(Dn.tracks,Zn,ze),ve.trigger(w.FRAG_PARSING_INIT_SEGMENT,{frag:Zn,id:re,tracks:Dn.tracks})}if(jr){var Si=jr.startPTS,ua=jr.endPTS,Vi=jr.startDTS,Zi=jr.endDTS;Yt&&(Yt.elementaryStreams[ye.AUDIO]={startPTS:Si,endPTS:ua,startDTS:Vi,endDTS:Zi}),mt.setElementaryStreamInfo(ye.AUDIO,Si,ua,Vi,Zi),this.bufferFragmentData(jr,mt,Yt,ze)}if(Cn!=null&&(Z=Cn.samples)!=null&&Z.length){var ka=E({id:re,frag:mt,details:wr},Cn);ve.trigger(w.FRAG_PARSING_METADATA,ka)}if(Qr){var Ga=E({id:re,frag:mt,details:wr},Qr);ve.trigger(w.FRAG_PARSING_USERDATA,Ga)}}},{key:"_bufferInitSegment",value:function(H,Z,re){if(this.state!==Bi.PARSING)return;H.video&&delete H.video;var ve=H.audio;if(!ve)return;ve.levelCodec=ve.codec,ve.id="audio",this.log("Init audio buffer, container:".concat(ve.container,", codecs[parsed]=[").concat(ve.codec,"]")),this.hls.trigger(w.BUFFER_CODECS,H);var Te=ve.initSegment;if(Te!=null&&Te.byteLength){var ze={type:"audio",frag:Z,part:null,chunkMeta:re,parent:Z.type,data:Te};this.hls.trigger(w.BUFFER_APPENDING,ze)}this.tick()}},{key:"loadFragment",value:function(H,Z,re){var ve=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||ve===_t.NOT_LOADED||ve===_t.PARTIAL){var Te;H.sn==="initSegment"?this._loadInitSegment(H,Z):(Te=Z.details)!=null&&Te.live&&!this.initPTS[H.cc]?(this.log("Waiting for video PTS in continuity counter ".concat(H.cc," of live stream before loading audio fragment ").concat(H.sn," of level ").concat(this.trackId)),this.state=Bi.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(N.prototype),"loadFragment",this).call(this,H,Z,re))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var Z=this.hls,re=this.media,ve=this.bufferedTrack,Te=ve==null?void 0:ve.attrs,ze=H.attrs;re&&Te&&(Te.CHANNELS!==ze.CHANNELS||Te.NAME!==ze.NAME||Te.LANGUAGE!==ze.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(N.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,Z.trigger(w.AUDIO_TRACK_SWITCHED,b({},H))}}]),N}(io),Nt=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W){var H;return Object(n.a)(this,N),H=q.call(this,W,"[audio-track-controller]"),H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.currentTrack=null,H.selectDefaultTrack=!0,H.registerListeners(),H}return Object(o.a)(N,[{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,Object(t.a)(Object(m.a)(N.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,Z){var re=Z.id,ve=Z.groupId,Te=Z.details,ze=this.tracksInGroup[re];if(!ze||ze.groupId!==ve){this.warn("Track with id:".concat(re," and group:").concat(ve," not found in active group ").concat(ze.groupId));return}var st=ze.details;ze.details=Z.details,this.log("audio-track ".concat(re,' "').concat(ze.name,'" lang:').concat(ze.lang," group:").concat(ve," loaded [").concat(Te.startSN,"-").concat(Te.endSN,"]")),re===this.trackId&&this.playlistLoaded(re,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.audioGroupIds))return;var re=Z.audioGroupIds[Z.urlId];if(this.groupId!==re){this.groupId=re||null;var ve=this.tracks.filter(function(ze){return!re||ze.groupId===re});this.selectDefaultTrack&&!ve.some(function(ze){return ze.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=ve;var Te={audioTracks:ve};this.log("Updating audio tracks, ".concat(ve.length," track(s) found in group:").concat(re)),this.hls.trigger(w.AUDIO_TRACKS_UPDATED,Te),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Et.AUDIO_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(Z))}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1,this.setAudioTrack(H)}},{key:"setAudioTrack",value:function(H){var Z=this.tracksInGroup;if(H<0||H>=Z.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var re=this.currentTrack;Z[this.trackId];var ve=Z[H],Te=ve.groupId,ze=ve.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(ze,'" lang:').concat(ve.lang," group:").concat(Te)),this.trackId=H,this.currentTrack=ve,this.selectDefaultTrack=!1,this.hls.trigger(w.AUDIO_TRACK_SWITCHING,b({},ve)),ve.details&&!ve.details.live)return;var st=this.switchParams(ve.url,re==null?void 0:re.details);this.loadPlaylist(st)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,Z=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(Z!==-1)this.setAudioTrack(Z);else{var re=new Error("No track found for running audio group-ID: ".concat(this.groupId," track count: ").concat(H.length));this.warn(re.message),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:re})}}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,re=0;re<Z.length;re++){var ve=Z[re];if(!this.selectDefaultTrack||ve.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===ve.attrs["STABLE-RENDITION-ID"])return ve.id;if(H.name===ve.name&&H.lang===ve.lang)return ve.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(N.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var re=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("loading audio-track playlist ".concat(re,' "').concat(Z.name,'" lang:').concat(Z.lang," group:").concat(ve)),this.clearTimer(),this.hls.trigger(w.AUDIO_TRACK_LOADING,{url:Te,id:re,groupId:ve,deliveryDirectives:H||null})}}}]),N}(pr);function ce(Ae,q){if(Ae.length!==q.length)return!1;for(var N=0;N<Ae.length;N++)if(!xe(Ae[N].attrs,q[N].attrs))return!1;return!0}function xe(Ae,q){var N=Ae["STABLE-RENDITION-ID"];return N?N===q["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(W){return Ae[W]!==q[W]})}var Ie=500,Je=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z){var re;return Object(n.a)(this,N),re=q.call(this,W,H,Z,"[subtitle-stream-controller]",At.SUBTITLE),re.levels=[],re.currentTrackId=-1,re.tracksBuffered=[],re.mainDetails=null,re._registerListeners(),re}return Object(o.a)(N,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.mainDetails=null}},{key:"_registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.LEVEL_LOADED,this.onLevelLoaded,this),H.on(w.ERROR,this.onError,this),H.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.LEVEL_LOADED,this.onLevelLoaded,this),H.off(w.ERROR,this.onError,this),H.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(w.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(w.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=Bi.IDLE,this.setInterval(Ie),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],Object(t.a)(Object(m.a)(N.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,Z){this.mainDetails=Z.details}},{key:"onSubtitleFragProcessed",value:function(H,Z){var re=Z.frag,ve=Z.success;if(this.fragPrevious=re,this.state=Bi.IDLE,!ve)return;var Te=this.tracksBuffered[this.currentTrackId];if(!Te)return;for(var ze,st=re.start,mt=0;mt<Te.length;mt++)if(st>=Te[mt].start&&st<=Te[mt].end){ze=Te[mt];break}var Yt=re.start+re.duration;ze?ze.end=Yt:(ze={start:st,end:Yt},Te.push(ze)),this.fragmentTracker.fragBuffered(re)}},{key:"onBufferFlushing",value:function(H,Z){var re=Z.startOffset,ve=Z.endOffset;if(re===0&&ve!==Number.POSITIVE_INFINITY){var Te=ve-1;if(Te<=0)return;Z.endOffsetSubtitles=Math.max(0,Te),this.tracksBuffered.forEach(function(ze){for(var st=0;st<ze.length;){if(ze[st].end<=Te){ze.shift();continue}else if(ze[st].start<Te)ze[st].start=Te;else break;st++}}),this.fragmentTracker.removeFragmentsInRange(re,Te,At.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,Z){if(!this.loadedmetadata&&Z.frag.type===At.MAIN){var re;(re=this.media)!=null&&re.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,Z){var re=Z.frag;(re==null?void 0:re.type)===At.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Bi.STOPPED&&(this.state=Bi.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,Z){var re=this,ve=Z.subtitleTracks;if(ce(this.levels,ve)){this.levels=ve.map(function(Te){return new Lt(Te)});return}this.tracksBuffered=[],this.levels=ve.map(function(Te){var ze=new Lt(Te);return re.tracksBuffered[ze.id]=[],ze}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,At.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,Z){if(this.currentTrackId=Z.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var re=this.levels[this.currentTrackId];re!=null&&re.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,re&&this.setInterval(Ie)}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var re,ve=Z.details,Te=Z.id,ze=this.currentTrackId,st=this.levels;if(!st.length)return;var mt=st[ze];if(Te>=st.length||Te!==ze||!mt)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Yt=0;if(ve.live||(re=mt.details)!=null&&re.live){var Tr=this.mainDetails;if(ve.deltaUpdateFailed||!Tr)return;var wr=Tr.fragments[0];mt.details?(Yt=this.alignPlaylists(ve,mt.details),Yt===0&&wr&&(Yt=wr.start,pn(ve,Yt))):ve.hasProgramDateTime&&Tr.hasProgramDateTime?(La(ve,Tr),Yt=ve.fragments[0].start):wr&&(Yt=wr.start,pn(ve,Yt))}if(mt.details=ve,this.levelLastLoaded=Te,!this.startFragRequested&&(this.mainDetails||!ve.live)&&this.setStartPosition(mt.details,Yt),this.tick(),ve.live&&!this.fragCurrent&&this.media&&this.state===Bi.IDLE){var jr=bi(null,ve.fragments,this.media.currentTime,0);jr||(this.warn("Subtitle playlist not aligned with playback"),mt.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var Z=this,re=H.frag,ve=H.payload,Te=re.decryptdata,ze=this.hls;if(this.fragContextChanged(re))return;if(ve&&ve.byteLength>0&&Te&&Te.key&&Te.iv&&Te.method==="AES-128"){var st=performance.now();this.decrypter.decrypt(new Uint8Array(ve),Te.key.buffer,Te.iv.buffer).catch(function(mt){throw ze.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.FRAG_DECRYPT_ERROR,fatal:!1,error:mt,reason:mt.message,frag:re}),mt}).then(function(mt){var Yt=performance.now();ze.trigger(w.FRAG_DECRYPTED,{frag:re,payload:mt,stats:{tstart:st,tdecrypt:Yt}})}).catch(function(mt){Z.warn("".concat(mt.name,": ").concat(mt.message)),Z.state=Bi.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=Bi.IDLE;return}if(this.state===Bi.IDLE){var H=this.currentTrackId,Z=this.levels,re=Z[H];if(!Z.length||!re||!re.details)return;var ve=this.config,Te=this.getLoadPosition(),ze=Oi.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],Te,ve.maxBufferHole),st=ze.end,mt=ze.len,Yt=this.getFwdBufferInfo(this.media,At.MAIN),Tr=re.details,wr=this.getMaxBufferLength(Yt==null?void 0:Yt.len)+Tr.levelTargetDuration;if(mt>wr)return;var jr=Tr.fragments,Qr=jr.length,Cn=Tr.edge,Dn=null,Zn=this.fragPrevious;if(st<Cn){var Si=ve.maxFragLookUpTolerance,ua=st>Cn-Si?0:Si;Dn=bi(Zn,jr,Math.max(jr[0].start,st),ua),!Dn&&Zn&&Zn.start<jr[0].start&&(Dn=jr[0])}else Dn=jr[Qr-1];if(!Dn)return;if(Dn=this.mapToInitFragWhenRequired(Dn),Dn.sn!=="initSegment"){var Vi=Dn.sn-Tr.startSN,Zi=jr[Vi-1];Zi&&Zi.cc===Dn.cc&&this.fragmentTracker.getState(Zi)===_t.NOT_LOADED&&(Dn=Zi)}this.fragmentTracker.getState(Dn)===_t.NOT_LOADED&&this.loadFragment(Dn,re,st)}}},{key:"getMaxBufferLength",value:function(H){var Z=Object(t.a)(Object(m.a)(N.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(Z,H):Z}},{key:"loadFragment",value:function(H,Z,re){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,Z):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(N.prototype),"loadFragment",this).call(this,H,Z,re))}},{key:"mediaBufferTimeRanges",get:function(){return new Dt(this.tracksBuffered[this.currentTrackId]||[])}}]),N}(io),Dt=Object(o.a)(function Ae(q){Object(n.a)(this,Ae),this.buffered=void 0;var N=function(H,Z,re){if(Z=Z>>>0,Z>re-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(Z,") is greater than the maximum bound (").concat(re,")"));return q[Z][H]};this.buffered={get length(){return q.length},end:function(H){return N("end",H,q.length)},start:function(H){return N("start",H,q.length)}}}),lr=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W){var H;return Object(n.a)(this,N),H=q.call(this,W,"[subtitle-track-controller]"),H.media=null,H.tracks=[],H.groupId=null,H.tracksInGroup=[],H.trackId=-1,H.selectDefaultTrack=!0,H.queuedDefaultTrack=-1,H.trackChangeListener=function(){return H.onTextTracksChanged()},H.asyncPollTrackChange=function(){return H.pollTrackChange(0)},H.useTextTrackPolling=!1,H.subtitlePollingInterval=-1,H._subtitleDisplay=!0,H.registerListeners(),H}return Object(o.a)(N,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,Object(t.a)(Object(m.a)(N.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(H){this._subtitleDisplay=H,this.trackId>-1&&this.toggleTrackModes(this.trackId)}},{key:"registerListeners",value:function(){var H=this.hls;H.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(w.MANIFEST_LOADING,this.onManifestLoading,this),H.on(w.MANIFEST_PARSED,this.onManifestParsed,this),H.on(w.LEVEL_LOADING,this.onLevelLoading,this),H.on(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(w.MANIFEST_LOADING,this.onManifestLoading,this),H.off(w.MANIFEST_PARSED,this.onManifestParsed,this),H.off(w.LEVEL_LOADING,this.onLevelLoading,this),H.off(w.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(w.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(w.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,Z){if(this.media=Z.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)}},{key:"pollTrackChange",value:function(H){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,H)}},{key:"onMediaDetaching",value:function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var H=Xr(this.media.textTracks);H.forEach(function(Z){Wn(Z)}),this.subtitleTrack=-1,this.media=null}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(H,Z){this.tracks=Z.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,Z){var re=Z.id,ve=Z.details,Te=this.trackId,ze=this.tracksInGroup[Te];if(!ze){this.warn("Invalid subtitle track id ".concat(re));return}var st=ze.details;ze.details=Z.details,this.log("subtitle track ".concat(re," loaded [").concat(ve.startSN,"-").concat(ve.endSN,"]")),re===this.trackId&&this.playlistLoaded(re,Z,st)}},{key:"onLevelLoading",value:function(H,Z){this.switchLevel(Z.level)}},{key:"onLevelSwitching",value:function(H,Z){this.switchLevel(Z.level)}},{key:"switchLevel",value:function(H){var Z=this.hls.levels[H];if(!(Z!=null&&Z.textGroupIds))return;var re=Z.textGroupIds[Z.urlId],ve=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==re){var Te=this.tracks.filter(function(mt){return!re||mt.groupId===re});this.tracksInGroup=Te;var ze=this.findTrackId(ve==null?void 0:ve.name)||this.findTrackId();this.groupId=re||null;var st={subtitleTracks:Te};this.log("Updating subtitle tracks, ".concat(Te.length,' track(s) found in "').concat(re,'" group-id')),this.hls.trigger(w.SUBTITLE_TRACKS_UPDATED,st),ze!==-1&&this.setSubtitleTrack(ze,ve)}else this.shouldReloadPlaylist(ve)&&this.setSubtitleTrack(this.trackId,ve)}},{key:"findTrackId",value:function(H){for(var Z=this.tracksInGroup,re=0;re<Z.length;re++){var ve=Z[re];if((!this.selectDefaultTrack||ve.default)&&(!H||H===ve.name))return ve.id}return-1}},{key:"onError",value:function(H,Z){if(Z.fatal||!Z.context)return;Z.context.type===Et.SUBTITLE_TRACK&&Z.context.id===this.trackId&&Z.context.groupId===this.groupId&&this.checkRetry(Z)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var Z=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,Z)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(N.prototype),"loadPlaylist",this).call(this);var Z=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(Z)){var re=Z.id,ve=Z.groupId,Te=Z.url;if(H)try{Te=H.addDirectives(Te)}catch(ze){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ze))}this.log("Loading subtitle playlist for id ".concat(re)),this.hls.trigger(w.SUBTITLE_TRACK_LOADING,{url:Te,id:re,groupId:ve,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var Z=this,re=this.media,ve=this.trackId;if(!re)return;var Te=Xr(re.textTracks),ze=Te.filter(function(Yt){return Yt.groupId===Z.groupId});if(H===-1)[].slice.call(Te).forEach(function(Yt){Yt.mode="disabled"});else{var st=ze[ve];st&&(st.mode="disabled")}var mt=ze[H];mt&&(mt.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,Z){var re,ve=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(re=ve[H])!=null&&re.details)||H<-1||H>=ve.length)return;this.clearTimer();var Te=ve[H];if(this.log("Switching to subtitle-track ".concat(H)+(Te?' "'.concat(Te.name,'" lang:').concat(Te.lang," group:").concat(Te.groupId):"")),this.trackId=H,Te){var ze=Te.id,st=Te.groupId,mt=st===void 0?"":st,Yt=Te.name,Tr=Te.type,wr=Te.url;this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:ze,groupId:mt,name:Yt,type:Tr,url:wr});var jr=this.switchParams(Te.url,Z==null?void 0:Z.details);this.loadPlaylist(jr)}else this.hls.trigger(w.SUBTITLE_TRACK_SWITCH,{id:H})}},{key:"onTextTracksChanged",value:function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var H=-1,Z=Xr(this.media.textTracks),re=0;re<Z.length;re++)if(Z[re].mode==="hidden")H=re;else if(Z[re].mode==="showing"){H=re;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),N}(pr);function Xr(Ae){for(var q=[],N=0;N<Ae.length;N++){var W=Ae[N];(W.kind==="subtitles"||W.kind==="captions")&&W.label&&q.push(Ae[N])}return q}var hn=function(){function Ae(q){Object(n.a)(this,Ae),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=q}return Object(o.a)(Ae,[{key:"append",value:function(N,W){var H=this.queues[W];H.push(N),H.length===1&&this.buffers[W]&&this.executeNext(W)}},{key:"insertAbort",value:function(N,W){var H=this.queues[W];H.unshift(N),this.executeNext(W)}},{key:"appendBlocker",value:function(N){var W,H=new Promise(function(re){W=re}),Z={execute:W,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(Z,N),H}},{key:"executeNext",value:function(N){var W=this.buffers,H=this.queues,Z=W[N],re=H[N];if(re.length){var ve=re[0];try{ve.execute()}catch(Te){j.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),ve.onError(Te),Z!=null&&Z.updating||(re.shift(),this.executeNext(N))}}}},{key:"shiftAndExecuteNext",value:function(N){this.queues[N].shift(),this.executeNext(N)}},{key:"current",value:function(N){return this.queues[N][0]}}]),Ae}(),Nn=rr(),ui=/([ha]vc.)(?:\.[^.,]+)+/,xi=function(){function Ae(q){var N=this;Object(n.a)(this,Ae),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var W=N.media,H=N.mediaSource;j.log("[buffer-controller]: Media source opened"),W&&(W.removeEventListener("emptied",N._onMediaEmptied),N.updateMediaElementDuration(),N.hls.trigger(w.MEDIA_ATTACHED,{media:W})),H&&H.removeEventListener("sourceopen",N._onMediaSourceOpen),N.checkPendingTracks()},this._onMediaSourceClose=function(){j.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){j.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var W=N.media,H=N._objectUrl;W&&W.src!==H&&j.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(W.src,")"))},this.hls=q,this._initSourceBuffer(),this.registerListeners()}return Object(o.a)(Ae,[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null}},{key:"registerListeners",value:function(){var N=this.hls;N.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),N.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),N.on(w.MANIFEST_LOADING,this.onManifestLoading,this),N.on(w.MANIFEST_PARSED,this.onManifestParsed,this),N.on(w.BUFFER_RESET,this.onBufferReset,this),N.on(w.BUFFER_APPENDING,this.onBufferAppending,this),N.on(w.BUFFER_CODECS,this.onBufferCodecs,this),N.on(w.BUFFER_EOS,this.onBufferEos,this),N.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this),N.on(w.LEVEL_UPDATED,this.onLevelUpdated,this),N.on(w.FRAG_PARSED,this.onFragParsed,this),N.on(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;N.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),N.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.MANIFEST_PARSED,this.onManifestParsed,this),N.off(w.BUFFER_RESET,this.onBufferReset,this),N.off(w.BUFFER_APPENDING,this.onBufferAppending,this),N.off(w.BUFFER_CODECS,this.onBufferCodecs,this),N.off(w.BUFFER_EOS,this.onBufferEos,this),N.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),N.off(w.LEVEL_UPDATED,this.onLevelUpdated,this),N.off(w.FRAG_PARSED,this.onFragParsed,this),N.off(w.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new hn(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(N,W){var H=2;(W.audio&&!W.video||!W.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,j.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(N,W){var H=this.media=W.media;if(H&&Nn){var Z=this.mediaSource=new Nn;Z.addEventListener("sourceopen",this._onMediaSourceOpen),Z.addEventListener("sourceended",this._onMediaSourceEnded),Z.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(Z),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var N=this.media,W=this.mediaSource,H=this._objectUrl;if(W){if(j.log("[buffer-controller]: media source detaching"),W.readyState==="open")try{W.endOfStream()}catch(Z){j.warn("[buffer-controller]: onMediaDetaching: ".concat(Z.message," while calling endOfStream"))}this.onBufferReset(),W.removeEventListener("sourceopen",this._onMediaSourceOpen),W.removeEventListener("sourceended",this._onMediaSourceEnded),W.removeEventListener("sourceclose",this._onMediaSourceClose),N&&(N.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),N.src===H?(N.removeAttribute("src"),N.load()):j.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(w.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var N=this;this.getSourceBufferTypes().forEach(function(W){var H=N.sourceBuffer[W];try{H&&(N.removeBufferListeners(W),N.mediaSource&&N.mediaSource.removeSourceBuffer(H),N.sourceBuffer[W]=void 0)}catch(Z){j.warn("[buffer-controller]: Failed to reset the ".concat(W," buffer"),Z)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(N,W){var H=this,Z=this.getSourceBufferTypes().length;if(Object.keys(W).forEach(function(re){if(Z){var ve=H.tracks[re];if(ve&&typeof ve.buffer.changeType=="function"){var Te=W[re],ze=Te.id,st=Te.codec,mt=Te.levelCodec,Yt=Te.container,Tr=Te.metadata,wr=(ve.levelCodec||ve.codec).replace(ui,"$1"),jr=(mt||st).replace(ui,"$1");if(wr!==jr){var Qr="".concat(Yt,";codecs=").concat(mt||st);H.appendChangeType(re,Qr),j.log("[buffer-controller]: switching codec ".concat(wr," to ").concat(jr)),H.tracks[re]={buffer:ve.buffer,codec:st,container:Yt,levelCodec:mt,metadata:Tr,id:ze}}}}else H.pendingTracks[re]=W[re]}),Z)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(N,W){var H=this,Z=this.operationQueue,re={execute:function(){var Te=H.sourceBuffer[N];Te&&(j.log("[buffer-controller]: changing ".concat(N," sourceBuffer type to ").concat(W)),Te.changeType(W)),Z.shiftAndExecuteNext(N)},onStart:function(){},onComplete:function(){},onError:function(Te){j.warn("[buffer-controller]: Failed to change ".concat(N," SourceBuffer type"),Te)}};Z.append(re,N)}},{key:"onBufferAppending",value:function(N,W){var H=this,Z=this.hls,re=this.operationQueue,ve=this.tracks,Te=W.data,ze=W.type,st=W.frag,mt=W.part,Yt=W.chunkMeta,Tr=Yt.buffering[ze],wr=self.performance.now();Tr.start=wr;var jr=st.stats.buffering,Qr=mt?mt.stats.buffering:null;jr.start===0&&(jr.start=wr),Qr&&Qr.start===0&&(Qr.start=wr);var Cn=ve.audio,Dn=!1;ze==="audio"&&(Cn==null?void 0:Cn.container)==="audio/mpeg"&&(Dn=!this.lastMpegAudioChunk||Yt.id===1||this.lastMpegAudioChunk.sn!==Yt.sn,this.lastMpegAudioChunk=Yt);var Zn=st.start,Si={execute:function(){if(Tr.executeStart=self.performance.now(),Dn){var Vi=H.sourceBuffer[ze];if(Vi){var Zi=Zn-Vi.timestampOffset;Math.abs(Zi)>=.1&&(j.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Zn," (delta: ").concat(Zi,") sn: ").concat(st.sn,")")),Vi.timestampOffset=Zn)}}H.appendExecutor(Te,ze)},onStart:function(){},onComplete:function(){var Vi=self.performance.now();Tr.executeEnd=Tr.end=Vi,jr.first===0&&(jr.first=Vi),Qr&&Qr.first===0&&(Qr.first=Vi);var Zi=H.sourceBuffer,ka={};for(var Ga in Zi)ka[Ga]=Oi.getBuffered(Zi[Ga]);H.appendError=0,H.hls.trigger(w.BUFFER_APPENDED,{type:ze,frag:st,part:mt,chunkMeta:Yt,parent:st.type,timeRanges:ka})},onError:function(Vi){j.error("[buffer-controller]: Error encountered while trying to append to the ".concat(ze," SourceBuffer"),Vi);var Zi={type:O.MEDIA_ERROR,parent:st.type,details:I.BUFFER_APPEND_ERROR,frag:st,part:mt,chunkMeta:Yt,error:Vi,err:Vi,fatal:!1};Vi.code===DOMException.QUOTA_EXCEEDED_ERR?Zi.details=I.BUFFER_FULL_ERROR:(H.appendError++,Zi.details=I.BUFFER_APPEND_ERROR,H.appendError>Z.config.appendErrorMaxRetry&&(j.error("[buffer-controller]: Failed ".concat(Z.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Zi.fatal=!0)),Z.trigger(w.ERROR,Zi)}};re.append(Si,ze)}},{key:"onBufferFlushing",value:function(N,W){var H=this,Z=this.operationQueue,re=function(Te){return{execute:H.removeExecutor.bind(H,Te,W.startOffset,W.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(w.BUFFER_FLUSHED,{type:Te})},onError:function(st){j.warn("[buffer-controller]: Failed to remove from ".concat(Te," SourceBuffer"),st)}}};W.type?Z.append(re(W.type),W.type):this.getSourceBufferTypes().forEach(function(ve){Z.append(re(ve),ve)})}},{key:"onFragParsed",value:function(N,W){var H=this,Z=W.frag,re=W.part,ve=[],Te=re?re.elementaryStreams:Z.elementaryStreams;Te[ye.AUDIOVIDEO]?ve.push("audiovideo"):(Te[ye.AUDIO]&&ve.push("audio"),Te[ye.VIDEO]&&ve.push("video"));var ze=function(){var mt=self.performance.now();Z.stats.buffering.end=mt,re&&(re.stats.buffering.end=mt);var Yt=re?re.stats:Z.stats;H.hls.trigger(w.FRAG_BUFFERED,{frag:Z,part:re,stats:Yt,id:Z.type})};ve.length===0&&j.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(Z.type," level: ").concat(Z.level," sn: ").concat(Z.sn)),this.blockBuffers(ze,ve)}},{key:"onFragChanged",value:function(N,W){this.flushBackBuffer()}},{key:"onBufferEos",value:function(N,W){var H=this,Z=this.getSourceBufferTypes().reduce(function(re,ve){var Te=H.sourceBuffer[ve];return Te&&(!W.type||W.type===ve)&&(Te.ending=!0,Te.ended||(Te.ended=!0,j.log("[buffer-controller]: ".concat(ve," sourceBuffer now EOS")))),re&&!!(!Te||Te.ended)},!0);Z&&(j.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(ve){var Te=H.sourceBuffer[ve];Te&&(Te.ending=!1)});var re=H.mediaSource;if(!re||re.readyState!=="open"){re&&j.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(re.readyState));return}j.log("[buffer-controller]: Calling mediaSource.endOfStream()"),re.endOfStream()}))}},{key:"onLevelUpdated",value:function(N,W){var H=W.details;if(!H.fragments.length)return;this.details=H,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()}},{key:"flushBackBuffer",value:function(){var N=this.hls,W=this.details,H=this.media,Z=this.sourceBuffer;if(!H||W===null)return;var re=this.getSourceBufferTypes();if(!re.length)return;var ve=W.live&&N.config.liveBackBufferLength!==null?N.config.liveBackBufferLength:N.config.backBufferLength;if(!T(ve)||ve<0)return;var Te=H.currentTime,ze=W.levelTargetDuration,st=Math.max(ve,ze),mt=Math.floor(Te/ze)*ze-st;re.forEach(function(Yt){var Tr=Z[Yt];if(Tr){var wr=Oi.getBuffered(Tr);if(wr.length>0&&mt>wr.start(0)){if(N.trigger(w.BACK_BUFFER_REACHED,{bufferEnd:mt}),W.live)N.trigger(w.LIVE_BACK_BUFFER_REACHED,{bufferEnd:mt});else if(Tr.ended&&wr.end(wr.length-1)-Te<ze*2){j.info("[buffer-controller]: Cannot flush ".concat(Yt," back buffer while SourceBuffer is in ended state"));return}N.trigger(w.BUFFER_FLUSHING,{startOffset:0,endOffset:mt,type:Yt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var N=this.details,W=this.hls,H=this.media,Z=this.mediaSource,re=N.fragments[0].start+N.totalduration,ve=H.duration,Te=T(Z.duration)?Z.duration:0;N.live&&W.config.liveDurationInfinity?(j.log("[buffer-controller]: Media Source duration is set to Infinity"),Z.duration=Infinity,this.updateSeekableRange(N)):(re>Te&&re>ve||!T(ve))&&(j.log("[buffer-controller]: Updating Media Source duration to ".concat(re.toFixed(3))),Z.duration=re)}},{key:"updateSeekableRange",value:function(N){var W=this.mediaSource,H=N.fragments,Z=H.length;if(Z&&N.live&&W!=null&&W.setLiveSeekableRange){var re=Math.max(0,H[0].start),ve=Math.max(re,re+N.totalduration);W.setLiveSeekableRange(re,ve)}}},{key:"checkPendingTracks",value:function(){var N=this.bufferCodecEventsExpected,W=this.operationQueue,H=this.pendingTracks,Z=Object.keys(H).length;if(Z&&!N||Z===2){this.createSourceBuffers(H),this.pendingTracks={};var re=this.getSourceBufferTypes();if(re.length)this.hls.trigger(w.BUFFER_CREATED,{tracks:this.tracks}),re.forEach(function(Te){W.executeNext(Te)});else{var ve=new Error("could not create source buffer for media codec(s)");this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:ve,reason:ve.message})}}}},{key:"createSourceBuffers",value:function(N){var W=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var Z in N)if(!W[Z]){var re=N[Z];if(!re)throw Error("source buffer exists for track ".concat(Z,", however track does not"));var ve=re.levelCodec||re.codec,Te="".concat(re.container,";codecs=").concat(ve);j.log("[buffer-controller]: creating sourceBuffer(".concat(Te,")"));try{var ze=W[Z]=H.addSourceBuffer(Te),st=Z;this.addBufferListener(st,"updatestart",this._onSBUpdateStart),this.addBufferListener(st,"updateend",this._onSBUpdateEnd),this.addBufferListener(st,"error",this._onSBUpdateError),this.tracks[Z]={buffer:ze,codec:ve,container:re.container,levelCodec:re.levelCodec,metadata:re.metadata,id:re.id}}catch(mt){j.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(mt.message)),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:mt,mimeType:Te})}}}},{key:"_onSBUpdateStart",value:function(N){var W=this.operationQueue,H=W.current(N);H.onStart()}},{key:"_onSBUpdateEnd",value:function(N){var W=this.operationQueue,H=W.current(N);H.onComplete(),W.shiftAndExecuteNext(N)}},{key:"_onSBUpdateError",value:function(N,W){var H=new Error("".concat(N," SourceBuffer error"));j.error("[buffer-controller]: ".concat(H),W),this.hls.trigger(w.ERROR,{type:O.MEDIA_ERROR,details:I.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var Z=this.operationQueue.current(N);Z&&Z.onError(W)}},{key:"removeExecutor",value:function(N,W,H){var Z=this.media,re=this.mediaSource,ve=this.operationQueue,Te=this.sourceBuffer,ze=Te[N];if(!Z||!re||!ze){j.warn("[buffer-controller]: Attempting to remove from the ".concat(N," SourceBuffer, but it does not exist")),ve.shiftAndExecuteNext(N);return}var st=T(Z.duration)?Z.duration:Infinity,mt=T(re.duration)?re.duration:Infinity,Yt=Math.max(0,W),Tr=Math.min(H,st,mt);Tr>Yt&&!ze.ending?(ze.ended=!1,j.log("[buffer-controller]: Removing [".concat(Yt,",").concat(Tr,"] from the ").concat(N," SourceBuffer")),ze.remove(Yt,Tr)):ve.shiftAndExecuteNext(N)}},{key:"appendExecutor",value:function(N,W){var H=this.operationQueue,Z=this.sourceBuffer,re=Z[W];if(!re){j.warn("[buffer-controller]: Attempting to append to the ".concat(W," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(W);return}re.ended=!1,re.appendBuffer(N)}},{key:"blockBuffers",value:function(N){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){j.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(N);return}var Z=this.operationQueue,re=H.map(function(ve){return Z.appendBlocker(ve)});Promise.all(re).then(function(){N(),H.forEach(function(ve){var Te=W.sourceBuffer[ve];Te!=null&&Te.updating||Z.shiftAndExecuteNext(ve)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(N,W,H){var Z=this.sourceBuffer[N];if(!Z)return;var re=H.bind(this,N);this.listeners[N].push({event:W,listener:re}),Z.addEventListener(W,re)}},{key:"removeBufferListeners",value:function(N){var W=this.sourceBuffer[N];if(!W)return;this.listeners[N].forEach(function(H){W.removeEventListener(H.event,H.listener)})}}]),Ae}(),Ai={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Yi=function(q){var N=q;return Ai.hasOwnProperty(q)&&(N=Ai[q]),String.fromCharCode(N)},sa=15,Ua=100,no={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Wo={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Zo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Bo={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Es=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],As=function(){function Ae(){Object(n.a)(this,Ae),this.time=null,this.verboseLevel=0}return Object(o.a)(Ae,[{key:"log",value:function(N,W){if(this.verboseLevel>=N){var H=typeof W=="function"?W():W;j.log("".concat(this.time," [").concat(N,"] ").concat(H))}}}]),Ae}(),$o=function(q){for(var N=[],W=0;W<q.length;W++)N.push(q[W].toString(16));return N},Do=function(){function Ae(q,N,W,H,Z){Object(n.a)(this,Ae),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=q||"white",this.underline=N||!1,this.italics=W||!1,this.background=H||"black",this.flash=Z||!1}return Object(o.a)(Ae,[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(N){for(var W=["foreground","underline","italics","background","flash"],H=0;H<W.length;H++){var Z=W[H];N.hasOwnProperty(Z)&&(this[Z]=N[Z])}}},{key:"isDefault",value:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}},{key:"equals",value:function(N){return this.foreground===N.foreground&&this.underline===N.underline&&this.italics===N.italics&&this.background===N.background&&this.flash===N.flash}},{key:"copy",value:function(N){this.foreground=N.foreground,this.underline=N.underline,this.italics=N.italics,this.background=N.background,this.flash=N.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}]),Ae}(),vo=function(){function Ae(q,N,W,H,Z,re){Object(n.a)(this,Ae),this.uchar=void 0,this.penState=void 0,this.uchar=q||" ",this.penState=new Do(N,W,H,Z,re)}return Object(o.a)(Ae,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(N,W){this.uchar=N,this.penState.copy(W)}},{key:"setPenState",value:function(N){this.penState.copy(N)}},{key:"equals",value:function(N){return this.uchar===N.uchar&&this.penState.equals(N.penState)}},{key:"copy",value:function(N){this.uchar=N.uchar,this.penState.copy(N.penState)}},{key:"isEmpty",value:function(){return this.uchar===" "&&this.penState.isDefault()}}]),Ae}(),Ms=function(){function Ae(q){Object(n.a)(this,Ae),this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var N=0;N<Ua;N++)this.chars.push(new vo);this.logger=q,this.pos=0,this.currPenState=new Do}return Object(o.a)(Ae,[{key:"equals",value:function(N){for(var W=!0,H=0;H<Ua;H++)if(!this.chars[H].equals(N.chars[H])){W=!1;break}return W}},{key:"copy",value:function(N){for(var W=0;W<Ua;W++)this.chars[W].copy(N.chars[W])}},{key:"isEmpty",value:function(){for(var N=!0,W=0;W<Ua;W++)if(!this.chars[W].isEmpty()){N=!1;break}return N}},{key:"setCursor",value:function(N){this.pos!==N&&(this.pos=N),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Ua&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ua)}},{key:"moveCursor",value:function(N){var W=this.pos+N;if(N>1)for(var H=this.pos+1;H<W+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(W)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(N){var W=this;N>=144&&this.backSpace();var H=Yi(N);if(this.pos>=Ua){this.logger.log(0,function(){return"Cannot insert "+N.toString(16)+" ("+H+") at position "+W.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(N){var W;for(W=N;W<Ua;W++)this.chars[W].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var N=[],W=!0,H=0;H<Ua;H++){var Z=this.chars[H].uchar;Z!==" "&&(W=!1),N.push(Z)}return W?"":N.join("")}},{key:"setPenStyles",value:function(N){this.currPenState.setStyles(N);var W=this.chars[this.pos];W.setPenState(this.currPenState)}}]),Ae}(),rl=function(){function Ae(q){Object(n.a)(this,Ae),this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var N=0;N<sa;N++)this.rows.push(new Ms(q));this.logger=q,this.currRow=sa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(o.a)(Ae,[{key:"reset",value:function(){for(var N=0;N<sa;N++)this.rows[N].clear();this.currRow=sa-1}},{key:"equals",value:function(N){for(var W=!0,H=0;H<sa;H++)if(!this.rows[H].equals(N.rows[H])){W=!1;break}return W}},{key:"copy",value:function(N){for(var W=0;W<sa;W++)this.rows[W].copy(N.rows[W])}},{key:"isEmpty",value:function(){for(var N=!0,W=0;W<sa;W++)if(!this.rows[W].isEmpty()){N=!1;break}return N}},{key:"backSpace",value:function(){var N=this.rows[this.currRow];N.backSpace()}},{key:"clearToEndOfRow",value:function(){var N=this.rows[this.currRow];N.clearToEndOfRow()}},{key:"insertChar",value:function(N){var W=this.rows[this.currRow];W.insertChar(N)}},{key:"setPen",value:function(N){var W=this.rows[this.currRow];W.setPenStyles(N)}},{key:"moveCursor",value:function(N){var W=this.rows[this.currRow];W.moveCursor(N)}},{key:"setCursor",value:function(N){this.logger.log(2,"setCursor: "+N);var W=this.rows[this.currRow];W.setCursor(N)}},{key:"setPAC",value:function(N){this.logger.log(2,function(){return"pacData = "+JSON.stringify(N)});var W=N.row-1;if(this.nrRollUpRows&&W<this.nrRollUpRows-1&&(W=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==W){for(var H=0;H<sa;H++)this.rows[H].clear();var Z=this.currRow+1-this.nrRollUpRows,re=this.lastOutputScreen;if(re){var ve=re.rows[Z].cueStartTime,Te=this.logger.time;if(ve&&Te!==null&&ve<Te)for(var ze=0;ze<this.nrRollUpRows;ze++)this.rows[W-this.nrRollUpRows+ze+1].copy(re.rows[Z+ze])}}this.currRow=W;var st=this.rows[this.currRow];if(N.indent!==null){var mt=N.indent,Yt=Math.max(mt-1,0);st.setCursor(N.indent),N.color=st.chars[Yt].penState.foreground}var Tr={foreground:N.color,underline:N.underline,italics:N.italics,background:"black",flash:!1};this.setPen(Tr)}},{key:"setBkgData",value:function(N){this.logger.log(2,function(){return"bkgData = "+JSON.stringify(N)}),this.backSpace(),this.setPen(N),this.insertChar(32)}},{key:"setRollUpRows",value:function(N){this.nrRollUpRows=N}},{key:"rollUp",value:function(){var N=this;if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,function(){return N.getDisplayText()});var W=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(W,1)[0];H.clear(),this.rows.splice(this.currRow,0,H),this.logger.log(2,"Rolling up")}},{key:"getDisplayText",value:function(N){N=N||!1;for(var W=[],H="",Z=-1,re=0;re<sa;re++){var ve=this.rows[re].getTextString();ve&&(Z=re+1,N?W.push("Row "+Z+": '"+ve+"'"):W.push(ve.trim()))}return W.length>0&&(N?H="["+W.join(" | ")+"]":H=W.join(`
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),Ae}(),gs=function(){function Ae(q,N,W){Object(n.a)(this,Ae),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=q,this.outputFilter=N,this.mode=null,this.verbose=0,this.displayedMemory=new rl(W),this.nonDisplayedMemory=new rl(W),this.lastOutputScreen=new rl(W),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=W}return Object(o.a)(Ae,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[sa-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(N){this.outputFilter=N}},{key:"setPAC",value:function(N){this.writeScreen.setPAC(N)}},{key:"setBkgData",value:function(N){this.writeScreen.setBkgData(N)}},{key:"setMode",value:function(N){if(N===this.mode)return;this.mode=N,this.logger.log(2,function(){return"MODE="+N}),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=N}},{key:"insertChars",value:function(N){for(var W=this,H=0;H<N.length;H++)this.writeScreen.insertChar(N[H]);var Z=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return Z+": "+W.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+W.displayedMemory.getDisplayText(!0)}),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){if(this.logger.log(2,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(N){this.logger.log(2,"RU("+N+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(N)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var N=this;if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var W=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=W,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,function(){return"DISP: "+N.displayedMemory.getDisplayText()})}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(N){this.logger.log(2,"TO("+N+") - Tab Offset"),this.writeScreen.moveCursor(N)}},{key:"ccMIDROW",value:function(N){var W={flash:!1};if(W.underline=N%2===1,W.italics=N>=46,W.italics)W.foreground="white";else{var H=Math.floor(N/2)-16,Z=["white","green","blue","cyan","red","yellow","magenta"];W.foreground=Z[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(W)),this.writeScreen.setPen(W)}},{key:"outputDataUpdate",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=this.logger.time;if(W===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=W:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,W,this.lastOutputScreen),N&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:W),this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(N){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,N,this.displayedMemory),this.cueStartTime=N))}}]),Ae}(),Ra=function(){function Ae(q,N,W){Object(n.a)(this,Ae),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new As;this.channels=[null,new gs(q,N,H),new gs(q+1,W,H)],this.cmdHistory=Us(),this.logger=H}return Object(o.a)(Ae,[{key:"getHandler",value:function(N){return this.channels[N].getHandler()}},{key:"setHandler",value:function(N,W){this.channels[N].setHandler(W)}},{key:"addData",value:function(N,W){var H,Z,re,ve=!1;this.logger.time=N;for(var Te=0;Te<W.length;Te+=2){if(Z=W[Te]&127,re=W[Te+1]&127,Z===0&&re===0)continue;if(this.logger.log(3,"["+$o([W[Te],W[Te+1]])+"] -> ("+$o([Z,re])+")"),H=this.parseCmd(Z,re),H||(H=this.parseMidrow(Z,re)),H||(H=this.parsePAC(Z,re)),H||(H=this.parseBackgroundAttributes(Z,re)),!H&&(ve=this.parseChars(Z,re),ve)){var ze=this.currentChannel;if(ze&&ze>0){var st=this.channels[ze];st.insertChars(ve)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!ve&&this.logger.log(2,"Couldn't parse cleaned data "+$o([Z,re])+" orig: "+$o([W[Te],W[Te+1]]))}}},{key:"parseCmd",value:function(N,W){var H=this.cmdHistory,Z=(N===20||N===28||N===21||N===29)&&W>=32&&W<=47,re=(N===23||N===31)&&W>=33&&W<=35;if(!(Z||re))return!1;if(fl(N,W,H))return dl(null,null,H),this.logger.log(3,"Repeated command ("+$o([N,W])+") is dropped"),!0;var ve=N===20||N===21||N===23?1:2,Te=this.channels[ve];return N===20||N===21||N===28||N===29?W===32?Te.ccRCL():W===33?Te.ccBS():W===34?Te.ccAOF():W===35?Te.ccAON():W===36?Te.ccDER():W===37?Te.ccRU(2):W===38?Te.ccRU(3):W===39?Te.ccRU(4):W===40?Te.ccFON():W===41?Te.ccRDC():W===42?Te.ccTR():W===43?Te.ccRTD():W===44?Te.ccEDM():W===45?Te.ccCR():W===46?Te.ccENM():W===47&&Te.ccEOC():Te.ccTO(W-32),dl(N,W,H),this.currentChannel=ve,!0}},{key:"parseMidrow",value:function(N,W){var H=0;if((N===17||N===25)&&W>=32&&W<=47){if(N===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var Z=this.channels[H];return Z?(Z.ccMIDROW(W),this.logger.log(3,"MIDROW ("+$o([N,W])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(N,W){var H,Z=this.cmdHistory,re=(N>=17&&N<=23||N>=25&&N<=31)&&W>=64&&W<=127,ve=(N===16||N===24)&&W>=64&&W<=95;if(!(re||ve))return!1;if(fl(N,W,Z))return dl(null,null,Z),!0;var Te=N<=23?1:2;W>=64&&W<=95?H=Te===1?no[N]:Zo[N]:H=Te===1?Wo[N]:Bo[N];var ze=this.channels[Te];return ze?(ze.setPAC(this.interpretPAC(H,W)),dl(N,W,Z),this.currentChannel=Te,!0):!1}},{key:"interpretPAC",value:function(N,W){var H,Z={color:null,italics:!1,indent:null,underline:!1,row:N};return W>95?H=W-96:H=W-64,Z.underline=(H&1)===1,H<=13?Z.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(Z.italics=!0,Z.color="white"):Z.indent=Math.floor((H-16)/2)*4,Z}},{key:"parseChars",value:function(N,W){var H,Z=null,re=null;if(N>=25?(H=2,re=N-8):(H=1,re=N),re>=17&&re<=19){var ve;re===17?ve=W+80:re===18?ve=W+112:ve=W+144,this.logger.log(2,"Special char '"+Yi(ve)+"' in channel "+H),Z=[ve]}else N>=32&&N<=127&&(Z=W===0?[N]:[N,W]);if(Z){var Te=$o(Z);this.logger.log(3,"Char codes = "+Te.join(",")),dl(N,W,this.cmdHistory)}return Z}},{key:"parseBackgroundAttributes",value:function(N,W){var H=(N===16||N===24)&&W>=32&&W<=47,Z=(N===23||N===31)&&W>=45&&W<=47;if(!(H||Z))return!1;var re,ve={};N===16||N===24?(re=Math.floor((W-32)/2),ve.background=Es[re],W%2===1&&(ve.background=ve.background+"_semi")):W===45?ve.background="transparent":(ve.foreground="black",W===47&&(ve.underline=!0));var Te=N<=23?1:2,ze=this.channels[Te];return ze.setBkgData(ve),dl(N,W,this.cmdHistory),!0}},{key:"reset",value:function(){for(var N=0;N<Object.keys(this.channels).length;N++){var W=this.channels[N];W&&W.reset()}this.cmdHistory=Us()}},{key:"cueSplitAtTime",value:function(N){for(var W=0;W<this.channels.length;W++){var H=this.channels[W];H&&H.cueSplitAtTime(N)}}}]),Ae}();function dl(Ae,q,N){N.a=Ae,N.b=q}function fl(Ae,q,N){return N.a===Ae&&N.b===q}function Us(){return{a:null,b:null}}var Os=function(){function Ae(q,N){Object(n.a)(this,Ae),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=q,this.trackName=N}return Object(o.a)(Ae,[{key:"dispatchCue",value:function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null}},{key:"newCue",value:function(N,W,H){(this.startTime===null||this.startTime>N)&&(this.startTime=N),this.endTime=W,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),Ae}(),Xs=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var Ae=["","lr","rl"],q=["start","middle","end","left","right"];function N(ve,Te){if(typeof Te!="string")return!1;if(!Array.isArray(ve))return!1;var ze=Te.toLowerCase();return~ve.indexOf(ze)?ze:!1}function W(ve){return N(Ae,ve)}function H(ve){return N(q,ve)}function Z(ve){for(var Te=arguments.length,ze=new Array(Te>1?Te-1:0),st=1;st<Te;st++)ze[st-1]=arguments[st];for(var mt=1;mt<arguments.length;mt++){var Yt=arguments[mt];for(var Tr in Yt)ve[Tr]=Yt[Tr]}return ve}function re(ve,Te,ze){var st=this,mt={enumerable:!0};st.hasBeenReset=!1;var Yt="",Tr=!1,wr=ve,jr=Te,Qr=ze,Cn=null,Dn="",Zn=!0,Si="auto",ua="start",Vi=50,Zi="middle",ka=50,Ga="middle";Object.defineProperty(st,"id",Z({},mt,{get:function(){return Yt},set:function(Sa){Yt=""+Sa}})),Object.defineProperty(st,"pauseOnExit",Z({},mt,{get:function(){return Tr},set:function(Sa){Tr=!!Sa}})),Object.defineProperty(st,"startTime",Z({},mt,{get:function(){return wr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("Start time must be set to a number.");wr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"endTime",Z({},mt,{get:function(){return jr},set:function(Sa){if(typeof Sa!="number")throw new TypeError("End time must be set to a number.");jr=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"text",Z({},mt,{get:function(){return Qr},set:function(Sa){Qr=""+Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"region",Z({},mt,{get:function(){return Cn},set:function(Sa){Cn=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"vertical",Z({},mt,{get:function(){return Dn},set:function(Sa){var Go=W(Sa);if(Go===!1)throw new SyntaxError("An invalid or illegal string was specified.");Dn=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"snapToLines",Z({},mt,{get:function(){return Zn},set:function(Sa){Zn=!!Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"line",Z({},mt,{get:function(){return Si},set:function(Sa){if(typeof Sa!="number"&&Sa!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Si=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"lineAlign",Z({},mt,{get:function(){return ua},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");ua=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"position",Z({},mt,{get:function(){return Vi},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Position must be between 0 and 100.");Vi=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"positionAlign",Z({},mt,{get:function(){return Zi},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Zi=Go,this.hasBeenReset=!0}})),Object.defineProperty(st,"size",Z({},mt,{get:function(){return ka},set:function(Sa){if(Sa<0||Sa>100)throw new Error("Size must be between 0 and 100.");ka=Sa,this.hasBeenReset=!0}})),Object.defineProperty(st,"align",Z({},mt,{get:function(){return Ga},set:function(Sa){var Go=H(Sa);if(!Go)throw new SyntaxError("An invalid or illegal string was specified.");Ga=Go,this.hasBeenReset=!0}})),st.displayState=void 0}return re.prototype.getCueAsHTML=function(){var ve=self.WebVTT;return ve.convertCueToDOMTree(self,this.text)},re}(),Ql=function(){function Ae(){Object(n.a)(this,Ae)}return Object(o.a)(Ae,[{key:"decode",value:function(N,W){if(!N)return"";if(typeof N!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(N))}}]),Ae}();function Ul(Ae){function q(W,H,Z,re){return(W|0)*3600+(H|0)*60+(Z|0)+parseFloat(re||0)}var N=Ae.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return N?parseFloat(N[2])>59?q(N[2],N[3],0,N[4]):q(N[1],N[2],N[3],N[4]):null}var wl=function(){function Ae(){Object(n.a)(this,Ae),this.values=Object.create(null)}return Object(o.a)(Ae,[{key:"set",value:function(N,W){!this.get(N)&&W!==""&&(this.values[N]=W)}},{key:"get",value:function(N,W,H){return H?this.has(N)?this.values[N]:W[H]:this.has(N)?this.values[N]:W}},{key:"has",value:function(N){return N in this.values}},{key:"alt",value:function(N,W,H){for(var Z=0;Z<H.length;++Z)if(W===H[Z]){this.set(N,W);break}}},{key:"integer",value:function(N,W){/^-?\d+$/.test(W)&&this.set(N,parseInt(W,10))}},{key:"percent",value:function(N,W){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(W)){var H=parseFloat(W);if(H>=0&&H<=100)return this.set(N,H),!0}return!1}}]),Ae}();function Ts(Ae,q,N,W){var H=W?Ae.split(W):[Ae];for(var Z in H){if(typeof H[Z]!="string")continue;var re=H[Z].split(N);if(re.length!==2)continue;var ve=re[0],Te=re[1];q(ve,Te)}}var Ws=new Xs(0,0,""),Tl=Ws.align==="middle"?"middle":"center";function pl(Ae,q,N){var W=Ae;function H(){var ve=Ul(Ae);if(ve===null)throw new Error("Malformed timestamp: "+W);return Ae=Ae.replace(/^[^\sa-zA-Z-]+/,""),ve}function Z(ve,Te){var ze=new wl;Ts(ve,function(Yt,Tr){var wr;switch(Yt){case"region":for(var jr=N.length-1;jr>=0;jr--)if(N[jr].id===Tr){ze.set(Yt,N[jr].region);break}break;case"vertical":ze.alt(Yt,Tr,["rl","lr"]);break;case"line":wr=Tr.split(","),ze.integer(Yt,wr[0]),ze.percent(Yt,wr[0])&&ze.set("snapToLines",!1),ze.alt(Yt,wr[0],["auto"]),wr.length===2&&ze.alt("lineAlign",wr[1],["start",Tl,"end"]);break;case"position":wr=Tr.split(","),ze.percent(Yt,wr[0]),wr.length===2&&ze.alt("positionAlign",wr[1],["start",Tl,"end","line-left","line-right","auto"]);break;case"size":ze.percent(Yt,Tr);break;case"align":ze.alt(Yt,Tr,["start",Tl,"end","left","right"]);break}},/:/,/\s/),Te.region=ze.get("region",null),Te.vertical=ze.get("vertical","");var st=ze.get("line","auto");st==="auto"&&Ws.line===-1&&(st=-1),Te.line=st,Te.lineAlign=ze.get("lineAlign","start"),Te.snapToLines=ze.get("snapToLines",!0),Te.size=ze.get("size",100),Te.align=ze.get("align",Tl);var mt=ze.get("position","auto");mt==="auto"&&Ws.position===50&&(mt=Te.align==="start"||Te.align==="left"?0:Te.align==="end"||Te.align==="right"?100:50),Te.position=mt}function re(){Ae=Ae.replace(/^\s+/,"")}if(re(),q.startTime=H(),re(),Ae.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+W);Ae=Ae.slice(3),re(),q.endTime=H(),re(),Z(Ae,q)}function jo(Ae){return Ae.replace(/<br(?: \/)?>/gi,`
`)}var yo=function(){function Ae(){Object(n.a)(this,Ae),this.state="INITIAL",this.buffer="",this.decoder=new Ql,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(o.a)(Ae,[{key:"parse",value:function(N){var W=this;N&&(W.buffer+=W.decoder.decode(N,{stream:!0}));function H(){var st=W.buffer,mt=0;for(st=jo(st);mt<st.length&&st[mt]!=="\r"&&st[mt]!==`
`;)++mt;var Yt=st.slice(0,mt);return st[mt]==="\r"&&++mt,st[mt]===`
`&&++mt,W.buffer=st.slice(mt),Yt}function Z(st){Ts(st,function(mt,Yt){},/:/)}try{var re="";if(W.state==="INITIAL"){if(!/\r\n|\n/.test(W.buffer))return this;re=H();var ve=re.match(/^()?WEBVTT([ \t].*)?$/);if(!(ve!=null&&ve[0]))throw new Error("Malformed WebVTT signature.");W.state="HEADER"}for(var Te=!1;W.buffer;){if(!/\r\n|\n/.test(W.buffer))return this;Te?Te=!1:re=H();switch(W.state){case"HEADER":/:/.test(re)?Z(re):re||(W.state="ID");continue;case"NOTE":re||(W.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(re)){W.state="NOTE";break}if(!re)continue;if(W.cue=new Xs(0,0,""),W.state="CUE",re.indexOf("-->")===-1){W.cue.id=re;continue}case"CUE":if(!W.cue){W.state="BADCUE";continue}try{pl(re,W.cue,W.regionList)}catch(st){W.cue=null,W.state="BADCUE";continue}W.state="CUETEXT";continue;case"CUETEXT":{var ze=re.indexOf("-->")!==-1;if(!re||ze&&(Te=!0)){W.oncue&&W.cue&&W.oncue(W.cue),W.cue=null,W.state="ID";continue}if(W.cue===null)continue;W.cue.text&&(W.cue.text+=`
`),W.cue.text+=re}continue;case"BADCUE":re||(W.state="ID")}}}catch(st){W.state==="CUETEXT"&&W.cue&&W.oncue&&W.oncue(W.cue),W.cue=null,W.state=W.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var N=this;try{if((N.cue||N.state==="HEADER")&&(N.buffer+=`
`,N.parse()),N.state==="INITIAL"||N.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(W){N.onparsingerror&&N.onparsingerror(W)}return N.onflush&&N.onflush(),this}}]),Ae}(),qo=/\r\n|\n\r|\n|\r/g,ps=function(q,N){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return q.slice(W,W+N.length)===N},Is=function(q){var N=parseInt(q.slice(-3)),W=parseInt(q.slice(-6,-4)),H=parseInt(q.slice(-9,-7)),Z=q.length>9?parseInt(q.substring(0,q.indexOf(":"))):0;if(!T(N)||!T(W)||!T(H)||!T(Z))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(q));return N+=1e3*W,N+=60*1e3*H,N+=60*60*1e3*Z,N},es=function(q){for(var N=5381,W=q.length;W;)N=N*33^q.charCodeAt(--W);return(N>>>0).toString()};function Ls(Ae,q,N){return es(Ae.toString())+es(q.toString())+es(N)}var Ps=function(q,N,W){var H=q[N],Z=q[H.prevCC];if(!Z||!Z.new&&H.new){q.ccOffset=q.presentationOffset=H.start,H.new=!1;return}for(;(re=Z)!=null&&re.new;){var re;q.ccOffset+=H.start-Z.start,H.new=!1,H=Z,Z=q[H.prevCC]}q.presentationOffset=W};function ml(Ae,q,N,W,H,Z,re){var ve=new yo,Te=Ze(new Uint8Array(Ae)).trim().replace(qo,`
`).split(`
`),ze=[],st=q?lo(q.baseTime,q.timescale):0,mt="00:00.000",Yt=0,Tr=0,wr,jr=!0;ve.oncue=function(Qr){var Cn=N[W],Dn=N.ccOffset,Zn=(Yt-st)/9e4;if(Cn!=null&&Cn.new&&(Tr!==void 0?Dn=N.ccOffset=Cn.start:Ps(N,W,Zn)),Zn){if(!q){wr=new Error("Missing initPTS for VTT MPEGTS");return}Dn=Zn-N.presentationOffset}var Si=Qr.endTime-Qr.startTime,ua=Ko((Qr.startTime+Dn-Tr)*9e4,H*9e4)/9e4;Qr.startTime=Math.max(ua,0),Qr.endTime=Math.max(ua+Si,0);var Vi=Qr.text.trim();Qr.text=decodeURIComponent(encodeURIComponent(Vi)),Qr.id||(Qr.id=Ls(Qr.startTime,Qr.endTime,Vi)),Qr.endTime>0&&ze.push(Qr)},ve.onparsingerror=function(Qr){wr=Qr},ve.onflush=function(){if(wr){re(wr);return}Z(ze)},Te.forEach(function(Qr){if(jr)if(ps(Qr,"X-TIMESTAMP-MAP=")){jr=!1,Qr.slice(16).split(",").forEach(function(Cn){ps(Cn,"LOCAL:")?mt=Cn.slice(6):ps(Cn,"MPEGTS:")&&(Yt=parseInt(Cn.slice(7)))});try{Tr=Is(mt)/1e3}catch(Cn){wr=Cn}return}else Qr===""&&(jr=!1);ve.parse(Qr+`
`)}),ve.flush()}var Rl="stpp.ttml.im1t",_l=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,jl={left:"start",center:"center",right:"end",start:"start",end:"end"};function kl(Ae,q,N,W){var H=ft(new Uint8Array(Ae),["mdat"]);if(H.length===0){W(new Error("Could not parse IMSC1 mdat"));return}var Z=H.map(function(ve){return Ze(ve)}),re=Fa(q.baseTime,1,q.timescale);try{Z.forEach(function(ve){return N(Xl(ve,re))})}catch(ve){W(ve)}}function Xl(Ae,q){var N=new DOMParser,W=N.parseFromString(Ae,"text/xml"),H=W.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var Z={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},re=Object.keys(Z).reduce(function(mt,Yt){return mt[Yt]=H.getAttribute("ttp:".concat(Yt))||Z[Yt],mt},{}),ve=H.getAttribute("xml:space")!=="preserve",Te=Ys(ol(H,"styling","style")),ze=Ys(ol(H,"layout","region")),st=ol(H,"body","[begin]");return[].map.call(st,function(mt){var Yt=sl(mt,ve);if(!Yt||!mt.hasAttribute("begin"))return null;var Tr=Wl(mt.getAttribute("begin"),re),wr=Wl(mt.getAttribute("dur"),re),jr=Wl(mt.getAttribute("end"),re);if(Tr===null)throw Ml(mt);if(jr===null){if(wr===null)throw Ml(mt);jr=Tr+wr}var Qr=new Xs(Tr-q,jr-q,Yt);Qr.id=Ls(Qr.startTime,Qr.endTime,Qr.text);var Cn=ze[mt.getAttribute("region")],Dn=Te[mt.getAttribute("style")],Zn=nl(Cn,Dn,Te),Si=Zn.textAlign;if(Si){var ua=jl[Si];ua&&(Qr.lineAlign=ua),Qr.align=Si}return E(Qr,Zn),Qr}).filter(function(mt){return mt!==null})}function ol(Ae,q,N){var W=Ae.getElementsByTagName(q)[0];return W?[].slice.call(W.querySelectorAll(N)):[]}function Ys(Ae){return Ae.reduce(function(q,N){var W=N.getAttribute("xml:id");return W&&(q[W]=N),q},{})}function sl(Ae,q){return[].slice.call(Ae.childNodes).reduce(function(N,W,H){var Z;return W.nodeName==="br"&&H?N+`
`:(Z=W.childNodes)!=null&&Z.length?sl(W,q):q?N+W.textContent.trim().replace(/\s+/g," "):N+W.textContent},"")}function nl(Ae,q,N){var W="http://www.w3.org/ns/ttml#styling",H=null,Z=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],re=Ae!=null&&Ae.hasAttribute("style")?Ae.getAttribute("style"):null;return re&&N.hasOwnProperty(re)&&(H=N[re]),Z.reduce(function(ve,Te){var ze=xl(q,W,Te)||xl(Ae,W,Te)||xl(H,W,Te);return ze&&(ve[Te]=ze),ve},{})}function xl(Ae,q,N){return Ae&&Ae.hasAttributeNS(q,N)?Ae.getAttributeNS(q,N):null}function Ml(Ae){return new Error("Could not parse ttml timestamp ".concat(Ae))}function Wl(Ae,q){if(!Ae)return null;var N=Ul(Ae);return N===null&&(_l.test(Ae)?N=au(Ae,q):Bl.test(Ae)&&(N=Nl(Ae,q))),N}function au(Ae,q){var N=_l.exec(Ae),W=(N[4]|0)+(N[5]|0)/q.subFrameRate;return(N[1]|0)*3600+(N[2]|0)*60+(N[3]|0)+W/q.frameRate}function Nl(Ae,q){var N=Bl.exec(Ae),W=Number(N[1]),H=N[2];switch(H){case"h":return W*3600;case"m":return W*60;case"ms":return W*1e3;case"f":return W/q.frameRate;case"t":return W/q.tickRate}return W}var $l=function(){function Ae(q){if(Object(n.a)(this,Ae),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this.captionsProperties=void 0,this.hls=q,this.config=q.config,this.Cues=q.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var N=new Os(this,"textTrack1"),W=new Os(this,"textTrack2"),H=new Os(this,"textTrack3"),Z=new Os(this,"textTrack4");this.cea608Parser1=new Ra(1,N,W),this.cea608Parser2=new Ra(3,H,Z)}q.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),q.on(w.MEDIA_DETACHING,this.onMediaDetaching,this),q.on(w.MANIFEST_LOADING,this.onManifestLoading,this),q.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),q.on(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),q.on(w.FRAG_LOADING,this.onFragLoading,this),q.on(w.FRAG_LOADED,this.onFragLoaded,this),q.on(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),q.on(w.FRAG_DECRYPTED,this.onFragDecrypted,this),q.on(w.INIT_PTS_FOUND,this.onInitPtsFound,this),q.on(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),q.on(w.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(o.a)(Ae,[{key:"destroy",value:function(){var N=this.hls;N.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),N.off(w.MEDIA_DETACHING,this.onMediaDetaching,this),N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),N.off(w.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),N.off(w.FRAG_LOADING,this.onFragLoading,this),N.off(w.FRAG_LOADED,this.onFragLoaded,this),N.off(w.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),N.off(w.FRAG_DECRYPTED,this.onFragDecrypted,this),N.off(w.INIT_PTS_FOUND,this.onInitPtsFound,this),N.off(w.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),N.off(w.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(N,W,H,Z,re){for(var ve=!1,Te=re.length;Te--;){var ze=re[Te],st=Iu(ze[0],ze[1],W,H);if(st>=0&&(ze[0]=Math.min(ze[0],W),ze[1]=Math.max(ze[1],H),ve=!0,st/(H-W)>.5))return}if(ve||re.push([W,H]),this.config.renderTextTracksNatively){var mt=this.captionsTracks[N];this.Cues.newCue(mt,W,H,Z)}else{var Yt=this.Cues.newCue(null,W,H,Z);this.hls.trigger(w.CUES_PARSED,{type:"captions",cues:Yt,track:N})}}},{key:"onInitPtsFound",value:function(N,W){var H=this,Z=W.frag,re=W.id,ve=W.initPTS,Te=W.timescale,ze=this.unparsedVttFrags;re==="main"&&(this.initPTS[Z.cc]={baseTime:ve,timescale:Te}),ze.length&&(this.unparsedVttFrags=[],ze.forEach(function(st){H.onFragLoaded(w.FRAG_LOADED,st)}))}},{key:"getExistingTrack",value:function(N){var W=this.media;if(W)for(var H=0;H<W.textTracks.length;H++){var Z=W.textTracks[H];if(Z[N])return Z}return null}},{key:"createCaptionsTrack",value:function(N){this.config.renderTextTracksNatively?this.createNativeTrack(N):this.createNonNativeTrack(N)}},{key:"createNativeTrack",value:function(N){if(this.captionsTracks[N])return;var W=this.captionsProperties,H=this.captionsTracks,Z=this.media,re=W[N],ve=re.label,Te=re.languageCode,ze=this.getExistingTrack(N);if(ze)H[N]=ze,Wn(H[N]),dn(H[N],Z);else{var st=this.createTextTrack("captions",ve,Te);st&&(st[N]=!0,H[N]=st)}}},{key:"createNonNativeTrack",value:function(N){if(this.nonNativeCaptionsTracks[N])return;var W=this.captionsProperties[N];if(!W)return;var H=W.label,Z={_id:N,label:H,kind:"captions",default:W.media?!!W.media.default:!1,closedCaptions:W.media};this.nonNativeCaptionsTracks[N]=Z,this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[Z]})}},{key:"createTextTrack",value:function(N,W,H){var Z=this.media;return Z?Z.addTextTrack(N,W,H):void 0}},{key:"onMediaAttaching",value:function(N,W){this.media=W.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var N=this.captionsTracks;Object.keys(N).forEach(function(W){Wn(N[W]),delete N[W]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=pu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var N=this.media;if(!N)return;var W=N.textTracks;if(W)for(var H=0;H<W.length;H++)Wn(W[H])}},{key:"onSubtitleTracksUpdated",value:function(N,W){var H=this,Z=W.subtitleTracks||[],re=Z.some(function(st){return st.textCodec===Rl});if(this.config.enableWebVTT||re&&this.config.enableIMSC1){var ve=ce(this.tracks,Z);if(ve){this.tracks=Z;return}if(this.textTracks=[],this.tracks=Z,this.config.renderTextTracksNatively){var Te=this.media?this.media.textTracks:null;this.tracks.forEach(function(st,mt){var Yt;if(Te&&mt<Te.length){for(var Tr=null,wr=0;wr<Te.length;wr++)if(tu(Te[wr],st)){Tr=Te[wr];break}Tr&&(Yt=Tr)}if(Yt)Wn(Yt);else{var jr=H._captionsOrSubtitlesFromCharacteristics(st);Yt=H.createTextTrack(jr,st.name,st.lang),Yt&&(Yt.mode="disabled")}Yt&&(Yt.groupId=st.groupId,H.textTracks.push(Yt))})}else if(this.tracks.length){var ze=this.tracks.map(function(st){return{label:st.name,kind:st.type.toLowerCase(),default:st.default,subtitleTrack:st}});this.hls.trigger(w.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:ze})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(N){if(N.attrs.CHARACTERISTICS){var W=/transcribes-spoken-dialog/gi.test(N.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(N.attrs.CHARACTERISTICS);if(W&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(N,W){var H=this;this.config.enableCEA708Captions&&W.captions&&W.captions.forEach(function(Z){var re=/(?:CC|SERVICE)([1-4])/.exec(Z.instreamId);if(!re)return;var ve="textTrack".concat(re[1]),Te=H.captionsProperties[ve];if(!Te)return;Te.label=Z.name,Z.lang&&(Te.languageCode=Z.lang),Te.media=Z})}},{key:"closedCaptionsForLevel",value:function(N){var W=this.hls.levels[N.level];return W==null?void 0:W.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(N,W){var H=this.cea608Parser1,Z=this.cea608Parser2,re=this.lastSn,ve=this.lastPartIndex;if(!this.enabled||!(H&&Z))return;if(W.frag.type===At.MAIN){var Te,ze,st=W.frag.sn,mt=(Te=W==null||(ze=W.part)==null?void 0:ze.index)!=null?Te:-1;st===re+1||st===re&&mt===ve+1||(H.reset(),Z.reset()),this.lastSn=st,this.lastPartIndex=mt}}},{key:"onFragLoaded",value:function(N,W){var H=W.frag,Z=W.payload;if(H.type===At.SUBTITLE)if(Z.byteLength){var re=H.decryptdata,ve="stats"in W;if(re==null||!re.encrypted||ve){var Te=this.tracks[H.level],ze=this.vttCCs;ze[H.cc]||(ze[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),Te&&Te.textCodec===Rl?this._parseIMSC1(H,Z):this._parseVTTs(W)}}else this.hls.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(N,W){var H=this,Z=this.hls;kl(W,this.initPTS[N.cc],function(re){H._appendCues(re,N.level),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:N})},function(re){j.log("Failed to parse IMSC1: ".concat(re)),Z.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:N,error:re})})}},{key:"_parseVTTs",value:function(N){var W=this,H,Z=N.frag,re=N.payload,ve=this.initPTS,Te=this.unparsedVttFrags,ze=ve.length-1;if(!ve[Z.cc]&&ze===-1){Te.push(N);return}var st=this.hls,mt=(H=Z.initSegment)!=null&&H.data?wt(Z.initSegment.data,new Uint8Array(re)):re;ml(mt,this.initPTS[Z.cc],this.vttCCs,Z.cc,Z.start,function(Yt){W._appendCues(Yt,Z.level),st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:Z})},function(Yt){var Tr=Yt.message==="Missing initPTS for VTT MPEGTS";if(Tr?Te.push(N):W._fallbackToIMSC1(Z,re),j.log("Failed to parse VTT cue: ".concat(Yt)),Tr&&ze>Z.cc)return;st.trigger(w.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:Z,error:Yt})})}},{key:"_fallbackToIMSC1",value:function(N,W){var H=this,Z=this.tracks[N.level];Z.textCodec||kl(W,this.initPTS[N.cc],function(){Z.textCodec=Rl,H._parseIMSC1(N,W)},function(){Z.textCodec="wvtt"})}},{key:"_appendCues",value:function(N,W){var H=this.hls;if(this.config.renderTextTracksNatively){var Z=this.textTracks[W];if(!Z||Z.mode==="disabled")return;N.forEach(function(Te){return gr(Z,Te)})}else{var re=this.tracks[W];if(!re)return;var ve=re.default?"default":"subtitles"+W;H.trigger(w.CUES_PARSED,{type:"subtitles",cues:N,track:ve})}}},{key:"onFragDecrypted",value:function(N,W){var H=W.frag;H.type===At.SUBTITLE&&this.onFragLoaded(w.FRAG_LOADED,W)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(N,W){var H=this.cea608Parser1,Z=this.cea608Parser2;if(!this.enabled||!(H&&Z))return;var re=W.frag,ve=W.samples;if(re.type===At.MAIN&&this.closedCaptionsForLevel(re)==="NONE")return;for(var Te=0;Te<ve.length;Te++){var ze=ve[Te].bytes;if(ze){var st=this.extractCea608Data(ze);H.addData(ve[Te].pts,st[0]),Z.addData(ve[Te].pts,st[1])}}}},{key:"onBufferFlushing",value:function(N,W){var H=W.startOffset,Z=W.endOffset,re=W.endOffsetSubtitles,ve=W.type,Te=this.media;if(!Te||Te.currentTime<Z)return;if(!ve||ve==="video"){var ze=this.captionsTracks;Object.keys(ze).forEach(function(mt){return kr(ze[mt],H,Z)})}if(this.config.renderTextTracksNatively&&(H===0&&re!==void 0)){var st=this.textTracks;Object.keys(st).forEach(function(mt){return kr(st[mt],H,re)})}}},{key:"extractCea608Data",value:function(N){for(var W=[[],[]],H=N[0]&31,Z=2,re=0;re<H;re++){var ve=N[Z++],Te=127&N[Z++],ze=127&N[Z++];if(Te===0&&ze===0)continue;var st=(4&ve)!==0;if(st){var mt=3&ve;(mt===0||mt===1)&&(W[mt].push(Te),W[mt].push(ze))}}return W}}]),Ae}();function tu(Ae,q){return!!Ae&&Ae.label===q.name&&!(Ae.textTrack1||Ae.textTrack2)}function Iu(Ae,q,N,W){return Math.min(q,W)-Math.max(Ae,N)}function pu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var mu=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=q,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return Object(o.a)(Ae,[{key:"setStreamController",value:function(N){this.streamController=N}},{key:"destroy",value:function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var N=this.hls;N.on(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),N.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this),N.on(w.MANIFEST_PARSED,this.onManifestParsed,this),N.on(w.BUFFER_CODECS,this.onBufferCodecs,this),N.on(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var N=this.hls;N.off(w.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),N.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this),N.off(w.MANIFEST_PARSED,this.onManifestParsed,this),N.off(w.BUFFER_CODECS,this.onBufferCodecs,this),N.off(w.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(N,W){var H=this.hls.levels[W.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(N,W){this.media=W.media instanceof HTMLVideoElement?W.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(N,W){var H=this.hls;this.restrictedLevels=[],this.firstLevel=W.firstLevel,H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(N,W){var H=this.hls;H.config.capLevelToPlayerSize&&W.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var N=this.hls.levels;if(N.length){var W=this.hls;W.autoLevelCapping=this.getMaxLevel(N.length-1),W.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=W.autoLevelCapping}}}},{key:"getMaxLevel",value:function(N){var W=this,H=this.hls.levels;if(!H.length)return-1;var Z=H.filter(function(re,ve){return W.isLevelAllowed(re)&&ve<=N});return this.clientRect=null,Ae.getMaxLevelByMediaSize(Z,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var N=this.media,W={width:0,height:0};if(N){var H=N.getBoundingClientRect();W.width=H.width,W.height=H.height,!W.width&&!W.height&&(W.width=H.right-H.left||N.width||0,W.height=H.bottom-H.top||N.height||0)}return this.clientRect=W,W}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var N=1;if(!this.hls.config.ignoreDevicePixelRatio)try{N=self.devicePixelRatio}catch(W){}return N}},{key:"isLevelAllowed",value:function(N){var W=this.restrictedLevels;return!W.some(function(H){return N.bitrate===H.bitrate&&N.width===H.width&&N.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(N,W,H){if(!(N!=null&&N.length))return-1;for(var Z=function(st,mt){return mt?st.width!==mt.width||st.height!==mt.height:!0},re=N.length-1,ve=0;ve<N.length;ve+=1){var Te=N[ve];if((Te.width>=W||Te.height>=H)&&Z(Te,N[ve+1])){re=ve;break}}return re}}]),Ae}(),gu=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=q,this.registerListeners()}return Object(o.a)(Ae,[{key:"setStreamController",value:function(N){this.streamController=N}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(N,W){var H=this.hls.config;if(H.capLevelOnFPSDrop){var Z=W.media instanceof self.HTMLVideoElement?W.media:null;this.media=Z,Z&&typeof Z.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(N,W,H){var Z=performance.now();if(W){if(this.lastTime){var re=Z-this.lastTime,ve=H-this.lastDroppedFrames,Te=W-this.lastDecodedFrames,ze=1e3*ve/re,st=this.hls;if(st.trigger(w.FPS_DROP,{currentDropped:ve,currentDecoded:Te,totalDroppedFrames:H}),ze>0&&ve>st.config.fpsDroppedMonitoringThreshold*Te){var mt=st.currentLevel;j.warn("drop FPS ratio greater than max allowed value for currentLevel: "+mt),mt>0&&(st.autoLevelCapping===-1||st.autoLevelCapping>=mt)&&(mt=mt-1,st.trigger(w.FPS_DROP_LEVEL_CAPPING,{level:mt,droppedLevel:st.currentLevel}),st.autoLevelCapping=mt,this.streamController.nextLevelSwitch())}}this.lastTime=Z,this.lastDroppedFrames=H,this.lastDecodedFrames=W}}},{key:"checkFPSInterval",value:function(){var N=this.media;if(N)if(this.isVideoPlaybackQualityAvailable){var W=N.getVideoPlaybackQuality();this.checkFPS(N,W.totalVideoFrames,W.droppedVideoFrames)}else this.checkFPS(N,N.webkitDecodedFrameCount,N.webkitDroppedFrameCount)}}]),Ae}(),ql="[eme]",Cl=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ae.CDMCleanupPromise?[Ae.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=j.debug.bind(j,ql),this.log=j.log.bind(j,ql),this.warn=j.warn.bind(j,ql),this.error=j.error.bind(j,ql),this.hls=q,this.config=q.config,this.registerListeners()}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var N=this.config;N.requestMediaKeySystemAccessFunc=null,N.licenseXhrSetup=N.licenseResponseCallback=void 0,N.drmSystems=N.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(w.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(N){var W=this.config,H=W.drmSystems,Z=W.widevineLicenseUrl,re=H[N];if(re)return re.licenseUrl;if(N===fe.WIDEVINE&&Z)return Z;throw new Error('no license server URL configured for key-system "'.concat(N,'"'))}},{key:"getServerCertificateUrl",value:function(N){var W=this.config.drmSystems,H=W[N];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(N,'"]'))}},{key:"attemptKeySystemAccess",value:function(N){var W=this,H=this.hls.levels,Z=function(ze,st,mt){return!!ze&&mt.indexOf(ze)===st},re=H.map(function(Te){return Te.audioCodec}).filter(Z),ve=H.map(function(Te){return Te.videoCodec}).filter(Z);return re.length+ve.length===0&&ve.push("avc1.42e01e"),new Promise(function(Te,ze){var st=function mt(Yt){var Tr=Yt.shift();W.getMediaKeysPromise(Tr,re,ve).then(function(wr){return Te({keySystem:Tr,mediaKeys:wr})}).catch(function(wr){Yt.length?mt(Yt):wr instanceof ll?ze(wr):ze(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_ACCESS,error:wr,fatal:!0},wr.message))})};st(N)})}},{key:"requestMediaKeySystemAccess",value:function(N,W){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var Z="Configured requestMediaKeySystemAccess is not a function ".concat(H);return Se===null&&self.location.protocol==="http:"&&(Z="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(Z))}return H(N,W)}},{key:"getMediaKeysPromise",value:function(N,W,H){var Z=this,re=le(N,W,H,this.config.drmSystemOptions),ve=this.keySystemAccessPromises[N],Te=ve==null?void 0:ve.keySystemAccess;if(!Te){this.log('Requesting encrypted media "'.concat(N,'" key-system access with config: ').concat(JSON.stringify(re))),Te=this.requestMediaKeySystemAccess(N,re);var ze=this.keySystemAccessPromises[N]={keySystemAccess:Te};return Te.catch(function(st){Z.log('Failed to obtain access to key-system "'.concat(N,'": ').concat(st))}),Te.then(function(st){Z.log('Access for key-system "'.concat(st.keySystem,'" obtained'));var mt=Z.fetchServerCertificate(N);return Z.log('Create media-keys for "'.concat(N,'"')),ze.mediaKeys=st.createMediaKeys().then(function(Yt){return Z.log('Media-keys created for "'.concat(N,'"')),mt.then(function(Tr){return Tr?Z.setMediaKeysServerCertificate(Yt,N,Tr):Yt})}),ze.mediaKeys.catch(function(Yt){Z.error('Failed to create media-keys for "'.concat(N,'"}: ').concat(Yt))}),ze.mediaKeys})}return Te.then(function(){return ve.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(N){var W=N.decryptdata,H=N.keySystem,Z=N.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(St.hexDump(W.keyId||[])));var re=Z.createSession(),ve={decryptdata:W,keySystem:H,mediaKeys:Z,mediaKeysSession:re,keyStatus:"status-pending"};return this.mediaKeySessions.push(ve),ve}},{key:"renewKeySession",value:function(N){var W=N.decryptdata;if(W.pssh){var H=this.createMediaKeySessionContext(N),Z=this.getKeyIdString(W),re="cenc";this.keyIdToKeySessionPromise[Z]=this.generateRequestWithPreferredKeySession(H,re,W.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(N)}},{key:"getKeyIdString",value:function(N){if(!N)throw new Error("Could not read keyId of undefined decryptdata");if(N.keyId===null)throw new Error("keyId is null");return St.hexDump(N.keyId)}},{key:"updateKeySession",value:function(N,W){var H,Z=N.mediaKeysSession;return this.log('Updating key-session "'.concat(Z.sessionId,'" for keyID ').concat(St.hexDump(((H=N.decryptdata)==null?void 0:H.keyId)||[]),`
} (data length: `).concat(W&&W.byteLength,")")),Z.update(W)}},{key:"selectKeySystemFormat",value:function(N){var W=Object.keys(N.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(N.sn," ").concat(N.type,": ").concat(N.level,") key formats ").concat(W.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(W)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(N){var W=this;return new Promise(function(H,Z){var re=Ce(W.config),ve=N.map(Y).filter(function(Te){return!!Te&&re.indexOf(Te)!==-1});return W.getKeySystemSelectionPromise(ve).then(function(Te){var ze=Te.keySystem,st=we(ze);st?H(st):Z(new Error('Unable to find format for key-system "'.concat(ze,'"')))}).catch(Z)})}},{key:"loadKey",value:function(N){var W=this,H=N.keyInfo.decryptdata,Z=this.getKeyIdString(H),re="(keyId: ".concat(Z,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(re));var ve=this.keyIdToKeySessionPromise[Z];return ve||(ve=this.keyIdToKeySessionPromise[Z]=this.getKeySystemForKeyPromise(H).then(function(Te){var ze=Te.keySystem,st=Te.mediaKeys;return W.throwIfDestroyed(),W.log("Handle encrypted media sn: ".concat(N.frag.sn," ").concat(N.frag.type,": ").concat(N.frag.level," using key ").concat(re)),W.attemptSetMediaKeys(ze,st).then(function(){W.throwIfDestroyed();var mt=W.createMediaKeySessionContext({keySystem:ze,mediaKeys:st,decryptdata:H}),Yt="cenc";return W.generateRequestWithPreferredKeySession(mt,Yt,H.pssh,"playlist-key")})}),ve.catch(function(Te){return W.handleError(Te)})),ve}},{key:"throwIfDestroyed",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Invalid state";if(!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(N){if(!this.hls)return;this.error(N.message),N instanceof ll?this.hls.trigger(w.ERROR,N.data):this.hls.trigger(w.ERROR,{type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_KEYS,error:N,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(N){var W=this.getKeyIdString(N),H=this.keyIdToKeySessionPromise[W];if(!H){var Z=Y(N.keyFormat),re=Z?[Z]:Ce(this.config);return this.attemptKeySystemAccess(re)}return H}},{key:"getKeySystemSelectionPromise",value:function(N){if(N.length||(N=Ce(this.config)),N.length===0)throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options ".concat(JSON.stringify({drmSystems:this.config.drmSystems})));return this.attemptKeySystemAccess(N)}},{key:"_onMediaEncrypted",value:function(N){var W=this,H=N.initDataType,Z=N.initData;if(this.debug('"'.concat(N.type,'" event: init data type: "').concat(H,'"')),Z===null)return;var re,ve;if(H==="sinf"&&this.config.drmSystems[fe.FAIRPLAY]){var Te=$t(new Uint8Array(Z));try{var ze=Ge(JSON.parse(Te).sinf),st=En(new Uint8Array(ze));if(!st)return;re=st.subarray(8,24),ve=fe.FAIRPLAY}catch(Zn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var mt=Yn(Z);if(mt===null)return;mt.version===0&&mt.systemId===$.WIDEVINE&&mt.data&&(re=mt.data.subarray(8,24)),ve=de(mt.systemId)}if(!ve||!re)return;for(var Yt=St.hexDump(re),Tr=this.keyIdToKeySessionPromise,wr=this.mediaKeySessions,jr=Tr[Yt],Qr=function(){var Si=wr[Dn],ua=Si.decryptdata;if(ua.pssh||!ua.keyId)return 0;var Vi=St.hexDump(ua.keyId);if(Yt===Vi||ua.uri.replace(/-/g,"").indexOf(Yt)!==-1)return jr=Tr[Vi],delete Tr[Vi],ua.pssh=new Uint8Array(Z),ua.keyId=re,jr=Tr[Yt]=jr.then(function(){return W.generateRequestWithPreferredKeySession(Si,H,Z,"encrypted-event-key-match")}),1},Cn,Dn=0;Dn<wr.length;Dn++){if(Cn=Qr(),Cn===0)continue;if(Cn===1)break}jr||(jr=Tr[Yt]=this.getKeySystemSelectionPromise([ve]).then(function(Zn){var Si=Zn.keySystem,ua=Zn.mediaKeys,Vi;W.throwIfDestroyed();var Zi=new ur("ISO-23001-7",Yt,(Vi=we(Si))!=null?Vi:"");return Zi.pssh=new Uint8Array(Z),Zi.keyId=re,W.attemptSetMediaKeys(Si,ua).then(function(){W.throwIfDestroyed();var ka=W.createMediaKeySessionContext({decryptdata:Zi,keySystem:Si,mediaKeys:ua});return W.generateRequestWithPreferredKeySession(ka,H,Z,"encrypted-event-no-match")})})),jr.catch(function(Zn){return W.handleError(Zn)})}},{key:"_onWaitingForKey",value:function(N){this.log('"'.concat(N.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(N,W){var H=this,Z=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(N,'"'));var re=Promise.all(Z).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(W)});return this.setMediaKeysQueue.push(re),re.then(function(){H.log('Media-keys set for "'.concat(N,'"')),Z.push(re),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(ve){return Z.indexOf(ve)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(N,W,H,Z){var re=this,ve,Te,ze=(ve=this.config.drmSystems)==null||(Te=ve[N.keySystem])==null?void 0:Te.generateRequest;if(ze)try{var st=ze.call(this.hls,W,H,N);if(!st)throw new Error("Invalid response from configured generateRequest filter");W=st.initDataType,H=N.decryptdata.pssh=st.initData?new Uint8Array(st.initData):null}catch(jr){var mt;if(this.warn(jr.message),(mt=this.hls)!=null&&mt.config.debug)throw jr}if(H===null)return this.log('Skipping key-session request for "'.concat(Z,'" (no initData)')),Promise.resolve(N);var Yt=this.getKeyIdString(N.decryptdata);this.log('Generating key-session request for "'.concat(Z,'": ').concat(Yt," (init data type: ").concat(W," length: ").concat(H?H.byteLength:null,")"));var Tr=new ds;N.mediaKeysSession.onmessage=function(jr){var Qr=N.mediaKeysSession;if(!Qr){Tr.emit("error",new Error("invalid state"));return}var Cn=jr.messageType,Dn=jr.message;re.log('"'.concat(Cn,'" message event for session "').concat(Qr.sessionId,'" message size: ').concat(Dn.byteLength)),Cn==="license-request"||Cn==="license-renewal"?re.renewLicense(N,Dn).catch(function(Zn){re.handleError(Zn),Tr.emit("error",Zn)}):Cn==="license-release"?N.keySystem===fe.FAIRPLAY&&(re.updateKeySession(N,rt("acknowledged")),re.removeSession(N)):re.warn('unhandled media key message type "'.concat(Cn,'"'))},N.mediaKeysSession.onkeystatuseschange=function(jr){var Qr=N.mediaKeysSession;if(!Qr){Tr.emit("error",new Error("invalid state"));return}re.onKeyStatusChange(N);var Cn=N.keyStatus;Tr.emit("keyStatus",Cn),Cn==="expired"&&(re.warn("".concat(N.keySystem," expired for key ").concat(Yt)),re.renewKeySession(N))};var wr=new Promise(function(jr,Qr){Tr.on("error",Qr),Tr.on("keyStatus",function(Cn){Cn.startsWith("usable")?jr():Cn==="output-restricted"?Qr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Cn==="internal-error"?Qr(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Cn,'"'))):Cn==="expired"?Qr(new Error("key expired while generating request")):re.warn('unhandled key status change "'.concat(Cn,'"'))})});return N.mediaKeysSession.generateRequest(W,H).then(function(){var jr;re.log('Request generated for key-session "'.concat((jr=N.mediaKeysSession)==null?void 0:jr.sessionId,'" keyId: ').concat(Yt))}).catch(function(jr){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_NO_SESSION,error:jr,fatal:!1},"Error generating key-session request: ".concat(jr))}).then(function(){return wr}).catch(function(jr){throw Tr.removeAllListeners(),re.removeSession(N),jr}).then(function(){return Tr.removeAllListeners(),N})}},{key:"onKeyStatusChange",value:function(N){var W=this;N.mediaKeysSession.keyStatuses.forEach(function(H,Z){W.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(St.hexDump("buffer"in Z?new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength):new Uint8Array(Z))," session keyId: ").concat(St.hexDump(new Uint8Array(N.decryptdata.keyId||[]))," uri: ").concat(N.decryptdata.uri)),N.keyStatus=H})}},{key:"fetchServerCertificate",value:function(N){var W=this.config,H=W.loader,Z=new H(W),re=this.getServerCertificateUrl(N);return re?(this.log('Fetching serverCertificate for "'.concat(N,'"')),new Promise(function(ve,Te){var ze={responseType:"arraybuffer",url:re},st=W.certLoadPolicy.default,mt={loadPolicy:st,timeout:st.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Yt={onSuccess:function(wr,jr,Qr,Cn){ve(wr.data)},onError:function(wr,jr,Qr,Cn){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Qr,response:b({url:ze.url,data:void 0},wr)},'"'.concat(N,'" certificate request failed (').concat(re,"). Status: ").concat(wr.code," (").concat(wr.text,")")))},onTimeout:function(wr,jr,Qr){Te(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Qr,response:{url:ze.url,data:void 0}},'"'.concat(N,'" certificate request timed out (').concat(re,")")))},onAbort:function(wr,jr,Qr){Te(new Error("aborted"))}};Z.load(ze,mt,Yt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(N,W,H){var Z=this;return new Promise(function(re,ve){N.setServerCertificate(H).then(function(Te){Z.log("setServerCertificate ".concat(Te?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(W,'"')),re(N)}).catch(function(Te){ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:Te,fatal:!0},Te.message))})})}},{key:"renewLicense",value:function(N,W){var H=this;return this.requestLicense(N,new Uint8Array(W)).then(function(Z){return H.updateKeySession(N,new Uint8Array(Z)).catch(function(re){throw new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:re,fatal:!0},re.message)})})}},{key:"setupLicenseXHR",value:function(N,W,H,Z){var re=this,ve=this.config.licenseXhrSetup;return ve?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return ve.call(re.hls,N,W,H,Z)}).catch(function(Te){if(!H.decryptdata)throw Te;return N.open("POST",W,!0),ve.call(re.hls,N,W,H,Z)}).then(function(Te){N.readyState||N.open("POST",W,!0);var ze=Te||Z;return{xhr:N,licenseChallenge:ze}}):(N.open("POST",W,!0),Promise.resolve({xhr:N,licenseChallenge:Z}))}},{key:"requestLicense",value:function(N,W){var H=this,Z=this.config.keyLoadPolicy.default;return new Promise(function(re,ve){var Te=H.getLicenseServerUrl(N.keySystem);H.log("Sending license request to URL: ".concat(Te));var ze=new XMLHttpRequest;ze.responseType="arraybuffer",ze.onreadystatechange=function(){if(!H.hls||!N.mediaKeysSession)return ve(new Error("invalid state"));if(ze.readyState===4)if(ze.status===200){H._requestLicenseFailureCount=0;var st=ze.response;H.log("License received ".concat(st instanceof ArrayBuffer?st.byteLength:st));var mt=H.config.licenseResponseCallback;if(mt)try{st=mt.call(H.hls,ze,Te,N)}catch(jr){H.error(jr)}re(st)}else{var Yt=Z.errorRetry,Tr=Yt?Yt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Tr||ze.status>=400&&ze.status<500)ve(new ll({type:O.KEY_SYSTEM_ERROR,details:I.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:ze,response:{url:Te,data:void 0,code:ze.status,text:ze.statusText}},"License Request XHR failed (".concat(Te,"). Status: ").concat(ze.status," (").concat(ze.statusText,")")));else{var wr=Tr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(wr," attempts left")),H.requestLicense(N,W).then(re,ve)}}},N.licenseXhr&&N.licenseXhr.readyState!==XMLHttpRequest.DONE&&N.licenseXhr.abort(),N.licenseXhr=ze,H.setupLicenseXHR(ze,Te,N,W).then(function(st){var mt=st.xhr,Yt=st.licenseChallenge;mt.send(Yt)})})}},{key:"onMediaAttached",value:function(N,W){if(!this.config.emeEnabled)return;var H=W.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var N=this,W=this.media,H=this.mediaKeySessions;W&&(W.removeEventListener("encrypted",this.onMediaEncrypted),W.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},ur.clearKeyUriToKeyIdMap();var Z=H.length;Ae.CDMCleanupPromise=Promise.all(H.map(function(re){return N.removeSession(re)}).concat(W==null?void 0:W.setMediaKeys(null).catch(function(re){N.log("Could not clear media keys: ".concat(re,". media.src: ").concat(W==null?void 0:W.src))}))).then(function(){Z&&(N.log("finished closing key sessions and clearing media keys"),H.length=0)}).catch(function(re){N.log("Could not close sessions and clear media keys: ".concat(re,". media.src: ").concat(W==null?void 0:W.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(N,W){var H=W.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var Z=H.reduce(function(re,ve){return re.indexOf(ve.keyFormat)===-1&&re.push(ve.keyFormat),re},[]);this.log("Selecting key-system from session-keys ".concat(Z.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(Z)}}},{key:"removeSession",value:function(N){var W=this,H=N.mediaKeysSession,Z=N.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,Z&&Z.readyState!==XMLHttpRequest.DONE&&Z.abort(),N.mediaKeysSession=N.decryptdata=N.licenseXhr=void 0;var re=this.mediaKeySessions.indexOf(N);return re>-1&&this.mediaKeySessions.splice(re,1),H.remove().catch(function(ve){W.log("Could not remove session: ".concat(ve))}).then(function(){return H.close()}).catch(function(ve){W.log("Could not close session: ".concat(ve))})}}}]),Ae}();Cl.CDMCleanupPromise=void 0;var ll=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H){var Z;return Object(n.a)(this,N),Z=q.call(this,H),Z.data=void 0,W.error||(W.error=new Error(H)),Z.data=W,W.err=W.error,Z}return Object(o.a)(N)}(i(Error)),Hl=1,Sl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Su="h",vu=function(){function Ae(q){var N=this;Object(n.a)(this,Ae),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){N.initialized&&(N.starved=!0),N.buffering=!0},this.onPlaying=function(){N.initialized||(N.initialized=!0),N.buffering=!1},this.applyPlaylistData=function(Z){try{N.apply(Z,{ot:Sl.MANIFEST,su:!N.initialized})}catch(re){j.warn("Could not generate manifest CMCD data.",re)}},this.applyFragmentData=function(Z){try{var re=Z.frag,ve=N.hls.levels[re.level],Te=N.getObjectType(re),ze={d:re.duration*1e3,ot:Te};(Te===Sl.VIDEO||Te===Sl.AUDIO||Te==Sl.MUXED)&&(ze.br=ve.bitrate/1e3,ze.tb=N.getTopBandwidth(Te)/1e3,ze.bl=N.getBufferLength(Te)),N.apply(Z,ze)}catch(st){j.warn("Could not generate segment CMCD data.",st)}},this.hls=q;var W=this.config=q.config,H=W.cmcd;H!=null&&(W.pLoader=this.createPlaylistLoader(),W.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||Ae.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(o.a)(Ae,[{key:"registerListeners",value:function(){var N=this.hls;N.on(w.MEDIA_ATTACHED,this.onMediaAttached,this),N.on(w.MEDIA_DETACHED,this.onMediaDetached,this),N.on(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;N.off(w.MEDIA_ATTACHED,this.onMediaAttached,this),N.off(w.MEDIA_DETACHED,this.onMediaDetached,this),N.off(w.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null}},{key:"onMediaAttached",value:function(N,W){this.media=W.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null}},{key:"onBufferCreated",value:function(N,W){var H,Z;this.audioBuffer=(H=W.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(Z=W.tracks.video)==null?void 0:Z.buffer}},{key:"createData",value:function(){var N;return{v:Hl,sf:Su,sid:this.sid,cid:this.cid,pr:(N=this.media)==null?void 0:N.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(W,this.createData());var H=W.ot===Sl.INIT||W.ot===Sl.VIDEO||W.ot===Sl.MUXED;if(this.starved&&H&&(W.bs=!0,W.su=!0,this.starved=!1),W.su==null&&(W.su=this.buffering),this.useHeaders){var Z=Ae.toHeaders(W);if(!Object.keys(Z).length)return;N.headers||(N.headers={}),E(N.headers,Z)}else{var re=Ae.toQuery(W);if(!re)return;N.url=Ae.appendQueryToUri(N.url,re)}}},{key:"getObjectType",value:function(N){var W=N.type;return W==="subtitle"?Sl.TIMED_TEXT:N.sn==="initSegment"?Sl.INIT:W==="audio"?Sl.AUDIO:W==="main"?this.hls.audioTracks.length?Sl.VIDEO:Sl.MUXED:void 0}},{key:"getTopBandwidth",value:function(N){var W=0,H,Z=this.hls;if(N===Sl.AUDIO)H=Z.audioTracks;else{var re=Z.maxAutoLevel,ve=re>-1?re+1:Z.levels.length;H=Z.levels.slice(0,ve)}var Te=Object(f.a)(H),ze;try{for(Te.s();!(ze=Te.n()).done;){var st=ze.value;st.bitrate>W&&(W=st.bitrate)}}catch(mt){Te.e(mt)}finally{Te.f()}return W>0?W:NaN}},{key:"getBufferLength",value:function(N){var W=this.hls.media,H=N===Sl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!W)return NaN;var Z=Oi.bufferInfo(H,W.currentTime,this.config.maxBufferHole);return Z.len*1e3}},{key:"createPlaylistLoader",value:function(){var N=this.config.pLoader,W=this.applyPlaylistData,H=N||this.config.loader;return function(){function Z(re){Object(n.a)(this,Z),this.loader=void 0,this.loader=new H(re)}return Object(o.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}},{key:"createFragmentLoader",value:function(){var N=this.config.fLoader,W=this.applyFragmentData,H=N||this.config.loader;return function(){function Z(re){Object(n.a)(this,Z),this.loader=void 0,this.loader=new H(re)}return Object(o.a)(Z,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(ve,Te,ze){W(ve),this.loader.load(ve,Te,ze)}}]),Z}()}}],[{key:"uuid",value:function(){var N=URL.createObjectURL(new Blob),W=N.toString();return URL.revokeObjectURL(N),W.slice(W.lastIndexOf("/")+1)}},{key:"serialize",value:function(N){var W=[],H=function(Dn){return!Number.isNaN(Dn)&&Dn!=null&&Dn!==""&&Dn!==!1},Z=function(Dn){return Math.round(Dn)},re=function(Dn){return Z(Dn/100)*100},ve=function(Dn){return encodeURIComponent(Dn)},Te={br:Z,d:Z,bl:re,dl:re,mtp:re,nor:ve,rtp:re,tb:Z},ze=Object.keys(N||{}).sort(),st=Object(f.a)(ze),mt;try{for(st.s();!(mt=st.n()).done;){var Yt=mt.value,Tr=N[Yt];if(!H(Tr))continue;if(Yt==="v"&&Tr===1)continue;if(Yt=="pr"&&Tr===1)continue;var wr=Te[Yt];wr&&(Tr=wr(Tr));var jr=typeof Tr,Qr=void 0;Yt==="ot"||Yt==="sf"||Yt==="st"?Qr="".concat(Yt,"=").concat(Tr):jr==="boolean"?Qr=Yt:jr==="number"?Qr="".concat(Yt,"=").concat(Tr):Qr="".concat(Yt,"=").concat(JSON.stringify(Tr)),W.push(Qr)}}catch(Cn){st.e(Cn)}finally{st.f()}return W.join(",")}},{key:"toHeaders",value:function(N){for(var W=Object.keys(N),H={},Z=["Object","Request","Session","Status"],re=[{},{},{},{}],ve={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},Te=0,ze=W;Te<ze.length;Te++){var st=ze[Te],mt=ve[st]!=null?ve[st]:1;re[mt][st]=N[st]}for(var Yt=0;Yt<re.length;Yt++){var Tr=Ae.serialize(re[Yt]);Tr&&(H["CMCD-".concat(Z[Yt])]=Tr)}return H}},{key:"toQuery",value:function(N){return"CMCD=".concat(encodeURIComponent(Ae.serialize(N)))}},{key:"appendQueryToUri",value:function(N,W){if(!W)return N;var H=N.includes("?")?"&":"?";return"".concat(N).concat(H).concat(W)}}]),Ae}(),Au=3e5,Ol=function(){function Ae(q){Object(n.a)(this,Ae),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=q,this.log=j.log.bind(j,"[content-steering]:"),this.registerListeners()}return Object(o.a)(Ae,[{key:"registerListeners",value:function(){var N=this.hls;N.on(w.MANIFEST_LOADING,this.onManifestLoading,this),N.on(w.MANIFEST_LOADED,this.onManifestLoaded,this),N.on(w.MANIFEST_PARSED,this.onManifestParsed,this),N.on(w.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var N=this.hls;if(!N)return;N.off(w.MANIFEST_LOADING,this.onManifestLoading,this),N.off(w.MANIFEST_LOADED,this.onManifestLoaded,this),N.off(w.MANIFEST_PARSED,this.onManifestParsed,this),N.off(w.ERROR,this.onError,this)}},{key:"startLoad",value:function(){if(this.started=!0,self.clearTimeout(this.reloadTimer),this.enabled&&this.uri)if(this.updated){var N=Math.max(this.timeToLoad*1e3-(performance.now()-this.updated),0);this.scheduleRefresh(this.uri,N)}else this.loadSteeringManifest(this.uri)}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),self.clearTimeout(this.reloadTimer)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(N){var W=this.levels;W&&(this.levels=W.filter(function(H){return H!==N}))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(N,W){var H=W.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(N,W){this.audioTracks=W.audioTracks,this.subtitleTracks=W.subtitleTracks}},{key:"onError",value:function(N,W){var H=W.errorAction;if((H==null?void 0:H.action)===ra.SendAlternateToPenaltyBox&&H.flags===Ir.MoveAllAlternatesMatchingHost){var Z=this.pathwayPriority,re=this.pathwayId;this.penalizedPathways[re]||(this.penalizedPathways[re]=performance.now()),!Z&&this.levels&&(Z=this.levels.reduce(function(ve,Te){return ve.indexOf(Te.pathwayId)===-1&&ve.push(Te.pathwayId),ve},[])),Z&&Z.length>1&&(this.updatePathwayPriority(Z),H.resolved=this.pathwayId!==re)}}},{key:"filterParsedLevels",value:function(N){this.levels=N;var W=this.getLevelsForPathway(this.pathwayId);if(W.length===0){var H=N[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),W=this.getLevelsForPathway(H),this.pathwayId=H}return W.length!==N.length?(this.log("Found ".concat(W.length,"/").concat(N.length,' levels in Pathway "').concat(this.pathwayId,'"')),W):N}},{key:"getLevelsForPathway",value:function(N){return this.levels===null?[]:this.levels.filter(function(W){return N===W.pathwayId})}},{key:"updatePathwayPriority",value:function(N){this.pathwayPriority=N;var W,H=this.penalizedPathways,Z=performance.now();Object.keys(H).forEach(function(mt){Z-H[mt]>Au&&delete H[mt]});for(var re=0;re<N.length;re++){var ve=N[re];if(H[ve])continue;if(ve===this.pathwayId)return;var Te=this.hls.nextLoadLevel,ze=this.hls.levels[Te];if(W=this.getLevelsForPathway(ve),W.length>0){this.log('Setting Pathway to "'.concat(ve,'"')),this.pathwayId=ve,this.hls.trigger(w.LEVELS_UPDATED,{levels:W});var st=this.hls.levels[Te];ze&&st&&this.levels&&(st.attrs["STABLE-VARIANT-ID"]!==ze.attrs["STABLE-VARIANT-ID"]&&st.bitrate!==ze.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(ze.bitrate," to ").concat(st.bitrate)),this.hls.nextLoadLevel=Te);break}}}},{key:"clonePathways",value:function(N){var W=this,H=this.levels;if(!H)return;var Z={},re={};N.forEach(function(ve){var Te=ve.ID,ze=ve["BASE-ID"],st=ve["URI-REPLACEMENT"];if(H.some(function(Yt){return Yt.pathwayId===Te}))return;var mt=W.getLevelsForPathway(ze).map(function(Yt){var Tr=E({},Yt);Tr.details=void 0,Tr.url=du(Yt.uri,Yt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",st);var wr=new V(Yt.attrs);wr["PATHWAY-ID"]=Te;var jr=wr.AUDIO&&"".concat(wr.AUDIO,"_clone_").concat(Te),Qr=wr.SUBTITLES&&"".concat(wr.SUBTITLES,"_clone_").concat(Te);jr&&(Z[wr.AUDIO]=jr,wr.AUDIO=jr),Qr&&(re[wr.SUBTITLES]=Qr,wr.SUBTITLES=Qr),Tr.attrs=wr;var Cn=new Lt(Tr);return ln(Cn,"audio",jr),ln(Cn,"text",Qr),Cn});H.push.apply(H,Object(y.a)(mt)),cu(W.audioTracks,Z,st,Te),cu(W.subtitleTracks,re,st,Te)})}},{key:"loadSteeringManifest",value:function(N){var W=this,H=this.hls.config,Z=H.loader;this.loader&&this.loader.destroy(),this.loader=new Z(H);var re;try{re=new self.URL(N)}catch(Tr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(N));return}if(re.protocol!=="data:"){var ve=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;re.searchParams.set("_HLS_pathway",this.pathwayId),re.searchParams.set("_HLS_throughput",""+ve)}var Te={responseType:"json",url:re.href},ze=H.steeringManifestLoadPolicy.default,st=ze.errorRetry||ze.timeoutRetry||{},mt={loadPolicy:ze,timeout:ze.maxLoadTimeMs,maxRetry:st.maxNumRetry||0,retryDelay:st.retryDelayMs||0,maxRetryDelay:st.maxRetryDelayMs||0},Yt={onSuccess:function(wr,jr,Qr,Cn){W.log('Loaded steering manifest: "'.concat(re,'"'));var Dn=wr.data;if(Dn.VERSION!==1){W.log("Steering VERSION ".concat(Dn.VERSION," not supported!"));return}W.updated=performance.now(),W.timeToLoad=Dn.TTL;var Zn=Dn["RELOAD-URI"],Si=Dn["PATHWAY-CLONES"],ua=Dn["PATHWAY-PRIORITY"];if(Zn)try{W.uri=new self.URL(Zn,re).href}catch(Vi){W.enabled=!1,W.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Zn));return}W.scheduleRefresh(W.uri||Qr.url),Si&&W.clonePathways(Si),ua&&W.updatePathwayPriority(ua)},onError:function(wr,jr,Qr,Cn){if(W.log("Error loading steering manifest: ".concat(wr.code," ").concat(wr.text," (").concat(jr.url,")")),W.stopLoad(),wr.code===410){W.enabled=!1,W.log("Steering manifest ".concat(jr.url," no longer available"));return}var Dn=W.timeToLoad*1e3;if(wr.code===429){var Zn=W.loader;if(typeof(Zn==null?void 0:Zn.getResponseHeader)=="function"){var Si=Zn.getResponseHeader("Retry-After");Si&&(Dn=parseFloat(Si)*1e3)}W.log("Steering manifest ".concat(jr.url," rate limited"));return}W.scheduleRefresh(W.uri||jr.url,Dn)},onTimeout:function(wr,jr,Qr){W.log("Timeout loading steering manifest (".concat(jr.url,")")),W.scheduleRefresh(W.uri||jr.url)}};this.log("Requesting steering manifest: ".concat(re)),this.loader.load(Te,mt,Yt)}},{key:"scheduleRefresh",value:function(N){var W=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){W.loadSteeringManifest(N)},H)}}]),Ae}();function cu(Ae,q,N,W){if(!Ae)return;Object.keys(q).forEach(function(H){var Z=Ae.filter(function(re){return re.groupId===H}).map(function(re){var ve=E({},re);return ve.details=void 0,ve.attrs=new V(ve.attrs),ve.url=ve.attrs.URI=du(re.url,re.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",N),ve.groupId=ve.attrs["GROUP-ID"]=q[H],ve.attrs["PATHWAY-ID"]=W,ve});Ae.push.apply(Ae,Object(y.a)(Z))})}function du(Ae,q,N,W){var H=W.HOST,Z=W.PARAMS,re=W[N],ve;q&&(ve=re==null?void 0:re[q],ve&&(Ae=ve));var Te=new self.URL(Ae);return H&&!ve&&(Te.host=H),Z&&Object.keys(Z).sort().forEach(function(ze){ze&&Te.searchParams.set(ze,Z[ze])}),Te.href}var Lu=/^age:\s*[\d.]+\s*$/im,zl=function(){function Ae(q){Object(n.a)(this,Ae),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=q&&q.xhrSetup||null,this.stats=new se,this.retryDelay=0}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null}},{key:"abortInternal",value:function(){var N=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),N&&(N.onreadystatechange=null,N.onprogress=null,N.readyState!==4&&(this.stats.aborted=!0,N.abort()))}},{key:"abort",value:function(){var N;this.abortInternal(),(N=this.callbacks)!=null&&N.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(N,W,H){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=N,this.config=W,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var N=this,W=this.config,H=this.context;if(!W)return;var Z=this.loader=new self.XMLHttpRequest,re=this.stats;re.loading.first=0,re.loaded=0,re.aborted=!1;var ve=this.xhrSetup;ve?Promise.resolve().then(function(){return N.stats.aborted?void 0:ve(Z,H.url)}).catch(function(Te){return Z.open("GET",H.url,!0),ve(Z,H.url)}).then(function(){if(N.stats.aborted)return;N.openAndSendXhr(Z,H,W)}).catch(function(Te){N.callbacks.onError({code:Z.status,text:Te.message},H,Z,re);return}):this.openAndSendXhr(Z,H,W)}},{key:"openAndSendXhr",value:function(N,W,H){N.readyState||N.open("GET",W.url,!0);var Z=this.context.headers,re=H.loadPolicy,ve=re.maxTimeToFirstByteMs,Te=re.maxLoadTimeMs;if(Z)for(var ze in Z)N.setRequestHeader(ze,Z[ze]);W.rangeEnd&&N.setRequestHeader("Range","bytes="+W.rangeStart+"-"+(W.rangeEnd-1)),N.onreadystatechange=this.readystatechange.bind(this),N.onprogress=this.loadprogress.bind(this),N.responseType=W.responseType,self.clearTimeout(this.requestTimeout),H.timeout=ve&&T(ve)?ve:Te,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),N.send()}},{key:"readystatechange",value:function(){var N=this.context,W=this.loader,H=this.stats;if(!N||!W)return;var Z=W.readyState,re=this.config;if(H.aborted)return;if(Z>=2&&(H.loading.first===0&&(H.loading.first=Math.max(self.performance.now(),H.loading.start),re.timeout!==re.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),re.timeout=re.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),re.loadPolicy.maxLoadTimeMs-(H.loading.first-H.loading.start)))),Z===4)){self.clearTimeout(this.requestTimeout),W.onreadystatechange=null,W.onprogress=null;var ve=W.status,Te=W.responseType!=="text";if(ve>=200&&ve<300&&(Te&&W.response||W.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var ze=Te?W.response:W.responseText,st=W.responseType==="arraybuffer"?ze.byteLength:ze.length;if(H.loaded=H.total=st,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var mt=this.callbacks.onProgress;if(mt&&mt(H,N,ze,W),!this.callbacks)return;var Yt={url:W.responseURL,data:ze,code:ve};this.callbacks.onSuccess(Yt,H,N,W)}else{var Tr=re.loadPolicy.errorRetry,wr=H.retry;oa(Tr,wr,!1,ve)?this.retry(Tr):(j.error("".concat(ve," while loading ").concat(N.url)),this.callbacks.onError({code:ve,text:W.statusText},N,W,H))}}}},{key:"loadtimeout",value:function(){var N,W=(N=this.config)==null?void 0:N.loadPolicy.timeoutRetry,H=this.stats.retry;if(oa(W,H,!0))this.retry(W);else{j.warn("timeout while loading ".concat(this.context.url));var Z=this.callbacks;Z&&(this.abortInternal(),Z.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(N){var W=this.context,H=this.stats;this.retryDelay=Ri(N,H.retry),H.retry++,j.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(W.url,", retrying ").concat(H.retry,"/").concat(N.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(N){var W=this.stats;W.loaded=N.loaded,N.lengthComputable&&(W.total=N.total)}},{key:"getCacheAge",value:function(){var N=null;if(this.loader&&Lu.test(this.loader.getAllResponseHeaders())){var W=this.loader.getResponseHeader("age");N=W?parseFloat(W):null}return N}},{key:"getResponseHeader",value:function(N){return this.loader&&new RegExp("^".concat(N,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(N):null}}]),Ae}();function ru(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(Ae){}return!1}var ou=/(\d+)-(\d+)\/(\d+)/,su=function(){function Ae(q){Object(n.a)(this,Ae),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=void 0,this.response=void 0,this.controller=void 0,this.context=void 0,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=q.fetchSetup||Zl,this.controller=new self.AbortController,this.stats=new se}return Object(o.a)(Ae,[{key:"destroy",value:function(){this.loader=this.callbacks=null,this.abortInternal()}},{key:"abortInternal",value:function(){var N=this.response;N!=null&&N.ok||(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var N;this.abortInternal(),(N=this.callbacks)!=null&&N.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(N,W,H){var Z=this,re=this.stats;if(re.loading.start)throw new Error("Loader can only be used once.");re.loading.start=self.performance.now();var ve=Jl(N,this.controller.signal),Te=H.onProgress,ze=N.responseType==="arraybuffer",st=ze?"byteLength":"length",mt=W.loadPolicy,Yt=mt.maxTimeToFirstByteMs,Tr=mt.maxLoadTimeMs;this.context=N,this.config=W,this.callbacks=H,this.request=this.fetchSetup(N,ve),self.clearTimeout(this.requestTimeout),W.timeout=Yt&&T(Yt)?Yt:Tr,this.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(re,N,Z.response)},W.timeout),self.fetch(this.request).then(function(wr){Z.response=Z.loader=wr;var jr=Math.max(self.performance.now(),re.loading.start);if(self.clearTimeout(Z.requestTimeout),W.timeout=Tr,Z.requestTimeout=self.setTimeout(function(){Z.abortInternal(),H.onTimeout(re,N,Z.response)},Tr-(jr-re.loading.start)),!wr.ok){var Qr=wr.status,Cn=wr.statusText;throw new yu(Cn||"fetch, bad network response",Qr,wr)}return re.loading.first=jr,re.total=Ru(wr.headers)||re.total,Te&&T(W.highWaterMark)?Z.loadProgressively(wr,re,N,W.highWaterMark,Te):ze?wr.arrayBuffer():N.responseType==="json"?wr.json():wr.text()}).then(function(wr){var jr=Z.response;self.clearTimeout(Z.requestTimeout),re.loading.end=Math.max(self.performance.now(),re.loading.first);var Qr=wr[st];Qr&&(re.loaded=re.total=Qr);var Cn={url:jr.url,data:wr,code:jr.status};Te&&!T(W.highWaterMark)&&Te(re,N,wr,jr),H.onSuccess(Cn,re,N,jr)}).catch(function(wr){if(self.clearTimeout(Z.requestTimeout),re.aborted)return;var jr=wr&&wr.code||0,Qr=wr?wr.message:null;H.onError({code:jr,text:Qr},N,wr?wr.details:null,re)})}},{key:"getCacheAge",value:function(){var N=null;if(this.response){var W=this.response.headers.get("age");N=W?parseFloat(W):null}return N}},{key:"getResponseHeader",value:function(N){return this.response?this.response.headers.get(N):null}},{key:"loadProgressively",value:function(N,W,H){var Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,re=arguments.length>4?arguments[4]:void 0,ve=new jt,Te=N.body.getReader(),ze=function st(){return Te.read().then(function(mt){if(mt.done)return ve.dataLength&&re(W,H,ve.flush(),N),Promise.resolve(new ArrayBuffer(0));var Yt=mt.value,Tr=Yt.length;return W.loaded+=Tr,Tr<Z||ve.dataLength?(ve.push(Yt),ve.dataLength>=Z&&re(W,H,ve.flush(),N)):re(W,H,Yt,N),st()}).catch(function(){return Promise.reject()})};return ze()}}]),Ae}();function Jl(Ae,q){var N={method:"GET",mode:"cors",credentials:"same-origin",signal:q,headers:new self.Headers(E({},Ae.headers))};return Ae.rangeEnd&&N.headers.set("Range","bytes="+Ae.rangeStart+"-"+String(Ae.rangeEnd-1)),N}function Du(Ae){var q=ou.exec(Ae);if(q)return parseInt(q[2])-parseInt(q[1])+1}function Ru(Ae){var q=Ae.get("Content-Range");if(q){var N=Du(q);if(T(N))return N}var W=Ae.get("Content-Length");if(W)return parseInt(W)}function Zl(Ae,q){return new self.Request(Ae.url,q)}var yu=function(Ae){Object(s.a)(N,Ae);var q=Object(e.a)(N);function N(W,H,Z){var re;return Object(n.a)(this,N),re=q.call(this,W),re.code=void 0,re.details=void 0,re.code=H,re.details=Z,re}return Object(o.a)(N)}(i(Error)),xu=/\s/,bu={newCue:function(q,N,W,H){for(var Z=[],re,ve,Te,ze,st,mt=self.VTTCue||self.TextTrackCue,Yt=0;Yt<H.rows.length;Yt++)if(re=H.rows[Yt],Te=!0,ze=0,st="",!re.isEmpty()){for(var Tr,wr=0;wr<re.chars.length;wr++)xu.test(re.chars[wr].uchar)&&Te?ze++:(st+=re.chars[wr].uchar,Te=!1);re.cueStartTime=N,N===W&&(W+=1e-4),ze>=16?ze--:ze++;var jr=jo(st.trim()),Qr=Ls(N,W,jr);q!=null&&(Tr=q.cues)!=null&&Tr.getCueById(Qr)||(ve=new mt(N,W,jr),ve.id=Qr,ve.line=Yt+1,ve.align="left",ve.position=10+Math.min(80,Math.floor(ze*8/32)*10),Z.push(ve))}return q&&Z.length&&(Z.sort(function(Cn,Dn){return Cn.line==="auto"||Dn.line==="auto"?0:Cn.line>8&&Dn.line>8?Dn.line-Cn.line:Cn.line-Dn.line}),Z.forEach(function(Cn){return gr(q,Cn)})),Z}},hl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Dl=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:zl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:go,bufferController:xi,capLevelController:mu,errorController:Sr,fpsController:gu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Se,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:hl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:Infinity,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},nu()),{},{subtitleStreamController:Je,subtitleTrackController:lr,timelineController:$l,audioStreamController:hi,audioTrackController:Nt,emeController:Cl,cmcdController:vu,contentSteeringController:Ol});function nu(){return{cueHandler:bu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Nu(Ae,q){if((q.liveSyncDurationCount||q.liveMaxLatencyDurationCount)&&(q.liveSyncDuration||q.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(q.liveMaxLatencyDurationCount!==void 0&&(q.liveSyncDurationCount===void 0||q.liveMaxLatencyDurationCount<=q.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(q.liveMaxLatencyDuration!==void 0&&(q.liveSyncDuration===void 0||q.liveMaxLatencyDuration<=q.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var N=hu(Ae),W=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return W.forEach(function(Z){var re="".concat(Z==="level"?"playlist":Z,"LoadPolicy"),ve=q[re]===void 0,Te=[];H.forEach(function(ze){var st="".concat(Z,"Loading").concat(ze),mt=q[st];if(mt!==void 0&&ve){Te.push(st);var Yt=N[re].default;q[re]={default:Yt};switch(ze){case"TimeOut":Yt.maxLoadTimeMs=mt,Yt.maxTimeToFirstByteMs=mt;break;case"MaxRetry":Yt.errorRetry.maxNumRetry=mt,Yt.timeoutRetry.maxNumRetry=mt;break;case"RetryDelay":Yt.errorRetry.retryDelayMs=mt,Yt.timeoutRetry.retryDelayMs=mt;break;case"MaxRetryTimeout":Yt.errorRetry.maxRetryDelayMs=mt,Yt.timeoutRetry.maxRetryDelayMs=mt;break}}}),Te.length&&j.warn('hls.js config: "'.concat(Te.join('", "'),'" setting(s) are deprecated, use "').concat(re,'": ').concat(JSON.stringify(q[re])))}),b(b({},N),q)}function hu(Ae){return Ae&&typeof Ae=="object"?Array.isArray(Ae)?Ae.map(hu):Object.keys(Ae).reduce(function(q,N){return q[N]=hu(Ae[N]),q},{}):Ae}function fu(Ae){var q=Ae.loader;if(q!==su&&q!==zl)j.log("[config]: Custom loader detected, cannot enable progressive streaming"),Ae.progressive=!1;else{var N=ru();N&&(Ae.loader=su,Ae.progressive=!0,Ae.enableSoftwareAES=!0,j.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var iu=function(){function Ae(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(n.a)(this,Ae),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ds,this._autoLevelCapping=void 0,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,F(q.debug||!1,"Hls instance");var N=this.config=Nu(Ae.DefaultConfig,q);this.userConfig=q,this._autoLevelCapping=-1,N.progressive&&fu(N);var W=N.abrController,H=N.bufferController,Z=N.capLevelController,re=N.errorController,ve=N.fpsController,Te=new re(this),ze=this.abrController=new W(this),st=this.bufferController=new H(this),mt=this.capLevelController=new Z(this),Yt=new ve(this),Tr=new Vr(this),wr=new Gn(this),jr=N.contentSteeringController,Qr=jr?new jr(this):null,Cn=this.levelController=new Wr(this,Qr),Dn=new _r(this),Zn=new pi(this.config),Si=this.streamController=new No(this,Dn,Zn);mt.setStreamController(Si),Yt.setStreamController(Si);var ua=[Tr,Cn,Si];Qr&&ua.splice(1,0,Qr),this.networkControllers=ua;var Vi=[ze,st,mt,Yt,wr,Dn];this.audioTrackController=this.createController(N.audioTrackController,ua);var Zi=N.audioStreamController;Zi&&ua.push(new Zi(this,Dn,Zn)),this.subtitleTrackController=this.createController(N.subtitleTrackController,ua);var ka=N.subtitleStreamController;ka&&ua.push(new ka(this,Dn,Zn)),this.createController(N.timelineController,Vi),Zn.emeController=this.emeController=this.createController(N.emeController,Vi),this.cmcdController=this.createController(N.cmcdController,Vi),this.latencyController=this.createController(Wt,Vi),this.coreComponents=Vi,ua.push(Te);var Ga=Te.onErrorOut;typeof Ga=="function"&&this.on(w.ERROR,Ga,Te)}return Object(o.a)(Ae,[{key:"createController",value:function(N,W){if(N){var H=new N(this);return W&&W.push(H),H}return null}},{key:"on",value:function(N,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(N,W,H)}},{key:"once",value:function(N,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(N,W,H)}},{key:"removeAllListeners",value:function(N){this._emitter.removeAllListeners(N)}},{key:"off",value:function(N,W){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,Z=arguments.length>3?arguments[3]:void 0;this._emitter.off(N,W,H,Z)}},{key:"listeners",value:function(N){return this._emitter.listeners(N)}},{key:"emit",value:function(N,W,H){return this._emitter.emit(N,W,H)}},{key:"trigger",value:function(N,W){if(this.config.debug)return this.emit(N,N,W);try{return this.emit(N,N,W)}catch(H){j.error("An internal error happened while handling event "+N+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(w.ERROR,{type:O.OTHER_ERROR,details:I.INTERNAL_EXCEPTION,fatal:!1,event:N,error:H})}return!1}},{key:"listenerCount",value:function(N){return this._emitter.listenerCount(N)}},{key:"destroy",value:function(){j.log("destroy"),this.trigger(w.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(W){return W.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(W){return W.destroy()}),this.coreComponents.length=0;var N=this.config;N.xhrSetup=N.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(N){j.log("attachMedia"),this._media=N,this.trigger(w.MEDIA_ATTACHING,{media:N})}},{key:"detachMedia",value:function(){j.log("detachMedia"),this.trigger(w.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(N){this.stopLoad();var W=this.media,H=this.url,Z=this.url=g.buildAbsoluteURL(self.location.href,N,{alwaysNormalize:!0});j.log("loadSource:".concat(Z)),W&&H&&(H!==Z||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(W)),this.trigger(w.MANIFEST_LOADING,{url:N})}},{key:"startLoad",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;j.log("startLoad(".concat(N,")")),this.networkControllers.forEach(function(W){W.startLoad(N)})}},{key:"stopLoad",value:function(){j.log("stopLoad"),this.networkControllers.forEach(function(N){N.stopLoad()})}},{key:"swapAudioCodec",value:function(){j.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){j.log("recoverMediaError");var N=this._media;this.detachMedia(),N&&this.attachMedia(N)}},{key:"removeLevel",value:function(N){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(N,W)}},{key:"levels",get:function(){var N=this.levelController.levels;return N||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(N){j.log("set currentLevel:".concat(N)),this.loadLevel=N,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(N){j.log("set nextLevel:".concat(N)),this.levelController.manualLevel=N,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(N){j.log("set loadLevel:".concat(N)),this.levelController.manualLevel=N}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(N){this.levelController.nextLoadLevel=N}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(N){j.log("set firstLevel:".concat(N)),this.levelController.firstLevel=N}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(N){j.log("set startLevel:".concat(N)),N!==-1&&(N=Math.max(N,this.minAutoLevel)),this.levelController.startLevel=N}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(N){var W=!!N;W!==this.config.capLevelToPlayerSize&&(W?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=W)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(N){this._autoLevelCapping!==N&&(j.log("set autoLevelCapping:".concat(N)),this._autoLevelCapping=N)}},{key:"bandwidthEstimate",get:function(){var N=this.abrController.bwEstimator;return N?N.getEstimate():NaN}},{key:"ttfbEstimate",get:function(){var N=this.abrController.bwEstimator;return N?N.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(N){Ot.indexOf(N)>-1&&(this._maxHdcpLevel=N)}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var N=this.levels,W=this.config.minAutoBitrate;if(!N)return 0;for(var H=N.length,Z=0;Z<H;Z++)if(N[Z].maxBitrate>=W)return Z;return 0}},{key:"maxAutoLevel",get:function(){var N=this.levels,W=this.autoLevelCapping,H=this.maxHdcpLevel,Z;if(W===-1&&N&&N.length?Z=N.length-1:Z=W,H)for(var re=Z;re--;){var ve=N[re].attrs["HDCP-LEVEL"];if(ve&&ve<=H)return re}return Z}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(N){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,N)}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"audioTracks",get:function(){var N=this.audioTrackController;return N?N.audioTracks:[]}},{key:"audioTrack",get:function(){var N=this.audioTrackController;return N?N.audioTrack:-1},set:function(N){var W=this.audioTrackController;W&&(W.audioTrack=N)}},{key:"subtitleTracks",get:function(){var N=this.subtitleTrackController;return N?N.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var N=this.subtitleTrackController;return N?N.subtitleTrack:-1},set:function(N){var W=this.subtitleTrackController;W&&(W.subtitleTrack=N)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var N=this.subtitleTrackController;return N?N.subtitleDisplay:!1},set:function(N){var W=this.subtitleTrackController;W&&(W.subtitleDisplay=N)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(N){this.config.lowLatencyMode=N}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.4.12"}},{key:"isSupported",value:function(){return Qo()}},{key:"Events",get:function(){return w}},{key:"ErrorTypes",get:function(){return O}},{key:"ErrorDetails",get:function(){return I}},{key:"DefaultConfig",get:function(){return Ae.defaultConfig?Ae.defaultConfig:Dl},set:function(N){Ae.defaultConfig=N}}]),Ae}();iu.defaultConfig=void 0},pl8g:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("E/ki")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="ClockCircleOutlined";var i=A.forwardRef(a);L.default=i},pmaE:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS"),A=r("DEFe"),m="__seriesMapHighDown",p="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(i,t,s,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),i.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===i.id){var n=this._mapDraw;n&&l.add(n.group)}else if(i.needsDrawMap){var n=this._mapDraw||new A(s,!0);l.add(n.group),n.draw(i,t,s,this,e),this._mapDraw=n}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(i,t,s)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(i,t,s){var e=i.originalData,l=this.group;e.each(e.mapDimension("value"),function(n,o){if(isNaN(n))return;var c=e.getItemLayout(o);if(!c||!c.point)return;var h=c.point,g=c.offset,v=new x.Circle({style:{fill:i.getData().getVisual("color")},shape:{cx:h[0]+g*9,cy:h[1],r:3},silent:!0,z2:8+(g?0:x.Z2_EMPHASIS_LIFT+1)});if(!g){var b=i.mainSeries.getData(),S=e.getName(o),E=b.indexOfName(S),C=e.getItemModel(o),_=C.getModel("label"),T=C.getModel("emphasis.label"),w=b.getItemGraphicEl(E),O=f.retrieve2(i.getFormattedLabel(E,"normal"),S),I=f.retrieve2(i.getFormattedLabel(E,"emphasis"),O),k=w[m],M=Math.random();if(!k){k=w[m]={};var U=f.curry(u,!0),P=f.curry(u,!1);w.on("mouseover",U).on("mouseout",P).on("emphasis",U).on("normal",P)}w[p]=M,f.extend(k,{recordVersion:M,circle:v,labelModel:_,hoverLabelModel:T,emphasisText:I,normalText:O}),a(k,!1)}l.add(v)})}});function u(i){var t=this[m];t&&t.recordVersion===this[p]&&a(t,i)}function a(i,t){var s=i.circle,e=i.labelModel,l=i.hoverLabelModel,n=i.emphasisText,o=i.normalText;t?(s.style.extendFrom(x.setTextStyle({},l,{text:l.get("show")?n:null},{isRectText:!0,useInsideStyle:!1},!0)),s.__mapOriginalZ2=s.z2,s.z2+=x.Z2_EMPHASIS_LIFT):(x.setTextStyle(s.style,e,{text:e.get("show")?o:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),s.dirty(!1),s.__mapOriginalZ2!=null&&(s.z2=s.__mapOriginalZ2,s.__mapOriginalZ2=null))}R.exports=d},pwpV:function(R,L,r){},pzxd:function(R,L,r){var y=r("bYtY"),f=y.retrieve2,x=y.retrieve3,A=y.each,m=y.normalizeCssArray,p=y.isString,d=y.isObject,u=r("6GrX"),a=r("VpOo"),i=r("Xnb7"),t=r("fW2E"),s=r("gut8"),e=s.ContextCachedBy,l=s.WILL_BE_RESTORED,n=u.DEFAULT_FONT,o={left:1,right:1,center:1},c={top:1,bottom:1,middle:1},h=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],g={},v={};function b(V){return S(V),A(V.rich,S),V}function S(V){if(V){V.font=u.makeFont(V);var Q=V.textAlign;Q==="middle"&&(Q="center"),V.textAlign=Q==null||o[Q]?Q:"left";var G=V.textVerticalAlign||V.textBaseline;G==="center"&&(G="middle"),V.textVerticalAlign=G==null||c[G]?G:"top";var ee=V.textPadding;ee&&(V.textPadding=m(V.textPadding))}}function E(V,Q,G,ee,se,ye){ee.rich?_(V,Q,G,ee,se,ye):C(V,Q,G,ee,se,ye)}function C(V,Q,G,ee,se,ye){"use strict";var he=I(ee),ke,Pe=!1,Ue=Q.__attrCachedBy===e.PLAIN_TEXT;ye!==l?(ye&&(ke=ye.style,Pe=!he&&Ue&&ke),Q.__attrCachedBy=he?e.NONE:e.PLAIN_TEXT):Ue&&(Q.__attrCachedBy=e.NONE);var $e=ee.font||n;(!Pe||$e!==(ke.font||n))&&(Q.font=$e);var Ge=V.__computedFont;V.__styleFont!==$e&&(V.__styleFont=$e,Ge=V.__computedFont=Q.font);var ht=ee.textPadding,Fe=ee.textLineHeight,oe=V.__textCotentBlock;(!oe||V.__dirtyText)&&(oe=V.__textCotentBlock=u.parsePlainText(G,Ge,ht,Fe,ee.truncate));var rt=oe.outerHeight,fe=oe.lines,J=oe.lineHeight,Y=U(v,V,ee,se),$=Y.baseX,de=Y.baseY,we=Y.textAlign||"left",Ce=Y.textVerticalAlign;w(Q,ee,se,$,de);var Se=u.adjustTextY(de,rt,Ce),le=$,pe=Se;if(he||ht){var _e=u.getWidth(G,Ge),tt=_e;ht&&(tt+=ht[1]+ht[3]);var gt=u.adjustTextX($,tt,we);he&&k(V,Q,ee,gt,Se,tt,rt),ht&&(le=K($,we,ht),pe+=ht[0])}Q.textAlign=we,Q.textBaseline="middle",Q.globalAlpha=ee.opacity||1;for(var ct=0;ct<h.length;ct++){var je=h[ct],Zt=je[0],ut=je[1],Ht=ee[Zt];(!Pe||Ht!==ke[Zt])&&(Q[ut]=t(Q,ut,Ht||je[2]))}pe+=J/2;var dr=ee.textStrokeWidth,Vt=Pe?ke.textStrokeWidth:null,Mt=!Pe||dr!==Vt,Gt=!Pe||Mt||ee.textStroke!==ke.textStroke,Ve=X(ee.textStroke,dr),me=F(ee.textFill);if(Ve&&(Mt&&(Q.lineWidth=dr),Gt&&(Q.strokeStyle=Ve)),me&&((!Pe||ee.textFill!==ke.textFill)&&(Q.fillStyle=me)),fe.length===1)Ve&&Q.strokeText(fe[0],le,pe),me&&Q.fillText(fe[0],le,pe);else for(var ct=0;ct<fe.length;ct++)Ve&&Q.strokeText(fe[ct],le,pe),me&&Q.fillText(fe[ct],le,pe),pe+=J}function _(V,Q,G,ee,se,ye){ye!==l&&(Q.__attrCachedBy=e.NONE);var he=V.__textCotentBlock;(!he||V.__dirtyText)&&(he=V.__textCotentBlock=u.parseRichText(G,ee)),T(V,Q,he,ee,se)}function T(V,Q,G,ee,se){var ye=G.width,he=G.outerWidth,ke=G.outerHeight,Pe=ee.textPadding,Ue=U(v,V,ee,se),$e=Ue.baseX,Ge=Ue.baseY,ht=Ue.textAlign,Fe=Ue.textVerticalAlign;w(Q,ee,se,$e,Ge);var oe=u.adjustTextX($e,he,ht),rt=u.adjustTextY(Ge,ke,Fe),fe=oe,J=rt;Pe&&(fe+=Pe[3],J+=Pe[0]);var Y=fe+ye;I(ee)&&k(V,Q,ee,oe,rt,he,ke);for(var $=0;$<G.lines.length;$++){for(var de=G.lines[$],we=de.tokens,Ce=we.length,Se=de.lineHeight,le=de.width,pe=0,_e=fe,tt=Y,gt=Ce-1,ct;pe<Ce&&(ct=we[pe],!ct.textAlign||ct.textAlign==="left");)O(V,Q,ct,ee,Se,J,_e,"left"),le-=ct.width,_e+=ct.width,pe++;for(;gt>=0&&(ct=we[gt],ct.textAlign==="right");)O(V,Q,ct,ee,Se,J,tt,"right"),le-=ct.width,tt-=ct.width,gt--;for(_e+=(ye-(_e-fe)-(Y-tt)-le)/2;pe<=gt;)ct=we[pe],O(V,Q,ct,ee,Se,J,_e+ct.width/2,"center"),_e+=ct.width,pe++;J+=Se}}function w(V,Q,G,ee,se){if(G&&Q.textRotation){var ye=Q.textOrigin;ye==="center"?(ee=G.width/2+G.x,se=G.height/2+G.y):ye&&(ee=ye[0]+G.x,se=ye[1]+G.y),V.translate(ee,se),V.rotate(-Q.textRotation),V.translate(-ee,-se)}}function O(V,Q,G,ee,se,ye,he,ke){var Pe=ee.rich[G.styleName]||{};Pe.text=G.text;var Ue=G.textVerticalAlign,$e=ye+se/2;Ue==="top"?$e=ye+G.height/2:Ue==="bottom"&&($e=ye+se-G.height/2),!G.isLineHolder&&I(Pe)&&k(V,Q,Pe,ke==="right"?he-G.width:ke==="center"?he-G.width/2:he,$e-G.height/2,G.width,G.height);var Ge=G.textPadding;Ge&&(he=K(he,ke,Ge),$e-=G.height/2-Ge[2]-G.textHeight/2),P(Q,"shadowBlur",x(Pe.textShadowBlur,ee.textShadowBlur,0)),P(Q,"shadowColor",Pe.textShadowColor||ee.textShadowColor||"transparent"),P(Q,"shadowOffsetX",x(Pe.textShadowOffsetX,ee.textShadowOffsetX,0)),P(Q,"shadowOffsetY",x(Pe.textShadowOffsetY,ee.textShadowOffsetY,0)),P(Q,"textAlign",ke),P(Q,"textBaseline","middle"),P(Q,"font",G.font||n);var ht=X(Pe.textStroke||ee.textStroke,oe),Fe=F(Pe.textFill||ee.textFill),oe=f(Pe.textStrokeWidth,ee.textStrokeWidth);ht&&(P(Q,"lineWidth",oe),P(Q,"strokeStyle",ht),Q.strokeText(G.text,he,$e)),Fe&&(P(Q,"fillStyle",Fe),Q.fillText(G.text,he,$e))}function I(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function k(V,Q,G,ee,se,ye,he){var ke=G.textBackgroundColor,Pe=G.textBorderWidth,Ue=G.textBorderColor,$e=p(ke);if(P(Q,"shadowBlur",G.textBoxShadowBlur||0),P(Q,"shadowColor",G.textBoxShadowColor||"transparent"),P(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),P(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),$e||Pe&&Ue){Q.beginPath();var Ge=G.textBorderRadius;Ge?a.buildPath(Q,{x:ee,y:se,width:ye,height:he,r:Ge}):Q.rect(ee,se,ye,he),Q.closePath()}if($e)if(P(Q,"fillStyle",ke),G.fillOpacity!=null){var ht=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=ht}else Q.fill();else if(d(ke)){var Fe=ke.image;Fe=i.createOrUpdateImage(Fe,null,V,M,ke),Fe&&i.isImageReady(Fe)&&Q.drawImage(Fe,ee,se,ye,he)}if(Pe&&Ue)if(P(Q,"lineWidth",Pe),P(Q,"strokeStyle",Ue),G.strokeOpacity!=null){var ht=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=ht}else Q.stroke()}function M(V,Q){Q.image=V}function U(V,Q,G,ee){var se=G.x||0,ye=G.y||0,he=G.textAlign,ke=G.textVerticalAlign;if(ee){var Pe=G.textPosition;if(Pe instanceof Array)se=ee.x+j(Pe[0],ee.width),ye=ee.y+j(Pe[1],ee.height);else{var Ue=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,ee):u.calculateTextPosition(g,G,ee);se=Ue.x,ye=Ue.y,he=he||Ue.textAlign,ke=ke||Ue.textVerticalAlign}var $e=G.textOffset;$e&&(se+=$e[0],ye+=$e[1])}return V=V||{},V.baseX=se,V.baseY=ye,V.textAlign=he,V.textVerticalAlign=ke,V}function P(V,Q,G){return V[Q]=t(V,Q,G),V[Q]}function X(V,Q){return V==null||Q<=0||V==="transparent"||V==="none"?null:V.image||V.colorStops?"#000":V}function F(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function j(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function K(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function z(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}L.normalizeTextStyle=b,L.renderText=E,L.getBoxPosition=U,L.getStroke=X,L.getFill=F,L.parsePercent=j,L.needDrawText=z},"q/+u":function(R,L,r){var y=r("ProS"),f=r("9wZj"),x=r("yWXo"),A=r("h8O9");y.extendChartView({type:"scatter",render:function(m,p,d){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.updateData(u,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,p,d){var u=m.getData(),a=this._updateSymbolDraw(u,m);a.incrementalPrepareUpdate(u),this._finished=!1},incrementalRender:function(m,p,d){this._symbolDraw.incrementalUpdate(m,p.getData(),{clipShape:this._getClipShape(p)}),this._finished=m.end===p.getData().count()},updateTransform:function(m,p,d){var u=m.getData();if(this.group.dirty(),!this._finished||u.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=A().reset(m);a.progress&&a.progress({start:0,end:u.count()},u),this._symbolDraw.updateLayout(u)},_getClipShape:function(m){var p=m.coordinateSystem,d=p&&p.getArea&&p.getArea();return m.get("clip",!0)?d:null},_updateSymbolDraw:function(m,p){var d=this._symbolDraw,u=p.pipelineContext,a=u.large;return(!d||a!==this._isLargeDraw)&&(d&&d.remove(),d=this._symbolDraw=a?new x:new f,this._isLargeDraw=a,this.group.removeAll()),this.group.add(d.group),d},remove:function(m,p){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(R,L){var r=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(f,x,A){var m=f.getModel("itemStyle"),p=f.getModel("lineStyle"),d=x.get("color"),u=p.get("color")||m.get("color")||d[f.seriesIndex%d.length],a=f.get("inactiveOpacity"),i=f.get("activeOpacity"),t=f.getModel("lineStyle").getLineStyle(),s=f.coordinateSystem,e=f.getData(),l={normal:t.opacity,active:i,inactive:a};e.setVisual("color",u);function n(o,c){s.eachActiveState(c,function(h,g){var v=l[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(r,!0);b!=null&&(v=b)}c.setItemVisual(g,"opacity",v)},o.start,o.end)}return{progress:n}}};R.exports=y},q3R3:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("s2MQ")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="EyeInvisibleOutlined";var i=A.forwardRef(a);L.default=i},q4HE:function(R,L){var r="\\ud800-\\udfff",y="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+f+x,m="\\ufe0e\\ufe0f",p="["+r+"]",d="["+A+"]",u="\\ud83c[\\udffb-\\udfff]",a="(?:"+d+"|"+u+")",i="[^"+r+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=a+"?",n="["+m+"]?",o="(?:"+e+"(?:"+[i,t,s].join("|")+")"+n+l+")*",c=n+l+o,h="(?:"+[i+d+"?",d,t,s,p].join("|")+")",g=RegExp(u+"(?="+u+")|"+h+c,"g");function v(b){for(var S=g.lastIndex=0;g.test(b);)++S;return S}R.exports=v},q7KB:function(R,L,r){},qBft:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(x,A){var m=x.sigBytes,p=A*4,d=p-m%p,u=m+d-1;x.clamp(),x.words[u>>>2]|=d<<24-u%4*8,x.sigBytes+=d},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}},y.pad.Ansix923})},qD15:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("tVnJ"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},qH13:function(R,L,r){var y=r("ItGF"),f=r("QBsz"),x=f.applyTransform,A=r("mFDi"),m=r("Qe9p"),p=r("6GrX"),d=r("pzxd"),u=r("ni6a"),a=r("Gev7"),i=r("Dagg"),t=r("dqUG"),s=r("y+Vt"),e=r("IMiH"),l=r("QuXc"),n=r("06Qe"),o=e.CMD,c=Math.round,h=Math.sqrt,g=Math.abs,v=Math.cos,b=Math.sin,S=Math.max;if(!y.canvasSupported){var E=",",C="progid:DXImageTransform.Microsoft",_=21600,T=_/2,w=1e5,O=1e3,I=function(de){de.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",de.coordsize=_+","+_,de.coordorigin="0,0"},k=function(de){return String(de).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},M=function(de,we,Ce){return"rgb("+[de,we,Ce].join(",")+")"},U=function(de,we){we&&de&&we.parentNode!==de&&de.appendChild(we)},P=function(de,we){we&&de&&we.parentNode===de&&de.removeChild(we)},X=function(de,we,Ce){return(parseFloat(de)||0)*w+(parseFloat(we)||0)*O+Ce},F=d.parsePercent,j=function(de,we,Ce){var Se=m.parse(we);Ce=+Ce,isNaN(Ce)&&(Ce=1),Se&&(de.color=M(Se[0],Se[1],Se[2]),de.opacity=Ce*Se[3])},K=function(de){var we=m.parse(de);return[M(we[0],we[1],we[2]),we[3]]},z=function(de,we,Ce){var Se=we.fill;if(Se!=null)if(Se instanceof l){var le,pe=0,_e=[0,0],tt=0,gt=1,ct=Ce.getBoundingRect(),je=ct.width,Zt=ct.height;if(Se.type==="linear"){le="gradient";var ut=Ce.transform,Ht=[Se.x*je,Se.y*Zt],dr=[Se.x2*je,Se.y2*Zt];ut&&(x(Ht,Ht,ut),x(dr,dr,ut));var Vt=dr[0]-Ht[0],Mt=dr[1]-Ht[1];pe=Math.atan2(Vt,Mt)*180/Math.PI,pe<0&&(pe+=360),pe<1e-6&&(pe=0)}else{le="gradientradial";var Ht=[Se.x*je,Se.y*Zt],ut=Ce.transform,Gt=Ce.scale,Ve=je,me=Zt;_e=[(Ht[0]-ct.x)/Ve,(Ht[1]-ct.y)/me],ut&&x(Ht,Ht,ut),Ve/=Gt[0]*_,me/=Gt[1]*_;var te=S(Ve,me);tt=2*0/te,gt=2*Se.r/te-tt}var Ze=Se.colorStops.slice();Ze.sort(function(Bt,ft){return Bt.offset-ft.offset});for(var Xe=Ze.length,ue=[],St=[],Qt=0;Qt<Xe;Qt++){var dt=Ze[Qt],Jt=K(dt.color);St.push(dt.offset*gt+tt+" "+Jt[0]),(Qt===0||Qt===Xe-1)&&ue.push(Jt)}if(Xe>=2){var $t=ue[0][0],tn=ue[1][0],kt=ue[0][1]*we.opacity,tr=ue[1][1]*we.opacity;de.type=le,de.method="none",de.focus="100%",de.angle=pe,de.color=$t,de.color2=tn,de.colors=St.join(","),de.opacity=tr,de.opacity2=kt}le==="radial"&&(de.focusposition=_e.join(","))}else j(de,Se,we.opacity)},V=function(de,we){we.lineDash&&(de.dashstyle=we.lineDash.join(" ")),we.stroke!=null&&!(we.stroke instanceof l)&&j(de,we.stroke,we.opacity)},Q=function(de,we,Ce,Se){var le=we==="fill",pe=de.getElementsByTagName(we)[0];Ce[we]!=null&&Ce[we]!=="none"&&(le||!le&&Ce.lineWidth)?(de[le?"filled":"stroked"]="true",Ce[we]instanceof l&&P(de,pe),pe||(pe=n.createNode(we)),le?z(pe,Ce,Se):V(pe,Ce),U(de,pe)):(de[le?"filled":"stroked"]="false",P(de,pe))},G=[[],[],[]],ee=function(de,we){var Ce=o.M,Se=o.C,le=o.L,pe=o.A,_e=o.Q,tt=[],gt,ct,je,Zt,ut,Ht,dr=de.data,Vt=de.len();for(Zt=0;Zt<Vt;){je=dr[Zt++],ct="",gt=0;switch(je){case Ce:ct=" m ",gt=1,ut=dr[Zt++],Ht=dr[Zt++],G[0][0]=ut,G[0][1]=Ht;break;case le:ct=" l ",gt=1,ut=dr[Zt++],Ht=dr[Zt++],G[0][0]=ut,G[0][1]=Ht;break;case _e:case Se:ct=" c ",gt=3;var Mt=dr[Zt++],Gt=dr[Zt++],Ve=dr[Zt++],me=dr[Zt++],te,Ze;je===_e?(te=Ve,Ze=me,Ve=(Ve+2*Mt)/3,me=(me+2*Gt)/3,Mt=(ut+2*Mt)/3,Gt=(Ht+2*Gt)/3):(te=dr[Zt++],Ze=dr[Zt++]),G[0][0]=Mt,G[0][1]=Gt,G[1][0]=Ve,G[1][1]=me,G[2][0]=te,G[2][1]=Ze,ut=te,Ht=Ze;break;case pe:var Xe=0,ue=0,St=1,Qt=1,dt=0;we&&(Xe=we[4],ue=we[5],St=h(we[0]*we[0]+we[1]*we[1]),Qt=h(we[2]*we[2]+we[3]*we[3]),dt=Math.atan2(-we[1]/Qt,we[0]/St));var Jt=dr[Zt++],$t=dr[Zt++],tn=dr[Zt++],kt=dr[Zt++],tr=dr[Zt++]+dt,Bt=dr[Zt++]+tr+dt;Zt++;var ft=dr[Zt++],it=Jt+v(tr)*tn,Or=$t+b(tr)*kt,Mt=Jt+v(Bt)*tn,Gt=$t+b(Bt)*kt,an=ft?" wa ":" at ";Math.abs(it-Mt)<1e-4&&(Math.abs(Bt-tr)>.01?ft&&(it+=270/_):Math.abs(Or-$t)<1e-4?ft&&it<Jt||!ft&&it>Jt?Gt-=270/_:Gt+=270/_:ft&&Or<$t||!ft&&Or>$t?Mt+=270/_:Mt-=270/_),tt.push(an,c(((Jt-tn)*St+Xe)*_-T),E,c((($t-kt)*Qt+ue)*_-T),E,c(((Jt+tn)*St+Xe)*_-T),E,c((($t+kt)*Qt+ue)*_-T),E,c((it*St+Xe)*_-T),E,c((Or*Qt+ue)*_-T),E,c((Mt*St+Xe)*_-T),E,c((Gt*Qt+ue)*_-T)),ut=Mt,Ht=Gt;break;case o.R:var En=G[0],Bn=G[1];En[0]=dr[Zt++],En[1]=dr[Zt++],Bn[0]=En[0]+dr[Zt++],Bn[1]=En[1]+dr[Zt++],we&&(x(En,En,we),x(Bn,Bn,we)),En[0]=c(En[0]*_-T),Bn[0]=c(Bn[0]*_-T),En[1]=c(En[1]*_-T),Bn[1]=c(Bn[1]*_-T),tt.push(" m ",En[0],E,En[1]," l ",Bn[0],E,En[1]," l ",Bn[0],E,Bn[1]," l ",En[0],E,Bn[1]);break;case o.Z:tt.push(" x ")}if(gt>0){tt.push(ct);for(var vi=0;vi<gt;vi++){var Ln=G[vi];we&&x(Ln,Ln,we),tt.push(c(Ln[0]*_-T),E,c(Ln[1]*_-T),vi<gt-1?E:"")}}}return tt.join("")};s.prototype.brushVML=function($){var de=this.style,we=this._vmlEl;we||(we=n.createNode("shape"),I(we),this._vmlEl=we),Q(we,"fill",de,this),Q(we,"stroke",de,this);var Ce=this.transform,Se=Ce!=null,le=we.getElementsByTagName("stroke")[0];if(le){var pe=de.lineWidth;if(Se&&!de.strokeNoScale){var _e=Ce[0]*Ce[3]-Ce[1]*Ce[2];pe*=h(g(_e))}le.weight=pe+"px"}var tt=this.path||(this.path=new e);this.__dirtyPath&&(tt.beginPath(),tt.subPixelOptimize=!1,this.buildPath(tt,this.shape),tt.toStatic(),this.__dirtyPath=!1),we.path=ee(tt,this.transform),we.style.zIndex=X(this.zlevel,this.z,this.z2),U($,we),de.text!=null?this.drawRectText($,this.getBoundingRect()):this.removeRectText($)},s.prototype.onRemove=function($){P($,this._vmlEl),this.removeRectText($)},s.prototype.onAdd=function($){U($,this._vmlEl),this.appendRectText($)};var se=function(de){return typeof de=="object"&&de.tagName&&de.tagName.toUpperCase()==="IMG"};i.prototype.brushVML=function($){var de=this.style,we=de.image,Ce,Se;if(se(we)){var le=we.src;if(le===this._imageSrc)Ce=this._imageWidth,Se=this._imageHeight;else{var pe=we.runtimeStyle,_e=pe.width,tt=pe.height;pe.width="auto",pe.height="auto",Ce=we.width,Se=we.height,pe.width=_e,pe.height=tt,this._imageSrc=le,this._imageWidth=Ce,this._imageHeight=Se}we=le}else we===this._imageSrc&&(Ce=this._imageWidth,Se=this._imageHeight);if(!we)return;var gt=de.x||0,ct=de.y||0,je=de.width,Zt=de.height,ut=de.sWidth,Ht=de.sHeight,dr=de.sx||0,Vt=de.sy||0,Mt=ut&&Ht,Gt=this._vmlEl;Gt||(Gt=n.doc.createElement("div"),I(Gt),this._vmlEl=Gt);var Ve=Gt.style,me=!1,te,Ze=1,Xe=1;if(this.transform&&(te=this.transform,Ze=h(te[0]*te[0]+te[1]*te[1]),Xe=h(te[2]*te[2]+te[3]*te[3]),me=te[1]||te[2]),me){var ue=[gt,ct],St=[gt+je,ct],Qt=[gt,ct+Zt],dt=[gt+je,ct+Zt];x(ue,ue,te),x(St,St,te),x(Qt,Qt,te),x(dt,dt,te);var Jt=S(ue[0],St[0],Qt[0],dt[0]),$t=S(ue[1],St[1],Qt[1],dt[1]),tn=[];tn.push("M11=",te[0]/Ze,E,"M12=",te[2]/Xe,E,"M21=",te[1]/Ze,E,"M22=",te[3]/Xe,E,"Dx=",c(gt*Ze+te[4]),E,"Dy=",c(ct*Xe+te[5])),Ve.padding="0 "+c(Jt)+"px "+c($t)+"px 0",Ve.filter=C+".Matrix("+tn.join("")+", SizingMethod=clip)"}else te&&(gt=gt*Ze+te[4],ct=ct*Xe+te[5]),Ve.filter="",Ve.left=c(gt)+"px",Ve.top=c(ct)+"px";var kt=this._imageEl,tr=this._cropEl;kt||(kt=n.doc.createElement("div"),this._imageEl=kt);var Bt=kt.style;if(Mt){if(Ce&&Se)Bt.width=c(Ze*Ce*je/ut)+"px",Bt.height=c(Xe*Se*Zt/Ht)+"px";else{var ft=new Image,it=this;ft.onload=function(){ft.onload=null,Ce=ft.width,Se=ft.height,Bt.width=c(Ze*Ce*je/ut)+"px",Bt.height=c(Xe*Se*Zt/Ht)+"px",it._imageWidth=Ce,it._imageHeight=Se,it._imageSrc=we},ft.src=we}tr||(tr=n.doc.createElement("div"),tr.style.overflow="hidden",this._cropEl=tr);var Or=tr.style;Or.width=c((je+dr*je/ut)*Ze),Or.height=c((Zt+Vt*Zt/Ht)*Xe),Or.filter=C+".Matrix(Dx="+-dr*je/ut*Ze+",Dy="+-Vt*Zt/Ht*Xe+")",tr.parentNode||Gt.appendChild(tr),kt.parentNode!==tr&&tr.appendChild(kt)}else Bt.width=c(Ze*je)+"px",Bt.height=c(Xe*Zt)+"px",Gt.appendChild(kt),tr&&tr.parentNode&&(Gt.removeChild(tr),this._cropEl=null);var an="",En=de.opacity;En<1&&(an+=".Alpha(opacity="+c(En*100)+") "),an+=C+".AlphaImageLoader(src="+we+", SizingMethod=scale)",Bt.filter=an,Gt.style.zIndex=X(this.zlevel,this.z,this.z2),U($,Gt),de.text!=null&&this.drawRectText($,this.getBoundingRect())},i.prototype.onRemove=function($){P($,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText($)},i.prototype.onAdd=function($){U($,this._vmlEl),this.appendRectText($)};var ye="normal",he={},ke=0,Pe=100,Ue=document.createElement("div"),$e=function(de){var we=he[de];if(!we){ke>Pe&&(ke=0,he={});var Ce=Ue.style,Se;try{Ce.font=de,Se=Ce.fontFamily.split(",")[0]}catch(le){}we={style:Ce.fontStyle||ye,variant:Ce.fontVariant||ye,weight:Ce.fontWeight||ye,size:parseFloat(Ce.fontSize||12)|0,family:Se||"Microsoft YaHei"},he[de]=we,ke++}return we},Ge;p.$override("measureText",function($,de){var we=n.doc;Ge||(Ge=we.createElement("div"),Ge.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",n.doc.body.appendChild(Ge));try{Ge.style.font=de}catch(Ce){}return Ge.innerHTML="",Ge.appendChild(we.createTextNode($)),{width:Ge.offsetWidth}});for(var ht=new A,Fe=function(de,we,Ce,Se){var le=this.style;this.__dirty&&d.normalizeTextStyle(le,!0);var pe=le.text;if(pe!=null&&(pe+=""),!pe)return;if(le.rich){var _e=p.parseRichText(pe,le);pe=[];for(var tt=0;tt<_e.lines.length;tt++){for(var gt=_e.lines[tt].tokens,ct=[],je=0;je<gt.length;je++)ct.push(gt[je].text);pe.push(ct.join(""))}pe=pe.join(`
`)}var Zt,ut,Ht=le.textAlign,dr=le.textVerticalAlign,Vt=$e(le.font),Mt=Vt.style+" "+Vt.variant+" "+Vt.weight+" "+Vt.size+'px "'+Vt.family+'"';Ce=Ce||p.getBoundingRect(pe,Mt,Ht,dr,le.textPadding,le.textLineHeight);var Gt=this.transform;if(Gt&&!Se&&(ht.copy(we),ht.applyTransform(Gt),we=ht),Se)Zt=we.x,ut=we.y;else{var Ve=le.textPosition;if(Ve instanceof Array)Zt=we.x+F(Ve[0],we.width),ut=we.y+F(Ve[1],we.height),Ht=Ht||"left";else{var me=this.calculateTextPosition?this.calculateTextPosition({},le,we):p.calculateTextPosition({},le,we);Zt=me.x,ut=me.y,Ht=Ht||me.textAlign,dr=dr||me.textVerticalAlign}}Zt=p.adjustTextX(Zt,Ce.width,Ht),ut=p.adjustTextY(ut,Ce.height,dr),ut+=Ce.height/2;var te=n.createNode,Ze=this._textVmlEl,Xe,ue,St;Ze?(St=Ze.firstChild,Xe=St.nextSibling,ue=Xe.nextSibling):(Ze=te("line"),Xe=te("path"),ue=te("textpath"),St=te("skew"),ue.style["v-text-align"]="left",I(Ze),Xe.textpathok=!0,ue.on=!0,Ze.from="0 0",Ze.to="1000 0.05",U(Ze,St),U(Ze,Xe),U(Ze,ue),this._textVmlEl=Ze);var Qt=[Zt,ut],dt=Ze.style;Gt&&Se?(x(Qt,Qt,Gt),St.on=!0,St.matrix=Gt[0].toFixed(3)+E+Gt[2].toFixed(3)+E+Gt[1].toFixed(3)+E+Gt[3].toFixed(3)+",0,0",St.offset=(c(Qt[0])||0)+","+(c(Qt[1])||0),St.origin="0 0",dt.left="0px",dt.top="0px"):(St.on=!1,dt.left=c(Zt)+"px",dt.top=c(ut)+"px"),ue.string=k(pe);try{ue.style.font=Mt}catch(Jt){}Q(Ze,"fill",{fill:le.textFill,opacity:le.opacity},this),Q(Ze,"stroke",{stroke:le.textStroke,opacity:le.opacity,lineDash:le.lineDash||null},this),Ze.style.zIndex=X(this.zlevel,this.z,this.z2),U(de,Ze)},oe=function(de){P(de,this._textVmlEl),this._textVmlEl=null},rt=function(de){U(de,this._textVmlEl)},fe=[u,a,i,s,t],J=0;J<fe.length;J++){var Y=fe[J].prototype;Y.drawRectText=Fe,Y.removeRectText=oe,Y.appendRectText=rt}t.prototype.brushVML=function($){var de=this.style;de.text!=null?this.drawRectText($,{x:de.x||0,y:de.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText($)},t.prototype.onRemove=function($){this.removeRectText($)},t.prototype.onAdd=function($){this.appendRectText($)}}},qJCg:function(R,L,r){var y=r("BlVb"),f=r("mFDi"),x=r("IwbS"),A=x.linePolygonIntersect,m={lineX:p(0),lineY:p(1),rect:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])},rect:function(a,i,t){return a&&t.boundingRect.intersect(a)}},polygon:{point:function(a,i,t){return a&&t.boundingRect.contain(a[0],a[1])&&y.contain(t.range,a[0],a[1])},rect:function(a,i,t){var s=t.range;if(!a||s.length<=1)return!1;var e=a.x,l=a.y,n=a.width,o=a.height,c=s[0];if(y.contain(s,e,l)||y.contain(s,e+n,l)||y.contain(s,e,l+o)||y.contain(s,e+n,l+o)||f.create(a).contain(c[0],c[1])||A(e,l,e+n,l,s)||A(e,l,e,l+o,s)||A(e+n,l,e+n,l+o,s)||A(e,l+o,e+n,l+o,s))return!0}}};function p(a){var i=["x","y"],t=["width","height"];return{point:function(s,e,l){if(s){var n=l.range,o=s[a];return d(o,n)}},rect:function(s,e,l){if(s){var n=l.range,o=[s[i[a]],s[i[a]]+s[t[a]]];return o[1]<o[0]&&o.reverse(),d(o[0],n)||d(o[1],n)||d(n[0],o)||d(n[1],o)}}}}function d(a,i){return i[0]<=a&&a<=i[1]}var u=m;R.exports=u},qM6L:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=f.enc,p=m.Utf16=m.Utf16BE={stringify:function(a){for(var i=a.words,t=a.sigBytes,s=[],e=0;e<t;e+=2){var l=i[e>>>2]>>>16-e%4*8&65535;s.push(String.fromCharCode(l))}return s.join("")},parse:function(a){for(var i=a.length,t=[],s=0;s<i;s++)t[s>>>1]|=a.charCodeAt(s)<<16-s%2*16;return A.create(t,i*2)}};m.Utf16LE={stringify:function(a){for(var i=a.words,t=a.sigBytes,s=[],e=0;e<t;e+=2){var l=d(i[e>>>2]>>>16-e%4*8&65535);s.push(String.fromCharCode(l))}return s.join("")},parse:function(a){for(var i=a.length,t=[],s=0;s<i;s++)t[s>>>1]|=d(a.charCodeAt(s)<<16-s%2*16);return A.create(t,i*2)}};function d(u){return u<<8&4278255360|u>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(R,L,r){var y=r("JEkh"),f=y.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});R.exports=f},qOx5:function(R,L,r){"use strict";r.d(L,"a",function(){return p});var y=r("Kwbf");function f(d,u){var a=new Set;return d.forEach(function(i){u.has(i)||a.add(i)}),a}function x(d){var u=d||{},a=u.disabled,i=u.disableCheckbox,t=u.checkable;return!!(a||i)||t===!1}function A(d,u,a,i){for(var t=new Set(d),s=new Set,e=0;e<=a;e+=1){var l=u.get(e)||new Set;l.forEach(function(h){var g=h.key,v=h.node,b=h.children,S=b===void 0?[]:b;t.has(g)&&!i(v)&&S.filter(function(E){return!i(E.node)}).forEach(function(E){t.add(E.key)})})}for(var n=new Set,o=a;o>=0;o-=1){var c=u.get(o)||new Set;c.forEach(function(h){var g=h.parent,v=h.node;if(i(v)||!h.parent||n.has(h.parent.key))return;if(i(h.parent.node)){n.add(g.key);return}var b=!0,S=!1;(g.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var C=E.key,_=t.has(C);b&&!_&&(b=!1),!S&&(_||s.has(C))&&(S=!0)}),b&&t.add(g.key),S&&s.add(g.key),n.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(f(s,t))}}function m(d,u,a,i,t){for(var s=new Set(d),e=new Set(u),l=0;l<=i;l+=1){var n=a.get(l)||new Set;n.forEach(function(g){var v=g.key,b=g.node,S=g.children,E=S===void 0?[]:S;!s.has(v)&&!e.has(v)&&!t(b)&&E.filter(function(C){return!t(C.node)}).forEach(function(C){s.delete(C.key)})})}e=new Set;for(var o=new Set,c=i;c>=0;c-=1){var h=a.get(c)||new Set;h.forEach(function(g){var v=g.parent,b=g.node;if(t(b)||!g.parent||o.has(g.parent.key))return;if(t(g.parent.node)){o.add(v.key);return}var S=!0,E=!1;(v.children||[]).filter(function(C){return!t(C.node)}).forEach(function(C){var _=C.key,T=s.has(_);S&&!T&&(S=!1),!E&&(T||e.has(_))&&(E=!0)}),S||s.delete(v.key),E&&e.add(v.key),o.add(v.key)})}return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(f(e,s))}}function p(d,u,a,i){var t=[],s;i?s=i:s=x;var e=new Set(d.filter(function(c){var h=!!a[c];return h||t.push(c),h})),l=new Map,n=0;Object.keys(a).forEach(function(c){var h=a[c],g=h.level,v=l.get(g);v||(v=new Set,l.set(g,v)),v.add(h),n=Math.max(n,g)}),Object(y.a)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(c){return"'".concat(c,"'")}).join(", ")));var o;return u===!0?o=A(e,l,n,s):o=m(e,u.halfCheckedKeys,l,n,s),o}},qRkn:function(R,L,r){var y=r("3cYt"),f={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},x=y(f);R.exports=x},qWt2:function(R,L,r){var y=r("ProS"),f=y.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});R.exports=f},qZFw:function(R,L,r){var y=r("bYtY"),f=r("6GrX"),x=r("hM6l"),A=r("4NO4"),m=A.makeInner,p=m();function d(a,i){i=i||[0,360],x.call(this,"angle",a,i),this.type="category"}d.prototype={constructor:d,pointToData:function(a,i){return this.polar.pointToData(a,i)[this.dim==="radius"?0:1]},dataToAngle:x.prototype.dataToCoord,angleToData:x.prototype.coordToData,calculateCategoryInterval:function(){var a=this,i=a.getLabelModel(),t=a.scale,s=t.getExtent(),e=t.count();if(s[1]-s[0]<1)return 0;var l=s[0],n=a.dataToCoord(l+1)-a.dataToCoord(l),o=Math.abs(n),c=f.getBoundingRect(l,i.getFont(),"center","top"),h=Math.max(c.height,7),g=h/o;isNaN(g)&&(g=Infinity);var v=Math.max(0,Math.floor(g)),b=p(a.model),S=b.lastAutoInterval,E=b.lastTickCount;return S!=null&&E!=null&&Math.abs(S-v)<=1&&Math.abs(E-e)<=1&&S>v?v=S:(b.lastTickCount=e,b.lastAutoInterval=v),v}},y.inherits(d,x);var u=d;R.exports=u},qZTm:function(R,L,r){var y=r("fR/l"),f=r("MvSz"),x=r("7GkX");function A(m){return y(m,x,f)}R.exports=A},qgGe:function(R,L,r){var y=r("bYtY"),f=r("T4UG"),x=r("Bsck"),A=r("VaxA"),m=A.wrapTreePathInfo,p=f.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(u,a){var i={name:u.name,children:u.data};d(i);var t=u.levels||[],s={};return s.levels=t,x.createTree(i,this,s).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(u){var a=f.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(u);return a.treePathInfo=m(i,this),a},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(u){u?this._viewRoot=u:u=this._viewRoot;var a=this.getRawData().tree.root;(!u||u!==a&&!a.contains(u))&&(this._viewRoot=a)}});function d(u){var a=0;y.each(u.children,function(t){d(t);var s=t.value;y.isArray(s)&&(s=s[0]),a+=s});var i=u.value;y.isArray(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),y.isArray(u.value)?u.value[0]=i:u.value=i}R.exports=p},qj72:function(R,L,r){var y=r("bYtY");function f(A,m){return m=m||[0,0],y.map(["x","y"],function(p,d){var u=this.getAxis(p),a=m[d],i=A[d]/2;return u.type==="category"?u.getBandWidth():Math.abs(u.dataToCoord(a-i)-u.dataToCoord(a+i))},this)}function x(A){var m=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(p){return A.dataToPoint(p)},size:y.bind(f,A)}}}R.exports=x},"qt/9":function(R,L,r){var y=r("ProS"),f=r("bYtY");r("Wqna"),r("1tlw"),r("Mylv");var x=r("nVfU"),A=x.layout,m=r("f5Yq");r("Ae16"),y.registerLayout(f.curry(A,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return y.mode.CTRGladman=function(){var f=y.lib.BlockCipherMode.extend();function x(p){if((p>>24&255)===255){var d=p>>16&255,u=p>>8&255,a=p&255;d===255?(d=0,u===255?(u=0,a===255?a=0:++a):++u):++d,p=0,p+=d<<16,p+=u<<8,p+=a}else p+=1<<24;return p}function A(p){return(p[0]=x(p[0]))===0&&(p[1]=x(p[1])),p}var m=f.Encryptor=f.extend({processBlock:function(d,u){var a=this._cipher,i=a.blockSize,t=this._iv,s=this._counter;t&&(s=this._counter=t.slice(0),this._iv=void 0),A(s);var e=s.slice(0);a.encryptBlock(e,0);for(var l=0;l<i;l++)d[u+l]^=e[l]}});return f.Decryptor=m,f}(),y.mode.CTRGladman})},quyA:function(R,L){var r="\\ud800-\\udfff",y="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",x="\\u20d0-\\u20ff",A=y+f+x,m="\\ufe0e\\ufe0f",p="\\u200d",d=RegExp("["+p+r+A+m+"]");function u(a){return d.test(a)}R.exports=u},qwVE:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("K4ya"),A=r("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var a=[];return u.eachComponent("visualMap",function(i){var t=d.pipelineContext;if(!i.isTargetSeries(d)||t&&t.large)return;a.push(x.incrementalApplyVisual(i.stateList,i.targetVisuals,f.bind(i.getValueState,i),i.getDataDimension(d.getData())))}),a}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,u){var a=d.getData(),i=[];u.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var s=t.getVisualMeta(f.bind(p,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(a),l=a.getDimensionInfo(e);l!=null&&(s.dimension=l.index,i.push(s))}}),d.getData().setVisual("visualMeta",i)}});function p(d,u,a,i){for(var t=u.targetVisuals[i],s=A.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},l=0,n=s.length;l<n;l++){var o=s[l],c=t[o==="opacity"?"__alphaForOpacity":o];c&&c.applyVisual(a,h,g)}return e.color;function h(v){return e[v]}function g(v,b){e[v]=b}}},r6Bn:function(R,L,r){var y=r("bYtY"),f=r("ItGF"),x=r("4fz+"),A=r("BPZU");function m(u,a){return u.zlevel===a.zlevel?u.z===a.z?u.z2-a.z2:u.z-a.z:u.zlevel-a.zlevel}var p=function(){this._roots=[],this._displayList=[],this._displayListLen=0};p.prototype={constructor:p,traverse:function(a,i){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(a,i)},getDisplayList:function(a,i){return i=i||!1,a&&this.updateDisplayList(i),this._displayList},updateDisplayList:function(a){this._displayListLen=0;for(var i=this._roots,t=this._displayList,s=0,e=i.length;s<e;s++)this._updateAndAddDisplayable(i[s],null,a);t.length=this._displayListLen,f.canvasSupported&&A(t,m)},_updateAndAddDisplayable:function(a,i,t){if(a.ignore&&!t)return;a.beforeUpdate(),a.__dirty&&a.update(),a.afterUpdate();var s=a.clipPath;if(s){i?i=i.slice():i=[];for(var e=s,l=a;e;)e.parent=l,e.updateTransform(),i.push(e),l=e,e=e.clipPath}if(a.isGroup){for(var n=a._children,o=0;o<n.length;o++){var c=n[o];a.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,i,t)}a.__dirty=!1}else a.__clipPaths=i,this._displayList[this._displayListLen++]=a},addRoot:function(a){if(a.__storage===this)return;a instanceof x&&a.addChildrenToStorage(this),this.addToStorage(a),this._roots.push(a)},delRoot:function(a){if(a==null){for(var i=0;i<this._roots.length;i++){var t=this._roots[i];t instanceof x&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(a instanceof Array){for(var i=0,s=a.length;i<s;i++)this.delRoot(a[i]);return}var e=y.indexOf(this._roots,a);e>=0&&(this.delFromStorage(a),this._roots.splice(e,1),a instanceof x&&a.delChildrenFromStorage(this))},addToStorage:function(a){return a&&(a.__storage=this,a.dirty(!1)),this},delFromStorage:function(a){return a&&(a.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var d=p;R.exports=d},r9UT:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("2oIt")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="UpOutlined";var i=A.forwardRef(a);L.default=i},rA99:function(R,L,r){var y=r("y+Vt"),f=r("QBsz"),x=r("Sj9i"),A=x.quadraticSubdivide,m=x.cubicSubdivide,p=x.quadraticAt,d=x.cubicAt,u=x.quadraticDerivativeAt,a=x.cubicDerivativeAt,i=[];function t(e,l,n){var o=e.cpx2,c=e.cpy2;return o===null||c===null?[(n?a:d)(e.x1,e.cpx1,e.cpx2,e.x2,l),(n?a:d)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(n?u:p)(e.x1,e.cpx1,e.x2,l),(n?u:p)(e.y1,e.cpy1,e.y2,l)]}var s=y.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,n){var o=n.x1,c=n.y1,h=n.x2,g=n.y2,v=n.cpx1,b=n.cpy1,S=n.cpx2,E=n.cpy2,C=n.percent;if(C===0)return;l.moveTo(o,c),S==null||E==null?(C<1&&(A(o,v,h,C,i),v=i[1],h=i[2],A(c,b,g,C,i),b=i[1],g=i[2]),l.quadraticCurveTo(v,b,h,g)):(C<1&&(m(o,v,S,h,C,i),v=i[1],S=i[2],h=i[3],m(c,b,E,g,C,i),b=i[1],E=i[2],g=i[3]),l.bezierCurveTo(v,b,S,E,h,g))},pointAt:function(l){return t(this.shape,l,!1)},tangentAt:function(l){var n=t(this.shape,l,!0);return f.normalize(n,n)}});R.exports=s},"rAM+":function(R,L,r){"use strict";r.d(L,"a",function(){return f});var y=r("Qw5x");function f(x,A){var m;if(typeof Symbol=="undefined"||x[Symbol.iterator]==null){if(Array.isArray(x)||(m=Object(y.a)(x))||A&&x&&typeof x.length=="number"){m&&(x=m);var p=0,d=function(){};return{s:d,n:function(){return p>=x.length?{done:!0}:{done:!1,value:x[p++]}},e:function(s){throw s},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,a=!1,i;return{s:function(){m=x[Symbol.iterator]()},n:function(){var s=m.next();return u=s.done,s},e:function(s){a=!0,i=s},f:function(){try{!u&&m.return!=null&&m.return()}finally{if(a)throw i}}}}},rBdH:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("5yev")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="RedoOutlined";var i=A.forwardRef(a);L.default=i},rEGp:function(R,L){function r(y){var f=-1,x=Array(y.size);return y.forEach(function(A){x[++f]=A}),x}R.exports=r},rHrb:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.CopyToClipboard=void 0;var y=x(r("q1tI")),f=x(r("+QRC"));function x(g){return g&&g.__esModule?g:{default:g}}function A(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(b){return typeof b}:A=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},A(g)}function m(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(g);v&&(S=S.filter(function(E){return Object.getOwnPropertyDescriptor(g,E).enumerable})),b.push.apply(b,S)}return b}function p(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?m(b,!0).forEach(function(S){c(g,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(S){Object.defineProperty(g,S,Object.getOwnPropertyDescriptor(b,S))})}return g}function d(g,v){if(g==null)return{};var b=u(g,v),S,E;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);for(E=0;E<C.length;E++){if(S=C[E],v.indexOf(S)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,S))continue;b[S]=g[S]}}return b}function u(g,v){if(g==null)return{};var b={},S=Object.keys(g),E,C;for(C=0;C<S.length;C++){if(E=S[C],v.indexOf(E)>=0)continue;b[E]=g[E]}return b}function a(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function i(g,v){for(var b=0;b<v.length;b++){var S=v[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function t(g,v,b){return v&&i(g.prototype,v),b&&i(g,b),g}function s(g,v){return v&&(A(v)==="object"||typeof v=="function")?v:l(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function n(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),v&&o(g,v)}function o(g,v){return o=Object.setPrototypeOf||function(S,E){return S.__proto__=E,S},o(g,v)}function c(g,v,b){return v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}var h=function(g){n(v,g);function v(){var b,S;a(this,v);for(var E=arguments.length,C=new Array(E),_=0;_<E;_++)C[_]=arguments[_];return S=s(this,(b=e(v)).call.apply(b,[this].concat(C))),c(l(S),"onClick",function(T){var w=S.props,O=w.text,I=w.onCopy,k=w.children,M=w.options,U=y.default.Children.only(k),P=(0,f.default)(O,M);I&&I(O,P),U&&U.props&&typeof U.props.onClick=="function"&&U.props.onClick(T)}),S}return t(v,[{key:"render",value:function(){var S=this.props,E=S.text,C=S.onCopy,_=S.options,T=S.children,w=d(S,["text","onCopy","options","children"]),O=y.default.Children.only(T);return y.default.cloneElement(O,p({},w,{onClick:this.onClick}))}}]),v}(y.default.PureComponent);L.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="ReloadOutlined";var d=L.a=f.forwardRef(p)},rUJ1:function(R,L){var r=/[&<>"']/,y=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,x=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(T){return A[T]};function p(_,T){if(T){if(r.test(_))return _.replace(y,m)}else if(f.test(_))return _.replace(x,m);return _}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(_){return _.replace(d,function(T,w){return w=w.toLowerCase(),w==="colon"?":":w.charAt(0)==="#"?w.charAt(1)==="x"?String.fromCharCode(parseInt(w.substring(2),16)):String.fromCharCode(+w.substring(1)):""})}var a=/(^|[^\[])\^/g;function i(_,T){_=_.source||_,T=T||"";var w={replace:function(I,k){return k=k.source||k,k=k.replace(a,"$1"),_=_.replace(I,k),w},getRegex:function(){return new RegExp(_,T)}};return w}var t=/[^\w:]/g,s=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(_,T,w){if(_){var O;try{O=decodeURIComponent(u(w)).replace(t,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.indexOf("data:")===0)return null}T&&!s.test(w)&&(w=h(T,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},n=/^[^:]+:\/*[^/]*$/,o=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(_,T){l[" "+_]||(n.test(_)?l[" "+_]=_+"/":l[" "+_]=S(_,"/",!0)),_=l[" "+_];var w=_.indexOf(":")===-1;return T.substring(0,2)==="//"?w?T:_.replace(o,"$1")+T:T.charAt(0)==="/"?w?T:_.replace(c,"$1")+T:_+T}var g={exec:function(){}};function v(_){for(var T=1,w,O;T<arguments.length;T++){w=arguments[T];for(O in w)Object.prototype.hasOwnProperty.call(w,O)&&(_[O]=w[O])}return _}function b(_,T){var w=_.replace(/\|/g,function(k,M,U){for(var P=!1,X=M;--X>=0&&U[X]==="\\";)P=!P;return P?"|":" |"}),O=w.split(/ \|/),I=0;if(O.length>T)O.splice(T);else for(;O.length<T;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function S(_,T,w){var O=_.length;if(O===0)return"";for(var I=0;I<O;){var k=_.charAt(O-I-1);if(k===T&&!w)I++;else if(k!==T&&w)I++;else break}return _.substr(0,O-I)}function E(_,T){if(_.indexOf(T[1])===-1)return-1;for(var w=_.length,O=0,I=0;I<w;I++)if(_[I]==="\\")I++;else if(_[I]===T[0])O++;else if(_[I]===T[1]&&(O--,O<0))return I;return-1}function C(_){_&&_.sanitize&&!_.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}R.exports={escape:p,unescape:u,edit:i,cleanUrl:e,resolveUrl:h,noopTest:g,merge:v,splitCells:b,rtrim:S,findClosingBracket:E,checkSanitizeDeprecation:C}},rYzl:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("JgUQ")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="FileOutlined";var i=A.forwardRef(a);L.default=i},rdUC:function(R,L,r){var y=r("MFOe"),f=y.Global;R.exports={name:"localStorage",read:A,write:m,each:p,remove:d,clearAll:u};function x(){return f.localStorage}function A(a){return x().getItem(a)}function m(a,i){return x().setItem(a,i)}function p(a){for(var i=x().length-1;i>=0;i--){var t=x().key(i);a(A(t),t)}}function d(a){return x().removeItem(a)}function u(){return x().clear()}},rdor:function(R,L,r){var y=r("lOQZ"),f=y.circularLayout;function x(A){A.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&f(m,"symbolSize")})}R.exports=x},rfSb:function(R,L,r){var y=r("T4UG"),f=r("sdST"),x=r("L0Ub"),A=x.getDimensionTypeByAxis,m=r("YXkt"),p=r("bYtY"),d=r("4NO4"),u=d.groupData,a=r("7aKB"),i=a.encodeHTML,t=r("xKMd"),s=2,e=y.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(n){e.superApply(this,"init",arguments),this.legendVisualProvider=new t(p.bind(this.getData,this),p.bind(this.getRawData,this))},fixData:function(n){var o=n.length,c=u(n,function(U){return U[2]}),h=[];c.buckets.each(function(U,P){h.push({name:P,dataList:U})});for(var g=h.length,v=-1,b=-1,S=0;S<g;++S){var E=h[S].dataList.length;E>v&&(v=E,b=S)}for(var C=0;C<g;++C){if(C===b)continue;for(var _=h[C].name,T=0;T<v;++T){for(var w=h[b].dataList[T][0],O=h[C].dataList.length,I=-1,k=0;k<O;++k){var M=h[C].dataList[k][0];if(M===w){I=k;break}}I===-1&&(n[o]=[],n[o][0]=w,n[o][1]=0,n[o][2]=_,o++)}}return n},getInitialData:function(n,o){for(var c=o.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],h=c.get("type"),g=p.filter(n.data,function(w){return w[2]!==void 0}),v=this.fixData(g||[]),b=[],S=this.nameMap=p.createHashMap(),E=0,C=0;C<v.length;++C)b.push(v[C][s]),S.get(v[C][s])||(S.set(v[C][s],E),E++);var _=f(v,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),T=new m(_,this);return T.initData(v),T},getLayerSeries:function(){for(var n=this.getData(),o=n.count(),c=[],h=0;h<o;++h)c[h]=h;var g=n.mapDimension("single"),v=u(c,function(S){return n.get("name",S)}),b=[];return v.buckets.each(function(S,E){S.sort(function(C,_){return n.get(g,C)-n.get(g,_)}),b.push({name:E,indices:S})}),b},getAxisTooltipData:function(n,o,c){p.isArray(n)||(n=n?[n]:[]);for(var h=this.getData(),g=this.getLayerSeries(),v=[],b=g.length,S,E=0;E<b;++E){for(var C=Number.MAX_VALUE,_=-1,T=g[E].indices.length,w=0;w<T;++w){var O=h.get(n[0],g[E].indices[w]),I=Math.abs(O-o);I<=C&&(S=O,C=I,_=g[E].indices[w])}v.push(_)}return{dataIndices:v,nestestValue:S}},formatTooltip:function(n){var o=this.getData(),c=o.getName(n),h=o.get(o.mapDimension("value"),n);return(isNaN(h)||h==null)&&(h="-"),i(c+" : "+h)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),l=e;R.exports=l},rkZ5:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("ProS"),A=r("c8qY"),m=r("D9ME"),p=r("fls0"),d=r("RSch"),u=r("akwb"),a=r("o40c"),i=r("ZYIC"),t=r("sK/D"),s=t.createClipPath,e=x.extendChartView({type:"lines",init:function(){},render:function(l,n,o){var c=l.getData(),h=this._updateLineDraw(c,l),g=l.get("zlevel"),v=l.get("effect.trailLength"),b=o.getZr(),S=b.painter.getType()==="svg";S||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!S&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&v&&(S||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),h.updateData(c);var E=l.get("clip",!0)&&s(l.coordinateSystem,!1,l);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},incrementalPrepareRender:function(l,n,o){var c=l.getData(),h=this._updateLineDraw(c,l);h.incrementalPrepareUpdate(c),this._clearLayer(o),this._finished=!1},incrementalRender:function(l,n,o){this._lineDraw.incrementalUpdate(l,n.getData()),this._finished=l.end===n.getData().count()},updateTransform:function(l,n,o){var c=l.getData(),h=l.pipelineContext;if(!this._finished||h.large||h.progressiveRender)return{update:!0};var g=i.reset(l);g.progress&&g.progress({start:0,end:c.count()},c),this._lineDraw.updateLayout(),this._clearLayer(o)},_updateLineDraw:function(l,n){var o=this._lineDraw,c=this._showEffect(n),h=!!n.get("polyline"),g=n.pipelineContext,v=g.large;return(!o||c!==this._hasEffet||h!==this._isPolyline||v!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=v?new a:new A(h?c?u:d:c?m:p),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=v,this.group.removeAll()),this.group.add(o.group),o},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var n=l.getZr(),o=n.painter.getType()==="svg";!o&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},dispose:function(){}});R.exports=e},rmlV:function(R,L,r){var y=r("y+Vt"),f=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,m){var p=.5522848,d=m.cx,u=m.cy,a=m.rx,i=m.ry,t=a*p,s=i*p;A.moveTo(d-a,u),A.bezierCurveTo(d-a,u-s,d-t,u-i,d,u-i),A.bezierCurveTo(d+t,u-i,d+a,u-s,d+a,u),A.bezierCurveTo(d+a,u+s,d+t,u+i,d,u+i),A.bezierCurveTo(d-t,u+i,d-a,u+s,d-a,u),A.closePath()}});R.exports=f},rnVJ:function(R,L,r){var y=r("bYtY"),f=["rect","polygon","keep","clear"];function x(m,p){var d=m&&m.brush;if(y.isArray(d)||(d=d?[d]:[]),!d.length)return;var u=[];y.each(d,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(u=u.concat(l))});var a=m&&m.toolbox;y.isArray(a)&&(a=a[0]),a||(a={feature:{}},m.toolbox=[a]);var i=a.feature||(a.feature={}),t=i.brush||(i.brush={}),s=t.type||(t.type=[]);s.push.apply(s,u),A(s),p&&!s.length&&s.push.apply(s,f)}function A(m){var p={};y.each(m,function(d){p[d]=1}),m.length=0,y.each(p,function(d,u){m.push(u)})}R.exports=x},rwxt:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=r("GdRQ");function f(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function x(d,u){for(var a=0;a<u.length;a++){var i=u[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(d,i.key,i)}}function A(d,u,a){return u&&x(d.prototype,u),a&&x(d,a),d}var m=!y.supportsCursorURIs||y.isTouchDevice,p=function(){function d(){f(this,d),this._target=null,this._canvas=document.createElement("canvas"),m&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(d,[{key:"attach",value:function(a){if(this._target&&this.detach(),this._target=a,m){document.body.appendChild(this._canvas);var i={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,i)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var a={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,a),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,a),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,a),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,a),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(a,i,t,s,e){if(s===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-i,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=i,this._hotSpot.y=t;var l=this._canvas.getContext("2d");this._canvas.width=s,this._canvas.height=e;var n;try{n=new ImageData(new Uint8ClampedArray(a),s,e)}catch(c){n=l.createImageData(s,e),n.data.set(new Uint8ClampedArray(a))}if(l.clearRect(0,0,s,e),l.putImageData(n,0,0),m)this._updatePosition();else{var o=this._canvas.toDataURL();this._target.style.cursor="url("+o+")"+i+" "+t+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(a,i){if(!m)return;window.visualViewport?(this._position.x=a+window.visualViewport.offsetLeft,this._position.y=i+window.visualViewport.offsetTop):(this._position.x=a,this._position.y=i),this._updatePosition();var t=document.elementFromPoint(a,i);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(a){this._handleMouseMove(a)}},{key:"_handleMouseLeave",value:function(a){this._updateVisibility(a.relatedTarget)}},{key:"_handleMouseMove",value:function(a){this._updateVisibility(a.target),this._position.x=a.clientX-this._hotSpot.x,this._position.y=a.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(a){var i=this,t=document.elementFromPoint(a.clientX,a.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!i._target)return;t=document.elementFromPoint(a.clientX,a.clientY),i._updateVisibility(t)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(a){return a?a===this._target?!0:this._target.contains(a)?!(window.getComputedStyle(a).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(a){this._captureIsActive()&&(a=document.captureElement),this._shouldShowCursor(a)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),d}();L.default=p},rySg:function(R,L,r){r("SMc4"),r("8nMs")},s2MQ:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};L.default=y},s2lz:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("IwbS"),A=r("gPAo"),m=r("VaxA"),p=r("9hCq"),d=r("SgGq"),u=r("mFDi"),a=r("Fofx"),i=r("5s0K"),t=r("KCsZ"),s=r("7aKB"),e=s.windowOpen,l=f.bind,n=x.Group,o=x.Rect,c=f.each,h=3,g=["label"],v=["emphasis","label"],b=["upperLabel"],S=["emphasis","upperLabel"],E=10,C=1,_=2,T=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(U){var P=T(U);return P.stroke=P.fill=P.lineWidth=null,P},O=y.extendChartView({type:"treemap",init:function(U,P){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(U,P,X,F){var j=P.findComponents({mainType:"series",subType:"treemap",query:F});if(f.indexOf(j,U)<0)return;this.seriesModel=U,this.api=X,this.ecModel=P;var K=["treemapZoomToNode","treemapRootToNode"],z=m.retrieveTargetInfo(F,K,U),V=F&&F.type,Q=U.layoutInfo,G=!this._oldTree,ee=this._storage,se=V==="treemapRootToNode"&&z&&ee?{rootNodeGroup:ee.nodeGroup[z.node.getRawIndex()],direction:F.direction}:null,ye=this._giveContainerGroup(Q),he=this._doRender(ye,U,se);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(ye,he,U,se):he.renderFinally(),this._resetController(X),this._renderBreadcrumb(U,X,z)},_giveContainerGroup:function(U){var P=this._containerGroup;return P||(P=this._containerGroup=new n,this._initEvents(P),this.group.add(P)),P.attr("position",[U.x,U.y]),P},_doRender:function(U,P,X){var F=P.getData().tree,j=this._oldTree,K=I(),z=I(),V=this._storage,Q=[],G=f.curry(k,P,z,V,X,K,Q);se(F.root?[F.root]:[],j&&j.root?[j.root]:[],U,F===j||!j,0);var ee=ye(V);return this._oldTree=F,this._storage=z,{lastsForAnimation:K,willDeleteEls:ee,renderFinally:he};function se(ke,Pe,Ue,$e,Ge){$e?(Pe=ke,c(ke,function(oe,rt){!oe.isRemoved()&&Fe(rt,rt)})):new A(Pe,ke,ht,ht).add(Fe).update(Fe).remove(f.curry(Fe,null)).execute();function ht(oe){return oe.getId()}function Fe(oe,rt){var fe=oe!=null?ke[oe]:null,J=rt!=null?Pe[rt]:null,Y=G(fe,J,Ue,Ge);Y&&se(fe&&fe.viewChildren||[],J&&J.viewChildren||[],Y,$e,Ge+1)}}function ye(ke){var Pe=I();return ke&&c(ke,function(Ue,$e){var Ge=Pe[$e];c(Ue,function(ht){ht&&(Ge.push(ht),ht.__tmWillDelete=1)})}),Pe}function he(){c(ee,function(ke){c(ke,function(Pe){Pe.parent&&Pe.parent.remove(Pe)})}),c(Q,function(ke){ke.invisible=!0,ke.dirty()})}},_doAnimation:function(U,P,X,F){if(!X.get("animation"))return;var j=X.get("animationDurationUpdate"),K=X.get("animationEasing"),z=i.createWrap();c(P.willDeleteEls,function(V,Q){c(V,function(G,ee){if(G.invisible)return;var se=G.parent,ye;if(F&&F.direction==="drillDown")ye=se===F.rootNodeGroup?{shape:{x:0,y:0,width:se.__tmNodeWidth,height:se.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var he=0,ke=0;se.__tmWillDelete||(he=se.__tmNodeWidth/2,ke=se.__tmNodeHeight/2),ye=Q==="nodeGroup"?{position:[he,ke],style:{opacity:0}}:{shape:{x:he,y:ke,width:0,height:0},style:{opacity:0}}}ye&&z.add(G,ye,j,K)})}),c(this._storage,function(V,Q){c(V,function(G,ee){var se=P.lastsForAnimation[Q][ee],ye={};if(!se)return;Q==="nodeGroup"?se.old&&(ye.position=G.position.slice(),G.attr("position",se.old)):(se.old&&(ye.shape=f.extend({},G.shape),G.setShape(se.old)),se.fadein?(G.setStyle("opacity",0),ye.style={opacity:1}):G.style.opacity!==1&&(ye.style={opacity:1})),z.add(G,ye,j,K)})},this),this._state="animating",z.done(l(function(){this._state="ready",P.renderFinally()},this)).start()},_resetController:function(U){var P=this._controller;P||(P=this._controller=new d(U.getZr()),P.enable(this.seriesModel.get("roam")),P.on("pan",l(this._onPan,this)),P.on("zoom",l(this._onZoom,this)));var X=new u(0,0,U.getWidth(),U.getHeight());P.setPointerChecker(function(F,j,K){return X.contain(j,K)})},_clearController:function(){var U=this._controller;U&&(U.dispose(),U=null)},_onPan:function(U){if(this._state!=="animating"&&(Math.abs(U.dx)>h||Math.abs(U.dy)>h)){var P=this.seriesModel.getData().tree.root;if(!P)return;var X=P.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+U.dx,y:X.y+U.dy,width:X.width,height:X.height}})}},_onZoom:function(U){var P=U.originX,X=U.originY;if(this._state!=="animating"){var F=this.seriesModel.getData().tree.root;if(!F)return;var j=F.getLayout();if(!j)return;var K=new u(j.x,j.y,j.width,j.height),z=this.seriesModel.layoutInfo;P-=z.x,X-=z.y;var V=a.create();a.translate(V,V,[-P,-X]),a.scale(V,V,[U.scale,U.scale]),a.translate(V,V,[P,X]),K.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:K.x,y:K.y,width:K.width,height:K.height}})}},_initEvents:function(U){U.on("click",function(P){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var F=this.findTarget(P.offsetX,P.offsetY);if(!F)return;var j=F.node;if(j.getLayout().isLeafRoot)this._rootToNode(F);else if(X==="zoomToNode")this._zoomToNode(F);else if(X==="link"){var K=j.hostTree.data.getItemModel(j.dataIndex),z=K.get("link",!0),V=K.get("target",!0)||"blank";z&&e(z,V)}},this)},_renderBreadcrumb:function(U,P,X){X||(X=U.get("leafDepth",!0)!=null?{node:U.getViewRoot()}:this.findTarget(P.getWidth()/2,P.getHeight()/2),X||(X={node:U.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new p(this.group))).render(U,P,X.node,l(F,this));function F(j){this._state!=="animating"&&(m.aboveViewRoot(U.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(U){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:U.node})},_rootToNode:function(U){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:U.node})},findTarget:function(U,P){var X,F=this.seriesModel.getViewRoot();return F.eachNode({attr:"viewChildren",order:"preorder"},function(j){var K=this._storage.background[j.getRawIndex()];if(K){var z=K.transformCoordToLocal(U,P),V=K.shape;if(V.x<=z[0]&&z[0]<=V.x+V.width&&V.y<=z[1]&&z[1]<=V.y+V.height)X={node:j,offsetX:z[0],offsetY:z[1]};else return!1}},this),X}});function I(){return{nodeGroup:[],background:[],content:[]}}function k(U,P,X,F,j,K,z,V,Q,G){if(!z)return;var ee=z.getLayout(),se=U.getData();if(se.setItemGraphicEl(z.dataIndex,null),!ee||!ee.isInView)return;var ye=ee.width,he=ee.height,ke=ee.borderWidth,Pe=ee.invisible,Ue=z.getRawIndex(),$e=V&&V.getRawIndex(),Ge=z.viewChildren,ht=ee.upperHeight,Fe=Ge&&Ge.length,oe=z.getModel("itemStyle"),rt=z.getModel("emphasis.itemStyle"),fe=pe("nodeGroup",n);if(!fe)return;if(Q.add(fe),fe.attr("position",[ee.x||0,ee.y||0]),fe.__tmNodeWidth=ye,fe.__tmNodeHeight=he,ee.isAboveViewRoot)return fe;var J=z.getModel(),Y=pe("background",o,G,C);if(Y&&de(fe,Y,Fe&&ee.upperLabelHeight),Fe)x.isHighDownDispatcher(fe)&&x.setAsHighDownDispatcher(fe,!1),Y&&(x.setAsHighDownDispatcher(Y,!0),se.setItemGraphicEl(z.dataIndex,Y));else{var $=pe("content",o,G,_);$&&we(fe,$),Y&&x.isHighDownDispatcher(Y)&&x.setAsHighDownDispatcher(Y,!1),x.setAsHighDownDispatcher(fe,!0),se.setItemGraphicEl(z.dataIndex,fe)}return fe;function de(gt,ct,je){if(ct.dataIndex=z.dataIndex,ct.seriesIndex=U.seriesIndex,ct.setShape({x:0,y:0,width:ye,height:he}),Pe)Ce(ct);else{ct.invisible=!1;var Zt=z.getVisual("borderColor",!0),ut=rt.get("borderColor"),Ht=w(oe);Ht.fill=Zt;var dr=T(rt);if(dr.fill=ut,je){var Vt=ye-2*ke;Se(Ht,dr,Zt,Vt,ht,{x:ke,y:0,width:Vt,height:ht})}else Ht.text=dr.text=null;ct.setStyle(Ht),x.setElementHoverStyle(ct,dr)}gt.add(ct)}function we(gt,ct){ct.dataIndex=z.dataIndex,ct.seriesIndex=U.seriesIndex;var je=Math.max(ye-2*ke,0),Zt=Math.max(he-2*ke,0);if(ct.culling=!0,ct.setShape({x:ke,y:ke,width:je,height:Zt}),Pe)Ce(ct);else{ct.invisible=!1;var ut=z.getVisual("color",!0),Ht=w(oe);Ht.fill=ut;var dr=T(rt);Se(Ht,dr,ut,je,Zt),ct.setStyle(Ht),x.setElementHoverStyle(ct,dr)}gt.add(ct)}function Ce(gt){!gt.invisible&&K.push(gt)}function Se(gt,ct,je,Zt,ut,Ht){var dr=J.get("name"),Vt=J.getModel(Ht?b:g),Mt=J.getModel(Ht?S:v),Gt=Vt.getShallow("show");x.setLabelStyle(gt,ct,Vt,Mt,{defaultText:Gt?dr:null,autoColor:je,isRectText:!0,labelFetcher:U,labelDataIndex:z.dataIndex,labelProp:Ht?"upperLabel":"label"}),le(gt,Ht,ee),le(ct,Ht,ee),Ht&&(gt.textRect=f.clone(Ht)),gt.truncate=Gt&&Vt.get("ellipsis")?{outerWidth:Zt,outerHeight:ut,minChar:2}:null}function le(gt,ct,je){var Zt=gt.text;if(!ct&&je.isLeafRoot&&Zt!=null){var ut=U.get("drillDownIcon",!0);gt.text=ut?ut+" "+Zt:Zt}}function pe(gt,ct,je,Zt){var ut=$e!=null&&X[gt][$e],Ht=j[gt];return ut?(X[gt][$e]=null,_e(Ht,ut,gt)):Pe||(ut=new ct({z:M(je,Zt)}),ut.__tmDepth=je,ut.__tmStorageName=gt,tt(Ht,ut,gt)),P[gt][Ue]=ut}function _e(gt,ct,je){var Zt=gt[Ue]={};Zt.old=je==="nodeGroup"?ct.position.slice():f.extend({},ct.shape)}function tt(gt,ct,je){var Zt=gt[Ue]={},ut=z.parentNode;if(ut&&(!F||F.direction==="drillDown")){var Ht=0,dr=0,Vt=j.background[ut.getRawIndex()];!F&&Vt&&Vt.old&&(Ht=Vt.old.width,dr=Vt.old.height),Zt.old=je==="nodeGroup"?[0,dr]:{x:Ht,y:dr,width:0,height:0}}Zt.fadein=je!=="nodeGroup"}}function M(U,P){var X=U*E+P;return(X-1)/X}R.exports=O},sAZ8:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("+rIm"),A=r("/IIm"),m=r("9KIM"),p=r("IwbS"),d=["axisLine","axisTickLabel","axisName"],u=y.extendComponentView({type:"parallelAxis",init:function(e,l){u.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",f.bind(this._onBrush,this))},render:function(e,l,n,o){if(a(e,l,o))return;this.axisModel=e,this.api=n,this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!e.get("show"))return;var h=t(e,l),g=h.coordinateSystem,v=e.getAreaSelectStyle(),b=v.width,S=e.axis.dim,E=g.getAxisLayout(S),C=f.extend({strokeContainThreshold:b},E),_=new x(e,C);f.each(d,_.add,_),this._axisGroup.add(_.getGroup()),this._refreshBrushController(C,v,e,h,b,n);var T=o&&o.animation===!1?null:e;p.groupTransition(c,this._axisGroup,T)},_refreshBrushController:function(e,l,n,o,c,h){var g=n.axis.getExtent(),v=g[1]-g[0],b=Math.min(30,Math.abs(v)*.1),S=p.BoundingRect.create({x:g[0],y:-c/2,width:v,height:c});S.x-=b,S.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(S),isTargetByCursor:m.makeRectIsTargetByCursor(S,h,o),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(S,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(i(n))},_onBrush:function(e,l){var n=this.axisModel,o=n.axis,c=f.map(e,function(h){return[o.coordToData(h.range[0],!0),o.coordToData(h.range[1],!0)]});(!n.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:c})},dispose:function(){this._brushController.dispose()}});function a(e,l,n){return n&&n.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:n})[0]===e}function i(e){var l=e.axis;return f.map(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(n[0],!0),l.dataToCoord(n[1],!0)]}})}function t(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var s=u;R.exports=s},sE09:function(R,L,r){},sEf8:function(R,L){function r(y){return function(f){return y(f)}}R.exports=r},sGsY:function(R,L,r){"use strict";var y=r("lSNA"),f=r.n(y),x=r("pVnL"),A=r.n(x),m=r("q1tI"),p=r("TSYQ"),d=r.n(p),u=r("H84U"),a=r("B6l+"),i=r.n(a),t=function(z){var V=z.value,Q=z.formatter,G=z.precision,ee=z.decimalSeparator,se=z.groupSeparator,ye=se===void 0?"":se,he=z.prefixCls,ke;if(typeof Q=="function")ke=Q(V);else{var Pe=String(V),Ue=Pe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ue||Pe==="-")ke=Pe;else{var $e=Ue[1],Ge=Ue[2]||"0",ht=Ue[4]||"";Ge=Ge.replace(/\B(?=(\d{3})+(?!\d))/g,ye),typeof G=="number"&&(ht=i()(ht,G,"0").slice(0,G)),ht&&(ht="".concat(ee).concat(ht)),ke=[m.createElement("span",{key:"int",className:"".concat(he,"-content-value-int")},$e,Ge),ht&&m.createElement("span",{key:"decimal",className:"".concat(he,"-content-value-decimal")},ht)]}}return m.createElement("span",{className:"".concat(he,"-content-value")},ke)},s=t,e=function(z){var V=z.prefixCls,Q=z.className,G=z.style,ee=z.valueStyle,se=z.value,ye=se===void 0?0:se,he=z.title,ke=z.valueRender,Pe=z.prefix,Ue=z.suffix,$e=z.direction,Ge=z.onMouseEnter,ht=z.onMouseLeave,Fe=m.createElement(s,A()({},z,{value:ye})),oe=d()(V,Q,f()({},"".concat(V,"-rtl"),$e==="rtl"));return m.createElement("div",{className:oe,style:G,onMouseEnter:Ge,onMouseLeave:ht},he&&m.createElement("div",{className:"".concat(V,"-title")},he),m.createElement("div",{style:ee,className:"".concat(V,"-content")},Pe&&m.createElement("span",{className:"".concat(V,"-content-prefix")},Pe),ke?ke(Fe):Fe,Ue&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Ue)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(u.c)({prefixCls:"statistic"})(e),n=l,o=r("lwsE"),c=r.n(o),h=r("W8MJ"),g=r.n(h),v=r("7W2i"),b=r.n(v),S=r("LQ03"),E=r.n(S),C=r("J4zp"),_=r.n(C),T=r("QQZ/"),w=r.n(T),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(K,z){var V=K,Q=/\[[^\]]*]/g,G=(z.match(Q)||[]).map(function(he){return he.slice(1,-1)}),ee=z.replace(Q,"[]"),se=O.reduce(function(he,ke){var Pe=_()(ke,2),Ue=Pe[0],$e=Pe[1];if(he.indexOf(Ue)!==-1){var Ge=Math.floor(V/$e);return V-=Ge*$e,he.replace(new RegExp("".concat(Ue,"+"),"g"),function(ht){var Fe=ht.length;return w()(Ge.toString(),Fe,"0")})}return he},ee),ye=0;return se.replace(Q,function(){var he=G[ye];return ye+=1,he})}function k(K,z){var V=z.format,Q=V===void 0?"":V,G=new Date(K).getTime(),ee=Date.now(),se=Math.max(G-ee,0);return I(se,Q)}var M=r("0n0R"),U=1e3/30;function P(K){return new Date(K).getTime()}var X=function(K){b()(V,K);var z=E()(V);function V(){var Q;return c()(this,V),Q=z.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,ee=P(G);ee>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},U)},Q.stopTimer=function(){var G=Q.props,ee=G.onFinish,se=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var ye=P(se);ee&&ye<Date.now()&&ee()}},Q.formatCountdown=function(G,ee){var se=Q.props.format;return k(G,A()(A()({},ee),{format:se}))},Q.valueRender=function(G){return Object(M.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(n,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var F=X;n.Countdown=F;var j=L.a=n},"sI3+":function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("Bqw1")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="MinusSquareOutlined";var i=A.forwardRef(a);L.default=i},"sK/D":function(R,L,r){var y=r("IwbS"),f=r("OELB"),x=f.round;function A(d,u,a){var i=d.getArea(),t=d.getBaseAxis().isHorizontal(),s=i.x,e=i.y,l=i.width,n=i.height,o=a.get("lineStyle.width")||2;s-=o/2,e-=o/2,l+=o,n+=o,s=Math.floor(s),l=Math.round(l);var c=new y.Rect({shape:{x:s,y:e,width:l,height:n}});return u&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:l,height:n}},a)),c}function m(d,u,a){var i=d.getArea(),t=new y.Sector({shape:{cx:x(d.cx,1),cy:x(d.cy,1),r0:x(i.r0,1),r:x(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return u&&(t.shape.endAngle=i.startAngle,y.initProps(t,{shape:{endAngle:i.endAngle}},a)),t}function p(d,u,a){if(d){if(d.type==="polar")return m(d,u,a);if(d.type==="cartesian2d")return A(d,u,a)}else return null;return null}L.createGridClipPath=A,L.createPolarClipPath=m,L.createClipPath=p},sKgW:function(R,L){var r=9007199254740991,y=Math.floor;function f(x,A){var m="";if(!x||A<1||A>r)return m;do A%2&&(m+=x),A=y(A/2),A&&(x+=x);while(A);return m}R.exports=f},sPJy:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("AOa7"),A=r.n(x),m=r("lUTK"),p=r("qVdP")},sPtV:function(R,L,r){"use strict";r.d(L,"a",function(){return A});var y=r("q1tI"),f=r.n(y),x=r("hkKa");function A(m){var p=y.useRef(m),d=Object(x.a)();return[function(){return p.current},function(u){p.current=u,d()}]}},sRwP:function(R,L,r){r("jsU+"),r("2548"),r("Tp9H"),r("06DH"),r("dnwI"),r("fE02"),r("33Ds")},"sS/r":function(R,L,r){var y=r("4fz+"),f=r("iRjW"),x=r("Yl7c"),A=function(){this.group=new y,this.uid=f.getUID("viewComponent")};A.prototype={constructor:A,init:function(d,u){},render:function(d,u,a,i){},dispose:function(){},filterForExposedEvent:null};var m=A.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,u,a,i){},x.enableClassExtend(A),x.enableClassManagement(A,{registerWhenExtend:!0});var p=A;R.exports=p},"sW+o":function(R,L,r){var y=r("SrGk"),f=r("bYtY"),x=r("SUKs"),A=r("Qe9p");function m(d,u){y.call(this,d,u,["linearGradient","radialGradient"],"__gradient_in_use__")}f.inherits(m,y),m.prototype.addWithoutUpdate=function(d,u){if(u&&u.style){var a=this;f.each(["fill","stroke"],function(i){if(u.style[i]&&(u.style[i].type==="linear"||u.style[i].type==="radial")){var t=u.style[i],s=a.getDefs(!0),e;t._dom?(e=t._dom,s.contains(t._dom)||a.addDom(e)):e=a.add(t),a.markUsed(u);var l=e.getAttribute("id");d.setAttribute(i,"url(#"+l+")")}})}},m.prototype.add=function(d){var u;if(d.type==="linear")u=this.createElement("linearGradient");else if(d.type==="radial")u=this.createElement("radialGradient");else return x("Illegal gradient type."),null;return d.id=d.id||this.nextId++,u.setAttribute("id","zr"+this._zrId+"-gradient-"+d.id),this.updateDom(d,u),this.addDom(u),u},m.prototype.update=function(d){var u=this;y.prototype.update.call(this,d,function(){var a=d.type,i=d._dom.tagName;a==="linear"&&i==="linearGradient"||a==="radial"&&i==="radialGradient"?u.updateDom(d,d._dom):(u.removeDom(d),u.add(d))})},m.prototype.updateDom=function(d,u){if(d.type==="linear")u.setAttribute("x1",d.x),u.setAttribute("y1",d.y),u.setAttribute("x2",d.x2),u.setAttribute("y2",d.y2);else if(d.type==="radial")u.setAttribute("cx",d.x),u.setAttribute("cy",d.y),u.setAttribute("r",d.r);else{x("Illegal gradient type.");return}d.global?u.setAttribute("gradientUnits","userSpaceOnUse"):u.setAttribute("gradientUnits","objectBoundingBox"),u.innerHTML="";for(var a=d.colorStops,i=0,t=a.length;i<t;++i){var s=this.createElement("stop");s.setAttribute("offset",a[i].offset*100+"%");var e=a[i].color;if(e.indexOf("rgba">-1)){var l=A.parse(e)[3],n=A.toHex(e);s.setAttribute("stop-color","#"+n),s.setAttribute("stop-opacity",l)}else s.setAttribute("stop-color",a[i].color);u.appendChild(s)}d._dom=u},m.prototype.markUsed=function(d){if(d.style){var u=d.style.fill;u&&u._dom&&y.prototype.markUsed.call(this,u._dom),u=d.style.stroke,u&&u._dom&&y.prototype.markUsed.call(this,u._dom)}};var p=m;R.exports=p},sdST:function(R,L,r){var y=r("hi0g");function f(x,A){return A=A||{},y(A.coordDimensions||[],x,{dimsDef:A.dimensionsDefine||x.dimensionsDefine,encodeDef:A.encodeDefine||x.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}R.exports=f},seXi:function(R,L,r){var y=r("qZTm"),f=1,x=Object.prototype,A=x.hasOwnProperty;function m(p,d,u,a,i,t){var s=u&f,e=y(p),l=e.length,n=y(d),o=n.length;if(l!=o&&!s)return!1;for(var c=l;c--;){var h=e[c];if(!(s?h in d:A.call(d,h)))return!1}var g=t.get(p),v=t.get(d);if(g&&v)return g==d&&v==p;var b=!0;t.set(p,d),t.set(d,p);for(var S=s;++c<l;){h=e[c];var E=p[h],C=d[h];if(a)var _=s?a(C,E,h,d,p,t):a(E,C,h,p,d,t);if(!(_===void 0?E===C||i(E,C,u,a,t):_)){b=!1;break}S||(S=h=="constructor")}if(b&&!S){var T=p.constructor,w=d.constructor;T!=w&&"constructor"in p&&"constructor"in d&&!(typeof T=="function"&&T instanceof T&&typeof w=="function"&&w instanceof w)&&(b=!1)}return t.delete(p),t.delete(d),b}R.exports=m},sgoq:function(R,L,r){var y=r("asDA"),f=r("TKrE"),x=r("6nK8"),A="['\u2019]",m=RegExp(A,"g");function p(d){return function(u){return y(x(f(u).replace(m,"")),d,"")}}R.exports=p},shjB:function(R,L){var r=9007199254740991;function y(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=r}R.exports=y},sjKO:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=x;var y=30,f=12;function x(A,m){var p,d,u,a,i,t,s,e,l,n,o,c,h,g,v,b,S,E,C,_,T,w,O,I,k;p=A.state,d=A.next_in,I=A.input,u=d+(A.avail_in-5),a=A.next_out,k=A.output,i=a-(m-A.avail_out),t=a+(A.avail_out-257),s=p.dmax,e=p.wsize,l=p.whave,n=p.wnext,o=p.window,c=p.hold,h=p.bits,g=p.lencode,v=p.distcode,b=(1<<p.lenbits)-1,S=(1<<p.distbits)-1;e:do{h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=g[c&b];t:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C===0)k[a++]=E&65535;else if(C&16){_=E&65535,C&=15,C&&(h<C&&(c+=I[d++]<<h,h+=8),_+=c&(1<<C)-1,c>>>=C,h-=C),h<15&&(c+=I[d++]<<h,h+=8,c+=I[d++]<<h,h+=8),E=v[c&S];r:for(;;){if(C=E>>>24,c>>>=C,h-=C,C=E>>>16&255,C&16){if(T=E&65535,C&=15,h<C&&(c+=I[d++]<<h,h+=8,h<C&&(c+=I[d++]<<h,h+=8)),T+=c&(1<<C)-1,T>s){A.msg="invalid distance too far back",p.mode=y;break e}if(c>>>=C,h-=C,C=a-i,T>C){if(C=T-C,C>l&&p.sane){A.msg="invalid distance too far back",p.mode=y;break e}if(w=0,O=o,n===0){if(w+=e-C,C<_){_-=C;do k[a++]=o[w++];while(--C);w=a-T,O=k}}else if(n<C){if(w+=e+n-C,C-=n,C<_){_-=C;do k[a++]=o[w++];while(--C);if(w=0,n<_){C=n,_-=C;do k[a++]=o[w++];while(--C);w=a-T,O=k}}}else if(w+=n-C,C<_){_-=C;do k[a++]=o[w++];while(--C);w=a-T,O=k}for(;_>2;)k[a++]=O[w++],k[a++]=O[w++],k[a++]=O[w++],_-=3;_&&(k[a++]=O[w++],_>1&&(k[a++]=O[w++]))}else{w=a-T;do k[a++]=k[w++],k[a++]=k[w++],k[a++]=k[w++],_-=3;while(_>2);_&&(k[a++]=k[w++],_>1&&(k[a++]=k[w++]))}}else if((C&64)===0){E=v[(E&65535)+(c&(1<<C)-1)];continue r}else{A.msg="invalid distance code",p.mode=y;break e}break}}else if((C&64)===0){E=g[(E&65535)+(c&(1<<C)-1)];continue t}else if(C&32){p.mode=f;break e}else{A.msg="invalid literal/length code",p.mode=y;break e}break}}while(d<u&&a<t);_=h>>3,d-=_,h-=_<<3,c&=(1<<h)-1,A.next_in=d,A.next_out=a,A.avail_in=d<u?5+(u-d):5-(d-u),A.avail_out=a<t?257+(t-a):257-(a-t),p.hold=c,p.bits=h;return}},szbU:function(R,L,r){var y=r("bYtY"),f=y.each;function x(m){var p=m&&m.visualMap;y.isArray(p)||(p=p?[p]:[]),f(p,function(d){if(!d)return;A(d,"splitList")&&!A(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var u=d.pieces;u&&y.isArray(u)&&f(u,function(a){y.isObject(a)&&(A(a,"start")&&!A(a,"min")&&(a.min=a.start),A(a,"end")&&!A(a,"max")&&(a.max=a.end))})})}function A(m,p){return m&&m.hasOwnProperty&&m.hasOwnProperty(p)}R.exports=x},t23M:function(R,L,r){"use strict";var y=r("wx14"),f=r("q1tI"),x=r("Zm9Q"),A=r("Kwbf"),m=r("VTBJ"),p=r("c+Xe"),d=r("m+aA"),u=r("bdgK"),a=new Map;function i(k){k.forEach(function(M){var U,P=M.target;(U=a.get(P))===null||U===void 0||U.forEach(function(X){return X(P)})})}var t=new u.default(i),s=null,e=null;function l(k,M){a.has(k)||(a.set(k,new Set),t.observe(k)),a.get(k).add(M)}function n(k,M){a.has(k)&&(a.get(k).delete(M),a.get(k).size||(t.unobserve(k),a.delete(k)))}var o=r("1OyB"),c=r("vuIU"),h=r("Ji7U"),g=r("LK+K"),v=function(k){Object(h.a)(U,k);var M=Object(g.a)(U);function U(){return Object(o.a)(this,U),M.apply(this,arguments)}return Object(c.a)(U,[{key:"render",value:function(){return this.props.children}}]),U}(f.Component),b=f.createContext(null);function S(k){var M=k.children,U=k.onBatchResize,P=f.useRef(0),X=f.useRef([]),F=f.useContext(b),j=f.useCallback(function(K,z,V){P.current+=1;var Q=P.current;X.current.push({size:K,element:z,data:V}),Promise.resolve().then(function(){Q===P.current&&(U==null||U(X.current),X.current=[])}),F==null||F(K,z,V)},[U,F]);return f.createElement(b.Provider,{value:j},M)}function E(k,M){var U=k.children,P=k.disabled,X=f.useRef(null),F=f.useRef(null),j=f.useContext(b),K=typeof U=="function",z=K?U(X):U,V=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Q=!K&&f.isValidElement(z)&&Object(p.c)(z),G=Q?z.ref:null,ee=f.useMemo(function(){return Object(p.a)(G,X)},[G,X]),se=function(){return Object(d.a)(X.current)||Object(d.a)(F.current)};f.useImperativeHandle(M,function(){return se()});var ye=f.useRef(k);ye.current=k;var he=f.useCallback(function(ke){var Pe=ye.current,Ue=Pe.onResize,$e=Pe.data,Ge=ke.getBoundingClientRect(),ht=Ge.width,Fe=Ge.height,oe=ke.offsetWidth,rt=ke.offsetHeight,fe=Math.floor(ht),J=Math.floor(Fe);if(V.current.width!==fe||V.current.height!==J||V.current.offsetWidth!==oe||V.current.offsetHeight!==rt){var Y={width:fe,height:J,offsetWidth:oe,offsetHeight:rt};V.current=Y;var $=oe===Math.round(ht)?ht:oe,de=rt===Math.round(Fe)?Fe:rt,we=Object(m.a)(Object(m.a)({},Y),{},{offsetWidth:$,offsetHeight:de});j==null||j(we,ke,$e),Ue&&Promise.resolve().then(function(){Ue(we,ke)})}},[]);return f.useEffect(function(){var ke=se();return ke&&!P&&l(ke,he),function(){return n(ke,he)}},[X.current,P]),f.createElement(v,{ref:F},Q?f.cloneElement(z,{ref:ee}):z)}var C=f.forwardRef(E),_=C,T="rc-observer-key";function w(k,M){var U=k.children,P=typeof U=="function"?[U]:Object(x.a)(U);return P.map(function(X,F){var j=(X==null?void 0:X.key)||"".concat(T,"-").concat(F);return f.createElement(_,Object(y.a)({},k,{key:j,ref:F===0?M:void 0}),X)})}var O=f.forwardRef(w);O.Collection=S;var I=L.a=O},t3Fx:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=Object.assign||function(o){for(var c=1;c<arguments.length;c++){var h=arguments[c];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(o[g]=h[g])}return o},f=function(){function o(c,h){for(var g=0;g<h.length;g++){var v=h[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,h,g){return h&&o(c.prototype,h),g&&o(c,g),c}}(),x=r("q1tI"),A=t(x),m=r("17x9"),p=t(m),d=r("tkwv"),u=t(d),a=r("u3os"),i=r("kzFp");function t(o){return o&&o.__esModule?o:{default:o}}function s(o,c){if(!(o instanceof c))throw new TypeError("Cannot call a class as a function")}function e(o,c){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:o}function l(o,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);o.prototype=Object.create(c&&c.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(o,c):o.__proto__=c)}var n=function(o){l(c,o);function c(h){s(this,c);var g=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,h));return g.getEchartsInstance=function(){return g.echartsLib.getInstanceByDom(g.echartsElement)||g.echartsLib.init(g.echartsElement,g.props.theme,g.props.opts)},g.dispose=function(){if(g.echartsElement){try{(0,a.clear)(g.echartsElement)}catch(v){console.warn(v)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var v=g.props,b=v.onEvents,S=v.onChartReady,E=g.renderEchartDom();g.bindEvents(E,b||{}),typeof S=="function"&&g.props.onChartReady(E),g.echartsElement&&(0,a.bind)(g.echartsElement,function(){try{E.resize()}catch(C){console.warn(C)}})},g.bindEvents=function(v,b){var S=function(_,T){typeof _=="string"&&typeof T=="function"&&v.on(_,function(w){T(w,v)})};for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&S(E,b[E])},g.renderEchartDom=function(){var v=g.getEchartsInstance();return v.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?v.showLoading(g.props.loadingOption||null):v.hideLoading(),v},g.echartsLib=h.echarts,g.echartsElement=null,g}return f(c,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(g){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(g,this.props))return;if(!(0,u.default)(g.theme,this.props.theme)||!(0,u.default)(g.opts,this.props.opts)||!(0,u.default)(g.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var v=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,u.default)((0,i.pick)(this.props,v),(0,i.pick)(g,v)))return;var b=this.renderEchartDom();if(!(0,u.default)(g.style,this.props.style)||!(0,u.default)(g.className,this.props.className))try{b.resize()}catch(S){console.warn(S)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,v=this.props,b=v.style,S=v.className,E=y({height:300},b);return A.default.createElement("div",{ref:function(_){g.echartsElement=_},style:E,className:"echarts-for-react "+S})}}]),c}(x.Component);L.default=n,n.propTypes={option:p.default.object.isRequired,echarts:p.default.object,notMerge:p.default.bool,lazyUpdate:p.default.bool,style:p.default.object,className:p.default.string,theme:p.default.oneOfType([p.default.string,p.default.object]),onChartReady:p.default.func,showLoading:p.default.bool,loadingOption:p.default.object,onEvents:p.default.object,opts:p.default.shape({devicePixelRatio:p.default.number,renderer:p.default.oneOf(["canvas","svg"]),width:p.default.oneOfType([p.default.number,p.default.oneOf([null,void 0,"auto"])]),height:p.default.oneOfType([p.default.number,p.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:p.default.func},n.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(R,L,r){var y=r("bYtY"),f=r("IwbS"),x=r("Qxkt"),A=r("Znkb"),m=r("+rIm"),p=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,s,e){s[1]>s[0]&&(s=s.slice().reverse());var l=t.coordToPoint([s[0],e]),n=t.coordToPoint([s[1],e]);return{x1:l[0],y1:l[1],x2:n[0],y2:n[1]}}function u(t){var s=t.getRadiusAxis();return s.inverse?0:1}function a(t){var s=t[0],e=t[t.length-1];s&&e&&Math.abs(Math.abs(s.coord-e.coord)-360)<1e-4&&t.pop()}var i=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,s){if(this.group.removeAll(),!t.get("show"))return;var e=t.axis,l=e.polar,n=l.getRadiusAxis().getExtent(),o=e.getTicksCoords(),c=e.getMinorTicksCoords(),h=y.map(e.getViewLabels(),function(g){var g=y.clone(g);return g.coord=e.dataToCoord(g.tickValue),g});a(h),a(o),y.each(p,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,l,o,c,n,h)},this)},_axisLine:function(t,s,e,l,n){var o=t.getModel("axisLine.lineStyle"),c=u(s),h=c?0:1,g;n[h]===0?g=new f.Circle({shape:{cx:s.cx,cy:s.cy,r:n[c]},style:o.getLineStyle(),z2:1,silent:!0}):g=new f.Ring({shape:{cx:s.cx,cy:s.cy,r:n[c],r0:n[h]},style:o.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,s,e,l,n){var o=t.getModel("axisTick"),c=(o.get("inside")?-1:1)*o.get("length"),h=n[u(s)],g=y.map(e,function(v){return new f.Line({shape:d(s,[h,h+c],v.coord)})});this.group.add(f.mergePath(g,{style:y.defaults(o.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,s,e,l,n){if(!l.length)return;for(var o=t.getModel("axisTick"),c=t.getModel("minorTick"),h=(o.get("inside")?-1:1)*c.get("length"),g=n[u(s)],v=[],b=0;b<l.length;b++)for(var S=0;S<l[b].length;S++)v.push(new f.Line({shape:d(s,[g,g+h],l[b][S].coord)}));this.group.add(f.mergePath(v,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(o.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,s,e,l,n,o){var c=t.getCategories(!0),h=t.getModel("axisLabel"),g=h.get("margin"),v=t.get("triggerEvent");y.each(o,function(b,S){var E=h,C=b.tickValue,_=n[u(s)],T=s.coordToPoint([_+g,b.coord]),w=s.cx,O=s.cy,I=Math.abs(T[0]-w)/_<.3?"center":T[0]>w?"left":"right",k=Math.abs(T[1]-O)/_<.3?"middle":T[1]>O?"top":"bottom";c&&c[C]&&c[C].textStyle&&(E=new x(c[C].textStyle,h,h.ecModel));var M=new f.Text({silent:m.isLabelSilent(t)});this.group.add(M),f.setTextStyle(M.style,E,{x:T[0],y:T[1],textFill:E.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:I,textVerticalAlign:k}),v&&(M.eventData=m.makeAxisEventDataBase(t),M.eventData.targetType="axisLabel",M.eventData.value=b.rawLabel)},this)},_splitLine:function(t,s,e,l,n){var o=t.getModel("splitLine"),c=o.getModel("lineStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var v=[],b=0;b<e.length;b++){var S=g++%h.length;v[S]=v[S]||[],v[S].push(new f.Line({shape:d(s,n,e[b].coord)}))}for(var b=0;b<v.length;b++)this.group.add(f.mergePath(v[b],{style:y.defaults({stroke:h[b%h.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,s,e,l,n){if(!l.length)return;for(var o=t.getModel("minorSplitLine"),c=o.getModel("lineStyle"),h=[],g=0;g<l.length;g++)for(var v=0;v<l[g].length;v++)h.push(new f.Line({shape:d(s,n,l[g][v].coord)}));this.group.add(f.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,s,e,l,n){if(!e.length)return;var o=t.getModel("splitArea"),c=o.getModel("areaStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var v=[],b=Math.PI/180,S=-e[0].coord*b,E=Math.min(n[0],n[1]),C=Math.max(n[0],n[1]),_=t.get("clockwise"),T=1;T<e.length;T++){var w=g++%h.length;v[w]=v[w]||[],v[w].push(new f.Sector({shape:{cx:s.cx,cy:s.cy,r0:E,r:C,startAngle:S,endAngle:-e[T].coord*b,clockwise:_},silent:!0})),S=-e[T].coord*b}for(var T=0;T<v.length;T++)this.group.add(f.mergePath(v[T],{style:y.defaults({fill:h[T%h.length]},c.getAreaStyle()),silent:!0}))}});R.exports=i},tMB7:function(R,L,r){var y=r("y1pI");function f(x){var A=this.__data__,m=y(A,x);return m<0?void 0:A[m][1]}R.exports=f},tU7J:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("/qDX"),A=r.n(x),m=r("5Dmo"),p=r("5NDa")},tVnJ:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("ugBc")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="CalendarOutlined";var i=A.forwardRef(a);L.default=i},tadb:function(R,L,r){var y=r("Cwc5"),f=r("Kz5y"),x=y(f,"DataView");R.exports=x},tceW:function(R,L,r){var y=r("KCsZ"),f=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),x={getBarItemStyle:function(A){var m=f(this,A);if(this.getBorderLineDash){var p=this.getBorderLineDash();p&&(m.lineDash=p)}return m}};R.exports=x},tkwv:function(R,L,r){"use strict";var y=Array.isArray,f=Object.keys,x=Object.prototype.hasOwnProperty;R.exports=function A(m,p){if(m===p)return!0;if(m&&p&&typeof m=="object"&&typeof p=="object"){var d=y(m),u=y(p),a,i,t;if(d&&u){if(i=m.length,i!=p.length)return!1;for(a=i;a--!==0;)if(!A(m[a],p[a]))return!1;return!0}if(d!=u)return!1;var s=m instanceof Date,e=p instanceof Date;if(s!=e)return!1;if(s&&e)return m.getTime()==p.getTime();var l=m instanceof RegExp,n=p instanceof RegExp;if(l!=n)return!1;if(l&&n)return m.toString()==p.toString();var o=f(m);if(i=o.length,i!==f(p).length)return!1;for(a=i;a--!==0;)if(!x.call(p,o[a]))return!1;for(a=i;a--!==0;)if(t=o[a],!A(m[t],p[t]))return!1;return!0}return m!==m&&p!==p}},txkQ:function(R,L,r){var y=r("aX58");L.zrender=y;var f=r("Fofx");L.matrix=f;var x=r("QBsz");L.vector=x;var A=r("bYtY"),m=r("Qe9p");L.color=m;var p=r("IwbS"),d=r("OELB");L.number=d;var u=r("7aKB");L.format=u;var a=r("iLNv"),i=a.throttle;L.throttle=a.throttle;var t=r("FUi9");L.helper=t;var s=r("vafp");L.parseGeoJSON=s;var e=r("YXkt");L.List=e;var l=r("Qxkt");L.Model=l;var n=r("hM6l");L.Axis=n;var o=r("ItGF");L.env=o;var c=s,h={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(v){h[v]=A[v]});var g={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(v){g[v]=p[v]}),L.parseGeoJson=c,L.util=h,L.graphic=g},u3DP:function(R,L,r){var y=r("6GrX"),f=r("OELB"),x=f.parsePercent,A=Math.PI/180;function m(a,i,t,s,e,l,n,o,c,h){a.sort(function(I,k){return I.y-k.y});function g(I,k,M,U){for(var P=I;P<k&&!(a[P].y+M>c+n);P++)if(a[P].y+=M,P>I&&P+1<k&&a[P+1].y>a[P].y+a[P].height){v(P,M/2);return}v(k-1,M/2)}function v(I,k){for(var M=I;M>=0&&!(a[M].y-k<c);M--)if(a[M].y-=k,M>0&&a[M].y>a[M-1].y+a[M-1].height)break}function b(I,k,M,U,P,X){for(var F=(X>0,k?Number.MAX_VALUE:0),j=0,K=I.length;j<K;j++){if(I[j].labelAlignTo!=="none")continue;var z=Math.abs(I[j].y-U),V=I[j].len,Q=I[j].len2,G=z<P+V?Math.sqrt((P+V+Q)*(P+V+Q)-z*z):Math.abs(I[j].x-M);k&&G>=F&&(G=F-10),!k&&G<=F&&(G=F+10),I[j].x=M+G*X,F=G}}for(var S=0,E,C=a.length,_=[],T=[],w=0;w<C;w++){if(a[w].position==="outer"&&a[w].labelAlignTo==="labelLine"){var O=a[w].x-h;a[w].linePoints[1][0]+=O,a[w].x=h}E=a[w].y-S,E<0&&g(w,C,-E,e),S=a[w].y+a[w].height}n-S<0&&v(C-1,S-n);for(var w=0;w<C;w++)a[w].y>=t?T.push(a[w]):_.push(a[w]);b(_,!1,i,t,s,e),b(T,!0,i,t,s,e)}function p(a,i,t,s,e,l,n,o){for(var c=[],h=[],g=Number.MAX_VALUE,v=-Number.MAX_VALUE,b=0;b<a.length;b++){if(d(a[b]))continue;a[b].x<i?(g=Math.min(g,a[b].x),c.push(a[b])):(v=Math.max(v,a[b].x),h.push(a[b]))}m(h,i,t,s,1,e,l,n,o,v),m(c,i,t,s,-1,e,l,n,o,g);for(var b=0;b<a.length;b++){var S=a[b];if(d(S))continue;var E=S.linePoints;if(E){var C=S.labelAlignTo==="edge",_=S.textRect.width,T;C?S.x<i?T=E[2][0]-S.labelDistance-n-S.labelMargin:T=n+e-S.labelMargin-E[2][0]-S.labelDistance:S.x<i?T=S.x-n-S.bleedMargin:T=n+e-S.x-S.bleedMargin,T<S.textRect.width&&(S.text=y.truncateText(S.text,T,S.font),S.labelAlignTo==="edge"&&(_=y.getWidth(S.text,S.font)));var w=E[1][0]-E[2][0];C?S.x<i?E[2][0]=n+S.labelMargin+_+S.labelDistance:E[2][0]=n+e-S.labelMargin-_-S.labelDistance:(S.x<i?E[2][0]=S.x+S.labelDistance:E[2][0]=S.x-S.labelDistance,E[1][0]=E[2][0]+w),E[1][1]=E[2][1]=S.y}}}function d(a){return a.position==="center"}function u(a,i,t,s,e,l){var n=a.getData(),o=[],c,h,g=!1,v=(a.get("minShowLabelAngle")||0)*A;n.each(function(b){var S=n.getItemLayout(b),E=n.getItemModel(b),C=E.getModel("label"),_=C.get("position")||E.get("emphasis.label.position"),T=C.get("distanceToLabelLine"),w=C.get("alignTo"),O=x(C.get("margin"),t),I=C.get("bleedMargin"),k=C.getFont(),M=E.getModel("labelLine"),U=M.get("length");U=x(U,t);var P=M.get("length2");if(P=x(P,t),S.angle<v)return;var X=(S.startAngle+S.endAngle)/2,F=Math.cos(X),j=Math.sin(X),K,z,V,Q;c=S.cx,h=S.cy;var G=a.getFormattedLabel(b,"normal")||n.getName(b),ee=y.getBoundingRect(G,k,Q,"top"),se=_==="inside"||_==="inner";if(_==="center")K=S.cx,z=S.cy,Q="center";else{var ye=(se?(S.r+S.r0)/2*F:S.r*F)+c,he=(se?(S.r+S.r0)/2*j:S.r*j)+h;if(K=ye+F*3,z=he+j*3,!se){var ke=ye+F*(U+i-S.r),Pe=he+j*(U+i-S.r),Ue=ke+(F<0?-1:1)*P,$e=Pe;w==="edge"?K=F<0?e+O:e+t-O:K=Ue+(F<0?-T:T),z=$e,V=[[ye,he],[ke,Pe],[Ue,$e]]}Q=se?"center":w==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ge,ht=C.get("rotate");typeof ht=="number"?Ge=ht*(Math.PI/180):Ge=ht?F<0?-X+Math.PI:-X:0,g=!!Ge,S.label={x:K,y:z,position:_,height:ee.height,len:U,len2:P,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ge,inside:se,labelDistance:T,labelAlignTo:w,labelMargin:O,bleedMargin:I,textRect:ee,text:G,font:k},se||o.push(S.label)}),!g&&a.get("avoidLabelOverlap")&&p(o,c,h,i,t,s,e,l)}R.exports=u},u3os:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.ver=L.clear=L.bind=void 0;var y=r("P4Qj"),f=function(p,d){var u=(0,y.getSensor)(p);return u.bind(d),function(){u.unbind(d)}};L.bind=f;var x=function(p){var d=(0,y.getSensor)(p);(0,y.removeSensor)(d)};L.clear=x;var A="1.0.2";L.ver=A},u6S6:function(R,L,r){var y=r("6acW"),f=r("sgoq"),x=f(function(A,m,p){return m=m.toLowerCase(),A+(p?y(m):m)});R.exports=x},u8Dt:function(R,L,r){var y=r("YESw"),f="__lodash_hash_undefined__",x=Object.prototype,A=x.hasOwnProperty;function m(p){var d=this.__data__;if(y){var u=d[p];return u===f?void 0:u}return A.call(d,p)?d[p]:void 0}R.exports=m},uAnK:function(R,L,r){var y=r("bYtY"),f=r("Kagy"),x=r("KxfA"),A=x.retrieveRawValue;function m(p,d){var u=d.getModel("aria");if(u.get("show")){if(u.get("description")){p.setAttribute("aria-label",u.get("description"));return}}else return;var a=0;d.eachSeries(function(b,S){++a},this);var i=u.get("data.maxCount")||10,t=u.get("series.maxCount")||10,s=Math.min(a,t),e;if(a<1)return;var l=g();l?e=c(h("general.withTitle"),{title:l}):e=h("general.withoutTitle");var n=[],o=a>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(o),{seriesCount:a}),d.eachSeries(function(b,S){if(S<s){var E,C=b.get("name"),_="series."+(a>1?"multiple":"single")+".";E=h(C?_+"withName":_+"withoutName"),E=c(E,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:v(b.subType)});var T=b.getData();window.data=T,T.count()>i?E+=c(h("data.partialData"),{displayCnt:i}):E+=h("data.allData");for(var w=[],O=0;O<T.count();O++)if(O<i){var I=T.getName(O),k=A(T,O);w.push(c(h(I?"data.withName":"data.withoutName"),{name:I,value:k}))}E+=w.join(h("data.separator.middle"))+h("data.separator.end"),n.push(E)}}),e+=n.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),p.setAttribute("aria-label",e);function c(b,S){if(typeof b!="string")return b;var E=b;return y.each(S,function(C,_){E=E.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),C)}),E}function h(b){var S=u.get(b);if(S==null){for(var E=b.split("."),C=f.aria,_=0;_<E.length;++_)C=C[E[_]];return C}else return S}function g(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function v(b){return f.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}R.exports=m},uEAt:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("p+BA"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},uGsb:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("MlIO"),r("1uat"))})(this,function(y){return function(){var f=y,x=f.x64,A=x.Word,m=x.WordArray,p=f.algo,d=p.SHA512,u=p.SHA384=d.extend({_doReset:function(){this._hash=new m.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var i=d._doFinalize.call(this);return i.sigBytes-=16,i}});f.SHA384=d._createHelper(u),f.HmacSHA384=d._createHmacHelper(u)}(),y.SHA384})},uGxW:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(R,L,r){(function(y,f){R.exports=f()})(this,function(){"use strict";function y(f,x,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var m=f||[],p=[],d=0;do{var u=m.filter(function(a){return x(a,d)})[0];if(!u)break;p.push(u),m=u[A.childrenKeyName]||[],d+=1}while(m.length>0);return p}return y})},uOyE:function(R,L,r){var y=r("ProS");y.registerAction({type:"brush",event:"brush"},function(f,x){x.eachComponent({mainType:"brush",query:f},function(A){A.setAreas(f.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(R,L,r){R.exports=y;function y(){return r("gaXo"),{}}},uciX:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("wx14"),x=r("1OyB"),A=r("vuIU"),m=r("JX7q"),p=r("Ji7U"),d=r("LK+K"),u=r("rePB"),a=r("q1tI"),i=r("i8i4"),t=r.n(i),s=r("wgJM"),e=r("l4aY"),l=r("m+aA"),n=r("c+Xe"),o=r("zT1h"),c=r("QC+M"),h=r("TSYQ"),g=r.n(h);function v(oe,rt,fe){return fe?oe[0]===rt[0]:oe[0]===rt[0]&&oe[1]===rt[1]}function b(oe,rt,fe){var J=oe[rt]||{};return Object(y.a)(Object(y.a)({},J),fe)}function S(oe,rt,fe,J){for(var Y=fe.points,$=Object.keys(oe),de=0;de<$.length;de+=1){var we=$[de];if(v(oe[we].points,Y,J))return"".concat(rt,"-placement-").concat(we)}return""}var E=r("ODXe"),C=r("Ff2n"),_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var oe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(oe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(oe==null?void 0:oe.substr(0,4))},T=r("8XRh");function w(oe){var rt=oe.prefixCls,fe=oe.motion,J=oe.animation,Y=oe.transitionName;return fe||(J?{motionName:"".concat(rt,"-").concat(J)}:Y?{motionName:Y}:null)}function O(oe){var rt=oe.prefixCls,fe=oe.visible,J=oe.zIndex,Y=oe.mask,$=oe.maskMotion,de=oe.maskAnimation,we=oe.maskTransitionName;if(!Y)return null;var Ce={};return($||we||de)&&(Ce=Object(y.a)({motionAppear:!0},w({motion:$,prefixCls:rt,transitionName:we,animation:de}))),a.createElement(T.b,Object(f.a)({},Ce,{visible:fe,removeOnLeave:!0}),function(Se){var le=Se.className;return a.createElement("div",{style:{zIndex:J},className:g()("".concat(rt,"-mask"),le)})})}var I=r("9mu1"),k=r("TNol"),M=r("U8pU");function U(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return rt};var oe,rt={},fe=Object.prototype,J=fe.hasOwnProperty,Y=Object.defineProperty||function(dt,Jt,$t){dt[Jt]=$t.value},$=typeof Symbol=="function"?Symbol:{},de=$.iterator||"@@iterator",we=$.asyncIterator||"@@asyncIterator",Ce=$.toStringTag||"@@toStringTag";function Se(dt,Jt,$t){return Object.defineProperty(dt,Jt,{value:$t,enumerable:!0,configurable:!0,writable:!0}),dt[Jt]}try{Se({},"")}catch(dt){Se=function($t,tn,kt){return $t[tn]=kt}}function le(dt,Jt,$t,tn){var kt=Jt&&Jt.prototype instanceof Zt?Jt:Zt,tr=Object.create(kt.prototype),Bt=new St(tn||[]);return Y(tr,"_invoke",{value:te(dt,$t,Bt)}),tr}function pe(dt,Jt,$t){try{return{type:"normal",arg:dt.call(Jt,$t)}}catch(tn){return{type:"throw",arg:tn}}}rt.wrap=le;var _e="suspendedStart",tt="suspendedYield",gt="executing",ct="completed",je={};function Zt(){}function ut(){}function Ht(){}var dr={};Se(dr,de,function(){return this});var Vt=Object.getPrototypeOf,Mt=Vt&&Vt(Vt(Qt([])));Mt&&Mt!==fe&&J.call(Mt,de)&&(dr=Mt);var Gt=Ht.prototype=Zt.prototype=Object.create(dr);function Ve(dt){["next","throw","return"].forEach(function(Jt){Se(dt,Jt,function($t){return this._invoke(Jt,$t)})})}function me(dt,Jt){function $t(kt,tr,Bt,ft){var it=pe(dt[kt],dt,tr);if(it.type!=="throw"){var Or=it.arg,an=Or.value;return an&&Object(M.a)(an)=="object"&&J.call(an,"__await")?Jt.resolve(an.__await).then(function(En){$t("next",En,Bt,ft)},function(En){$t("throw",En,Bt,ft)}):Jt.resolve(an).then(function(En){Or.value=En,Bt(Or)},function(En){return $t("throw",En,Bt,ft)})}ft(it.arg)}var tn;Y(this,"_invoke",{value:function(tr,Bt){function ft(){return new Jt(function(it,Or){$t(tr,Bt,it,Or)})}return tn=tn?tn.then(ft,ft):ft()}})}function te(dt,Jt,$t){var tn=_e;return function(kt,tr){if(tn===gt)throw new Error("Generator is already running");if(tn===ct){if(kt==="throw")throw tr;return{value:oe,done:!0}}for($t.method=kt,$t.arg=tr;;){var Bt=$t.delegate;if(Bt){var ft=Ze(Bt,$t);if(ft){if(ft===je)continue;return ft}}if($t.method==="next")$t.sent=$t._sent=$t.arg;else if($t.method==="throw"){if(tn===_e)throw tn=ct,$t.arg;$t.dispatchException($t.arg)}else $t.method==="return"&&$t.abrupt("return",$t.arg);tn=gt;var it=pe(dt,Jt,$t);if(it.type==="normal"){if(tn=$t.done?ct:tt,it.arg===je)continue;return{value:it.arg,done:$t.done}}it.type==="throw"&&(tn=ct,$t.method="throw",$t.arg=it.arg)}}}function Ze(dt,Jt){var $t=Jt.method,tn=dt.iterator[$t];if(tn===oe)return Jt.delegate=null,$t==="throw"&&dt.iterator.return&&(Jt.method="return",Jt.arg=oe,Ze(dt,Jt),Jt.method==="throw")||$t!=="return"&&(Jt.method="throw",Jt.arg=new TypeError("The iterator does not provide a '"+$t+"' method")),je;var kt=pe(tn,dt.iterator,Jt.arg);if(kt.type==="throw")return Jt.method="throw",Jt.arg=kt.arg,Jt.delegate=null,je;var tr=kt.arg;return tr?tr.done?(Jt[dt.resultName]=tr.value,Jt.next=dt.nextLoc,Jt.method!=="return"&&(Jt.method="next",Jt.arg=oe),Jt.delegate=null,je):tr:(Jt.method="throw",Jt.arg=new TypeError("iterator result is not an object"),Jt.delegate=null,je)}function Xe(dt){var Jt={tryLoc:dt[0]};1 in dt&&(Jt.catchLoc=dt[1]),2 in dt&&(Jt.finallyLoc=dt[2],Jt.afterLoc=dt[3]),this.tryEntries.push(Jt)}function ue(dt){var Jt=dt.completion||{};Jt.type="normal",delete Jt.arg,dt.completion=Jt}function St(dt){this.tryEntries=[{tryLoc:"root"}],dt.forEach(Xe,this),this.reset(!0)}function Qt(dt){if(dt||dt===""){var Jt=dt[de];if(Jt)return Jt.call(dt);if(typeof dt.next=="function")return dt;if(!isNaN(dt.length)){var $t=-1,tn=function kt(){for(;++$t<dt.length;)if(J.call(dt,$t))return kt.value=dt[$t],kt.done=!1,kt;return kt.value=oe,kt.done=!0,kt};return tn.next=tn}}throw new TypeError(Object(M.a)(dt)+" is not iterable")}return ut.prototype=Ht,Y(Gt,"constructor",{value:Ht,configurable:!0}),Y(Ht,"constructor",{value:ut,configurable:!0}),ut.displayName=Se(Ht,Ce,"GeneratorFunction"),rt.isGeneratorFunction=function(dt){var Jt=typeof dt=="function"&&dt.constructor;return!!Jt&&(Jt===ut||(Jt.displayName||Jt.name)==="GeneratorFunction")},rt.mark=function(dt){return Object.setPrototypeOf?Object.setPrototypeOf(dt,Ht):(dt.__proto__=Ht,Se(dt,Ce,"GeneratorFunction")),dt.prototype=Object.create(Gt),dt},rt.awrap=function(dt){return{__await:dt}},Ve(me.prototype),Se(me.prototype,we,function(){return this}),rt.AsyncIterator=me,rt.async=function(dt,Jt,$t,tn,kt){kt===void 0&&(kt=Promise);var tr=new me(le(dt,Jt,$t,tn),kt);return rt.isGeneratorFunction(Jt)?tr:tr.next().then(function(Bt){return Bt.done?Bt.value:tr.next()})},Ve(Gt),Se(Gt,Ce,"Generator"),Se(Gt,de,function(){return this}),Se(Gt,"toString",function(){return"[object Generator]"}),rt.keys=function(dt){var Jt=Object(dt),$t=[];for(var tn in Jt)$t.push(tn);return $t.reverse(),function kt(){for(;$t.length;){var tr=$t.pop();if(tr in Jt)return kt.value=tr,kt.done=!1,kt}return kt.done=!0,kt}},rt.values=Qt,St.prototype={constructor:St,reset:function(Jt){if(this.prev=0,this.next=0,this.sent=this._sent=oe,this.done=!1,this.delegate=null,this.method="next",this.arg=oe,this.tryEntries.forEach(ue),!Jt)for(var $t in this)$t.charAt(0)==="t"&&J.call(this,$t)&&!isNaN(+$t.slice(1))&&(this[$t]=oe)},stop:function(){this.done=!0;var Jt=this.tryEntries[0].completion;if(Jt.type==="throw")throw Jt.arg;return this.rval},dispatchException:function(Jt){if(this.done)throw Jt;var $t=this;function tn(Or,an){return Bt.type="throw",Bt.arg=Jt,$t.next=Or,an&&($t.method="next",$t.arg=oe),!!an}for(var kt=this.tryEntries.length-1;kt>=0;--kt){var tr=this.tryEntries[kt],Bt=tr.completion;if(tr.tryLoc==="root")return tn("end");if(tr.tryLoc<=this.prev){var ft=J.call(tr,"catchLoc"),it=J.call(tr,"finallyLoc");if(ft&&it){if(this.prev<tr.catchLoc)return tn(tr.catchLoc,!0);if(this.prev<tr.finallyLoc)return tn(tr.finallyLoc)}else if(ft){if(this.prev<tr.catchLoc)return tn(tr.catchLoc,!0)}else{if(!it)throw new Error("try statement without catch or finally");if(this.prev<tr.finallyLoc)return tn(tr.finallyLoc)}}}},abrupt:function(Jt,$t){for(var tn=this.tryEntries.length-1;tn>=0;--tn){var kt=this.tryEntries[tn];if(kt.tryLoc<=this.prev&&J.call(kt,"finallyLoc")&&this.prev<kt.finallyLoc){var tr=kt;break}}tr&&(Jt==="break"||Jt==="continue")&&tr.tryLoc<=$t&&$t<=tr.finallyLoc&&(tr=null);var Bt=tr?tr.completion:{};return Bt.type=Jt,Bt.arg=$t,tr?(this.method="next",this.next=tr.finallyLoc,je):this.complete(Bt)},complete:function(Jt,$t){if(Jt.type==="throw")throw Jt.arg;return Jt.type==="break"||Jt.type==="continue"?this.next=Jt.arg:Jt.type==="return"?(this.rval=this.arg=Jt.arg,this.method="return",this.next="end"):Jt.type==="normal"&&$t&&(this.next=$t),je},finish:function(Jt){for(var $t=this.tryEntries.length-1;$t>=0;--$t){var tn=this.tryEntries[$t];if(tn.finallyLoc===Jt)return this.complete(tn.completion,tn.afterLoc),ue(tn),je}},catch:function(Jt){for(var $t=this.tryEntries.length-1;$t>=0;--$t){var tn=this.tryEntries[$t];if(tn.tryLoc===Jt){var kt=tn.completion;if(kt.type==="throw"){var tr=kt.arg;ue(tn)}return tr}}throw new Error("illegal catch attempt")},delegateYield:function(Jt,$t,tn){return this.delegate={iterator:Qt(Jt),resultName:$t,nextLoc:tn},this.method==="next"&&(this.arg=oe),je}},rt}var P=r("HaE+"),X=r("dm2S"),F=["measure","alignPre","align",null,"motion"],j=function(oe,rt){var fe=Object(X.a)(null),J=Object(E.a)(fe,2),Y=J[0],$=J[1],de=Object(a.useRef)();function we(le){$(le,!0)}function Ce(){s.a.cancel(de.current)}function Se(le){Ce(),de.current=Object(s.a)(function(){we(function(pe){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return pe}),le==null||le()})}return Object(a.useEffect)(function(){we("measure")},[oe]),Object(a.useEffect)(function(){switch(Y){case"measure":rt();break;default:}Y&&(de.current=Object(s.a)(Object(P.a)(U().mark(function le(){var pe,_e;return U().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:pe=F.indexOf(Y),_e=F[pe+1],_e&&pe!==-1&&we(_e);case 3:case"end":return gt.stop()}},le)}))))},[Y]),Object(a.useEffect)(function(){return function(){Ce()}},[]),[Y,Se]},K=function(oe){var rt=a.useState({width:0,height:0}),fe=Object(E.a)(rt,2),J=fe[0],Y=fe[1];function $(we){var Ce=we.offsetWidth,Se=we.offsetHeight,le=we.getBoundingClientRect(),pe=le.width,_e=le.height;Math.abs(Ce-pe)<1&&Math.abs(Se-_e)<1&&(Ce=pe,Se=_e),Y({width:Ce,height:Se})}var de=a.useMemo(function(){var we={};if(oe){var Ce=J.width,Se=J.height;oe.indexOf("height")!==-1&&Se?we.height=Se:oe.indexOf("minHeight")!==-1&&Se&&(we.minHeight=Se),oe.indexOf("width")!==-1&&Ce?we.width=Ce:oe.indexOf("minWidth")!==-1&&Ce&&(we.minWidth=Ce)}return we},[oe,J]);return[de,$]},z=a.forwardRef(function(oe,rt){var fe=oe.visible,J=oe.prefixCls,Y=oe.className,$=oe.style,de=oe.children,we=oe.zIndex,Ce=oe.stretch,Se=oe.destroyPopupOnHide,le=oe.forceRender,pe=oe.align,_e=oe.point,tt=oe.getRootDomNode,gt=oe.getClassNameFromAlign,ct=oe.onAlign,je=oe.onMouseEnter,Zt=oe.onMouseLeave,ut=oe.onMouseDown,Ht=oe.onTouchStart,dr=oe.onClick,Vt=Object(a.useRef)(),Mt=Object(a.useRef)(),Gt=Object(a.useState)(),Ve=Object(E.a)(Gt,2),me=Ve[0],te=Ve[1],Ze=K(Ce),Xe=Object(E.a)(Ze,2),ue=Xe[0],St=Xe[1];function Qt(){Ce&&St(tt())}var dt=j(fe,Qt),Jt=Object(E.a)(dt,2),$t=Jt[0],tn=Jt[1],kt=Object(a.useState)(0),tr=Object(E.a)(kt,2),Bt=tr[0],ft=tr[1],it=Object(a.useRef)();Object(k.a)(function(){$t==="alignPre"&&ft(0)},[$t]);function Or(){return _e||tt}function an(){var wt;(wt=Vt.current)===null||wt===void 0||wt.forceAlign()}function En(wt,De){var Re=gt(De);me!==Re&&te(Re),ft(function(Me){return Me+1}),$t==="align"&&(ct==null||ct(wt,De))}Object(k.a)(function(){$t==="align"&&(Bt<3?an():tn(function(){var wt;(wt=it.current)===null||wt===void 0||wt.call(it)}))},[Bt]);var Bn=Object(y.a)({},w(oe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(wt){var De=Bn[wt];Bn[wt]=function(Re,Me){return tn(),De==null?void 0:De(Re,Me)}});function vi(){return new Promise(function(wt){it.current=wt})}a.useEffect(function(){!Bn.motionName&&$t==="motion"&&tn()},[Bn.motionName,$t]),a.useImperativeHandle(rt,function(){return{forceAlign:an,getElement:function(){return Mt.current}}});var Ln=Object(y.a)(Object(y.a)({},ue),{},{zIndex:we,opacity:$t==="motion"||$t==="stable"||!fe?void 0:0,pointerEvents:!fe&&$t!=="stable"?"none":void 0},$),Mn=!0;pe!=null&&pe.points&&($t==="align"||$t==="stable")&&(Mn=!1);var Xt=de;return a.Children.count(de)>1&&(Xt=a.createElement("div",{className:"".concat(J,"-content")},de)),a.createElement(T.b,Object(f.a)({visible:fe,ref:Mt,leavedClassName:"".concat(J,"-hidden")},Bn,{onAppearPrepare:vi,onEnterPrepare:vi,removeOnLeave:Se,forceRender:le}),function(wt,De){var Re=wt.className,Me=wt.style,nt=g()(J,Y,me,Re);return a.createElement(I.a,{target:Or(),key:"popup",ref:Vt,monitorWindowResize:!0,disabled:Mn,align:pe,onAlign:En},a.createElement("div",{ref:De,className:nt,onMouseEnter:je,onMouseLeave:Zt,onMouseDownCapture:ut,onTouchStartCapture:Ht,onClick:dr,style:Object(y.a)(Object(y.a)({},Me),Ln)},Xt))})});z.displayName="PopupInner";var V=z,Q=a.forwardRef(function(oe,rt){var fe=oe.prefixCls,J=oe.visible,Y=oe.zIndex,$=oe.children,de=oe.mobile;de=de===void 0?{}:de;var we=de.popupClassName,Ce=de.popupStyle,Se=de.popupMotion,le=Se===void 0?{}:Se,pe=de.popupRender,_e=oe.onClick,tt=a.useRef();a.useImperativeHandle(rt,function(){return{forceAlign:function(){},getElement:function(){return tt.current}}});var gt=Object(y.a)({zIndex:Y},Ce),ct=$;return a.Children.count($)>1&&(ct=a.createElement("div",{className:"".concat(fe,"-content")},$)),pe&&(ct=pe(ct)),a.createElement(T.b,Object(f.a)({visible:J,ref:tt,removeOnLeave:!0},le),function(je,Zt){var ut=je.className,Ht=je.style,dr=g()(fe,we,ut);return a.createElement("div",{ref:Zt,className:dr,onClick:_e,style:Object(y.a)(Object(y.a)({},Ht),gt)},ct)})});Q.displayName="MobilePopupInner";var G=Q,ee=["visible","mobile"],se=a.forwardRef(function(oe,rt){var fe=oe.visible,J=oe.mobile,Y=Object(C.a)(oe,ee),$=Object(a.useState)(fe),de=Object(E.a)($,2),we=de[0],Ce=de[1],Se=Object(a.useState)(!1),le=Object(E.a)(Se,2),pe=le[0],_e=le[1],tt=Object(y.a)(Object(y.a)({},Y),{},{visible:we});Object(a.useEffect)(function(){Ce(fe),fe&&J&&_e(_())},[fe,J]);var gt=pe?a.createElement(G,Object(f.a)({},tt,{mobile:J,ref:rt})):a.createElement(V,Object(f.a)({},tt,{ref:rt}));return a.createElement("div",null,a.createElement(O,tt),gt)});se.displayName="Popup";var ye=se,he=a.createContext(null),ke=he;function Pe(){}function Ue(){return""}function $e(oe){return oe?oe.ownerDocument:window.document}var Ge=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ht(oe){var rt=function(fe){Object(p.a)(Y,fe);var J=Object(d.a)(Y);function Y($){var de;Object(x.a)(this,Y),de=J.call(this,$),Object(u.a)(Object(m.a)(de),"popupRef",a.createRef()),Object(u.a)(Object(m.a)(de),"triggerRef",a.createRef()),Object(u.a)(Object(m.a)(de),"portalContainer",void 0),Object(u.a)(Object(m.a)(de),"attachId",void 0),Object(u.a)(Object(m.a)(de),"clickOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"touchOutsideHandler",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler1",void 0),Object(u.a)(Object(m.a)(de),"contextMenuOutsideHandler2",void 0),Object(u.a)(Object(m.a)(de),"mouseDownTimeout",void 0),Object(u.a)(Object(m.a)(de),"focusTime",void 0),Object(u.a)(Object(m.a)(de),"preClickTime",void 0),Object(u.a)(Object(m.a)(de),"preTouchTime",void 0),Object(u.a)(Object(m.a)(de),"delayTimer",void 0),Object(u.a)(Object(m.a)(de),"hasPopupMouseDown",void 0),Object(u.a)(Object(m.a)(de),"onMouseEnter",function(Ce){var Se=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Ce),de.delaySetPopupVisible(!0,Se,Se?null:Ce)}),Object(u.a)(Object(m.a)(de),"onMouseMove",function(Ce){de.fireEvents("onMouseMove",Ce),de.setPoint(Ce)}),Object(u.a)(Object(m.a)(de),"onMouseLeave",function(Ce){de.fireEvents("onMouseLeave",Ce),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onPopupMouseEnter",function(){de.clearDelayTimer()}),Object(u.a)(Object(m.a)(de),"onPopupMouseLeave",function(Ce){var Se;if(Ce.relatedTarget&&!Ce.relatedTarget.setTimeout&&Object(e.a)((Se=de.popupRef.current)===null||Se===void 0?void 0:Se.getElement(),Ce.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)}),Object(u.a)(Object(m.a)(de),"onFocus",function(Ce){de.fireEvents("onFocus",Ce),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))}),Object(u.a)(Object(m.a)(de),"onMouseDown",function(Ce){de.fireEvents("onMouseDown",Ce),de.preClickTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onTouchStart",function(Ce){de.fireEvents("onTouchStart",Ce),de.preTouchTime=Date.now()}),Object(u.a)(Object(m.a)(de),"onBlur",function(Ce){de.fireEvents("onBlur",Ce),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)}),Object(u.a)(Object(m.a)(de),"onContextMenu",function(Ce){Ce.preventDefault(),de.fireEvents("onContextMenu",Ce),de.setPopupVisible(!0,Ce)}),Object(u.a)(Object(m.a)(de),"onContextMenuClose",function(){de.isContextMenuToShow()&&de.close()}),Object(u.a)(Object(m.a)(de),"onClick",function(Ce){if(de.fireEvents("onClick",Ce),de.focusTime){var Se;if(de.preClickTime&&de.preTouchTime?Se=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?Se=de.preClickTime:de.preTouchTime&&(Se=de.preTouchTime),Math.abs(Se-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Ce&&Ce.preventDefault&&Ce.preventDefault();var le=!de.state.popupVisible;(de.isClickToHide()&&!le||le&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Ce)}),Object(u.a)(Object(m.a)(de),"onPopupMouseDown",function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Ce;(Ce=de.context).onPopupMouseDown.apply(Ce,arguments)}}),Object(u.a)(Object(m.a)(de),"onDocumentClick",function(Ce){if(de.props.mask&&!de.props.maskClosable)return;var Se=Ce.target,le=de.getRootDomNode(),pe=de.getPopupDomNode();(!Object(e.a)(le,Se)||de.isContextMenuOnly())&&!Object(e.a)(pe,Se)&&!de.hasPopupMouseDown&&de.close()}),Object(u.a)(Object(m.a)(de),"getRootDomNode",function(){var Ce=de.props.getTriggerDOMNode;if(Ce)return Ce(de.triggerRef.current);try{var Se=Object(l.a)(de.triggerRef.current);if(Se)return Se}catch(le){}return t.a.findDOMNode(Object(m.a)(de))}),Object(u.a)(Object(m.a)(de),"getPopupClassNameFromAlign",function(Ce){var Se=[],le=de.props,pe=le.popupPlacement,_e=le.builtinPlacements,tt=le.prefixCls,gt=le.alignPoint,ct=le.getPopupClassNameFromAlign;return pe&&_e&&Se.push(S(_e,tt,Ce,gt)),ct&&Se.push(ct(Ce)),Se.join(" ")}),Object(u.a)(Object(m.a)(de),"getComponent",function(){var Ce=de.props,Se=Ce.prefixCls,le=Ce.destroyPopupOnHide,pe=Ce.popupClassName,_e=Ce.onPopupAlign,tt=Ce.popupMotion,gt=Ce.popupAnimation,ct=Ce.popupTransitionName,je=Ce.popupStyle,Zt=Ce.mask,ut=Ce.maskAnimation,Ht=Ce.maskTransitionName,dr=Ce.maskMotion,Vt=Ce.zIndex,Mt=Ce.popup,Gt=Ce.stretch,Ve=Ce.alignPoint,me=Ce.mobile,te=Ce.forceRender,Ze=Ce.onPopupClick,Xe=de.state,ue=Xe.popupVisible,St=Xe.point,Qt=de.getPopupAlign(),dt={};return de.isMouseEnterToShow()&&(dt.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&(dt.onMouseLeave=de.onPopupMouseLeave),dt.onMouseDown=de.onPopupMouseDown,dt.onTouchStart=de.onPopupMouseDown,a.createElement(ye,Object(f.a)({prefixCls:Se,destroyPopupOnHide:le,visible:ue,point:Ve&&St,className:pe,align:Qt,onAlign:_e,animation:gt,getClassNameFromAlign:de.getPopupClassNameFromAlign},dt,{stretch:Gt,getRootDomNode:de.getRootDomNode,style:je,mask:Zt,zIndex:Vt,transitionName:ct,maskAnimation:ut,maskTransitionName:Ht,maskMotion:dr,ref:de.popupRef,motion:tt,mobile:me,forceRender:te,onClick:Ze}),typeof Mt=="function"?Mt():Mt)}),Object(u.a)(Object(m.a)(de),"attachParent",function(Ce){s.a.cancel(de.attachId);var Se=de.props,le=Se.getPopupContainer,pe=Se.getDocument,_e=de.getRootDomNode(),tt;le?(_e||le.length===0)&&(tt=le(_e)):tt=pe(de.getRootDomNode()).body,tt?tt.appendChild(Ce):de.attachId=Object(s.a)(function(){de.attachParent(Ce)})}),Object(u.a)(Object(m.a)(de),"getContainer",function(){if(!de.portalContainer){var Ce=de.props.getDocument,Se=Ce(de.getRootDomNode()).createElement("div");Se.style.position="absolute",Se.style.top="0",Se.style.left="0",Se.style.width="100%",de.portalContainer=Se}return de.attachParent(de.portalContainer),de.portalContainer}),Object(u.a)(Object(m.a)(de),"setPoint",function(Ce){var Se=de.props.alignPoint;if(!Se||!Ce)return;de.setState({point:{pageX:Ce.pageX,pageY:Ce.pageY}})}),Object(u.a)(Object(m.a)(de),"handlePortalUpdate",function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)}),Object(u.a)(Object(m.a)(de),"triggerContextValue",{onPopupMouseDown:de.onPopupMouseDown});var we;return"popupVisible"in $?we=!!$.popupVisible:we=!!$.defaultPopupVisible,de.state={prevPopupVisible:we,popupVisible:we},Ge.forEach(function(Ce){de["fire".concat(Ce)]=function(Se){de.fireEvents(Ce,Se)}}),de}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,we=this.state;if(we.popupVisible){var Ce;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ce=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(o.a)(Ce,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ce=Ce||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(o.a)(Ce,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ce=Ce||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(o.a)(Ce,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(o.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),s.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var de;return((de=this.popupRef.current)===null||de===void 0?void 0:de.getElement())||null}},{key:"getPopupAlign",value:function(){var de=this.props,we=de.popupPlacement,Ce=de.popupAlign,Se=de.builtinPlacements;return we&&Se?b(Se,we,Ce):Ce}},{key:"setPopupVisible",value:function(de,we){var Ce=this.props.alignPoint,Se=this.state.popupVisible;this.clearDelayTimer(),Se!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:Se}),this.props.onPopupVisibleChange(de)),Ce&&we&&de&&this.setPoint(we)}},{key:"delaySetPopupVisible",value:function(de,we,Ce){var Se=this,le=we*1e3;if(this.clearDelayTimer(),le){var pe=Ce?{pageX:Ce.pageX,pageY:Ce.pageY}:null;this.delayTimer=window.setTimeout(function(){Se.setPopupVisible(de,pe),Se.clearDelayTimer()},le)}else this.setPopupVisible(de,Ce)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(de){var we=this.props.children.props,Ce=this.props;return we[de]&&Ce[de]?this["fire".concat(de)]:we[de]||Ce[de]}},{key:"isClickToShow",value:function(){var de=this.props,we=de.action,Ce=de.showAction;return we.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var de=this.props.action;return de==="contextMenu"||de.length===1&&de[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var de=this.props,we=de.action,Ce=de.showAction;return we.indexOf("contextMenu")!==-1||Ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,we=de.action,Ce=de.hideAction;return we.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,we=de.action,Ce=de.showAction;return we.indexOf("hover")!==-1||Ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,we=de.action,Ce=de.hideAction;return we.indexOf("hover")!==-1||Ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,we=de.action,Ce=de.showAction;return we.indexOf("focus")!==-1||Ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,we=de.action,Ce=de.hideAction;return we.indexOf("focus")!==-1||Ce.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var de;(de=this.popupRef.current)===null||de===void 0||de.forceAlign()}}},{key:"fireEvents",value:function(de,we){var Ce=this.props.children.props[de];Ce&&Ce(we);var Se=this.props[de];Se&&Se(we)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,we=this.props,Ce=we.children,Se=we.forceRender,le=we.alignPoint,pe=we.className,_e=we.autoDestroy,tt=a.Children.only(Ce),gt={key:"trigger"};this.isContextMenuToShow()?gt.onContextMenu=this.onContextMenu:gt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(gt.onClick=this.onClick,gt.onMouseDown=this.onMouseDown,gt.onTouchStart=this.onTouchStart):(gt.onClick=this.createTwoChains("onClick"),gt.onMouseDown=this.createTwoChains("onMouseDown"),gt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(gt.onMouseEnter=this.onMouseEnter,le&&(gt.onMouseMove=this.onMouseMove)):gt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?gt.onMouseLeave=this.onMouseLeave:gt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(gt.onFocus=this.onFocus,gt.onBlur=this.onBlur):(gt.onFocus=this.createTwoChains("onFocus"),gt.onBlur=this.createTwoChains("onBlur"));var ct=g()(tt&&tt.props&&tt.props.className,pe);ct&&(gt.className=ct);var je=Object(y.a)({},gt);Object(n.c)(tt)&&(je.ref=Object(n.a)(this.triggerRef,tt.ref));var Zt=a.cloneElement(tt,je),ut;return(de||this.popupRef.current||Se)&&(ut=a.createElement(oe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&_e&&(ut=null),a.createElement(ke.Provider,{value:this.triggerContextValue},Zt,ut)}}],[{key:"getDerivedStateFromProps",value:function(de,we){var Ce=de.popupVisible,Se={};return Ce!==void 0&&we.popupVisible!==Ce&&(Se.popupVisible=Ce,Se.prevPopupVisible=we.popupVisible),Se}}]),Y}(a.Component);return Object(u.a)(rt,"contextType",ke),Object(u.a)(rt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ue,getDocument:$e,onPopupVisibleChange:Pe,afterPopupVisibleChange:Pe,onPopupAlign:Pe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),rt}var Fe=L.a=ht(c.a)},ugBc:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};L.default=y},v56E:function(R,L,r){},v5uJ:function(R,L,r){var y=r("ProS"),f=r("2B6p"),x=f.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(p){var d=A.dataIndex,u=p.getData().tree,a=u.getNodeByDataIndex(d);a.isExpand=!a.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(p){var d=p.coordinateSystem,u=x(d,A);p.setCenter&&p.setCenter(u.center),p.setZoom&&p.setZoom(u.zoom)})})},"vF/C":function(R,L,r){var y=r("bLfw");y.registerSubTypeDefaulter("visualMap",function(f){return!f.categories&&(!(f.pieces?f.pieces.length>0:f.splitNumber>0)||f.calculable)?"continuous":"piecewise"})},vKoX:function(R,L,r){var y=r("SrGk"),f=r("bYtY");function x(p,d){y.call(this,p,d,["filter"],"__filter_in_use__","_shadowDom")}f.inherits(x,y),x.prototype.addWithoutUpdate=function(p,d){if(d&&A(d.style)){var u;if(d._shadowDom){u=d._shadowDom;var a=this.getDefs(!0);a.contains(d._shadowDom)||this.addDom(u)}else u=this.add(d);this.markUsed(d);var i=u.getAttribute("id");p.style.filter="url(#"+i+")"}},x.prototype.add=function(p){var d=this.createElement("filter");return p._shadowDomId=p._shadowDomId||this.nextId++,d.setAttribute("id","zr"+this._zrId+"-shadow-"+p._shadowDomId),this.updateDom(p,d),this.addDom(d),d},x.prototype.update=function(p,d){var u=d.style;if(A(u)){var a=this;y.prototype.update.call(this,d,function(){a.updateDom(d,d._shadowDom)})}else this.remove(p,d)},x.prototype.remove=function(p,d){d._shadowDomId!=null&&(this.removeDom(p),p.style.filter="")},x.prototype.updateDom=function(p,d){var u=d.getElementsByTagName("feDropShadow");u.length===0?u=this.createElement("feDropShadow"):u=u[0];var a=p.style,i=p.scale&&p.scale[0]||1,t=p.scale&&p.scale[1]||1,s,e,l,n;if(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)s=a.shadowOffsetX||0,e=a.shadowOffsetY||0,l=a.shadowBlur,n=a.shadowColor;else if(a.textShadowBlur)s=a.textShadowOffsetX||0,e=a.textShadowOffsetY||0,l=a.textShadowBlur,n=a.textShadowColor;else{this.removeDom(d,a);return}u.setAttribute("dx",s/i),u.setAttribute("dy",e/t),u.setAttribute("flood-color",n);var o=l/2/i,c=l/2/t,h=o+" "+c;u.setAttribute("stdDeviation",h),d.setAttribute("x","-100%"),d.setAttribute("y","-100%"),d.setAttribute("width",Math.ceil(l/2*200)+"%"),d.setAttribute("height",Math.ceil(l/2*200)+"%"),d.appendChild(u),p._shadowDom=d},x.prototype.markUsed=function(p){p._shadowDom&&y.prototype.markUsed.call(this,p._shadowDom)};function A(p){return p&&(p.shadowBlur||p.shadowOffsetX||p.shadowOffsetY||p.textShadowBlur||p.textShadowOffsetX||p.textShadowOffsetY)}var m=x;R.exports=m},vL6D:function(R,L,r){var y=r("bYtY"),f=r("+rIm"),x=r("IwbS"),A=r("7bkD"),m=r("Znkb"),p=r("WN+l"),d=p.rectCoordAxisBuildSplitArea,u=p.rectCoordAxisHandleRemove,a=["axisLine","axisTickLabel","axisName"],i=["splitArea","splitLine"],t=m.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,n,o){var c=this.group;c.removeAll();var h=this._axisGroup;this._axisGroup=new x.Group;var g=A.layout(e),v=new f(e,g);y.each(a,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),y.each(i,function(b){e.get(b+".show")&&this["_"+b](e)},this),x.groupTransition(h,this._axisGroup,e),t.superCall(this,"render",e,l,n,o)},remove:function(){u(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var n=e.getModel("splitLine"),o=n.getModel("lineStyle"),c=o.get("width"),h=o.get("color");h=h instanceof Array?h:[h];for(var g=e.coordinateSystem.getRect(),v=l.isHorizontal(),b=[],S=0,E=l.getTicksCoords({tickModel:n}),C=[],_=[],T=0;T<E.length;++T){var w=l.toGlobalCoord(E[T].coord);v?(C[0]=w,C[1]=g.y,_[0]=w,_[1]=g.y+g.height):(C[0]=g.x,C[1]=w,_[0]=g.x+g.width,_[1]=w);var O=S++%h.length;b[O]=b[O]||[],b[O].push(new x.Line({subPixelOptimize:!0,shape:{x1:C[0],y1:C[1],x2:_[0],y2:_[1]},style:{lineWidth:c},silent:!0}))}for(var T=0;T<b.length;++T)this.group.add(x.mergePath(b[T],{style:{stroke:h[T%h.length],lineDash:o.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),s=t;R.exports=s},vWvF:function(R,L,r){var y=r("Bq2U"),f=r("SUKs"),x=r("bYtY"),A=x.isString,m=x.isFunction,p=x.isObject,d=x.isArrayLike,u=x.indexOf,a=function(){this.animators=[]};a.prototype={constructor:a,animate:function(n,o){var c,h=!1,g=this,v=this.__zr;if(n){var b=n.split("."),S=g;h=b[0]==="shape";for(var E=0,C=b.length;E<C;E++){if(!S)continue;S=S[b[E]]}S&&(c=S)}else c=g;if(!c){f('Property "'+n+'" is not existed in element '+g.id);return}var _=g.animators,T=new y(c,o);return T.during(function(w){g.dirty(h)}).done(function(){_.splice(u(_,T),1)}),_.push(T),v&&v.animation.addAnimator(T),T},stopAnimation:function(n){for(var o=this.animators,c=o.length,h=0;h<c;h++)o[h].stop(n);return o.length=0,this},animateTo:function(n,o,c,h,g,v){i(this,n,o,c,h,g,v)},animateFrom:function(n,o,c,h,g,v){i(this,n,o,c,h,g,v,!0)}};function i(l,n,o,c,h,g,v,b){A(c)?(g=h,h=c,c=0):m(h)?(g=h,h="linear",c=0):m(c)?(g=c,c=0):m(o)?(g=o,o=500):o||(o=500),l.stopAnimation(),t(l,"",l,n,o,c,b);var S=l.animators.slice(),E=S.length;function C(){E--,E||g&&g()}E||g&&g();for(var _=0;_<S.length;_++)S[_].done(C).start(h,v)}function t(l,n,o,c,h,g,v){var b={},S=0;for(var E in c){if(!c.hasOwnProperty(E))continue;o[E]!=null?p(c[E])&&!d(c[E])?t(l,n?n+"."+E:E,o[E],c[E],h,g,v):(v?(b[E]=o[E],s(l,n,E,c[E])):b[E]=c[E],S++):c[E]!=null&&!v&&s(l,n,E,c[E])}S>0&&l.animate(n,!1).when(h==null?500:h,b).delay(g||0)}function s(l,n,o,c){if(!n)l.attr(o,c);else{var h={};h[n]={},h[n][o]=c,l.attr(h)}}var e=a;R.exports=e},vZ6x:function(R,L,r){var y=r("Tghj"),f=y.__DEV__,x=r("bYtY"),A=r("IwbS"),m=r("4NO4"),p=r("9KIM"),d=x.each,u=x.indexOf,a=x.curry,i=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function s(T,w,O){var I=this._targetInfoList=[],k={},M=n(w,T);d(o,function(U,P){(!O||!O.include||u(O.include,P)>=0)&&U(M,I,k)})}var e=s.prototype;e.setOutputRanges=function(T,w){this.matchOutputRanges(T,w,function(O,I,k){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var M=g[O.brushType](0,k,I);O.__rangeOffset={offset:b[O.brushType](M.values,O.range,[1,1]),xyMinMax:M.xyMinMax}}})},e.matchOutputRanges=function(T,w,O){d(T,function(I){var k=this.findTargetInfo(I,w);k&&k!==!0&&x.each(k.coordSyses,function(M){var U=g[I.brushType](1,M,I.range);O(I,U.values,M,w)})},this)},e.setInputRanges=function(T,w){d(T,function(O){var I=this.findTargetInfo(O,w);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var k=g[O.brushType](0,I.coordSys,O.coordRange),M=O.__rangeOffset;O.range=M?b[O.brushType](k.values,M.offset,E(k.xyMinMax,M.xyMinMax)):k.values}},this)},e.makePanelOpts=function(T,w){return x.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:w&&w(O),clipPath:p.makeRectPanelClipPath(I),isTargetByCursor:p.makeRectIsTargetByCursor(I,T,O.coordSysModel),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(T,w,O){var I=this.findTargetInfo(T,O);return I===!0||I&&u(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(T,w){for(var O=this._targetInfoList,I=n(w,T),k=0;k<O.length;k++){var M=O[k],U=T.panelId;if(U){if(M.panelId===U)return M}else for(var k=0;k<c.length;k++)if(c[k](I,M))return M}return!0};function l(T){return T[0]>T[1]&&T.reverse(),T}function n(T,w){return m.parseFinder(T,w,{includeMainTypes:t})}var o={grid:function(T,w){var O=T.xAxisModels,I=T.yAxisModels,k=T.gridModels,M=x.createHashMap(),U={},P={};if(!O&&!I&&!k)return;d(O,function(X){var F=X.axis.grid.model;M.set(F.id,F),U[F.id]=!0}),d(I,function(X){var F=X.axis.grid.model;M.set(F.id,F),P[F.id]=!0}),d(k,function(X){M.set(X.id,X),U[X.id]=!0,P[X.id]=!0}),M.each(function(X){var F=X.coordinateSystem,j=[];d(F.getCartesians(),function(K,z){(u(O,K.getAxis("x").model)>=0||u(I,K.getAxis("y").model)>=0)&&j.push(K)}),w.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:j[0],coordSyses:j,getPanelRect:h.grid,xAxisDeclared:U[X.id],yAxisDeclared:P[X.id]})})},geo:function(T,w){d(T.geoModels,function(O){var I=O.coordinateSystem;w.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:h.geo})})}},c=[function(T,w){var O=T.xAxisModel,I=T.yAxisModel,k=T.gridModel;return!k&&O&&(k=O.axis.grid.model),!k&&I&&(k=I.axis.grid.model),k&&k===w.gridModel},function(T,w){var O=T.geoModel;return O&&O===w.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var T=this.coordSys,w=T.getBoundingRect().clone();return w.applyTransform(A.getTransform(T)),w}},g={lineX:a(v,0),lineY:a(v,1),rect:function(T,w,O){var I=w[i[T]]([O[0][0],O[1][0]]),k=w[i[T]]([O[0][1],O[1][1]]),M=[l([I[0],k[0]]),l([I[1],k[1]])];return{values:M,xyMinMax:M}},polygon:function(T,w,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],k=x.map(O,function(M){var U=w[i[T]](M);return I[0][0]=Math.min(I[0][0],U[0]),I[1][0]=Math.min(I[1][0],U[1]),I[0][1]=Math.max(I[0][1],U[0]),I[1][1]=Math.max(I[1][1],U[1]),U});return{values:k,xyMinMax:I}}};function v(T,w,O,I){var k=O.getAxis(["x","y"][T]),M=l(x.map([0,1],function(P){return w?k.coordToData(k.toLocalCoord(I[P])):k.toGlobalCoord(k.dataToCoord(I[P]))})),U=[];return U[T]=M,U[1-T]=[NaN,NaN],{values:M,xyMinMax:U}}var b={lineX:a(S,0),lineY:a(S,1),rect:function(T,w,O){return[[T[0][0]-O[0]*w[0][0],T[0][1]-O[0]*w[0][1]],[T[1][0]-O[1]*w[1][0],T[1][1]-O[1]*w[1][1]]]},polygon:function(T,w,O){return x.map(T,function(I,k){return[I[0]-O[0]*w[k][0],I[1]-O[1]*w[k][1]]})}};function S(T,w,O,I){return[w[0]-I[T]*O[0],w[1]-I[T]*O[1]]}function E(T,w){var O=C(T),I=C(w),k=[O[0]/I[0],O[1]/I[1]];return isNaN(k[0])&&(k[0]=1),isNaN(k[1])&&(k[1]=1),k}function C(T){return T?[T[0][1]-T[0][0],T[1][1]-T[1][0]]:[NaN,NaN]}var _=s;R.exports=_},vZI5:function(R,L,r){var y=r("bYtY"),f=r("T4UG"),x=r("5GhG"),A=x.seriesModelMixin,m=f.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(d,u,a){var i=u.getItemLayout(d);return i&&a.rect(i.brushRect)}});y.mixin(m,A,!0);var p=m;R.exports=p},vafp:function(R,L,r){var y=r("bYtY"),f=r("8nly");function x(p){if(!p.UTF8Encoding)return p;var d=p.UTF8Scale;d==null&&(d=1024);for(var u=p.features,a=0;a<u.length;a++)for(var i=u[a],t=i.geometry,s=t.coordinates,e=t.encodeOffsets,l=0;l<s.length;l++){var n=s[l];if(t.type==="Polygon")s[l]=A(n,e[l],d);else if(t.type==="MultiPolygon")for(var o=0;o<n.length;o++){var c=n[o];n[o]=A(c,e[l][o],d)}}return p.UTF8Encoding=!1,p}function A(p,d,u){for(var a=[],i=d[0],t=d[1],s=0;s<p.length;s+=2){var e=p.charCodeAt(s)-64,l=p.charCodeAt(s+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=i,l+=t,i=e,t=l,a.push([e/u,l/u])}return a}function m(p,d){return x(p),y.map(y.filter(p.features,function(u){return u.geometry&&u.properties&&u.geometry.coordinates.length>0}),function(u){var a=u.properties,i=u.geometry,t=i.coordinates,s=[];i.type==="Polygon"&&s.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),i.type==="MultiPolygon"&&y.each(t,function(l){l[0]&&s.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new f(a[d||"name"],s,a.cp);return e.properties=a,e})}R.exports=m},vcCh:function(R,L,r){var y=r("ProS");r("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(f,x){x.eachComponent({mainType:"series",subType:"sankey",query:f},function(A){A.setNodePosition(f.dataIndex,[f.localX,f.localY])})})},vewr:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.getPointerEvent=y,L.stopEvent=f,L.setCapture=u,L.releaseCapture=a;function y(i){return i.changedTouches?i.changedTouches[0]:i.touches?i.touches[0]:i}function f(i){i.stopPropagation(),i.preventDefault()}var x=!1,A=null;document.captureElement=null;function m(i){if(x)return;var t=new i.constructor(i.type,i);x=!0,document.captureElement?document.captureElement.dispatchEvent(t):A.dispatchEvent(t),x=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&a()}function p(){var i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(p);function u(i){if(i.setCapture)i.setCapture(),document.captureElement=i,i.addEventListener("mouseup",a);else{a();var t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",m),t.addEventListener("mousemove",m),t.addEventListener("mouseup",m)),document.captureElement=i,d.observe(i,{attributes:!0}),p(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,d.disconnect();var i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(R,L,r){},w4Tj:function(R,L,r){"use strict";r.d(L,"a",function(){return x});var y=r("oZsa");function f(A,m){for(;!Object.prototype.hasOwnProperty.call(A,m)&&!(A=Object(y.a)(A),A===null););return A}function x(A,m,p){return typeof Reflect!="undefined"&&Reflect.get?x=Reflect.get:x=function(u,a,i){var t=f(u,a);if(!t)return;var s=Object.getOwnPropertyDescriptor(t,a);return s.get?s.get.call(i):s.value},x(A,m,p||A)}},w5pM:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="PlusCircleOutlined";var d=L.a=f.forwardRef(p)},w7YG:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.StreamCipher,m=f.algo,p=m.RC4=A.extend({_doReset:function(){for(var i=this._key,t=i.words,s=i.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,n=0;l<256;l++){var o=l%s,c=t[o>>>2]>>>24-o%4*8&255;n=(n+e[l]+c)%256;var h=e[l];e[l]=e[n],e[n]=h}this._i=this._j=0},_doProcessBlock:function(i,t){i[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var a=this._S,i=this._i,t=this._j,s=0,e=0;e<4;e++){i=(i+1)%256,t=(t+a[i])%256;var l=a[i];a[i]=a[t],a[t]=l,s|=a[(a[i]+a[t])%256]<<24-e*8}return this._i=i,this._j=t,s}f.RC4=A._createHelper(p);var u=m.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)d.call(this)}});f.RC4Drop=A._createHelper(u)}(),y.RC4})},wCAj:function(R,L,r){"use strict";var y=r("cDf5"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("J4zp"),p=r.n(m),d=r("pVnL"),u=r.n(d),a=r("q1tI"),i=r("TSYQ"),t=r.n(i),s=r("BGR+"),e=r("rePB"),l=r("VTBJ"),n=r("KQm4"),o=r("U8pU"),c=r("ODXe"),h=r("Gytx"),g=r.n(h),v=r("Kwbf"),b=r("1OyB"),S=r("vuIU"),E=r("Ji7U"),C=r("LK+K"),_=r("m+aA"),T=r("Zm9Q"),w=r("c+Xe"),O=r("bdgK"),I="rc-observer-key",k=function(_t){Object(E.a)(Lr,_t);var _r=Object(C.a)(Lr);function Lr(){var en;return Object(b.a)(this,Lr),en=_r.apply(this,arguments),en.resizeObserver=null,en.childNode=null,en.currentElement=null,en.state={width:0,height:0,offsetHeight:0,offsetWidth:0},en.onResize=function(bn){var On=en.props.onResize,yn=bn[0].target,qn=yn.getBoundingClientRect(),Hn=qn.width,pi=qn.height,Fi=yn.offsetWidth,wi=yn.offsetHeight,Oi=Math.floor(Hn),zi=Math.floor(pi);if(en.state.width!==Oi||en.state.height!==zi||en.state.offsetWidth!==Fi||en.state.offsetHeight!==wi){var ea={width:Oi,height:zi,offsetWidth:Fi,offsetHeight:wi};en.setState(ea),On&&Promise.resolve().then(function(){On(Object(l.a)(Object(l.a)({},ea),{},{offsetWidth:Fi,offsetHeight:wi}))})}},en.setChildNode=function(bn){en.childNode=bn},en}return Object(S.a)(Lr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var bn=this.props.disabled;if(bn){this.destroyObserver();return}var On=Object(_.a)(this.childNode||this),yn=On!==this.currentElement;yn&&(this.destroyObserver(),this.currentElement=On),!this.resizeObserver&&On&&(this.resizeObserver=new O.default(this.onResize),this.resizeObserver.observe(On))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var bn=this.props.children,On=Object(T.a)(bn);if(On.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(On.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var yn=On[0];if(a.isValidElement(yn)&&Object(w.c)(yn)){var qn=yn.ref;On[0]=a.cloneElement(yn,{ref:Object(w.a)(qn,this.setChildNode)})}return On.length===1?On[0]:On.map(function(Hn,pi){return!a.isValidElement(Hn)||"key"in Hn&&Hn.key!==null?Hn:a.cloneElement(Hn,{key:"".concat(I,"-").concat(pi)})})}}]),Lr}(a.Component);k.displayName="ResizeObserver";var M=k,U=r("qx4F");function P(_t){return null}var X=P;function F(_t){return null}var j=F,K=r("Ff2n"),z="RC_TABLE_KEY";function V(_t){return _t==null?[]:Array.isArray(_t)?_t:[_t]}function Q(_t,_r){if(!_r&&typeof _r!="number")return _t;for(var Lr=V(_r),en=_t,bn=0;bn<Lr.length;bn+=1){if(!en)return null;var On=Lr[bn];en=en[On]}return en}function G(_t){var _r=[],Lr={};return _t.forEach(function(en){for(var bn=en||{},On=bn.key,yn=bn.dataIndex,qn=On||V(yn).join("-")||z;Lr[qn];)qn="".concat(qn,"_next");Lr[qn]=!0,_r.push(qn)}),_r}function ee(){var _t={};function _r(On,yn){yn&&Object.keys(yn).forEach(function(qn){var Hn=yn[qn];Hn&&Object(o.a)(Hn)==="object"?(On[qn]=On[qn]||{},_r(On[qn],Hn)):On[qn]=Hn})}for(var Lr=arguments.length,en=new Array(Lr),bn=0;bn<Lr;bn++)en[bn]=arguments[bn];return en.forEach(function(On){_r(_t,On)}),_t}function se(_t){return _t!=null}function ye(_t){return _t&&Object(o.a)(_t)==="object"&&!Array.isArray(_t)&&!a.isValidElement(_t)}function he(_t){return typeof _t=="string"?!0:Object(w.c)(_t)}function ke(_t,_r){var Lr,en=_t.prefixCls,bn=_t.className,On=_t.record,yn=_t.index,qn=_t.dataIndex,Hn=_t.render,pi=_t.children,Fi=_t.component,wi=Fi===void 0?"td":Fi,Oi=_t.colSpan,zi=_t.rowSpan,ea=_t.fixLeft,Gi=_t.fixRight,Wi=_t.firstFixLeft,Hi=_t.lastFixLeft,Ji=_t.firstFixRight,ca=_t.lastFixRight,Ca=_t.appendNode,na=_t.additionalProps,Pa=na===void 0?{}:na,La=_t.ellipsis,va=_t.align,ga=_t.rowType,Oa=_t.isSticky,Aa="".concat(en,"-cell"),Xa,_a;if(pi)_a=pi;else{var Va=Q(On,qn);if(_a=Va,Hn){var Bi=Hn(Va,On,yn);ye(Bi)?(_a=Bi.children,Xa=Bi.props):_a=Bi}}Object(o.a)(_a)==="object"&&!Array.isArray(_a)&&!a.isValidElement(_a)&&(_a=null),La&&(Hi||Ji)&&(_a=a.createElement("span",{className:"".concat(Aa,"-content")},_a));var io=Xa||{},oo=io.colSpan,Qo=io.rowSpan,mo=io.style,To=io.className,ao=Object(K.a)(io,["colSpan","rowSpan","style","className"]),So=oo!==void 0?oo:Oi,bo=Qo!==void 0?Qo:zi;if(So===0||bo===0)return null;var to={},Jo=typeof ea=="number",Uo=typeof Gi=="number";Jo&&(to.position="sticky",to.left=ea),Uo&&(to.position="sticky",to.right=Gi);var wo={};va&&(wo.textAlign=va);var ts,Ia=La===!0?{showTitle:!0}:La;Ia&&(Ia.showTitle||ga==="header")&&(typeof _a=="string"||typeof _a=="number"?ts=_a.toString():a.isValidElement(_a)&&typeof _a.props.children=="string"&&(ts=_a.props.children));var Oo=Object(l.a)(Object(l.a)(Object(l.a)({title:ts},ao),Pa),{},{colSpan:So&&So!==1?So:null,rowSpan:bo&&bo!==1?bo:null,className:t()(Aa,bn,(Lr={},Object(e.a)(Lr,"".concat(Aa,"-fix-left"),Jo),Object(e.a)(Lr,"".concat(Aa,"-fix-left-first"),Wi),Object(e.a)(Lr,"".concat(Aa,"-fix-left-last"),Hi),Object(e.a)(Lr,"".concat(Aa,"-fix-right"),Uo),Object(e.a)(Lr,"".concat(Aa,"-fix-right-first"),Ji),Object(e.a)(Lr,"".concat(Aa,"-fix-right-last"),ca),Object(e.a)(Lr,"".concat(Aa,"-ellipsis"),La),Object(e.a)(Lr,"".concat(Aa,"-with-append"),Ca),Object(e.a)(Lr,"".concat(Aa,"-fix-sticky"),(Jo||Uo)&&Oa),Lr),Pa.className,To),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Pa.style),wo),to),mo),ref:he(wi)?_r:null});return a.createElement(wi,Object.assign({},Oo),Ca,_a)}var Pe=a.forwardRef(ke);Pe.displayName="Cell";var Ue=a.memo(Pe,function(_t,_r){return _r.shouldCellUpdate?!_r.shouldCellUpdate(_r.record,_t.record):!1}),$e=Ue,Ge=a.createContext(null),ht=Ge;function Fe(_t,_r,Lr,en,bn){var On=Lr[_t]||{},yn=Lr[_r]||{},qn,Hn;On.fixed==="left"?qn=en.left[_t]:yn.fixed==="right"&&(Hn=en.right[_r]);var pi=!1,Fi=!1,wi=!1,Oi=!1,zi=Lr[_r+1],ea=Lr[_t-1];if(bn==="rtl"){if(qn!==void 0){var Gi=ea&&ea.fixed==="left";Oi=!Gi}else if(Hn!==void 0){var Wi=zi&&zi.fixed==="right";wi=!Wi}}else if(qn!==void 0){var Hi=zi&&zi.fixed==="left";pi=!Hi}else if(Hn!==void 0){var Ji=ea&&ea.fixed==="right";Fi=!Ji}return{fixLeft:qn,fixRight:Hn,lastFixLeft:pi,firstFixRight:Fi,lastFixRight:wi,firstFixLeft:Oi,isSticky:en.isSticky}}function oe(_t){var _r=_t.cells,Lr=_t.stickyOffsets,en=_t.flattenColumns,bn=_t.rowComponent,On=_t.cellComponent,yn=_t.onHeaderRow,qn=_t.index,Hn=a.useContext(ht),pi=Hn.prefixCls,Fi=Hn.direction,wi;yn&&(wi=yn(_r.map(function(zi){return zi.column}),qn));var Oi=G(_r.map(function(zi){return zi.column}));return a.createElement(bn,Object.assign({},wi),_r.map(function(zi,ea){var Gi=zi.column,Wi=Fe(zi.colStart,zi.colEnd,en,Lr,Fi),Hi;return Gi&&Gi.onHeaderCell&&(Hi=zi.column.onHeaderCell(Gi)),a.createElement($e,Object.assign({},zi,{ellipsis:Gi.ellipsis,align:Gi.align,component:On,prefixCls:pi,key:Oi[ea]},Wi,{additionalProps:Hi,rowType:"header"}))}))}oe.displayName="HeaderRow";var rt=oe;function fe(_t){var _r=[];function Lr(yn,qn){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;_r[Hn]=_r[Hn]||[];var pi=qn,Fi=yn.filter(Boolean).map(function(wi){var Oi={key:wi.key,className:wi.className||"",children:wi.title,column:wi,colStart:pi},zi=1,ea=wi.children;return ea&&ea.length>0&&(zi=Lr(ea,pi,Hn+1).reduce(function(Gi,Wi){return Gi+Wi},0),Oi.hasSubColumns=!0),"colSpan"in wi&&(zi=wi.colSpan),"rowSpan"in wi&&(Oi.rowSpan=wi.rowSpan),Oi.colSpan=zi,Oi.colEnd=Oi.colStart+zi-1,_r[Hn].push(Oi),pi+=zi,zi});return Fi}Lr(_t,0);for(var en=_r.length,bn=function(qn){_r[qn].forEach(function(Hn){!("rowSpan"in Hn)&&!Hn.hasSubColumns&&(Hn.rowSpan=en-qn)})},On=0;On<en;On+=1)bn(On);return _r}function J(_t){var _r=_t.stickyOffsets,Lr=_t.columns,en=_t.flattenColumns,bn=_t.onHeaderRow,On=a.useContext(ht),yn=On.prefixCls,qn=On.getComponent,Hn=a.useMemo(function(){return fe(Lr)},[Lr]),pi=qn(["header","wrapper"],"thead"),Fi=qn(["header","row"],"tr"),wi=qn(["header","cell"],"th");return a.createElement(pi,{className:"".concat(yn,"-thead")},Hn.map(function(Oi,zi){var ea=a.createElement(rt,{key:zi,flattenColumns:en,cells:Oi,stickyOffsets:_r,rowComponent:Fi,cellComponent:wi,onHeaderRow:bn,index:zi});return ea}))}var Y=J,$="RC_TABLE_INTERNAL_COL_DEFINE";function de(_t){var _r=_t.expandable,Lr=Object(K.a)(_t,["expandable"]);return"expandable"in _t?Object(l.a)(Object(l.a)({},Lr),_r):Lr}function we(_t){return Object.keys(_t).reduce(function(_r,Lr){return(Lr.substr(0,5)==="data-"||Lr.substr(0,5)==="aria-")&&(_r[Lr]=_t[Lr]),_r},{})}function Ce(_t){for(var _r=_t.colWidths,Lr=_t.columns,en=_t.columCount,bn=[],On=en||Lr.length,yn=!1,qn=On-1;qn>=0;qn-=1){var Hn=_r[qn],pi=Lr&&Lr[qn],Fi=pi&&pi[$];(Hn||Fi||yn)&&(bn.unshift(a.createElement("col",Object.assign({key:qn,style:{width:Hn,minWidth:Hn}},Fi))),yn=!0)}return a.createElement("colgroup",null,bn)}var Se=Ce;function le(_t,_r){return Object(a.useMemo)(function(){for(var Lr=[],en=0;en<_r;en+=1){var bn=_t[en];if(bn!==void 0)Lr[en]=bn;else return null}return Lr},[_t.join("_"),_r])}var pe=a.forwardRef(function(_t,_r){var Lr=_t.noData,en=_t.columns,bn=_t.flattenColumns,On=_t.colWidths,yn=_t.columCount,qn=_t.stickyOffsets,Hn=_t.direction,pi=_t.fixHeader,Fi=_t.offsetHeader,wi=_t.stickyClassName,Oi=_t.onScroll,zi=Object(K.a)(_t,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ea=a.useContext(ht),Gi=ea.prefixCls,Wi=ea.scrollbarSize,Hi=ea.isSticky,Ji=Hi&&!pi?0:Wi,ca=a.useRef(null),Ca=a.useCallback(function(Aa){Object(w.b)(_r,Aa),Object(w.b)(ca,Aa)},[]);a.useEffect(function(){var Aa;function Xa(_a){var Va=_a.currentTarget,Bi=_a.deltaX;Bi&&(Oi({currentTarget:Va,scrollLeft:Va.scrollLeft+Bi}),_a.preventDefault())}return(Aa=ca.current)===null||Aa===void 0||Aa.addEventListener("wheel",Xa),function(){var _a;(_a=ca.current)===null||_a===void 0||_a.removeEventListener("wheel",Xa)}},[]);var na=bn[bn.length-1],Pa={fixed:na?na.fixed:null,onHeaderCell:function(){return{className:"".concat(Gi,"-cell-scrollbar")}}},La=Object(a.useMemo)(function(){return Ji?[].concat(Object(n.a)(en),[Pa]):en},[Ji,en]),va=Object(a.useMemo)(function(){return Ji?[].concat(Object(n.a)(bn),[Pa]):bn},[Ji,bn]),ga=Object(a.useMemo)(function(){var Aa=qn.right,Xa=qn.left;return Object(l.a)(Object(l.a)({},qn),{},{left:Hn==="rtl"?[].concat(Object(n.a)(Xa.map(function(_a){return _a+Ji})),[0]):Xa,right:Hn==="rtl"?Aa:[].concat(Object(n.a)(Aa.map(function(_a){return _a+Ji})),[0]),isSticky:Hi})},[Ji,qn,Hi]),Oa=le(On,yn);return a.createElement("div",{style:Object(l.a)({overflow:"hidden"},Hi?{top:Fi}:{}),ref:Ca,className:t()("".concat(Gi,"-header"),Object(e.a)({},wi,!!wi))},a.createElement("table",{style:{tableLayout:"fixed",visibility:Lr||Oa?null:"hidden"}},a.createElement(Se,{colWidths:Oa?[].concat(Object(n.a)(Oa),[Ji]):[],columCount:yn+1,columns:va}),a.createElement(Y,Object.assign({},zi,{stickyOffsets:ga,columns:La,flattenColumns:va}))))});pe.displayName="FixedHeader";var _e=pe,tt=a.createContext(null),gt=tt;function ct(_t){var _r=_t.prefixCls,Lr=_t.children,en=_t.component,bn=_t.cellComponent,On=_t.fixHeader,yn=_t.fixColumn,qn=_t.horizonScroll,Hn=_t.className,pi=_t.expanded,Fi=_t.componentWidth,wi=_t.colSpan,Oi=a.useContext(ht),zi=Oi.scrollbarSize;return a.useMemo(function(){var ea=Lr;return yn&&(ea=a.createElement("div",{style:{width:Fi-(On?zi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(_r,"-expanded-row-fixed")},ea)),a.createElement(en,{className:Hn,style:{display:pi?null:"none"}},a.createElement($e,{component:bn,prefixCls:_r,colSpan:wi},ea))},[Lr,en,On,qn,Hn,pi,Fi,wi,zi])}var je=ct;function Zt(_t){var _r=_t.className,Lr=_t.style,en=_t.record,bn=_t.index,On=_t.rowKey,yn=_t.getRowKey,qn=_t.rowExpandable,Hn=_t.expandedKeys,pi=_t.onRow,Fi=_t.indent,wi=Fi===void 0?0:Fi,Oi=_t.rowComponent,zi=_t.cellComponent,ea=_t.childrenColumnName,Gi=a.useContext(ht),Wi=Gi.prefixCls,Hi=Gi.fixedInfoList,Ji=a.useContext(gt),ca=Ji.fixHeader,Ca=Ji.fixColumn,na=Ji.horizonScroll,Pa=Ji.componentWidth,La=Ji.flattenColumns,va=Ji.expandableType,ga=Ji.expandRowByClick,Oa=Ji.onTriggerExpand,Aa=Ji.rowClassName,Xa=Ji.expandedRowClassName,_a=Ji.indentSize,Va=Ji.expandIcon,Bi=Ji.expandedRowRender,io=Ji.expandIconColumnIndex,oo=a.useState(!1),Qo=Object(c.a)(oo,2),mo=Qo[0],To=Qo[1],ao=Hn&&Hn.has(_t.recordKey);a.useEffect(function(){ao&&To(!0)},[ao]);var So=va==="row"&&(!qn||qn(en)),bo=va==="nest",to=ea&&en&&en[ea],Jo=So||bo,Uo;pi&&(Uo=pi(en,bn));var wo=function(_o){if(ga&&Jo&&Oa(en,_o),Uo&&Uo.onClick){for(var uo,Ha=arguments.length,vt=new Array(Ha>1?Ha-1:0),Er=1;Er<Ha;Er++)vt[Er-1]=arguments[Er];(uo=Uo).onClick.apply(uo,[_o].concat(vt))}},ts;typeof Aa=="string"?ts=Aa:typeof Aa=="function"&&(ts=Aa(en,bn,wi));var Ia=G(La),Oo=a.createElement(Oi,Object.assign({},Uo,{"data-row-key":On,className:t()(_r,"".concat(Wi,"-row"),"".concat(Wi,"-row-level-").concat(wi),ts,Uo&&Uo.className),style:Object(l.a)(Object(l.a)({},Lr),Uo?Uo.style:null),onClick:wo}),La.map(function(Ho,_o){var uo=Ho.render,Ha=Ho.dataIndex,vt=Ho.className,Er=Ia[_o],qr=Hi[_o],Gr;_o===(io||0)&&bo&&(Gr=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(_a*wi,"px")},className:"".concat(Wi,"-row-indent indent-level-").concat(wi)}),Va({prefixCls:Wi,expanded:ao,expandable:to,record:en,onExpand:Oa})));var Qn;return Ho.onCell&&(Qn=Ho.onCell(en,bn)),a.createElement($e,Object.assign({className:vt,ellipsis:Ho.ellipsis,align:Ho.align,component:zi,prefixCls:Wi,key:Er,record:en,index:bn,dataIndex:Ha,render:uo,shouldCellUpdate:Ho.shouldCellUpdate},qr,{appendNode:Gr,additionalProps:Qn}))})),Io;if(So&&(mo||ao)){var os=Bi(en,bn,wi+1,ao),xo=Xa&&Xa(en,bn,wi);Io=a.createElement(je,{expanded:ao,className:t()("".concat(Wi,"-expanded-row"),"".concat(Wi,"-expanded-row-level-").concat(wi+1),xo),prefixCls:Wi,fixHeader:ca,fixColumn:Ca,horizonScroll:na,component:Oi,componentWidth:Pa,cellComponent:zi,colSpan:La.length},os)}var rs;return to&&ao&&(rs=(en[ea]||[]).map(function(Ho,_o){var uo=yn(Ho,_o);return a.createElement(Zt,Object.assign({},_t,{key:uo,rowKey:uo,record:Ho,recordKey:uo,index:_o,indent:wi+1}))})),a.createElement(a.Fragment,null,Oo,Io,rs)}Zt.displayName="BodyRow";var ut=Zt,Ht=a.createContext(null),dr=Ht;function Vt(_t){var _r=_t.columnKey,Lr=_t.onColumnResize,en=a.useRef();return a.useEffect(function(){en.current&&Lr(_r,en.current.offsetWidth)},[]),a.createElement(M,{onResize:function(On){var yn=On.offsetWidth;Lr(_r,yn)}},a.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Mt(_t){var _r=_t.data,Lr=_t.getRowKey,en=_t.measureColumnWidth,bn=_t.expandedKeys,On=_t.onRow,yn=_t.rowExpandable,qn=_t.emptyNode,Hn=_t.childrenColumnName,pi=a.useContext(dr),Fi=pi.onColumnResize,wi=a.useContext(ht),Oi=wi.prefixCls,zi=wi.getComponent,ea=a.useContext(gt),Gi=ea.fixHeader,Wi=ea.horizonScroll,Hi=ea.flattenColumns,Ji=ea.componentWidth;return a.useMemo(function(){var ca=zi(["body","wrapper"],"tbody"),Ca=zi(["body","row"],"tr"),na=zi(["body","cell"],"td"),Pa;_r.length?Pa=_r.map(function(va,ga){var Oa=Lr(va,ga);return a.createElement(ut,{key:Oa,rowKey:Oa,record:va,recordKey:Oa,index:ga,rowComponent:Ca,cellComponent:na,expandedKeys:bn,onRow:On,getRowKey:Lr,rowExpandable:yn,childrenColumnName:Hn})}):Pa=a.createElement(je,{expanded:!0,className:"".concat(Oi,"-placeholder"),prefixCls:Oi,fixHeader:Gi,fixColumn:Wi,horizonScroll:Wi,component:Ca,componentWidth:Ji,cellComponent:na,colSpan:Hi.length},qn);var La=G(Hi);return a.createElement(ca,{className:"".concat(Oi,"-tbody")},en&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(Oi,"-measure-row"),style:{height:0}},La.map(function(va){return a.createElement(Vt,{key:va,columnKey:va,onColumnResize:Fi})})),Pa)},[_r,Oi,On,en,bn,Lr,zi,Ji,qn,Hi])}var Gt=a.memo(Mt);Gt.displayName="Body";var Ve=Gt;function me(_t){return Object(T.a)(_t).filter(function(_r){return a.isValidElement(_r)}).map(function(_r){var Lr=_r.key,en=_r.props,bn=en.children,On=Object(K.a)(en,["children"]),yn=Object(l.a)({key:Lr},On);return bn&&(yn.children=me(bn)),yn})}function te(_t){return _t.reduce(function(_r,Lr){var en=Lr.fixed,bn=en===!0?"left":en,On=Lr.children;return On&&On.length>0?[].concat(Object(n.a)(_r),Object(n.a)(te(On).map(function(yn){return Object(l.a)({fixed:bn},yn)}))):[].concat(Object(n.a)(_r),[Object(l.a)(Object(l.a)({},Lr),{},{fixed:bn})])},[])}function Ze(_t){for(var _r=!0,Lr=0;Lr<_t.length;Lr+=1){var en=_t[Lr];if(_r&&en.fixed!=="left")_r=!1;else if(!_r&&en.fixed==="left"){Object(v.a)(!1,"Index ".concat(Lr-1," of `columns` missing `fixed='left'` prop."));break}}for(var bn=!0,On=_t.length-1;On>=0;On-=1){var yn=_t[On];if(bn&&yn.fixed!=="right")bn=!1;else if(!bn&&yn.fixed==="right"){Object(v.a)(!1,"Index ".concat(On+1," of `columns` missing `fixed='right'` prop."));break}}}function Xe(_t){return _t.map(function(_r){var Lr=_r.fixed,en=Object(K.a)(_r,["fixed"]),bn=Lr;return Lr==="left"?bn="right":Lr==="right"&&(bn="left"),Object(l.a)({fixed:bn},en)})}function ue(_t,_r){var Lr=_t.prefixCls,en=_t.columns,bn=_t.children,On=_t.expandable,yn=_t.expandedKeys,qn=_t.getRowKey,Hn=_t.onTriggerExpand,pi=_t.expandIcon,Fi=_t.rowExpandable,wi=_t.expandIconColumnIndex,Oi=_t.direction,zi=_t.expandRowByClick,ea=a.useMemo(function(){return en||me(bn)},[en,bn]),Gi=a.useMemo(function(){if(On){var Ji,ca=wi||0,Ca=ea[ca],na=(Ji={},Object(e.a)(Ji,$,{className:"".concat(Lr,"-expand-icon-col")}),Object(e.a)(Ji,"title",""),Object(e.a)(Ji,"fixed",Ca?Ca.fixed:null),Object(e.a)(Ji,"className","".concat(Lr,"-row-expand-icon-cell")),Object(e.a)(Ji,"render",function(va,ga,Oa){var Aa=qn(ga,Oa),Xa=yn.has(Aa),_a=Fi?Fi(ga):!0,Va=pi({prefixCls:Lr,expanded:Xa,expandable:_a,record:ga,onExpand:Hn});return zi?a.createElement("span",{onClick:function(io){return io.stopPropagation()}},Va):Va}),Ji),Pa=ea.slice();return ca>=0&&Pa.splice(ca,0,na),Pa}return ea},[On,ea,qn,yn,pi,Oi]),Wi=a.useMemo(function(){var Ji=Gi;return _r&&(Ji=_r(Ji)),Ji.length||(Ji=[{render:function(){return null}}]),Ji},[_r,Gi,Oi]),Hi=a.useMemo(function(){return Oi==="rtl"?Xe(te(Wi)):te(Wi)},[Wi,Oi]);return[Wi,Hi]}var St=ue,Qt=r("xEkU"),dt=r.n(Qt);function Jt(_t){var _r=Object(a.useRef)(_t),Lr=Object(a.useState)({}),en=Object(c.a)(Lr,2),bn=en[1],On=Object(a.useRef)(null),yn=Object(a.useRef)([]);function qn(Hn){On.current===null&&(yn.current=[],On.current=dt()(function(){yn.current.forEach(function(pi){_r.current=pi(_r.current)}),On.current=null,bn({})})),yn.current.push(Hn)}return Object(a.useEffect)(function(){return function(){dt.a.cancel(On.current)}},[]),[_r.current,qn]}function $t(_t){var _r=Object(a.useRef)(_t),Lr=Object(a.useRef)(null);function en(){window.clearTimeout(Lr.current)}function bn(yn){_r.current=yn,en(),Lr.current=window.setTimeout(function(){_r.current=null,Lr.current=null},100)}function On(){return _r.current}return Object(a.useEffect)(function(){return en},[]),[bn,On]}function tn(_t,_r,Lr){var en=Object(a.useMemo)(function(){for(var bn=[],On=[],yn=0,qn=0,Hn=0;Hn<_r;Hn+=1)if(Lr==="rtl"){On[Hn]=qn,qn+=_t[Hn]||0;var pi=_r-Hn-1;bn[pi]=yn,yn+=_t[pi]||0}else{bn[Hn]=yn,yn+=_t[Hn]||0;var Fi=_r-Hn-1;On[Fi]=qn,qn+=_t[Fi]||0}return{left:bn,right:On}},[_t,_r,Lr]);return en}var kt=tn;function tr(_t){var _r=_t.className,Lr=_t.children;return a.createElement("div",{className:_r},Lr)}var Bt=tr;function ft(_t){var _r=_t.className,Lr=_t.index,en=_t.children,bn=_t.colSpan,On=_t.rowSpan,yn=a.useContext(ht),qn=yn.prefixCls,Hn=yn.fixedInfoList,pi=Hn[Lr];return a.createElement($e,Object.assign({className:_r,index:Lr,component:"td",prefixCls:qn,record:null,dataIndex:null,render:function(){return{children:en,props:{colSpan:bn,rowSpan:On}}}},pi))}function it(_t){return a.createElement("tr",Object.assign({},_t))}function Or(_t){var _r=_t.children,Lr=a.useContext(ht),en=Lr.prefixCls;return a.createElement("tfoot",{className:"".concat(en,"-summary")},_r)}var an=Or,En={Cell:ft,Row:it};function Bn(_t){var _r,Lr=_t.prefixCls,en=_t.record,bn=_t.onExpand,On=_t.expanded,yn=_t.expandable,qn="".concat(Lr,"-row-expand-icon");if(!yn)return a.createElement("span",{className:t()(qn,"".concat(Lr,"-row-spaced"))});var Hn=function(Fi){bn(en,Fi),Fi.stopPropagation()};return a.createElement("span",{className:t()(qn,(_r={},Object(e.a)(_r,"".concat(Lr,"-row-expanded"),On),Object(e.a)(_r,"".concat(Lr,"-row-collapsed"),!On),_r)),onClick:Hn})}function vi(_t,_r,Lr){var en=[];function bn(On){(On||[]).forEach(function(yn,qn){en.push(_r(yn,qn)),bn(yn[Lr])})}return bn(_t),en}var Ln=r("zT1h"),Mn=r("y0+3"),Xt=function(_r,Lr){var en,bn,On=_r.scrollBodyRef,yn=_r.onScroll,qn=_r.offsetScroll,Hn=a.useContext(ht),pi=Hn.prefixCls,Fi=((en=On.current)===null||en===void 0?void 0:en.scrollWidth)||0,wi=((bn=On.current)===null||bn===void 0?void 0:bn.clientWidth)||0,Oi=Fi&&wi*(wi/Fi),zi=a.useRef(),ea=Jt({scrollLeft:0,isHiddenScrollBar:!1}),Gi=Object(c.a)(ea,2),Wi=Gi[0],Hi=Gi[1],Ji=a.useRef({delta:0,x:0}),ca=a.useState(!1),Ca=Object(c.a)(ca,2),na=Ca[0],Pa=Ca[1],La=function(){Pa(!1)},va=function(_a){_a.persist(),Ji.current.delta=_a.pageX-Wi.scrollLeft,Ji.current.x=0,Pa(!0),_a.preventDefault()},ga=function(_a){var Va,Bi=_a||((Va=window)===null||Va===void 0?void 0:Va.event),io=Bi.buttons;if(!na||io===0){na&&Pa(!1);return}var oo=Ji.current.x+_a.pageX-Ji.current.x-Ji.current.delta;oo<=0&&(oo=0),oo+Oi>=wi&&(oo=wi-Oi),yn({scrollLeft:oo/wi*(Fi+2)}),Ji.current.x=_a.pageX},Oa=function(){var _a=Object(Mn.b)(On.current).top,Va=_a+On.current.offsetHeight,Bi=document.documentElement.scrollTop+window.innerHeight;Va-Object(U.a)()<=Bi||_a>=Bi-qn?Hi(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!0})}):Hi(function(io){return Object(l.a)(Object(l.a)({},io),{},{isHiddenScrollBar:!1})})},Aa=function(_a){Hi(function(Va){return Object(l.a)(Object(l.a)({},Va),{},{scrollLeft:_a/Fi*wi||0})})};return a.useImperativeHandle(Lr,function(){return{setScrollLeft:Aa}}),a.useEffect(function(){var Xa=Object(Ln.a)(document.body,"mouseup",La,!1),_a=Object(Ln.a)(document.body,"mousemove",ga,!1);return Oa(),function(){Xa.remove(),_a.remove()}},[Oi,na]),a.useEffect(function(){var Xa=Object(Ln.a)(window,"scroll",Oa,!1),_a=Object(Ln.a)(window,"resize",Oa,!1);return function(){Xa.remove(),_a.remove()}},[]),a.useEffect(function(){Wi.isHiddenScrollBar||Hi(function(Xa){var _a,Va;return Object(l.a)(Object(l.a)({},Xa),{},{scrollLeft:On.current.scrollLeft/((_a=On.current)===null||_a===void 0?void 0:_a.scrollWidth)*((Va=On.current)===null||Va===void 0?void 0:Va.clientWidth)})})},[Wi.isHiddenScrollBar]),Fi<=wi||!Oi||Wi.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(U.a)(),width:wi,bottom:qn},className:"".concat(pi,"-sticky-scroll")},a.createElement("div",{onMouseDown:va,ref:zi,className:t()("".concat(pi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(pi,"-sticky-scroll-bar-active"),na)),style:{width:"".concat(Oi,"px"),transform:"translate3d(".concat(Wi.scrollLeft,"px, 0, 0)")}}))},wt=a.forwardRef(Xt);function De(_t,_r){return a.useMemo(function(){var Lr=!!_t;return{isSticky:Lr,stickyClassName:Lr?"".concat(_r,"-sticky-header"):"",offsetHeader:Object(o.a)(_t)==="object"&&_t.offsetHeader||0,offsetScroll:Object(o.a)(_t)==="object"&&_t.offsetScroll||0}},[_t,_r])}var Re=[],Me={},nt="rc-table-internal-hook",yt=a.memo(function(_t){var _r=_t.children;return _r},function(_t,_r){return g()(_t.props,_r.props)?_t.pingLeft!==_r.pingLeft||_t.pingRight!==_r.pingRight:!1});function sr(_t){var _r,Lr=_t.prefixCls,en=_t.className,bn=_t.rowClassName,On=_t.style,yn=_t.data,qn=_t.rowKey,Hn=_t.scroll,pi=_t.tableLayout,Fi=_t.direction,wi=_t.title,Oi=_t.footer,zi=_t.summary,ea=_t.id,Gi=_t.showHeader,Wi=_t.components,Hi=_t.emptyText,Ji=_t.onRow,ca=_t.onHeaderRow,Ca=_t.internalHooks,na=_t.transformColumns,Pa=_t.internalRefs,La=_t.sticky,va=yn||Re,ga=!!va.length,Oa=a.useState(0),Aa=Object(c.a)(Oa,2),Xa=Aa[0],_a=Aa[1];a.useEffect(function(){_a(Object(U.a)())});var Va=a.useMemo(function(){return ee(Wi,{})},[Wi]),Bi=a.useCallback(function(Vo,No){return Q(Va,Vo)||No},[Va]),io=a.useMemo(function(){return typeof qn=="function"?qn:function(Vo){var No=Vo&&Vo[qn];return No}},[qn]),oo=de(_t),Qo=oo.expandIcon,mo=oo.expandedRowKeys,To=oo.defaultExpandedRowKeys,ao=oo.defaultExpandAllRows,So=oo.expandedRowRender,bo=oo.onExpand,to=oo.onExpandedRowsChange,Jo=oo.expandRowByClick,Uo=oo.rowExpandable,wo=oo.expandIconColumnIndex,ts=oo.expandedRowClassName,Ia=oo.childrenColumnName,Oo=oo.indentSize,Io=Qo||Bn,os=Ia||"children",xo=a.useMemo(function(){return So?"row":_t.expandable&&Ca===nt&&_t.expandable.__PARENT_RENDER_ICON__||va.some(function(Vo){return Vo&&Object(o.a)(Vo)==="object"&&Vo[os]})?"nest":!1},[!!So,va]),rs=a.useState(function(){return To||(ao?vi(va,io,os):[])}),Ho=Object(c.a)(rs,2),_o=Ho[0],uo=Ho[1],Ha=a.useMemo(function(){return new Set(mo||_o||[])},[mo,_o]),vt=a.useCallback(function(Vo){var No=io(Vo,va.indexOf(Vo)),fs,Ds=Ha.has(No);Ds?(Ha.delete(No),fs=Object(n.a)(Ha)):fs=[].concat(Object(n.a)(Ha),[No]),uo(fs),bo&&bo(!Ds,Vo),to&&to(fs)},[io,Ha,va,bo,to]),Er=a.useState(0),qr=Object(c.a)(Er,2),Gr=qr[0],Qn=qr[1],un=St(Object(l.a)(Object(l.a)(Object(l.a)({},_t),oo),{},{expandable:!!So,expandedKeys:Ha,getRowKey:io,onTriggerExpand:vt,expandIcon:Io,expandIconColumnIndex:wo,direction:Fi}),Ca===nt?na:null),zr=Object(c.a)(un,2),ni=zr[0],rn=zr[1],Kn=a.useMemo(function(){return{columns:ni,flattenColumns:rn}},[ni,rn]),li=a.useRef(),ci=a.useRef(),si=a.useRef(),Ci=a.useState(!1),mi=Object(c.a)(Ci,2),yi=mi[0],Ni=mi[1],ia=a.useState(!1),Ki=Object(c.a)(ia,2),fa=Ki[0],Ya=Ki[1],xa=Jt(new Map),wa=Object(c.a)(xa,2),Da=wa[0],ja=wa[1],ko=G(rn),ro=ko.map(function(Vo){return Da.get(Vo)}),pa=a.useMemo(function(){return ro},[ro.join("_")]),Ea=kt(pa,rn.length,Fi),Fa=Hn&&se(Hn.y),Ka=Hn&&se(Hn.x),lo=Ka&&rn.some(function(Vo){var No=Vo.fixed;return No}),so=a.useRef(),Co=De(La,Lr),Lo=Co.isSticky,is=Co.offsetHeader,cs=Co.offsetScroll,Rs=Co.stickyClassName,Ko,as,co;Fa&&(as={overflowY:"scroll",maxHeight:Hn.y}),Ka&&(Ko={overflowX:"auto"},Fa||(as={overflowY:"hidden"}),co={width:Hn.x===!0?"auto":Hn.x,minWidth:"100%"});var Ao=a.useCallback(function(Vo,No){ja(function(fs){var Ds=new Map(fs);return Ds.set(Vo,No),Ds})},[]),$a=$t(null),ss=Object(c.a)($a,2),_s=ss[0],Fo=ss[1];function il(Vo,No){if(!No)return;typeof No=="function"?No(Vo):No.scrollLeft!==Vo&&(No.scrollLeft=Vo)}var Eo=function(No){var fs=No.currentTarget,Ds=No.scrollLeft,go=typeof Ds=="number"?Ds:fs.scrollLeft,jt=fs||Me;if(!Fo()||Fo()===jt){var or;_s(jt),il(go,ci.current),il(go,si.current),il(go,(or=so.current)===null||or===void 0?void 0:or.setScrollLeft)}if(fs){var In=fs.scrollWidth,hi=fs.clientWidth;Ni(go>0),Ya(go<In-hi)}},zo=function(){si.current&&Eo({currentTarget:si.current})},Fs=function(No){var fs=No.width;zo(),Qn(li.current?li.current.offsetWidth:fs)};a.useEffect(function(){return zo},[]),a.useEffect(function(){Ka&&zo()},[Ka]),a.useEffect(function(){Ca===nt&&Pa&&(Pa.body.current=si.current)});var ms=Bi(["table"],"table"),hs=a.useMemo(function(){return pi||(lo?Hn.x==="max-content"?"auto":"fixed":Fa||rn.some(function(Vo){var No=Vo.ellipsis;return No})?"fixed":"auto")},[Fa,lo,rn,pi]),An,Ns={colWidths:pa,columCount:rn.length,stickyOffsets:Ea,onHeaderRow:ca,fixHeader:Fa},Ll=a.useMemo(function(){return ga?null:typeof Hi=="function"?Hi():Hi},[ga,Hi]),el=a.createElement(Ve,{data:va,measureColumnWidth:Fa||Ka||Lo,expandedKeys:Ha,rowExpandable:Uo,getRowKey:io,onRow:Ji,emptyNode:Ll,childrenColumnName:os}),Gs=a.createElement(Se,{colWidths:rn.map(function(Vo){var No=Vo.width;return No}),columns:rn}),ds=zi&&a.createElement(an,null,zi(va)),ks=Bi(["body"]);if(Fa||Lo){var Qs;typeof ks=="function"?(Qs=ks(va,{scrollbarSize:Xa,ref:si,onScroll:Eo}),Ns.colWidths=rn.map(function(Vo,No){var fs=Vo.width,Ds=No===ni.length-1?fs-Xa:fs;return typeof Ds=="number"&&!Number.isNaN(Ds)?Ds:(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qs=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),onScroll:Eo,ref:si,className:t()("".concat(Lr,"-body"))},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,el,ds),Lo&&a.createElement(wt,{ref:so,offsetScroll:cs,scrollBodyRef:si,onScroll:Eo})),An=a.createElement(a.Fragment,null,Gi!==!1&&a.createElement(_e,Object.assign({noData:!va.length},Ns,Kn,{direction:Fi,offsetHeader:is,stickyClassName:Rs,ref:ci,onScroll:Eo})),Qs)}else An=a.createElement("div",{style:Object(l.a)(Object(l.a)({},Ko),as),className:t()("".concat(Lr,"-content")),onScroll:Eo,ref:si},a.createElement(ms,{style:Object(l.a)(Object(l.a)({},co),{},{tableLayout:hs})},Gs,Gi!==!1&&a.createElement(Y,Object.assign({},Ns,Kn)),el,ds));var tl=we(_t),xs=a.createElement("div",Object.assign({className:t()(Lr,en,(_r={},Object(e.a)(_r,"".concat(Lr,"-rtl"),Fi==="rtl"),Object(e.a)(_r,"".concat(Lr,"-ping-left"),yi),Object(e.a)(_r,"".concat(Lr,"-ping-right"),fa),Object(e.a)(_r,"".concat(Lr,"-layout-fixed"),pi==="fixed"),Object(e.a)(_r,"".concat(Lr,"-fixed-header"),Fa),Object(e.a)(_r,"".concat(Lr,"-fixed-column"),lo),Object(e.a)(_r,"".concat(Lr,"-scroll-horizontal"),Ka),Object(e.a)(_r,"".concat(Lr,"-has-fix-left"),rn[0]&&rn[0].fixed),Object(e.a)(_r,"".concat(Lr,"-has-fix-right"),rn[rn.length-1]&&rn[rn.length-1].fixed==="right"),_r)),style:On,id:ea,ref:li},tl),a.createElement(yt,{pingLeft:yi,pingRight:fa,props:Object(l.a)(Object(l.a)({},_t),{},{stickyOffsets:Ea,mergedExpandedKeys:Ha})},wi&&a.createElement(Bt,{className:"".concat(Lr,"-title")},wi(va)),a.createElement("div",{className:"".concat(Lr,"-container")},An),Oi&&a.createElement(Bt,{className:"".concat(Lr,"-footer")},Oi(va))));Ka&&(xs=a.createElement(M,{onResize:Fs},xs));var Bs=a.useMemo(function(){return{prefixCls:Lr,getComponent:Bi,scrollbarSize:Xa,direction:Fi,fixedInfoList:rn.map(function(Vo,No){return Fe(No,No,rn,Ea,Fi)}),isSticky:Lo}},[Lr,Bi,Xa,Fi,rn,Ea,Fi,Lo]),al=a.useMemo(function(){return Object(l.a)(Object(l.a)({},Kn),{},{tableLayout:hs,rowClassName:bn,expandedRowClassName:ts,componentWidth:Gr,fixHeader:Fa,fixColumn:lo,horizonScroll:Ka,expandIcon:Io,expandableType:xo,expandRowByClick:Jo,expandedRowRender:So,onTriggerExpand:vt,expandIconColumnIndex:wo,indentSize:Oo})},[Kn,hs,bn,ts,Gr,Fa,lo,Ka,Io,xo,Jo,So,vt,wo,Oo]),Js=a.useMemo(function(){return{onColumnResize:Ao}},[Ao]);return a.createElement(ht.Provider,{value:Bs},a.createElement(gt.Provider,{value:al},a.createElement(dr.Provider,{value:Js},xs)))}sr.Column=j,sr.ColumnGroup=X,sr.Summary=En,sr.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Nr=sr,mn=Nr,Yn=r("W9HT"),Jn=r("NUBc"),ur=r("H84U"),Tt=function(_t,_r){var Lr={};for(var en in _t)Object.prototype.hasOwnProperty.call(_t,en)&&_r.indexOf(en)<0&&(Lr[en]=_t[en]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bn=0,en=Object.getOwnPropertySymbols(_t);bn<en.length;bn++)_r.indexOf(en[bn])<0&&Object.prototype.propertyIsEnumerable.call(_t,en[bn])&&(Lr[en[bn]]=_t[en[bn]]);return Lr},Ct=10;function Ar(_t,_r){var Lr={current:_r.current,pageSize:_r.pageSize},en=_t&&f()(_t)==="object"?_t:{};return Object.keys(en).forEach(function(bn){var On=_r[bn];typeof On!="function"&&(Lr[bn]=On)}),Lr}function er(){for(var _t={},_r=arguments.length,Lr=new Array(_r),en=0;en<_r;en++)Lr[en]=arguments[en];return Lr.forEach(function(bn){bn&&Object.keys(bn).forEach(function(On){var yn=bn[On];yn!==void 0&&(_t[On]=yn)})}),_t}function Ft(_t,_r,Lr){var en=_r&&f()(_r)==="object"?_r:{},bn=en.total,On=bn===void 0?0:bn,yn=Tt(en,["total"]),qn=Object(a.useState)(function(){return{current:"defaultCurrent"in yn?yn.defaultCurrent:1,pageSize:"defaultPageSize"in yn?yn.defaultPageSize:Ct}}),Hn=p()(qn,2),pi=Hn[0],Fi=Hn[1],wi=er(pi,yn,{total:On>0?On:_t});if(!On){var Oi=Math.ceil(_t/wi.pageSize);Oi<wi.current&&(wi.current=1)}var zi=function(){var Wi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Hi=arguments.length>1?arguments[1]:void 0;Fi(u()(u()({},wi),{current:Wi,pageSize:Hi||wi.pageSize}))},ea=function(Wi,Hi){var Ji=wi==null?void 0:wi.pageSize;Hi&&Hi!==Ji&&(Wi=1,_r&&_r.onShowSizeChange&&_r.onShowSizeChange(Wi,Hi)),_r&&_r.onChange&&_r.onChange(Wi,Hi),zi(Wi,Hi),Lr(Wi,Hi||Ji)};return _r===!1?[{},function(){}]:[u()(u()({},wi),{onChange:ea}),zi]}function ir(_t,_r,Lr){var en=a.useRef({});function bn(On){if(!en.current||en.current.data!==_t||en.current.childrenColumnName!==_r||en.current.getRowKey!==Lr){var yn=function Hn(pi){pi.forEach(function(Fi,wi){var Oi=Lr(Fi,wi);qn.set(Oi,Fi),Fi&&f()(Fi)==="object"&&_r in Fi&&Hn(Fi[_r]||[])})},qn=new Map;yn(_t),en.current={data:_t,childrenColumnName:_r,kvMap:qn,getRowKey:Lr}}return en.current.kvMap.get(On)}return[bn]}var Pt=r("SA+Z"),rr=r.n(Pt),Yr=r("RIqP"),Pr=r.n(Yr),Mr=r("Ved0"),fn=r.n(Mr),wn=r("c3jg"),ai=r("qOx5"),ri=r("wPhX"),gi=r("6cGi"),Ii=r("kaz8"),Mi=r("jsC+"),Qi=r("BvKs"),ot=r("9yH6"),Ne=r("uaoM"),He="SELECT_ALL",Ye="SELECT_INVERT";function at(_t){return _t&&_t.fixed}function qe(_t,_r){var Lr=[];return(_t||[]).forEach(function(en){Lr.push(en),en&&f()(en)==="object"&&_r in en&&(Lr=[].concat(Pr()(Lr),Pr()(qe(en[_r],_r))))}),Lr}function lt(_t,_r){var Lr=_t||{},en=Lr.preserveSelectedRowKeys,bn=Lr.selectedRowKeys,On=Lr.getCheckboxProps,yn=Lr.onChange,qn=Lr.onSelect,Hn=Lr.onSelectAll,pi=Lr.onSelectInvert,Fi=Lr.onSelectMultiple,wi=Lr.columnWidth,Oi=Lr.type,zi=Lr.selections,ea=Lr.fixed,Gi=Lr.renderCell,Wi=Lr.hideSelectAll,Hi=Lr.checkStrictly,Ji=Hi===void 0?!0:Hi,ca=_r.prefixCls,Ca=_r.data,na=_r.pageData,Pa=_r.getRecordByKey,La=_r.getRowKey,va=_r.expandType,ga=_r.childrenColumnName,Oa=_r.locale,Aa=_r.expandIconColumnIndex,Xa=_r.getPopupContainer,_a=a.useRef(new Map),Va=Object(gi.a)(bn||[],{value:bn}),Bi=p()(Va,2),io=Bi[0],oo=Bi[1],Qo=Object(a.useMemo)(function(){return Ji?{keyEntities:null}:Object(wn.a)(Ca,void 0,La)},[Ca,La,Ji]),mo=Qo.keyEntities,To=Object(a.useMemo)(function(){return qe(na,ga)},[na,ga]),ao=Object(a.useMemo)(function(){var uo=new Map;return To.forEach(function(Ha,vt){var Er=La(Ha,vt),qr=(On?On(Ha):null)||{};uo.set(Er,qr)}),uo},[To,La,On]),So=Object(a.useCallback)(function(uo){var Ha;return!!((Ha=ao.get(La(uo)))===null||Ha===void 0?void 0:Ha.disabled)},[ao,La]),bo=Object(a.useMemo)(function(){if(Ji)return[io,[]];var uo=Object(ai.a)(io,!0,mo,So),Ha=uo.checkedKeys,vt=uo.halfCheckedKeys;return[Ha,vt]},[io,Ji,mo,So]),to=p()(bo,2),Jo=to[0],Uo=to[1],wo=Object(a.useMemo)(function(){var uo=Oi==="radio"?Jo.slice(0,1):Jo;return new Set(uo)},[Jo,Oi]),ts=Object(a.useMemo)(function(){return Oi==="radio"?new Set:new Set(Uo)},[Uo,Oi]),Ia=Object(a.useState)(null),Oo=p()(Ia,2),Io=Oo[0],os=Oo[1];a.useEffect(function(){_t||oo([])},[!!_t]);var xo=Object(a.useCallback)(function(uo){var Ha,vt;if(en){var Er=new Map;Ha=uo,vt=uo.map(function(qr){var Gr=Pa(qr);return!Gr&&_a.current.has(qr)&&(Gr=_a.current.get(qr)),Er.set(qr,Gr),Gr}),_a.current=Er}else Ha=[],vt=[],uo.forEach(function(qr){var Gr=Pa(qr);Gr!==void 0&&(Ha.push(qr),vt.push(Gr))});oo(Ha),yn&&yn(Ha,vt)},[oo,Pa,yn,en]),rs=Object(a.useCallback)(function(uo,Ha,vt,Er){if(qn){var qr=vt.map(function(Gr){return Pa(Gr)});qn(Pa(uo),Ha,qr,Er)}xo(vt)},[qn,Pa,xo]),Ho=Object(a.useMemo)(function(){if(!zi||Wi)return null;var uo=zi===!0?[He,Ye]:zi;return uo.map(function(Ha){return Ha===He?{key:"all",text:Oa.selectionAll,onSelect:function(){xo(Ca.map(function(Er,qr){return La(Er,qr)}))}}:Ha===Ye?{key:"invert",text:Oa.selectInvert,onSelect:function(){var Er=new Set(wo);na.forEach(function(Gr,Qn){var un=La(Gr,Qn);Er.has(un)?Er.delete(un):Er.add(un)});var qr=Array.from(Er);xo(qr),pi&&(Object(Ne.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),pi(qr))}}:Ha})},[zi,wo,na,La,pi,xo]),_o=Object(a.useCallback)(function(uo){if(!_t)return uo;var Ha=new Set(wo),vt=To.map(La).filter(function(yi){return!ao.get(yi).disabled}),Er=vt.every(function(yi){return Ha.has(yi)}),qr=vt.some(function(yi){return Ha.has(yi)}),Gr=function(){var Ni=[];Er?vt.forEach(function(Ki){Ha.delete(Ki),Ni.push(Ki)}):vt.forEach(function(Ki){Ha.has(Ki)||(Ha.add(Ki),Ni.push(Ki))});var ia=Array.from(Ha);xo(ia),Hn&&Hn(!Er,ia.map(function(Ki){return Pa(Ki)}),Ni.map(function(Ki){return Pa(Ki)}))},Qn;if(Oi!=="radio"){var un;if(Ho){var zr=a.createElement(Qi.a,{getPopupContainer:Xa},Ho.map(function(yi,Ni){var ia=yi.key,Ki=yi.text,fa=yi.onSelect;return a.createElement(Qi.a.Item,{key:ia||Ni,onClick:function(){fa&&fa(vt)}},Ki)}));un=a.createElement("div",{className:"".concat(ca,"-selection-extra")},a.createElement(Mi.a,{overlay:zr,getPopupContainer:Xa},a.createElement("span",null,a.createElement(fn.a,null))))}var ni=To.every(function(yi,Ni){var ia=La(yi,Ni),Ki=ao.get(ia)||{};return Ki.disabled});Qn=!Wi&&a.createElement("div",{className:"".concat(ca,"-selection")},a.createElement(Ii.a,{checked:!ni&&!!To.length&&Er,indeterminate:!Er&&qr,onChange:Gr,disabled:To.length===0||ni}),un)}var rn;Oi==="radio"?rn=function(Ni,ia,Ki){var fa=La(ia,Ki),Ya=Ha.has(fa);return{node:a.createElement(ot.a,u()({},ao.get(fa),{checked:Ya,onClick:function(wa){return wa.stopPropagation()},onChange:function(wa){Ha.has(fa)||rs(fa,!0,[fa],wa.nativeEvent)}})),checked:Ya}}:rn=function(Ni,ia,Ki){var fa,Ya=La(ia,Ki),xa=Ha.has(Ya),wa=ts.has(Ya),Da=ao.get(Ya),ja;return va==="nest"?(ja=wa,Object(Ne.a)(!(typeof(Da==null?void 0:Da.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ja=(fa=Da==null?void 0:Da.indeterminate)!==null&&fa!==void 0?fa:wa,{node:a.createElement(Ii.a,u()({},Da,{indeterminate:ja,checked:xa,onClick:function(ro){return ro.stopPropagation()},onChange:function(ro){var pa=ro.nativeEvent,Ea=pa.shiftKey,Fa=-1,Ka=-1;if(Ea&&Ji){var lo=new Set([Io,Ya]);vt.some(function($a,ss){if(lo.has($a))if(Fa===-1)Fa=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Fa!==Ka&&Ji){var so=vt.slice(Fa,Ka+1),Co=[];xa?so.forEach(function($a){Ha.has($a)&&(Co.push($a),Ha.delete($a))}):so.forEach(function($a){Ha.has($a)||(Co.push($a),Ha.add($a))});var Lo=Array.from(Ha);xo(Lo),Fi&&Fi(!xa,Lo.map(function($a){return Pa($a)}),Co.map(function($a){return Pa($a)}))}else{var is=Jo;if(Ji){var cs=xa?Object(ri.b)(is,Ya):Object(ri.a)(is,Ya);rs(Ya,!xa,cs,pa)}else{var Rs=Object(ai.a)([].concat(Pr()(is),[Ya]),!0,mo,So),Ko=Rs.checkedKeys,as=Rs.halfCheckedKeys,co=Ko;if(xa){var Ao=new Set(Ko);Ao.delete(Ya),co=Object(ai.a)(Array.from(Ao),{checked:!1,halfCheckedKeys:as},mo,So).checkedKeys}rs(Ya,!xa,co,pa)}}os(Ya)}})),checked:xa}};var Kn=function(Ni,ia,Ki){var fa=rn(Ni,ia,Ki),Ya=fa.node,xa=fa.checked;return Gi?Gi(xa,ia,Ki,Ya):Ya},li=A()({width:wi,className:"".concat(ca,"-selection-column"),title:_t.columnTitle||Qn,render:Kn},$,{className:"".concat(ca,"-selection-col")});if(va==="row"&&uo.length&&!Aa){var ci=rr()(uo),si=ci[0],Ci=ci.slice(1),mi=ea||at(Ci[0]);return mi&&(si.fixed=mi),[si,u()(u()({},li),{fixed:mi})].concat(Pr()(Ci))}return[u()(u()({},li),{fixed:ea||at(uo[0])})].concat(Pr()(uo))},[La,To,_t,Jo,wo,ts,wi,Ho,va,Io,ao,Fi,rs,So]);return[_o,wo]}var Et=r("MVse"),At=r.n(Et),fr=r("/hr5"),Jr=r.n(fr),Vr=r("3S7+");function dn(_t,_r){return"key"in _t&&_t.key!==void 0&&_t.key!==null?_t.key:_t.dataIndex?Array.isArray(_t.dataIndex)?_t.dataIndex.join("."):_t.dataIndex:_r}function gr(_t,_r){return _r?"".concat(_r,"-").concat(_t):"".concat(_t)}function Wn(_t,_r){return typeof _t=="function"?_t(_r):_t}var kr="ascend",Fn="descend";function vn(_t){return f()(_t.sorter)==="object"&&typeof _t.sorter.multiple=="number"?_t.sorter.multiple:!1}function $r(_t){return typeof _t=="function"?_t:_t&&f()(_t)==="object"&&_t.compare?_t.compare:!1}function ei(_t,_r){return _r?_t[_t.indexOf(_r)+1]:_t[0]}function fi(_t,_r,Lr){var en=[];function bn(On,yn){en.push({column:On,key:dn(On,yn),multiplePriority:vn(On),sortOrder:On.sortOrder})}return(_t||[]).forEach(function(On,yn){var qn=gr(yn,Lr);On.children?("sortOrder"in On&&bn(On,qn),en=[].concat(Pr()(en),Pr()(fi(On.children,_r,qn)))):On.sorter&&("sortOrder"in On?bn(On,qn):_r&&On.defaultSortOrder&&en.push({column:On,key:dn(On,qn),multiplePriority:vn(On),sortOrder:On.defaultSortOrder}))}),en}function Pi(_t,_r,Lr,en,bn,On,yn,qn){return(_r||[]).map(function(Hn,pi){var Fi=gr(pi,qn),wi=Hn;if(wi.sorter){var Oi=wi.sortDirections||bn,zi=wi.showSorterTooltip===void 0?yn:wi.showSorterTooltip,ea=dn(wi,Fi),Gi=Lr.find(function(ga){var Oa=ga.key;return Oa===ea}),Wi=Gi?Gi.sortOrder:null,Hi=ei(Oi,Wi),Ji=Oi.includes(kr)&&a.createElement(Jr.a,{className:t()("".concat(_t,"-column-sorter-up"),{active:Wi===kr})}),ca=Oi.includes(Fn)&&a.createElement(At.a,{className:t()("".concat(_t,"-column-sorter-down"),{active:Wi===Fn})}),Ca=On||{},na=Ca.cancelSort,Pa=Ca.triggerAsc,La=Ca.triggerDesc,va=na;Hi===Fn?va=La:Hi===kr&&(va=Pa),wi=u()(u()({},wi),{className:t()(wi.className,A()({},"".concat(_t,"-column-sort"),Wi)),title:function(Oa){var Aa=a.createElement("div",{className:"".concat(_t,"-column-sorters")},a.createElement("span",null,Wn(Hn.title,Oa)),a.createElement("span",{className:t()("".concat(_t,"-column-sorter"),A()({},"".concat(_t,"-column-sorter-full"),Ji&&ca))},a.createElement("span",{className:"".concat(_t,"-column-sorter-inner")},Ji,ca)));return zi?a.createElement(Vr.a,{title:va},a.createElement("div",{className:"".concat(_t,"-column-sorters-with-tooltip")},Aa)):Aa},onHeaderCell:function(Oa){var Aa=Hn.onHeaderCell&&Hn.onHeaderCell(Oa)||{},Xa=Aa.onClick;return Aa.onClick=function(_a){en({column:Hn,key:ea,sortOrder:Hi,multiplePriority:vn(Hn)}),Xa&&Xa(_a)},Aa.className=t()(Aa.className,"".concat(_t,"-column-has-sorters")),Aa}})}return"children"in wi&&(wi=u()(u()({},wi),{children:Pi(_t,wi.children,Lr,en,bn,On,yn,Fi)})),wi})}function Zr(_t){var _r=_t.column,Lr=_t.sortOrder;return{column:_r,order:Lr,field:_r.dataIndex,columnKey:_r.key}}function Sn(_t){var _r=_t.filter(function(Lr){var en=Lr.sortOrder;return en}).map(Zr);return _r.length===0&&_t.length?u()(u()({},Zr(_t[_t.length-1])),{column:void 0}):_r.length<=1?_r[0]||{}:_r}function Gn(_t,_r,Lr){var en=_r.slice().sort(function(yn,qn){return qn.multiplePriority-yn.multiplePriority}),bn=_t.slice(),On=en.filter(function(yn){var qn=yn.column.sorter,Hn=yn.sortOrder;return $r(qn)&&Hn});return On.length?bn.sort(function(yn,qn){for(var Hn=0;Hn<On.length;Hn+=1){var pi=On[Hn],Fi=pi.column.sorter,wi=pi.sortOrder,Oi=$r(Fi);if(Oi&&wi){var zi=Oi(yn,qn,wi);if(zi!==0)return wi===kr?zi:-zi}}return 0}).map(function(yn){var qn=yn[Lr];return qn?u()(u()({},yn),A()({},Lr,Gn(qn,_r,Lr))):yn}):bn}function Wt(_t){var _r=_t.prefixCls,Lr=_t.mergedColumns,en=_t.onSorterChange,bn=_t.sortDirections,On=_t.tableLocale,yn=_t.showSorterTooltip,qn=a.useState(fi(Lr,!0)),Hn=p()(qn,2),pi=Hn[0],Fi=Hn[1],wi=a.useMemo(function(){var Wi=!0,Hi=fi(Lr,!1);if(!Hi.length)return pi;var Ji=[];function ca(na){Wi?Ji.push(na):Ji.push(u()(u()({},na),{sortOrder:null}))}var Ca=null;return Hi.forEach(function(na){Ca===null?(ca(na),na.sortOrder&&(na.multiplePriority===!1?Wi=!1:Ca=!0)):(Ca&&na.multiplePriority!==!1||(Wi=!1),ca(na))}),Ji},[Lr,pi]),Oi=a.useMemo(function(){var Wi=wi.map(function(Hi){var Ji=Hi.column,ca=Hi.sortOrder;return{column:Ji,order:ca}});return{sortColumns:Wi,sortColumn:Wi[0]&&Wi[0].column,sortOrder:Wi[0]&&Wi[0].order}},[wi]);function zi(Wi){var Hi;Wi.multiplePriority===!1||!wi.length||wi[0].multiplePriority===!1?Hi=[Wi]:Hi=[].concat(Pr()(wi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key})),[Wi]),Fi(Hi),en(Sn(Hi),Hi)}var ea=function(Hi){return Pi(_r,Hi,wi,zi,bn,On,yn)},Gi=function(){return Sn(wi)};return[ea,wi,Oi,Gi]}var Ot=r("Y+p1"),Rt=r.n(Ot),Ut=r("bU0H"),Kt=r.n(Ut),Lt=r("2/Rp"),cr=r("ECub"),vr=function(_r){return a.createElement("div",{className:_r.className,onClick:function(en){return en.stopPropagation()}},_r.children)},yr=vr,Rr=r("sPtV"),Vn=Qi.a.SubMenu,kn=Qi.a.Item;function di(_t){return _t.some(function(_r){var Lr=_r.children;return Lr})}function pn(_t){var _r=_t.filters,Lr=_t.prefixCls,en=_t.filteredKeys,bn=_t.filterMultiple,On=_t.locale;return _r.length===0?a.createElement(a.Fragment,null,a.createElement(cr.a,{image:cr.a.PRESENTED_IMAGE_SIMPLE,description:On.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):_r.map(function(yn,qn){var Hn=String(yn.value);if(yn.children)return a.createElement(Vn,{key:Hn||qn,title:yn.text,popupClassName:"".concat(Lr,"-dropdown-submenu")},pn({filters:yn.children,prefixCls:Lr,filteredKeys:en,filterMultiple:bn,locale:On}));var pi=bn?Ii.a:ot.a;return a.createElement(kn,{key:yn.value!==void 0?Hn:qn},a.createElement(pi,{checked:en.includes(Hn)}),a.createElement("span",null,yn.text))})}function Br(_t){var _r,Lr=_t.prefixCls,en=_t.column,bn=_t.dropdownPrefixCls,On=_t.columnKey,yn=_t.filterMultiple,qn=_t.filterState,Hn=_t.triggerFilter,pi=_t.locale,Fi=_t.children,wi=_t.getPopupContainer,Oi=en.filterDropdownVisible,zi=en.onFilterDropdownVisibleChange,ea=a.useState(!1),Gi=p()(ea,2),Wi=Gi[0],Hi=Gi[1],Ji=!!(qn&&(((_r=qn.filteredKeys)===null||_r===void 0?void 0:_r.length)||qn.forceFiltered)),ca=function(Oo){Hi(Oo),zi&&zi(Oo)},Ca=typeof Oi=="boolean"?Oi:Wi,na=qn&&qn.filteredKeys,Pa=Object(Rr.a)(na||[]),La=p()(Pa,2),va=La[0],ga=La[1],Oa=function(Oo){var Io=Oo.selectedKeys;ga(Io)};a.useEffect(function(){Oa({selectedKeys:na||[]})},[na]);var Aa=a.useState([]),Xa=p()(Aa,2),_a=Xa[0],Va=Xa[1],Bi=a.useRef(),io=function(Oo){Bi.current=window.setTimeout(function(){Va(Oo)})},oo=function(){window.clearTimeout(Bi.current)};a.useEffect(function(){return function(){window.clearTimeout(Bi.current)}},[]);var Qo=function(Oo){ca(!1);var Io=Oo&&Oo.length?Oo:null;if(Io===null&&(!qn||!qn.filteredKeys))return null;if(Rt()(Io,qn==null?void 0:qn.filteredKeys))return null;Hn({column:en,key:On,filteredKeys:Io})},mo=function(){Qo(va())},To=function(){ga([]),Qo([])},ao=function(Oo){Oo&&na!==void 0&&ga(na||[]),ca(Oo),!Oo&&!en.filterDropdown&&mo()},So=t()(A()({},"".concat(bn,"-menu-without-submenu"),!di(en.filters||[]))),bo;if(typeof en.filterDropdown=="function")bo=en.filterDropdown({prefixCls:"".concat(bn,"-custom"),setSelectedKeys:function(Oo){return Oa({selectedKeys:Oo})},selectedKeys:va(),confirm:mo,clearFilters:To,filters:en.filters,visible:Ca});else if(en.filterDropdown)bo=en.filterDropdown;else{var to=va()||[];bo=a.createElement(a.Fragment,null,a.createElement(Qi.a,{multiple:yn,prefixCls:"".concat(bn,"-menu"),className:So,onClick:oo,onSelect:Oa,onDeselect:Oa,selectedKeys:to,getPopupContainer:wi,openKeys:_a,onOpenChange:io},pn({filters:en.filters||[],prefixCls:Lr,filteredKeys:va(),filterMultiple:yn,locale:pi})),a.createElement("div",{className:"".concat(Lr,"-dropdown-btns")},a.createElement(Lt.a,{type:"link",size:"small",disabled:to.length===0,onClick:To},pi.filterReset),a.createElement(Lt.a,{type:"primary",size:"small",onClick:mo},pi.filterConfirm)))}var Jo=a.createElement(yr,{className:"".concat(Lr,"-dropdown")},bo),Uo;typeof en.filterIcon=="function"?Uo=en.filterIcon(Ji):en.filterIcon?Uo=en.filterIcon:Uo=a.createElement(Kt.a,null);var wo=a.useContext(ur.b),ts=wo.direction;return a.createElement("div",{className:t()("".concat(Lr,"-column"))},a.createElement("span",{className:"".concat(Lr,"-column-title")},Fi),a.createElement("span",{className:t()("".concat(Lr,"-trigger-container"),A()({},"".concat(Lr,"-trigger-container-open"),Ca)),onClick:function(Oo){Oo.stopPropagation()}},a.createElement(Mi.a,{overlay:Jo,trigger:["click"],visible:Ca,onVisibleChange:ao,getPopupContainer:wi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},a.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Lr,"-trigger"),{active:Ji})},Uo))))}var _n=Br;function Xn(_t,_r,Lr){var en=[];return(_t||[]).forEach(function(bn,On){var yn=gr(On,Lr);"children"in bn?en=[].concat(Pr()(en),Pr()(Xn(bn.children,_r,yn))):(bn.filters||"filterDropdown"in bn||"onFilter"in bn)&&("filteredValue"in bn?en.push({column:bn,key:dn(bn,yn),filteredKeys:bn.filteredValue,forceFiltered:bn.filtered}):en.push({column:bn,key:dn(bn,yn),filteredKeys:_r&&bn.defaultFilteredValue?bn.defaultFilteredValue:void 0,forceFiltered:bn.filtered}))}),en}function $n(_t,_r,Lr,en,bn,On,yn,qn){return Lr.map(function(Hn,pi){var Fi=gr(pi,qn),wi=Hn.filterMultiple,Oi=wi===void 0?!0:wi;if(Hn.filters||"filterDropdown"in Hn){var zi=dn(Hn,Fi),ea=en.find(function(Gi){var Wi=Gi.key;return zi===Wi});return u()(u()({},Hn),{title:function(Wi){return a.createElement(_n,{prefixCls:"".concat(_t,"-filter"),dropdownPrefixCls:_r,column:Hn,columnKey:zi,filterState:ea,filterMultiple:Oi,triggerFilter:bn,locale:yn,getPopupContainer:On},Wn(Hn.title,Wi))}})}return"children"in Hn?u()(u()({},Hn),{children:$n(_t,_r,Hn.children,en,bn,On,yn,Fi)}):Hn})}function oi(_t){var _r={};return _t.forEach(function(Lr){var en=Lr.key,bn=Lr.filteredKeys;_r[en]=bn||null}),_r}function Ti(_t){var _r=[];return(_t||[]).forEach(function(Lr){var en=Lr.value,bn=Lr.children;_r.push(en),bn&&(_r=[].concat(Pr()(_r),Pr()(Ti(bn))))}),_r}function Ri(_t,_r){return _r.reduce(function(Lr,en){var bn=en.column,On=bn.onFilter,yn=bn.filters,qn=en.filteredKeys;return On&&qn&&qn.length?Lr.filter(function(Hn){return qn.some(function(pi){var Fi=Ti(yn),wi=Fi.findIndex(function(zi){return String(zi)===String(pi)}),Oi=wi!==-1?Fi[wi]:pi;return On(Oi,Hn)})}):Lr},_t)}function Di(_t){var _r=_t.prefixCls,Lr=_t.dropdownPrefixCls,en=_t.mergedColumns,bn=_t.onFilterChange,On=_t.getPopupContainer,yn=_t.locale,qn=a.useState(Xn(en,!0)),Hn=p()(qn,2),pi=Hn[0],Fi=Hn[1],wi=a.useMemo(function(){var Gi=Xn(en,!1);return Gi.every(function(Wi){var Hi=Wi.filteredKeys;return Hi===void 0})?pi:Gi},[en,pi]),Oi=a.useCallback(function(){return oi(wi)},[wi]),zi=function(Wi){var Hi=wi.filter(function(Ji){var ca=Ji.key;return ca!==Wi.key});Hi.push(Wi),Fi(Hi),bn(oi(Hi),Hi)},ea=function(Wi){return $n(_r,Lr,Wi,wi,zi,On,yn)};return[ea,wi,Oi]}var oa=Di;function ma(_t,_r){return _t.map(function(Lr){var en=u()({},Lr);return en.title=Wn(Lr.title,_r),"children"in en&&(en.children=ma(en.children,_r)),en})}function aa(_t){var _r=a.useCallback(function(Lr){return ma(Lr,_t)},[_t]);return[_r]}function ba(_t){return function(Lr){var en,bn=Lr.prefixCls,On=Lr.onExpand,yn=Lr.record,qn=Lr.expanded,Hn=Lr.expandable,pi="".concat(bn,"-row-expand-icon");return a.createElement("button",{type:"button",onClick:function(wi){On(yn,wi),wi.stopPropagation()},className:t()(pi,(en={},A()(en,"".concat(pi,"-spaced"),!Hn),A()(en,"".concat(pi,"-expanded"),Hn&&qn),A()(en,"".concat(pi,"-collapsed"),Hn&&!qn),en)),"aria-label":qn?_t.collapse:_t.expand})}}var bi=ba,Rn=r("zAh6"),ji=r("ZvpZ"),ha=ji.a,ta=r("3Nzz");function ra(_t){return null}var Ir=ra;function Sr(_t){return null}var Tn=Sr,pr=r("5OYt"),Dr=[];function Wr(_t){var _r,Lr=_t.prefixCls,en=_t.className,bn=_t.style,On=_t.size,yn=_t.bordered,qn=_t.dropdownPrefixCls,Hn=_t.dataSource,pi=_t.pagination,Fi=_t.rowSelection,wi=_t.rowKey,Oi=_t.rowClassName,zi=_t.columns,ea=_t.children,Gi=_t.childrenColumnName,Wi=_t.onChange,Hi=_t.getPopupContainer,Ji=_t.loading,ca=_t.expandIcon,Ca=_t.expandable,na=_t.expandedRowRender,Pa=_t.expandIconColumnIndex,La=_t.indentSize,va=_t.scroll,ga=_t.sortDirections,Oa=_t.locale,Aa=_t.showSorterTooltip,Xa=Aa===void 0?!0:Aa;Object(Ne.a)(!(typeof wi=="function"&&wi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var _a=Object(pr.a)(),Va=a.useMemo(function(){var Ao=new Set(Object.keys(_a).filter(function($a){return _a[$a]}));return(zi||me(ea)).filter(function($a){return!$a.responsive||$a.responsive.some(function(ss){return Ao.has(ss)})})},[ea,zi,_a]),Bi=Object(s.default)(_t,["className","style","columns"]),io=a.useContext(ta.b),oo=a.useContext(ur.b),Qo=oo.locale,mo=Qo===void 0?ha:Qo,To=oo.renderEmpty,ao=oo.direction,So=On||io,bo=u()(u()({},mo.Table),Oa),to=Hn||Dr,Jo=a.useContext(ur.b),Uo=Jo.getPrefixCls,wo=Uo("table",Lr),ts=Uo("dropdown",qn),Ia=u()({childrenColumnName:Gi,expandIconColumnIndex:Pa},Ca),Oo=Ia.childrenColumnName,Io=Oo===void 0?"children":Oo,os=a.useMemo(function(){return to.some(function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[Io]})?"nest":na||Ca&&Ca.expandedRowRender?"row":null},[to]),xo={body:a.useRef()},rs=a.useMemo(function(){return typeof wi=="function"?wi:function(Ao){var $a;return($a=Ao)===null||$a===void 0?void 0:$a[wi]}},[wi]),Ho=ir(to,Io,rs),_o=p()(Ho,1),uo=_o[0],Ha={},vt=function($a,ss){var _s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fo=u()(u()({},Ha),$a);_s&&(Ha.resetPagination(),Fo.pagination.current&&(Fo.pagination.current=1),pi&&pi.onChange&&pi.onChange(1,Fo.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&xo.body.current&&Object(Rn.a)(0,{getContainer:function(){return xo.body.current}}),Wi&&Wi(Fo.pagination,Fo.filters,Fo.sorter,{currentDataSource:Ri(Gn(to,Fo.sorterStates,Io),Fo.filterStates),action:ss})},Er=function($a,ss){vt({sorter:$a,sorterStates:ss},"sort",!1)},qr=Wt({prefixCls:wo,mergedColumns:Va,onSorterChange:Er,sortDirections:ga||["ascend","descend"],tableLocale:bo,showSorterTooltip:Xa}),Gr=p()(qr,4),Qn=Gr[0],un=Gr[1],zr=Gr[2],ni=Gr[3],rn=a.useMemo(function(){return Gn(to,un,Io)},[to,un]);Ha.sorter=ni(),Ha.sorterStates=un;var Kn=function($a,ss){vt({filters:$a,filterStates:ss},"filter",!0)},li=oa({prefixCls:wo,locale:bo,dropdownPrefixCls:ts,mergedColumns:Va,onFilterChange:Kn,getPopupContainer:Hi}),ci=p()(li,3),si=ci[0],Ci=ci[1],mi=ci[2],yi=Ri(rn,Ci);Ha.filters=mi(),Ha.filterStates=Ci;var Ni=a.useMemo(function(){return u()({},zr)},[zr]),ia=aa(Ni),Ki=p()(ia,1),fa=Ki[0],Ya=function($a,ss){vt({pagination:u()(u()({},Ha.pagination),{current:$a,pageSize:ss})},"paginate")},xa=Ft(yi.length,pi,Ya),wa=p()(xa,2),Da=wa[0],ja=wa[1];Ha.pagination=pi===!1?{}:Ar(pi,Da),Ha.resetPagination=ja;var ko=a.useMemo(function(){if(pi===!1||!Da.pageSize)return yi;var Ao=Da.current,$a=Ao===void 0?1:Ao,ss=Da.total,_s=Da.pageSize,Fo=_s===void 0?Ct:_s;return yi.length<ss?yi.length>Fo?(Object(Ne.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),yi.slice(($a-1)*Fo,$a*Fo)):yi:yi.slice(($a-1)*Fo,$a*Fo)},[!!pi,yi,Da&&Da.current,Da&&Da.pageSize,Da&&Da.total]),ro=lt(Fi,{prefixCls:wo,data:yi,pageData:ko,getRowKey:rs,getRecordByKey:uo,expandType:os,childrenColumnName:Io,locale:bo,expandIconColumnIndex:Ia.expandIconColumnIndex,getPopupContainer:Hi}),pa=p()(ro,2),Ea=pa[0],Fa=pa[1],Ka=function($a,ss,_s){var Fo;return typeof Oi=="function"?Fo=t()(Oi($a,ss,_s)):Fo=t()(Oi),t()(A()({},"".concat(wo,"-row-selected"),Fa.has(rs($a,ss))),Fo)};Ia.__PARENT_RENDER_ICON__=Ia.expandIcon,Ia.expandIcon=Ia.expandIcon||ca||bi(bo),os==="nest"&&Ia.expandIconColumnIndex===void 0?Ia.expandIconColumnIndex=Fi?1:0:Ia.expandIconColumnIndex>0&&Fi&&(Ia.expandIconColumnIndex-=1),typeof Ia.indentSize!="number"&&(Ia.indentSize=typeof La=="number"?La:15);var lo=a.useCallback(function(Ao){return fa(Ea(si(Qn(Ao))))},[Qn,si,Ea]),so,Co;if(pi!==!1){var Lo;Da.size?Lo=Da.size:Lo=So==="small"||So==="middle"?"small":void 0;var is=function($a){return a.createElement(Jn.a,u()({className:"".concat(wo,"-pagination ").concat(wo,"-pagination-").concat($a)},Da,{size:Lo}))},cs=ao==="rtl"?"left":"right";if(Da.position!==null&&Array.isArray(Da.position)){var Rs=Da.position.find(function(Ao){return Ao.indexOf("top")!==-1}),Ko=Da.position.find(function(Ao){return Ao.indexOf("bottom")!==-1});!Rs&&!Ko?Co=is(cs):(Rs&&(so=is(Rs.toLowerCase().replace("top",""))),Ko&&(Co=is(Ko.toLowerCase().replace("bottom",""))))}else Co=is(cs)}var as;typeof Ji=="boolean"?as={spinning:Ji}:f()(Ji)==="object"&&(as=u()({spinning:!0},Ji));var co=t()("".concat(wo,"-wrapper"),en,A()({},"".concat(wo,"-wrapper-rtl"),ao==="rtl"));return a.createElement("div",{className:co,style:bn},a.createElement(Yn.a,u()({spinning:!1},as),so,a.createElement(mn,u()({},Bi,{columns:Va,direction:ao,expandable:Ia,prefixCls:wo,className:t()((_r={},A()(_r,"".concat(wo,"-middle"),So==="middle"),A()(_r,"".concat(wo,"-small"),So==="small"),A()(_r,"".concat(wo,"-bordered"),yn),A()(_r,"".concat(wo,"-empty"),to.length===0),_r)),data:ko,rowKey:rs,rowClassName:Ka,emptyText:Oa&&Oa.emptyText||To("Table"),internalHooks:nt,internalRefs:xo,transformColumns:lo})),yi&&yi.length>0&&Co))}Wr.defaultProps={rowKey:"key"},Wr.SELECTION_ALL=He,Wr.SELECTION_INVERT=Ye,Wr.Column=Ir,Wr.ColumnGroup=Tn,Wr.Summary=En;var ln=Wr,Pn=L.a=ln},wDdD:function(R,L,r){var y=r("ProS"),f=r("bYtY");r("98bh"),r("GrNh");var x=r("d4KN"),A=r("mOdp"),m=r("KS52"),p=r("0/Rx");x("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(A("pie")),y.registerLayout(f.curry(m,"pie")),y.registerProcessor(p("pie"))},"wF/u":function(R,L,r){var y=r("e5cp"),f=r("ExA7");function x(A,m,p,d,u){return A===m?!0:A==null||m==null||!f(A)&&!f(m)?A!==A&&m!==m:y(A,m,p,d,x,u)}R.exports=x},wFql:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r("TSYQ"),d=r.n(p),u=r("H84U"),a=r("uaoM"),i=r("ID/q"),t=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},s=function(tr,Bt){var ft=tr.prefixCls,it=tr.component,Or=it===void 0?"article":it,an=tr.className,En=tr["aria-label"],Bn=tr.setContentRef,vi=tr.children,Ln=t(tr,["prefixCls","component","className","aria-label","setContentRef","children"]),Mn=Bt;return Bn&&(Object(a.a)(!1,"Typography","`setContentRef` is deprecated. Please use `ref` instead."),Mn=Object(i.a)(Bt,Bn)),m.createElement(u.a,null,function(Xt){var wt=Xt.getPrefixCls,De=Xt.direction,Re=Or,Me=wt("typography",ft),nt=d()(Me,an,A()({},"".concat(Me,"-rtl"),De==="rtl"));return m.createElement(Re,f()({className:nt,"aria-label":En,ref:Mn},Ln),vi)})},e=m.forwardRef(s);e.displayName="Typography";var l=e,n=l,o=r("cDf5"),c=r.n(o),h=r("RIqP"),g=r.n(h),v=r("lwsE"),b=r.n(v),S=r("W8MJ"),E=r.n(S),C=r("7W2i"),_=r.n(C),T=r("LQ03"),w=r.n(T),O=r("Zm9Q"),I=r("m+aA"),k=r("+QRC"),M=r.n(k),U=r("BGR+"),P=r("QxHS"),X=r.n(P),F=r("Eh2f"),j=r.n(F),K=r("Tsn0"),z=r.n(K),V=r("6ner"),Q=r("wEI+"),G=r("YMnH"),ee=r("4IlW"),se=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},ye={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},he=function(kt){_()(Bt,kt);var tr=w()(Bt);function Bt(){var ft;return b()(this,Bt),ft=tr.apply(this,arguments),ft.onKeyDown=function(it){var Or=it.keyCode;Or===ee.a.ENTER&&it.preventDefault()},ft.onKeyUp=function(it){var Or=it.keyCode,an=ft.props.onClick;Or===ee.a.ENTER&&an&&an()},ft.setRef=function(it){ft.div=it},ft}return E()(Bt,[{key:"componentDidMount",value:function(){var it=this.props.autoFocus;it&&this.focus()}},{key:"focus",value:function(){this.div&&this.div.focus()}},{key:"blur",value:function(){this.div&&this.div.blur()}},{key:"render",value:function(){var it=this.props,Or=it.style,an=it.noStyle,En=it.disabled,Bn=se(it,["style","noStyle","disabled"]),vi={};return an||(vi=f()({},ye)),En&&(vi.pointerEvents="none"),vi=f()(f()({},vi),Or),m.createElement("div",f()({role:"button",tabIndex:0,ref:this.setRef},Bn,{onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,style:vi}))}}]),Bt}(m.Component),ke=he,Pe=r("oHiP"),Ue=function(tr){if(typeof window!="undefined"&&window.document&&window.document.documentElement){var Bt=Array.isArray(tr)?tr:[tr],ft=window.document.documentElement;return Bt.some(function(it){return it in ft.style})}return!1},$e=Ue(["flex","webkitFlex","Flex","msFlex"]),Ge=Ue,ht=r("3S7+"),Fe=r("uEAt"),oe=r.n(Fe),rt=r("whJP"),fe=function(kt){_()(Bt,kt);var tr=w()(Bt);function Bt(){var ft;return b()(this,Bt),ft=tr.apply(this,arguments),ft.inComposition=!1,ft.state={current:""},ft.onChange=function(it){var Or=it.target.value;ft.setState({current:Or.replace(/[\n\r]/g,"")})},ft.onCompositionStart=function(){ft.inComposition=!0},ft.onCompositionEnd=function(){ft.inComposition=!1},ft.onKeyDown=function(it){var Or=it.keyCode;if(ft.inComposition)return;ft.lastKeyCode=Or},ft.onKeyUp=function(it){var Or=it.keyCode,an=it.ctrlKey,En=it.altKey,Bn=it.metaKey,vi=it.shiftKey,Ln=ft.props.onCancel;ft.lastKeyCode===Or&&!ft.inComposition&&!an&&!En&&!Bn&&!vi&&(Or===ee.a.ENTER?ft.confirmChange():Or===ee.a.ESC&&Ln())},ft.onBlur=function(){ft.confirmChange()},ft.confirmChange=function(){var it=ft.state.current,Or=ft.props.onSave;Or(it.trim())},ft.setTextarea=function(it){ft.textarea=it},ft}return E()(Bt,[{key:"componentDidMount",value:function(){if(this.textarea&&this.textarea.resizableTextArea){var it=this.textarea.resizableTextArea.textArea;it.focus();var Or=it.value.length;it.setSelectionRange(Or,Or)}}},{key:"render",value:function(){var it=this.state.current,Or=this.props,an=Or.prefixCls,En=Or["aria-label"],Bn=Or.className,vi=Or.style,Ln=Or.direction,Mn=Or.maxLength,Xt=Or.autoSize,wt=d()(an,Bn,"".concat(an,"-edit-content"),A()({},"".concat(an,"-rtl"),Ln==="rtl"));return m.createElement("div",{className:wt,style:vi},m.createElement(rt.a,{ref:this.setTextarea,maxLength:Mn,value:it,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd,onBlur:this.onBlur,"aria-label":En,autoSize:Xt===void 0||Xt}),m.createElement(oe.a,{className:"".concat(an,"-edit-content-confirm")}))}}],[{key:"getDerivedStateFromProps",value:function(it,Or){var an=Or.prevValue,En=it.value,Bn={prevValue:En};return an!==En&&(Bn.current=En),Bn}}]),Bt}(m.Component),J=fe,Y=r("i8i4"),$=1,de=3,we=8,Ce,Se={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function le(kt){if(!kt)return 0;var tr=kt.match(/^\d*(\.\d*)?/);return tr?Number(tr[0]):0}function pe(kt){var tr=Array.prototype.slice.apply(kt);return tr.map(function(Bt){return"".concat(Bt,": ").concat(kt.getPropertyValue(Bt),";")}).join("")}function _e(kt){var tr=[];return kt.forEach(function(Bt){var ft=tr[tr.length-1];typeof Bt=="string"&&typeof ft=="string"?tr[tr.length-1]+=Bt:tr.push(Bt)}),tr}var tt=function(kt,tr,Bt,ft,it){Ce||(Ce=document.createElement("div"),Ce.setAttribute("aria-hidden","true"),document.body.appendChild(Ce));var Or=tr.rows,an=tr.suffix,En=an===void 0?"":an,Bn=window.getComputedStyle(kt),vi=pe(Bn),Ln=le(Bn.lineHeight),Mn=Math.round(Ln*(Or+1)+le(Bn.paddingTop)+le(Bn.paddingBottom));Ce.setAttribute("style",vi),Ce.style.position="fixed",Ce.style.left="0",Ce.style.height="auto",Ce.style.minHeight="auto",Ce.style.maxHeight="auto",Ce.style.top="-999999px",Ce.style.zIndex="-1000",Ce.style.textOverflow="clip",Ce.style.whiteSpace="normal",Ce.style.webkitLineClamp="none";var Xt=_e(Object(O.a)(Bt));Object(Y.render)(m.createElement("div",{style:Se},m.createElement("span",{style:Se},Xt,En),m.createElement("span",{style:Se},ft)),Ce);function wt(){return Ce.offsetHeight<Mn}if(wt())return Object(Y.unmountComponentAtNode)(Ce),{content:Bt,text:Ce.innerHTML,ellipsis:!1};var De=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(Yn){var Jn=Yn.nodeType;return Jn!==we}),Re=Array.prototype.slice.apply(Ce.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Object(Y.unmountComponentAtNode)(Ce);var Me=[];Ce.innerHTML="";var nt=document.createElement("span");Ce.appendChild(nt);var yt=document.createTextNode(it+En);nt.appendChild(yt),Re.forEach(function(Yn){Ce.appendChild(Yn)});function sr(Yn){nt.insertBefore(Yn,yt)}function Nr(Yn,Jn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Jn.length,Ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Ar=Math.floor((ur+Tt)/2),er=Jn.slice(0,Ar);if(Yn.textContent=er,ur>=Tt-1)for(var Ft=Tt;Ft>=ur;Ft-=1){var ir=Jn.slice(0,Ft);if(Yn.textContent=ir,wt()||!ir)return Ft===Jn.length?{finished:!1,reactNode:Jn}:{finished:!0,reactNode:ir}}return wt()?Nr(Yn,Jn,Ar,Tt,Ar):Nr(Yn,Jn,ur,Ar,Ct)}function mn(Yn,Jn){var ur=Yn.nodeType;if(ur===$)return sr(Yn),wt()?{finished:!1,reactNode:Xt[Jn]}:(nt.removeChild(Yn),{finished:!0,reactNode:null});if(ur===de){var Tt=Yn.textContent||"",Ct=document.createTextNode(Tt);return sr(Ct),Nr(Ct,Tt)}return{finished:!1,reactNode:null}}return De.some(function(Yn,Jn){var ur=mn(Yn,Jn),Tt=ur.finished,Ct=ur.reactNode;return Ct&&Me.push(Ct),Tt}),{content:Me,text:Ce.innerHTML,ellipsis:!0}},gt=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},ct=Ge("webkitLineClamp"),je=Ge("textOverflow");function Zt(kt,tr){var Bt=kt.mark,ft=kt.code,it=kt.underline,Or=kt.delete,an=kt.strong,En=kt.keyboard,Bn=tr;function vi(Ln,Mn){if(!Ln)return;Bn=m.createElement(Mn,{},Bn)}return vi(an,"strong"),vi(it,"u"),vi(Or,"del"),vi(ft,"code"),vi(Bt,"mark"),vi(En,"kbd"),Bn}var ut="...",Ht=function(kt){_()(Bt,kt);var tr=w()(Bt);function Bt(){var ft;return b()(this,Bt),ft=tr.apply(this,arguments),ft.contentRef=m.createRef(),ft.state={edit:!1,copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1},ft.getPrefixCls=function(){var it=ft.props.prefixCls,Or=ft.context.getPrefixCls;return Or("typography",it)},ft.onExpandClick=function(it){var Or=ft.getEllipsis(),an=Or.onExpand;ft.setState({expanded:!0}),an&&an(it)},ft.onEditClick=function(){ft.triggerEdit(!0)},ft.onEditChange=function(it){var Or=ft.getEditable(),an=Or.onChange;an&&an(it),ft.triggerEdit(!1)},ft.onEditCancel=function(){ft.triggerEdit(!1)},ft.onCopyClick=function(){var it=ft.props,Or=it.children,an=it.copyable,En=f()({},c()(an)==="object"?an:null);En.text===void 0&&(En.text=String(Or)),M()(En.text||""),ft.setState({copied:!0},function(){En.onCopy&&En.onCopy(),ft.copyId=window.setTimeout(function(){ft.setState({copied:!1})},3e3)})},ft.setEditRef=function(it){ft.editIcon=it},ft.triggerEdit=function(it){var Or=ft.getEditable(),an=Or.onStart;it&&an&&an(),ft.setState({edit:it},function(){!it&&ft.editIcon&&ft.editIcon.focus()})},ft.resizeOnNextFrame=function(){Pe.a.cancel(ft.rafId),ft.rafId=Object(Pe.a)(function(){ft.syncEllipsis()})},ft}return E()(Bt,[{key:"componentDidMount",value:function(){this.setState({clientRendered:!0}),this.resizeOnNextFrame()}},{key:"componentDidUpdate",value:function(it){var Or=this.props.children,an=this.getEllipsis(),En=this.getEllipsis(it);(Or!==it.children||an.rows!==En.rows)&&this.resizeOnNextFrame()}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.copyId),Pe.a.cancel(this.rafId)}},{key:"getEditable",value:function(it){var Or=this.state.edit,an=it||this.props,En=an.editable;return En?f()({editing:Or},c()(En)==="object"?En:null):{editing:Or}}},{key:"getEllipsis",value:function(it){var Or=it||this.props,an=Or.ellipsis;return an?f()({rows:1,expandable:!1},c()(an)==="object"?an:null):{}}},{key:"canUseCSSEllipsis",value:function(){var it=this.state.clientRendered,Or=this.props,an=Or.editable,En=Or.copyable,Bn=this.getEllipsis(),vi=Bn.rows,Ln=Bn.expandable,Mn=Bn.suffix,Xt=Bn.onEllipsis;return Mn||(an||En||Ln||!it||Xt)?!1:vi===1?je:ct}},{key:"syncEllipsis",value:function(){var it=this.state,Or=it.ellipsisText,an=it.isEllipsis,En=it.expanded,Bn=this.getEllipsis(),vi=Bn.rows,Ln=Bn.suffix,Mn=Bn.onEllipsis,Xt=this.props.children;if(!vi||vi<0||!this.contentRef.current||En)return;if(this.canUseCSSEllipsis())return;Object(a.a)(Object(O.a)(Xt).every(function(nt){return typeof nt=="string"}),"Typography","`ellipsis` should use string as children only.");var wt=tt(Object(I.a)(this.contentRef.current),{rows:vi,suffix:Ln},Xt,this.renderOperations(!0),ut),De=wt.content,Re=wt.text,Me=wt.ellipsis;(Or!==Re||an!==Me)&&(this.setState({ellipsisText:Re,ellipsisContent:De,isEllipsis:Me}),an!==Me&&Mn&&Mn(Me))}},{key:"renderExpand",value:function(it){var Or=this.getEllipsis(),an=Or.expandable,En=Or.symbol,Bn=this.state,vi=Bn.expanded,Ln=Bn.isEllipsis;if(!an)return null;if(!it&&(vi||!Ln))return null;var Mn;return En?Mn=En:Mn=this.expandStr,m.createElement("a",{key:"expand",className:"".concat(this.getPrefixCls(),"-expand"),onClick:this.onExpandClick,"aria-label":this.expandStr},Mn)}},{key:"renderEdit",value:function(){var it=this.props.editable;if(!it)return;var Or=it.icon,an=it.tooltip,En=Object(O.a)(an)[0]||this.editStr,Bn=typeof En=="string"?En:"";return m.createElement(ht.a,{key:"edit",title:an===!1?"":En},m.createElement(ke,{ref:this.setEditRef,className:"".concat(this.getPrefixCls(),"-edit"),onClick:this.onEditClick,"aria-label":Bn},Or||m.createElement(X.a,{role:"button"})))}},{key:"renderCopy",value:function(){var it=this.state.copied,Or=this.props.copyable;if(!Or)return;var an=this.getPrefixCls(),En=Or.tooltips,Bn=Object(O.a)(En);Bn.length===0&&(Bn=[this.copyStr,this.copiedStr]);var vi=it?Bn[1]:Bn[0],Ln=typeof vi=="string"?vi:"",Mn=Object(O.a)(Or.icon);return m.createElement(ht.a,{key:"copy",title:En===!1?"":vi},m.createElement(ke,{className:d()("".concat(an,"-copy"),it&&"".concat(an,"-copy-success")),onClick:this.onCopyClick,"aria-label":Ln},it?Mn[1]||m.createElement(j.a,null):Mn[0]||m.createElement(z.a,null)))}},{key:"renderEditInput",value:function(){var it=this.props,Or=it.children,an=it.className,En=it.style,Bn=this.context.direction,vi=this.getEditable(),Ln=vi.maxLength,Mn=vi.autoSize;return m.createElement(J,{value:typeof Or=="string"?Or:"",onSave:this.onEditChange,onCancel:this.onEditCancel,prefixCls:this.getPrefixCls(),className:an,style:En,direction:Bn,maxLength:Ln,autoSize:Mn})}},{key:"renderOperations",value:function(it){return[this.renderExpand(it),this.renderEdit(),this.renderCopy()].filter(function(Or){return Or})}},{key:"renderContent",value:function(){var it=this,Or=this.state,an=Or.ellipsisContent,En=Or.isEllipsis,Bn=Or.expanded,vi=this.props,Ln=vi.component,Mn=vi.children,Xt=vi.className,wt=vi.type,De=vi.disabled,Re=vi.style,Me=gt(vi,["component","children","className","type","disabled","style"]),nt=this.context.direction,yt=this.getEllipsis(),sr=yt.rows,Nr=yt.suffix,mn=this.getPrefixCls(),Yn=Object(U.default)(Me,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard"].concat(g()(Q.a))),Jn=this.canUseCSSEllipsis(),ur=sr===1&&Jn,Tt=sr&&sr>1&&Jn,Ct=Mn,Ar;if(sr&&En&&!Bn&&!Jn){var er=Me.title;Ar=er,!er&&(typeof Mn=="string"||typeof Mn=="number")&&(Ar=String(Mn)),Ct=m.createElement("span",{title:Ar,"aria-hidden":"true"},an,ut,Nr)}else Ct=m.createElement(m.Fragment,null,Mn,Nr);return Ct=Zt(this.props,Ct),m.createElement(G.a,{componentName:"Text"},function(Ft){var ir,Pt=Ft.edit,rr=Ft.copy,Yr=Ft.copied,Pr=Ft.expand;return it.editStr=Pt,it.copyStr=rr,it.copiedStr=Yr,it.expandStr=Pr,m.createElement(V.a,{onResize:it.resizeOnNextFrame,disabled:!sr},m.createElement(n,f()({className:d()(Xt,(ir={},A()(ir,"".concat(mn,"-").concat(wt),wt),A()(ir,"".concat(mn,"-disabled"),De),A()(ir,"".concat(mn,"-ellipsis"),sr),A()(ir,"".concat(mn,"-ellipsis-single-line"),ur),A()(ir,"".concat(mn,"-ellipsis-multiple-line"),Tt),ir)),style:f()(f()({},Re),{WebkitLineClamp:Tt?sr:null}),component:Ln,ref:it.contentRef,"aria-label":Ar,direction:nt},Yn),Ct,it.renderOperations()))})}},{key:"render",value:function(){var it=this.getEditable(),Or=it.editing;return Or?this.renderEditInput():this.renderContent()}}],[{key:"getDerivedStateFromProps",value:function(it){var Or=it.children,an=it.editable;return Object(a.a)(!an||typeof Or=="string","Typography","When `editable` is enabled, the `children` should use string."),{}}}]),Bt}(m.Component);Ht.contextType=u.b,Ht.defaultProps={children:""};var dr=Ht,Vt=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},Mt=function(tr){var Bt=tr.ellipsis,ft=Vt(tr,["ellipsis"]);return Object(a.a)(c()(Bt)!=="object","Typography.Text","`ellipsis` only supports boolean value."),m.createElement(dr,f()({},ft,{ellipsis:!!Bt,component:"span"}))},Gt=Mt,Ve=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},me=function(tr,Bt){var ft=tr.ellipsis,it=tr.rel,Or=Ve(tr,["ellipsis","rel"]);Object(a.a)(c()(ft)!=="object","Typography.Link","`ellipsis` only supports boolean value.");var an=m.useRef(null);m.useImperativeHandle(Bt,function(){var Bn;return(Bn=an.current)===null||Bn===void 0?void 0:Bn.contentRef.current});var En=f()(f()({},Or),{rel:it===void 0&&Or.target==="_blank"?"noopener noreferrer":it});return m.createElement(dr,f()({},En,{ref:an,ellipsis:!!ft,component:"a"}))},te=m.forwardRef(me),Ze=r("CWQg"),Xe=function(kt,tr){var Bt={};for(var ft in kt)Object.prototype.hasOwnProperty.call(kt,ft)&&tr.indexOf(ft)<0&&(Bt[ft]=kt[ft]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ft=Object.getOwnPropertySymbols(kt);it<ft.length;it++)tr.indexOf(ft[it])<0&&Object.prototype.propertyIsEnumerable.call(kt,ft[it])&&(Bt[ft[it]]=kt[ft[it]]);return Bt},ue=Object(Ze.b)(1,2,3,4,5),St=function(tr){var Bt=tr.level,ft=Bt===void 0?1:Bt,it=Xe(tr,["level"]),Or;return ue.indexOf(ft)!==-1?Or="h".concat(ft):(Object(a.a)(!1,"Typography.Title","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version."),Or="h1"),m.createElement(dr,f()({},it,{component:Or}))},Qt=St,dt=function(tr){return m.createElement(dr,f()({},tr,{component:"div"}))},Jt=dt,$t=n;$t.Text=Gt,$t.Link=te,$t.Title=Qt,$t.Paragraph=Jt;var tn=L.a=$t},wJg7:function(R,L){var r=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function f(x,A){var m=typeof x;return A=A==null?r:A,!!A&&(m=="number"||m!="symbol"&&y.test(x))&&(x>-1&&x%1==0)&&x<A}R.exports=f},wOnQ:function(R,L,r){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(y,f){R.exports=f()})(this,function(){"use strict";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var y=function(be,Le){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,pt){We.__proto__=pt}||function(We,pt){for(var mr in pt)Object.prototype.hasOwnProperty.call(pt,mr)&&(We[mr]=pt[mr])},y(be,Le)};function f(xr,be){if(typeof be!="function"&&be!==null)throw new TypeError("Class extends value "+String(be)+" is not a constructor or null");y(xr,be);function Le(){this.constructor=xr}xr.prototype=be===null?Object.create(be):(Le.prototype=be.prototype,new Le)}var x=function(){return x=Object.assign||function(Le){for(var We,pt=1,mr=arguments.length;pt<mr;pt++){We=arguments[pt];for(var nn in We)Object.prototype.hasOwnProperty.call(We,nn)&&(Le[nn]=We[nn])}return Le},x.apply(this,arguments)};function A(xr,be,Le,We){function pt(mr){return mr instanceof Le?mr:new Le(function(nn){nn(mr)})}return new(Le||(Le=Promise))(function(mr,nn){function xn(Xi){try{ii(We.next(Xi))}catch(Ui){nn(Ui)}}function Un(Xi){try{ii(We.throw(Xi))}catch(Ui){nn(Ui)}}function ii(Xi){Xi.done?mr(Xi.value):pt(Xi.value).then(xn,Un)}ii((We=We.apply(xr,be||[])).next())})}function m(xr,be){var Le={label:0,sent:function(){if(mr[0]&1)throw mr[1];return mr[1]},trys:[],ops:[]},We,pt,mr,nn;return nn={next:xn(0),throw:xn(1),return:xn(2)},typeof Symbol=="function"&&(nn[Symbol.iterator]=function(){return this}),nn;function xn(ii){return function(Xi){return Un([ii,Xi])}}function Un(ii){if(We)throw new TypeError("Generator is already executing.");for(;Le;)try{if(We=1,pt&&(mr=ii[0]&2?pt.return:ii[0]?pt.throw||((mr=pt.return)&&mr.call(pt),0):pt.next)&&!(mr=mr.call(pt,ii[1])).done)return mr;(pt=0,mr)&&(ii=[ii[0]&2,mr.value]);switch(ii[0]){case 0:case 1:mr=ii;break;case 4:return Le.label++,{value:ii[1],done:!1};case 5:Le.label++,pt=ii[1],ii=[0];continue;case 7:ii=Le.ops.pop(),Le.trys.pop();continue;default:if(!(mr=Le.trys,mr=mr.length>0&&mr[mr.length-1])&&(ii[0]===6||ii[0]===2)){Le=0;continue}if(ii[0]===3&&(!mr||ii[1]>mr[0]&&ii[1]<mr[3])){Le.label=ii[1];break}if(ii[0]===6&&Le.label<mr[1]){Le.label=mr[1],mr=ii;break}if(mr&&Le.label<mr[2]){Le.label=mr[2],Le.ops.push(ii);break}mr[2]&&Le.ops.pop(),Le.trys.pop();continue}ii=be.call(xr,Le)}catch(Xi){ii=[6,Xi],pt=0}finally{We=mr=0}if(ii[0]&5)throw ii[1];return{value:ii[0]?ii[1]:void 0,done:!0}}}function p(xr,be,Le){if(Le||arguments.length===2)for(var We=0,pt=be.length,mr;We<pt;We++)(mr||!(We in be))&&(mr||(mr=Array.prototype.slice.call(be,0,We)),mr[We]=be[We]);return xr.concat(mr||be)}for(var d=function(){function xr(be,Le,We,pt){this.left=be,this.top=Le,this.width=We,this.height=pt}return xr.prototype.add=function(be,Le,We,pt){return new xr(this.left+be,this.top+Le,this.width+We,this.height+pt)},xr.fromClientRect=function(be,Le){return new xr(Le.left+be.windowBounds.left,Le.top+be.windowBounds.top,Le.width,Le.height)},xr.fromDOMRectList=function(be,Le){var We=Array.from(Le).find(function(pt){return pt.width!==0});return We?new xr(We.left+be.windowBounds.left,We.top+be.windowBounds.top,We.width,We.height):xr.EMPTY},xr.EMPTY=new xr(0,0,0,0),xr}(),u=function(be,Le){return d.fromClientRect(be,Le.getBoundingClientRect())},a=function(be){var Le=be.body,We=be.documentElement;if(!Le||!We)throw new Error("Unable to get document size");var pt=Math.max(Math.max(Le.scrollWidth,We.scrollWidth),Math.max(Le.offsetWidth,We.offsetWidth),Math.max(Le.clientWidth,We.clientWidth)),mr=Math.max(Math.max(Le.scrollHeight,We.scrollHeight),Math.max(Le.offsetHeight,We.offsetHeight),Math.max(Le.clientHeight,We.clientHeight));return new d(0,0,pt,mr)},i=function(be){for(var Le=[],We=0,pt=be.length;We<pt;){var mr=be.charCodeAt(We++);if(mr>=55296&&mr<=56319&&We<pt){var nn=be.charCodeAt(We++);(nn&64512)===56320?Le.push(((mr&1023)<<10)+(nn&1023)+65536):(Le.push(mr),We--)}else Le.push(mr)}return Le},t=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];if(String.fromCodePoint)return String.fromCodePoint.apply(String,be);var We=be.length;if(!We)return"";for(var pt=[],mr=-1,nn="";++mr<We;){var xn=be[mr];xn<=65535?pt.push(xn):(xn-=65536,pt.push((xn>>10)+55296,xn%1024+56320)),(mr+1===We||pt.length>16384)&&(nn+=String.fromCharCode.apply(String,pt),pt.length=0)}return nn},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<s.length;l++)e[s.charCodeAt(l)]=l;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),c=0;c<n.length;c++)o[n.charCodeAt(c)]=c;for(var h=function(be){var Le=be.length*.75,We=be.length,pt,mr=0,nn,xn,Un,ii;be[be.length-1]==="="&&(Le--,be[be.length-2]==="="&&Le--);var Xi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Le):new Array(Le),Ui=Array.isArray(Xi)?Xi:new Uint8Array(Xi);for(pt=0;pt<We;pt+=4)nn=o[be.charCodeAt(pt)],xn=o[be.charCodeAt(pt+1)],Un=o[be.charCodeAt(pt+2)],ii=o[be.charCodeAt(pt+3)],Ui[mr++]=nn<<2|xn>>4,Ui[mr++]=(xn&15)<<4|Un>>2,Ui[mr++]=(Un&3)<<6|ii&63;return Xi},g=function(be){for(var Le=be.length,We=[],pt=0;pt<Le;pt+=2)We.push(be[pt+1]<<8|be[pt]);return We},v=function(be){for(var Le=be.length,We=[],pt=0;pt<Le;pt+=4)We.push(be[pt+3]<<24|be[pt+2]<<16|be[pt+1]<<8|be[pt]);return We},b=5,S=6+5,E=2,C=S-b,_=65536>>b,T=1<<b,w=T-1,O=1024>>b,I=_+O,k=I,M=2048>>6,U=k+M,P=65536>>S,X=1<<C,F=X-1,j=function(be,Le,We){return be.slice?be.slice(Le,We):new Uint16Array(Array.prototype.slice.call(be,Le,We))},K=function(be,Le,We){return be.slice?be.slice(Le,We):new Uint32Array(Array.prototype.slice.call(be,Le,We))},z=function(be,Le){var We=h(be),pt=Array.isArray(We)?v(We):new Uint32Array(We),mr=Array.isArray(We)?g(We):new Uint16Array(We),nn=24,xn=j(mr,nn/2,pt[4]/2),Un=pt[5]===2?j(mr,(nn+pt[4])/2):K(pt,Math.ceil((nn+pt[4])/4));return new V(pt[0],pt[1],pt[2],pt[3],xn,Un)},V=function(){function xr(be,Le,We,pt,mr,nn){this.initialValue=be,this.errorValue=Le,this.highStart=We,this.highValueIndex=pt,this.index=mr,this.data=nn}return xr.prototype.get=function(be){var Le;if(be>=0){if(be<55296||be>56319&&be<=65535)return Le=this.index[be>>b],Le=(Le<<E)+(be&w),this.data[Le];if(be<=65535)return Le=this.index[_+(be-55296>>b)],Le=(Le<<E)+(be&w),this.data[Le];if(be<this.highStart)return Le=U-P+(be>>S),Le=this.index[Le],Le+=be>>b&F,Le=this.index[Le],Le=(Le<<E)+(be&w),this.data[Le];if(be<=1114111)return this.data[this.highValueIndex]}return this.errorValue},xr}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ee=0;ee<Q.length;ee++)G[Q.charCodeAt(ee)]=ee;var se="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ye=50,he=1,ke=2,Pe=3,Ue=4,$e=5,Ge=7,ht=8,Fe=9,oe=10,rt=11,fe=12,J=13,Y=14,$=15,de=16,we=17,Ce=18,Se=19,le=20,pe=21,_e=22,tt=23,gt=24,ct=25,je=26,Zt=27,ut=28,Ht=29,dr=30,Vt=31,Mt=32,Gt=33,Ve=34,me=35,te=36,Ze=37,Xe=38,ue=39,St=40,Qt=41,dt=42,Jt=43,$t=[9001,65288],tn="!",kt="\xD7",tr="\xF7",Bt=z(se),ft=[dr,te],it=[he,ke,Pe,$e],Or=[oe,ht],an=[Zt,je],En=it.concat(Or),Bn=[Xe,ue,St,Ve,me],vi=[$,J],Ln=function(be,Le){Le===void 0&&(Le="strict");var We=[],pt=[],mr=[];return be.forEach(function(nn,xn){var Un=Bt.get(nn);if(Un>ye?(mr.push(!0),Un-=ye):mr.push(!1),["normal","auto","loose"].indexOf(Le)!==-1&&[8208,8211,12316,12448].indexOf(nn)!==-1)return pt.push(xn),We.push(de);if(Un===Ue||Un===rt){if(xn===0)return pt.push(xn),We.push(dr);var ii=We[xn-1];return En.indexOf(ii)===-1?(pt.push(pt[xn-1]),We.push(ii)):(pt.push(xn),We.push(dr))}if(pt.push(xn),Un===Vt)return We.push(Le==="strict"?pe:Ze);if(Un===dt)return We.push(dr);if(Un===Ht)return We.push(dr);if(Un===Jt)return nn>=131072&&nn<=196605||nn>=196608&&nn<=262141?We.push(Ze):We.push(dr);We.push(Un)}),[pt,We,mr]},Mn=function(be,Le,We,pt){var mr=pt[We];if(Array.isArray(be)?be.indexOf(mr)!==-1:be===mr)for(var nn=We;nn<=pt.length;){nn++;var xn=pt[nn];if(xn===Le)return!0;if(xn!==oe)break}if(mr===oe)for(var nn=We;nn>0;){nn--;var Un=pt[nn];if(Array.isArray(be)?be.indexOf(Un)!==-1:be===Un)for(var ii=We;ii<=pt.length;){ii++;var xn=pt[ii];if(xn===Le)return!0;if(xn!==oe)break}if(Un!==oe)break}return!1},Xt=function(be,Le){for(var We=be;We>=0;){var pt=Le[We];if(pt===oe)We--;else return pt}return 0},wt=function(be,Le,We,pt,mr){if(We[pt]===0)return kt;var nn=pt-1;if(Array.isArray(mr)&&mr[nn]===!0)return kt;var xn=nn-1,Un=nn+1,ii=Le[nn],Xi=xn>=0?Le[xn]:0,Ui=Le[Un];if(ii===ke&&Ui===Pe)return kt;if(it.indexOf(ii)!==-1)return tn;if(it.indexOf(Ui)!==-1)return kt;if(Or.indexOf(Ui)!==-1)return kt;if(Xt(nn,Le)===ht)return tr;if(Bt.get(be[nn])===rt)return kt;if((ii===Mt||ii===Gt)&&Bt.get(be[Un])===rt)return kt;if(ii===Ge||Ui===Ge)return kt;if(ii===Fe)return kt;if([oe,J,$].indexOf(ii)===-1&&Ui===Fe)return kt;if([we,Ce,Se,gt,ut].indexOf(Ui)!==-1)return kt;if(Xt(nn,Le)===_e)return kt;if(Mn(tt,_e,nn,Le))return kt;if(Mn([we,Ce],pe,nn,Le))return kt;if(Mn(fe,fe,nn,Le))return kt;if(ii===oe)return tr;if(ii===tt||Ui===tt)return kt;if(Ui===de||ii===de)return tr;if([J,$,pe].indexOf(Ui)!==-1||ii===Y)return kt;if(Xi===te&&vi.indexOf(ii)!==-1)return kt;if(ii===ut&&Ui===te)return kt;if(Ui===le)return kt;if(ft.indexOf(Ui)!==-1&&ii===ct||ft.indexOf(ii)!==-1&&Ui===ct)return kt;if(ii===Zt&&[Ze,Mt,Gt].indexOf(Ui)!==-1||[Ze,Mt,Gt].indexOf(ii)!==-1&&Ui===je)return kt;if(ft.indexOf(ii)!==-1&&an.indexOf(Ui)!==-1||an.indexOf(ii)!==-1&&ft.indexOf(Ui)!==-1)return kt;if([Zt,je].indexOf(ii)!==-1&&(Ui===ct||[_e,$].indexOf(Ui)!==-1&&Le[Un+1]===ct)||[_e,$].indexOf(ii)!==-1&&Ui===ct||ii===ct&&[ct,ut,gt].indexOf(Ui)!==-1)return kt;if([ct,ut,gt,we,Ce].indexOf(Ui)!==-1)for(var qi=nn;qi>=0;){var Za=Le[qi];if(Za===ct)return kt;if([ut,gt].indexOf(Za)!==-1)qi--;else break}if([Zt,je].indexOf(Ui)!==-1)for(var qi=[we,Ce].indexOf(ii)!==-1?xn:nn;qi>=0;){var Za=Le[qi];if(Za===ct)return kt;if([ut,gt].indexOf(Za)!==-1)qi--;else break}if(Xe===ii&&[Xe,ue,Ve,me].indexOf(Ui)!==-1||[ue,Ve].indexOf(ii)!==-1&&[ue,St].indexOf(Ui)!==-1||[St,me].indexOf(ii)!==-1&&Ui===St)return kt;if(Bn.indexOf(ii)!==-1&&[le,je].indexOf(Ui)!==-1||Bn.indexOf(Ui)!==-1&&ii===Zt)return kt;if(ft.indexOf(ii)!==-1&&ft.indexOf(Ui)!==-1)return kt;if(ii===gt&&ft.indexOf(Ui)!==-1)return kt;if(ft.concat(ct).indexOf(ii)!==-1&&Ui===_e&&$t.indexOf(be[Un])===-1||ft.concat(ct).indexOf(Ui)!==-1&&ii===Ce)return kt;if(ii===Qt&&Ui===Qt){for(var eo=We[nn],po=1;eo>0&&(eo--,Le[eo]===Qt);)po++;if(po%2!==0)return kt}return ii===Mt&&Ui===Gt?kt:tr},De=function(be,Le){Le||(Le={lineBreak:"normal",wordBreak:"normal"});var We=Ln(be,Le.lineBreak),pt=We[0],mr=We[1],nn=We[2];(Le.wordBreak==="break-all"||Le.wordBreak==="break-word")&&(mr=mr.map(function(Un){return[ct,dr,dt].indexOf(Un)!==-1?Ze:Un}));var xn=Le.wordBreak==="keep-all"?nn.map(function(Un,ii){return Un&&be[ii]>=19968&&be[ii]<=40959}):void 0;return[pt,mr,xn]},Re=function(){function xr(be,Le,We,pt){this.codePoints=be,this.required=Le===tn,this.start=We,this.end=pt}return xr.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},xr}(),Me=function(be,Le){var We=i(be),pt=De(We,Le),mr=pt[0],nn=pt[1],xn=pt[2],Un=We.length,ii=0,Xi=0;return{next:function(){if(Xi>=Un)return{done:!0,value:null};for(var qi=kt;Xi<Un&&(qi=wt(We,nn,mr,++Xi,xn))===kt;);if(qi!==kt||Xi===Un){var Za=new Re(We,qi,ii,Xi);return ii=Xi,{value:Za,done:!1}}return{done:!0,value:null}}}},nt=1<<0,yt=1<<1,sr=1<<2,Nr=1<<3,mn=10,Yn=47,Jn=92,ur=9,Tt=32,Ct=34,Ar=61,er=35,Ft=36,ir=37,Pt=39,rr=40,Yr=41,Pr=95,Mr=45,fn=33,wn=60,ai=62,ri=64,gi=91,Ii=93,Mi=61,Qi=123,ot=63,Ne=125,He=124,Ye=126,at=128,qe=65533,lt=42,Et=43,At=44,fr=58,Jr=59,Vr=46,dn=0,gr=8,Wn=11,kr=14,Fn=31,vn=127,$r=-1,ei=48,fi=97,Pi=101,Zr=102,Sn=117,Gn=122,Wt=65,Ot=69,Rt=70,Ut=85,Kt=90,Lt=function(be){return be>=ei&&be<=57},cr=function(be){return be>=55296&&be<=57343},vr=function(be){return Lt(be)||be>=Wt&&be<=Rt||be>=fi&&be<=Zr},yr=function(be){return be>=fi&&be<=Gn},Rr=function(be){return be>=Wt&&be<=Kt},Vn=function(be){return yr(be)||Rr(be)},kn=function(be){return be>=at},di=function(be){return be===mn||be===ur||be===Tt},pn=function(be){return Vn(be)||kn(be)||be===Pr},Br=function(be){return pn(be)||Lt(be)||be===Mr},_n=function(be){return be>=dn&&be<=gr||be===Wn||be>=kr&&be<=Fn||be===vn},Xn=function(be,Le){return be!==Jn?!1:Le!==mn},$n=function(be,Le,We){return be===Mr?pn(Le)||Xn(Le,We):pn(be)?!0:!!(be===Jn&&Xn(be,Le))},oi=function(be,Le,We){return be===Et||be===Mr?Lt(Le)?!0:Le===Vr&&Lt(We):be===Vr?Lt(Le):Lt(be)},Ti=function(be){var Le=0,We=1;(be[Le]===Et||be[Le]===Mr)&&(be[Le]===Mr&&(We=-1),Le++);for(var pt=[];Lt(be[Le]);)pt.push(be[Le++]);var mr=pt.length?parseInt(t.apply(void 0,pt),10):0;be[Le]===Vr&&Le++;for(var nn=[];Lt(be[Le]);)nn.push(be[Le++]);var xn=nn.length,Un=xn?parseInt(t.apply(void 0,nn),10):0;(be[Le]===Ot||be[Le]===Pi)&&Le++;var ii=1;(be[Le]===Et||be[Le]===Mr)&&(be[Le]===Mr&&(ii=-1),Le++);for(var Xi=[];Lt(be[Le]);)Xi.push(be[Le++]);var Ui=Xi.length?parseInt(t.apply(void 0,Xi),10):0;return We*(mr+Un*Math.pow(10,-xn))*Math.pow(10,ii*Ui)},Ri={type:2},Di={type:3},oa={type:4},ma={type:13},aa={type:8},ba={type:21},bi={type:9},Rn={type:10},ji={type:11},ha={type:12},ta={type:14},ra={type:23},Ir={type:1},Sr={type:25},Tn={type:24},pr={type:26},Dr={type:27},Wr={type:28},ln={type:29},Pn={type:31},_t={type:32},_r=function(){function xr(){this._value=[]}return xr.prototype.write=function(be){this._value=this._value.concat(i(be))},xr.prototype.read=function(){for(var be=[],Le=this.consumeToken();Le!==_t;)be.push(Le),Le=this.consumeToken();return be},xr.prototype.consumeToken=function(){var be=this.consumeCodePoint();switch(be){case Ct:return this.consumeStringToken(Ct);case er:var Le=this.peekCodePoint(0),We=this.peekCodePoint(1),pt=this.peekCodePoint(2);if(Br(Le)||Xn(We,pt)){var mr=$n(Le,We,pt)?yt:nt,nn=this.consumeName();return{type:5,value:nn,flags:mr}}break;case Ft:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),ma;break;case Pt:return this.consumeStringToken(Pt);case rr:return Ri;case Yr:return Di;case lt:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),ta;break;case Et:if(oi(be,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(be),this.consumeNumericToken();break;case At:return oa;case Mr:var xn=be,Un=this.peekCodePoint(0),ii=this.peekCodePoint(1);if(oi(xn,Un,ii))return this.reconsumeCodePoint(be),this.consumeNumericToken();if($n(xn,Un,ii))return this.reconsumeCodePoint(be),this.consumeIdentLikeToken();if(Un===Mr&&ii===ai)return this.consumeCodePoint(),this.consumeCodePoint(),Tn;break;case Vr:if(oi(be,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(be),this.consumeNumericToken();break;case Yn:if(this.peekCodePoint(0)===lt)for(this.consumeCodePoint();;){var Xi=this.consumeCodePoint();if(Xi===lt&&(Xi=this.consumeCodePoint(),Xi===Yn))return this.consumeToken();if(Xi===$r)return this.consumeToken()}break;case fr:return pr;case Jr:return Dr;case wn:if(this.peekCodePoint(0)===fn&&this.peekCodePoint(1)===Mr&&this.peekCodePoint(2)===Mr)return this.consumeCodePoint(),this.consumeCodePoint(),Sr;break;case ri:var Ui=this.peekCodePoint(0),qi=this.peekCodePoint(1),Za=this.peekCodePoint(2);if($n(Ui,qi,Za)){var nn=this.consumeName();return{type:7,value:nn}}break;case gi:return Wr;case Jn:if(Xn(be,this.peekCodePoint(0)))return this.reconsumeCodePoint(be),this.consumeIdentLikeToken();break;case Ii:return ln;case Mi:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),aa;break;case Qi:return ji;case Ne:return ha;case Sn:case Ut:var eo=this.peekCodePoint(0),po=this.peekCodePoint(1);return eo===Et&&(vr(po)||po===ot)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(be),this.consumeIdentLikeToken();case He:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),bi;if(this.peekCodePoint(0)===He)return this.consumeCodePoint(),ba;break;case Ye:if(this.peekCodePoint(0)===Ar)return this.consumeCodePoint(),Rn;break;case $r:return _t}return di(be)?(this.consumeWhiteSpace(),Pn):Lt(be)?(this.reconsumeCodePoint(be),this.consumeNumericToken()):pn(be)?(this.reconsumeCodePoint(be),this.consumeIdentLikeToken()):{type:6,value:t(be)}},xr.prototype.consumeCodePoint=function(){var be=this._value.shift();return typeof be=="undefined"?-1:be},xr.prototype.reconsumeCodePoint=function(be){this._value.unshift(be)},xr.prototype.peekCodePoint=function(be){return be>=this._value.length?-1:this._value[be]},xr.prototype.consumeUnicodeRangeToken=function(){for(var be=[],Le=this.consumeCodePoint();vr(Le)&&be.length<6;)be.push(Le),Le=this.consumeCodePoint();for(var We=!1;Le===ot&&be.length<6;)be.push(Le),Le=this.consumeCodePoint(),We=!0;if(We){var pt=parseInt(t.apply(void 0,be.map(function(Un){return Un===ot?ei:Un})),16),mr=parseInt(t.apply(void 0,be.map(function(Un){return Un===ot?Rt:Un})),16);return{type:30,start:pt,end:mr}}var nn=parseInt(t.apply(void 0,be),16);if(this.peekCodePoint(0)===Mr&&vr(this.peekCodePoint(1))){this.consumeCodePoint(),Le=this.consumeCodePoint();for(var xn=[];vr(Le)&&xn.length<6;)xn.push(Le),Le=this.consumeCodePoint();var mr=parseInt(t.apply(void 0,xn),16);return{type:30,start:nn,end:mr}}else return{type:30,start:nn,end:nn}},xr.prototype.consumeIdentLikeToken=function(){var be=this.consumeName();return be.toLowerCase()==="url"&&this.peekCodePoint(0)===rr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===rr?(this.consumeCodePoint(),{type:19,value:be}):{type:20,value:be}},xr.prototype.consumeUrlToken=function(){var be=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r)return{type:22,value:""};var Le=this.peekCodePoint(0);if(Le===Pt||Le===Ct){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===Yr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),ra)}for(;;){var pt=this.consumeCodePoint();if(pt===$r||pt===Yr)return{type:22,value:t.apply(void 0,be)};if(di(pt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===Yr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,be)}):(this.consumeBadUrlRemnants(),ra);if(pt===Ct||pt===Pt||pt===rr||_n(pt))return this.consumeBadUrlRemnants(),ra;if(pt===Jn)if(Xn(pt,this.peekCodePoint(0)))be.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ra;else be.push(pt)}},xr.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},xr.prototype.consumeBadUrlRemnants=function(){for(;;){var be=this.consumeCodePoint();if(be===Yr||be===$r)return;Xn(be,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},xr.prototype.consumeStringSlice=function(be){for(var Le=5e4,We="";be>0;){var pt=Math.min(Le,be);We+=t.apply(void 0,this._value.splice(0,pt)),be-=pt}return this._value.shift(),We},xr.prototype.consumeStringToken=function(be){var Le="",We=0;do{var pt=this._value[We];if(pt===$r||pt===void 0||pt===be)return Le+=this.consumeStringSlice(We),{type:0,value:Le};if(pt===mn)return this._value.splice(0,We),Ir;if(pt===Jn){var mr=this._value[We+1];mr!==$r&&mr!==void 0&&(mr===mn?(Le+=this.consumeStringSlice(We),We=-1,this._value.shift()):Xn(pt,mr)&&(Le+=this.consumeStringSlice(We),Le+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},xr.prototype.consumeNumber=function(){var be=[],Le=sr,We=this.peekCodePoint(0);for((We===Et||We===Mr)&&be.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());We=this.peekCodePoint(0);var pt=this.peekCodePoint(1);if(We===Vr&&Lt(pt))for(be.push(this.consumeCodePoint(),this.consumeCodePoint()),Le=Nr;Lt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());We=this.peekCodePoint(0),pt=this.peekCodePoint(1);var mr=this.peekCodePoint(2);if((We===Ot||We===Pi)&&((pt===Et||pt===Mr)&&Lt(mr)||Lt(pt)))for(be.push(this.consumeCodePoint(),this.consumeCodePoint()),Le=Nr;Lt(this.peekCodePoint(0));)be.push(this.consumeCodePoint());return[Ti(be),Le]},xr.prototype.consumeNumericToken=function(){var be=this.consumeNumber(),Le=be[0],We=be[1],pt=this.peekCodePoint(0),mr=this.peekCodePoint(1),nn=this.peekCodePoint(2);if($n(pt,mr,nn)){var xn=this.consumeName();return{type:15,number:Le,flags:We,unit:xn}}return pt===ir?(this.consumeCodePoint(),{type:16,number:Le,flags:We}):{type:17,number:Le,flags:We}},xr.prototype.consumeEscapedCodePoint=function(){var be=this.consumeCodePoint();if(vr(be)){for(var Le=t(be);vr(this.peekCodePoint(0))&&Le.length<6;)Le+=t(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(Le,16);return We===0||cr(We)||We>1114111?qe:We}return be===$r?qe:be},xr.prototype.consumeName=function(){for(var be="";;){var Le=this.consumeCodePoint();if(Br(Le))be+=t(Le);else if(Xn(Le,this.peekCodePoint(0)))be+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Le),be}},xr}(),Lr=function(){function xr(be){this._tokens=be}return xr.create=function(be){var Le=new _r;return Le.write(be),new xr(Le.read())},xr.parseValue=function(be){return xr.create(be).parseComponentValue()},xr.parseValues=function(be){return xr.create(be).parseComponentValues()},xr.prototype.parseComponentValue=function(){for(var be=this.consumeToken();be.type===31;)be=this.consumeToken();if(be.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(be);var Le=this.consumeComponentValue();do be=this.consumeToken();while(be.type===31);if(be.type===32)return Le;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},xr.prototype.parseComponentValues=function(){for(var be=[];;){var Le=this.consumeComponentValue();if(Le.type===32)return be;be.push(Le),be.push()}},xr.prototype.consumeComponentValue=function(){var be=this.consumeToken();switch(be.type){case 11:case 28:case 2:return this.consumeSimpleBlock(be.type);case 19:return this.consumeFunction(be)}return be},xr.prototype.consumeSimpleBlock=function(be){for(var Le={type:be,values:[]},We=this.consumeToken();;){if(We.type===32||wi(We,be))return Le;this.reconsumeToken(We),Le.values.push(this.consumeComponentValue()),We=this.consumeToken()}},xr.prototype.consumeFunction=function(be){for(var Le={name:be.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return Le;this.reconsumeToken(We),Le.values.push(this.consumeComponentValue())}},xr.prototype.consumeToken=function(){var be=this._tokens.shift();return typeof be=="undefined"?_t:be},xr.prototype.reconsumeToken=function(be){this._tokens.unshift(be)},xr}(),en=function(be){return be.type===15},bn=function(be){return be.type===17},On=function(be){return be.type===20},yn=function(be){return be.type===0},qn=function(be,Le){return On(be)&&be.value===Le},Hn=function(be){return be.type!==31},pi=function(be){return be.type!==31&&be.type!==4},Fi=function(be){var Le=[],We=[];return be.forEach(function(pt){if(pt.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");Le.push(We),We=[];return}pt.type!==31&&We.push(pt)}),We.length&&Le.push(We),Le},wi=function(be,Le){return Le===11&&be.type===12||Le===28&&be.type===29?!0:Le===2&&be.type===3},Oi=function(be){return be.type===17||be.type===15},zi=function(be){return be.type===16||Oi(be)},ea=function(be){return be.length>1?[be[0],be[1]]:[be[0]]},Gi={type:17,number:0,flags:sr},Wi={type:16,number:50,flags:sr},Hi={type:16,number:100,flags:sr},Ji=function(be,Le,We){var pt=be[0],mr=be[1];return[ca(pt,Le),ca(typeof mr!="undefined"?mr:pt,We)]},ca=function(be,Le){if(be.type===16)return be.number/100*Le;if(en(be))switch(be.unit){case"rem":case"em":return 16*be.number;case"px":default:return be.number}return be.number},Ca="deg",na="grad",Pa="rad",La="turn",va={name:"angle",parse:function(be,Le){if(Le.type===15)switch(Le.unit){case Ca:return Math.PI*Le.number/180;case na:return Math.PI/200*Le.number;case Pa:return Le.number;case La:return Math.PI*2*Le.number}throw new Error("Unsupported angle type")}},ga=function(be){return be.type===15&&(be.unit===Ca||be.unit===na||be.unit===Pa||be.unit===La)},Oa=function(be){var Le=be.filter(On).map(function(We){return We.value}).join(" ");switch(Le){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Gi,Gi];case"to top":case"bottom":return Aa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Gi,Hi];case"to right":case"left":return Aa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hi,Hi];case"to bottom":case"top":return Aa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hi,Gi];case"to left":case"right":return Aa(270)}return 0},Aa=function(be){return Math.PI*be/180},Xa={name:"color",parse:function(be,Le){if(Le.type===18){var We=To[Le.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Le.name+'"');return We(be,Le.values)}if(Le.type===5){if(Le.value.length===3){var pt=Le.value.substring(0,1),mr=Le.value.substring(1,2),nn=Le.value.substring(2,3);return Bi(parseInt(pt+pt,16),parseInt(mr+mr,16),parseInt(nn+nn,16),1)}if(Le.value.length===4){var pt=Le.value.substring(0,1),mr=Le.value.substring(1,2),nn=Le.value.substring(2,3),xn=Le.value.substring(3,4);return Bi(parseInt(pt+pt,16),parseInt(mr+mr,16),parseInt(nn+nn,16),parseInt(xn+xn,16)/255)}if(Le.value.length===6){var pt=Le.value.substring(0,2),mr=Le.value.substring(2,4),nn=Le.value.substring(4,6);return Bi(parseInt(pt,16),parseInt(mr,16),parseInt(nn,16),1)}if(Le.value.length===8){var pt=Le.value.substring(0,2),mr=Le.value.substring(2,4),nn=Le.value.substring(4,6),xn=Le.value.substring(6,8);return Bi(parseInt(pt,16),parseInt(mr,16),parseInt(nn,16),parseInt(xn,16)/255)}}if(Le.type===20){var Un=So[Le.value.toUpperCase()];if(typeof Un!="undefined")return Un}return So.TRANSPARENT}},_a=function(be){return(255&be)===0},Va=function(be){var Le=255&be,We=255&be>>8,pt=255&be>>16,mr=255&be>>24;return Le<255?"rgba("+mr+","+pt+","+We+","+Le/255+")":"rgb("+mr+","+pt+","+We+")"},Bi=function(be,Le,We,pt){return(be<<24|Le<<16|We<<8|Math.round(pt*255)<<0)>>>0},io=function(be,Le){if(be.type===17)return be.number;if(be.type===16){var We=Le===3?1:255;return Le===3?be.number/100*We:Math.round(be.number/100*We)}return 0},oo=function(be,Le){var We=Le.filter(pi);if(We.length===3){var pt=We.map(io),mr=pt[0],nn=pt[1],xn=pt[2];return Bi(mr,nn,xn,1)}if(We.length===4){var Un=We.map(io),mr=Un[0],nn=Un[1],xn=Un[2],ii=Un[3];return Bi(mr,nn,xn,ii)}return 0};function Qo(xr,be,Le){return Le<0&&(Le+=1),Le>=1&&(Le-=1),Le<1/6?(be-xr)*Le*6+xr:Le<1/2?be:Le<2/3?(be-xr)*6*(2/3-Le)+xr:xr}var mo=function(be,Le){var We=Le.filter(pi),pt=We[0],mr=We[1],nn=We[2],xn=We[3],Un=(pt.type===17?Aa(pt.number):va.parse(be,pt))/(Math.PI*2),ii=zi(mr)?mr.number/100:0,Xi=zi(nn)?nn.number/100:0,Ui=typeof xn!="undefined"&&zi(xn)?ca(xn,1):1;if(ii===0)return Bi(Xi*255,Xi*255,Xi*255,1);var qi=Xi<=.5?Xi*(ii+1):Xi+ii-Xi*ii,Za=Xi*2-qi,eo=Qo(Za,qi,Un+1/3),po=Qo(Za,qi,Un),us=Qo(Za,qi,Un-1/3);return Bi(eo*255,po*255,us*255,Ui)},To={hsl:mo,hsla:mo,rgb:oo,rgba:oo},ao=function(be,Le){return Xa.parse(be,Lr.create(Le).parseComponentValue())},So={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},bo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(be,Le){return Le.map(function(We){if(On(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},to={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jo=function(be,Le){var We=Xa.parse(be,Le[0]),pt=Le[1];return pt&&zi(pt)?{color:We,stop:pt}:{color:We,stop:null}},Uo=function(be,Le){var We=be[0],pt=be[be.length-1];We.stop===null&&(We.stop=Gi),pt.stop===null&&(pt.stop=Hi);for(var mr=[],nn=0,xn=0;xn<be.length;xn++){var Un=be[xn].stop;if(Un!==null){var ii=ca(Un,Le);ii>nn?mr.push(ii):mr.push(nn),nn=ii}else mr.push(null)}for(var Xi=null,xn=0;xn<mr.length;xn++){var Ui=mr[xn];if(Ui===null)Xi===null&&(Xi=xn);else if(Xi!==null){for(var qi=xn-Xi,Za=mr[Xi-1],eo=(Ui-Za)/(qi+1),po=1;po<=qi;po++)mr[Xi+po-1]=eo*po;Xi=null}}return be.map(function(us,Yo){var Po=us.color;return{color:Po,stop:Math.max(Math.min(1,mr[Yo]/Le),0)}})},wo=function(be,Le,We){var pt=Le/2,mr=We/2,nn=ca(be[0],Le)-pt,xn=mr-ca(be[1],We);return(Math.atan2(xn,nn)+Math.PI*2)%(Math.PI*2)},ts=function(be,Le,We){var pt=typeof be=="number"?be:wo(be,Le,We),mr=Math.abs(Le*Math.sin(pt))+Math.abs(We*Math.cos(pt)),nn=Le/2,xn=We/2,Un=mr/2,ii=Math.sin(pt-Math.PI/2)*Un,Xi=Math.cos(pt-Math.PI/2)*Un;return[mr,nn-Xi,nn+Xi,xn-ii,xn+ii]},Ia=function(be,Le){return Math.sqrt(be*be+Le*Le)},Oo=function(be,Le,We,pt,mr){var nn=[[0,0],[0,Le],[be,0],[be,Le]];return nn.reduce(function(xn,Un){var ii=Un[0],Xi=Un[1],Ui=Ia(We-ii,pt-Xi);return(mr?Ui<xn.optimumDistance:Ui>xn.optimumDistance)?{optimumCorner:Un,optimumDistance:Ui}:xn},{optimumDistance:mr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Io=function(be,Le,We,pt,mr){var nn=0,xn=0;switch(be.size){case 0:be.shape===0?nn=xn=Math.min(Math.abs(Le),Math.abs(Le-pt),Math.abs(We),Math.abs(We-mr)):be.shape===1&&(nn=Math.min(Math.abs(Le),Math.abs(Le-pt)),xn=Math.min(Math.abs(We),Math.abs(We-mr)));break;case 2:if(be.shape===0)nn=xn=Math.min(Ia(Le,We),Ia(Le,We-mr),Ia(Le-pt,We),Ia(Le-pt,We-mr));else if(be.shape===1){var Un=Math.min(Math.abs(We),Math.abs(We-mr))/Math.min(Math.abs(Le),Math.abs(Le-pt)),ii=Oo(pt,mr,Le,We,!0),Xi=ii[0],Ui=ii[1];nn=Ia(Xi-Le,(Ui-We)/Un),xn=Un*nn}break;case 1:be.shape===0?nn=xn=Math.max(Math.abs(Le),Math.abs(Le-pt),Math.abs(We),Math.abs(We-mr)):be.shape===1&&(nn=Math.max(Math.abs(Le),Math.abs(Le-pt)),xn=Math.max(Math.abs(We),Math.abs(We-mr)));break;case 3:if(be.shape===0)nn=xn=Math.max(Ia(Le,We),Ia(Le,We-mr),Ia(Le-pt,We),Ia(Le-pt,We-mr));else if(be.shape===1){var Un=Math.max(Math.abs(We),Math.abs(We-mr))/Math.max(Math.abs(Le),Math.abs(Le-pt)),qi=Oo(pt,mr,Le,We,!1),Xi=qi[0],Ui=qi[1];nn=Ia(Xi-Le,(Ui-We)/Un),xn=Un*nn}break}return Array.isArray(be.size)&&(nn=ca(be.size[0],pt),xn=be.size.length===2?ca(be.size[1],mr):nn),[nn,xn]},os=function(be,Le){var We=Aa(180),pt=[];return Fi(Le).forEach(function(mr,nn){if(nn===0){var xn=mr[0];if(xn.type===20&&xn.value==="to"){We=Oa(mr);return}else if(ga(xn)){We=va.parse(be,xn);return}}var Un=Jo(be,mr);pt.push(Un)}),{angle:We,stops:pt,type:1}},xo=function(be,Le){var We=Aa(180),pt=[];return Fi(Le).forEach(function(mr,nn){if(nn===0){var xn=mr[0];if(xn.type===20&&["top","left","right","bottom"].indexOf(xn.value)!==-1){We=Oa(mr);return}else if(ga(xn)){We=(va.parse(be,xn)+Aa(270))%Aa(360);return}}var Un=Jo(be,mr);pt.push(Un)}),{angle:We,stops:pt,type:1}},rs=function(be,Le){var We=Aa(180),pt=[],mr=1,nn=0,xn=3,Un=[];return Fi(Le).forEach(function(ii,Xi){var Ui=ii[0];if(Xi===0){if(On(Ui)&&Ui.value==="linear"){mr=1;return}else if(On(Ui)&&Ui.value==="radial"){mr=2;return}}if(Ui.type===18){if(Ui.name==="from"){var qi=Xa.parse(be,Ui.values[0]);pt.push({stop:Gi,color:qi})}else if(Ui.name==="to"){var qi=Xa.parse(be,Ui.values[0]);pt.push({stop:Hi,color:qi})}else if(Ui.name==="color-stop"){var Za=Ui.values.filter(pi);if(Za.length===2){var qi=Xa.parse(be,Za[1]),eo=Za[0];bn(eo)&&pt.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:qi})}}}}),mr===1?{angle:(We+Aa(180))%Aa(360),stops:pt,type:mr}:{size:xn,shape:nn,stops:pt,position:Un,type:mr}},Ho="closest-side",_o="farthest-side",uo="closest-corner",Ha="farthest-corner",vt="circle",Er="ellipse",qr="cover",Gr="contain",Qn=function(be,Le){var We=0,pt=3,mr=[],nn=[];return Fi(Le).forEach(function(xn,Un){var ii=!0;if(Un===0){var Xi=!1;ii=xn.reduce(function(qi,Za){if(Xi)if(On(Za))switch(Za.value){case"center":return nn.push(Wi),qi;case"top":case"left":return nn.push(Gi),qi;case"right":case"bottom":return nn.push(Hi),qi}else(zi(Za)||Oi(Za))&&nn.push(Za);else if(On(Za))switch(Za.value){case vt:return We=0,!1;case Er:return We=1,!1;case"at":return Xi=!0,!1;case Ho:return pt=0,!1;case qr:case _o:return pt=1,!1;case Gr:case uo:return pt=2,!1;case Ha:return pt=3,!1}else if(Oi(Za)||zi(Za))return Array.isArray(pt)||(pt=[]),pt.push(Za),!1;return qi},ii)}if(ii){var Ui=Jo(be,xn);mr.push(Ui)}}),{size:pt,shape:We,stops:mr,position:nn,type:2}},un=function(be,Le){var We=0,pt=3,mr=[],nn=[];return Fi(Le).forEach(function(xn,Un){var ii=!0;if(Un===0?ii=xn.reduce(function(Ui,qi){if(On(qi))switch(qi.value){case"center":return nn.push(Wi),!1;case"top":case"left":return nn.push(Gi),!1;case"right":case"bottom":return nn.push(Hi),!1}else if(zi(qi)||Oi(qi))return nn.push(qi),!1;return Ui},ii):Un===1&&(ii=xn.reduce(function(Ui,qi){if(On(qi))switch(qi.value){case vt:return We=0,!1;case Er:return We=1,!1;case Gr:case Ho:return pt=0,!1;case _o:return pt=1,!1;case uo:return pt=2,!1;case qr:case Ha:return pt=3,!1}else if(Oi(qi)||zi(qi))return Array.isArray(pt)||(pt=[]),pt.push(qi),!1;return Ui},ii)),ii){var Xi=Jo(be,xn);mr.push(Xi)}}),{size:pt,shape:We,stops:mr,position:nn,type:2}},zr=function(be){return be.type===1},ni=function(be){return be.type===2},rn={name:"image",parse:function(be,Le){if(Le.type===22){var We={url:Le.value,type:0};return be.cache.addImage(Le.value),We}if(Le.type===18){var pt=li[Le.name];if(typeof pt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Le.name+'"');return pt(be,Le.values)}throw new Error("Unsupported image type "+Le.type)}};function Kn(xr){return!(xr.type===20&&xr.value==="none")&&(xr.type!==18||!!li[xr.name])}var li={"linear-gradient":os,"-moz-linear-gradient":xo,"-ms-linear-gradient":xo,"-o-linear-gradient":xo,"-webkit-linear-gradient":xo,"radial-gradient":Qn,"-moz-radial-gradient":un,"-ms-radial-gradient":un,"-o-radial-gradient":un,"-webkit-radial-gradient":un,"-webkit-gradient":rs},ci={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(be,Le){if(Le.length===0)return[];var We=Le[0];return We.type===20&&We.value==="none"?[]:Le.filter(function(pt){return pi(pt)&&Kn(pt)}).map(function(pt){return rn.parse(be,pt)})}},si={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(be,Le){return Le.map(function(We){if(On(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ci={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(be,Le){return Fi(Le).map(function(We){return We.filter(zi)}).map(ea)}},mi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(be,Le){return Fi(Le).map(function(We){return We.filter(On).map(function(pt){return pt.value}).join(" ")}).map(yi)}},yi=function(be){switch(be){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ni;(function(xr){xr.AUTO="auto",xr.CONTAIN="contain",xr.COVER="cover"})(Ni||(Ni={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(be,Le){return Fi(Le).map(function(We){return We.filter(Ki)})}},Ki=function(be){return On(be)||zi(be)},fa=function(be){return{name:"border-"+be+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ya=fa("top"),xa=fa("right"),wa=fa("bottom"),Da=fa("left"),ja=function(be){return{name:"border-radius-"+be,initialValue:"0 0",prefix:!1,type:1,parse:function(We,pt){return ea(pt.filter(zi))}}},ko=ja("top-left"),ro=ja("top-right"),pa=ja("bottom-right"),Ea=ja("bottom-left"),Fa=function(be){return{name:"border-"+be+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,pt){switch(pt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Fa("top"),lo=Fa("right"),so=Fa("bottom"),Co=Fa("left"),Lo=function(be){return{name:"border-"+be+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,pt){return en(pt)?pt.number:0}}},is=Lo("top"),cs=Lo("right"),Rs=Lo("bottom"),Ko=Lo("left"),as={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(be,Le){return Le.filter(On).reduce(function(We,pt){return We|$a(pt.value)},0)}},$a=function(be){switch(be){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ss={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},_s={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(be,Le){return Le.type===20&&Le.value==="normal"?0:Le.type===17||Le.type===15?Le.number:0}},Fo;(function(xr){xr.NORMAL="normal",xr.STRICT="strict"})(Fo||(Fo={}));var il={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"strict":return Fo.STRICT;case"normal":default:return Fo.NORMAL}}},Eo={name:"line-height",initialValue:"normal",prefix:!1,type:4},zo=function(be,Le){return On(be)&&be.value==="normal"?1.2*Le:be.type===17?Le*be.number:zi(be)?ca(be,Le):Le},Fs={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(be,Le){return Le.type===20&&Le.value==="none"?null:rn.parse(be,Le)}},ms={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"inside":return 0;case"outside":default:return 1}}},hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},An=function(be){return{name:"margin-"+be,initialValue:"0",prefix:!1,type:4}},Ns=An("top"),Ll=An("right"),el=An("bottom"),Gs=An("left"),ds={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(be,Le){return Le.filter(On).map(function(We){switch(We.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ks={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"break-word":return"break-word";case"normal":default:return"normal"}}},Qs=function(be){return{name:"padding-"+be,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},tl=Qs("top"),xs=Qs("right"),Bs=Qs("bottom"),al=Qs("left"),Js={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Vo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},No={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(be,Le){return Le.length===1&&qn(Le[0],"none")?[]:Fi(Le).map(function(We){for(var pt={color:So.TRANSPARENT,offsetX:Gi,offsetY:Gi,blur:Gi},mr=0,nn=0;nn<We.length;nn++){var xn=We[nn];Oi(xn)?(mr===0?pt.offsetX=xn:mr===1?pt.offsetY=xn:pt.blur=xn,mr++):pt.color=Xa.parse(be,xn)}return pt})}},fs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ds={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(be,Le){if(Le.type===20&&Le.value==="none")return null;if(Le.type===18){var We=or[Le.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Le.name+'"');return We(Le.values)}return null}},go=function(be){var Le=be.filter(function(We){return We.type===17}).map(function(We){return We.number});return Le.length===6?Le:null},jt=function(be){var Le=be.filter(function(ii){return ii.type===17}).map(function(ii){return ii.number}),We=Le[0],pt=Le[1];Le[2],Le[3];var mr=Le[4],nn=Le[5];Le[6],Le[7],Le[8],Le[9],Le[10],Le[11];var xn=Le[12],Un=Le[13];return Le[14],Le[15],Le.length===16?[We,pt,mr,nn,xn,Un]:null},or={matrix:go,matrix3d:jt},In={type:16,number:50,flags:sr},hi=[In,In],Nt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(be,Le){var We=Le.filter(zi);return We.length!==2?hi:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},xe;(function(xr){xr.NORMAL="normal",xr.BREAK_ALL="break-all",xr.KEEP_ALL="keep-all"})(xe||(xe={}));for(var Ie={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"break-all":return xe.BREAK_ALL;case"keep-all":return xe.KEEP_ALL;case"normal":default:return xe.NORMAL}}},Je={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(be,Le){if(Le.type===20)return{auto:!0,order:0};if(bn(Le))return{auto:!1,order:Le.number};throw new Error("Invalid z-index number parsed")}},Dt={name:"time",parse:function(be,Le){if(Le.type===15)switch(Le.unit.toLowerCase()){case"s":return 1e3*Le.number;case"ms":return Le.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(be,Le){return bn(Le)?Le.number:1}},Xr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},hn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(be,Le){return Le.filter(On).map(function(We){switch(We.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(We){return We!==0})}},Nn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(be,Le){var We=[],pt=[];return Le.forEach(function(mr){switch(mr.type){case 20:case 0:We.push(mr.value);break;case 17:We.push(mr.number.toString());break;case 4:pt.push(We.join(" ")),We.length=0;break}}),We.length&&pt.push(We.join(" ")),pt.map(function(mr){return mr.indexOf(" ")===-1?mr:"'"+mr+"'"})}},ui={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},xi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(be,Le){if(bn(Le))return Le.number;if(On(Le))switch(Le.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ai={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(be,Le){return Le.filter(On).map(function(We){return We.value})}},Yi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(be,Le){switch(Le){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(be,Le){return(be&Le)!==0},Ua={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(be,Le){if(Le.length===0)return[];var We=Le[0];return We.type===20&&We.value==="none"?[]:Le}},no={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(be,Le){if(Le.length===0)return null;var We=Le[0];if(We.type===20&&We.value==="none")return null;for(var pt=[],mr=Le.filter(Hn),nn=0;nn<mr.length;nn++){var xn=mr[nn],Un=mr[nn+1];if(xn.type===20){var ii=Un&&bn(Un)?Un.number:1;pt.push({counter:xn.value,increment:ii})}}return pt}},Wo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(be,Le){if(Le.length===0)return[];for(var We=[],pt=Le.filter(Hn),mr=0;mr<pt.length;mr++){var nn=pt[mr],xn=pt[mr+1];if(On(nn)&&nn.value!=="none"){var Un=xn&&bn(xn)?xn.number:0;We.push({counter:nn.value,reset:Un})}}return We}},Zo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(be,Le){return Le.filter(en).map(function(We){return Dt.parse(be,We)})}},Bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(be,Le){if(Le.length===0)return null;var We=Le[0];if(We.type===20&&We.value==="none")return null;var pt=[],mr=Le.filter(yn);if(mr.length%2!==0)return null;for(var nn=0;nn<mr.length;nn+=2){var xn=mr[nn].value,Un=mr[nn+1].value;pt.push({open:xn,close:Un})}return pt}},Es=function(be,Le,We){if(!be)return"";var pt=be[Math.min(Le,be.length-1)];return pt?We?pt.open:pt.close:""},As={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(be,Le){return Le.length===1&&qn(Le[0],"none")?[]:Fi(Le).map(function(We){for(var pt={color:255,offsetX:Gi,offsetY:Gi,blur:Gi,spread:Gi,inset:!1},mr=0,nn=0;nn<We.length;nn++){var xn=We[nn];qn(xn,"inset")?pt.inset=!0:Oi(xn)?(mr===0?pt.offsetX=xn:mr===1?pt.offsetY=xn:mr===2?pt.blur=xn:pt.spread=xn,mr++):pt.color=Xa.parse(be,xn)}return pt})}},$o={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(be,Le){var We=[0,1,2],pt=[];return Le.filter(On).forEach(function(mr){switch(mr.value){case"stroke":pt.push(1);break;case"fill":pt.push(0);break;case"markers":pt.push(2);break}}),We.forEach(function(mr){pt.indexOf(mr)===-1&&pt.push(mr)}),pt}},Do={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(be,Le){return en(Le)?Le.number:0}},Ms=function(){function xr(be,Le){var We,pt;this.animationDuration=Ra(be,Zo,Le.animationDuration),this.backgroundClip=Ra(be,bo,Le.backgroundClip),this.backgroundColor=Ra(be,to,Le.backgroundColor),this.backgroundImage=Ra(be,ci,Le.backgroundImage),this.backgroundOrigin=Ra(be,si,Le.backgroundOrigin),this.backgroundPosition=Ra(be,Ci,Le.backgroundPosition),this.backgroundRepeat=Ra(be,mi,Le.backgroundRepeat),this.backgroundSize=Ra(be,ia,Le.backgroundSize),this.borderTopColor=Ra(be,Ya,Le.borderTopColor),this.borderRightColor=Ra(be,xa,Le.borderRightColor),this.borderBottomColor=Ra(be,wa,Le.borderBottomColor),this.borderLeftColor=Ra(be,Da,Le.borderLeftColor),this.borderTopLeftRadius=Ra(be,ko,Le.borderTopLeftRadius),this.borderTopRightRadius=Ra(be,ro,Le.borderTopRightRadius),this.borderBottomRightRadius=Ra(be,pa,Le.borderBottomRightRadius),this.borderBottomLeftRadius=Ra(be,Ea,Le.borderBottomLeftRadius),this.borderTopStyle=Ra(be,Ka,Le.borderTopStyle),this.borderRightStyle=Ra(be,lo,Le.borderRightStyle),this.borderBottomStyle=Ra(be,so,Le.borderBottomStyle),this.borderLeftStyle=Ra(be,Co,Le.borderLeftStyle),this.borderTopWidth=Ra(be,is,Le.borderTopWidth),this.borderRightWidth=Ra(be,cs,Le.borderRightWidth),this.borderBottomWidth=Ra(be,Rs,Le.borderBottomWidth),this.borderLeftWidth=Ra(be,Ko,Le.borderLeftWidth),this.boxShadow=Ra(be,As,Le.boxShadow),this.color=Ra(be,as,Le.color),this.direction=Ra(be,co,Le.direction),this.display=Ra(be,Ao,Le.display),this.float=Ra(be,ss,Le.cssFloat),this.fontFamily=Ra(be,Nn,Le.fontFamily),this.fontSize=Ra(be,ui,Le.fontSize),this.fontStyle=Ra(be,Yi,Le.fontStyle),this.fontVariant=Ra(be,Ai,Le.fontVariant),this.fontWeight=Ra(be,xi,Le.fontWeight),this.letterSpacing=Ra(be,_s,Le.letterSpacing),this.lineBreak=Ra(be,il,Le.lineBreak),this.lineHeight=Ra(be,Eo,Le.lineHeight),this.listStyleImage=Ra(be,Fs,Le.listStyleImage),this.listStylePosition=Ra(be,ms,Le.listStylePosition),this.listStyleType=Ra(be,hs,Le.listStyleType),this.marginTop=Ra(be,Ns,Le.marginTop),this.marginRight=Ra(be,Ll,Le.marginRight),this.marginBottom=Ra(be,el,Le.marginBottom),this.marginLeft=Ra(be,Gs,Le.marginLeft),this.opacity=Ra(be,lr,Le.opacity);var mr=Ra(be,ds,Le.overflow);this.overflowX=mr[0],this.overflowY=mr[mr.length>1?1:0],this.overflowWrap=Ra(be,ks,Le.overflowWrap),this.paddingTop=Ra(be,tl,Le.paddingTop),this.paddingRight=Ra(be,xs,Le.paddingRight),this.paddingBottom=Ra(be,Bs,Le.paddingBottom),this.paddingLeft=Ra(be,al,Le.paddingLeft),this.paintOrder=Ra(be,$o,Le.paintOrder),this.position=Ra(be,Vo,Le.position),this.textAlign=Ra(be,Js,Le.textAlign),this.textDecorationColor=Ra(be,Xr,(We=Le.textDecorationColor)!==null&&We!==void 0?We:Le.color),this.textDecorationLine=Ra(be,hn,(pt=Le.textDecorationLine)!==null&&pt!==void 0?pt:Le.textDecoration),this.textShadow=Ra(be,No,Le.textShadow),this.textTransform=Ra(be,fs,Le.textTransform),this.transform=Ra(be,Ds,Le.transform),this.transformOrigin=Ra(be,Nt,Le.transformOrigin),this.visibility=Ra(be,ce,Le.visibility),this.webkitTextStrokeColor=Ra(be,Do,Le.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ra(be,vo,Le.webkitTextStrokeWidth),this.wordBreak=Ra(be,Ie,Le.wordBreak),this.zIndex=Ra(be,Je,Le.zIndex)}return xr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},xr.prototype.isTransparent=function(){return _a(this.backgroundColor)},xr.prototype.isTransformed=function(){return this.transform!==null},xr.prototype.isPositioned=function(){return this.position!==0},xr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},xr.prototype.isFloating=function(){return this.float!==0},xr.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},xr}(),rl=function(){function xr(be,Le){this.content=Ra(be,Ua,Le.content),this.quotes=Ra(be,Bo,Le.quotes)}return xr}(),gs=function(){function xr(be,Le){this.counterIncrement=Ra(be,no,Le.counterIncrement),this.counterReset=Ra(be,Wo,Le.counterReset)}return xr}(),Ra=function(be,Le,We){var pt=new _r,mr=We!==null&&typeof We!="undefined"?We.toString():Le.initialValue;pt.write(mr);var nn=new Lr(pt.read());switch(Le.type){case 2:var xn=nn.parseComponentValue();return Le.parse(be,On(xn)?xn.value:Le.initialValue);case 0:return Le.parse(be,nn.parseComponentValue());case 1:return Le.parse(be,nn.parseComponentValues());case 4:return nn.parseComponentValue();case 3:switch(Le.format){case"angle":return va.parse(be,nn.parseComponentValue());case"color":return Xa.parse(be,nn.parseComponentValue());case"image":return rn.parse(be,nn.parseComponentValue());case"length":var Un=nn.parseComponentValue();return Oi(Un)?Un:Gi;case"length-percentage":var ii=nn.parseComponentValue();return zi(ii)?ii:Gi;case"time":return Dt.parse(be,nn.parseComponentValue())}break}},dl="data-html2canvas-debug",fl=function(be){var Le=be.getAttribute(dl);switch(Le){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Us=function(be,Le){var We=fl(be);return We===1||Le===We},Os=function(){function xr(be,Le){if(this.context=be,this.textNodes=[],this.elements=[],this.flags=0,Us(Le,3))debugger;this.styles=new Ms(be,window.getComputedStyle(Le,null)),js(Le)&&(this.styles.animationDuration.some(function(We){return We>0})&&(Le.style.animationDuration="0s"),this.styles.transform!==null&&(Le.style.transform="none")),this.bounds=u(this.context,Le),Us(Le,4)&&(this.flags|=16)}return xr}(),Xs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),wl=0;wl<Ql.length;wl++)Ul[Ql.charCodeAt(wl)]=wl;for(var Ts=function(be){var Le=be.length*.75,We=be.length,pt,mr=0,nn,xn,Un,ii;be[be.length-1]==="="&&(Le--,be[be.length-2]==="="&&Le--);var Xi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Le):new Array(Le),Ui=Array.isArray(Xi)?Xi:new Uint8Array(Xi);for(pt=0;pt<We;pt+=4)nn=Ul[be.charCodeAt(pt)],xn=Ul[be.charCodeAt(pt+1)],Un=Ul[be.charCodeAt(pt+2)],ii=Ul[be.charCodeAt(pt+3)],Ui[mr++]=nn<<2|xn>>4,Ui[mr++]=(xn&15)<<4|Un>>2,Ui[mr++]=(Un&3)<<6|ii&63;return Xi},Ws=function(be){for(var Le=be.length,We=[],pt=0;pt<Le;pt+=2)We.push(be[pt+1]<<8|be[pt]);return We},Tl=function(be){for(var Le=be.length,We=[],pt=0;pt<Le;pt+=4)We.push(be[pt+3]<<24|be[pt+2]<<16|be[pt+1]<<8|be[pt]);return We},pl=5,jo=6+5,yo=2,qo=jo-pl,ps=65536>>pl,Is=1<<pl,es=Is-1,Ls=1024>>pl,Ps=ps+Ls,ml=Ps,Rl=2048>>6,_l=ml+Rl,Bl=65536>>jo,jl=1<<qo,kl=jl-1,Xl=function(be,Le,We){return be.slice?be.slice(Le,We):new Uint16Array(Array.prototype.slice.call(be,Le,We))},ol=function(be,Le,We){return be.slice?be.slice(Le,We):new Uint32Array(Array.prototype.slice.call(be,Le,We))},Ys=function(be,Le){var We=Ts(be),pt=Array.isArray(We)?Tl(We):new Uint32Array(We),mr=Array.isArray(We)?Ws(We):new Uint16Array(We),nn=24,xn=Xl(mr,nn/2,pt[4]/2),Un=pt[5]===2?Xl(mr,(nn+pt[4])/2):ol(pt,Math.ceil((nn+pt[4])/4));return new sl(pt[0],pt[1],pt[2],pt[3],xn,Un)},sl=function(){function xr(be,Le,We,pt,mr,nn){this.initialValue=be,this.errorValue=Le,this.highStart=We,this.highValueIndex=pt,this.index=mr,this.data=nn}return xr.prototype.get=function(be){var Le;if(be>=0){if(be<55296||be>56319&&be<=65535)return Le=this.index[be>>pl],Le=(Le<<yo)+(be&es),this.data[Le];if(be<=65535)return Le=this.index[ps+(be-55296>>pl)],Le=(Le<<yo)+(be&es),this.data[Le];if(be<this.highStart)return Le=_l-Bl+(be>>jo),Le=this.index[Le],Le+=be>>pl&kl,Le=this.index[Le],Le=(Le<<yo)+(be&es),this.data[Le];if(be<=1114111)return this.data[this.highValueIndex]}return this.errorValue},xr}(),nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ml=0;Ml<nl.length;Ml++)xl[nl.charCodeAt(Ml)]=Ml;var Wl=1,au=2,Nl=3,$l=4,tu=5,Iu=7,pu=8,mu=9,gu=10,ql=11,Cl=12,ll=13,Hl=14,Sl=15,Su=function(be){for(var Le=[],We=0,pt=be.length;We<pt;){var mr=be.charCodeAt(We++);if(mr>=55296&&mr<=56319&&We<pt){var nn=be.charCodeAt(We++);(nn&64512)===56320?Le.push(((mr&1023)<<10)+(nn&1023)+65536):(Le.push(mr),We--)}else Le.push(mr)}return Le},vu=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];if(String.fromCodePoint)return String.fromCodePoint.apply(String,be);var We=be.length;if(!We)return"";for(var pt=[],mr=-1,nn="";++mr<We;){var xn=be[mr];xn<=65535?pt.push(xn):(xn-=65536,pt.push((xn>>10)+55296,xn%1024+56320)),(mr+1===We||pt.length>16384)&&(nn+=String.fromCharCode.apply(String,pt),pt.length=0)}return nn},Au=Ys(Xs),Ol="\xD7",cu="\xF7",du=function(be){return Au.get(be)},Lu=function(be,Le,We){var pt=We-2,mr=Le[pt],nn=Le[We-1],xn=Le[We];if(nn===au&&xn===Nl)return Ol;if(nn===au||nn===Nl||nn===$l)return cu;if(xn===au||xn===Nl||xn===$l)return cu;if(nn===pu&&[pu,mu,ql,Cl].indexOf(xn)!==-1)return Ol;if((nn===ql||nn===mu)&&(xn===mu||xn===gu))return Ol;if((nn===Cl||nn===gu)&&xn===gu)return Ol;if(xn===ll||xn===tu)return Ol;if(xn===Iu)return Ol;if(nn===Wl)return Ol;if(nn===ll&&xn===Hl){for(;mr===tu;)mr=Le[--pt];if(mr===Hl)return Ol}if(nn===Sl&&xn===Sl){for(var Un=0;mr===Sl;)Un++,mr=Le[--pt];if(Un%2===0)return Ol}return cu},zl=function(be){var Le=Su(be),We=Le.length,pt=0,mr=0,nn=Le.map(du);return{next:function(){if(pt>=We)return{done:!0,value:null};for(var Un=Ol;pt<We&&(Un=Lu(Le,nn,++pt))===Ol;);if(Un!==Ol||pt===We){var ii=vu.apply(null,Le.slice(mr,pt));return mr=pt,{value:ii,done:!1}}return{done:!0,value:null}}}},ru=function(be){for(var Le=zl(be),We=[],pt;!(pt=Le.next()).done;)pt.value&&We.push(pt.value.slice());return We},ou=function(be){var Le=123;if(be.createRange){var We=be.createRange();if(We.getBoundingClientRect){var pt=be.createElement("boundtest");pt.style.height=Le+"px",pt.style.display="block",be.body.appendChild(pt),We.selectNode(pt);var mr=We.getBoundingClientRect(),nn=Math.round(mr.height);if(be.body.removeChild(pt),nn===Le)return!0}}return!1},su=function(be){var Le=be.createElement("boundtest");Le.style.width="50px",Le.style.display="block",Le.style.fontSize="12px",Le.style.letterSpacing="0px",Le.style.wordSpacing="0px",be.body.appendChild(Le);var We=be.createRange();Le.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var pt=Le.firstChild,mr=i(pt.data).map(function(ii){return t(ii)}),nn=0,xn={},Un=mr.every(function(ii,Xi){We.setStart(pt,nn),We.setEnd(pt,nn+ii.length);var Ui=We.getBoundingClientRect();nn+=ii.length;var qi=Ui.x>xn.x||Ui.y>xn.y;return xn=Ui,Xi===0?!0:qi});return be.body.removeChild(Le),Un},Jl=function(){return typeof new Image().crossOrigin!="undefined"},Du=function(){return typeof new XMLHttpRequest().responseType=="string"},Ru=function(be){var Le=new Image,We=be.createElement("canvas"),pt=We.getContext("2d");if(!pt)return!1;Le.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{pt.drawImage(Le,0,0),We.toDataURL()}catch(mr){return!1}return!0},Zl=function(be){return be[0]===0&&be[1]===255&&be[2]===0&&be[3]===255},yu=function(be){var Le=be.createElement("canvas"),We=100;Le.width=We,Le.height=We;var pt=Le.getContext("2d");if(!pt)return Promise.reject(!1);pt.fillStyle="rgb(0, 255, 0)",pt.fillRect(0,0,We,We);var mr=new Image,nn=Le.toDataURL();mr.src=nn;var xn=xu(We,We,0,0,mr);return pt.fillStyle="red",pt.fillRect(0,0,We,We),bu(xn).then(function(Un){pt.drawImage(Un,0,0);var ii=pt.getImageData(0,0,We,We).data;pt.fillStyle="red",pt.fillRect(0,0,We,We);var Xi=be.createElement("div");return Xi.style.backgroundImage="url("+nn+")",Xi.style.height=We+"px",Zl(ii)?bu(xu(We,We,0,0,Xi)):Promise.reject(!1)}).then(function(Un){return pt.drawImage(Un,0,0),Zl(pt.getImageData(0,0,We,We).data)}).catch(function(){return!1})},xu=function(be,Le,We,pt,mr){var nn="http://www.w3.org/2000/svg",xn=document.createElementNS(nn,"svg"),Un=document.createElementNS(nn,"foreignObject");return xn.setAttributeNS(null,"width",be.toString()),xn.setAttributeNS(null,"height",Le.toString()),Un.setAttributeNS(null,"width","100%"),Un.setAttributeNS(null,"height","100%"),Un.setAttributeNS(null,"x",We.toString()),Un.setAttributeNS(null,"y",pt.toString()),Un.setAttributeNS(null,"externalResourcesRequired","true"),xn.appendChild(Un),Un.appendChild(mr),xn},bu=function(be){return new Promise(function(Le,We){var pt=new Image;pt.onload=function(){return Le(pt)},pt.onerror=We,pt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(be))})},hl={get SUPPORT_RANGE_BOUNDS(){var xr=ou(document);return Object.defineProperty(hl,"SUPPORT_RANGE_BOUNDS",{value:xr}),xr},get SUPPORT_WORD_BREAKING(){var xr=hl.SUPPORT_RANGE_BOUNDS&&su(document);return Object.defineProperty(hl,"SUPPORT_WORD_BREAKING",{value:xr}),xr},get SUPPORT_SVG_DRAWING(){var xr=Ru(document);return Object.defineProperty(hl,"SUPPORT_SVG_DRAWING",{value:xr}),xr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var xr=typeof Array.from=="function"&&typeof window.fetch=="function"?yu(document):Promise.resolve(!1);return Object.defineProperty(hl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:xr}),xr},get SUPPORT_CORS_IMAGES(){var xr=Jl();return Object.defineProperty(hl,"SUPPORT_CORS_IMAGES",{value:xr}),xr},get SUPPORT_RESPONSE_TYPE(){var xr=Du();return Object.defineProperty(hl,"SUPPORT_RESPONSE_TYPE",{value:xr}),xr},get SUPPORT_CORS_XHR(){var xr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hl,"SUPPORT_CORS_XHR",{value:xr}),xr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var xr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(hl,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:xr}),xr}},Dl=function(){function xr(be,Le){this.text=be,this.bounds=Le}return xr}(),nu=function(be,Le,We,pt){var mr=Ae(Le,We),nn=[],xn=0;return mr.forEach(function(Un){if(We.textDecorationLine.length||Un.trim().length>0)if(hl.SUPPORT_RANGE_BOUNDS){var ii=hu(pt,xn,Un.length).getClientRects();if(ii.length>1){var Xi=fu(Un),Ui=0;Xi.forEach(function(Za){nn.push(new Dl(Za,d.fromDOMRectList(be,hu(pt,Ui+xn,Za.length).getClientRects()))),Ui+=Za.length})}else nn.push(new Dl(Un,d.fromDOMRectList(be,ii)))}else{var qi=pt.splitText(Un.length);nn.push(new Dl(Un,Nu(be,pt))),pt=qi}else hl.SUPPORT_RANGE_BOUNDS||(pt=pt.splitText(Un.length));xn+=Un.length}),nn},Nu=function(be,Le){var We=Le.ownerDocument;if(We){var pt=We.createElement("html2canvaswrapper");pt.appendChild(Le.cloneNode(!0));var mr=Le.parentNode;if(mr){mr.replaceChild(pt,Le);var nn=u(be,pt);return pt.firstChild&&mr.replaceChild(pt.firstChild,pt),nn}}return d.EMPTY},hu=function(be,Le,We){var pt=be.ownerDocument;if(!pt)throw new Error("Node has no owner document");var mr=pt.createRange();return mr.setStart(be,Le),mr.setEnd(be,Le+We),mr},fu=function(be){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Le=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Le.segment(be)).map(function(We){return We.segment})}return ru(be)},iu=function(be,Le){if(hl.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(be)).map(function(pt){return pt.segment})}return N(be,Le)},Ae=function(be,Le){return Le.letterSpacing!==0?fu(be):iu(be,Le)},q=[32,160,4961,65792,65793,4153,4241],N=function(be,Le){for(var We=Me(be,{lineBreak:Le.lineBreak,wordBreak:Le.overflowWrap==="break-word"?"break-word":Le.wordBreak}),pt=[],mr,nn=function(){if(mr.value){var Un=mr.value.slice(),ii=i(Un),Xi="";ii.forEach(function(Ui){q.indexOf(Ui)===-1?Xi+=t(Ui):(Xi.length&&pt.push(Xi),pt.push(t(Ui)),Xi="")}),Xi.length&&pt.push(Xi)}};!(mr=We.next()).done;)nn();return pt},W=function(){function xr(be,Le,We){this.text=H(Le.data,We.textTransform),this.textBounds=nu(be,this.text,We,Le)}return xr}(),H=function(be,Le){switch(Le){case 1:return be.toLowerCase();case 3:return be.replace(Z,re);case 2:return be.toUpperCase();default:return be}},Z=/(^|\s|:|-|\(|\))([a-z])/g,re=function(be,Le,We){return be.length>0?Le+We.toUpperCase():be},ve=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.src=We.currentSrc||We.src,pt.intrinsicWidth=We.naturalWidth,pt.intrinsicHeight=We.naturalHeight,pt.context.cache.addImage(pt.src),pt}return be}(Os),Te=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.canvas=We,pt.intrinsicWidth=We.width,pt.intrinsicHeight=We.height,pt}return be}(Os),ze=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this,mr=new XMLSerializer,nn=u(Le,We);return We.setAttribute("width",nn.width+"px"),We.setAttribute("height",nn.height+"px"),pt.svg="data:image/svg+xml,"+encodeURIComponent(mr.serializeToString(We)),pt.intrinsicWidth=We.width.baseVal.value,pt.intrinsicHeight=We.height.baseVal.value,pt.context.cache.addImage(pt.svg),pt}return be}(Os),st=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.value=We.value,pt}return be}(Os),mt=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.start=We.start,pt.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,pt}return be}(Os),Yt=[{type:15,flags:0,unit:"px",number:3}],Tr=[{type:16,flags:0,number:50}],wr=function(be){return be.width>be.height?new d(be.left+(be.width-be.height)/2,be.top,be.height,be.height):be.width<be.height?new d(be.left,be.top+(be.height-be.width)/2,be.width,be.width):be},jr=function(be){var Le=be.type===Dn?new Array(be.value.length+1).join("\u2022"):be.value;return Le.length===0?be.placeholder||"":Le},Qr="checkbox",Cn="radio",Dn="password",Zn=707406591,Si=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;pt.type=We.type.toLowerCase(),pt.checked=We.checked,pt.value=jr(We),(pt.type===Qr||pt.type===Cn)&&(pt.styles.backgroundColor=3739148031,pt.styles.borderTopColor=pt.styles.borderRightColor=pt.styles.borderBottomColor=pt.styles.borderLeftColor=2779096575,pt.styles.borderTopWidth=pt.styles.borderRightWidth=pt.styles.borderBottomWidth=pt.styles.borderLeftWidth=1,pt.styles.borderTopStyle=pt.styles.borderRightStyle=pt.styles.borderBottomStyle=pt.styles.borderLeftStyle=1,pt.styles.backgroundClip=[0],pt.styles.backgroundOrigin=[0],pt.bounds=wr(pt.bounds));switch(pt.type){case Qr:pt.styles.borderTopRightRadius=pt.styles.borderTopLeftRadius=pt.styles.borderBottomRightRadius=pt.styles.borderBottomLeftRadius=Yt;break;case Cn:pt.styles.borderTopRightRadius=pt.styles.borderTopLeftRadius=pt.styles.borderBottomRightRadius=pt.styles.borderBottomLeftRadius=Tr;break}return pt}return be}(Os),ua=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this,mr=We.options[We.selectedIndex||0];return pt.value=mr&&mr.text||"",pt}return be}(Os),Vi=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.value=We.value,pt}return be}(Os),Zi=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;pt.src=We.src,pt.width=parseInt(We.width,10)||0,pt.height=parseInt(We.height,10)||0,pt.backgroundColor=pt.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){pt.tree=Sa(Le,We.contentWindow.document.documentElement);var mr=We.contentWindow.document.documentElement?ao(Le,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):So.TRANSPARENT,nn=We.contentWindow.document.body?ao(Le,getComputedStyle(We.contentWindow.document.body).backgroundColor):So.TRANSPARENT;pt.backgroundColor=_a(mr)?_a(nn)?pt.styles.backgroundColor:nn:mr}}catch(xn){}return pt}return be}(Os),ka=["OL","UL","MENU"],Ga=function xr(be,Le,We,pt){for(var mr=Le.firstChild,nn=void 0;mr;mr=nn)if(nn=mr.nextSibling,ys(mr)&&mr.data.trim().length>0)We.textNodes.push(new W(be,mr,We.styles));else if(Cs(mr))if(ar(mr)&&mr.assignedNodes)mr.assignedNodes().forEach(function(Un){return xr(be,Un,We,pt)});else{var xn=Ba(be,mr);xn.styles.isVisible()&&(Go(mr,xn,pt)?xn.flags|=4:bs(xn.styles)&&(xn.flags|=2),ka.indexOf(mr.tagName)!==-1&&(xn.flags|=8),We.elements.push(xn),mr.slot,mr.shadowRoot?xr(be,mr.shadowRoot,xn,pt):!zt(mr)&&!hr(mr)&&!qt(mr)&&xr(be,mr,xn,pt))}},Ba=function(be,Le){return ie(Le)?new ve(be,Le):on(Le)?new Te(be,Le):hr(Le)?new ze(be,Le):Hs(Le)?new st(be,Le):Ee(Le)?new mt(be,Le):Qe(Le)?new Si(be,Le):qt(Le)?new ua(be,Le):zt(Le)?new Vi(be,Le):Oe(Le)?new Zi(be,Le):new Os(be,Le)},Sa=function(be,Le){var We=Ba(be,Le);return We.flags|=4,Ga(be,Le,We,We),We},Go=function(be,Le,We){return Le.styles.isPositionedWithZIndex()||Le.styles.opacity<1||Le.styles.isTransformed()||Fr(be)&&We.styles.isTransparent()},bs=function(be){return be.isPositioned()||be.isFloating()},ys=function(be){return be.nodeType===Node.TEXT_NODE},Cs=function(be){return be.nodeType===Node.ELEMENT_NODE},js=function(be){return Cs(be)&&typeof be.style!="undefined"&&!ws(be)},ws=function(be){return typeof be.className=="object"},Hs=function(be){return be.tagName==="LI"},Ee=function(be){return be.tagName==="OL"},Qe=function(be){return be.tagName==="INPUT"},xt=function(be){return be.tagName==="HTML"},hr=function(be){return be.tagName==="svg"},Fr=function(be){return be.tagName==="BODY"},on=function(be){return be.tagName==="CANVAS"},Be=function(be){return be.tagName==="VIDEO"},ie=function(be){return be.tagName==="IMG"},Oe=function(be){return be.tagName==="IFRAME"},et=function(be){return be.tagName==="STYLE"},bt=function(be){return be.tagName==="SCRIPT"},zt=function(be){return be.tagName==="TEXTAREA"},qt=function(be){return be.tagName==="SELECT"},ar=function(be){return be.tagName==="SLOT"},Kr=function(be){return be.tagName.indexOf("-")>0},cn=function(){function xr(){this.counters={}}return xr.prototype.getCounterValue=function(be){var Le=this.counters[be];return Le&&Le.length?Le[Le.length-1]:1},xr.prototype.getCounterValues=function(be){var Le=this.counters[be];return Le||[]},xr.prototype.pop=function(be){var Le=this;be.forEach(function(We){return Le.counters[We].pop()})},xr.prototype.parse=function(be){var Le=this,We=be.counterIncrement,pt=be.counterReset,mr=!0;We!==null&&We.forEach(function(xn){var Un=Le.counters[xn.counter];Un&&xn.increment!==0&&(mr=!1,Un.length||Un.push(1),Un[Math.max(0,Un.length-1)]+=xn.increment)});var nn=[];return mr&&pt.forEach(function(xn){var Un=Le.counters[xn.counter];nn.push(xn.counter),Un||(Un=Le.counters[xn.counter]=[]),Un.push(xn.reset)}),nn},xr}(),Hr={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ur={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},sn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},gn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},zn=function(be,Le,We,pt,mr,nn){return be<Le||be>We?ne(be,mr,nn.length>0):pt.integers.reduce(function(xn,Un,ii){for(;be>=Un;)be-=Un,xn+=pt.values[ii];return xn},"")+nn},Li=function(be,Le,We,pt){var mr="";do We||be--,mr=pt(be)+mr,be/=Le;while(be*Le>=Le);return mr},ki=function(be,Le,We,pt,mr){var nn=We-Le+1;return(be<0?"-":"")+(Li(Math.abs(be),nn,pt,function(xn){return t(Math.floor(xn%nn)+Le)})+mr)},da=function(be,Le,We){We===void 0&&(We=". ");var pt=Le.length;return Li(Math.abs(be),pt,!1,function(mr){return Le[Math.floor(mr%pt)]})+We},$i=1<<0,Qa=1<<1,ya=1<<2,fo=1<<3,za=function(be,Le,We,pt,mr,nn){if(be<-9999||be>9999)return ne(be,4,mr.length>0);var xn=Math.abs(be),Un=mr;if(xn===0)return Le[0]+Un;for(var ii=0;xn>0&&ii<=4;ii++){var Xi=xn%10;Xi===0&&sa(nn,$i)&&Un!==""?Un=Le[Xi]+Un:Xi>1||Xi===1&&ii===0||Xi===1&&ii===1&&sa(nn,Qa)||Xi===1&&ii===1&&sa(nn,ya)&&be>100||Xi===1&&ii>1&&sa(nn,fo)?Un=Le[Xi]+(ii>0?We[ii-1]:"")+Un:Xi===1&&ii>0&&(Un=We[ii-1]+Un),xn=Math.floor(xn/10)}return(be<0?pt:"")+Un},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",D="\u30DE\u30A4\u30CA\u30B9",B="\uB9C8\uC774\uB108\uC2A4",ne=function(be,Le,We){var pt=We?". ":"",mr=We?"\u3001":"",nn=We?", ":"",xn=We?" ":"";switch(Le){case 0:return"\u2022"+xn;case 1:return"\u25E6"+xn;case 2:return"\u25FE"+xn;case 5:var Un=ki(be,48,57,!0,pt);return Un.length<4?"0"+Un:Un;case 4:return da(be,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",mr);case 6:return zn(be,1,3999,Hr,3,pt).toLowerCase();case 7:return zn(be,1,3999,Hr,3,pt);case 8:return ki(be,945,969,!1,pt);case 9:return ki(be,97,122,!1,pt);case 10:return ki(be,65,90,!1,pt);case 11:return ki(be,1632,1641,!0,pt);case 12:case 49:return zn(be,1,9999,Ur,3,pt);case 35:return zn(be,1,9999,Ur,3,pt).toLowerCase();case 13:return ki(be,2534,2543,!0,pt);case 14:case 30:return ki(be,6112,6121,!0,pt);case 15:return da(be,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",mr);case 16:return da(be,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",mr);case 17:case 48:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",mr,Qa|ya|fo);case 47:return za(be,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",mr,$i|Qa|ya|fo);case 42:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",mr,Qa|ya|fo);case 41:return za(be,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",mr,$i|Qa|ya|fo);case 26:return za(be,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",D,mr,0);case 25:return za(be,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",D,mr,$i|Qa|ya);case 31:return za(be,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",B,nn,$i|Qa|ya);case 33:return za(be,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",B,nn,0);case 32:return za(be,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",B,nn,$i|Qa|ya);case 18:return ki(be,2406,2415,!0,pt);case 20:return zn(be,1,19999,gn,3,pt);case 21:return ki(be,2790,2799,!0,pt);case 22:return ki(be,2662,2671,!0,pt);case 22:return zn(be,1,10999,sn,3,pt);case 23:return da(be,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return da(be,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return ki(be,3302,3311,!0,pt);case 28:return da(be,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",mr);case 29:return da(be,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",mr);case 34:return ki(be,3792,3801,!0,pt);case 37:return ki(be,6160,6169,!0,pt);case 38:return ki(be,4160,4169,!0,pt);case 39:return ki(be,2918,2927,!0,pt);case 40:return ki(be,1776,1785,!0,pt);case 43:return ki(be,3046,3055,!0,pt);case 44:return ki(be,3174,3183,!0,pt);case 45:return ki(be,3664,3673,!0,pt);case 46:return ki(be,3872,3881,!0,pt);case 3:default:return ki(be,48,57,!0,pt)}},ae="data-html2canvas-ignore",ge=function(){function xr(be,Le,We){if(this.context=be,this.options=We,this.scrolledElements=[],this.referenceElement=Le,this.counters=new cn,this.quoteDepth=0,!Le.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Le.ownerDocument.documentElement,!1)}return xr.prototype.toIFrame=function(be,Le){var We=this,pt=It(be,Le);if(!pt.contentWindow)return Promise.reject("Unable to find iframe window");var mr=be.defaultView.pageXOffset,nn=be.defaultView.pageYOffset,xn=pt.contentWindow,Un=xn.document,ii=Cr(pt).then(function(){return A(We,void 0,void 0,function(){var Xi,Ui;return m(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(la),xn&&(xn.scrollTo(Le.left,Le.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xn.scrollY!==Le.top||xn.scrollX!==Le.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xn.scrollX-Le.left,xn.scrollY-Le.top,0,0))),Xi=this.options.onclone,Ui=this.clonedReferenceElement,typeof Ui=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Un.fonts&&Un.fonts.ready?[4,Un.fonts.ready]:[3,2];case 1:qi.sent(),qi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,br(Un)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Xi=="function"?[2,Promise.resolve().then(function(){return Xi(Un,Ui)}).then(function(){return pt})]:[2,pt]}})})});return Un.open(),Un.write(Ei(document.doctype)+"<html></html>"),_i(this.referenceElement.ownerDocument,mr,nn),Un.replaceChild(Un.adoptNode(this.documentElement),Un.documentElement),Un.close(),ii},xr.prototype.createElementClone=function(be){if(Us(be,2))debugger;if(on(be))return this.createCanvasClone(be);if(Be(be))return this.createVideoClone(be);if(et(be))return this.createStyleClone(be);var Le=be.cloneNode(!1);return ie(Le)&&(ie(be)&&be.currentSrc&&be.currentSrc!==be.src&&(Le.src=be.currentSrc,Le.srcset=""),Le.loading==="lazy"&&(Le.loading="eager")),Kr(Le)?this.createCustomElementClone(Le):Le},xr.prototype.createCustomElementClone=function(be){var Le=document.createElement("html2canvascustomelement");return ti(be.style,Le),Le},xr.prototype.createStyleClone=function(be){try{var Le=be.sheet;if(Le&&Le.cssRules){var We=[].slice.call(Le.cssRules,0).reduce(function(mr,nn){return nn&&typeof nn.cssText=="string"?mr+nn.cssText:mr},""),pt=be.cloneNode(!1);return pt.textContent=We,pt}}catch(mr){if(this.context.logger.error("Unable to access cssRules property",mr),mr.name!=="SecurityError")throw mr}return be.cloneNode(!1)},xr.prototype.createCanvasClone=function(be){var Le;if(this.options.inlineImages&&be.ownerDocument){var We=be.ownerDocument.createElement("img");try{return We.src=be.toDataURL(),We}catch(ii){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",be)}}var pt=be.cloneNode(!1);try{pt.width=be.width,pt.height=be.height;var mr=be.getContext("2d"),nn=pt.getContext("2d");if(nn)if(!this.options.allowTaint&&mr)nn.putImageData(mr.getImageData(0,0,be.width,be.height),0,0);else{var xn=(Le=be.getContext("webgl2"))!==null&&Le!==void 0?Le:be.getContext("webgl");if(xn){var Un=xn.getContextAttributes();(Un==null?void 0:Un.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",be)}nn.drawImage(be,0,0)}return pt}catch(ii){this.context.logger.info("Unable to clone canvas as it is tainted",be)}return pt},xr.prototype.createVideoClone=function(be){var Le=be.ownerDocument.createElement("canvas");Le.width=be.offsetWidth,Le.height=be.offsetHeight;var We=Le.getContext("2d");try{return We&&(We.drawImage(be,0,0,Le.width,Le.height),this.options.allowTaint||We.getImageData(0,0,Le.width,Le.height)),Le}catch(mr){this.context.logger.info("Unable to clone video as it is tainted",be)}var pt=be.ownerDocument.createElement("canvas");return pt.width=be.offsetWidth,pt.height=be.offsetHeight,pt},xr.prototype.appendChildNode=function(be,Le,We){(!Cs(Le)||!bt(Le)&&!Le.hasAttribute(ae)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Le)))&&((!this.options.copyStyles||!Cs(Le)||!et(Le))&&be.appendChild(this.cloneNode(Le,We)))},xr.prototype.cloneChildNodes=function(be,Le,We){for(var pt=this,mr=be.shadowRoot?be.shadowRoot.firstChild:be.firstChild;mr;mr=mr.nextSibling)if(Cs(mr)&&ar(mr)&&typeof mr.assignedNodes=="function"){var nn=mr.assignedNodes();nn.length&&nn.forEach(function(xn){return pt.appendChildNode(Le,xn,We)})}else this.appendChildNode(Le,mr,We)},xr.prototype.cloneNode=function(be,Le){if(ys(be))return document.createTextNode(be.data);if(!be.ownerDocument)return be.cloneNode(!1);var We=be.ownerDocument.defaultView;if(We&&Cs(be)&&(js(be)||ws(be))){var pt=this.createElementClone(be);pt.style.transitionProperty="none";var mr=We.getComputedStyle(be),nn=We.getComputedStyle(be,":before"),xn=We.getComputedStyle(be,":after");this.referenceElement===be&&js(pt)&&(this.clonedReferenceElement=pt),Fr(pt)&&ho(pt);var Un=this.counters.parse(new gs(this.context,mr)),ii=this.resolvePseudoContent(be,pt,nn,Ke.BEFORE);Kr(be)&&(Le=!0),Be(be)||this.cloneChildNodes(be,pt,Le),ii&&pt.insertBefore(ii,pt.firstChild);var Xi=this.resolvePseudoContent(be,pt,xn,Ke.AFTER);return Xi&&pt.appendChild(Xi),this.counters.pop(Un),(mr&&(this.options.copyStyles||ws(be))&&!Oe(be)||Le)&&ti(mr,pt),(be.scrollTop!==0||be.scrollLeft!==0)&&this.scrolledElements.push([pt,be.scrollLeft,be.scrollTop]),(zt(be)||qt(be))&&(zt(pt)||qt(pt))&&(pt.value=be.value),pt}return be.cloneNode(!1)},xr.prototype.resolvePseudoContent=function(be,Le,We,pt){var mr=this;if(!We)return;var nn=We.content,xn=Le.ownerDocument;if(!xn||!nn||nn==="none"||nn==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new gs(this.context,We));var Un=new rl(this.context,We),ii=xn.createElement("html2canvaspseudoelement");ti(We,ii),Un.content.forEach(function(Ui){if(Ui.type===0)ii.appendChild(xn.createTextNode(Ui.value));else if(Ui.type===22){var qi=xn.createElement("img");qi.src=Ui.value,qi.style.opacity="1",ii.appendChild(qi)}else if(Ui.type===18){if(Ui.name==="attr"){var Za=Ui.values.filter(On);Za.length&&ii.appendChild(xn.createTextNode(be.getAttribute(Za[0].value)||""))}else if(Ui.name==="counter"){var eo=Ui.values.filter(pi),po=eo[0],us=eo[1];if(po&&On(po)){var Yo=mr.counters.getCounterValue(po.value),Po=us&&On(us)?hs.parse(mr.context,us.value):3;ii.appendChild(xn.createTextNode(ne(Yo,Po,!1)))}}else if(Ui.name==="counters"){var $s=Ui.values.filter(pi),po=$s[0],cl=$s[1],us=$s[2];if(po&&On(po)){var zs=mr.counters.getCounterValues(po.value),Ro=us&&On(us)?hs.parse(mr.context,us.value):3,Al=cl&&cl.type===0?cl.value:"",bl=zs.map(function(Mu){return ne(Mu,Ro,!1)}).join(Al);ii.appendChild(xn.createTextNode(bl))}}}else if(Ui.type===20)switch(Ui.value){case"open-quote":ii.appendChild(xn.createTextNode(Es(Un.quotes,mr.quoteDepth++,!0)));break;case"close-quote":ii.appendChild(xn.createTextNode(Es(Un.quotes,--mr.quoteDepth,!1)));break;default:ii.appendChild(xn.createTextNode(Ui.value))}}),ii.className=Ma+" "+Na;var Xi=pt===Ke.BEFORE?" "+Ma:" "+Na;return ws(Le)?Le.className.baseValue+=Xi:Le.className+=Xi,ii},xr.destroy=function(be){return be.parentNode?(be.parentNode.removeChild(be),!0):!1},xr}(),Ke;(function(xr){xr[xr.BEFORE=0]="BEFORE",xr[xr.AFTER=1]="AFTER"})(Ke||(Ke={}));var It=function(be,Le){var We=be.createElement("iframe");return We.className="html2canvas-container",We.style.visibility="hidden",We.style.position="fixed",We.style.left="-10000px",We.style.top="0px",We.style.border="0",We.width=Le.width.toString(),We.height=Le.height.toString(),We.scrolling="no",We.setAttribute(ae,"true"),be.body.appendChild(We),We},nr=function(be){return new Promise(function(Le){if(be.complete){Le();return}if(!be.src){Le();return}be.onload=Le,be.onerror=Le})},br=function(be){return Promise.all([].slice.call(be.images,0).map(nr))},Cr=function(be){return new Promise(function(Le,We){var pt=be.contentWindow;if(!pt)return We("No window assigned for iframe");var mr=pt.document;pt.onload=be.onload=function(){pt.onload=be.onload=null;var nn=setInterval(function(){mr.body.childNodes.length>0&&mr.readyState==="complete"&&(clearInterval(nn),Le(be))},50)}})},jn=["all","d","content"],ti=function(be,Le){for(var We=be.length-1;We>=0;We--){var pt=be.item(We);jn.indexOf(pt)===-1&&Le.style.setProperty(pt,be.getPropertyValue(pt))}return Le},Ei=function(be){var Le="";return be&&(Le+="<!DOCTYPE ",be.name&&(Le+=be.name),be.internalSubset&&(Le+=be.internalSubset),be.publicId&&(Le+='"'+be.publicId+'"'),be.systemId&&(Le+='"'+be.systemId+'"'),Le+=">"),Le},_i=function(be,Le,We){be&&be.defaultView&&(Le!==be.defaultView.pageXOffset||We!==be.defaultView.pageYOffset)&&be.defaultView.scrollTo(Le,We)},la=function(be){var Le=be[0],We=be[1],pt=be[2];Le.scrollLeft=We,Le.scrollTop=pt},Ta=":before",Wa=":after",Ma="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",qa=`{
content: "" !important;
display: none !important;
}`,ho=function(be){ns(be,"."+Ma+Ta+qa+`
.`+Na+Wa+qa)},ns=function(be,Le){var We=be.ownerDocument;if(We){var pt=We.createElement("style");pt.textContent=Le,be.appendChild(pt)}},Mo=function(){function xr(){}return xr.getOrigin=function(be){var Le=xr._link;return Le?(Le.href=be,Le.href=Le.href,Le.protocol+Le.hostname+Le.port):"about:blank"},xr.isSameOrigin=function(be){return xr.getOrigin(be)===xr._origin},xr.setContext=function(be){xr._link=be.document.createElement("a"),xr._origin=xr.getOrigin(be.location.href)},xr._origin="about:blank",xr}(),Ss=function(){function xr(be,Le){this.context=be,this._options=Le,this._cache={}}return xr.prototype.addImage=function(be){var Le=Promise.resolve();return this.has(be)||(Gl(be)||Pl(be))&&(this._cache[be]=this.loadImage(be)).catch(function(){}),Le},xr.prototype.match=function(be){return this._cache[be]},xr.prototype.loadImage=function(be){return A(this,void 0,void 0,function(){var Le,We,pt,mr,nn=this;return m(this,function(xn){switch(xn.label){case 0:return Le=Mo.isSameOrigin(be),We=!Vl(be)&&this._options.useCORS===!0&&hl.SUPPORT_CORS_IMAGES&&!Le,pt=!Vl(be)&&!Le&&!Gl(be)&&typeof this._options.proxy=="string"&&hl.SUPPORT_CORS_XHR&&!We,!Le&&this._options.allowTaint===!1&&!Vl(be)&&!Gl(be)&&!pt&&!We?[2]:(mr=be,pt?[4,this.proxy(mr)]:[3,2]);case 1:mr=xn.sent(),xn.label=2;case 2:return this.context.logger.debug("Added image "+be.substring(0,256)),[4,new Promise(function(Un,ii){var Xi=new Image;Xi.onload=function(){return Un(Xi)},Xi.onerror=ii,(Il(mr)||We)&&(Xi.crossOrigin="anonymous"),Xi.src=mr,Xi.complete===!0&&setTimeout(function(){return Un(Xi)},500),nn._options.imageTimeout>0&&setTimeout(function(){return ii("Timed out ("+nn._options.imageTimeout+"ms) loading image")},nn._options.imageTimeout)})];case 3:return[2,xn.sent()]}})})},xr.prototype.has=function(be){return typeof this._cache[be]!="undefined"},xr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},xr.prototype.proxy=function(be){var Le=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var pt=be.substring(0,256);return new Promise(function(mr,nn){var xn=hl.SUPPORT_RESPONSE_TYPE?"blob":"text",Un=new XMLHttpRequest;Un.onload=function(){if(Un.status===200)if(xn==="text")mr(Un.response);else{var Ui=new FileReader;Ui.addEventListener("load",function(){return mr(Ui.result)},!1),Ui.addEventListener("error",function(qi){return nn(qi)},!1),Ui.readAsDataURL(Un.response)}else nn("Failed to proxy resource "+pt+" with status code "+Un.status)},Un.onerror=nn;var ii=We.indexOf("?")>-1?"&":"?";if(Un.open("GET",""+We+ii+"url="+encodeURIComponent(be)+"&responseType="+xn),xn!=="text"&&Un instanceof XMLHttpRequest&&(Un.responseType=xn),Le._options.imageTimeout){var Xi=Le._options.imageTimeout;Un.timeout=Xi,Un.ontimeout=function(){return nn("Timed out ("+Xi+"ms) proxying "+pt)}}Un.send()})},xr}(),Zs=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,Pl=function(be){return hl.SUPPORT_SVG_DRAWING||!Fl(be)},Vl=function(be){return ul.test(be)},Il=function(be){return yl.test(be)},Gl=function(be){return be.substr(0,4)==="blob"},Fl=function(be){return be.substr(-3).toLowerCase()==="svg"||Zs.test(be)},Ja=function(){function xr(be,Le){this.type=0,this.x=be,this.y=Le}return xr.prototype.add=function(be,Le){return new xr(this.x+be,this.y+Le)},xr}(),vl=function(be,Le,We){return new Ja(be.x+(Le.x-be.x)*We,be.y+(Le.y-be.y)*We)},gl=function(){function xr(be,Le,We,pt){this.type=1,this.start=be,this.startControl=Le,this.endControl=We,this.end=pt}return xr.prototype.subdivide=function(be,Le){var We=vl(this.start,this.startControl,be),pt=vl(this.startControl,this.endControl,be),mr=vl(this.endControl,this.end,be),nn=vl(We,pt,be),xn=vl(pt,mr,be),Un=vl(nn,xn,be);return Le?new xr(this.start,We,nn,Un):new xr(Un,xn,mr,this.end)},xr.prototype.add=function(be,Le){return new xr(this.start.add(be,Le),this.startControl.add(be,Le),this.endControl.add(be,Le),this.end.add(be,Le))},xr.prototype.reverse=function(){return new xr(this.end,this.endControl,this.startControl,this.start)},xr}(),El=function(be){return be.type===1},Bu=function(){function xr(be){var Le=be.styles,We=be.bounds,pt=Ji(Le.borderTopLeftRadius,We.width,We.height),mr=pt[0],nn=pt[1],xn=Ji(Le.borderTopRightRadius,We.width,We.height),Un=xn[0],ii=xn[1],Xi=Ji(Le.borderBottomRightRadius,We.width,We.height),Ui=Xi[0],qi=Xi[1],Za=Ji(Le.borderBottomLeftRadius,We.width,We.height),eo=Za[0],po=Za[1],us=[];us.push((mr+Un)/We.width),us.push((eo+Ui)/We.width),us.push((nn+po)/We.height),us.push((ii+qi)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(mr/=Yo,nn/=Yo,Un/=Yo,ii/=Yo,Ui/=Yo,qi/=Yo,eo/=Yo,po/=Yo);var Po=We.width-Un,$s=We.height-qi,cl=We.width-Ui,zs=We.height-po,Ro=Le.borderTopWidth,Al=Le.borderRightWidth,bl=Le.borderBottomWidth,Vs=Le.borderLeftWidth,_u=ca(Le.paddingTop,be.bounds.width),Mu=ca(Le.paddingRight,be.bounds.width),Ou=ca(Le.paddingBottom,be.bounds.width),eu=ca(Le.paddingLeft,be.bounds.width);this.topLeftBorderDoubleOuterBox=mr>0||nn>0?vs(We.left+Vs/3,We.top+Ro/3,mr-Vs/3,nn-Ro/3,Ks.TOP_LEFT):new Ja(We.left+Vs/3,We.top+Ro/3),this.topRightBorderDoubleOuterBox=mr>0||nn>0?vs(We.left+Po,We.top+Ro/3,Un-Al/3,ii-Ro/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/3,We.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/3,qi-bl/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/3,We.top+We.height-bl/3),this.bottomLeftBorderDoubleOuterBox=eo>0||po>0?vs(We.left+Vs/3,We.top+zs,eo-Vs/3,po-bl/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/3,We.top+We.height-bl/3),this.topLeftBorderDoubleInnerBox=mr>0||nn>0?vs(We.left+Vs*2/3,We.top+Ro*2/3,mr-Vs*2/3,nn-Ro*2/3,Ks.TOP_LEFT):new Ja(We.left+Vs*2/3,We.top+Ro*2/3),this.topRightBorderDoubleInnerBox=mr>0||nn>0?vs(We.left+Po,We.top+Ro*2/3,Un-Al*2/3,ii-Ro*2/3,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al*2/3,qi-bl*2/3,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al*2/3,We.top+We.height-bl*2/3),this.bottomLeftBorderDoubleInnerBox=eo>0||po>0?vs(We.left+Vs*2/3,We.top+zs,eo-Vs*2/3,po-bl*2/3,Ks.BOTTOM_LEFT):new Ja(We.left+Vs*2/3,We.top+We.height-bl*2/3),this.topLeftBorderStroke=mr>0||nn>0?vs(We.left+Vs/2,We.top+Ro/2,mr-Vs/2,nn-Ro/2,Ks.TOP_LEFT):new Ja(We.left+Vs/2,We.top+Ro/2),this.topRightBorderStroke=mr>0||nn>0?vs(We.left+Po,We.top+Ro/2,Un-Al/2,ii-Ro/2,Ks.TOP_RIGHT):new Ja(We.left+We.width-Al/2,We.top+Ro/2),this.bottomRightBorderStroke=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui-Al/2,qi-bl/2,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al/2,We.top+We.height-bl/2),this.bottomLeftBorderStroke=eo>0||po>0?vs(We.left+Vs/2,We.top+zs,eo-Vs/2,po-bl/2,Ks.BOTTOM_LEFT):new Ja(We.left+Vs/2,We.top+We.height-bl/2),this.topLeftBorderBox=mr>0||nn>0?vs(We.left,We.top,mr,nn,Ks.TOP_LEFT):new Ja(We.left,We.top),this.topRightBorderBox=Un>0||ii>0?vs(We.left+Po,We.top,Un,ii,Ks.TOP_RIGHT):new Ja(We.left+We.width,We.top),this.bottomRightBorderBox=Ui>0||qi>0?vs(We.left+cl,We.top+$s,Ui,qi,Ks.BOTTOM_RIGHT):new Ja(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=eo>0||po>0?vs(We.left,We.top+zs,eo,po,Ks.BOTTOM_LEFT):new Ja(We.left,We.top+We.height),this.topLeftPaddingBox=mr>0||nn>0?vs(We.left+Vs,We.top+Ro,Math.max(0,mr-Vs),Math.max(0,nn-Ro),Ks.TOP_LEFT):new Ja(We.left+Vs,We.top+Ro),this.topRightPaddingBox=Un>0||ii>0?vs(We.left+Math.min(Po,We.width-Al),We.top+Ro,Po>We.width+Al?0:Math.max(0,Un-Al),Math.max(0,ii-Ro),Ks.TOP_RIGHT):new Ja(We.left+We.width-Al,We.top+Ro),this.bottomRightPaddingBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-Vs),We.top+Math.min($s,We.height-bl),Math.max(0,Ui-Al),Math.max(0,qi-bl),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-Al,We.top+We.height-bl),this.bottomLeftPaddingBox=eo>0||po>0?vs(We.left+Vs,We.top+Math.min(zs,We.height-bl),Math.max(0,eo-Vs),Math.max(0,po-bl),Ks.BOTTOM_LEFT):new Ja(We.left+Vs,We.top+We.height-bl),this.topLeftContentBox=mr>0||nn>0?vs(We.left+Vs+eu,We.top+Ro+_u,Math.max(0,mr-(Vs+eu)),Math.max(0,nn-(Ro+_u)),Ks.TOP_LEFT):new Ja(We.left+Vs+eu,We.top+Ro+_u),this.topRightContentBox=Un>0||ii>0?vs(We.left+Math.min(Po,We.width+Vs+eu),We.top+Ro+_u,Po>We.width+Vs+eu?0:Un-Vs+eu,ii-(Ro+_u),Ks.TOP_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+Ro+_u),this.bottomRightContentBox=Ui>0||qi>0?vs(We.left+Math.min(cl,We.width-(Vs+eu)),We.top+Math.min($s,We.height+Ro+_u),Math.max(0,Ui-(Al+Mu)),qi-(bl+Ou),Ks.BOTTOM_RIGHT):new Ja(We.left+We.width-(Al+Mu),We.top+We.height-(bl+Ou)),this.bottomLeftContentBox=eo>0||po>0?vs(We.left+Vs+eu,We.top+zs,Math.max(0,eo-(Vs+eu)),po-(bl+Ou),Ks.BOTTOM_LEFT):new Ja(We.left+Vs+eu,We.top+We.height-(bl+Ou))}return xr}(),Ks;(function(xr){xr[xr.TOP_LEFT=0]="TOP_LEFT",xr[xr.TOP_RIGHT=1]="TOP_RIGHT",xr[xr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",xr[xr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ks||(Ks={}));var vs=function(be,Le,We,pt,mr){var nn=4*((Math.sqrt(2)-1)/3),xn=We*nn,Un=pt*nn,ii=be+We,Xi=Le+pt;switch(mr){case Ks.TOP_LEFT:return new gl(new Ja(be,Xi),new Ja(be,Xi-Un),new Ja(ii-xn,Le),new Ja(ii,Le));case Ks.TOP_RIGHT:return new gl(new Ja(be,Le),new Ja(be+xn,Le),new Ja(ii,Xi-Un),new Ja(ii,Xi));case Ks.BOTTOM_RIGHT:return new gl(new Ja(ii,Le),new Ja(ii,Le+Un),new Ja(be+xn,Xi),new Ja(be,Xi));case Ks.BOTTOM_LEFT:default:return new gl(new Ja(ii,Xi),new Ja(ii-xn,Xi),new Ja(be,Le+Un),new Ja(be,Le))}},lu=function(be){return[be.topLeftBorderBox,be.topRightBorderBox,be.bottomRightBorderBox,be.bottomLeftBorderBox]},Kl=function(be){return[be.topLeftContentBox,be.topRightContentBox,be.bottomRightContentBox,be.bottomLeftContentBox]},Uu=function(be){return[be.topLeftPaddingBox,be.topRightPaddingBox,be.bottomRightPaddingBox,be.bottomLeftPaddingBox]},Eu=function(){function xr(be,Le,We){this.offsetX=be,this.offsetY=Le,this.matrix=We,this.type=0,this.target=2|4}return xr}(),uu=function(){function xr(be,Le){this.path=be,this.target=Le,this.type=1}return xr}(),ku=function(){function xr(be){this.opacity=be,this.type=2,this.target=2|4}return xr}(),Yl=function(be){return be.type===0},Tu=function(be){return be.type===1},Vu=function(be){return be.type===2},Ju=function(be,Le){return be.length===Le.length?be.some(function(We,pt){return We===Le[pt]}):!1},vc=function(be,Le,We,pt,mr){return be.map(function(nn,xn){switch(xn){case 0:return nn.add(Le,We);case 1:return nn.add(Le+pt,We);case 2:return nn.add(Le+pt,We+mr);case 3:return nn.add(Le,We+mr)}return nn})},Ac=function(){function xr(be){this.element=be,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return xr}(),tc=function(){function xr(be,Le){if(this.container=be,this.parent=Le,this.effects=[],this.curves=new Bu(this.container),this.container.styles.opacity<1&&this.effects.push(new ku(this.container.styles.opacity)),this.container.styles.transform!==null){var We=this.container.bounds.left+this.container.styles.transformOrigin[0].number,pt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,mr=this.container.styles.transform;this.effects.push(new Eu(We,pt,mr))}if(this.container.styles.overflowX!==0){var nn=lu(this.curves),xn=Uu(this.curves);Ju(nn,xn)?this.effects.push(new uu(nn,2|4)):(this.effects.push(new uu(nn,2)),this.effects.push(new uu(xn,4)))}}return xr.prototype.getEffects=function(be){for(var Le=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,pt=this.effects.slice(0);We;){var mr=We.effects.filter(function(Un){return!Tu(Un)});if(Le||We.container.styles.position!==0||!We.parent){if(pt.unshift.apply(pt,mr),Le=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var nn=lu(We.curves),xn=Uu(We.curves);Ju(nn,xn)||pt.unshift(new uu(xn,2|4))}}else pt.unshift.apply(pt,mr);We=We.parent}return pt.filter(function(Un){return sa(Un.target,be)})},xr}(),yc=function xr(be,Le,We,pt){be.container.elements.forEach(function(mr){var nn=sa(mr.flags,4),xn=sa(mr.flags,2),Un=new tc(mr,be);sa(mr.styles.display,2048)&&pt.push(Un);var ii=sa(mr.flags,8)?[]:pt;if(nn||xn){var Xi=nn||mr.styles.isPositioned()?We:Le,Ui=new Ac(Un);if(mr.styles.isPositioned()||mr.styles.opacity<1||mr.styles.isTransformed()){var qi=mr.styles.zIndex.order;if(qi<0){var Za=0;Xi.negativeZIndex.some(function(po,us){return qi>po.element.container.styles.zIndex.order?(Za=us,!1):Za>0}),Xi.negativeZIndex.splice(Za,0,Ui)}else if(qi>0){var eo=0;Xi.positiveZIndex.some(function(po,us){return qi>=po.element.container.styles.zIndex.order?(eo=us+1,!1):eo>0}),Xi.positiveZIndex.splice(eo,0,Ui)}else Xi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ui)}else mr.styles.isFloating()?Xi.nonPositionedFloats.push(Ui):Xi.nonPositionedInlineLevel.push(Ui);xr(Un,Ui,nn?Ui:We,ii)}else mr.styles.isInlineLevel()?Le.inlineLevel.push(Un):Le.nonInlineLevel.push(Un),xr(Un,Le,We,ii);sa(mr.flags,8)&&sc(mr,ii)})},sc=function(be,Le){for(var We=be instanceof mt?be.start:1,pt=be instanceof mt?be.reversed:!1,mr=0;mr<Le.length;mr++){var nn=Le[mr];nn.container instanceof st&&typeof nn.container.value=="number"&&nn.container.value!==0&&(We=nn.container.value),nn.listValue=ne(We,nn.container.styles.listStyleType,!0),We+=pt?-1:1}},ju=function(be){var Le=new tc(be,null),We=new Ac(Le),pt=[];return yc(Le,We,We,pt),sc(Le.container,pt),We},hc=function(be,Le){switch(Le){case 0:return Cu(be.topLeftBorderBox,be.topLeftPaddingBox,be.topRightBorderBox,be.topRightPaddingBox);case 1:return Cu(be.topRightBorderBox,be.topRightPaddingBox,be.bottomRightBorderBox,be.bottomRightPaddingBox);case 2:return Cu(be.bottomRightBorderBox,be.bottomRightPaddingBox,be.bottomLeftBorderBox,be.bottomLeftPaddingBox);case 3:default:return Cu(be.bottomLeftBorderBox,be.bottomLeftPaddingBox,be.topLeftBorderBox,be.topLeftPaddingBox)}},bc=function(be,Le){switch(Le){case 0:return Cu(be.topLeftBorderBox,be.topLeftBorderDoubleOuterBox,be.topRightBorderBox,be.topRightBorderDoubleOuterBox);case 1:return Cu(be.topRightBorderBox,be.topRightBorderDoubleOuterBox,be.bottomRightBorderBox,be.bottomRightBorderDoubleOuterBox);case 2:return Cu(be.bottomRightBorderBox,be.bottomRightBorderDoubleOuterBox,be.bottomLeftBorderBox,be.bottomLeftBorderDoubleOuterBox);case 3:default:return Cu(be.bottomLeftBorderBox,be.bottomLeftBorderDoubleOuterBox,be.topLeftBorderBox,be.topLeftBorderDoubleOuterBox)}},Tc=function(be,Le){switch(Le){case 0:return Cu(be.topLeftBorderDoubleInnerBox,be.topLeftPaddingBox,be.topRightBorderDoubleInnerBox,be.topRightPaddingBox);case 1:return Cu(be.topRightBorderDoubleInnerBox,be.topRightPaddingBox,be.bottomRightBorderDoubleInnerBox,be.bottomRightPaddingBox);case 2:return Cu(be.bottomRightBorderDoubleInnerBox,be.bottomRightPaddingBox,be.bottomLeftBorderDoubleInnerBox,be.bottomLeftPaddingBox);case 3:default:return Cu(be.bottomLeftBorderDoubleInnerBox,be.bottomLeftPaddingBox,be.topLeftBorderDoubleInnerBox,be.topLeftPaddingBox)}},wc=function(be,Le){switch(Le){case 0:return Pu(be.topLeftBorderStroke,be.topRightBorderStroke);case 1:return Pu(be.topRightBorderStroke,be.bottomRightBorderStroke);case 2:return Pu(be.bottomRightBorderStroke,be.bottomLeftBorderStroke);case 3:default:return Pu(be.bottomLeftBorderStroke,be.topLeftBorderStroke)}},Pu=function(be,Le){var We=[];return El(be)?We.push(be.subdivide(.5,!1)):We.push(be),El(Le)?We.push(Le.subdivide(.5,!0)):We.push(Le),We},Cu=function(be,Le,We,pt){var mr=[];return El(be)?mr.push(be.subdivide(.5,!1)):mr.push(be),El(We)?mr.push(We.subdivide(.5,!0)):mr.push(We),El(pt)?mr.push(pt.subdivide(.5,!0).reverse()):mr.push(pt),El(Le)?mr.push(Le.subdivide(.5,!1).reverse()):mr.push(Le),mr},fc=function(be){var Le=be.bounds,We=be.styles;return Le.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(be){var Le=be.styles,We=be.bounds,pt=ca(Le.paddingLeft,We.width),mr=ca(Le.paddingRight,We.width),nn=ca(Le.paddingTop,We.width),xn=ca(Le.paddingBottom,We.width);return We.add(pt+Le.borderLeftWidth,nn+Le.borderTopWidth,-(Le.borderRightWidth+Le.borderLeftWidth+pt+mr),-(Le.borderTopWidth+Le.borderBottomWidth+nn+xn))},Sc=function(be,Le){return be===0?Le.bounds:be===2?lc(Le):fc(Le)},Cc=function(be,Le){return be===0?Le.bounds:be===2?lc(Le):fc(Le)},Gu=function(be,Le,We){var pt=Sc(wu(be.styles.backgroundOrigin,Le),be),mr=Cc(wu(be.styles.backgroundClip,Le),be),nn=Fu(wu(be.styles.backgroundSize,Le),We,pt),xn=nn[0],Un=nn[1],ii=Ji(wu(be.styles.backgroundPosition,Le),pt.width-xn,pt.height-Un),Xi=Ku(wu(be.styles.backgroundRepeat,Le),ii,nn,pt,mr),Ui=Math.round(pt.left+ii[0]),qi=Math.round(pt.top+ii[1]);return[Xi,Ui,qi,xn,Un]},Hu=function(be){return On(be)&&be.value===Ni.AUTO},Xu=function(be){return typeof be=="number"},Fu=function(be,Le,We){var pt=Le[0],mr=Le[1],nn=Le[2],xn=be[0],Un=be[1];if(!xn)return[0,0];if(zi(xn)&&Un&&zi(Un))return[ca(xn,We.width),ca(Un,We.height)];var ii=Xu(nn);if(On(xn)&&(xn.value===Ni.CONTAIN||xn.value===Ni.COVER)){if(Xu(nn)){var Xi=We.width/We.height;return Xi<nn!==(xn.value===Ni.COVER)?[We.width,We.width/nn]:[We.height*nn,We.height]}return[We.width,We.height]}var Ui=Xu(pt),qi=Xu(mr),Za=Ui||qi;if(Hu(xn)&&(!Un||Hu(Un))){if(Ui&&qi)return[pt,mr];if(!ii&&!Za)return[We.width,We.height];if(Za&&ii){var eo=Ui?pt:mr*nn,po=qi?mr:pt/nn;return[eo,po]}var us=Ui?pt:We.width,Yo=qi?mr:We.height;return[us,Yo]}if(ii){var Po=0,$s=0;return zi(xn)?Po=ca(xn,We.width):zi(Un)&&($s=ca(Un,We.height)),Hu(xn)?Po=$s*nn:(!Un||Hu(Un))&&($s=Po/nn),[Po,$s]}var cl=null,zs=null;if(zi(xn)?cl=ca(xn,We.width):Un&&zi(Un)&&(zs=ca(Un,We.height)),cl!==null&&(!Un||Hu(Un))&&(zs=Ui&&qi?cl/pt*mr:We.height),zs!==null&&Hu(xn)&&(cl=Ui&&qi?zs/mr*pt:We.width),cl!==null&&zs!==null)return[cl,zs];throw new Error("Unable to calculate background-size for element")},wu=function(be,Le){var We=be[Le];return typeof We=="undefined"?be[0]:We},Ku=function(be,Le,We,pt,mr){var nn=Le[0],xn=Le[1],Un=We[0],ii=We[1];switch(be){case 2:return[new Ja(Math.round(pt.left),Math.round(pt.top+xn)),new Ja(Math.round(pt.left+pt.width),Math.round(pt.top+xn)),new Ja(Math.round(pt.left+pt.width),Math.round(ii+pt.top+xn)),new Ja(Math.round(pt.left),Math.round(ii+pt.top+xn))];case 3:return[new Ja(Math.round(pt.left+nn),Math.round(pt.top)),new Ja(Math.round(pt.left+nn+Un),Math.round(pt.top)),new Ja(Math.round(pt.left+nn+Un),Math.round(pt.height+pt.top)),new Ja(Math.round(pt.left+nn),Math.round(pt.height+pt.top))];case 1:return[new Ja(Math.round(pt.left+nn),Math.round(pt.top+xn)),new Ja(Math.round(pt.left+nn+Un),Math.round(pt.top+xn)),new Ja(Math.round(pt.left+nn+Un),Math.round(pt.top+xn+ii)),new Ja(Math.round(pt.left+nn),Math.round(pt.top+xn+ii))];default:return[new Ja(Math.round(mr.left),Math.round(mr.top)),new Ja(Math.round(mr.left+mr.width),Math.round(mr.top)),new Ja(Math.round(mr.left+mr.width),Math.round(mr.height+mr.top)),new Ja(Math.round(mr.left),Math.round(mr.height+mr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function xr(be){this._data={},this._document=be}return xr.prototype.parseMetrics=function(be,Le){var We=this._document.createElement("div"),pt=this._document.createElement("img"),mr=this._document.createElement("span"),nn=this._document.body;We.style.visibility="hidden",We.style.fontFamily=be,We.style.fontSize=Le,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",nn.appendChild(We),pt.src=uc,pt.width=1,pt.height=1,pt.style.margin="0",pt.style.padding="0",pt.style.verticalAlign="baseline",mr.style.fontFamily=be,mr.style.fontSize=Le,mr.style.margin="0",mr.style.padding="0",mr.appendChild(this._document.createTextNode(cc)),We.appendChild(mr),We.appendChild(pt);var xn=pt.offsetTop-mr.offsetTop+2;We.removeChild(mr),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",pt.style.verticalAlign="super";var Un=pt.offsetTop-We.offsetTop+2;return nn.removeChild(We),{baseline:xn,middle:Un}},xr.prototype.getMetrics=function(be,Le){var We=be+" "+Le;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(be,Le)),this._data[We]},xr}(),Ec=function(){function xr(be,Le){this.context=be,this.options=Le}return xr}(),pc=1e4,mc=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt._activeEffects=[],pt.canvas=We.canvas?We.canvas:document.createElement("canvas"),pt.ctx=pt.canvas.getContext("2d"),We.canvas||(pt.canvas.width=Math.floor(We.width*We.scale),pt.canvas.height=Math.floor(We.height*We.scale),pt.canvas.style.width=We.width+"px",pt.canvas.style.height=We.height+"px"),pt.fontMetrics=new xc(document),pt.ctx.scale(pt.options.scale,pt.options.scale),pt.ctx.translate(-We.x,-We.y),pt.ctx.textBaseline="bottom",pt._activeEffects=[],pt.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),pt}return be.prototype.applyEffects=function(Le){for(var We=this;this._activeEffects.length;)this.popEffect();Le.forEach(function(pt){return We.applyEffect(pt)})},be.prototype.applyEffect=function(Le){this.ctx.save(),Vu(Le)&&(this.ctx.globalAlpha=Le.opacity),Yl(Le)&&(this.ctx.translate(Le.offsetX,Le.offsetY),this.ctx.transform(Le.matrix[0],Le.matrix[1],Le.matrix[2],Le.matrix[3],Le.matrix[4],Le.matrix[5]),this.ctx.translate(-Le.offsetX,-Le.offsetY)),Tu(Le)&&(this.path(Le.path),this.ctx.clip()),this._activeEffects.push(Le)},be.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},be.prototype.renderStack=function(Le){return A(this,void 0,void 0,function(){var We;return m(this,function(pt){switch(pt.label){case 0:return We=Le.element.container.styles,We.isVisible()?[4,this.renderStackContent(Le)]:[3,2];case 1:pt.sent(),pt.label=2;case 2:return[2]}})})},be.prototype.renderNode=function(Le){return A(this,void 0,void 0,function(){return m(this,function(We){switch(We.label){case 0:if(sa(Le.container.flags,16))debugger;return Le.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Le)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(Le)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},be.prototype.renderTextWithLetterSpacing=function(Le,We,pt){var mr=this;if(We===0)this.ctx.fillText(Le.text,Le.bounds.left,Le.bounds.top+pt);else{var nn=fu(Le.text);nn.reduce(function(xn,Un){return mr.ctx.fillText(Un,xn,Le.bounds.top+pt),xn+mr.ctx.measureText(Un).width},Le.bounds.left)}},be.prototype.createFontStyle=function(Le){var We=Le.fontVariant.filter(function(nn){return nn==="normal"||nn==="small-caps"}).join(""),pt=Nc(Le.fontFamily).join(", "),mr=en(Le.fontSize)?""+Le.fontSize.number+Le.fontSize.unit:Le.fontSize.number+"px";return[[Le.fontStyle,We,Le.fontWeight,mr,pt].join(" "),pt,mr]},be.prototype.renderTextNode=function(Le,We){return A(this,void 0,void 0,function(){var pt,mr,nn,xn,Un,ii,Xi,Ui,qi=this;return m(this,function(Za){return pt=this.createFontStyle(We),mr=pt[0],nn=pt[1],xn=pt[2],this.ctx.font=mr,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Un=this.fontMetrics.getMetrics(nn,xn),ii=Un.baseline,Xi=Un.middle,Ui=We.paintOrder,Le.textBounds.forEach(function(eo){Ui.forEach(function(po){switch(po){case 0:qi.ctx.fillStyle=Va(We.color),qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ii);var us=We.textShadow;us.length&&eo.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Va(Yo.color),qi.ctx.shadowOffsetX=Yo.offsetX.number*qi.options.scale,qi.ctx.shadowOffsetY=Yo.offsetY.number*qi.options.scale,qi.ctx.shadowBlur=Yo.blur.number,qi.renderTextWithLetterSpacing(eo,We.letterSpacing,ii)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),We.textDecorationLine.length&&(qi.ctx.fillStyle=Va(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top+ii),eo.bounds.width,1);break;case 2:qi.ctx.fillRect(eo.bounds.left,Math.round(eo.bounds.top),eo.bounds.width,1);break;case 3:qi.ctx.fillRect(eo.bounds.left,Math.ceil(eo.bounds.top+Xi),eo.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&eo.text.trim().length&&(qi.ctx.strokeStyle=Va(We.webkitTextStrokeColor),qi.ctx.lineWidth=We.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(eo.text,eo.bounds.left,eo.bounds.top+ii)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},be.prototype.renderReplacedElement=function(Le,We,pt){if(pt&&Le.intrinsicWidth>0&&Le.intrinsicHeight>0){var mr=lc(Le),nn=Uu(We);this.path(nn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(pt,0,0,Le.intrinsicWidth,Le.intrinsicHeight,mr.left,mr.top,mr.width,mr.height),this.ctx.restore()}},be.prototype.renderNodeContent=function(Le){return A(this,void 0,void 0,function(){var We,pt,mr,nn,xn,Un,ii,ii,Xi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,ii,zs,eo,Yo;return m(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(Le.getEffects(4)),We=Le.container,pt=Le.curves,mr=We.styles,nn=0,xn=We.textNodes,Ro.label=1;case 1:return nn<xn.length?(Un=xn[nn],[4,this.renderTextNode(Un,mr)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return nn++,[3,1];case 4:if(!(We instanceof ve))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ii=Ro.sent(),this.renderReplacedElement(We,pt,ii),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof Te&&this.renderReplacedElement(We,pt,We.canvas),!(We instanceof ze))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ii=Ro.sent(),this.renderReplacedElement(We,pt,ii),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof Zi&&We.tree?(Xi=new be(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Xi.render(We.tree)]):[3,14];case 13:Ui=Ro.sent(),We.width&&We.height&&this.ctx.drawImage(Ui,0,0,We.width,We.height,We.bounds.left,We.bounds.top,We.bounds.width,We.bounds.height),Ro.label=14;case 14:if(We instanceof Si&&(qi=Math.min(We.bounds.width,We.bounds.height),We.type===Qr?We.checked&&(this.ctx.save(),this.path([new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79),new Ja(We.bounds.left+qi*.16,We.bounds.top+qi*.5549),new Ja(We.bounds.left+qi*.27347,We.bounds.top+qi*.44071),new Ja(We.bounds.left+qi*.39694,We.bounds.top+qi*.5649),new Ja(We.bounds.left+qi*.72983,We.bounds.top+qi*.23),new Ja(We.bounds.left+qi*.84,We.bounds.top+qi*.34085),new Ja(We.bounds.left+qi*.39363,We.bounds.top+qi*.79)]),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()):We.type===Cn&&(We.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(We.bounds.left+qi/2,We.bounds.top+qi/2,qi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Va(Zn),this.ctx.fill(),this.ctx.restore()))),_c(We)&&We.value.length){Za=this.createFontStyle(mr),eo=Za[0],po=Za[1],us=this.fontMetrics.getMetrics(eo,po).baseline,this.ctx.font=eo,this.ctx.fillStyle=Va(mr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Po=0;switch(We.styles.textAlign){case 1:Po+=Yo.width/2;break;case 2:Po+=Yo.width;break}$s=Yo.add(Po,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Ja(Yo.left,Yo.top),new Ja(Yo.left+Yo.width,Yo.top),new Ja(Yo.left+Yo.width,Yo.top+Yo.height),new Ja(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Dl(We.value,$s),mr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(cl=We.styles.listStyleImage,!(cl.type===0))return[3,18];ii=void 0,zs=cl.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(zs)];case 16:return ii=Ro.sent(),this.ctx.drawImage(ii,We.bounds.left-(ii.width+10),We.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+zs),[3,18];case 18:return[3,20];case 19:Le.listValue&&We.styles.listStyleType!==-1&&(eo=this.createFontStyle(mr)[0],this.ctx.font=eo,this.ctx.fillStyle=Va(mr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(We.bounds.left,We.bounds.top+ca(We.styles.paddingTop,We.bounds.width),We.bounds.width,zo(mr.lineHeight,mr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Dl(Le.listValue,Yo),mr.letterSpacing,zo(mr.lineHeight,mr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},be.prototype.renderStackContent=function(Le){return A(this,void 0,void 0,function(){var We,pt,mr,nn,xn,mr,Un,ii,mr,Xi,Ui,mr,qi,Za,mr,eo,po,mr,us,Yo,mr;return m(this,function(Po){switch(Po.label){case 0:if(sa(Le.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Le.element)];case 1:Po.sent(),We=0,pt=Le.negativeZIndex,Po.label=2;case 2:return We<pt.length?(mr=pt[We],[4,this.renderStack(mr)]):[3,5];case 3:Po.sent(),Po.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(Le.element)];case 6:Po.sent(),nn=0,xn=Le.nonInlineLevel,Po.label=7;case 7:return nn<xn.length?(mr=xn[nn],[4,this.renderNode(mr)]):[3,10];case 8:Po.sent(),Po.label=9;case 9:return nn++,[3,7];case 10:Un=0,ii=Le.nonPositionedFloats,Po.label=11;case 11:return Un<ii.length?(mr=ii[Un],[4,this.renderStack(mr)]):[3,14];case 12:Po.sent(),Po.label=13;case 13:return Un++,[3,11];case 14:Xi=0,Ui=Le.nonPositionedInlineLevel,Po.label=15;case 15:return Xi<Ui.length?(mr=Ui[Xi],[4,this.renderStack(mr)]):[3,18];case 16:Po.sent(),Po.label=17;case 17:return Xi++,[3,15];case 18:qi=0,Za=Le.inlineLevel,Po.label=19;case 19:return qi<Za.length?(mr=Za[qi],[4,this.renderNode(mr)]):[3,22];case 20:Po.sent(),Po.label=21;case 21:return qi++,[3,19];case 22:eo=0,po=Le.zeroOrAutoZIndexOrTransformedOrOpacity,Po.label=23;case 23:return eo<po.length?(mr=po[eo],[4,this.renderStack(mr)]):[3,26];case 24:Po.sent(),Po.label=25;case 25:return eo++,[3,23];case 26:us=0,Yo=Le.positiveZIndex,Po.label=27;case 27:return us<Yo.length?(mr=Yo[us],[4,this.renderStack(mr)]):[3,30];case 28:Po.sent(),Po.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},be.prototype.mask=function(Le){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Le.slice(0).reverse()),this.ctx.closePath()},be.prototype.path=function(Le){this.ctx.beginPath(),this.formatPath(Le),this.ctx.closePath()},be.prototype.formatPath=function(Le){var We=this;Le.forEach(function(pt,mr){var nn=El(pt)?pt.start:pt;mr===0?We.ctx.moveTo(nn.x,nn.y):We.ctx.lineTo(nn.x,nn.y),El(pt)&&We.ctx.bezierCurveTo(pt.startControl.x,pt.startControl.y,pt.endControl.x,pt.endControl.y,pt.end.x,pt.end.y)})},be.prototype.renderRepeat=function(Le,We,pt,mr){this.path(Le),this.ctx.fillStyle=We,this.ctx.translate(pt,mr),this.ctx.fill(),this.ctx.translate(-pt,-mr)},be.prototype.resizeImage=function(Le,We,pt){var mr;if(Le.width===We&&Le.height===pt)return Le;var nn=(mr=this.canvas.ownerDocument)!==null&&mr!==void 0?mr:document,xn=nn.createElement("canvas");xn.width=Math.max(1,We),xn.height=Math.max(1,pt);var Un=xn.getContext("2d");return Un.drawImage(Le,0,0,Le.width,Le.height,0,0,We,pt),xn},be.prototype.renderBackgroundImage=function(Le){return A(this,void 0,void 0,function(){var We,pt,mr,nn,xn,Un;return m(this,function(ii){switch(ii.label){case 0:We=Le.styles.backgroundImage.length-1,pt=function(Ui){var qi,Za,eo,po,us,Yo,Po,$s,cl,zs,po,us,Yo,Po,$s,Ro,Al,bl,Vs,_u,Mu,Ou,eu,rc,cl,Wu,po,Zu,$u,Po,$s,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Ui.type===0))return[3,5];qi=void 0,Za=Ui.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,mr.context.cache.match(Za)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),mr.context.logger.error("Error loading background-image "+Za),[3,4];case 4:return qi&&(eo=Gu(Le,We,[qi.width,qi.height,qi.width/qi.height]),po=eo[0],us=eo[1],Yo=eo[2],Po=eo[3],$s=eo[4],cl=mr.ctx.createPattern(mr.resizeImage(qi,Po,$s),"repeat"),mr.renderRepeat(po,cl,us,Yo)),[3,6];case 5:zr(Ui)?(zs=Gu(Le,We,[null,null,null]),po=zs[0],us=zs[1],Yo=zs[2],Po=zs[3],$s=zs[4],Ro=ts(Ui.angle,Po,$s),Al=Ro[0],bl=Ro[1],Vs=Ro[2],_u=Ro[3],Mu=Ro[4],Ou=document.createElement("canvas"),Ou.width=Po,Ou.height=$s,eu=Ou.getContext("2d"),rc=eu.createLinearGradient(bl,_u,Vs,Mu),Uo(Ui.stops,Al).forEach(function(gc){return rc.addColorStop(gc.stop,Va(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Po,$s),Po>0&&$s>0&&(cl=mr.ctx.createPattern(Ou,"repeat"),mr.renderRepeat(po,cl,us,Yo))):ni(Ui)&&(Wu=Gu(Le,We,[null,null,null]),po=Wu[0],Zu=Wu[1],$u=Wu[2],Po=Wu[3],$s=Wu[4],qu=Ui.position.length===0?[Wi]:Ui.position,us=ca(qu[0],Po),Yo=ca(qu[qu.length-1],$s),nc=Io(Ui,us,Yo,Po,$s),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=mr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),Uo(Ui.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Va(gc.color))}),mr.path(po),mr.ctx.fillStyle=ic,zu!==ec?(ac=Le.bounds.left+.5*Le.bounds.width,Yu=Le.bounds.top+.5*Le.bounds.height,oc=ec/zu,Qu=1/oc,mr.ctx.save(),mr.ctx.translate(ac,Yu),mr.ctx.transform(1,0,0,oc,0,0),mr.ctx.translate(-ac,-Yu),mr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Po,$s*Qu),mr.ctx.restore()):mr.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},mr=this,nn=0,xn=Le.styles.backgroundImage.slice(0).reverse(),ii.label=1;case 1:return nn<xn.length?(Un=xn[nn],[5,pt(Un)]):[3,4];case 2:ii.sent(),ii.label=3;case 3:return nn++,[3,1];case 4:return[2]}})})},be.prototype.renderSolidBorder=function(Le,We,pt){return A(this,void 0,void 0,function(){return m(this,function(mr){return this.path(hc(pt,We)),this.ctx.fillStyle=Va(Le),this.ctx.fill(),[2]})})},be.prototype.renderDoubleBorder=function(Le,We,pt,mr){return A(this,void 0,void 0,function(){var nn,xn;return m(this,function(Un){switch(Un.label){case 0:return We<3?[4,this.renderSolidBorder(Le,pt,mr)]:[3,2];case 1:return Un.sent(),[2];case 2:return nn=bc(mr,pt),this.path(nn),this.ctx.fillStyle=Va(Le),this.ctx.fill(),xn=Tc(mr,pt),this.path(xn),this.ctx.fill(),[2]}})})},be.prototype.renderNodeBackgroundAndBorders=function(Le){return A(this,void 0,void 0,function(){var We,pt,mr,nn,xn,Un,ii,Xi,Ui=this;return m(this,function(qi){switch(qi.label){case 0:return this.applyEffects(Le.getEffects(2)),We=Le.container.styles,pt=!_a(We.backgroundColor)||We.backgroundImage.length,mr=[{style:We.borderTopStyle,color:We.borderTopColor,width:We.borderTopWidth},{style:We.borderRightStyle,color:We.borderRightColor,width:We.borderRightWidth},{style:We.borderBottomStyle,color:We.borderBottomColor,width:We.borderBottomWidth},{style:We.borderLeftStyle,color:We.borderLeftColor,width:We.borderLeftWidth}],nn=Oc(wu(We.backgroundClip,0),Le.curves),pt||We.boxShadow.length?(this.ctx.save(),this.path(nn),this.ctx.clip(),_a(We.backgroundColor)||(this.ctx.fillStyle=Va(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Le.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Za){Ui.ctx.save();var eo=lu(Le.curves),po=Za.inset?0:pc,us=vc(eo,-po+(Za.inset?1:-1)*Za.spread.number,(Za.inset?1:-1)*Za.spread.number,Za.spread.number*(Za.inset?-2:2),Za.spread.number*(Za.inset?-2:2));Za.inset?(Ui.path(eo),Ui.ctx.clip(),Ui.mask(us)):(Ui.mask(eo),Ui.ctx.clip(),Ui.path(us)),Ui.ctx.shadowOffsetX=Za.offsetX.number+po,Ui.ctx.shadowOffsetY=Za.offsetY.number,Ui.ctx.shadowColor=Va(Za.color),Ui.ctx.shadowBlur=Za.blur.number,Ui.ctx.fillStyle=Za.inset?Va(Za.color):"rgba(0,0,0,1)",Ui.ctx.fill(),Ui.ctx.restore()}),qi.label=2;case 2:xn=0,Un=0,ii=mr,qi.label=3;case 3:return Un<ii.length?(Xi=ii[Un],Xi.style!==0&&!_a(Xi.color)&&Xi.width>0?Xi.style===2?[4,this.renderDashedDottedBorder(Xi.color,Xi.width,xn,Le.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Xi.style===3?[4,this.renderDashedDottedBorder(Xi.color,Xi.width,xn,Le.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Xi.style===4?[4,this.renderDoubleBorder(Xi.color,Xi.width,xn,Le.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Xi.color,xn,Le.curves)];case 10:qi.sent(),qi.label=11;case 11:xn++,qi.label=12;case 12:return Un++,[3,3];case 13:return[2]}})})},be.prototype.renderDashedDottedBorder=function(Le,We,pt,mr,nn){return A(this,void 0,void 0,function(){var xn,Un,ii,Xi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,zs,Ro;return m(this,function(Al){return this.ctx.save(),xn=wc(mr,pt),Un=hc(mr,pt),nn===2&&(this.path(Un),this.ctx.clip()),El(Un[0])?(ii=Un[0].start.x,Xi=Un[0].start.y):(ii=Un[0].x,Xi=Un[0].y),El(Un[1])?(Ui=Un[1].end.x,qi=Un[1].end.y):(Ui=Un[1].x,qi=Un[1].y),pt===0||pt===2?Za=Math.abs(ii-Ui):Za=Math.abs(Xi-qi),this.ctx.beginPath(),nn===3?this.formatPath(xn):this.formatPath(Un.slice(0,2)),eo=We<3?We*3:We*2,po=We<3?We*2:We,nn===3&&(eo=We,po=We),us=!0,Za<=eo*2?us=!1:Za<=eo*2+po?(Yo=Za/(2*eo+po),eo*=Yo,po*=Yo):(Po=Math.floor((Za+po)/(eo+po)),$s=(Za-Po*eo)/(Po-1),cl=(Za-(Po+1)*eo)/Po,po=cl<=0||Math.abs(po-$s)<Math.abs(po-cl)?$s:cl),us&&(nn===3?this.ctx.setLineDash([0,eo+po]):this.ctx.setLineDash([eo,po])),nn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Va(Le),this.ctx.stroke(),this.ctx.setLineDash([]),nn===2&&(El(Un[0])&&(zs=Un[3],Ro=Un[0],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),El(Un[1])&&(zs=Un[1],Ro=Un[2],this.ctx.beginPath(),this.formatPath([new Ja(zs.end.x,zs.end.y),new Ja(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},be.prototype.render=function(Le){return A(this,void 0,void 0,function(){var We;return m(this,function(pt){switch(pt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(Le),[4,this.renderStack(We)];case 1:return pt.sent(),this.applyEffects([]),[2,this.canvas]}})})},be}(Ec),_c=function(be){return be instanceof Vi||be instanceof ua?!0:be instanceof Si&&be.type!==Cn&&be.type!==Qr},Oc=function(be,Le){switch(be){case 0:return lu(Le);case 2:return Kl(Le);case 1:default:return Uu(Le)}},Ic=function(be){switch(be){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(be){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?be.filter(function(Le){return Lc.indexOf(Le)===-1}):be},Dc=function(xr){f(be,xr);function be(Le,We){var pt=xr.call(this,Le,We)||this;return pt.canvas=We.canvas?We.canvas:document.createElement("canvas"),pt.ctx=pt.canvas.getContext("2d"),pt.options=We,pt.canvas.width=Math.floor(We.width*We.scale),pt.canvas.height=Math.floor(We.height*We.scale),pt.canvas.style.width=We.width+"px",pt.canvas.style.height=We.height+"px",pt.ctx.scale(pt.options.scale,pt.options.scale),pt.ctx.translate(-We.x,-We.y),pt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),pt}return be.prototype.render=function(Le){return A(this,void 0,void 0,function(){var We,pt;return m(this,function(mr){switch(mr.label){case 0:return We=xu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Le),[4,Rc(We)];case 1:return pt=mr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Va(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(pt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},be}(Ec),Rc=function(be){return new Promise(function(Le,We){var pt=new Image;pt.onload=function(){Le(pt)},pt.onerror=We,pt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(be))})},kc=function(){function xr(be){var Le=be.id,We=be.enabled;this.id=Le,this.enabled=We,this.start=Date.now()}return xr.prototype.debug=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,p([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},xr.prototype.getTime=function(){return Date.now()-this.start},xr.prototype.info=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,p([this.id,this.getTime()+"ms"],be)))},xr.prototype.warn=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,p([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},xr.prototype.error=function(){for(var be=[],Le=0;Le<arguments.length;Le++)be[Le]=arguments[Le];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,p([this.id,this.getTime()+"ms"],be)):this.info.apply(this,be))},xr.instances={},xr}(),Mc=function(){function xr(be,Le){var We;this.windowBounds=Le,this.instanceName="#"+xr.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:be.logging}),this.cache=(We=be.cache)!==null&&We!==void 0?We:new Ss(this,be)}return xr.instanceCount=1,xr}(),Pc=function(be,Le){return Le===void 0&&(Le={}),Fc(be,Le)};typeof window!="undefined"&&Mo.setContext(window);var Fc=function(be,Le){return A(void 0,void 0,void 0,function(){var We,pt,mr,nn,xn,Un,ii,Xi,Ui,qi,Za,eo,po,us,Yo,Po,$s,cl,zs,Ro,Al,bl,Al,Vs,_u,Mu,Ou,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!be||typeof be!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=be.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(pt=We.defaultView,!pt)throw new Error("Document is not attached to a Window");return mr={allowTaint:(Vs=Le.allowTaint)!==null&&Vs!==void 0?Vs:!1,imageTimeout:(_u=Le.imageTimeout)!==null&&_u!==void 0?_u:15e3,proxy:Le.proxy,useCORS:(Mu=Le.useCORS)!==null&&Mu!==void 0?Mu:!1},nn=x({logging:(Ou=Le.logging)!==null&&Ou!==void 0?Ou:!0,cache:Le.cache},mr),xn={windowWidth:(eu=Le.windowWidth)!==null&&eu!==void 0?eu:pt.innerWidth,windowHeight:(rc=Le.windowHeight)!==null&&rc!==void 0?rc:pt.innerHeight,scrollX:(Wu=Le.scrollX)!==null&&Wu!==void 0?Wu:pt.pageXOffset,scrollY:(Zu=Le.scrollY)!==null&&Zu!==void 0?Zu:pt.pageYOffset},Un=new d(xn.scrollX,xn.scrollY,xn.windowWidth,xn.windowHeight),ii=new Mc(nn,Un),Xi=($u=Le.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Ui={allowTaint:(qu=Le.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:Le.onclone,ignoreElements:Le.ignoreElements,inlineImages:Xi,copyStyles:Xi},ii.logger.debug("Starting document clone with size "+Un.width+"x"+Un.height+" scrolled to "+-Un.left+","+-Un.top),qi=new ge(ii,be,Ui),Za=qi.clonedReferenceElement,Za?[4,qi.toIFrame(We,Un)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return eo=Qu.sent(),po=Fr(Za)||xt(Za)?a(Za.ownerDocument):u(ii,Za),us=po.width,Yo=po.height,Po=po.left,$s=po.top,cl=Bc(ii,Za,Le.backgroundColor),zs={canvas:Le.canvas,backgroundColor:cl,scale:(zu=(nc=Le.scale)!==null&&nc!==void 0?nc:pt.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=Le.x)!==null&&ec!==void 0?ec:0)+Po,y:((ic=Le.y)!==null&&ic!==void 0?ic:0)+$s,width:(ac=Le.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=Le.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Xi?(ii.logger.debug("Document cloned, using foreign object rendering"),Al=new Dc(ii,zs),[4,Al.render(Za)]):[3,3];case 2:return Ro=Qu.sent(),[3,5];case 3:return ii.logger.debug("Document cloned, element located at "+Po+","+$s+" with size "+us+"x"+Yo+" using computed rendering"),ii.logger.debug("Starting DOM parsing"),bl=Sa(ii,Za),cl===bl.styles.backgroundColor&&(bl.styles.backgroundColor=So.TRANSPARENT),ii.logger.debug("Starting renderer for element at "+zs.x+","+zs.y+" with size "+zs.width+"x"+zs.height),Al=new mc(ii,zs),[4,Al.render(bl)];case 4:Ro=Qu.sent(),Qu.label=5;case 5:return((oc=Le.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ge.destroy(eo)||ii.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ii.logger.debug("Finished rendering"),[2,Ro]}})})},Bc=function(be,Le,We){var pt=Le.ownerDocument,mr=pt.documentElement?ao(be,getComputedStyle(pt.documentElement).backgroundColor):So.TRANSPARENT,nn=pt.body?ao(be,getComputedStyle(pt.body).backgroundColor):So.TRANSPARENT,xn=typeof We=="string"?ao(be,We):We===null?So.TRANSPARENT:4294967295;return Le===pt.documentElement?_a(mr)?_a(nn)?xn:nn:mr:xn};return Pc})},wPhX:function(R,L,r){"use strict";r.d(L,"b",function(){return i}),r.d(L,"a",function(){return t}),r.d(L,"k",function(){return s}),r.d(L,"h",function(){return e}),r.d(L,"i",function(){return l}),r.d(L,"g",function(){return n}),r.d(L,"c",function(){return o}),r.d(L,"d",function(){return c}),r.d(L,"j",function(){return v}),r.d(L,"e",function(){return b}),r.d(L,"f",function(){return S});var y=r("KQm4"),f=r("U8pU"),x=r("Ff2n"),A=r("q1tI"),m=r.n(A),p=r("Kwbf"),d=r("lr6o"),u=.25,a=2;function i(E,C){var _=E.slice(),T=_.indexOf(C);return T>=0&&_.splice(T,1),_}function t(E,C){var _=E.slice();return _.indexOf(C)===-1&&_.push(C),_}function s(E){return E.split("-")}function e(E,C){return"".concat(E,"-").concat(C)}function l(E){return E&&E.type&&E.type.isTreeNode}function n(E,C){var _=[E],T=C[E];function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.forEach(function(I){var k=I.key,M=I.children;_.push(k),w(M)})}return w(T.children),_}function o(E,C){var _=E.clientY,T=C.selectHandle.getBoundingClientRect(),w=T.top,O=T.bottom,I=T.height,k=Math.max(I*u,a);return _<=w+k?-1:_>=O-k?1:0}function c(E,C){if(!E)return;var _=C.multiple;return _?E.slice():E.length?[E[0]]:E}var h=function(C){return C};function g(E,C){if(!E)return[];var _=C||{},T=_.processProps,w=T===void 0?h:T,O=Array.isArray(E)?E:[E];return O.map(function(I){var k=I.children,M=Object(x.a)(I,["children"]),U=g(k,C);return m.a.createElement(d.a,Object.assign({},w(M)),U)})}function v(E){if(!E)return null;var C;if(Array.isArray(E))C={checkedKeys:E,halfCheckedKeys:void 0};else if(Object(f.a)(E)==="object")C={checkedKeys:E.checked||void 0,halfCheckedKeys:E.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return C}function b(E,C){var _=new Set;function T(w){if(_.has(w))return;var O=C[w];if(!O)return;_.add(w);var I=O.parent,k=O.node;if(k.disabled)return;I&&T(I.key)}return(E||[]).forEach(function(w){T(w)}),Object(y.a)(_)}function S(E){var C={};return Object.keys(E).forEach(function(_){(_.startsWith("data-")||_.startsWith("aria-"))&&(C[_]=E[_])}),C}},wYyv:function(R,L,r){"use strict";var y=r("R5yR"),f=r("5wUe"),x=function(p,d,u){var a=d<0?p.length+d:d;if(a>=0&&a<p.length){var i=u<0?p.length+u:u,t=p.splice(d,1),s=f(t,1),e=s[0];p.splice(i,0,e)}},A=function(p,d,u){return p=y(p),x(p,d,u),p};R.exports=A,R.exports.mutate=x},wZgz:function(R,L,r){(function(y,f,x){R.exports=L=f(r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.BlockCipher,m=f.algo,p=[],d=[],u=[],a=[],i=[],t=[],s=[],e=[],l=[],n=[];(function(){for(var h=[],g=0;g<256;g++)g<128?h[g]=g<<1:h[g]=g<<1^283;for(var v=0,b=0,g=0;g<256;g++){var S=b^b<<1^b<<2^b<<3^b<<4;S=S>>>8^S&255^99,p[v]=S,d[S]=v;var E=h[v],C=h[E],_=h[C],T=h[S]*257^S*16843008;u[v]=T<<24|T>>>8,a[v]=T<<16|T>>>16,i[v]=T<<8|T>>>24,t[v]=T;var T=_*16843009^C*65537^E*257^v*16843008;s[S]=T<<24|T>>>8,e[S]=T<<16|T>>>16,l[S]=T<<8|T>>>24,n[S]=T,v?(v=E^h[h[h[_^E]]],b^=h[h[b]]):v=b=1}})();var o=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=A.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var v=this._keyPriorReset=this._key,b=v.words,S=v.sigBytes/4,E=this._nRounds=S+6,C=(E+1)*4,_=this._keySchedule=[],T=0;T<C;T++)T<S?_[T]=b[T]:(g=_[T-1],T%S?S>6&&T%S==4&&(g=p[g>>>24]<<24|p[g>>>16&255]<<16|p[g>>>8&255]<<8|p[g&255]):(g=g<<8|g>>>24,g=p[g>>>24]<<24|p[g>>>16&255]<<16|p[g>>>8&255]<<8|p[g&255],g^=o[T/S|0]<<24),_[T]=_[T-S]^g);for(var w=this._invKeySchedule=[],O=0;O<C;O++){var T=C-O;if(O%4)var g=_[T];else var g=_[T-4];O<4||T<=4?w[O]=g:w[O]=s[p[g>>>24]]^e[p[g>>>16&255]]^l[p[g>>>8&255]]^n[p[g&255]]}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,u,a,i,t,p)},decryptBlock:function(g,v){var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b,this._doCryptBlock(g,v,this._invKeySchedule,s,e,l,n,d);var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b},_doCryptBlock:function(g,v,b,S,E,C,_,T){for(var w=this._nRounds,O=g[v]^b[0],I=g[v+1]^b[1],k=g[v+2]^b[2],M=g[v+3]^b[3],U=4,P=1;P<w;P++){var X=S[O>>>24]^E[I>>>16&255]^C[k>>>8&255]^_[M&255]^b[U++],F=S[I>>>24]^E[k>>>16&255]^C[M>>>8&255]^_[O&255]^b[U++],j=S[k>>>24]^E[M>>>16&255]^C[O>>>8&255]^_[I&255]^b[U++],K=S[M>>>24]^E[O>>>16&255]^C[I>>>8&255]^_[k&255]^b[U++];O=X,I=F,k=j,M=K}var X=(T[O>>>24]<<24|T[I>>>16&255]<<16|T[k>>>8&255]<<8|T[M&255])^b[U++],F=(T[I>>>24]<<24|T[k>>>16&255]<<16|T[M>>>8&255]<<8|T[O&255])^b[U++],j=(T[k>>>24]<<24|T[M>>>16&255]<<16|T[O>>>8&255]<<8|T[I&255])^b[U++],K=(T[M>>>24]<<24|T[O>>>16&255]<<16|T[I>>>8&255]<<8|T[k&255])^b[U++];g[v]=X,g[v+1]=F,g[v+2]=j,g[v+3]=K},keySize:256/32});f.AES=A._createHelper(c)}(),y.AES})},wbyO:function(R,L,r){(function(y,f){R.exports=L=f(r("Ib8C"))})(this,function(y){return function(){var f=y,x=f.lib,A=x.WordArray,m=f.enc,p=m.Base64url={stringify:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.words,s=a.sigBytes,e=i?this._safe_map:this._map;a.clamp();for(var l=[],n=0;n<s;n+=3)for(var o=t[n>>>2]>>>24-n%4*8&255,c=t[n+1>>>2]>>>24-(n+1)%4*8&255,h=t[n+2>>>2]>>>24-(n+2)%4*8&255,g=o<<16|c<<8|h,v=0;v<4&&n+v*.75<s;v++)l.push(e.charAt(g>>>6*(3-v)&63));var b=e.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=a.length,s=i?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<s.length;l++)e[s.charCodeAt(l)]=l}var n=s.charAt(64);if(n){var o=a.indexOf(n);o!==-1&&(t=o)}return d(a,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(u,a,i){for(var t=[],s=0,e=0;e<a;e++)if(e%4){var l=i[u.charCodeAt(e-1)]<<e%4*2,n=i[u.charCodeAt(e)]>>>6-e%4*2,o=l|n;t[s>>>2]|=o<<24-s%4*8,s++}return A.create(t,s)}}(),y.enc.Base64url})},wgjA:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};L.default=y},whJP:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("lwsE"),p=r.n(m),d=r("W8MJ"),u=r.n(d),a=r("7W2i"),i=r.n(a),t=r("LQ03"),s=r.n(t),e=r("q1tI"),l=r.n(e),n=r("Y1PL"),o=r("BGR+"),c=r("TSYQ"),h=r.n(c),g=r("LlR5"),v=r("H84U"),b=r("mh/l"),S=function(E){i()(_,E);var C=s()(_);function _(T){var w;p()(this,_),w=C.call(this,T),w.focus=function(){w.resizableTextArea.textArea.focus()},w.saveTextArea=function(I){w.resizableTextArea=I==null?void 0:I.resizableTextArea},w.saveClearableInput=function(I){w.clearableInput=I},w.handleChange=function(I){w.setValue(I.target.value),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(b.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,k){return e.createElement(n.default,f()({},Object(o.default)(w.props,["allowClear","bordered"]),{className:h()(w.props.className,A()({},"".concat(I,"-borderless"),!k)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var k=I.getPrefixCls,M=I.direction,U=w.state.value,P=w.props,X=P.prefixCls,F=P.bordered,j=F===void 0?!0:F,K=k("input",X);return e.createElement(g.a,f()({},w.props,{prefixCls:K,direction:M,inputType:"text",value:Object(b.b)(U),element:w.renderTextArea(K,j),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:j}))};var O=typeof T.value=="undefined"?T.defaultValue:T.value;return w.state={value:O},w}return u()(_,[{key:"setValue",value:function(w,O){this.props.value===void 0&&this.setState({value:w},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(v.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),_}(e.Component);L.a=S},whVF:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=r("lNSK"),f=x(r("1q3G"));function x(u){return u&&u.__esModule?u:{default:u}}function A(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function m(u,a){for(var i=0;i<a.length;i++){var t=a[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(u,t.key,t)}}function p(u,a,i){return a&&m(u.prototype,a),i&&m(u,i),u}var d=function(){function u(){A(this,u),this.strm=new f.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,y.deflateInit)(this.strm,this.windowBits)}return p(u,[{key:"deflate",value:function(i){this.strm.input=i,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),s=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[s],l=s.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=(0,y.deflate)(this.strm,y.Z_FULL_FLUSH),t<0)throw new Error("zlib deflate failed");var n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=n.length,e.push(n)}while(this.strm.avail_in>0);for(var o=new Uint8Array(l),c=0,h=0;h<e.length;h++)o.set(e[h],c),c+=e[h].length;s=o}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,s}}]),u}();L.default=d},wr5s:function(R,L,r){var y=r("IwbS"),f=y.extendShape,x=f({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,m){var p=m.cx,d=m.cy,u=Math.max(m.r0||0,0),a=Math.max(m.r,0),i=(a-u)*.5,t=u+i,s=m.startAngle,e=m.endAngle,l=m.clockwise,n=Math.cos(s),o=Math.sin(s),c=Math.cos(e),h=Math.sin(e),g=l?e-s<Math.PI*2:s-e<Math.PI*2;g&&(A.moveTo(n*u+p,o*u+d),A.arc(n*t+p,o*t+d,i,-Math.PI+s,s,!l)),A.arc(p,d,a,s,e,!l),A.moveTo(c*a+p,h*a+d),A.arc(c*t+p,h*t+d,i,e-Math.PI*2,e-Math.PI,!l),u!==0&&(A.arc(p,d,u,e,s,l),A.moveTo(n*u+p,h*u+d)),A.closePath()}});R.exports=x},wt3j:function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("/IIm"),A=r("EMyp"),m=A.layoutCovers,p=y.extendComponentView({type:"brush",init:function(u,a){this.ecModel=u,this.api=a,this.model,(this._brushController=new x(a.getZr())).on("brush",f.bind(this._onBrush,this)).mount()},render:function(u){return this.model=u,d.apply(this,arguments)},updateTransform:function(u,a){return m(a),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(u,a){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(u,this.ecModel),(!a.isEnd||a.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:f.clone(u),$from:i}),a.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:f.clone(u),$from:i})}});function d(u,a,i,t){(!t||t.$from!==u.id)&&this._brushController.setPanels(u.brushTargetManager.makePanelOpts(i)).enableBrush(u.brushOption).updateCovers(u.areas.slice())}R.exports=p},wy8a:function(R,L,r){var y=r("KxBF");function f(x,A,m){var p=x.length;return m=m===void 0?p:m,!A&&m>=p?x:y(x,A,m)}R.exports=f},x3X8:function(R,L,r){var y=r("KxfA"),f=y.retrieveRawValue;function x(A,m){var p=A.mapDimension("defaultedLabel",!0),d=p.length;if(d===1)return f(A,m,p[0]);if(d){for(var u=[],a=0;a<p.length;a++){var i=f(A,m,p[a]);u.push(i)}return u.join(" ")}}L.getDefaultLabel=x},x54q:function(R,L,r){},x6Kt:function(R,L,r){var y=r("y+Vt"),f=r("VpOo"),x=r("nPnh"),A=x.subPixelOptimizeRect,m={},p=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(u,a){var i,t,s,e;this.subPixelOptimize?(A(m,a,this.style),i=m.x,t=m.y,s=m.width,e=m.height,m.r=a.r,a=m):(i=a.x,t=a.y,s=a.width,e=a.height),a.r?f.buildPath(u,a):u.rect(i,t,s,e),u.closePath();return}});R.exports=p},xGfz:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{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:"plus-square",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="PlusSquareOutlined";var d=L.a=f.forwardRef(p)},xKMd:function(R,L){function r(f,x){this.getAllNames=function(){var A=x();return A.mapArray(A.getName)},this.containName=function(A){var m=x();return m.indexOfName(A)>=0},this.indexOfName=function(A){var m=f();return m.indexOfName(A)},this.getItemVisual=function(A,m){var p=f();return p.getItemVisual(A,m)}}var y=r;R.exports=y},xO64:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("8K/p"));function f(n){return n&&n.__esModule?n:{default:n}}function x(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(c){return typeof c}:x=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},x(n)}function A(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")}function m(n,o){for(var c=0;c<o.length;c++){var h=o[c];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(n,h.key,h)}}function p(n,o,c){return o&&m(n.prototype,o),c&&m(n,c),n}function d(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),o&&u(n,o)}function u(n,o){return u=Object.setPrototypeOf||function(h,g){return h.__proto__=g,h},u(n,o)}function a(n){var o=s();return function(){var h=e(n),g;if(o){var v=e(this).constructor;g=Reflect.construct(h,arguments,v)}else g=h.apply(this,arguments);return i(this,g)}}function i(n,o){return o&&(x(o)==="object"||typeof o=="function")?o:t(n)}function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function s(){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(n){return!1}}function e(n){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},e(n)}var l=function(n){d(c,n);var o=a(c);function c(){return A(this,c),o.apply(this,arguments)}return p(c,[{key:"_pngRect",value:function(g,v,b,S,E,C,_){var T=this._readData(E);return T===null?!1:(C.imageRect(g,v,b,S,"image/png",T),!0)}},{key:"_basicRect",value:function(g,v,b,S,E,C,_,T){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);L.default=l},xOOu:function(R,L,r){(function(y,f,x){var A,A;/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/!function(m){R.exports=m()}(function(){return function m(p,d,u){function a(s,e){if(!d[s]){if(!p[s]){var l=typeof A=="function"&&A;if(!e&&l)return A(s,!0);if(i)return i(s,!0);var n=new Error("Cannot find module '"+s+"'");throw n.code="MODULE_NOT_FOUND",n}var o=d[s]={exports:{}};p[s][0].call(o.exports,function(c){var h=p[s][1][c];return a(h||c)},o,o.exports,m,p,d,u)}return d[s].exports}for(var i=typeof A=="function"&&A,t=0;t<u.length;t++)a(u[t]);return a}({1:[function(m,p,d){"use strict";var u=m("./utils"),a=m("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var s,e,l,n,o,c,h,g=[],v=0,b=t.length,S=b,E=u.getTypeOf(t)!=="string";v<t.length;)S=b-v,l=E?(s=t[v++],e=v<b?t[v++]:0,v<b?t[v++]:0):(s=t.charCodeAt(v++),e=v<b?t.charCodeAt(v++):0,v<b?t.charCodeAt(v++):0),n=s>>2,o=(3&s)<<4|e>>4,c=1<S?(15&e)<<2|l>>6:64,h=2<S?63&l:64,g.push(i.charAt(n)+i.charAt(o)+i.charAt(c)+i.charAt(h));return g.join("")},d.decode=function(t){var s,e,l,n,o,c,h=0,g=0,v="data:";if(t.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var b,S=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&S--,t.charAt(t.length-2)===i.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=a.uint8array?new Uint8Array(0|S):new Array(0|S);h<t.length;)s=i.indexOf(t.charAt(h++))<<2|(n=i.indexOf(t.charAt(h++)))>>4,e=(15&n)<<4|(o=i.indexOf(t.charAt(h++)))>>2,l=(3&o)<<6|(c=i.indexOf(t.charAt(h++))),b[g++]=s,o!==64&&(b[g++]=e),c!==64&&(b[g++]=l);return b}},{"./support":30,"./utils":32}],2:[function(m,p,d){"use strict";var u=m("./external"),a=m("./stream/DataWorker"),i=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function s(e,l,n,o,c){this.compressedSize=e,this.uncompressedSize=l,this.crc32=n,this.compression=o,this.compressedContent=c}s.prototype={getContentWorker:function(){var l=new a(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new t("data_length")),n=this;return l.on("end",function(){if(this.streamInfo.data_length!==n.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,l,n){return e.pipe(new i).pipe(new t("uncompressedSize")).pipe(l.compressWorker(n)).pipe(new t("compressedSize")).withStreamInfo("compression",l)},p.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,p,d){"use strict";var u=m("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},d.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,p,d){"use strict";var u=m("./utils"),a=function(){for(var i,t=[],s=0;s<256;s++){i=s;for(var e=0;e<8;e++)i=1&i?3988292384^i>>>1:i>>>1;t[s]=i}return t}();p.exports=function(i,t){return i!==void 0&&i.length?u.getTypeOf(i)!=="string"?function(s,e,l,n){var o=a,c=n+l;s^=-1;for(var h=n;h<c;h++)s=s>>>8^o[255&(s^e[h])];return-1^s}(0|t,i,i.length,0):function(s,e,l,n){var o=a,c=n+l;s^=-1;for(var h=n;h<c;h++)s=s>>>8^o[255&(s^e.charCodeAt(h))];return-1^s}(0|t,i,i.length,0):0}},{"./utils":32}],5:[function(m,p,d){"use strict";d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(m,p,d){"use strict";var u=null;u=typeof Promise!="undefined"?Promise:m("lie"),p.exports={Promise:u}},{lie:37}],7:[function(m,p,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=m("pako"),i=m("./utils"),t=m("./stream/GenericWorker"),s=u?"uint8array":"array";function e(l,n){t.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=n,this.meta={}}d.magic="\b\0",i.inherits(e,t),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(s,l.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(n){l.push({data:n,meta:l.meta})}},d.compressWorker=function(l){return new e("Deflate",l)},d.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,p,d){"use strict";function u(o,c){var h,g="";for(h=0;h<c;h++)g+=String.fromCharCode(255&o),o>>>=8;return g}function a(o,c,h,g,v,b){var S,E,C=o.file,_=o.compression,T=b!==s.utf8encode,w=i.transformTo("string",b(C.name)),O=i.transformTo("string",s.utf8encode(C.name)),I=C.comment,k=i.transformTo("string",b(I)),M=i.transformTo("string",s.utf8encode(I)),U=O.length!==C.name.length,P=M.length!==I.length,X="",F="",j="",K=C.dir,z=C.date,V={crc32:0,compressedSize:0,uncompressedSize:0};c&&!h||(V.crc32=o.crc32,V.compressedSize=o.compressedSize,V.uncompressedSize=o.uncompressedSize);var Q=0;c&&(Q|=8),T||!U&&!P||(Q|=2048);var G=0,ee=0;K&&(G|=16),v==="UNIX"?(ee=798,G|=function(ye,he){var ke=ye;return ye||(ke=he?16893:33204),(65535&ke)<<16}(C.unixPermissions,K)):(ee=20,G|=function(ye){return 63&(ye||0)}(C.dosPermissions)),S=z.getUTCHours(),S<<=6,S|=z.getUTCMinutes(),S<<=5,S|=z.getUTCSeconds()/2,E=z.getUTCFullYear()-1980,E<<=4,E|=z.getUTCMonth()+1,E<<=5,E|=z.getUTCDate(),U&&(F=u(1,1)+u(e(w),4)+O,X+="up"+u(F.length,2)+F),P&&(j=u(1,1)+u(e(k),4)+M,X+="uc"+u(j.length,2)+j);var se="";return se+=`
\0`,se+=u(Q,2),se+=_.magic,se+=u(S,2),se+=u(E,2),se+=u(V.crc32,4),se+=u(V.compressedSize,4),se+=u(V.uncompressedSize,4),se+=u(w.length,2),se+=u(X.length,2),{fileRecord:l.LOCAL_FILE_HEADER+se+w+X,dirRecord:l.CENTRAL_FILE_HEADER+u(ee,2)+se+u(k.length,2)+"\0\0\0\0"+u(G,4)+u(g,4)+w+X+k}}var i=m("../utils"),t=m("../stream/GenericWorker"),s=m("../utf8"),e=m("../crc32"),l=m("../signature");function n(o,c,h,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=o,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(n,t),n.prototype.push=function(o){var c=o.meta.percent||0,h=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(o):(this.bytesWritten+=o.data.length,t.prototype.push.call(this,{data:o.data,meta:{currentFile:this.currentFile,percent:h?(c+100*(h-g-1))/h:100}}))},n.prototype.openedSource=function(o){this.currentSourceOffset=this.bytesWritten,this.currentFile=o.file.name;var c=this.streamFiles&&!o.file.dir;if(c){var h=a(o,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(o){this.accumulate=!1;var c=this.streamFiles&&!o.file.dir,h=a(o,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),c)this.push({data:function(g){return l.DATA_DESCRIPTOR+u(g.crc32,4)+u(g.compressedSize,4)+u(g.uncompressedSize,4)}(o),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var o=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var h=this.bytesWritten-o,g=function(v,b,S,E,C){var _=i.transformTo("string",C(E));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(v,2)+u(v,2)+u(b,4)+u(S,4)+u(_.length,2)+_}(this.dirRecords.length,h,o,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(o){this._sources.push(o);var c=this;return o.on("data",function(h){c.processChunk(h)}),o.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),o.on("error",function(h){c.error(h)}),this},n.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(o){var c=this._sources;if(!t.prototype.error.call(this,o))return!1;for(var h=0;h<c.length;h++)try{c[h].error(o)}catch(g){}return!0},n.prototype.lock=function(){t.prototype.lock.call(this);for(var o=this._sources,c=0;c<o.length;c++)o[c].lock()},p.exports=n},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,p,d){"use strict";var u=m("../compressions"),a=m("./ZipFileWorker");d.generateWorker=function(i,t,s){var e=new a(t.streamFiles,s,t.platform,t.encodeFileName),l=0;try{i.forEach(function(n,o){l++;var c=function(b,S){var E=b||S,C=u[E];if(!C)throw new Error(E+" is not a valid compression method !");return C}(o.options.compression,t.compression),h=o.options.compressionOptions||t.compressionOptions||{},g=o.dir,v=o.date;o._compressWorker(c,h).withStreamInfo("file",{name:n,dir:g,date:v,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(n){e.error(n)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,p,d){"use strict";function u(){if(!(this instanceof u))return new u;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new u;for(var i in this)typeof this[i]!="function"&&(a[i]=this[i]);return a}}(u.prototype=m("./object")).loadAsync=m("./load"),u.support=m("./support"),u.defaults=m("./defaults"),u.version="3.10.1",u.loadAsync=function(a,i){return new u().loadAsync(a,i)},u.external=m("./external"),p.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,p,d){"use strict";var u=m("./utils"),a=m("./external"),i=m("./utf8"),t=m("./zipEntries"),s=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function l(n){return new a.Promise(function(o,c){var h=n.decompressed.getContentWorker().pipe(new s);h.on("error",function(g){c(g)}).on("end",function(){h.streamInfo.crc32!==n.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):o()}).resume()})}p.exports=function(n,o){var c=this;return o=u.extend(o||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),e.isNode&&e.isStream(n)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",n,!0,o.optimizedBinaryString,o.base64).then(function(h){var g=new t(o);return g.load(h),g}).then(function(h){var g=[a.Promise.resolve(h)],v=h.files;if(o.checkCRC32)for(var b=0;b<v.length;b++)g.push(l(v[b]));return a.Promise.all(g)}).then(function(h){for(var g=h.shift(),v=g.files,b=0;b<v.length;b++){var S=v[b],E=S.fileNameStr,C=u.resolve(S.fileNameStr);c.file(C,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:o.createFolders}),S.dir||(c.file(C).unsafeOriginalName=E)}return g.zipComment.length&&(c.comment=g.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,p,d){"use strict";var u=m("../utils"),a=m("../stream/GenericWorker");function i(t,s){a.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(s)}u.inherits(i,a),i.prototype._bindStream=function(t){var s=this;(this._stream=t).pause(),t.on("data",function(e){s.push({data:e,meta:{percent:0}})}).on("error",function(e){s.isPaused?this.generatedError=e:s.error(e)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,p,d){"use strict";var u=m("readable-stream").Readable;function a(i,t,s){u.call(this,t),this._helper=i;var e=this;i.on("data",function(l,n){e.push(l)||e._helper.pause(),s&&s(n)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}m("../utils").inherits(a,u),a.prototype._read=function(){this._helper.resume()},p.exports=a},{"../utils":32,"readable-stream":16}],14:[function(m,p,d){"use strict";p.exports={isNode:typeof y!="undefined",newBufferFrom:function(a,i){if(y.from&&y.from!==Uint8Array.from)return y.from(a,i);if(typeof a=="number")throw new Error('The "data" argument must not be a number');return new y(a,i)},allocBuffer:function(a){if(y.alloc)return y.alloc(a);var i=new y(a);return i.fill(0),i},isBuffer:function(a){return y.isBuffer(a)},isStream:function(a){return a&&typeof a.on=="function"&&typeof a.pause=="function"&&typeof a.resume=="function"}}},{}],15:[function(m,p,d){"use strict";function u(C,_,T){var w,O=i.getTypeOf(_),I=i.extend(T||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=v(C)),I.createFolders&&(w=g(C))&&b.call(this,w,!0);var k=O==="string"&&I.binary===!1&&I.base64===!1;T&&T.binary!==void 0||(I.binary=!k),(_ instanceof l&&_.uncompressedSize===0||I.dir||!_||_.length===0)&&(I.base64=!1,I.binary=!0,_="",I.compression="STORE",O="string");var M=null;M=_ instanceof l||_ instanceof t?_:c.isNode&&c.isStream(_)?new h(C,_):i.prepareContent(C,_,I.binary,I.optimizedBinaryString,I.base64);var U=new n(C,M,I);this.files[C]=U}var a=m("./utf8"),i=m("./utils"),t=m("./stream/GenericWorker"),s=m("./stream/StreamHelper"),e=m("./defaults"),l=m("./compressedObject"),n=m("./zipObject"),o=m("./generate"),c=m("./nodejsUtils"),h=m("./nodejs/NodejsStreamInputAdapter"),g=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var T=_.lastIndexOf("/");return 0<T?_.substring(0,T):""},v=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},b=function(_,T){return T=T!==void 0?T:e.createFolders,_=v(_),this.files[_]||u.call(this,_,null,{dir:!0,createFolders:T}),this.files[_]};function S(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var E={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var T,w,O;for(T in this.files)O=this.files[T],(w=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&_(w,O)},filter:function(_){var T=[];return this.forEach(function(w,O){_(w,O)&&T.push(O)}),T},file:function(_,T,w){if(arguments.length!==1)return _=this.root+_,u.call(this,_,T,w),this;if(S(_)){var O=_;return this.filter(function(k,M){return!M.dir&&O.test(k)})}var I=this.files[this.root+_];return I&&!I.dir?I:null},folder:function(_){if(!_)return this;if(S(_))return this.filter(function(I,k){return k.dir&&_.test(I)});var T=this.root+_,w=b.call(this,T),O=this.clone();return O.root=w.name,O},remove:function(_){_=this.root+_;var T=this.files[_];if(T||(_.slice(-1)!=="/"&&(_+="/"),T=this.files[_]),T&&!T.dir)delete this.files[_];else for(var w=this.filter(function(I,k){return k.name.slice(0,_.length)===_}),O=0;O<w.length;O++)delete this.files[w[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var T,w={};try{if((w=i.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var O=w.comment||this.comment||"";T=o.generateWorker(this,w,O)}catch(I){(T=new t("error")).error(I)}return new s(T,w.type||"string",w.mimeType)},generateAsync:function(_,T){return this.generateInternalStream(_).accumulate(T)},generateNodeStream:function(_,T){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(T)}};p.exports=E},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(m,p,d){"use strict";p.exports=m("stream")},{stream:void 0}],17:[function(m,p,d){"use strict";var u=m("./DataReader");function a(i){u.call(this,i);for(var t=0;t<this.data.length;t++)i[t]=255&i[t]}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data[this.zero+i]},a.prototype.lastIndexOfSignature=function(i){for(var t=i.charCodeAt(0),s=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),n=this.length-4;0<=n;--n)if(this.data[n]===t&&this.data[n+1]===s&&this.data[n+2]===e&&this.data[n+3]===l)return n-this.zero;return-1},a.prototype.readAndCheckSignature=function(i){var t=i.charCodeAt(0),s=i.charCodeAt(1),e=i.charCodeAt(2),l=i.charCodeAt(3),n=this.readData(4);return t===n[0]&&s===n[1]&&e===n[2]&&l===n[3]},a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=a},{"../utils":32,"./DataReader":18}],18:[function(m,p,d){"use strict";var u=m("../utils");function a(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var s,e=0;for(this.checkOffset(t),s=this.index+t-1;s>=this.index;s--)e=(e<<8)+this.byteAt(s);return this.index+=t,e},readString:function(t){return u.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},p.exports=a},{"../utils":32}],19:[function(m,p,d){"use strict";var u=m("./Uint8ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,p,d){"use strict";var u=m("./DataReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var t=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=a},{"../utils":32,"./DataReader":18}],21:[function(m,p,d){"use strict";var u=m("./ArrayReader");function a(i){u.call(this,i)}m("../utils").inherits(a,u),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,t},p.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(m,p,d){"use strict";var u=m("../utils"),a=m("../support"),i=m("./ArrayReader"),t=m("./StringReader"),s=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");p.exports=function(l){var n=u.getTypeOf(l);return u.checkSupport(n),n!=="string"||a.uint8array?n==="nodebuffer"?new s(l):a.uint8array?new e(u.transformTo("uint8array",l)):new i(u.transformTo("array",l)):new t(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,p,d){"use strict";d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,p,d){"use strict";var u=m("./GenericWorker"),a=m("../utils");function i(t){u.call(this,"ConvertWorker to "+t),this.destType=t}a.inherits(i,u),i.prototype.processChunk=function(t){this.push({data:a.transformTo(this.destType,t.data),meta:t.meta})},p.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(m,p,d){"use strict";var u=m("./GenericWorker"),a=m("../crc32");function i(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(i,u),i.prototype.processChunk=function(t){this.streamInfo.crc32=a(t.data,this.streamInfo.crc32||0),this.push(t)},p.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,p,d){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}u.inherits(i,a),i.prototype.processChunk=function(t){if(t){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+t.data.length}a.prototype.processChunk.call(this,t)},p.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(m,p,d){"use strict";var u=m("../utils"),a=m("./GenericWorker");function i(t){a.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){s.dataIsReady=!0,s.data=e,s.max=e&&e.length||0,s.type=u.getTypeOf(e),s.isPaused||s._tickAndRepeat()},function(e){s.error(e)})}u.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,s);break;case"uint8array":t=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":t=this.data.slice(this.index,s)}return this.index=s,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(m,p,d){"use strict";function u(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,t){return this._listeners[i].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,t){if(this._listeners[i])for(var s=0;s<this._listeners[i].length;s++)this._listeners[i][s].call(this,t)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var t=this;return i.on("data",function(s){t.processChunk(s)}),i.on("end",function(){t.end()}),i.on("error",function(s){t.error(s)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,t){return this.extraStreamInfo[i]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},p.exports=u},{}],29:[function(m,p,d){"use strict";var u=m("../utils"),a=m("./ConvertWorker"),i=m("./GenericWorker"),t=m("../base64"),s=m("../support"),e=m("../external"),l=null;if(s.nodestream)try{l=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function n(c,h){return new e.Promise(function(g,v){var b=[],S=c._internalType,E=c._outputType,C=c._mimeType;c.on("data",function(_,T){b.push(_),h&&h(T)}).on("error",function(_){b=[],v(_)}).on("end",function(){try{var _=function(T,w,O){switch(T){case"blob":return u.newBlob(u.transformTo("arraybuffer",w),O);case"base64":return t.encode(w);default:return u.transformTo(T,w)}}(E,function(T,w){var O,I=0,k=null,M=0;for(O=0;O<w.length;O++)M+=w[O].length;switch(T){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(k=new Uint8Array(M),O=0;O<w.length;O++)k.set(w[O],I),I+=w[O].length;return k;case"nodebuffer":return y.concat(w);default:throw new Error("concat : unsupported type '"+T+"'")}}(S,b),C);g(_)}catch(T){v(T)}b=[]}).resume()})}function o(c,h,g){var v=h;switch(h){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=h,this._mimeType=g,u.checkSupport(v),this._worker=c.pipe(new a(v)),c.lock()}catch(b){this._worker=new i("error"),this._worker.error(b)}}o.prototype={accumulate:function(h){return n(this,h)},on:function(h,g){var v=this;return h==="data"?this._worker.on(h,function(b){g.call(v,b.data,b.meta)}):this._worker.on(h,function(){u.delay(g,arguments,v)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},h)}},p.exports=o},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,p,d){"use strict";if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",d.nodebuffer=typeof y!="undefined",d.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")d.blob=!1;else{var u=new ArrayBuffer(0);try{d.blob=new Blob([u],{type:"application/zip"}).size===0}catch(i){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(u),d.blob=a.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!m("readable-stream").Readable}catch(i){d.nodestream=!1}},{"readable-stream":16}],31:[function(m,p,d){"use strict";for(var u=m("./utils"),a=m("./support"),i=m("./nodejsUtils"),t=m("./stream/GenericWorker"),s=new Array(256),e=0;e<256;e++)s[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;s[254]=s[254]=1;function l(){t.call(this,"utf-8 decode"),this.leftOver=null}function n(){t.call(this,"utf-8 encode")}d.utf8encode=function(o){return a.nodebuffer?i.newBufferFrom(o,"utf-8"):function(c){var h,g,v,b,S,E=c.length,C=0;for(b=0;b<E;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),C+=g<128?1:g<2048?2:g<65536?3:4;for(h=a.uint8array?new Uint8Array(C):new Array(C),b=S=0;S<C;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<E&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),g<128?h[S++]=g:(g<2048?h[S++]=192|g>>>6:(g<65536?h[S++]=224|g>>>12:(h[S++]=240|g>>>18,h[S++]=128|g>>>12&63),h[S++]=128|g>>>6&63),h[S++]=128|63&g);return h}(o)},d.utf8decode=function(o){return a.nodebuffer?u.transformTo("nodebuffer",o).toString("utf-8"):function(c){var h,g,v,b,S=c.length,E=new Array(2*S);for(h=g=0;h<S;)if((v=c[h++])<128)E[g++]=v;else if(4<(b=s[v]))E[g++]=65533,h+=b-1;else{for(v&=b===2?31:b===3?15:7;1<b&&h<S;)v=v<<6|63&c[h++],b--;1<b?E[g++]=65533:v<65536?E[g++]=v:(v-=65536,E[g++]=55296|v>>10&1023,E[g++]=56320|1023&v)}return E.length!==g&&(E.subarray?E=E.subarray(0,g):E.length=g),u.applyFromCharCode(E)}(o=u.transformTo(a.uint8array?"uint8array":"array",o))},u.inherits(l,t),l.prototype.processChunk=function(o){var c=u.transformTo(a.uint8array?"uint8array":"array",o.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var h=c;(c=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),c.set(h,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=function(b,S){var E;for((S=S||b.length)>b.length&&(S=b.length),E=S-1;0<=E&&(192&b[E])==128;)E--;return E<0||E===0?S:E+s[b[E]]>S?E:S}(c),v=c;g!==c.length&&(a.uint8array?(v=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(v=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:d.utf8decode(v),meta:o.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=l,u.inherits(n,t),n.prototype.processChunk=function(o){this.push({data:d.utf8encode(o.data),meta:o.meta})},d.Utf8EncodeWorker=n},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,p,d){"use strict";var u=m("./support"),a=m("./base64"),i=m("./nodejsUtils"),t=m("./external");function s(h){return h}function e(h,g){for(var v=0;v<h.length;++v)g[v]=255&h.charCodeAt(v);return g}m("setimmediate"),d.newBlob=function(h,g){d.checkSupport("blob");try{return new Blob([h],{type:g})}catch(b){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(h),v.getBlob(g)}catch(S){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(g,v,b){var S=[],E=0,C=g.length;if(C<=b)return String.fromCharCode.apply(null,g);for(;E<C;)v==="array"||v==="nodebuffer"?S.push(String.fromCharCode.apply(null,g.slice(E,Math.min(E+b,C)))):S.push(String.fromCharCode.apply(null,g.subarray(E,Math.min(E+b,C)))),E+=b;return S.join("")},stringifyByChar:function(g){for(var v="",b=0;b<g.length;b++)v+=String.fromCharCode(g[b]);return v},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch(h){return!1}}()}};function n(h){var g=65536,v=d.getTypeOf(h),b=!0;if(v==="uint8array"?b=l.applyCanBeUsed.uint8array:v==="nodebuffer"&&(b=l.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return l.stringifyByChunk(h,v,g)}catch(S){g=Math.floor(g/2)}return l.stringifyByChar(h)}function o(h,g){for(var v=0;v<h.length;v++)g[v]=h[v];return g}d.applyFromCharCode=n;var c={};c.string={string:s,array:function(g){return e(g,new Array(g.length))},arraybuffer:function(g){return c.string.uint8array(g).buffer},uint8array:function(g){return e(g,new Uint8Array(g.length))},nodebuffer:function(g){return e(g,i.allocBuffer(g.length))}},c.array={string:n,array:s,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(g)}},c.arraybuffer={string:function(g){return n(new Uint8Array(g))},array:function(g){return o(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:s,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return i.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:n,array:function(g){return o(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:s,nodebuffer:function(g){return i.newBufferFrom(g)}},c.nodebuffer={string:n,array:function(g){return o(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return o(g,new Uint8Array(g.length))},nodebuffer:s},d.transformTo=function(h,g){if(g=g||"",!h)return g;d.checkSupport(h);var v=d.getTypeOf(g);return c[v][h](g)},d.resolve=function(h){for(var g=h.split("/"),v=[],b=0;b<g.length;b++){var S=g[b];S==="."||S===""&&b!==0&&b!==g.length-1||(S===".."?v.pop():v.push(S))}return v.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":u.nodebuffer&&i.isBuffer(h)?"nodebuffer":u.uint8array&&h instanceof Uint8Array?"uint8array":u.arraybuffer&&h instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(h){if(!u[h.toLowerCase()])throw new Error(h+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(h){var g,v,b="";for(v=0;v<(h||"").length;v++)b+="\\x"+((g=h.charCodeAt(v))<16?"0":"")+g.toString(16).toUpperCase();return b},d.delay=function(h,g,v){setImmediate(function(){h.apply(v||null,g||[])})},d.inherits=function(h,g){function v(){}v.prototype=g.prototype,h.prototype=new v},d.extend=function(){var h,g,v={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&v[g]===void 0&&(v[g]=arguments[h][g]);return v},d.prepareContent=function(h,g,v,b,S){return t.Promise.resolve(g).then(function(E){return u.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(C,_){var T=new FileReader;T.onload=function(w){C(w.target.result)},T.onerror=function(w){_(w.target.error)},T.readAsArrayBuffer(E)}):E}).then(function(E){var C=d.getTypeOf(E);return C?(C==="arraybuffer"?E=d.transformTo("uint8array",E):C==="string"&&(S?E=a.decode(E):v&&b!==!0&&(E=function(_){return e(_,u.uint8array?new Uint8Array(_.length):new Array(_.length))}(E))),E):t.Promise.reject(new Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(m,p,d){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./signature"),t=m("./zipEntry"),s=m("./support");function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(n){if(!this.reader.readAndCheckSignature(n)){this.reader.index-=4;var o=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(o)+", expected "+a.pretty(n)+")")}},isSignature:function(n,o){var c=this.reader.index;this.reader.setIndex(n);var h=this.reader.readString(4)===o;return this.reader.setIndex(c),h},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var n=this.reader.readData(this.zipCommentLength),o=s.uint8array?"uint8array":"array",c=a.transformTo(o,n);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var n,o,c,h=this.zip64EndOfCentralSize-44;0<h;)n=this.reader.readInt(2),o=this.reader.readInt(4),c=this.reader.readData(o),this.zip64ExtensibleData[n]={id:n,length:o,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var n,o;for(n=0;n<this.files.length;n++)o=this.files[n],this.reader.setIndex(o.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),o.readLocalPart(this.reader),o.handleUTF8(),o.processAttributes()},readCentralDir:function(){var n;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(n=new t({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(n);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var n=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(n<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(n);var o=n;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(n=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(n),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var h=o-c;if(0<h)this.isSignature(o,i.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(n){this.reader=u(n)},load:function(n){this.prepareReader(n),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,p,d){"use strict";var u=m("./reader/readerFor"),a=m("./utils"),i=m("./compressedObject"),t=m("./crc32"),s=m("./utf8"),e=m("./compressions"),l=m("./support");function n(o,c){this.options=o,this.loadOptions=c}n.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var h,g;if(c.skip(22),this.fileNameLength=c.readInt(2),g=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((h=function(v){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===v)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,h,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var h=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(h),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=u(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var h,g,v,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),g=c.readInt(2),v=c.readData(g),this.extraFields[h]={id:h,length:g,value:v};c.setIndex(b)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=a.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var h=u(c.value);return h.readInt(1)!==1||t(this.fileName)!==h.readInt(4)?null:s.utf8decode(h.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var h=u(c.value);return h.readInt(1)!==1||t(this.fileComment)!==h.readInt(4)?null:s.utf8decode(h.readData(c.length-5))}return null}},p.exports=n},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,p,d){"use strict";function u(c,h,g){this.name=c,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=h,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var a=m("./stream/StreamHelper"),i=m("./stream/DataWorker"),t=m("./utf8"),s=m("./compressedObject"),e=m("./stream/GenericWorker");u.prototype={internalStream:function(h){var g=null,v="string";try{if(!h)throw new Error("No output type specified.");var b=(v=h.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var S=!this._dataBinary;S&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!S&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(E){(g=new e("error")).error(E)}return new a(g,v,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof s&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new t.Utf8EncodeWorker)),s.createWorkerFrom(v,h,g)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof e?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],n=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},o=0;o<l.length;o++)u.prototype[l[o]]=n;p.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,p,d){(function(u){"use strict";var a,i,t=u.MutationObserver||u.WebKitMutationObserver;if(t){var s=0,e=new t(c),l=u.document.createTextNode("");e.observe(l,{characterData:!0}),a=function(){l.data=s=++s%2}}else if(u.setImmediate||u.MessageChannel===void 0)a="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var h=u.document.createElement("script");h.onreadystatechange=function(){c(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},u.document.documentElement.appendChild(h)}:function(){setTimeout(c,0)};else{var n=new u.MessageChannel;n.port1.onmessage=c,a=function(){n.port2.postMessage(0)}}var o=[];function c(){var h,g;i=!0;for(var v=o.length;v;){for(g=o,o=[],h=-1;++h<v;)g[h]();v=o.length}i=!1}p.exports=function(h){o.push(h)!==1||i||a()}}).call(this,typeof f!="undefined"?f:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,p,d){"use strict";var u=m("immediate");function a(){}var i={},t=["REJECTED"],s=["FULFILLED"],e=["PENDING"];function l(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,v!==a&&h(this,v)}function n(v,b,S){this.promise=v,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function o(v,b,S){u(function(){var E;try{E=b(S)}catch(C){return i.reject(v,C)}E===v?i.reject(v,new TypeError("Cannot resolve promise with itself")):i.resolve(v,E)})}function c(v){var b=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof b=="function")return function(){b.apply(v,arguments)}}function h(v,b){var S=!1;function E(T){S||(S=!0,i.reject(v,T))}function C(T){S||(S=!0,i.resolve(v,T))}var _=g(function(){b(C,E)});_.status==="error"&&E(_.value)}function g(v,b){var S={};try{S.value=v(b),S.status="success"}catch(E){S.status="error",S.value=E}return S}(p.exports=l).prototype.finally=function(v){if(typeof v!="function")return this;var b=this.constructor;return this.then(function(S){return b.resolve(v()).then(function(){return S})},function(S){return b.resolve(v()).then(function(){throw S})})},l.prototype.catch=function(v){return this.then(null,v)},l.prototype.then=function(v,b){if(typeof v!="function"&&this.state===s||typeof b!="function"&&this.state===t)return this;var S=new this.constructor(a);return this.state!==e?o(S,this.state===s?v:b,this.outcome):this.queue.push(new n(S,v,b)),S},n.prototype.callFulfilled=function(v){i.resolve(this.promise,v)},n.prototype.otherCallFulfilled=function(v){o(this.promise,this.onFulfilled,v)},n.prototype.callRejected=function(v){i.reject(this.promise,v)},n.prototype.otherCallRejected=function(v){o(this.promise,this.onRejected,v)},i.resolve=function(v,b){var S=g(c,b);if(S.status==="error")return i.reject(v,S.value);var E=S.value;if(E)h(v,E);else{v.state=s,v.outcome=b;for(var C=-1,_=v.queue.length;++C<_;)v.queue[C].callFulfilled(b)}return v},i.reject=function(v,b){v.state=t,v.outcome=b;for(var S=-1,E=v.queue.length;++S<E;)v.queue[S].callRejected(b);return v},l.resolve=function(v){return v instanceof this?v:i.resolve(new this(a),v)},l.reject=function(v){var b=new this(a);return i.reject(b,v)},l.all=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=new Array(S),_=0,T=-1,w=new this(a);++T<S;)O(v[T],T);return w;function O(I,k){b.resolve(I).then(function(M){C[k]=M,++_!==S||E||(E=!0,i.resolve(w,C))},function(M){E||(E=!0,i.reject(w,M))})}},l.race=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=v.length,E=!1;if(!S)return this.resolve([]);for(var C=-1,_=new this(a);++C<S;)T=v[C],b.resolve(T).then(function(w){E||(E=!0,i.resolve(_,w))},function(w){E||(E=!0,i.reject(_,w))});var T;return _}},{immediate:36}],38:[function(m,p,d){"use strict";var u={};(0,m("./lib/utils/common").assign)(u,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),p.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,p,d){"use strict";var u=m("./zlib/deflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/messages"),s=m("./zlib/zstream"),e=Object.prototype.toString,l=0,n=-1,o=0,c=8;function h(v){if(!(this instanceof h))return new h(v);this.options=a.assign({level:n,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:o,to:""},v||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var S=u.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(S!==l)throw new Error(t[S]);if(b.header&&u.deflateSetHeader(this.strm,b.header),b.dictionary){var E;if(E=typeof b.dictionary=="string"?i.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(S=u.deflateSetDictionary(this.strm,E))!==l)throw new Error(t[S]);this._dict_set=!0}}function g(v,b){var S=new h(b);if(S.push(v,!0),S.err)throw S.msg||t[S.err];return S.result}h.prototype.push=function(v,b){var S,E,C=this.strm,_=this.options.chunkSize;if(this.ended)return!1;E=b===~~b?b:b===!0?4:0,typeof v=="string"?C.input=i.string2buf(v):e.call(v)==="[object ArrayBuffer]"?C.input=new Uint8Array(v):C.input=v,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new a.Buf8(_),C.next_out=0,C.avail_out=_),(S=u.deflate(C,E))!==1&&S!==l)return this.onEnd(S),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||E!==4&&E!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(a.shrinkBuf(C.output,C.next_out))):this.onData(a.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&S!==1);return E===4?(S=u.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===l):E!==2||(this.onEnd(l),!(C.avail_out=0))},h.prototype.onData=function(v){this.chunks.push(v)},h.prototype.onEnd=function(v){v===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},d.Deflate=h,d.deflate=g,d.deflateRaw=function(v,b){return(b=b||{}).raw=!0,g(v,b)},d.gzip=function(v,b){return(b=b||{}).gzip=!0,g(v,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,p,d){"use strict";var u=m("./zlib/inflate"),a=m("./utils/common"),i=m("./utils/strings"),t=m("./zlib/constants"),s=m("./zlib/messages"),e=m("./zlib/zstream"),l=m("./zlib/gzheader"),n=Object.prototype.toString;function o(h){if(!(this instanceof o))return new o(h);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},h||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||h&&h.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var v=u.inflateInit2(this.strm,g.windowBits);if(v!==t.Z_OK)throw new Error(s[v]);this.header=new l,u.inflateGetHeader(this.strm,this.header)}function c(h,g){var v=new o(g);if(v.push(h,!0),v.err)throw v.msg||s[v.err];return v.result}o.prototype.push=function(h,g){var v,b,S,E,C,_,T=this.strm,w=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?T.input=i.binstring2buf(h):n.call(h)==="[object ArrayBuffer]"?T.input=new Uint8Array(h):T.input=h,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new a.Buf8(w),T.next_out=0,T.avail_out=w),(v=u.inflate(T,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&O&&(_=typeof O=="string"?i.string2buf(O):n.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,v=u.inflateSetDictionary(this.strm,_)),v===t.Z_BUF_ERROR&&I===!0&&(v=t.Z_OK,I=!1),v!==t.Z_STREAM_END&&v!==t.Z_OK)return this.onEnd(v),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&v!==t.Z_STREAM_END&&(T.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=i.utf8border(T.output,T.next_out),E=T.next_out-S,C=i.buf2string(T.output,S),T.next_out=E,T.avail_out=w-E,E&&a.arraySet(T.output,T.output,S,E,0),this.onData(C)):this.onData(a.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(I=!0)}while((0<T.avail_in||T.avail_out===0)&&v!==t.Z_STREAM_END);return v===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(v=u.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(T.avail_out=0))},o.prototype.onData=function(h){this.chunks.push(h)},o.prototype.onEnd=function(h){h===t.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},d.Inflate=o,d.inflate=c,d.inflateRaw=function(h,g){return(g=g||{}).raw=!0,c(h,g)},d.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(m,p,d){"use strict";var u=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var e=s.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l])}}return t},d.shrinkBuf=function(t,s){return t.length===s?t:t.subarray?t.subarray(0,s):(t.length=s,t)};var a={arraySet:function(s,e,l,n,o){if(e.subarray&&s.subarray)s.set(e.subarray(l,l+n),o);else for(var c=0;c<n;c++)s[o+c]=e[l+c]},flattenChunks:function(s){var e,l,n,o,c,h;for(e=n=0,l=s.length;e<l;e++)n+=s[e].length;for(h=new Uint8Array(n),e=o=0,l=s.length;e<l;e++)c=s[e],h.set(c,o),o+=c.length;return h}},i={arraySet:function(s,e,l,n,o){for(var c=0;c<n;c++)s[o+c]=e[l+c]},flattenChunks:function(s){return[].concat.apply([],s)}};d.setTyped=function(t){t?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,a)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,i))},d.setTyped(u)},{}],42:[function(m,p,d){"use strict";var u=m("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(l){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){i=!1}for(var t=new u.Buf8(256),s=0;s<256;s++)t[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function e(l,n){if(n<65537&&(l.subarray&&i||!l.subarray&&a))return String.fromCharCode.apply(null,u.shrinkBuf(l,n));for(var o="",c=0;c<n;c++)o+=String.fromCharCode(l[c]);return o}t[254]=t[254]=1,d.string2buf=function(l){var n,o,c,h,g,v=l.length,b=0;for(h=0;h<v;h++)(64512&(o=l.charCodeAt(h)))==55296&&h+1<v&&(64512&(c=l.charCodeAt(h+1)))==56320&&(o=65536+(o-55296<<10)+(c-56320),h++),b+=o<128?1:o<2048?2:o<65536?3:4;for(n=new u.Buf8(b),h=g=0;g<b;h++)(64512&(o=l.charCodeAt(h)))==55296&&h+1<v&&(64512&(c=l.charCodeAt(h+1)))==56320&&(o=65536+(o-55296<<10)+(c-56320),h++),o<128?n[g++]=o:(o<2048?n[g++]=192|o>>>6:(o<65536?n[g++]=224|o>>>12:(n[g++]=240|o>>>18,n[g++]=128|o>>>12&63),n[g++]=128|o>>>6&63),n[g++]=128|63&o);return n},d.buf2binstring=function(l){return e(l,l.length)},d.binstring2buf=function(l){for(var n=new u.Buf8(l.length),o=0,c=n.length;o<c;o++)n[o]=l.charCodeAt(o);return n},d.buf2string=function(l,n){var o,c,h,g,v=n||l.length,b=new Array(2*v);for(o=c=0;o<v;)if((h=l[o++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,o+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&o<v;)h=h<<6|63&l[o++],g--;1<g?b[c++]=65533:h<65536?b[c++]=h:(h-=65536,b[c++]=55296|h>>10&1023,b[c++]=56320|1023&h)}return e(b,c)},d.utf8border=function(l,n){var o;for((n=n||l.length)>l.length&&(n=l.length),o=n-1;0<=o&&(192&l[o])==128;)o--;return o<0||o===0?n:o+t[l[o]]>n?o:n}},{"./common":41}],43:[function(m,p,d){"use strict";p.exports=function(u,a,i,t){for(var s=65535&u|0,e=u>>>16&65535|0,l=0;i!==0;){for(i-=l=2e3<i?2e3:i;e=e+(s=s+a[t++]|0)|0,--l;);s%=65521,e%=65521}return s|e<<16|0}},{}],44:[function(m,p,d){"use strict";p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(m,p,d){"use strict";var u=function(){for(var a,i=[],t=0;t<256;t++){a=t;for(var s=0;s<8;s++)a=1&a?3988292384^a>>>1:a>>>1;i[t]=a}return i}();p.exports=function(a,i,t,s){var e=u,l=s+t;a^=-1;for(var n=s;n<l;n++)a=a>>>8^e[255&(a^i[n])];return-1^a}},{}],46:[function(m,p,d){"use strict";var u,a=m("../utils/common"),i=m("./trees"),t=m("./adler32"),s=m("./crc32"),e=m("./messages"),l=0,n=4,o=0,c=-2,h=-1,g=4,v=2,b=8,S=9,E=286,C=30,_=19,T=2*E+1,w=15,O=3,I=258,k=I+O+1,M=42,U=113,P=1,X=2,F=3,j=4;function K(oe,rt){return oe.msg=e[rt],rt}function z(oe){return(oe<<1)-(4<oe?9:0)}function V(oe){for(var rt=oe.length;0<=--rt;)oe[rt]=0}function Q(oe){var rt=oe.state,fe=rt.pending;fe>oe.avail_out&&(fe=oe.avail_out),fe!==0&&(a.arraySet(oe.output,rt.pending_buf,rt.pending_out,fe,oe.next_out),oe.next_out+=fe,rt.pending_out+=fe,oe.total_out+=fe,oe.avail_out-=fe,rt.pending-=fe,rt.pending===0&&(rt.pending_out=0))}function G(oe,rt){i._tr_flush_block(oe,0<=oe.block_start?oe.block_start:-1,oe.strstart-oe.block_start,rt),oe.block_start=oe.strstart,Q(oe.strm)}function ee(oe,rt){oe.pending_buf[oe.pending++]=rt}function se(oe,rt){oe.pending_buf[oe.pending++]=rt>>>8&255,oe.pending_buf[oe.pending++]=255&rt}function ye(oe,rt){var fe,J,Y=oe.max_chain_length,$=oe.strstart,de=oe.prev_length,we=oe.nice_match,Ce=oe.strstart>oe.w_size-k?oe.strstart-(oe.w_size-k):0,Se=oe.window,le=oe.w_mask,pe=oe.prev,_e=oe.strstart+I,tt=Se[$+de-1],gt=Se[$+de];oe.prev_length>=oe.good_match&&(Y>>=2),we>oe.lookahead&&(we=oe.lookahead);do if(Se[(fe=rt)+de]===gt&&Se[fe+de-1]===tt&&Se[fe]===Se[$]&&Se[++fe]===Se[$+1]){$+=2,fe++;do;while(Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&Se[++$]===Se[++fe]&&$<_e);if(J=I-(_e-$),$=_e-I,de<J){if(oe.match_start=rt,we<=(de=J))break;tt=Se[$+de-1],gt=Se[$+de]}}while((rt=pe[rt&le])>Ce&&--Y!=0);return de<=oe.lookahead?de:oe.lookahead}function he(oe){var rt,fe,J,Y,$,de,we,Ce,Se,le,pe=oe.w_size;do{if(Y=oe.window_size-oe.lookahead-oe.strstart,oe.strstart>=pe+(pe-k)){for(a.arraySet(oe.window,oe.window,pe,pe,0),oe.match_start-=pe,oe.strstart-=pe,oe.block_start-=pe,rt=fe=oe.hash_size;J=oe.head[--rt],oe.head[rt]=pe<=J?J-pe:0,--fe;);for(rt=fe=pe;J=oe.prev[--rt],oe.prev[rt]=pe<=J?J-pe:0,--fe;);Y+=pe}if(oe.strm.avail_in===0)break;if(de=oe.strm,we=oe.window,Ce=oe.strstart+oe.lookahead,Se=Y,le=void 0,le=de.avail_in,Se<le&&(le=Se),fe=le===0?0:(de.avail_in-=le,a.arraySet(we,de.input,de.next_in,le,Ce),de.state.wrap===1?de.adler=t(de.adler,we,le,Ce):de.state.wrap===2&&(de.adler=s(de.adler,we,le,Ce)),de.next_in+=le,de.total_in+=le,le),oe.lookahead+=fe,oe.lookahead+oe.insert>=O)for($=oe.strstart-oe.insert,oe.ins_h=oe.window[$],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[$+1])&oe.hash_mask;oe.insert&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[$+O-1])&oe.hash_mask,oe.prev[$&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=$,$++,oe.insert--,!(oe.lookahead+oe.insert<O)););}while(oe.lookahead<k&&oe.strm.avail_in!==0)}function ke(oe,rt){for(var fe,J;;){if(oe.lookahead<k){if(he(oe),oe.lookahead<k&&rt===l)return P;if(oe.lookahead===0)break}if(fe=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,fe=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),fe!==0&&oe.strstart-fe<=oe.w_size-k&&(oe.match_length=ye(oe,fe)),oe.match_length>=O)if(J=i._tr_tally(oe,oe.strstart-oe.match_start,oe.match_length-O),oe.lookahead-=oe.match_length,oe.match_length<=oe.max_lazy_match&&oe.lookahead>=O){for(oe.match_length--;oe.strstart++,oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,fe=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart,--oe.match_length!=0;);oe.strstart++}else oe.strstart+=oe.match_length,oe.match_length=0,oe.ins_h=oe.window[oe.strstart],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+1])&oe.hash_mask;else J=i._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++;if(J&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=oe.strstart<O-1?oe.strstart:O-1,rt===n?(G(oe,!0),oe.strm.avail_out===0?F:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function Pe(oe,rt){for(var fe,J,Y;;){if(oe.lookahead<k){if(he(oe),oe.lookahead<k&&rt===l)return P;if(oe.lookahead===0)break}if(fe=0,oe.lookahead>=O&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,fe=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),oe.prev_length=oe.match_length,oe.prev_match=oe.match_start,oe.match_length=O-1,fe!==0&&oe.prev_length<oe.max_lazy_match&&oe.strstart-fe<=oe.w_size-k&&(oe.match_length=ye(oe,fe),oe.match_length<=5&&(oe.strategy===1||oe.match_length===O&&4096<oe.strstart-oe.match_start)&&(oe.match_length=O-1)),oe.prev_length>=O&&oe.match_length<=oe.prev_length){for(Y=oe.strstart+oe.lookahead-O,J=i._tr_tally(oe,oe.strstart-1-oe.prev_match,oe.prev_length-O),oe.lookahead-=oe.prev_length-1,oe.prev_length-=2;++oe.strstart<=Y&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+O-1])&oe.hash_mask,fe=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),--oe.prev_length!=0;);if(oe.match_available=0,oe.match_length=O-1,oe.strstart++,J&&(G(oe,!1),oe.strm.avail_out===0))return P}else if(oe.match_available){if((J=i._tr_tally(oe,0,oe.window[oe.strstart-1]))&&G(oe,!1),oe.strstart++,oe.lookahead--,oe.strm.avail_out===0)return P}else oe.match_available=1,oe.strstart++,oe.lookahead--}return oe.match_available&&(J=i._tr_tally(oe,0,oe.window[oe.strstart-1]),oe.match_available=0),oe.insert=oe.strstart<O-1?oe.strstart:O-1,rt===n?(G(oe,!0),oe.strm.avail_out===0?F:j):oe.last_lit&&(G(oe,!1),oe.strm.avail_out===0)?P:X}function Ue(oe,rt,fe,J,Y){this.good_length=oe,this.max_lazy=rt,this.nice_length=fe,this.max_chain=J,this.func=Y}function $e(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*T),this.dyn_dtree=new a.Buf16(2*(2*C+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*E+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*E+1),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ge(oe){var rt;return oe&&oe.state?(oe.total_in=oe.total_out=0,oe.data_type=v,(rt=oe.state).pending=0,rt.pending_out=0,rt.wrap<0&&(rt.wrap=-rt.wrap),rt.status=rt.wrap?M:U,oe.adler=rt.wrap===2?0:1,rt.last_flush=l,i._tr_init(rt),o):K(oe,c)}function ht(oe){var rt=Ge(oe);return rt===o&&function(fe){fe.window_size=2*fe.w_size,V(fe.head),fe.max_lazy_match=u[fe.level].max_lazy,fe.good_match=u[fe.level].good_length,fe.nice_match=u[fe.level].nice_length,fe.max_chain_length=u[fe.level].max_chain,fe.strstart=0,fe.block_start=0,fe.lookahead=0,fe.insert=0,fe.match_length=fe.prev_length=O-1,fe.match_available=0,fe.ins_h=0}(oe.state),rt}function Fe(oe,rt,fe,J,Y,$){if(!oe)return c;var de=1;if(rt===h&&(rt=6),J<0?(de=0,J=-J):15<J&&(de=2,J-=16),Y<1||S<Y||fe!==b||J<8||15<J||rt<0||9<rt||$<0||g<$)return K(oe,c);J===8&&(J=9);var we=new $e;return(oe.state=we).strm=oe,we.wrap=de,we.gzhead=null,we.w_bits=J,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=Y+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+O-1)/O),we.window=new a.Buf8(2*we.w_size),we.head=new a.Buf16(we.hash_size),we.prev=new a.Buf16(we.w_size),we.lit_bufsize=1<<Y+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new a.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=rt,we.strategy=$,we.method=fe,ht(oe)}u=[new Ue(0,0,0,0,function(oe,rt){var fe=65535;for(fe>oe.pending_buf_size-5&&(fe=oe.pending_buf_size-5);;){if(oe.lookahead<=1){if(he(oe),oe.lookahead===0&&rt===l)return P;if(oe.lookahead===0)break}oe.strstart+=oe.lookahead,oe.lookahead=0;var J=oe.block_start+fe;if((oe.strstart===0||oe.strstart>=J)&&(oe.lookahead=oe.strstart-J,oe.strstart=J,G(oe,!1),oe.strm.avail_out===0))return P;if(oe.strstart-oe.block_start>=oe.w_size-k&&(G(oe,!1),oe.strm.avail_out===0))return P}return oe.insert=0,rt===n?(G(oe,!0),oe.strm.avail_out===0?F:j):(oe.strstart>oe.block_start&&(G(oe,!1),oe.strm.avail_out),P)}),new Ue(4,4,8,4,ke),new Ue(4,5,16,8,ke),new Ue(4,6,32,32,ke),new Ue(4,4,16,16,Pe),new Ue(8,16,32,32,Pe),new Ue(8,16,128,128,Pe),new Ue(8,32,128,256,Pe),new Ue(32,128,258,1024,Pe),new Ue(32,258,258,4096,Pe)],d.deflateInit=function(oe,rt){return Fe(oe,rt,b,15,8,0)},d.deflateInit2=Fe,d.deflateReset=ht,d.deflateResetKeep=Ge,d.deflateSetHeader=function(oe,rt){return oe&&oe.state?oe.state.wrap!==2?c:(oe.state.gzhead=rt,o):c},d.deflate=function(oe,rt){var fe,J,Y,$;if(!oe||!oe.state||5<rt||rt<0)return oe?K(oe,c):c;if(J=oe.state,!oe.output||!oe.input&&oe.avail_in!==0||J.status===666&&rt!==n)return K(oe,oe.avail_out===0?-5:c);if(J.strm=oe,fe=J.last_flush,J.last_flush=rt,J.status===M)if(J.wrap===2)oe.adler=0,ee(J,31),ee(J,139),ee(J,8),J.gzhead?(ee(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),ee(J,255&J.gzhead.time),ee(J,J.gzhead.time>>8&255),ee(J,J.gzhead.time>>16&255),ee(J,J.gzhead.time>>24&255),ee(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),ee(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(ee(J,255&J.gzhead.extra.length),ee(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(oe.adler=s(oe.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(ee(J,0),ee(J,0),ee(J,0),ee(J,0),ee(J,0),ee(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),ee(J,3),J.status=U);else{var de=b+(J.w_bits-8<<4)<<8;de|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(de|=32),de+=31-de%31,J.status=U,se(J,de),J.strstart!==0&&(se(J,oe.adler>>>16),se(J,65535&oe.adler)),oe.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending!==J.pending_buf_size));)ee(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,ee(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),Q(oe),Y=J.pending,J.pending===J.pending_buf_size)){$=1;break}$=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,ee(J,$)}while($!==0);J.gzhead.hcrc&&J.pending>Y&&(oe.adler=s(oe.adler,J.pending_buf,J.pending-Y,Y)),$===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&Q(oe),J.pending+2<=J.pending_buf_size&&(ee(J,255&oe.adler),ee(J,oe.adler>>8&255),oe.adler=0,J.status=U)):J.status=U),J.pending!==0){if(Q(oe),oe.avail_out===0)return J.last_flush=-1,o}else if(oe.avail_in===0&&z(rt)<=z(fe)&&rt!==n)return K(oe,-5);if(J.status===666&&oe.avail_in!==0)return K(oe,-5);if(oe.avail_in!==0||J.lookahead!==0||rt!==l&&J.status!==666){var we=J.strategy===2?function(Ce,Se){for(var le;;){if(Ce.lookahead===0&&(he(Ce),Ce.lookahead===0)){if(Se===l)return P;break}if(Ce.match_length=0,le=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,le&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Se===n?(G(Ce,!0),Ce.strm.avail_out===0?F:j):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,rt):J.strategy===3?function(Ce,Se){for(var le,pe,_e,tt,gt=Ce.window;;){if(Ce.lookahead<=I){if(he(Ce),Ce.lookahead<=I&&Se===l)return P;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=O&&0<Ce.strstart&&(pe=gt[_e=Ce.strstart-1])===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]){tt=Ce.strstart+I;do;while(pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&pe===gt[++_e]&&_e<tt);Ce.match_length=I-(tt-_e),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=O?(le=i._tr_tally(Ce,1,Ce.match_length-O),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(le=i._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),le&&(G(Ce,!1),Ce.strm.avail_out===0))return P}return Ce.insert=0,Se===n?(G(Ce,!0),Ce.strm.avail_out===0?F:j):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?P:X}(J,rt):u[J.level].func(J,rt);if(we!==F&&we!==j||(J.status=666),we===P||we===F)return oe.avail_out===0&&(J.last_flush=-1),o;if(we===X&&(rt===1?i._tr_align(J):rt!==5&&(i._tr_stored_block(J,0,0,!1),rt===3&&(V(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),Q(oe),oe.avail_out===0))return J.last_flush=-1,o}return rt!==n?o:J.wrap<=0?1:(J.wrap===2?(ee(J,255&oe.adler),ee(J,oe.adler>>8&255),ee(J,oe.adler>>16&255),ee(J,oe.adler>>24&255),ee(J,255&oe.total_in),ee(J,oe.total_in>>8&255),ee(J,oe.total_in>>16&255),ee(J,oe.total_in>>24&255)):(se(J,oe.adler>>>16),se(J,65535&oe.adler)),Q(oe),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?o:1)},d.deflateEnd=function(oe){var rt;return oe&&oe.state?(rt=oe.state.status)!==M&&rt!==69&&rt!==73&&rt!==91&&rt!==103&&rt!==U&&rt!==666?K(oe,c):(oe.state=null,rt===U?K(oe,-3):o):c},d.deflateSetDictionary=function(oe,rt){var fe,J,Y,$,de,we,Ce,Se,le=rt.length;if(!oe||!oe.state)return c;if(($=(fe=oe.state).wrap)===2||$===1&&fe.status!==M||fe.lookahead)return c;for($===1&&(oe.adler=t(oe.adler,rt,le,0)),fe.wrap=0,le>=fe.w_size&&($===0&&(V(fe.head),fe.strstart=0,fe.block_start=0,fe.insert=0),Se=new a.Buf8(fe.w_size),a.arraySet(Se,rt,le-fe.w_size,fe.w_size,0),rt=Se,le=fe.w_size),de=oe.avail_in,we=oe.next_in,Ce=oe.input,oe.avail_in=le,oe.next_in=0,oe.input=rt,he(fe);fe.lookahead>=O;){for(J=fe.strstart,Y=fe.lookahead-(O-1);fe.ins_h=(fe.ins_h<<fe.hash_shift^fe.window[J+O-1])&fe.hash_mask,fe.prev[J&fe.w_mask]=fe.head[fe.ins_h],fe.head[fe.ins_h]=J,J++,--Y;);fe.strstart=J,fe.lookahead=O-1,he(fe)}return fe.strstart+=fe.lookahead,fe.block_start=fe.strstart,fe.insert=fe.lookahead,fe.lookahead=0,fe.match_length=fe.prev_length=O-1,fe.match_available=0,oe.next_in=we,oe.input=Ce,oe.avail_in=de,fe.wrap=$,o},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,p,d){"use strict";p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(m,p,d){"use strict";p.exports=function(u,a){var i,t,s,e,l,n,o,c,h,g,v,b,S,E,C,_,T,w,O,I,k,M,U,P,X;i=u.state,t=u.next_in,P=u.input,s=t+(u.avail_in-5),e=u.next_out,X=u.output,l=e-(a-u.avail_out),n=e+(u.avail_out-257),o=i.dmax,c=i.wsize,h=i.whave,g=i.wnext,v=i.window,b=i.hold,S=i.bits,E=i.lencode,C=i.distcode,_=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=E[b&_];t:for(;;){if(b>>>=O=w>>>24,S-=O,(O=w>>>16&255)===0)X[e++]=65535&w;else{if(!(16&O)){if((64&O)==0){w=E[(65535&w)+(b&(1<<O)-1)];continue t}if(32&O){i.mode=12;break e}u.msg="invalid literal/length code",i.mode=30;break e}I=65535&w,(O&=15)&&(S<O&&(b+=P[t++]<<S,S+=8),I+=b&(1<<O)-1,b>>>=O,S-=O),S<15&&(b+=P[t++]<<S,S+=8,b+=P[t++]<<S,S+=8),w=C[b&T];r:for(;;){if(b>>>=O=w>>>24,S-=O,!(16&(O=w>>>16&255))){if((64&O)==0){w=C[(65535&w)+(b&(1<<O)-1)];continue r}u.msg="invalid distance code",i.mode=30;break e}if(k=65535&w,S<(O&=15)&&(b+=P[t++]<<S,(S+=8)<O&&(b+=P[t++]<<S,S+=8)),o<(k+=b&(1<<O)-1)){u.msg="invalid distance too far back",i.mode=30;break e}if(b>>>=O,S-=O,(O=e-l)<k){if(h<(O=k-O)&&i.sane){u.msg="invalid distance too far back",i.mode=30;break e}if(U=v,(M=0)===g){if(M+=c-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-k,U=X}}else if(g<O){if(M+=c+g-O,(O-=g)<I){for(I-=O;X[e++]=v[M++],--O;);if(M=0,g<I){for(I-=O=g;X[e++]=v[M++],--O;);M=e-k,U=X}}}else if(M+=g-O,O<I){for(I-=O;X[e++]=v[M++],--O;);M=e-k,U=X}for(;2<I;)X[e++]=U[M++],X[e++]=U[M++],X[e++]=U[M++],I-=3;I&&(X[e++]=U[M++],1<I&&(X[e++]=U[M++]))}else{for(M=e-k;X[e++]=X[M++],X[e++]=X[M++],X[e++]=X[M++],2<(I-=3););I&&(X[e++]=X[M++],1<I&&(X[e++]=X[M++]))}break}}break}}while(t<s&&e<n);t-=I=S>>3,b&=(1<<(S-=I<<3))-1,u.next_in=t,u.next_out=e,u.avail_in=t<s?s-t+5:5-(t-s),u.avail_out=e<n?n-e+257:257-(e-n),i.hold=b,i.bits=S}},{}],49:[function(m,p,d){"use strict";var u=m("../utils/common"),a=m("./adler32"),i=m("./crc32"),t=m("./inffast"),s=m("./inftrees"),e=1,l=2,n=0,o=-2,c=1,h=852,g=592;function v(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(M){var U;return M&&M.state?(U=M.state,M.total_in=M.total_out=U.total=0,M.msg="",U.wrap&&(M.adler=1&U.wrap),U.mode=c,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new u.Buf32(h),U.distcode=U.distdyn=new u.Buf32(g),U.sane=1,U.back=-1,n):o}function E(M){var U;return M&&M.state?((U=M.state).wsize=0,U.whave=0,U.wnext=0,S(M)):o}function C(M,U){var P,X;return M&&M.state?(X=M.state,U<0?(P=0,U=-U):(P=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?o:(X.window!==null&&X.wbits!==U&&(X.window=null),X.wrap=P,X.wbits=U,E(M))):o}function _(M,U){var P,X;return M?(X=new b,(M.state=X).window=null,(P=C(M,U))!==n&&(M.state=null),P):o}var T,w,O=!0;function I(M){if(O){var U;for(T=new u.Buf32(512),w=new u.Buf32(32),U=0;U<144;)M.lens[U++]=8;for(;U<256;)M.lens[U++]=9;for(;U<280;)M.lens[U++]=7;for(;U<288;)M.lens[U++]=8;for(s(e,M.lens,0,288,T,0,M.work,{bits:9}),U=0;U<32;)M.lens[U++]=5;s(l,M.lens,0,32,w,0,M.work,{bits:5}),O=!1}M.lencode=T,M.lenbits=9,M.distcode=w,M.distbits=5}function k(M,U,P,X){var F,j=M.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new u.Buf8(j.wsize)),X>=j.wsize?(u.arraySet(j.window,U,P-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(X<(F=j.wsize-j.wnext)&&(F=X),u.arraySet(j.window,U,P-X,F,j.wnext),(X-=F)?(u.arraySet(j.window,U,P-X,X,0),j.wnext=X,j.whave=j.wsize):(j.wnext+=F,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=F))),0}d.inflateReset=E,d.inflateReset2=C,d.inflateResetKeep=S,d.inflateInit=function(M){return _(M,15)},d.inflateInit2=_,d.inflate=function(M,U){var P,X,F,j,K,z,V,Q,G,ee,se,ye,he,ke,Pe,Ue,$e,Ge,ht,Fe,oe,rt,fe,J,Y=0,$=new u.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return o;(P=M.state).mode===12&&(P.mode=13),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,ee=z,se=V,rt=n;e:for(;;)switch(P.mode){case c:if(P.wrap===0){P.mode=13;break}for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(2&P.wrap&&Q===35615){$[P.check=0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0),G=Q=0,P.mode=2;break}if(P.flags=0,P.head&&(P.head.done=!1),!(1&P.wrap)||(((255&Q)<<8)+(Q>>8))%31){M.msg="incorrect header check",P.mode=30;break}if((15&Q)!=8){M.msg="unknown compression method",P.mode=30;break}if(G-=4,oe=8+(15&(Q>>>=4)),P.wbits===0)P.wbits=oe;else if(oe>P.wbits){M.msg="invalid window size",P.mode=30;break}P.dmax=1<<oe,M.adler=P.check=1,P.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.flags=Q,(255&P.flags)!=8){M.msg="unknown compression method",P.mode=30;break}if(57344&P.flags){M.msg="unknown header flags set",P.mode=30;break}P.head&&(P.head.text=Q>>8&1),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=3;case 3:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.time=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,$[2]=Q>>>16&255,$[3]=Q>>>24&255,P.check=i(P.check,$,4,0)),G=Q=0,P.mode=4;case 4:for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.head&&(P.head.xflags=255&Q,P.head.os=Q>>8),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0,P.mode=5;case 5:if(1024&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length=Q,P.head&&(P.head.extra_len=Q),512&P.flags&&($[0]=255&Q,$[1]=Q>>>8&255,P.check=i(P.check,$,2,0)),G=Q=0}else P.head&&(P.head.extra=null);P.mode=6;case 6:if(1024&P.flags&&(z<(ye=P.length)&&(ye=z),ye&&(P.head&&(oe=P.head.extra_len-P.length,P.head.extra||(P.head.extra=new Array(P.head.extra_len)),u.arraySet(P.head.extra,X,j,ye,oe)),512&P.flags&&(P.check=i(P.check,X,ye,j)),z-=ye,j+=ye,P.length-=ye),P.length))break e;P.length=0,P.mode=7;case 7:if(2048&P.flags){if(z===0)break e;for(ye=0;oe=X[j+ye++],P.head&&oe&&P.length<65536&&(P.head.name+=String.fromCharCode(oe)),oe&&ye<z;);if(512&P.flags&&(P.check=i(P.check,X,ye,j)),z-=ye,j+=ye,oe)break e}else P.head&&(P.head.name=null);P.length=0,P.mode=8;case 8:if(4096&P.flags){if(z===0)break e;for(ye=0;oe=X[j+ye++],P.head&&oe&&P.length<65536&&(P.head.comment+=String.fromCharCode(oe)),oe&&ye<z;);if(512&P.flags&&(P.check=i(P.check,X,ye,j)),z-=ye,j+=ye,oe)break e}else P.head&&(P.head.comment=null);P.mode=9;case 9:if(512&P.flags){for(;G<16;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(65535&P.check)){M.msg="header crc mismatch",P.mode=30;break}G=Q=0}P.head&&(P.head.hcrc=P.flags>>9&1,P.head.done=!0),M.adler=P.check=0,P.mode=12;break;case 10:for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}M.adler=P.check=v(Q),G=Q=0,P.mode=11;case 11:if(P.havedict===0)return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,2;M.adler=P.check=1,P.mode=12;case 12:if(U===5||U===6)break e;case 13:if(P.last){Q>>>=7&G,G-=7&G,P.mode=27;break}for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}switch(P.last=1&Q,G-=1,3&(Q>>>=1)){case 0:P.mode=14;break;case 1:if(I(P),P.mode=20,U!==6)break;Q>>>=2,G-=2;break e;case 2:P.mode=17;break;case 3:M.msg="invalid block type",P.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){M.msg="invalid stored block lengths",P.mode=30;break}if(P.length=65535&Q,G=Q=0,P.mode=15,U===6)break e;case 15:P.mode=16;case 16:if(ye=P.length){if(z<ye&&(ye=z),V<ye&&(ye=V),ye===0)break e;u.arraySet(F,X,j,ye,K),z-=ye,j+=ye,V-=ye,K+=ye,P.length-=ye;break}P.mode=12;break;case 17:for(;G<14;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(P.nlen=257+(31&Q),Q>>>=5,G-=5,P.ndist=1+(31&Q),Q>>>=5,G-=5,P.ncode=4+(15&Q),Q>>>=4,G-=4,286<P.nlen||30<P.ndist){M.msg="too many length or distance symbols",P.mode=30;break}P.have=0,P.mode=18;case 18:for(;P.have<P.ncode;){for(;G<3;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.lens[de[P.have++]]=7&Q,Q>>>=3,G-=3}for(;P.have<19;)P.lens[de[P.have++]]=0;if(P.lencode=P.lendyn,P.lenbits=7,fe={bits:P.lenbits},rt=s(0,P.lens,0,19,P.lencode,0,P.work,fe),P.lenbits=fe.bits,rt){M.msg="invalid code lengths set",P.mode=30;break}P.have=0,P.mode=19;case 19:for(;P.have<P.nlen+P.ndist;){for(;Ue=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,$e=65535&Y,!((Pe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if($e<16)Q>>>=Pe,G-=Pe,P.lens[P.have++]=$e;else{if($e===16){for(J=Pe+2;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q>>>=Pe,G-=Pe,P.have===0){M.msg="invalid bit length repeat",P.mode=30;break}oe=P.lens[P.have-1],ye=3+(3&Q),Q>>>=2,G-=2}else if($e===17){for(J=Pe+3;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Pe,oe=0,ye=3+(7&(Q>>>=Pe)),Q>>>=3,G-=3}else{for(J=Pe+7;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}G-=Pe,oe=0,ye=11+(127&(Q>>>=Pe)),Q>>>=7,G-=7}if(P.have+ye>P.nlen+P.ndist){M.msg="invalid bit length repeat",P.mode=30;break}for(;ye--;)P.lens[P.have++]=oe}}if(P.mode===30)break;if(P.lens[256]===0){M.msg="invalid code -- missing end-of-block",P.mode=30;break}if(P.lenbits=9,fe={bits:P.lenbits},rt=s(e,P.lens,0,P.nlen,P.lencode,0,P.work,fe),P.lenbits=fe.bits,rt){M.msg="invalid literal/lengths set",P.mode=30;break}if(P.distbits=6,P.distcode=P.distdyn,fe={bits:P.distbits},rt=s(l,P.lens,P.nlen,P.ndist,P.distcode,0,P.work,fe),P.distbits=fe.bits,rt){M.msg="invalid distances set",P.mode=30;break}if(P.mode=20,U===6)break e;case 20:P.mode=21;case 21:if(6<=z&&258<=V){M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,t(M,se),K=M.next_out,F=M.output,V=M.avail_out,j=M.next_in,X=M.input,z=M.avail_in,Q=P.hold,G=P.bits,P.mode===12&&(P.back=-1);break}for(P.back=0;Ue=(Y=P.lencode[Q&(1<<P.lenbits)-1])>>>16&255,$e=65535&Y,!((Pe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Ue&&(240&Ue)==0){for(Ge=Pe,ht=Ue,Fe=$e;Ue=(Y=P.lencode[Fe+((Q&(1<<Ge+ht)-1)>>Ge)])>>>16&255,$e=65535&Y,!(Ge+(Pe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ge,G-=Ge,P.back+=Ge}if(Q>>>=Pe,G-=Pe,P.back+=Pe,P.length=$e,Ue===0){P.mode=26;break}if(32&Ue){P.back=-1,P.mode=12;break}if(64&Ue){M.msg="invalid literal/length code",P.mode=30;break}P.extra=15&Ue,P.mode=22;case 22:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.length+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}P.was=P.length,P.mode=23;case 23:for(;Ue=(Y=P.distcode[Q&(1<<P.distbits)-1])>>>16&255,$e=65535&Y,!((Pe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if((240&Ue)==0){for(Ge=Pe,ht=Ue,Fe=$e;Ue=(Y=P.distcode[Fe+((Q&(1<<Ge+ht)-1)>>Ge)])>>>16&255,$e=65535&Y,!(Ge+(Pe=Y>>>24)<=G);){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}Q>>>=Ge,G-=Ge,P.back+=Ge}if(Q>>>=Pe,G-=Pe,P.back+=Pe,64&Ue){M.msg="invalid distance code",P.mode=30;break}P.offset=$e,P.extra=15&Ue,P.mode=24;case 24:if(P.extra){for(J=P.extra;G<J;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}P.offset+=Q&(1<<P.extra)-1,Q>>>=P.extra,G-=P.extra,P.back+=P.extra}if(P.offset>P.dmax){M.msg="invalid distance too far back",P.mode=30;break}P.mode=25;case 25:if(V===0)break e;if(ye=se-V,P.offset>ye){if((ye=P.offset-ye)>P.whave&&P.sane){M.msg="invalid distance too far back",P.mode=30;break}he=ye>P.wnext?(ye-=P.wnext,P.wsize-ye):P.wnext-ye,ye>P.length&&(ye=P.length),ke=P.window}else ke=F,he=K-P.offset,ye=P.length;for(V<ye&&(ye=V),V-=ye,P.length-=ye;F[K++]=ke[he++],--ye;);P.length===0&&(P.mode=21);break;case 26:if(V===0)break e;F[K++]=P.length,V--,P.mode=21;break;case 27:if(P.wrap){for(;G<32;){if(z===0)break e;z--,Q|=X[j++]<<G,G+=8}if(se-=V,M.total_out+=se,P.total+=se,se&&(M.adler=P.check=P.flags?i(P.check,F,se,K-se):a(P.check,F,se,K-se)),se=V,(P.flags?Q:v(Q))!==P.check){M.msg="incorrect data check",P.mode=30;break}G=Q=0}P.mode=28;case 28:if(P.wrap&&P.flags){for(;G<32;){if(z===0)break e;z--,Q+=X[j++]<<G,G+=8}if(Q!==(4294967295&P.total)){M.msg="incorrect length check",P.mode=30;break}G=Q=0}P.mode=29;case 29:rt=1;break e;case 30:rt=-3;break e;case 31:return-4;case 32:default:return o}return M.next_out=K,M.avail_out=V,M.next_in=j,M.avail_in=z,P.hold=Q,P.bits=G,(P.wsize||se!==M.avail_out&&P.mode<30&&(P.mode<27||U!==4))&&k(M,M.output,M.next_out,se-M.avail_out)?(P.mode=31,-4):(ee-=M.avail_in,se-=M.avail_out,M.total_in+=ee,M.total_out+=se,P.total+=se,P.wrap&&se&&(M.adler=P.check=P.flags?i(P.check,F,se,M.next_out-se):a(P.check,F,se,M.next_out-se)),M.data_type=P.bits+(P.last?64:0)+(P.mode===12?128:0)+(P.mode===20||P.mode===15?256:0),(ee==0&&se===0||U===4)&&rt===n&&(rt=-5),rt)},d.inflateEnd=function(M){if(!M||!M.state)return o;var U=M.state;return U.window&&(U.window=null),M.state=null,n},d.inflateGetHeader=function(M,U){var P;return M&&M.state?(2&(P=M.state).wrap)==0?o:((P.head=U).done=!1,n):o},d.inflateSetDictionary=function(M,U){var P,X=U.length;return M&&M.state?(P=M.state).wrap!==0&&P.mode!==11?o:P.mode===11&&a(1,U,X,0)!==P.check?-3:k(M,U,X,X)?(P.mode=31,-4):(P.havedict=1,n):o},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,p,d){"use strict";var u=m("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],t=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(e,l,n,o,c,h,g,v){var b,S,E,C,_,T,w,O,I,k=v.bits,M=0,U=0,P=0,X=0,F=0,j=0,K=0,z=0,V=0,Q=0,G=null,ee=0,se=new u.Buf16(16),ye=new u.Buf16(16),he=null,ke=0;for(M=0;M<=15;M++)se[M]=0;for(U=0;U<o;U++)se[l[n+U]]++;for(F=k,X=15;1<=X&&se[X]===0;X--);if(X<F&&(F=X),X===0)return c[h++]=20971520,c[h++]=20971520,v.bits=1,0;for(P=1;P<X&&se[P]===0;P++);for(F<P&&(F=P),M=z=1;M<=15;M++)if(z<<=1,(z-=se[M])<0)return-1;if(0<z&&(e===0||X!==1))return-1;for(ye[1]=0,M=1;M<15;M++)ye[M+1]=ye[M]+se[M];for(U=0;U<o;U++)l[n+U]!==0&&(g[ye[l[n+U]]++]=U);if(T=e===0?(G=he=g,19):e===1?(G=a,ee-=257,he=i,ke-=257,256):(G=t,he=s,-1),M=P,_=h,K=U=Q=0,E=-1,C=(V=1<<(j=F))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(w=M-K,I=g[U]<T?(O=0,g[U]):g[U]>T?(O=he[ke+g[U]],G[ee+g[U]]):(O=96,0),b=1<<M-K,P=S=1<<j;c[_+(Q>>K)+(S-=b)]=w<<24|O<<16|I|0,S!==0;);for(b=1<<M-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,U++,--se[M]==0){if(M===X)break;M=l[n+g[U]]}if(F<M&&(Q&C)!==E){for(K===0&&(K=F),_+=P,z=1<<(j=M-K);j+K<X&&!((z-=se[j+K])<=0);)j++,z<<=1;if(V+=1<<j,e===1&&852<V||e===2&&592<V)return 1;c[E=Q&C]=F<<24|j<<16|_-h|0}}return Q!==0&&(c[_+Q]=M-K<<24|64<<16|0),v.bits=F,0}},{"../utils/common":41}],51:[function(m,p,d){"use strict";p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(m,p,d){"use strict";var u=m("../utils/common"),a=0,i=1;function t(Y){for(var $=Y.length;0<=--$;)Y[$]=0}var s=0,e=29,l=256,n=l+1+e,o=30,c=19,h=2*n+1,g=15,v=16,b=7,S=256,E=16,C=17,_=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(n+2));t(k);var M=new Array(2*o);t(M);var U=new Array(512);t(U);var P=new Array(256);t(P);var X=new Array(e);t(X);var F,j,K,z=new Array(o);function V(Y,$,de,we,Ce){this.static_tree=Y,this.extra_bits=$,this.extra_base=de,this.elems=we,this.max_length=Ce,this.has_stree=Y&&Y.length}function Q(Y,$){this.dyn_tree=Y,this.max_code=0,this.stat_desc=$}function G(Y){return Y<256?U[Y]:U[256+(Y>>>7)]}function ee(Y,$){Y.pending_buf[Y.pending++]=255&$,Y.pending_buf[Y.pending++]=$>>>8&255}function se(Y,$,de){Y.bi_valid>v-de?(Y.bi_buf|=$<<Y.bi_valid&65535,ee(Y,Y.bi_buf),Y.bi_buf=$>>v-Y.bi_valid,Y.bi_valid+=de-v):(Y.bi_buf|=$<<Y.bi_valid&65535,Y.bi_valid+=de)}function ye(Y,$,de){se(Y,de[2*$],de[2*$+1])}function he(Y,$){for(var de=0;de|=1&Y,Y>>>=1,de<<=1,0<--$;);return de>>>1}function ke(Y,$,de){var we,Ce,Se=new Array(g+1),le=0;for(we=1;we<=g;we++)Se[we]=le=le+de[we-1]<<1;for(Ce=0;Ce<=$;Ce++){var pe=Y[2*Ce+1];pe!==0&&(Y[2*Ce]=he(Se[pe]++,pe))}}function Pe(Y){var $;for($=0;$<n;$++)Y.dyn_ltree[2*$]=0;for($=0;$<o;$++)Y.dyn_dtree[2*$]=0;for($=0;$<c;$++)Y.bl_tree[2*$]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Ue(Y){8<Y.bi_valid?ee(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function $e(Y,$,de,we){var Ce=2*$,Se=2*de;return Y[Ce]<Y[Se]||Y[Ce]===Y[Se]&&we[$]<=we[de]}function Ge(Y,$,de){for(var we=Y.heap[de],Ce=de<<1;Ce<=Y.heap_len&&(Ce<Y.heap_len&&$e($,Y.heap[Ce+1],Y.heap[Ce],Y.depth)&&Ce++,!$e($,we,Y.heap[Ce],Y.depth));)Y.heap[de]=Y.heap[Ce],de=Ce,Ce<<=1;Y.heap[de]=we}function ht(Y,$,de){var we,Ce,Se,le,pe=0;if(Y.last_lit!==0)for(;we=Y.pending_buf[Y.d_buf+2*pe]<<8|Y.pending_buf[Y.d_buf+2*pe+1],Ce=Y.pending_buf[Y.l_buf+pe],pe++,we===0?ye(Y,Ce,$):(ye(Y,(Se=P[Ce])+l+1,$),(le=T[Se])!==0&&se(Y,Ce-=X[Se],le),ye(Y,Se=G(--we),de),(le=w[Se])!==0&&se(Y,we-=z[Se],le)),pe<Y.last_lit;);ye(Y,S,$)}function Fe(Y,$){var de,we,Ce,Se=$.dyn_tree,le=$.stat_desc.static_tree,pe=$.stat_desc.has_stree,_e=$.stat_desc.elems,tt=-1;for(Y.heap_len=0,Y.heap_max=h,de=0;de<_e;de++)Se[2*de]!==0?(Y.heap[++Y.heap_len]=tt=de,Y.depth[de]=0):Se[2*de+1]=0;for(;Y.heap_len<2;)Se[2*(Ce=Y.heap[++Y.heap_len]=tt<2?++tt:0)]=1,Y.depth[Ce]=0,Y.opt_len--,pe&&(Y.static_len-=le[2*Ce+1]);for($.max_code=tt,de=Y.heap_len>>1;1<=de;de--)Ge(Y,Se,de);for(Ce=_e;de=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ge(Y,Se,1),we=Y.heap[1],Y.heap[--Y.heap_max]=de,Y.heap[--Y.heap_max]=we,Se[2*Ce]=Se[2*de]+Se[2*we],Y.depth[Ce]=(Y.depth[de]>=Y.depth[we]?Y.depth[de]:Y.depth[we])+1,Se[2*de+1]=Se[2*we+1]=Ce,Y.heap[1]=Ce++,Ge(Y,Se,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(gt,ct){var je,Zt,ut,Ht,dr,Vt,Mt=ct.dyn_tree,Gt=ct.max_code,Ve=ct.stat_desc.static_tree,me=ct.stat_desc.has_stree,te=ct.stat_desc.extra_bits,Ze=ct.stat_desc.extra_base,Xe=ct.stat_desc.max_length,ue=0;for(Ht=0;Ht<=g;Ht++)gt.bl_count[Ht]=0;for(Mt[2*gt.heap[gt.heap_max]+1]=0,je=gt.heap_max+1;je<h;je++)Xe<(Ht=Mt[2*Mt[2*(Zt=gt.heap[je])+1]+1]+1)&&(Ht=Xe,ue++),Mt[2*Zt+1]=Ht,Gt<Zt||(gt.bl_count[Ht]++,dr=0,Ze<=Zt&&(dr=te[Zt-Ze]),Vt=Mt[2*Zt],gt.opt_len+=Vt*(Ht+dr),me&&(gt.static_len+=Vt*(Ve[2*Zt+1]+dr)));if(ue!==0){do{for(Ht=Xe-1;gt.bl_count[Ht]===0;)Ht--;gt.bl_count[Ht]--,gt.bl_count[Ht+1]+=2,gt.bl_count[Xe]--,ue-=2}while(0<ue);for(Ht=Xe;Ht!==0;Ht--)for(Zt=gt.bl_count[Ht];Zt!==0;)Gt<(ut=gt.heap[--je])||(Mt[2*ut+1]!==Ht&&(gt.opt_len+=(Ht-Mt[2*ut+1])*Mt[2*ut],Mt[2*ut+1]=Ht),Zt--)}}(Y,$),ke(Se,tt,Y.bl_count)}function oe(Y,$,de){var we,Ce,Se=-1,le=$[1],pe=0,_e=7,tt=4;for(le===0&&(_e=138,tt=3),$[2*(de+1)+1]=65535,we=0;we<=de;we++)Ce=le,le=$[2*(we+1)+1],++pe<_e&&Ce===le||(pe<tt?Y.bl_tree[2*Ce]+=pe:Ce!==0?(Ce!==Se&&Y.bl_tree[2*Ce]++,Y.bl_tree[2*E]++):pe<=10?Y.bl_tree[2*C]++:Y.bl_tree[2*_]++,Se=Ce,tt=(pe=0)===le?(_e=138,3):Ce===le?(_e=6,3):(_e=7,4))}function rt(Y,$,de){var we,Ce,Se=-1,le=$[1],pe=0,_e=7,tt=4;for(le===0&&(_e=138,tt=3),we=0;we<=de;we++)if(Ce=le,le=$[2*(we+1)+1],!(++pe<_e&&Ce===le)){if(pe<tt)for(;ye(Y,Ce,Y.bl_tree),--pe!=0;);else Ce!==0?(Ce!==Se&&(ye(Y,Ce,Y.bl_tree),pe--),ye(Y,E,Y.bl_tree),se(Y,pe-3,2)):pe<=10?(ye(Y,C,Y.bl_tree),se(Y,pe-3,3)):(ye(Y,_,Y.bl_tree),se(Y,pe-11,7));Se=Ce,tt=(pe=0)===le?(_e=138,3):Ce===le?(_e=6,3):(_e=7,4)}}t(z);var fe=!1;function J(Y,$,de,we){se(Y,(s<<1)+(we?1:0),3),function(Ce,Se,le,pe){Ue(Ce),pe&&(ee(Ce,le),ee(Ce,~le)),u.arraySet(Ce.pending_buf,Ce.window,Se,le,Ce.pending),Ce.pending+=le}(Y,$,de,!0)}d._tr_init=function(Y){fe||(function(){var $,de,we,Ce,Se,le=new Array(g+1);for(Ce=we=0;Ce<e-1;Ce++)for(X[Ce]=we,$=0;$<1<<T[Ce];$++)P[we++]=Ce;for(P[we-1]=Ce,Ce=Se=0;Ce<16;Ce++)for(z[Ce]=Se,$=0;$<1<<w[Ce];$++)U[Se++]=Ce;for(Se>>=7;Ce<o;Ce++)for(z[Ce]=Se<<7,$=0;$<1<<w[Ce]-7;$++)U[256+Se++]=Ce;for(de=0;de<=g;de++)le[de]=0;for($=0;$<=143;)k[2*$+1]=8,$++,le[8]++;for(;$<=255;)k[2*$+1]=9,$++,le[9]++;for(;$<=279;)k[2*$+1]=7,$++,le[7]++;for(;$<=287;)k[2*$+1]=8,$++,le[8]++;for(ke(k,n+1,le),$=0;$<o;$++)M[2*$+1]=5,M[2*$]=he($,5);F=new V(k,T,l+1,n,g),j=new V(M,w,0,o,g),K=new V(new Array(0),O,0,c,b)}(),fe=!0),Y.l_desc=new Q(Y.dyn_ltree,F),Y.d_desc=new Q(Y.dyn_dtree,j),Y.bl_desc=new Q(Y.bl_tree,K),Y.bi_buf=0,Y.bi_valid=0,Pe(Y)},d._tr_stored_block=J,d._tr_flush_block=function(Y,$,de,we){var Ce,Se,le=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(pe){var _e,tt=4093624447;for(_e=0;_e<=31;_e++,tt>>>=1)if(1&tt&&pe.dyn_ltree[2*_e]!==0)return a;if(pe.dyn_ltree[18]!==0||pe.dyn_ltree[20]!==0||pe.dyn_ltree[26]!==0)return i;for(_e=32;_e<l;_e++)if(pe.dyn_ltree[2*_e]!==0)return i;return a}(Y)),Fe(Y,Y.l_desc),Fe(Y,Y.d_desc),le=function(pe){var _e;for(oe(pe,pe.dyn_ltree,pe.l_desc.max_code),oe(pe,pe.dyn_dtree,pe.d_desc.max_code),Fe(pe,pe.bl_desc),_e=c-1;3<=_e&&pe.bl_tree[2*I[_e]+1]===0;_e--);return pe.opt_len+=3*(_e+1)+5+5+4,_e}(Y),Ce=Y.opt_len+3+7>>>3,(Se=Y.static_len+3+7>>>3)<=Ce&&(Ce=Se)):Ce=Se=de+5,de+4<=Ce&&$!==-1?J(Y,$,de,we):Y.strategy===4||Se===Ce?(se(Y,2+(we?1:0),3),ht(Y,k,M)):(se(Y,4+(we?1:0),3),function(pe,_e,tt,gt){var ct;for(se(pe,_e-257,5),se(pe,tt-1,5),se(pe,gt-4,4),ct=0;ct<gt;ct++)se(pe,pe.bl_tree[2*I[ct]+1],3);rt(pe,pe.dyn_ltree,_e-1),rt(pe,pe.dyn_dtree,tt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,le+1),ht(Y,Y.dyn_ltree,Y.dyn_dtree)),Pe(Y),we&&Ue(Y)},d._tr_tally=function(Y,$,de){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=$>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&$,Y.pending_buf[Y.l_buf+Y.last_lit]=255&de,Y.last_lit++,$===0?Y.dyn_ltree[2*de]++:(Y.matches++,$--,Y.dyn_ltree[2*(P[de]+l+1)]++,Y.dyn_dtree[2*G($)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){se(Y,2,3),ye(Y,S,k),function($){$.bi_valid===16?(ee($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):8<=$.bi_valid&&($.pending_buf[$.pending++]=255&$.bi_buf,$.bi_buf>>=8,$.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,p,d){"use strict";p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(m,p,d){(function(u){!function(a,i){"use strict";if(!a.setImmediate){var t,s,e,l,n=1,o={},c=!1,h=a.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(a);g=g&&g.setTimeout?g:a,t={}.toString.call(a.process)==="[object process]"?function(E){x.nextTick(function(){b(E)})}:function(){if(a.postMessage&&!a.importScripts){var E=!0,C=a.onmessage;return a.onmessage=function(){E=!1},a.postMessage("","*"),a.onmessage=C,E}}()?(l="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),function(E){a.postMessage(l+E,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(E){b(E.data)},function(E){e.port2.postMessage(E)}):h&&"onreadystatechange"in h.createElement("script")?(s=h.documentElement,function(E){var C=h.createElement("script");C.onreadystatechange=function(){b(E),C.onreadystatechange=null,s.removeChild(C),C=null},s.appendChild(C)}):function(E){setTimeout(b,0,E)},g.setImmediate=function(E){typeof E!="function"&&(E=new Function(""+E));for(var C=new Array(arguments.length-1),_=0;_<C.length;_++)C[_]=arguments[_+1];var T={callback:E,args:C};return o[n]=T,t(n),n++},g.clearImmediate=v}function v(E){delete o[E]}function b(E){if(c)setTimeout(b,0,E);else{var C=o[E];if(C){c=!0;try{!function(_){var T=_.callback,w=_.args;switch(w.length){case 0:T();break;case 1:T(w[0]);break;case 2:T(w[0],w[1]);break;case 3:T(w[0],w[1],w[2]);break;default:T.apply(i,w)}}(C)}finally{v(E),c=!1}}}}function S(E){E.source===a&&typeof E.data=="string"&&E.data.indexOf(l)===0&&b(+E.data.slice(l.length))}}(typeof self=="undefined"?u===void 0?this:u:self)}).call(this,typeof f!="undefined"?f:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,r("HDXh").Buffer,r("yLpj"),r("Q2Ig"))},xRUu:function(R,L,r){r("hJvP"),r("hFmY"),r("sAZ8")},xSIq:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};L.default=y},xSat:function(R,L){var r={axisPointer:1,tooltip:1,brush:1};function y(f,x,A){var m=x.getComponentByElement(f.topTarget),p=m&&m.coordinateSystem;return m&&m!==A&&!r[m.mainType]&&p&&p.model!==A}L.onIrrelevantElement=y},xTNl:function(R,L){var r=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:r,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],r]};R.exports=y},xYSL:function(R,L){function r(y,f){return y.has(f)}R.exports=r},xiyX:function(R,L,r){var y=r("bYtY"),f=r("bLfw"),x=r("nkfE"),A=r("ICMv"),m=f.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),p={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function d(a,i){return i.type||(i.data?"category":"value")}y.merge(m.prototype,A),x("single",m,d,p);var u=m;R.exports=u},xlC8:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=y;function y(f,x,A,m){for(var p=f&65535|0,d=f>>>16&65535|0,u=0;A!==0;){u=A>2e3?2e3:A,A-=u;do p=p+x[m++]|0,d=d+p|0;while(--u);p%=65521,d%=65521}return p|d<<16|0}},xvlK:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="PlusOutlined";var d=L.a=f.forwardRef(p)},xzDV:function(R,L,r){},"y+Vt":function(R,L,r){var y=r("Gev7"),f=r("bYtY"),x=r("IMiH"),A=r("2DNl"),m=r("3C/r"),p=m.prototype.getCanvasPattern,d=Math.abs,u=new x(!0);function a(t){y.call(this,t),this.path=null}a.prototype={constructor:a,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(s,e){var l=this.style,n=this.path||u,o=l.hasStroke(),c=l.hasFill(),h=l.fill,g=l.stroke,v=c&&!!h.colorStops,b=o&&!!g.colorStops,S=c&&!!h.image,E=o&&!!g.image;if(l.bind(s,this,e),this.setTransform(s),this.__dirty){var C;v&&(C=C||this.getBoundingRect(),this._fillGradient=l.getGradient(s,h,C)),b&&(C=C||this.getBoundingRect(),this._strokeGradient=l.getGradient(s,g,C))}v?s.fillStyle=this._fillGradient:S&&(s.fillStyle=p.call(h,s)),b?s.strokeStyle=this._strokeGradient:E&&(s.strokeStyle=p.call(g,s));var _=l.lineDash,T=l.lineDashOffset,w=!!s.setLineDash,O=this.getGlobalScale();if(n.setScale(O[0],O[1],this.segmentIgnoreThreshold),this.__dirtyPath||_&&!w&&o?(n.beginPath(s),_&&!w&&(n.setLineDash(_),n.setLineDashOffset(T)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(s.beginPath(),this.path.rebuildPath(s)),c)if(l.fillOpacity!=null){var I=s.globalAlpha;s.globalAlpha=l.fillOpacity*l.opacity,n.fill(s),s.globalAlpha=I}else n.fill(s);if(_&&w&&(s.setLineDash(_),s.lineDashOffset=T),o)if(l.strokeOpacity!=null){var I=s.globalAlpha;s.globalAlpha=l.strokeOpacity*l.opacity,n.stroke(s),s.globalAlpha=I}else n.stroke(s);_&&w&&s.setLineDash([]),l.text!=null&&(this.restoreTransform(s),this.drawRectText(s,this.getBoundingRect()))},buildPath:function(s,e,l){},createPathProxy:function(){this.path=new x},getBoundingRect:function(){var s=this._rect,e=this.style,l=!s;if(l){var n=this.path;n||(n=this.path=new x),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),s=n.getBoundingRect()}if(this._rect=s,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=s.clone());if(this.__dirty||l){o.copy(s);var c=e.lineWidth,h=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),h>1e-10&&(o.width+=c/h,o.height+=c/h,o.x-=c/h/2,o.y-=c/h/2)}return o}return s},contain:function(s,e){var l=this.transformCoordToLocal(s,e),n=this.getBoundingRect(),o=this.style;if(s=l[0],e=l[1],n.contain(s,e)){var c=this.path.data;if(o.hasStroke()){var h=o.lineWidth,g=o.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(o.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),A.containStroke(c,h/g,s,e)))return!0}if(o.hasFill())return A.contain(c,s,e)}return!1},dirty:function(s){s==null&&(s=!0),s&&(this.__dirtyPath=s,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(s){return this.animate("shape",s)},attrKV:function(s,e){s==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,s,e)},setShape:function(s,e){var l=this.shape;if(l){if(f.isObject(s))for(var n in s)s.hasOwnProperty(n)&&(l[n]=s[n]);else l[s]=e;this.dirty(!0)}return this},getLineScale:function(){var s=this.transform;return s&&d(s[0]-1)>1e-10&&d(s[3]-1)>1e-10?Math.sqrt(d(s[0]*s[3]-s[2]*s[1])):1}},a.extend=function(t){var s=function(n){a.call(this,n),t.style&&this.style.extendFrom(t.style,!1);var o=t.shape;if(o){this.shape=this.shape||{};var c=this.shape;for(var h in o)!c.hasOwnProperty(h)&&o.hasOwnProperty(h)&&(c[h]=o[h])}t.init&&t.init.call(this,n)};f.inherits(s,a);for(var e in t)e!=="style"&&e!=="shape"&&(s.prototype[e]=t[e]);return s},f.inherits(a,y);var i=a;R.exports=i},"y+lR":function(R,L,r){var y=r("bYtY"),f=r("mFDi"),x=r("z35g");function A(p){x.call(this,p)}A.prototype={constructor:A,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(p){var d=this.getAxis("x"),u=this.getAxis("y");return d.contain(d.toLocalCoord(p[0]))&&u.contain(u.toLocalCoord(p[1]))},containData:function(p){return this.getAxis("x").containData(p[0])&&this.getAxis("y").containData(p[1])},dataToPoint:function(p,d,u){var a=this.getAxis("x"),i=this.getAxis("y");return u=u||[],u[0]=a.toGlobalCoord(a.dataToCoord(p[0])),u[1]=i.toGlobalCoord(i.dataToCoord(p[1])),u},clampData:function(p,d){var u=this.getAxis("x").scale,a=this.getAxis("y").scale,i=u.getExtent(),t=a.getExtent(),s=u.parse(p[0]),e=a.parse(p[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),d[1]=Math.min(Math.max(Math.min(t[0],t[1]),e),Math.max(t[0],t[1])),d},pointToData:function(p,d){var u=this.getAxis("x"),a=this.getAxis("y");return d=d||[],d[0]=u.coordToData(u.toLocalCoord(p[0])),d[1]=a.coordToData(a.toLocalCoord(p[1])),d},getOtherAxis:function(p){return this.getAxis(p.dim==="x"?"y":"x")},getArea:function(){var p=this.getAxis("x").getGlobalExtent(),d=this.getAxis("y").getGlobalExtent(),u=Math.min(p[0],p[1]),a=Math.min(d[0],d[1]),i=Math.max(p[0],p[1])-u,t=Math.max(d[0],d[1])-a,s=new f(u,a,i,t);return s}},y.inherits(A,x);var m=A;R.exports=m},"y0+3":function(R,L,r){"use strict";r.d(L,"a",function(){return t}),r.d(L,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,f={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function A(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function m(l,n,o){if(n=n.toLowerCase(),o==="auto"){if(n==="height")return l.offsetHeight;if(n==="width")return l.offsetWidth}return n in f||(f[n]=y.test(n)),f[n]?parseFloat(o)||0:o}function p(l,n){var o=arguments.length,c=A(l);return n=x[n]?"cssFloat"in l.style?"cssFloat":"styleFloat":n,o===1?c:m(l,n,c[n]||l.style[n])}function d(l,n,o){var c=arguments.length;if(n=x[n]?"cssFloat"in l.style?"cssFloat":"styleFloat":n,c===3)return typeof o=="number"&&y.test(n)&&(o="".concat(o,"px")),l.style[n]=o,o;for(var h in n)n.hasOwnProperty(h)&&d(l,h,n[h]);return A(l)}function u(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function a(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function i(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:n}}function t(){var l=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:n}}function s(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(l){var n=l.getBoundingClientRect(),o=document.documentElement;return{left:n.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||document.body.clientTop||0)}}},y1pI:function(R,L,r){var y=r("ljhN");function f(x,A){for(var m=x.length;m--;)if(y(x[m][0],A))return m;return-1}R.exports=f},y23F:function(R,L){function r(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}r.prototype={constructor:r,_dragStart:function(A){for(var m=A.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(y(m,A),"dragstart",A.event))},_drag:function(A){var m=this._draggingTarget;if(m){var p=A.offsetX,d=A.offsetY,u=p-this._x,a=d-this._y;this._x=p,this._y=d,m.drift(u,a,A),this.dispatchToElement(y(m,A),"drag",A.event);var i=this.findHover(p,d,m).target,t=this._dropTarget;this._dropTarget=i,m!==i&&(t&&i!==t&&this.dispatchToElement(y(t,A),"dragleave",A.event),i&&i!==t&&this.dispatchToElement(y(i,A),"dragenter",A.event))}},_dragEnd:function(A){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function y(x,A){return{target:x,topTarget:A&&A.topTarget}}var f=r;R.exports=f},y2l5:function(R,L,r){var y=r("MwEJ"),f=r("T4UG"),x=f.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var A=this.option.progressive;return A==null?this.option.large?5e3:this.get("progressive"):A},getProgressiveThreshold:function(){var A=this.option.progressiveThreshold;return A==null?this.option.large?1e4:this.get("progressiveThreshold"):A},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});R.exports=x},y3Kf:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={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"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="UpOutlined";var d=L.a=f.forwardRef(p)},y3NT:function(R,L,r){var y=r("OELB"),f=y.parsePercent,x=r("bYtY"),A=Math.PI/180;function m(u,a,i,t){a.eachSeriesByType(u,function(s){var e=s.get("center"),l=s.get("radius");x.isArray(l)||(l=[0,l]),x.isArray(e)||(e=[e,e]);var n=i.getWidth(),o=i.getHeight(),c=Math.min(n,o),h=f(e[0],n),g=f(e[1],o),v=f(l[0],c/2),b=f(l[1],c/2),S=-s.get("startAngle")*A,E=s.get("minAngle")*A,C=s.getData().tree.root,_=s.getViewRoot(),T=_.depth,w=s.get("sort");w!=null&&p(_,w);var O=0;x.each(_.children,function(G){!isNaN(G.getValue())&&O++});var I=_.getValue(),k=Math.PI/(I||O)*2,M=_.depth>0,U=_.height-(M?-1:1),P=(b-v)/(U||1),X=s.get("clockwise"),F=s.get("stillShowZeroSum"),j=X?1:-1,K=function(G,ee){if(!G)return;var se=ee;if(G!==C){var ye=G.getValue(),he=I===0&&F?k:ye*k;he<E&&(he=E),se=ee+j*he;var ke=G.depth-T-(M?-1:1),Pe=v+P*ke,Ue=v+P*(ke+1),$e=G.getModel();$e.get("r0")!=null&&(Pe=f($e.get("r0"),c/2)),$e.get("r")!=null&&(Ue=f($e.get("r"),c/2)),G.setLayout({angle:he,startAngle:ee,endAngle:se,clockwise:X,cx:h,cy:g,r0:Pe,r:Ue})}if(G.children&&G.children.length){var Ge=0;x.each(G.children,function(ht){Ge+=K(ht,ee+Ge)})}return se-ee};if(M){var z=v,V=v+P,Q=Math.PI*2;C.setLayout({angle:Q,startAngle:S,endAngle:S+Q,clockwise:X,cx:h,cy:g,r0:z,r:V})}K(_,S)})}function p(u,a){var i=u.children||[];u.children=d(i,a),i.length&&x.each(u.children,function(t){p(t,a)})}function d(u,a){if(typeof a=="function")return u.sort(a);var i=a==="asc";return u.sort(function(t,s){var e=(t.getValue()-s.getValue())*(i?1:-1);return e===0?(t.dataIndex-s.dataIndex)*(i?-1:1):e})}R.exports=m},"y4/Y":function(R,L,r){var y=r("ProS"),f=r("bYtY"),x=r("zTMp"),A=r("62sa");r("SKx+"),r("1LEl"),r("Sp2Z"),y.registerPreprocessor(function(m){if(m){(!m.axisPointer||m.axisPointer.length===0)&&(m.axisPointer={});var p=m.axisPointer.link;p&&!f.isArray(p)&&(m.axisPointer.link=[p])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(m,p){m.getComponent("axisPointer").coordSysAxesInfo=x.collect(m,p)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(R,L,r){var y=r("bYtY"),f=r("+TT/"),x=f.getLayoutRect;function A(p,d,u){var a=p.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var t={width:d.getWidth(),height:d.getHeight()},s=a.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[s],n=[0,null,10],o={},c=0;c<3;c++)o[e[1-s][c]]=n[c],o[l[c]]=c===2?u[0]:a[l[c]];var h=[["x","width",3],["y","height",0]][s],g=x(o,t,a.padding);return l[(g.margin[h[2]]||0)+g[h[0]]+g[h[1]]*.5<t[h[1]]*.5?0:1]}function m(p,d){return y.each(p||[],function(u){u.dataIndex!=null&&(u.dataIndexInside=u.dataIndex,u.dataIndex=null),u.highlightKey="visualMap"+(d?d.componentIndex:"")}),p}L.getItemAlign=A,L.makeHighDownBatch=m},y8nQ:function(R,L,r){"use strict";var y=r("cIOH"),f=r.n(y),x=r("gwTy"),A=r.n(x),m=r("1GLa")},yEEn:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="ArrowDownOutlined";var d=L.a=f.forwardRef(p)},yFXq:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("bsht")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="SearchOutlined";var i=A.forwardRef(a);L.default=i},yGk4:function(R,L,r){var y=r("Cwc5"),f=r("Kz5y"),x=y(f,"Set");R.exports=x},yO87:function(R,L,r){var y=r("bYtY"),f=r("oVpE"),x=f.createSymbol,A=r("IwbS"),m=A.Group,p=r("OELB"),d=p.parsePercent,u=r("FBjb"),a=3;function i(n){return y.isArray(n)||(n=[+n,+n]),n}function t(n,o){var c=o.rippleEffectColor||o.color;n.eachChild(function(h){h.attr({z:o.z,zlevel:o.zlevel,style:{stroke:o.brushType==="stroke"?c:null,fill:o.brushType==="fill"?c:null}})})}function s(n,o){m.call(this);var c=new u(n,o),h=new m;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(n,o)}var e=s.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(n){for(var o=n.symbolType,c=n.color,h=this.childAt(1),g=0;g<a;g++){var v=x(o,-1,-1,2,2,c);v.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/a*n.period+n.effectOffset;v.animate("",!0).when(n.period,{scale:[n.rippleScale/2,n.rippleScale/2]}).delay(b).start(),v.animateStyle(!0).when(n.period,{opacity:0}).delay(b).start(),h.add(v)}t(h,n)},e.updateEffectAnimation=function(n){for(var o=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var v=h[g];if(o[v]!==n[v]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}t(c,n)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(n,o){var c=n.hostModel;this.childAt(0).updateData(n,o);var h=this.childAt(1),g=n.getItemModel(o),v=n.getItemVisual(o,"symbol"),b=i(n.getItemVisual(o,"symbolSize")),S=n.getItemVisual(o,"color");h.attr("scale",b),h.traverse(function(k){k.attr({fill:S})});var E=g.getShallow("symbolOffset");if(E){var C=h.position;C[0]=d(E[0],b[0]),C[1]=d(E[1],b[1])}var _=n.getItemVisual(o,"symbolRotate");h.rotation=(_||0)*Math.PI/180||0;var T={};if(T.showEffectOn=c.get("showEffectOn"),T.rippleScale=g.get("rippleEffect.scale"),T.brushType=g.get("rippleEffect.brushType"),T.period=g.get("rippleEffect.period")*1e3,T.effectOffset=o/n.count(),T.z=g.getShallow("z")||0,T.zlevel=g.getShallow("zlevel")||0,T.symbolType=v,T.color=S,T.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),T.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(T):this.startEffectAnimation(T),this._effectCfg=T;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),O=function(){w.highlight(),T.showEffectOn!=="render"&&this.startEffectAnimation(T)},I=function(){w.downplay(),T.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=T},e.fadeOut=function(n){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),n&&n()},y.inherits(s,m);var l=s;R.exports=l},yS9w:function(R,L,r){var y=r("MEGo"),f=y.parseSVG,x=y.makeViewBoxTransform,A=r("4fz+"),m=r("x6Kt"),p=r("bYtY"),d=p.assert,u=p.createHashMap,a=r("mFDi"),i=r("4NO4"),t=i.makeInner,s=t(),e={load:function(n,o){var c=s(o).originRoot;if(c)return{root:c,boundingRect:s(o).boundingRect};var h=l(o);return s(o).originRoot=h.root,s(o).boundingRect=h.boundingRect,h},makeGraphic:function(n,o,c){var h=s(o),g=h.rootMap||(h.rootMap=u()),v=g.get(c);if(v)return v;var b=h.originRoot,S=h.boundingRect;return h.originRootHostKey?v=l(o,S).root:(h.originRootHostKey=c,v=b),g.set(c,v)},removeGraphic:function(n,o,c){var h=s(o),g=h.rootMap;g&&g.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function l(n,o){var c=n.svgXML,h,g;try{h=c&&f(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=h.root,d(g!=null)}catch(_){throw new Error(`Invalid svg format
`+_.message)}var v=h.width,b=h.height,S=h.viewBoxRect;if(o||(o=v==null||b==null?g.getBoundingRect():new a(0,0,0,0),v!=null&&(o.width=v),b!=null&&(o.height=b)),S){var E=x(S,o.width,o.height),C=g;g=new A,g.add(C),C.scale=E.scale,C.position=E.position}return g.setClipPath(new m({shape:o.plain()})),{root:g,boundingRect:o}}R.exports=e},yWXo:function(R,L,r){var y=r("IwbS"),f=r("oVpE"),x=f.createSymbol,A=r("OS9S"),m=4,p=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(i,t){var s=t.points,e=t.size,l=this.symbolProxy,n=l.shape,o=i.getContext?i.getContext():i,c=o&&e[0]<m;if(c)return;for(var h=0;h<s.length;){var g=s[h++],v=s[h++];if(isNaN(g)||isNaN(v))continue;if(this.softClipShape&&!this.softClipShape.contain(g,v))continue;n.x=g-e[0]/2,n.y=v-e[1]/2,n.width=e[0],n.height=e[1],l.buildPath(i,n,!0)}},afterBrush:function(i){var t=this.shape,s=t.points,e=t.size,l=e[0]<m;if(!l)return;this.setTransform(i);for(var n=0;n<s.length;){var o=s[n++],c=s[n++];if(isNaN(o)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(o,c))continue;i.fillRect(o-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(i)},findDataIndex:function(i,t){for(var s=this.shape,e=s.points,l=s.size,n=Math.max(l[0],4),o=Math.max(l[1],4),c=e.length/2-1;c>=0;c--){var h=c*2,g=e[h]-n/2,v=e[h+1]-o/2;if(i>=g&&t>=v&&i<=g+n&&t<=v+o)return c}return-1}});function d(){this.group=new y.Group}var u=d.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(i,t){this.group.removeAll();var s=new p({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(s,i,!1,t),this.group.add(s),this._incremental=null},u.updateLayout=function(i){if(this._incremental)return;var t=i.getLayout("symbolPoints");this.group.eachChild(function(s){if(s.startIndex!=null){var e=(s.endIndex-s.startIndex)*2,l=s.startIndex*4*2;t=new Float32Array(t.buffer,l,e)}s.setShape("points",t)})},u.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(i,t,s){var e;this._incremental?(e=new p,this._incremental.addDisplayable(e,!0)):(e=new p({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,s)},u._setCommon=function(i,t,s,e){var l=t.hostModel;e=e||{};var n=t.getVisual("symbolSize");i.setShape("size",n instanceof Array?n:[n,n]),i.softClipShape=e.clipShape||null,i.symbolProxy=x(t.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var o=i.shape.size[0]<m;i.useStyle(l.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&i.setColor(c),s||(i.seriesIndex=l.seriesIndex,i.on("mousemove",function(h){i.dataIndex=null;var g=i.findDataIndex(h.offsetX,h.offsetY);g>=0&&(i.dataIndex=g+(i.startIndex||0))}))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var a=d;R.exports=a},ycre:function(R,L,r){var y=r("711d"),f=y("length");R.exports=f},ydAt:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var y=f(r("3zu8"));function f(A){return A&&A.__esModule?A:{default:A}}var x=y;L.default=x,R.exports=x},ye1Q:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="LoadingOutlined";var d=L.a=f.forwardRef(p)},ygfH:function(R,L,r){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};L.default=y},yik8:function(R,L,r){var y=r("bZqE"),f=y.eachAfter,x=y.eachBefore,A=r("Itpr"),m=A.init,p=A.firstWalk,d=A.secondWalk,u=A.separation,a=A.radialCoordinate,i=A.getViewRect;function t(e,l){e.eachSeriesByType("tree",function(n){s(n,l)})}function s(e,l){var n=i(e,l);e.layoutInfo=n;var o=e.get("layout"),c=0,h=0,g=null;o==="radial"?(c=2*Math.PI,h=Math.min(n.height,n.width)/2,g=u(function(U,P){return(U.parentNode===P.parentNode?1:2)/U.depth})):(c=n.width,h=n.height,g=u());var v=e.getData().tree.root,b=v.children[0];if(b){m(v),f(b,p,g),v.hierNode.modifier=-b.hierNode.prelim,x(b,d);var S=b,E=b,C=b;x(b,function(U){var P=U.getLayout().x;P<S.getLayout().x&&(S=U),P>E.getLayout().x&&(E=U),U.depth>C.depth&&(C=U)});var _=S===E?1:g(S,E)/2,T=_-S.getLayout().x,w=0,O=0,I=0,k=0;if(o==="radial")w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(U){I=(U.getLayout().x+T)*w,k=(U.depth-1)*O;var P=a(I,k);U.setLayout({x:P.x,y:P.y,rawX:I,rawY:k},!0)});else{var M=e.getOrient();M==="RL"||M==="LR"?(O=h/(E.getLayout().x+_+T),w=c/(C.depth-1||1),x(b,function(U){k=(U.getLayout().x+T)*O,I=M==="LR"?(U.depth-1)*w:c-(U.depth-1)*w,U.setLayout({x:I,y:k},!0)})):(M==="TB"||M==="BT")&&(w=c/(E.getLayout().x+_+T),O=h/(C.depth-1||1),x(b,function(U){I=(U.getLayout().x+T)*w,k=M==="TB"?(U.depth-1)*O:h-(U.depth-1)*O,U.setLayout({x:I,y:k},!0)}))}}}R.exports=t},ynwM:function(R,L,r){var y=r("MFOe"),f=y.Global;R.exports={name:"oldFF-globalStorage",read:A,write:m,each:p,remove:d,clearAll:u};var x=f.globalStorage;function A(a){return x[a]}function m(a,i){x[a]=i}function p(a){for(var i=x.length-1;i>=0;i--){var t=x.key(i);a(x[t],t)}}function d(a){return x.removeItem(a)}function u(){p(function(a,i){delete x[a]})}},ypgQ:function(R,L,r){var y=r("bYtY"),f=r("4NO4"),x=r("bLfw"),A=y.each,m=y.clone,p=y.map,d=y.merge,u=/^(min|max)?(.+)$/;function a(o){this._api=o,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}a.prototype={constructor:a,setOption:function(o,c){o&&y.each(f.normalizeToArray(o.series),function(v){v&&v.data&&y.isTypedArray(v.data)&&y.setAsPrimitive(v.data)}),o=m(o);var h=this._optionBackup,g=i.call(this,o,c,!h);this._newBaseOption=g.baseOption,h?(l(h.baseOption,g.baseOption),g.timelineOptions.length&&(h.timelineOptions=g.timelineOptions),g.mediaList.length&&(h.mediaList=g.mediaList),g.mediaDefault&&(h.mediaDefault=g.mediaDefault)):this._optionBackup=g},mountOption:function(o){var c=this._optionBackup;return this._timelineOptions=p(c.timelineOptions,m),this._mediaList=p(c.mediaList,m),this._mediaDefault=m(c.mediaDefault),this._currentMediaIndices=[],m(o?c.baseOption:this._newBaseOption)},getTimelineOption:function(o){var c,h=this._timelineOptions;if(h.length){var g=o.getComponent("timeline");g&&(c=m(h[g.getCurrentIndex()],!0))}return c},getMediaOption:function(o){var c=this._api.getWidth(),h=this._api.getHeight(),g=this._mediaList,v=this._mediaDefault,b=[],S=[];if(!g.length&&!v)return S;for(var E=0,C=g.length;E<C;E++)t(g[E].query,c,h)&&b.push(E);return!b.length&&v&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(S=p(b,function(_){return m(_===-1?v.option:g[_].option)})),this._currentMediaIndices=b,S}};function i(o,c,h){var g=[],v=[],b,S,E=o.timeline;if(o.baseOption&&(S=o.baseOption),(E||o.options)&&(S=S||{},g=(o.options||[]).slice()),o.media){S=S||{};var C=o.media;A(C,function(_){_&&_.option&&(_.query?v.push(_):b||(b=_))})}return S||(S=o),S.timeline||(S.timeline=E),A([S].concat(g).concat(y.map(v,function(_){return _.option})),function(_){A(c,function(T){T(_,h)})}),{baseOption:S,timelineOptions:g,mediaDefault:b,mediaList:v}}function t(o,c,h){var g={width:c,height:h,aspectratio:c/h},v=!0;return y.each(o,function(b,S){var E=S.match(u);if(!E||!E[1]||!E[2])return;var C=E[1],_=E[2].toLowerCase();s(g[_],b,C)||(v=!1)}),v}function s(o,c,h){return h==="min"?o>=c:h==="max"?o<=c:o===c}function e(o,c){return o.join(",")===c.join(",")}function l(o,c){c=c||{},A(c,function(h,g){if(h==null)return;var v=o[g];if(!x.hasClass(g))o[g]=d(v,h,!0);else{h=f.normalizeToArray(h),v=f.normalizeToArray(v);var b=f.mappingToExists(v,h);o[g]=p(b,function(S){return S.option&&S.exist?d(S.exist,S.option,!0):S.exist||S.option})}})}var n=a;R.exports=n},yxFR:function(R,L,r){var y=r("y+Vt"),f=r("nPnh"),x=f.subPixelOptimizeLine,A={},m=y.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(d,u){var a,i,t,s;this.subPixelOptimize?(x(A,u,this.style),a=A.x1,i=A.y1,t=A.x2,s=A.y2):(a=u.x1,i=u.y1,t=u.x2,s=u.y2);var e=u.percent;if(e===0)return;d.moveTo(a,i),e<1&&(t=a*(1-e)+t*e,s=i*(1-e)+s*e),d.lineTo(t,s)},pointAt:function(d){var u=this.shape;return[u.x1*(1-d)+u.x2*d,u.y1*(1-d)+u.y2*d]}});R.exports=m},z35g:function(R,L,r){var y=r("bYtY");function f(m){return this._axes[m]}var x=function(m){this._axes={},this._dimList=[],this.name=m||""};x.prototype={constructor:x,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,f,this)},getAxesByScale:function(m){return m=m.toLowerCase(),y.filter(this.getAxes(),function(p){return p.scale.type===m})},addAxis:function(m){var p=m.dim;this._axes[p]=m,this._dimList.push(p)},dataToCoord:function(m){return this._dataCoordConvert(m,"dataToCoord")},coordToData:function(m){return this._dataCoordConvert(m,"coordToData")},_dataCoordConvert:function(m,p){for(var d=this._dimList,u=m instanceof Array?[]:{},a=0;a<d.length;a++){var i=d[a],t=this._axes[i];u[i]=t[p](m[i])}return u}};var A=x;R.exports=A},z7Xi:function(R,L,r){"use strict";var y=r("VTBJ"),f=r("q1tI"),x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},A=x,m=r("6VBw"),p=function(a,i){return f.createElement(m.a,Object(y.a)(Object(y.a)({},a),{},{ref:i,icon:A}))};p.displayName="UploadOutlined";var d=L.a=f.forwardRef(p)},zAh6:function(R,L,r){"use strict";r.d(L,"a",function(){return m});var y=r("xEkU"),f=r.n(y),x=r("i6bk");function A(p,d,u,a){var i=u-d;return p/=a/2,p<1?i/2*p*p*p+d:i/2*((p-=2)*p*p+2)+d}function m(p){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=d.getContainer,a=u===void 0?function(){return window}:u,i=d.callback,t=d.duration,s=t===void 0?450:t,e=a(),l=Object(x.a)(e,!0),n=Date.now(),o=function c(){var h=Date.now(),g=h-n,v=A(g>s?s:g,l,p,s);Object(x.b)(e)?e.scrollTo(window.pageXOffset,v):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=v:e.scrollTop=v,g<s?f()(c):typeof i=="function"&&i()};f()(o)}},zDms:function(R,L,r){var y=r("bYtY"),f=r("OELB"),x=r("UOVi"),A=r("72pK"),m=y.each,p=f.asc,d=function(e,l,n,o){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=o,this._dataZoomModel=n};d.prototype={constructor:d,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],l=this.ecModel;return l.eachSeries(function(n){if(x.isCoordSupported(n.get("coordinateSystem"))){var o=this._dimName,c=l.queryComponents({mainType:o+"Axis",index:n.get(o+"AxisIndex"),id:n.get(o+"AxisId")})[0];this._axisIndex===(c&&c.componentIndex)&&e.push(n)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,n=this.getAxisModel(),o=e==="x"||e==="y",c,h;o?(h="gridIndex",c=e==="x"?"y":"x"):(h="polarIndex",c=e==="angle"?"radius":"angle");var g;return l.eachComponent(c+"Axis",function(v){(v.get(h)||0)===(n.get(h)||0)&&(g=v)}),g},getMinMaxSpan:function(){return y.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,n=this.getAxisModel(),o=n.axis.scale,c=this._dataZoomModel.getRangePropMode(),h=[0,100],g=[],v=[],b;m(["start","end"],function(C,_){var T=e[C],w=e[C+"Value"];c[_]==="percent"?(T==null&&(T=h[_]),w=o.parse(f.linearMap(T,h,l))):(b=!0,w=w==null?l[_]:o.parse(w),T=f.linearMap(w,l,h)),v[_]=w,g[_]=T}),p(v),p(g);var S=this._minMaxSpan;b?E(v,g,l,h,!1):E(g,v,h,l,!0);function E(C,_,T,w,O){var I=O?"Span":"ValueSpan";A(0,C,T,"all",S["min"+I],S["max"+I]);for(var k=0;k<2;k++)_[k]=f.linearMap(C[k],T,w,!0),O&&(_[k]=o.parse(_[k]))}return{valueWindow:v,percentWindow:g}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,l),t(this);var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,i(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,i(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var n=this._dimName,o=this.getTargetSeriesModels(),c=e.get("filterMode"),h=this._valueWindow;if(c==="none")return;m(o,function(v){var b=v.getData(),S=b.mapDimension(n,!0);if(!S.length)return;c==="weakFilter"?b.filterSelf(function(E){for(var C,_,T,w=0;w<S.length;w++){var O=b.get(S[w],E),I=!isNaN(O),k=O<h[0],M=O>h[1];if(I&&!k&&!M)return!0;I&&(T=!0),k&&(C=!0),M&&(_=!0)}return T&&C&&_}):m(S,function(E){if(c==="empty")v.setData(b=b.map(E,function(_){return g(_)?_:NaN}));else{var C={};C[E]=h,b.selectRange(C)}}),m(S,function(E){b.setApproximateExtent(h,E)})});function g(v){return v>=h[0]&&v<=h[1]}}};function u(e,l,n){var o=[Infinity,-Infinity];return m(n,function(c){var h=c.getData();h&&m(h.mapDimension(l,!0),function(g){var v=h.getApproximateExtent(g);v[0]<o[0]&&(o[0]=v[0]),v[1]>o[1]&&(o[1]=v[1])})}),o[1]<o[0]&&(o=[NaN,NaN]),a(e,o),o}function a(e,l){var n=e.getAxisModel(),o=n.getMin(!0),c=n.get("type")==="category",h=c&&n.getCategories().length;o!=null&&o!=="dataMin"&&typeof o!="function"?l[0]=o:c&&(l[0]=h>0?0:NaN);var g=n.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?l[1]=g:c&&(l[1]=h>0?h-1:NaN),n.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function i(e,l){var n=e.getAxisModel(),o=e._percentWindow,c=e._valueWindow;if(!o)return;var h=f.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var g=l||o[0]===0&&o[1]===100;n.setRange(g?null:+c[0].toFixed(h),g?null:+c[1].toFixed(h))}function t(e){var l=e._minMaxSpan={},n=e._dataZoomModel,o=e._dataExtent;m(["min","max"],function(c){var h=n.get(c+"Span"),g=n.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?h=f.linearMap(o[0]+g,o,[0,100],!0):h!=null&&(g=f.linearMap(h,[0,100],o,!0)-o[0]),l[c+"Span"]=h,l[c+"ValueSpan"]=g})}var s=d;R.exports=s},zM3Q:function(R,L,r){var y=r("4NO4"),f=y.makeInner;function x(){var A=f();return function(m){var p=A(m),d=m.pipelineContext,u=p.large,a=p.progressiveRender,i=p.large=d&&d.large,t=p.progressiveRender=d&&d.progressiveRender;return!!(u^i||a^t)&&"reset"}}R.exports=x},zRKj:function(R,L,r){r("Ae16"),r("Sp2Z"),r("y4/Y")},zTMp:function(R,L,r){var y=r("bYtY"),f=r("Qxkt"),x=y.each,A=y.curry;function m(o,c){var h={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return p(h,o,c),h.seriesInvolved&&u(h,o),h}function p(o,c,h){var g=c.getComponent("tooltip"),v=c.getComponent("axisPointer"),b=v.get("link",!0)||[],S=[];x(h.getCoordinateSystems(),function(E){if(!E.axisPointerEnabled)return;var C=n(E.model),_=o.coordSysAxesInfo[C]={};o.coordSysMap[C]=E;var T=E.model,w=T.getModel("tooltip",g);if(x(E.getAxes(),A(M,!1,null)),E.getTooltipAxes&&g&&w.get("show")){var O=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",k=E.getTooltipAxes(w.get("axisPointer.axis"));(O||I)&&x(k.baseAxes,A(M,I?"cross":!0,O)),I&&x(k.otherAxes,A(M,"cross",!1))}function M(U,P,X){var F=X.model.getModel("axisPointer",v),j=F.get("show");if(!j||j==="auto"&&!U&&!l(F))return;P==null&&(P=F.get("triggerTooltip")),F=U?d(X,w,v,c,U,P):F;var K=F.get("snap"),z=n(X.model),V=P||K||X.type==="category",Q=o.axesInfo[z]={key:z,axis:X,coordSys:E,axisPointerModel:F,triggerTooltip:P,involveSeries:V,snap:K,useHandle:l(F),seriesModels:[]};_[z]=Q,o.seriesInvolved|=V;var G=a(b,X);if(G!=null){var ee=S[G]||(S[G]={axesInfo:{}});ee.axesInfo[z]=Q,ee.mapper=b[G].mapper,Q.linkGroup=ee}}})}function d(o,c,h,g,v,b){var S=c.getModel("axisPointer"),E={};x(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){E[w]=y.clone(S.get(w))}),E.snap=o.type!=="category"&&!!b,S.get("type")==="cross"&&(E.type="line");var C=E.label||(E.label={});if(C.show==null&&(C.show=!1),v==="cross"){var _=S.get("label.show");if(C.show=_!=null?_:!0,!b){var T=E.lineStyle=S.get("crossStyle");T&&y.defaults(C,T.textStyle)}}return o.model.getModel("axisPointer",new f(E,h,g))}function u(o,c){c.eachSeries(function(h){var g=h.coordinateSystem,v=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!g||v==="none"||v===!1||v==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;x(o.coordSysAxesInfo[n(g.model)],function(S){var E=S.axis;g.getAxis(E.dim)===E&&(S.seriesModels.push(h),S.seriesDataCount==null&&(S.seriesDataCount=0),S.seriesDataCount+=h.getData().count())})},this)}function a(o,c){for(var h=c.model,g=c.dim,v=0;v<o.length;v++){var b=o[v]||{};if(i(b[g+"AxisId"],h.id)||i(b[g+"AxisIndex"],h.componentIndex)||i(b[g+"AxisName"],h.name))return v}}function i(o,c){return o==="all"||y.isArray(o)&&y.indexOf(o,c)>=0||o===c}function t(o){var c=s(o);if(!c)return;var h=c.axisPointerModel,g=c.axis.scale,v=h.option,b=h.get("status"),S=h.get("value");S!=null&&(S=g.parse(S));var E=l(h);b==null&&(v.status=E?"show":"hide");var C=g.getExtent().slice();C[0]>C[1]&&C.reverse(),(S==null||S>C[1])&&(S=C[1]),S<C[0]&&(S=C[0]),v.value=S,E&&(v.status=c.axis.scale.isBlank()?"hide":"show")}function s(o){var c=(o.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[n(o)]}function e(o){var c=s(o);return c&&c.axisPointerModel}function l(o){return!!o.get("handle.show")}function n(o){return o.type+"||"+o.id}L.collect=m,L.fixValue=t,L.getAxisInfo=s,L.getAxisPointerModel=e,L.makeKey=n},zYTA:function(R,L,r){var y=r("bYtY"),f=256;function x(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}x.prototype={update:function(m,p,d,u,a,i){var t=this._getBrush(),s=this._getGradient(m,a,"inRange"),e=this._getGradient(m,a,"outOfRange"),l=this.pointSize+this.blurSize,n=this.canvas,o=n.getContext("2d"),c=m.length;n.width=p,n.height=d;for(var h=0;h<c;++h){var g=m[h],v=g[0],b=g[1],S=g[2],E=u(S);o.globalAlpha=E,o.drawImage(t,v-l,b-l)}if(!n.width||!n.height)return n;for(var C=o.getImageData(0,0,n.width,n.height),_=C.data,T=0,w=_.length,O=this.minOpacity,I=this.maxOpacity,k=I-O;T<w;){var E=_[T+3]/256,M=Math.floor(E*(f-1))*4;if(E>0){var U=i(E)?s:e;E>0&&(E=E*k+O),_[T++]=U[M],_[T++]=U[M+1],_[T++]=U[M+2],_[T++]=U[M+3]*E*256}else T+=4}return o.putImageData(C,0,0),n},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),p=this.pointSize+this.blurSize,d=p*2;m.width=d,m.height=d;var u=m.getContext("2d");return u.clearRect(0,0,d,d),u.shadowOffsetX=d,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-p,p,this.pointSize,0,Math.PI*2,!0),u.closePath(),u.fill(),m},_getGradient:function(m,p,d){for(var u=this._gradientPixels,a=u[d]||(u[d]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],t=0,s=0;s<256;s++)p[d](s/255,!0,i),a[t++]=i[0],a[t++]=i[1],a[t++]=i[2],a[t++]=i[3];return a}};var A=x;R.exports=A},zarK:function(R,L,r){var y=r("YH21"),f=y.addEventListener,x=y.removeEventListener,A=y.normalizeEvent,m=y.getNativeEvent,p=r("bYtY"),d=r("H6uX"),u=r("ItGF"),a=300,i=u.domSupported,t=function(){var U=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],P=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=p.map(U,function(j){var K=j.replace("mouse","pointer");return X.hasOwnProperty(K)?K:j});return{mouse:U,touch:P,pointer:F}}(),s={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(U){return U==="mousewheel"&&u.browser.firefox?"DOMMouseScroll":U}function l(U){var P=U.pointerType;return P==="pen"||P==="touch"}function n(U){U.touching=!0,U.touchTimer!=null&&(clearTimeout(U.touchTimer),U.touchTimer=null),U.touchTimer=setTimeout(function(){U.touching=!1,U.touchTimer=null},700)}function o(U){U&&(U.zrByTouch=!0)}function c(U,P){return A(U.dom,new g(U,P),!0)}function h(U,P){for(var X=P,F=!1;X&&X.nodeType!==9&&!(F=X.domBelongToZr||X!==P&&X===U.painterRoot);)X=X.parentNode;return F}function g(U,P){this.type=P.type,this.target=this.currentTarget=U.dom,this.pointerType=P.pointerType,this.clientX=P.clientX,this.clientY=P.clientY}var v=g.prototype;v.stopPropagation=v.stopImmediatePropagation=v.preventDefault=p.noop;var b={mousedown:function(P){P=A(this.dom,P),this._mayPointerCapture=[P.zrX,P.zrY],this.trigger("mousedown",P)},mousemove:function(P){P=A(this.dom,P);var X=this._mayPointerCapture;X&&(P.zrX!==X[0]||P.zrY!==X[1])&&w(this,!0),this.trigger("mousemove",P)},mouseup:function(P){P=A(this.dom,P),w(this,!1),this.trigger("mouseup",P)},mouseout:function(P){P=A(this.dom,P),this._pointerCapturing&&(P.zrEventControl="no_globalout");var X=P.toElement||P.relatedTarget;P.zrIsToLocalDOM=h(this,X),this.trigger("mouseout",P)},touchstart:function(P){P=A(this.dom,P),o(P),this._lastTouchMoment=new Date,this.handler.processGesture(P,"start"),b.mousemove.call(this,P),b.mousedown.call(this,P)},touchmove:function(P){P=A(this.dom,P),o(P),this.handler.processGesture(P,"change"),b.mousemove.call(this,P)},touchend:function(P){P=A(this.dom,P),o(P),this.handler.processGesture(P,"end"),b.mouseup.call(this,P),+new Date-this._lastTouchMoment<a&&b.click.call(this,P)},pointerdown:function(P){b.mousedown.call(this,P)},pointermove:function(P){l(P)||b.mousemove.call(this,P)},pointerup:function(P){b.mouseup.call(this,P)},pointerout:function(P){l(P)||b.mouseout.call(this,P)}};p.each(["click","mousewheel","dblclick","contextmenu"],function(U){b[U]=function(P){P=A(this.dom,P),this.trigger(U,P)}});var S={pointermove:function(P){l(P)||S.mousemove.call(this,P)},pointerup:function(P){S.mouseup.call(this,P)},mousemove:function(P){this.trigger("mousemove",P)},mouseup:function(P){var X=this._pointerCapturing;w(this,!1),this.trigger("mouseup",P),X&&(P.zrEventControl="only_globalout",this.trigger("mouseout",P))}};function E(U,P){var X=P.domHandlers;u.pointerEventsSupported?p.each(t.pointer,function(F){_(P,F,function(j){X[F].call(U,j)})}):(u.touchEventsSupported&&p.each(t.touch,function(F){_(P,F,function(j){X[F].call(U,j),n(P)})}),p.each(t.mouse,function(F){_(P,F,function(j){j=m(j),P.touching||X[F].call(U,j)})}))}function C(U,P){u.pointerEventsSupported?p.each(s.pointer,X):u.touchEventsSupported||p.each(s.mouse,X);function X(F){function j(K){K=m(K),h(U,K.target)||(K=c(U,K),P.domHandlers[F].call(U,K))}_(P,F,j,{capture:!0})}}function _(U,P,X,F){U.mounted[P]=X,U.listenerOpts[P]=F,f(U.domTarget,e(P),X,F)}function T(U){var P=U.mounted;for(var X in P)P.hasOwnProperty(X)&&x(U.domTarget,e(X),P[X],U.listenerOpts[X]);U.mounted={}}function w(U,P){if(U._mayPointerCapture=null,i&&U._pointerCapturing^P){U._pointerCapturing=P;var X=U._globalHandlerScope;P?C(U,X):T(X)}}function O(U,P){this.domTarget=U,this.domHandlers=P,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(U,P){d.call(this),this.dom=U,this.painterRoot=P,this._localHandlerScope=new O(U,b),i&&(this._globalHandlerScope=new O(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,E(this,this._localHandlerScope)}var k=I.prototype;k.dispose=function(){T(this._localHandlerScope),i&&T(this._globalHandlerScope)},k.setCursor=function(U){this.dom.style&&(this.dom.style.cursor=U||"default")},p.mixin(I,d);var M=I;R.exports=M},zeV3:function(R,L,r){"use strict";var y=r("pVnL"),f=r.n(y),x=r("lSNA"),A=r.n(x),m=r("q1tI"),p=r.n(m),d=r("TSYQ"),u=r.n(d),a=r("H84U"),i=function(e,l){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&l.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(e);c<o.length;c++)l.indexOf(o[c])<0&&Object.prototype.propertyIsEnumerable.call(e,o[c])&&(n[o[c]]=e[o[c]]);return n},t={small:8,middle:16,large:24},s=function(l){var n,o=m.useContext(a.b),c=o.getPrefixCls,h=o.space,g=o.direction,v=l.size,b=v===void 0?(h==null?void 0:h.size)||"small":v,S=l.align,E=l.className,C=l.children,_=l.direction,T=_===void 0?"horizontal":_,w=l.prefixCls,O=i(l,["size","align","className","children","direction","prefixCls"]),I=m.Children.count(C);if(I===0)return null;var k=S===void 0&&T==="horizontal"?"center":S,M=c("space",w),U=u()(M,"".concat(M,"-").concat(T),(n={},A()(n,"".concat(M,"-rtl"),g==="rtl"),A()(n,"".concat(M,"-align-").concat(k),k),n),E),P="".concat(M,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",f()({className:U},O),m.Children.map(C,function(F,j){return m.createElement("div",{className:P,key:"".concat(P,"-").concat(j),style:j===I-1||F===null||F===void 0?{}:A()({},T==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},F)}))};L.a=s},zlgR:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("digP")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="FileTwoTone";var i=A.forwardRef(a);L.default=i},zoYe:function(R,L,r){var y=r("nmnc"),f=r("eUgh"),x=r("Z0cm"),A=r("/9aa"),m=1/0,p=y?y.prototype:void 0,d=p?p.toString:void 0;function u(a){if(typeof a=="string")return a;if(x(a))return f(a,u)+"";if(A(a))return d?d.call(a):"";var i=a+"";return i=="0"&&1/a==-m?"-0":i}R.exports=u},zuHt:function(R,L,r){var y=r("bYtY");function f(x){var A={};x.eachSeriesByType("map",function(m){var p=m.getMapType();if(m.getHostGeoModel()||A[p])return;var d={};y.each(m.seriesGroup,function(a){var i=a.coordinateSystem,t=a.originalData;a.get("showLegendSymbol")&&x.getComponent("legend")&&t.each(t.mapDimension("value"),function(s,e){var l=t.getName(e),n=i.getRegion(l);if(!n||isNaN(s))return;var o=d[l]||0,c=i.dataToPoint(n.center);d[l]=o+1,t.setItemLayout(e,{point:c,offset:o})})});var u=m.getData();u.each(function(a){var i=u.getName(a),t=u.getItemLayout(a)||{};t.showLabel=!d[i],u.setItemLayout(a,t)}),A[p]=!0})}R.exports=f},zzLK:function(R,L,r){"use strict";var y=r("TqRt"),f=r("cDf5");Object.defineProperty(L,"__esModule",{value:!0}),L.default=void 0;var x=y(r("3tO9")),A=u(r("q1tI")),m=y(r("DO2E")),p=y(r("O/y6"));function d(t){if(typeof WeakMap!="function")return null;var s=new WeakMap,e=new WeakMap;return(d=function(n){return n?e:s})(t)}function u(t,s){if(!s&&t&&t.__esModule)return t;if(t===null||f(t)!=="object"&&typeof t!="function")return{default:t};var e=d(s);if(e&&e.has(t))return e.get(t);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var c=n?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(l,o,c):l[o]=t[o]}return l.default=t,e&&e.set(t,l),l}var a=function(s,e){return A.createElement(p.default,(0,x.default)((0,x.default)({},s),{},{ref:e,icon:m.default}))};a.displayName="DeleteOutlined";var i=A.forwardRef(a);L.default=i}}]);